Exemple #1
0
        void HandleData()
        {
            var list = LotCatcher.entities.EntityList;

            foreach (var lot in list)
            {
                ReqRpt011LotDetailEntity entity = new ReqRpt011LotDetailEntity
                {
                    LotID     = lot.Lot_ID,
                    Pri       = lot.Priority_Class,
                    ProductID = lot.ProdSpec_ID,
                    ShipTime  = lot.Complete_Time.ToString("yyyy/MM/dd HH:mm:ss"),
                    Status    = lot.Lot_Inv_State,
                    Qty       = lot.Qty,
                    StayDays  = Math.Round((lot.Next_Time - lot.Complete_Time).TotalDays, 2),
                    Comment   = lot.Bank_ID == ""?"":lot.Bank_ID + ":" + lot.Comment
                };
                LotEntities.Add(entity);
            }
        }
 public int GetCurWip()
 {
     return(LotEntities.Any() ? LotEntities.Sum(s => s.Qty) : 0);
 }