|
|
|
@ -29,6 +29,7 @@ using ConvertHelper;
|
|
|
|
|
using VOL.Core.Configuration;
|
|
|
|
|
using VOL.System.Repositories;
|
|
|
|
|
using static System.Windows.Forms.AxHost;
|
|
|
|
|
using VOL.System.Services;
|
|
|
|
|
|
|
|
|
|
namespace VOL.WMS.Services
|
|
|
|
|
{
|
|
|
|
@ -1444,6 +1445,7 @@ namespace VOL.WMS.Services
|
|
|
|
|
var mesbase = "该业务目前不能执行该动作";
|
|
|
|
|
var message = mesbase;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
if (AppSetting.CompanySetting.INDOStep != null ) {
|
|
|
|
|
//
|
|
|
|
|
if (AppSetting.CompanySetting.INDOStep == 1) {
|
|
|
|
@ -1471,7 +1473,6 @@ namespace VOL.WMS.Services
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CurrStatus == "1000" && execution == "1001") {
|
|
|
|
|
|
|
|
|
|
//20210914 增加判断 如此时没有入库日期的话 返回错误
|
|
|
|
@ -1481,9 +1482,6 @@ namespace VOL.WMS.Services
|
|
|
|
|
|
|
|
|
|
入库执行.BILLSTATUS = "1001";
|
|
|
|
|
message = "[入库执行]成功";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (CurrStatus == "1001" && execution == "10011")
|
|
|
|
|
{
|
|
|
|
@ -1522,21 +1520,70 @@ namespace VOL.WMS.Services
|
|
|
|
|
//message = "[入库审核-撤回]成功";
|
|
|
|
|
return OP_WMS_IN_DOService.Instance.UnMakeWMS(入库执行);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var currBillStatus = CurrStatus;
|
|
|
|
|
|
|
|
|
|
if (currBillStatus == null) currBillStatus = "1000";
|
|
|
|
|
|
|
|
|
|
var doexecution = execution;
|
|
|
|
|
|
|
|
|
|
_r = Sys_Task_Progress_IndexService.Instance.DoExecution(ref currBillStatus, ref execution);
|
|
|
|
|
if (!_r.Status) return _r;
|
|
|
|
|
|
|
|
|
|
message = _r.Message;
|
|
|
|
|
|
|
|
|
|
//20230705 入库执行改为可配置 但1003固定为完成
|
|
|
|
|
|
|
|
|
|
//if (CurrStatus == false && execution == "1070")
|
|
|
|
|
if (currBillStatus == "1003")
|
|
|
|
|
{
|
|
|
|
|
//审核完成 做
|
|
|
|
|
入库执行.BILLSTATUS = currBillStatus;
|
|
|
|
|
return OP_WMS_IN_DOService.Instance.MakeWMS(入库执行);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (CurrStatus == "1003" && (currBillStatus != "1003"))
|
|
|
|
|
{
|
|
|
|
|
入库执行.REMARK += "\r\n" + reason;
|
|
|
|
|
入库执行.BILLSTATUS = currBillStatus;
|
|
|
|
|
return OP_WMS_IN_DOService.Instance.UnMakeWMS(入库执行);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//else if (CurrStatus == "1000" && (doexecution == "10001"))
|
|
|
|
|
//{
|
|
|
|
|
// 入库执行.REMARK += "\r\n" + reason;
|
|
|
|
|
|
|
|
|
|
// return OP_WMS_IN_DOService.Instance.UnMakeWMS(入库执行);
|
|
|
|
|
|
|
|
|
|
if (message == mesbase)
|
|
|
|
|
//}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SaveResult r = new SaveResult(
|
|
|
|
|
入库执行, message, false
|
|
|
|
|
);
|
|
|
|
|
return _r.Error_Data(r, message);
|
|
|
|
|
//仅推进状态或驳回 但未完结 也不是从完结状态驳回
|
|
|
|
|
//仅修改状态
|
|
|
|
|
_webResponse.OK(message);
|
|
|
|
|
|
|
|
|
|
入库执行.BILLSTATUS = currBillStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//return _r.Error(message);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (message == mesbase)
|
|
|
|
|
//{
|
|
|
|
|
// SaveResult r = new SaveResult(
|
|
|
|
|
// 入库执行, message, false
|
|
|
|
|
// );
|
|
|
|
|
// return _r.Error_Data(r, message);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
repository.Update(入库执行,true);
|
|
|
|
|
//_r.Data = saveModel.MainData;
|
|
|
|
|
|
|
|
|
|
if(CurrStatus!= 入库执行.BILLSTATUS)
|
|
|
|
|
_r.Data = GetHead(WMSDOID,message);
|
|
|
|
|
//if(CurrStatus!= 入库执行.BILLSTATUS)
|
|
|
|
|
_r.Data = GetHead(WMSDOID,message);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _r.OK(message, ((SaveResult)_r.Data).data);
|
|
|
|
|