diff --git a/Controller/SCP_ASN_CONTROLLER.cs b/Controller/SCP_ASN_CONTROLLER.cs index bed1b84..47f2768 100644 --- a/Controller/SCP_ASN_CONTROLLER.cs +++ b/Controller/SCP_ASN_CONTROLLER.cs @@ -1666,7 +1666,6 @@ namespace CK.SCP.Controller string _oldpartcode = ""; //上一个托盘所装零件编号 decimal _oldbox = 0; //上一个托盘箱数计数 string _oldpalletnum = "";//上一个托盘码 - List _listm = new List(); p_list.ForEach(p => { var _askDetail = db.TA_VEND_PART.Where @@ -1674,10 +1673,10 @@ namespace CK.SCP.Controller && itm.PartCode == p.PartCode ).FirstOrDefault(); if (_askDetail != null) - { + { var _palletPack = _askDetail.PalletPackQty; #region 补充未满托盘 - if (p.PartCode== _oldpartcode) + if (p.PartCode == _oldpartcode) { decimal _box1 = 0; int _TempQty1 = Convert.ToInt32(p.Qty); @@ -1698,7 +1697,7 @@ namespace CK.SCP.Controller _box1++; } } - if(_box1< _oldbox) + if (_box1 < _oldbox) { TB_PALLETS pallet = new TB_PALLETS(); pallet.AsnBillNum = p.AsnBillNum; @@ -1708,6 +1707,11 @@ namespace CK.SCP.Controller pallet.Box = Convert.ToInt32(_box1); pallet.Qty = p.Qty; pallet.PalletNum = _oldpalletnum; + pallet.BarCode = _oldpalletnum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); db.TB_PALLETS.Add(pallet); p.Qty = 0; } @@ -1719,10 +1723,15 @@ namespace CK.SCP.Controller pallet.Batch = p.Batch; pallet.VendId = p.VendId; pallet.Box = Convert.ToInt32(_oldbox); - pallet.Qty = _oldbox* _PackQty1; + pallet.Qty = _oldbox * _PackQty1; pallet.PalletNum = _oldpalletnum; + pallet.BarCode = _oldpalletnum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); db.TB_PALLETS.Add(pallet); - p.Qty = p.Qty- _oldbox * _PackQty1; + p.Qty = p.Qty - _oldbox * _PackQty1; } } #endregion @@ -1758,6 +1767,12 @@ namespace CK.SCP.Controller pallet.Box = Convert.ToInt32(_box); pallet.Qty = p.Qty; pallet.PalletNum = SCP_BILLCODE_CONTROLLER.MakePalletCode_QD(codenum); + pallet.BarCode = pallet.PalletNum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); + db.TB_PALLETS.Add(pallet); _oldpartcode = p.PartCode; _oldbox = Convert.ToInt32(_palletPack) - _box; @@ -1772,7 +1787,7 @@ namespace CK.SCP.Controller { _pallet++; } - for (int i = 1; i <= _pallet;i++) + for (int i = 1; i <= _pallet; i++) { TB_PALLETS pallet = new TB_PALLETS(); pallet.AsnBillNum = p.AsnBillNum; @@ -1780,6 +1795,11 @@ namespace CK.SCP.Controller pallet.Batch = p.Batch; pallet.VendId = p.VendId; pallet.PalletNum = SCP_BILLCODE_CONTROLLER.MakePalletCode_QD(codenum); + pallet.BarCode = pallet.PalletNum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); if (i == _pallet) { pallet.Box = Convert.ToInt32(_box - Convert.ToDecimal(_palletPack) * (_pallet - 1)); @@ -1803,17 +1823,27 @@ namespace CK.SCP.Controller _list.Add(_str); } }); - int state = db.SaveChanges(); - if (state != -1) - { - _ret.State = ReturnStatus.Succeed; - _ret.Result = true; + if (_list.Count == 0) + { + int state = db.SaveChanges(); + if (state != -1) + { + _ret.State = ReturnStatus.Succeed; + _ret.Result = true; + } + else + { + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.MessageList = _list; + } } else { _ret.State = ReturnStatus.Failed; _ret.Result = false; - _ret.MessageList = _listm; + _ret.MessageList = _list; + } } } @@ -1867,6 +1897,256 @@ namespace CK.SCP.Controller } return _ret; } + + public static ResultObject Save_TB_PALLET_JZJH(List p_list) + { + ResultObject _ret = new ResultObject(); + try + { + using (ScpEntities db = EntitiesFactory.CreateScpInstance()) + { + List _list = new List(); + string _oldpartcode = ""; //上一个托盘所装零件编号 + decimal _oldbox = 0; //上一个托盘箱数计数 + string _oldpalletnum = "";//上一个托盘码 + string _oldpalletfullnum = "";//上一个托盘码 + p_list.ForEach(p => + { + var _askDetail = db.TA_VEND_PART.Where + (itm => itm.VendId == p.VendId + && itm.PartCode == p.PartCode + ).FirstOrDefault(); + if (_askDetail != null) + { + var _palletPack = _askDetail.PalletPackQty; + #region 补充未满托盘 + if (p.PartCode== _oldpartcode) + { + decimal _box1 = 0; + int _TempQty1 = Convert.ToInt32(p.Qty); + int _PackQty1 = Convert.ToInt32(p.PackQty); + if (_TempQty1 / _PackQty1 > 0) + { + int _count = _TempQty1 / _PackQty1; + _box1 += _count; + if (p.Qty % p.PackQty > 0) + { + _box1++; + } + } + else + { + if (_TempQty1 > 0) + { + _box1++; + } + } + if(_box1< _oldbox) + { + TB_PALLETS pallet = new TB_PALLETS(); + pallet.AsnBillNum = p.AsnBillNum; + pallet.PartCode = p.PartCode; + pallet.Batch = p.Batch; + pallet.VendId = p.VendId; + pallet.Box = Convert.ToInt32(_box1); + pallet.Qty = p.Qty; + pallet.PalletNum = _oldpalletnum; + pallet.BarCode = _oldpalletnum; + pallet.FullBarCode = _oldpalletfullnum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate =Convert.ToDateTime( p.ProduceDate); + db.TB_PALLETS.Add(pallet); + p.Qty = 0; + } + else + { + TB_PALLETS pallet = new TB_PALLETS(); + pallet.AsnBillNum = p.AsnBillNum; + pallet.PartCode = p.PartCode; + pallet.Batch = p.Batch; + pallet.VendId = p.VendId; + pallet.Box = Convert.ToInt32(_oldbox); + pallet.Qty = _oldbox* _PackQty1; + pallet.PalletNum = _oldpalletnum; + pallet.BarCode = _oldpalletnum; + pallet.FullBarCode = _oldpalletfullnum; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); + db.TB_PALLETS.Add(pallet); + p.Qty = p.Qty- _oldbox * _PackQty1; + } + } + #endregion + #region 新托盘 + if (p.Qty != 0) + { + decimal _box = 0; + int _TempQty = Convert.ToInt32(p.Qty); + int _PackQty = Convert.ToInt32(p.PackQty); + if (_TempQty / _PackQty > 0) + { + int _count = _TempQty / _PackQty; + _box += _count; + if (p.Qty % p.PackQty > 0) + { + _box++; + } + } + else + { + if (_TempQty > 0) + { + _box++; + } + } + if (_box <= _palletPack) + { + TB_PALLETS pallet = new TB_PALLETS(); + pallet.AsnBillNum = p.AsnBillNum; + pallet.PartCode = p.PartCode; + pallet.Batch = p.Batch; + pallet.VendId = p.VendId; + pallet.Box = Convert.ToInt32(_box); + pallet.Qty = p.Qty; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); + var ret = SCP_BARCODE_CONTROLLER.CreatePallets(pallet); + if (ret.State == ReturnStatus.Succeed) + { + pallet.BarCode = pallet.PalletNum; + db.TB_PALLETS.Add(pallet); + _oldpartcode = p.PartCode; + _oldbox = Convert.ToInt32(_palletPack) - _box; + _oldpalletnum = pallet.PalletNum; + _oldpalletfullnum= pallet.FullBarCode; + } + } + else + { + decimal _pallet = 0; + _pallet += Convert.ToInt32(_box) / Convert.ToInt32(_palletPack); + if (_box % _palletPack > 0) + { + _pallet++; + } + for (int i = 1; i <= _pallet;i++) + { + TB_PALLETS pallet = new TB_PALLETS(); + pallet.AsnBillNum = p.AsnBillNum; + pallet.PartCode = p.PartCode; + pallet.Batch = p.Batch; + pallet.VendId = p.VendId; + pallet.VendBatch = p.VendBatch; + pallet.PoBillLine = p.PoLine; + pallet.PoBillNum = p.PoBillNum; + pallet.ProduceDate = Convert.ToDateTime(p.ProduceDate); + if (i == _pallet) + { + pallet.Box = Convert.ToInt32(_box - Convert.ToDecimal(_palletPack) * (_pallet - 1)); + pallet.Qty = p.Qty - Convert.ToDecimal(_palletPack) * (_pallet - 1) * _PackQty; + } + else + { + pallet.Box = Convert.ToInt32(_palletPack); + pallet.Qty = Convert.ToDecimal(_palletPack) * _PackQty; + } + var ret = SCP_BARCODE_CONTROLLER.CreatePallets(pallet); + if (ret.State == ReturnStatus.Succeed) + { + pallet.BarCode = pallet.PalletNum; + db.TB_PALLETS.Add(pallet); + } + } + } + } + #endregion + } + else + { + string _str = string.Format("零件号:{0},供应商编号:{1},没有维护托盘标包数!请先维护供应商零件信息", p.PartCode, p.VendBatch); + _list.Add(_str); + } + }); + int state = db.SaveChanges(); + if (_list.Count == 0) + { + if (state != -1) + { + _ret.State = ReturnStatus.Succeed; + _ret.Result = true; + } + else + { + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.MessageList = _list; + } + } + else + { + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.MessageList = _list; + } + + } + } + catch (System.Data.Entity.Validation.DbEntityValidationException dbEx)//捕获实体验证异常 + { + var sb = new StringBuilder(); + foreach (var error in dbEx.EntityValidationErrors.ToList()) + { + error.ValidationErrors.ToList().ForEach(i => + { + sb.AppendFormat("表:{0},字段:{1},信息:{2}\r\n", error.Entry.Entity.GetType().Name, i.PropertyName, i.ErrorMessage); + }); + } + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.ErrorList.Add(dbEx); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_ASN_CONTROLLER), "Save_TB_PALLET_JZJH", sb.ToString()); + throw new ScpException(ResultCode.DbEntityValidationException, sb.ToString(), "字段验证失败" + sb.ToString()); + } + catch (OptimisticConcurrencyException ex)//并发冲突异常 + { + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_ASN_CONTROLLER), "Save_TB_PALLET_JZJH", ex.ToString()); + throw new ScpException(ResultCode.Exception, "9999", ex.ToString()); + } + catch (ScpException ex) + { + _ret.State = ReturnStatus.Failed; + _ret.Result = false; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_ASN_CONTROLLER), "Save_TB_PALLET_JZJH", ex.ToString()); + if (ex.InnerException != null && ex.InnerException.GetType() == typeof(UpdateException)) + { + var inner = (UpdateException)ex.InnerException; + throw new ScpException(ResultCode.Exception, "0000", ex.ToString()); + } + else + { + if (ex.InnerException != null) throw ex.InnerException; + } + } + catch (Exception e) + { + _ret.State = ReturnStatus.Failed; + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_ASN_CONTROLLER), "Save_TB_PALLET", e.Message); + _ret.Result = false; + _ret.ErrorList.Add(e); + throw e; + } + return _ret; + } public static ResultObject Save_TB_CREATE_BARCODE_SYJB(List p_list) { ResultObject _ret = new ResultObject(); diff --git a/Controller/SCP_BARCODE_CONTROLLER.cs b/Controller/SCP_BARCODE_CONTROLLER.cs index 5f3544b..bd80073 100644 --- a/Controller/SCP_BARCODE_CONTROLLER.cs +++ b/Controller/SCP_BARCODE_CONTROLLER.cs @@ -594,6 +594,83 @@ namespace CK.SCP.Controller } return _ret; } + + public static ResultObject CreatePallets(TB_PALLETS p_entity, int cnt = 1) + { + ResultObject _ret = new ResultObject(); + try + { + using (ScpEntities db = EntitiesFactory.CreateScpInstance()) + { + var ret = GetPalletsRule(p_entity.PartCode, p_entity.Batch, cnt); + if (ret.State == ReturnStatus.Succeed) + { + var barcodeRule = ret.Result; + for (int i = cnt; i > 0; i--) + { + var createTime = ScpCache.GetServerTime(); + var code = GetLastPalletsBarCode(p_entity.PartCode, p_entity.Batch, barcodeRule.LastNumber - i + 1); + p_entity.PalletNum = code; + } + var fullCode = GetFullCode_Pallets(p_entity); + p_entity.FullBarCode = fullCode; + _ret.State = ReturnStatus.Succeed; + _ret.Result = p_entity; + } + else + { + _ret.State = ReturnStatus.Failed; + _ret.Message = "!"; + } + } + } + catch (System.Data.Entity.Validation.DbEntityValidationException dbEx)//ʵ֤쳣 + { + var sb = new StringBuilder(); + foreach (var error in dbEx.EntityValidationErrors.ToList()) + { + error.ValidationErrors.ToList().ForEach(i => + { + sb.AppendFormat("{0}ֶΣ{1}Ϣ{2}\r\n", error.Entry.Entity.GetType().Name, i.PropertyName, i.ErrorMessage); + }); + } + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(dbEx); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "CreateSmallBarcodeList", sb.ToString()); + throw new ScpException(ResultCode.DbEntityValidationException, sb.ToString(), "ֶ֤ʧ" + sb.ToString()); + } + catch (OptimisticConcurrencyException ex)//ͻ쳣 + { + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "CreateSmallBarcodeList", ex.ToString()); + throw new ScpException(ResultCode.Exception, "9999", ex.ToString()); + } + catch (ScpException ex) + { + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "CreateSmallBarcodeList", ex.ToString()); + if (ex.InnerException != null && ex.InnerException.GetType() == typeof(UpdateException)) + { + var inner = (UpdateException)ex.InnerException; + throw new ScpException(ResultCode.Exception, "0000", ex.ToString()); + } + else + { + if (ex.InnerException != null) throw ex.InnerException; + } + } + catch (Exception e) + { + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(e); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "CreateSmallBarcodeList", e.Message); + throw e; + } + return _ret; + } + public static ResultObject> CreateBarcodeList(V_TB_ASN_DETAIL p_entity, int cnt = 1) { @@ -751,6 +828,20 @@ namespace CK.SCP.Controller } return fullcode; } + + public static string GetFullCode_Pallets(TB_PALLETS barcode) + { + var fullcode = string.Empty; + switch (ScpCache.Config.άʽ) + { + case "1": + fullcode = + GetFullCode(barcode.PalletNum, barcode.Qty, barcode.VendId, barcode.VendBatch, barcode.PoBillNum, + barcode.PoBillLine, barcode.ProduceDate, barcode.AsnBillNum); + break; + } + return fullcode; + } public static string GetFullCode(TS_BARCODE barcode) { var fullcode = string.Empty; @@ -997,6 +1088,101 @@ namespace CK.SCP.Controller } return _ret; } + + private static ResultObject GetPalletsRule(string partcode, string batch, int cnt = 1) + { + ResultObject _ret = new ResultObject(); + try + { + using (ScpEntities db = EntitiesFactory.CreateScpInstance()) + { + + var ruleBatch = batch.Substring(0, 4); + var barcodeRule = db.TB_PALLETS_RULL.Find(partcode, ruleBatch); + if (barcodeRule == null) + { + barcodeRule = new TB_PALLETS_RULL + { + PartCode = partcode, + RuleBatch = ruleBatch, + LastNumber = cnt, + State = 0 + }; + } + else + { + barcodeRule.LastNumber += cnt; + } + + barcodeRule.LastBarCode = GetLastPalletsBarCode(partcode, batch, barcodeRule.LastNumber); + barcodeRule.LastTime = ScpCache.GetServerTime(); + + db.TB_PALLETS_RULL.AddOrUpdate(p => new { p.PartCode, p.RuleBatch }, barcodeRule); + if (db.SaveChanges() != -1) + { + _ret.State = ReturnStatus.Succeed; + _ret.Result = barcodeRule; + + } + else + { + _ret.State = ReturnStatus.Failed; + + } + } + } + catch (System.Data.Entity.Validation.DbEntityValidationException dbEx)//ʵ֤쳣 + { + var sb = new StringBuilder(); + + foreach (var error in dbEx.EntityValidationErrors.ToList()) + { + + error.ValidationErrors.ToList().ForEach(i => + { + sb.AppendFormat("{0}ֶΣ{1}Ϣ{2}\r\n", error.Entry.Entity.GetType().Name, i.PropertyName, i.ErrorMessage); + }); + } + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(dbEx); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "GetPalletsRule", sb.ToString()); + throw new ScpException(ResultCode.DbEntityValidationException, sb.ToString(), "ֶ֤ʧ" + sb.ToString()); + } + catch (OptimisticConcurrencyException ex)//ͻ쳣 + { + + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "GetPalletsRule", ex.ToString()); + throw new ScpException(ResultCode.Exception, "9999", ex.ToString()); + } + catch (ScpException ex) + { + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(ex); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "GetPalletsRule", ex.ToString()); + + if (ex.InnerException != null && ex.InnerException.GetType() == typeof(UpdateException)) + { + var inner = (UpdateException)ex.InnerException; + + + throw new ScpException(ResultCode.Exception, "0000", ex.ToString()); + } + else + { + if (ex.InnerException != null) throw ex.InnerException; + } + } + catch (Exception e) + { + _ret.State = ReturnStatus.Failed; + _ret.ErrorList.Add(e); + LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_BARCODE_CONTROLLER), "GetPalletsRule", e.Message); + throw e; + } + return _ret; + } private static string GetLastBarCode(string partcode, string batch, int lastnum) { @@ -1014,7 +1200,23 @@ namespace CK.SCP.Controller barcode += lastnum.ToString(ScpCache.Config.кŸʽ); return barcode; } + private static string GetLastPalletsBarCode(string partcode, string batch, int lastnum) + { + + var barcode = "G."; + barcode += partcode + ScpCache.Config.ָ; + if (ScpCache.Config.Ӧ̼) + { + barcode += batch + ScpCache.Config.ָ; + } + else + { + barcode += batch + ScpCache.Config.ָ; + } + barcode += lastnum.ToString(ScpCache.Config.кŸʽ); + return barcode; + } private static string GetLastSmallBarCode(string partcode, string batch, int lastnum) { diff --git a/Models/CK.SCP.Models.csproj b/Models/CK.SCP.Models.csproj index f42c58a..b6c0c90 100644 --- a/Models/CK.SCP.Models.csproj +++ b/Models/CK.SCP.Models.csproj @@ -345,6 +345,7 @@ + diff --git a/Models/ScpEntities.cs b/Models/ScpEntities.cs index e567092..d734b7e 100644 --- a/Models/ScpEntities.cs +++ b/Models/ScpEntities.cs @@ -96,6 +96,7 @@ namespace CK.SCP.Models public virtual DbSet V_TB_REJECT_DETAIL { get; set; } public virtual DbSet TS_BARCODE_RULE { get; set; } public virtual DbSet TS_BARCODE_RULE_SMALL { get; set; } + public virtual DbSet TB_PALLETS_RULL { get; set; } public virtual DbSet V_TB_INVOICE_DETAIL { get; set; } public virtual DbSet V_TB_INVOICE { get; set; } public virtual DbSet V_TB_INVOICE_DETAIL_RED { get; set; } diff --git a/Models/ScpEntity/TB_PALLETS.cs b/Models/ScpEntity/TB_PALLETS.cs index fe9a351..6b85b92 100644 --- a/Models/ScpEntity/TB_PALLETS.cs +++ b/Models/ScpEntity/TB_PALLETS.cs @@ -16,11 +16,20 @@ namespace CK.SCP.Models.ScpEntity [StringLength(50)] public string AsnBillNum { get; set; } public string PalletNum { get; set; } + public string BarCode { get; set; } + public string FullBarCode { get; set; } public string PartCode { get; set; } public string Batch { get; set; } public string VendId { get; set; } public int Box { get; set; } public decimal Qty { get; set; } + //--新添加 + public string VendBatch { get; set; } + + public string PoBillNum { get; set; } + public int PoBillLine { get; set; } + [Column(TypeName = "datetime2")] + public DateTime ProduceDate { get; set; } } } diff --git a/Models/ScpEntity/TB_PALLETS_RULL.cs b/Models/ScpEntity/TB_PALLETS_RULL.cs new file mode 100644 index 0000000..24d3d1b --- /dev/null +++ b/Models/ScpEntity/TB_PALLETS_RULL.cs @@ -0,0 +1,33 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + + +namespace CK.SCP.Models.ScpEntity +{ + public partial class TB_PALLETS_RULL + { + [DatabaseGenerated(DatabaseGeneratedOption.Computed)] + public int UID { get; set; } + + [Key] + [Column(Order = 0)] + [StringLength(50)] + public string PartCode { get; set; } + + [Key] + [Column(Order = 1)] + [StringLength(50)] + public string RuleBatch { get; set; } + + public int LastNumber { get; set; } + + [Required(AllowEmptyStrings = true)] + [StringLength(500)] + public string LastBarCode { get; set; } + + public DateTime LastTime { get; set; } + + public int State { get; set; } + } +} diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx index 2cc3577..b956e1d 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx @@ -28,10 +28,6 @@ --%> - - - - diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx.designer.cs b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx.designer.cs index 8e14db2..09fbaed 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx.designer.cs +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN.aspx.designer.cs @@ -86,24 +86,6 @@ namespace SCP.锦州锦恒.SupplierData /// protected global::FineUI.Button btnShow; - /// - /// btnPallet 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Button btnPallet; - - /// - /// btnPalletDetail 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Button btnPalletDetail; - /// /// gp1 控件。 /// @@ -176,6 +158,42 @@ namespace SCP.锦州锦恒.SupplierData /// protected global::FineUI.TextBox txtPO; + /// + /// TXT_SubSite 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUI.TextBox TXT_SubSite; + + /// + /// TXT_Extend1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUI.TextBox TXT_Extend1; + + /// + /// TXT_Extend2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUI.TextBox TXT_Extend2; + + /// + /// TXT_Extend3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUI.TextBox TXT_Extend3; + /// /// FormRow_3 控件。 /// diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx index 5a71f43..a017c7a 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx @@ -62,10 +62,11 @@ --%> - + + -