|
|
|
@ -687,11 +687,16 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
尺码 = item.GOODSPFSL == null ? 0M : (decimal)item.GOODSPFSL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cntrno = item.CntrNo;
|
|
|
|
|
if (string.IsNullOrWhiteSpace(cntrno)) {
|
|
|
|
|
cntrno = 对应入库wmsin.CNTRNO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var newrk = new List<DingTalkFormField>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
new DingTalkFormField("提单号", 对应入库wms.BLNO),
|
|
|
|
|
//new DingTalkFormField("箱号", 对应入库wmsin.CNTRNO),
|
|
|
|
|
new DingTalkFormField("箱号", cntrno),
|
|
|
|
|
new DingTalkFormField("品名", item.GOODSNAME),
|
|
|
|
|
new DingTalkFormField("重量", 重量.ToString()),
|
|
|
|
|
new DingTalkFormField("件数", item.GOODSPACKPFSL.ToString()),
|
|
|
|
@ -774,8 +779,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
jo = (DingTalk_SendAuditResult)JsonToObject(result.Data.ToString(), jo);
|
|
|
|
|
|
|
|
|
|
var dic = new Dictionary<string, string>();
|
|
|
|
|
dic.Add("instanceId", jo.instanceId);
|
|
|
|
|
var dic = new Dictionary<string, string>
|
|
|
|
|
{
|
|
|
|
|
{ "instanceId", jo.instanceId }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BasicDataRefDAL.SaveLogicInfo(BSNO, "钉钉审批", dic);
|
|
|
|
|
}
|
|
|
|
@ -863,6 +870,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
type = callbackinfo.type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 已不使用 改为在子类内各自实现
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public DBResult ReadDingtalkInstanceinfo()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -1444,8 +1455,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
public override DBResult DoDeal() {
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
//根据processinstancid 读取审批实例信息
|
|
|
|
|
var 返回结果Str = DingTalkHelper.DingTalk_Instanceinfo(callbackinfo.processInstanceId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var 返回结果Str = DingTalkHelper.DingTalk_Instanceinfo(callbackinfo.processInstanceId);
|
|
|
|
|
|
|
|
|
|
//解析返回结果
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1469,7 +1482,208 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
public override DBResult DoDeal()
|
|
|
|
|
{
|
|
|
|
|
//return new DBResult();
|
|
|
|
|
return callbackinfo.ReadDingtalkInstanceinfo();
|
|
|
|
|
|
|
|
|
|
if (callbackinfo.type == "finish")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return ReadDingtalkInstanceinfo(callbackinfo.processInstanceId);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return new DBResult();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DBResult ReadDingtalkInstanceinfo(string processInstanceId)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
|
|
|
|
|
//var userid=
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//如果是费用入账动作 且配置了钉钉审批入库 则调用
|
|
|
|
|
result = DingTalkHelper.DingTalk_Instanceinfo(processInstanceId);
|
|
|
|
|
|
|
|
|
|
DingTalkInstanceinfo di = DSWeb.MvcShipping.Helper.JsonConvert.Deserialize<DingTalkInstanceinfo>(result.Data.ToString());
|
|
|
|
|
|
|
|
|
|
//根据内容修改wms和wmsin值
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
var lv = BasicDataRefDAL.GetLogicHaveValue("钉钉审批", "instanceId", processInstanceId);
|
|
|
|
|
if (lv != null && lv.ContainsKey("instanceId"))
|
|
|
|
|
{
|
|
|
|
|
var wmsno = lv["BSNO"];
|
|
|
|
|
|
|
|
|
|
var wmsold = new DSWeb.MvcShipping.Models.WMS.WMS_IN_OLD(wmsno);
|
|
|
|
|
var wms = wmsold.wms;
|
|
|
|
|
var wmslist = wmsold.wms_in;
|
|
|
|
|
//var wms = cdc.wms.FirstOrDefault(x => x.WMSNO == wmsno);
|
|
|
|
|
//var wmslist = new List<wms_in_md>();
|
|
|
|
|
//if (wms != null) {
|
|
|
|
|
// wmslist = cdc.wms_in.Where(x => x.ASSOCIATEDNO == wms.GID).ToList();
|
|
|
|
|
//}
|
|
|
|
|
var updwmsinlist = new List<wms_in_md>();
|
|
|
|
|
var newwmsinlist = new List<wms_in_md>();
|
|
|
|
|
var 车辆信息 = new wms_in_md();
|
|
|
|
|
foreach (var item in di.result.formComponentValues)
|
|
|
|
|
{
|
|
|
|
|
//从其中查找货物信息 并更新至当前
|
|
|
|
|
if (item.name == "客户名称")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//var cust=cdc.info_client.Where(x=>x.SHORTNAME==item.value || x.DESCRIPTION==item.value)
|
|
|
|
|
}
|
|
|
|
|
if (item.name == "入库日期")
|
|
|
|
|
{
|
|
|
|
|
wms.WMSDATE = Convert.ToDateTime(item.value);
|
|
|
|
|
}
|
|
|
|
|
if (item.name == "入库信息")
|
|
|
|
|
{
|
|
|
|
|
var 入库信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
|
if (入库信息list != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var DingWmsin in 入库信息list)
|
|
|
|
|
{
|
|
|
|
|
var 提单号 = DingWmsin.getValue("提单号");
|
|
|
|
|
var 箱号 = DingWmsin.getValue("箱号");
|
|
|
|
|
if (wmslist.Exists(x => x.BLNO == 提单号 && x.CNTRNO == 箱号))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var updrec = wmslist.First(x => x.BLNO == 提单号 && x.CNTRNO == 箱号);
|
|
|
|
|
|
|
|
|
|
//new DingTalkFormField("提单号", item.BLNO),
|
|
|
|
|
//new DingTalkFormField("箱号", item.CNTRNO),
|
|
|
|
|
//new DingTalkFormField("品名", item.GOODSNAME),
|
|
|
|
|
//new DingTalkFormField("重量", item.GOODSRKSL.ToString()),
|
|
|
|
|
//new DingTalkFormField("件数", item.GOODSPACK.ToString()),
|
|
|
|
|
//new DingTalkFormField("尺码", item.CHIMA1.ToString()),
|
|
|
|
|
//new DingTalkFormField("库位", item.CHIMA1.ToString())
|
|
|
|
|
updrec.GOODSNAME = DingWmsin.getValue("品名");
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
}
|
|
|
|
|
updrec.GOODSPACK = Convert.ToDecimal(DingWmsin.getValue("件数"));
|
|
|
|
|
|
|
|
|
|
updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
|
updwmsinlist.Add(updrec);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var newrec = new wms_in_md();
|
|
|
|
|
newrec.ASSOCIATEDNO = wms.GID;
|
|
|
|
|
newrec.GID = Guid.NewGuid().ToString();
|
|
|
|
|
newrec.BLNO = DingWmsin.getValue("提单号");
|
|
|
|
|
newrec.CNTRNO = DingWmsin.getValue("箱号");
|
|
|
|
|
newrec.CLIENTNAME = wms.CUSTOMERNAME;
|
|
|
|
|
newrec.DODATE = wms.WMSDATE;
|
|
|
|
|
newrec.GOODSNAME = DingWmsin.getValue("品名");
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
newrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
newrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
}
|
|
|
|
|
newrec.GOODSPACK = Convert.ToDecimal(DingWmsin.getValue("件数"));
|
|
|
|
|
newrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
newrec.CREATETIME = DateTime.Now;
|
|
|
|
|
newrec.CHARGEUNIT = wms.CHARGEUNIT;
|
|
|
|
|
newrec.CORPID = wms.CORPID;
|
|
|
|
|
newwmsinlist.Add(newrec);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (item.name == "车队信息")
|
|
|
|
|
{
|
|
|
|
|
var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
|
if (车队信息list != null && 车队信息list.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
var 车队name = 车队信息list[0].getValue("车队");
|
|
|
|
|
var 车队 = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
|
if (车队 != null && 车队.SHORTNAME != null && 车队.SHORTNAME != "")
|
|
|
|
|
{
|
|
|
|
|
车辆信息.CHEDUIID = 车队.GID;
|
|
|
|
|
车辆信息.TRUCKNO = 车队信息list[0].getValue("车牌号");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cdc.wms.AddOrUpdate(wms);
|
|
|
|
|
if (updwmsinlist != null && updwmsinlist.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in updwmsinlist)
|
|
|
|
|
{
|
|
|
|
|
item.CHEDUIID = 车辆信息.CHEDUIID;
|
|
|
|
|
item.TRUCKNO = 车辆信息.TRUCKNO;
|
|
|
|
|
cdc.wms_in.AddOrUpdate(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (newwmsinlist != null && newwmsinlist.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in newwmsinlist)
|
|
|
|
|
{
|
|
|
|
|
item.CHEDUIID = 车辆信息.CHEDUIID;
|
|
|
|
|
item.TRUCKNO = 车辆信息.TRUCKNO;
|
|
|
|
|
cdc.wms_in.AddOrUpdate(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wms.ISLOCK2 = false;
|
|
|
|
|
cdc.wms.AddOrUpdate(wms);
|
|
|
|
|
|
|
|
|
|
cdc.SaveChanges();
|
|
|
|
|
|
|
|
|
|
//然后执行入库的费用入账原逻辑
|
|
|
|
|
DSWeb.MvcShipping.DAL.WMSNewDAL.WMSNewDAL.DoWMSLOCK("'" + wmsno + "'");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
result.SetErrorInfo(e.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class DingTalkProcess_诚锐出库 : DingTalkProcess
|
|
|
|
@ -1487,11 +1701,158 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//public override DBResult DoDeal()
|
|
|
|
|
//{
|
|
|
|
|
// //return new DBResult();
|
|
|
|
|
// //return callbackinfo.ReadDingtalkInstanceinfo();
|
|
|
|
|
//}
|
|
|
|
|
public override DBResult DoDeal()
|
|
|
|
|
{
|
|
|
|
|
//return new DBResult();
|
|
|
|
|
if (callbackinfo.type == "finish")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return ReadDingtalkInstanceinfo(callbackinfo.processInstanceId);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return new DBResult();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DBResult ReadDingtalkInstanceinfo(string processInstanceId)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
|
|
|
|
|
//var userid=
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
result = DingTalkHelper.DingTalk_Instanceinfo(processInstanceId);
|
|
|
|
|
|
|
|
|
|
DingTalkInstanceinfo di = DSWeb.MvcShipping.Helper.JsonConvert.Deserialize<DingTalkInstanceinfo>(result.Data.ToString());
|
|
|
|
|
|
|
|
|
|
//根据内容修改wms_out_detail的值
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
var lv = BasicDataRefDAL.GetLogicHaveValue("钉钉审批", "instanceId", processInstanceId);
|
|
|
|
|
if (lv != null && lv.ContainsKey("instanceId"))
|
|
|
|
|
{
|
|
|
|
|
var BSNO = lv["BSNO"];
|
|
|
|
|
|
|
|
|
|
var wmsold = new DSWeb.MvcShipping.Models.WMS.WMS_OUT_OLD(BSNO);
|
|
|
|
|
var wms_out = wmsold.wms_out;
|
|
|
|
|
var wms_out_detaillist = wmsold.wms_out_detail;
|
|
|
|
|
|
|
|
|
|
List<wms_out_detail_md> updwmslist = new List<wms_out_detail_md>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var 车辆信息 = new wms_in_md();
|
|
|
|
|
foreach (var item in di.result.formComponentValues)
|
|
|
|
|
{
|
|
|
|
|
//从其中查找货物信息 并更新至当前
|
|
|
|
|
//if (item.name == "客户名称")
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
// //var cust=cdc.info_client.Where(x=>x.SHORTNAME==item.value || x.DESCRIPTION==item.value)
|
|
|
|
|
//}
|
|
|
|
|
//if (item.name == "入库日期")
|
|
|
|
|
//{
|
|
|
|
|
// wms.WMSDATE = Convert.ToDateTime(item.value);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.name == "出库信息")
|
|
|
|
|
{
|
|
|
|
|
var 出库信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
|
if (出库信息list != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var DingWmsin in 出库信息list)
|
|
|
|
|
{
|
|
|
|
|
var 提单号 = DingWmsin.getValue("提单号");
|
|
|
|
|
var 箱号 = DingWmsin.getValue("箱号");
|
|
|
|
|
var 品名 = DingWmsin.getValue("品名");
|
|
|
|
|
if (wmsold.VW_WMS_OUT_DETAIL.Exists(x => x.BLNO == 提单号 && x.CNTRNO == 箱号 && x.GOODSNAME_OUT == 品名))
|
|
|
|
|
{
|
|
|
|
|
var _outrec= wmsold.VW_WMS_OUT_DETAIL.First(x => x.BLNO == 提单号 && x.CNTRNO == 箱号 && x.GOODSNAME_OUT == 品名);
|
|
|
|
|
var updrec = wms_out_detaillist.First(x => x.GID== _outrec.GID_OUT);
|
|
|
|
|
|
|
|
|
|
//new DingTalkFormField("提单号", item.BLNO),
|
|
|
|
|
//new DingTalkFormField("箱号", item.CNTRNO),
|
|
|
|
|
//new DingTalkFormField("品名", item.GOODSNAME),
|
|
|
|
|
//new DingTalkFormField("重量", item.GOODSRKSL.ToString()),
|
|
|
|
|
//new DingTalkFormField("件数", item.GOODSPACK.ToString()),
|
|
|
|
|
//new DingTalkFormField("尺码", item.CHIMA1.ToString()),
|
|
|
|
|
//new DingTalkFormField("库位", item.CHIMA1.ToString())
|
|
|
|
|
updrec.GOODSNAME = DingWmsin.getValue("品名");
|
|
|
|
|
|
|
|
|
|
if (wms_out.CHARGEUNIT == "吨" || wms_out.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSPFSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wms_out.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSPFSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.GOODSKGS =0;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
updrec.GOODSPACK = DingWmsin.getValue("件数");
|
|
|
|
|
|
|
|
|
|
//updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
//updrec.DODATE = wms_out.DODATE;
|
|
|
|
|
updwmslist.Add(updrec);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (item.name == "车队信息")
|
|
|
|
|
{
|
|
|
|
|
var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
|
if (车队信息list != null && 车队信息list.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
var 车队name = 车队信息list[0].getValue("车队");
|
|
|
|
|
var 车队 = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
|
if (车队 != null && 车队.SHORTNAME != null && 车队.SHORTNAME != "")
|
|
|
|
|
{
|
|
|
|
|
车辆信息.CHEDUIID = 车队.GID;
|
|
|
|
|
车辆信息.TRUCKNO = 车队信息list[0].getValue("车牌号");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//cdc.wms.AddOrUpdate(wms);
|
|
|
|
|
if (updwmslist != null && updwmslist.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in updwmslist)
|
|
|
|
|
{
|
|
|
|
|
//item.CHEDUIID = 车辆信息.CHEDUIID;
|
|
|
|
|
item.TRUCKNO = 车辆信息.TRUCKNO;
|
|
|
|
|
cdc.wms_out_detail.AddOrUpdate(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cdc.SaveChanges();
|
|
|
|
|
|
|
|
|
|
//然后执行出库的费用入账原逻辑
|
|
|
|
|
|
|
|
|
|
var outtype = wms_out.IsDetail == "1" ? "StockOutDetail" : "StockOut";
|
|
|
|
|
|
|
|
|
|
DSWeb.MvcShipping.DAL.WMSOUT_GuiGeDAL.WMSOUT_GuiGeDAL.DoSetislock(wms_out.GID, (bool)wms_out.EIP, outtype,wms_out.CREATEUSER);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
result.SetErrorInfo(e.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|