费用提交和撤回 改为不使用ds7工作流

temp
dengyu 1 year ago
parent 616de271ba
commit 282a352051

@ -149,15 +149,19 @@ namespace VOL.System.Services
}
foreach (var item in statekeyList)
{
if (AppSetting.CompanySetting.COMPANYNAME == "JGWL")
{
var sh = SendAppMessage.SendAPPHelp(item, execution);
_r = sh.DoSend();
if (_r.Status == false) {
if (_r.Status == false)
{
return _r;
}
}
}
return _r;
}

@ -512,25 +512,25 @@ namespace VOL.WMS.Services
//}
//return _webResponseContent.Error("");
if (AppSetting.CompanySetting.COMPANYNAME == "JGWL")
{
//if (AppSetting.CompanySetting.COMPANYNAME == "JGWL")
//{
var FeeIDList = feelist.Select(s => s.GID).ToList();
var IDs = string.Join(",", FeeIDList);
JObject reqObj = new JObject
{
{ "IDs",IDs},
{ "optype","op_wms"}
//,
// { "USERID", userid },
// { "COMPANYID", usercompanyid }
};
var ds7sender = DS7Post.DS7PostHelper("/Account/Chfee_Audit/SubmitAuditNew_BYID");
// var FeeIDList = feelist.Select(s => s.GID).ToList();
// var IDs = string.Join(",", FeeIDList);
// JObject reqObj = new JObject
// {
// { "IDs",IDs},
// { "optype","op_wms"}
// //,
// // { "USERID", userid },
// // { "COMPANYID", usercompanyid }
// };
// var ds7sender = DS7Post.DS7PostHelper("/Account/Chfee_Audit/SubmitAuditNew_BYID");
return ds7sender.DoPost(reqObj);
}
else
{
// return ds7sender.DoPost(reqObj);
//}
//else
//{
//其它公司仍采用提交直接通过 撤回直接撤回的模式
////审核通过 将feestatus=1的设为0
@ -540,7 +540,7 @@ namespace VOL.WMS.Services
Ch_feeRepository.Instance.Update(item, true);
}
return _webResponseContent.OK("提交完成");
}
//}
}
private WebResponseContent DoPostFeeCancelAudit(List<Ch_fee> feelist)
@ -581,32 +581,37 @@ namespace VOL.WMS.Services
// _webResponseContent.Error(e.Message);
//}
//return _webResponseContent.Error("");
if (AppSetting.CompanySetting.COMPANYNAME == "JGWL")
{
var FeeIDList = feelist.Select(s => s.GID).ToList();
var IDs = string.Join(",", FeeIDList);
JObject reqObj = new JObject
{
{ "IDs",IDs},
{ "optype","op_wms"}
//,
// { "USERID", userid },
// { "COMPANYID", usercompanyid }
};
var ds7sender = DS7Post.DS7PostHelper("/Account/Chfee_Audit/CancelAudit_BYID");
return ds7sender.DoPost(reqObj);
}
else {
//20230908 改为不走审核流程
//if (AppSetting.CompanySetting.COMPANYNAME == "JGWL")
//{
// var FeeIDList = feelist.Select(s => s.GID).ToList();
// var IDs = string.Join(",", FeeIDList);
// JObject reqObj = new JObject
// {
// { "IDs",IDs},
// { "optype","op_wms"}
// //,
// // { "USERID", userid },
// // { "COMPANYID", usercompanyid }
// };
// var ds7sender = DS7Post.DS7PostHelper("/Account/Chfee_Audit/CancelAudit_BYID");
// return ds7sender.DoPost(reqObj);
//}
//else {
//撤回 将feestatus=0的设为1
foreach (var item in feelist.Where(x => x.FEESTATUS == 0).ToList())
{
if (!chfeeCanRecall(item)) continue;
item.FEESTATUS = 1;
Ch_feeRepository.Instance.Update(item,true);
}
//_msg = "撤回完成";
return _webResponseContent.OK("撤回完成");
}
//}
}
public override WebResponseContent Update(SaveModel saveModel)
{

Loading…
Cancel
Save