|
|
|
@ -31,6 +31,7 @@ using sun.tools.jar.resources;
|
|
|
|
|
using System.Data.Entity.Migrations;
|
|
|
|
|
using AlibabaCloud.SDK.Dingtalkworkflow_1_0.Models;
|
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
{
|
|
|
|
@ -959,10 +960,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSRKSL = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
updrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
updrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
@ -971,16 +972,16 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSRKSL = DingWmsin.getValue_decimal("尺码");
|
|
|
|
|
updrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
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.GOODSPACK = DingWmsin.getValue_decimal("件数");
|
|
|
|
|
|
|
|
|
|
updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
@ -999,10 +1000,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSRKSL = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
newrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
newrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
@ -1011,16 +1012,16 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSRKSL = DingWmsin.getValue_decimal("尺码");
|
|
|
|
|
newrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
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.GOODSPACK = DingWmsin.getValue_decimal("件数");
|
|
|
|
|
newrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
newrec.CREATETIME = DateTime.Now;
|
|
|
|
|
newrec.CHARGEUNIT = wms.CHARGEUNIT;
|
|
|
|
@ -1285,6 +1286,28 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public decimal getValue_decimal(string fieldname)
|
|
|
|
|
{
|
|
|
|
|
var resultstr = "";
|
|
|
|
|
var result = 0M;
|
|
|
|
|
if (rowValue.Exists(x => x.label == fieldname))
|
|
|
|
|
{
|
|
|
|
|
resultstr = rowValue.First(x => x.label == fieldname).value;
|
|
|
|
|
}
|
|
|
|
|
//return result;
|
|
|
|
|
|
|
|
|
|
//提取带有小数点的数字,该方式会将所有带有小数的数字拼接在一起,如:"ABC#123.56@AS8.9测试"提取出来就是123.568.9
|
|
|
|
|
var result2 = Regex.Replace(resultstr, @"[^\d.\d]", "");
|
|
|
|
|
//如果是数字,则转换为decimal类型
|
|
|
|
|
if (Regex.IsMatch(result2, @"^[+-]?\d*[.]?\d*$"))
|
|
|
|
|
{
|
|
|
|
|
result = decimal.Parse(result2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class rowValue
|
|
|
|
|
{
|
|
|
|
@ -1578,28 +1601,28 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSRKSL = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
updrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
updrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue_decimal("重量"));
|
|
|
|
|
|
|
|
|
|
updrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue_decimal("尺码"));
|
|
|
|
|
updrec.SHIJICHIMA = Convert.ToDouble(DingWmsin.getValue_decimal("尺码"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSRKSL = DingWmsin.getValue_decimal("尺码");
|
|
|
|
|
updrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
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.GOODSPACK = DingWmsin.getValue_decimal("件数");
|
|
|
|
|
|
|
|
|
|
updrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
@ -1613,6 +1636,8 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
if(车队infoclient!=null && !string.IsNullOrWhiteSpace( 车队infoclient.SHORTNAME))
|
|
|
|
|
updrec.CHEDUIID = 车队infoclient.GID;
|
|
|
|
|
|
|
|
|
|
updrec.DODATE = wms.WMSDATE;
|
|
|
|
|
|
|
|
|
|
updwmsinlist.Add(updrec);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -1628,10 +1653,10 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "吨" || wms.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSRKSL = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
newrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
newrec.SHIJIZHONGLIANG = Convert.ToDouble(DingWmsin.getValue("重量"));
|
|
|
|
|
|
|
|
|
|
newrec.CHIMA1 = Convert.ToDouble(DingWmsin.getValue("尺码"));
|
|
|
|
@ -1640,16 +1665,16 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
newrec.GOODSRKSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
newrec.GOODSSTOCK = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSRKSL = DingWmsin.getValue_decimal("尺码");
|
|
|
|
|
newrec.GOODSSTOCK = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
newrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
newrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
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.GOODSPACK = DingWmsin.getValue_decimal("件数");
|
|
|
|
|
newrec.AREANAME = DingWmsin.getValue("库位");
|
|
|
|
|
newrec.CREATETIME = DateTime.Now;
|
|
|
|
|
newrec.CHARGEUNIT = wms.CHARGEUNIT;
|
|
|
|
@ -1786,10 +1811,11 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
// //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 == "出库日期")
|
|
|
|
|
{
|
|
|
|
|
wms_out.DODATE = Convert.ToDateTime(item.value);
|
|
|
|
|
cdc.wms_out.AddOrUpdate(wms_out);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1819,15 +1845,15 @@ namespace DSWeb.Areas.MvcShipping.Helper
|
|
|
|
|
|
|
|
|
|
if (wms_out.CHARGEUNIT == "吨" || wms_out.CHARGEUNIT == "千克")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSPFSL = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSPFSL = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
updrec.GOODSKGS = Convert.ToDecimal(DingWmsin.getValue("重量"));
|
|
|
|
|
updrec.GOODSKGS = DingWmsin.getValue_decimal("重量");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wms_out.CHARGEUNIT == "CBM")
|
|
|
|
|
{
|
|
|
|
|
updrec.GOODSPFSL = Convert.ToDecimal(DingWmsin.getValue("尺码"));
|
|
|
|
|
updrec.GOODSPFSL = DingWmsin.getValue_decimal("尺码");
|
|
|
|
|
updrec.GOODSKGS =0;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|