Browse Source

1.asn撤回,状态回到打印ASN之前

2.打印ASN时,校验是否经过装箱校验
3.生成VDA时,记录需求日期,更具需求日期计算LAB中的发货差异数量
master
JinH 2 years ago
parent
commit
553b829c07
  1. 4
      Stone.WinForm/Stone.DataService/Stone.DataService.Biz/Bill/F_BillAsn.cs
  2. 3
      Stone.WinForm/Stone.DataService/Stone.DataService.Biz/Bill/F_STD_Check.cs
  3. 3
      Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs
  4. 5
      Stone.WinForm/Stone.WinModule/Standard/frmJISVDAASN.cs
  5. 3
      Stone.WinForm/Stone.WinModule/Standard/frmMessageQuestion.cs

4
Stone.WinForm/Stone.DataService/Stone.DataService.Biz/Bill/F_BillAsn.cs

@ -24,7 +24,7 @@ namespace Stone.DataService.Biz.Bill
Entity_t_JIS_VDA t_JIS_VDA = new Entity_t_JIS_VDA(); Entity_t_JIS_VDA t_JIS_VDA = new Entity_t_JIS_VDA();
DataSet dsData = t_JIS_VDA.GetData( DataSet dsData = t_JIS_VDA.GetData(
$"PackageNo, 0 as IsCheck, AsnNumber, IsShipingVerification", $"PackageNo, 0 as IsCheck, AsnNumber, IsShipingVerification,IsPrintASN",
$"[AsnNumber]='{AsnNumber}'", $"[AsnNumber]='{AsnNumber}'",
$"[PackageNo] desc"); $"[PackageNo] desc");
@ -33,6 +33,8 @@ namespace Stone.DataService.Biz.Bill
throw new Exception($"ASN编号{AsnNumber}不存在"); throw new Exception($"ASN编号{AsnNumber}不存在");
} }
if (dsData.Tables[0].Select("[IsPrintASN]=True").Length == 0)
throw new Exception($"{AsnNumber} 未打印");
if (dsData.Tables[0].Select("[IsShipingVerification]=False").Length == 0) if (dsData.Tables[0].Select("[IsShipingVerification]=False").Length == 0)
throw new Exception($"{AsnNumber} 已经完成发货校验"); throw new Exception($"{AsnNumber} 已经完成发货校验");

3
Stone.WinForm/Stone.DataService/Stone.DataService.Biz/Bill/F_STD_Check.cs

@ -61,6 +61,9 @@ namespace Stone.DataService.Biz.Bill
if (dtVDA.Rows.Count == 0) if (dtVDA.Rows.Count == 0)
throw new Exception($"装箱单号 {PackageNo} 在系统中不存在"); throw new Exception($"装箱单号 {PackageNo} 在系统中不存在");
if (!Convert.ToBoolean(dtVDA.Rows[0]["IsPrintLabel"]))
throw new Exception($"装箱单号 {PackageNo} 未打印");
if (Convert.ToBoolean(dtVDA.Rows[0]["IsPackingVerification"])) if (Convert.ToBoolean(dtVDA.Rows[0]["IsPackingVerification"]))
throw new Exception($"装箱单号 {PackageNo} 已经做过装箱校验了"); throw new Exception($"装箱单号 {PackageNo} 已经做过装箱校验了");

3
Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs

@ -392,7 +392,8 @@ namespace Stone.WinModule.Standard
Odd = Convert.ToInt32(drData["quantity_new"]) - Odd = Convert.ToInt32(drData["quantity_new"]) -
Convert.ToInt32(PageQty * Convert.ToInt32(drData["PackNumer"])); //计算零头 Convert.ToInt32(PageQty * Convert.ToInt32(drData["PackNumer"])); //计算零头
} }
//存储需求日期
Date = drData["StartDate"].ToString();
for (int i = 1; i <= PageQty; i++) for (int i = 1; i <= PageQty; i++)
{ {

5
Stone.WinForm/Stone.WinModule/Standard/frmJISVDAASN.cs

@ -423,7 +423,7 @@ namespace Stone.WinModule.Standard
Entity_t_JIS_VDA t_JIS_VDA = new Entity_t_JIS_VDA(db); Entity_t_JIS_VDA t_JIS_VDA = new Entity_t_JIS_VDA(db);
t_JIS_VDA.Edit($"[IsUpload]=0, [UploadTime]=null", $"[AsnNumber]='{AsnNumber}'"); t_JIS_VDA.Edit($"[IsUpload]=0, [UploadTime]=null,IsShipingVerification = 0,IsPrintASN = 0", $"[AsnNumber]='{AsnNumber}'");
db.Commit(); db.Commit();
} }
@ -544,6 +544,9 @@ namespace Stone.WinModule.Standard
if (dsData.Tables[0].Rows.Count == 0) if (dsData.Tables[0].Rows.Count == 0)
throw new Exception($"{AsnNumber} 不存在"); throw new Exception($"{AsnNumber} 不存在");
if (dsData.Tables[0].Select("[IsPackingVerification]=False").Length > 0)
throw new Exception(AsnNumber + " 所属VDA未完成装箱校验");
if (dsData.Tables[0].Select("[IsPrintASN]=True").Length == dsData.Tables[0].Rows.Count) if (dsData.Tables[0].Select("[IsPrintASN]=True").Length == dsData.Tables[0].Rows.Count)
throw new Exception(AsnNumber + " 已经打印过了"); throw new Exception(AsnNumber + " 已经打印过了");

3
Stone.WinForm/Stone.WinModule/Standard/frmMessageQuestion.cs

@ -33,7 +33,8 @@ namespace Stone.WinModule.Standard
if (BillType == 0) if (BillType == 0)
{ {
frmPasswordVerify frm = new frmPasswordVerify(); frmPasswordVerify frm = new frmPasswordVerify();
frm.UserName = User.UserInfo.UserName; // frm.UserName = User.UserInfo.UserName;
frm.UserName = "wping";
if (frm.ShowDialog() == DialogResult.OK) if (frm.ShowDialog() == DialogResult.OK)
{ {
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.OK;

Loading…
Cancel
Save