|
|
@ -509,6 +509,7 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in wmsinList)
|
|
|
|
foreach (var item in wmsinList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var 车队 = 车队list.First(x => x.GID == item.CHEDUIID).SHORTNAME;
|
|
|
|
var newrk = new List<DingTalkFormField>
|
|
|
|
var newrk = new List<DingTalkFormField>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new DingTalkFormField("提单号", item.BLNO),
|
|
|
|
new DingTalkFormField("提单号", item.BLNO),
|
|
|
@ -517,7 +518,9 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
new DingTalkFormField("重量", item.GOODSRKSL.ToString()),
|
|
|
|
new DingTalkFormField("重量", item.GOODSRKSL.ToString()),
|
|
|
|
new DingTalkFormField("件数", item.GOODSPACK.ToString()),
|
|
|
|
new DingTalkFormField("件数", item.GOODSPACK.ToString()),
|
|
|
|
new DingTalkFormField("尺码", item.CHIMA1.ToString()),
|
|
|
|
new DingTalkFormField("尺码", item.CHIMA1.ToString()),
|
|
|
|
new DingTalkFormField("库位", item.AREANAME.ToString())
|
|
|
|
new DingTalkFormField("库位", item.AREANAME.ToString()),
|
|
|
|
|
|
|
|
new DingTalkFormField("车队", 车队),
|
|
|
|
|
|
|
|
new DingTalkFormField("车牌号", item.TRUCKNO.ToString())
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
入库信息list.Add(newrk);
|
|
|
|
入库信息list.Add(newrk);
|
|
|
@ -545,7 +548,9 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var 入库信息 = new DingTalkFormField("入库信息", JsonConvert.SerializeObject(入库信息list));
|
|
|
|
var 入库信息 = new DingTalkFormField("入库信息", JsonConvert.SerializeObject(入库信息list));
|
|
|
|
var 车队信息 = new DingTalkFormField("车队信息", JsonConvert.SerializeObject(车队信息list));
|
|
|
|
|
|
|
|
|
|
|
|
//20230130 取消入库审核的车队信息
|
|
|
|
|
|
|
|
//var 车队信息 = new DingTalkFormField("车队信息", JsonConvert.SerializeObject(车队信息list));
|
|
|
|
|
|
|
|
|
|
|
|
body.formComponentValues = new List<DingTalkFormField>
|
|
|
|
body.formComponentValues = new List<DingTalkFormField>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -553,8 +558,7 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
//增加字段内容
|
|
|
|
//增加字段内容
|
|
|
|
new DingTalkFormField("客户名称", wms.CUSTOMERNAME),
|
|
|
|
new DingTalkFormField("客户名称", wms.CUSTOMERNAME),
|
|
|
|
new DingTalkFormField("入库日期", ((DateTime)wms.WMSDATE).ToString("yyyy-MM-dd")),
|
|
|
|
new DingTalkFormField("入库日期", ((DateTime)wms.WMSDATE).ToString("yyyy-MM-dd")),
|
|
|
|
入库信息,
|
|
|
|
入库信息
|
|
|
|
车队信息
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
jsonObj = body;
|
|
|
|
jsonObj = body;
|
|
|
@ -1590,6 +1594,16 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
|
|
updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if(string.IsNullOrWhiteSpace(DingWmsin.getValue("车牌号")))
|
|
|
|
|
|
|
|
updrec.TRUCKNO = DingWmsin.getValue("车牌号");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var 车队name= DingWmsin.getValue("车队");
|
|
|
|
|
|
|
|
var 车队infoclient = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(车队infoclient!=null && string.IsNullOrWhiteSpace( 车队infoclient.SHORTNAME))
|
|
|
|
|
|
|
|
updrec.CHEDUIID = 车队infoclient.SHORTNAME;
|
|
|
|
|
|
|
|
|
|
|
|
updwmsinlist.Add(updrec);
|
|
|
|
updwmsinlist.Add(updrec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -1631,27 +1645,36 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
newrec.CREATETIME = DateTime.Now;
|
|
|
|
newrec.CREATETIME = DateTime.Now;
|
|
|
|
newrec.CHARGEUNIT = wms.CHARGEUNIT;
|
|
|
|
newrec.CHARGEUNIT = wms.CHARGEUNIT;
|
|
|
|
newrec.CORPID = wms.CORPID;
|
|
|
|
newrec.CORPID = wms.CORPID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newrec.TRUCKNO = DingWmsin.getValue("车牌号");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var 车队name = DingWmsin.getValue("车队");
|
|
|
|
|
|
|
|
var 车队infoclient = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (车队infoclient != null && string.IsNullOrWhiteSpace(车队infoclient.SHORTNAME))
|
|
|
|
|
|
|
|
newrec.CHEDUIID = 车队infoclient.SHORTNAME;
|
|
|
|
|
|
|
|
|
|
|
|
newwmsinlist.Add(newrec);
|
|
|
|
newwmsinlist.Add(newrec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (item.name == "车队信息")
|
|
|
|
//if (item.name == "车队信息")
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
// var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
if (车队信息list != null && 车队信息list.Count > 0)
|
|
|
|
// if (车队信息list != null && 车队信息list.Count > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
var 车队name = 车队信息list[0].getValue("车队");
|
|
|
|
// var 车队name = 车队信息list[0].getValue("车队");
|
|
|
|
var 车队 = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
// var 车队 = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == 车队name);
|
|
|
|
if (车队 != null && 车队.SHORTNAME != null && 车队.SHORTNAME != "")
|
|
|
|
// if (车队 != null && 车队.SHORTNAME != null && 车队.SHORTNAME != "")
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
车辆信息.CHEDUIID = 车队.GID;
|
|
|
|
// 车辆信息.CHEDUIID = 车队.GID;
|
|
|
|
车辆信息.TRUCKNO = 车队信息list[0].getValue("车牌号");
|
|
|
|
// 车辆信息.TRUCKNO = 车队信息list[0].getValue("车牌号");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cdc.wms.AddOrUpdate(wms);
|
|
|
|
cdc.wms.AddOrUpdate(wms);
|
|
|
|
if (updwmsinlist != null && updwmsinlist.Count > 0)
|
|
|
|
if (updwmsinlist != null && updwmsinlist.Count > 0)
|
|
|
@ -1814,19 +1837,13 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (item.name == "车队信息")
|
|
|
|
if (item.name == "车辆信息")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
var 车队信息list = FormComponentValues.GetRowValues(item.value);
|
|
|
|
if (车队信息list != null && 车队信息list.Count > 0)
|
|
|
|
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("车牌号");
|
|
|
|
车辆信息.TRUCKNO = 车队信息list[0].getValue("车牌号");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|