| | |
| | | public new IYadaPacking Init(string id, string apiHost, string userCode, string postCode) |
| | | { |
| | | base.Init(id, apiHost, userCode, postCode); |
| | | U9CDB = Biz.DataSource["YadaU9C"].Client; |
| | | Logger.Console.Info($"User[{userCode}] start a {this.GetType().Name}[{postCode}] Transaction[ID: {TransID}]"); |
| | | return this; |
| | | } |
| | |
| | | public string ShippingOrder { get; set; } |
| | | public DateTime curtime = DateTime.Now; |
| | | public DateTime prevtime = DateTime.Now; |
| | | |
| | | public DbClient U9CDB { get; set; } |
| | | #endregion Propertys & Variables |
| | | |
| | | #region Functions |
| | |
| | | curtime = DateTime.Now; Logger.Console.Info($"{CurSN} : ***** 11 : {(curtime - prevtime).TotalSeconds}s", ConsoleColor.Green); prevtime = curtime; |
| | | |
| | | //获取出货状态 |
| | | DbClient db = Biz.DataSource["YadaU9C"].Client; |
| | | var ship = db.Queryable<mes_ShipList>().Where(q => q.MoDoc == CurBatch.WO.ORDER_NO && q.Status == 2 && SqlFunc.DateIsSame(q.BusinessDate, DateTime.Now)).First(); |
| | | var ship = U9CDB.Queryable<mes_ShipList>().Where(q => q.MoDoc == CurBatch.WO.ORDER_NO && q.Status == 2 && SqlFunc.DateIsSame(q.BusinessDate, DateTime.Now)).First(); |
| | | int CurShipQty = 0; |
| | | int WaitShipmentCarton = 0; |
| | | int WaitShipment = 0; |