예제 #1
0
        private void WrapHuStatus(HuStatus huStatus, IpLocationDetail ipLocationDetail)
        {
            if (ipLocationDetail != null && !ipLocationDetail.IsClose)
            {
                IpDetail ipDetail = this.genericMgr.FindById<IpDetail>(ipLocationDetail.IpDetailId);

                huStatus.IpNo = ipLocationDetail.IpNo;
                huStatus.LocationFrom = ipDetail.LocationFrom;
                huStatus.LocationTo = ipDetail.LocationTo;
                huStatus.Status = CodeMaster.HuStatus.Ip;
                huStatus.IsConsignment = ipLocationDetail.IsConsignment;
                huStatus.PlanBill = ipLocationDetail.PlanBill;
                huStatus.QualityType = ipLocationDetail.QualityType;
                huStatus.IsFreeze = ipLocationDetail.IsFreeze;
                huStatus.IsATP = ipLocationDetail.IsATP;
                huStatus.OccupyType = ipLocationDetail.OccupyType;
                huStatus.OccupyReferenceNo = ipLocationDetail.OccupyReferenceNo;
            }
        }
예제 #2
0
        private void WrapHuStatus(HuStatus huStatus, LocationLotDetail locationLotDetail)
        {
            if (locationLotDetail != null && locationLotDetail.Qty > 0)
            {
                Location location = this.genericMgr.FindById<Location>(locationLotDetail.Location);

                huStatus.Status = CodeMaster.HuStatus.Location;
                huStatus.Region = location.Region;
                huStatus.Location = locationLotDetail.Location;
                huStatus.Bin = locationLotDetail.Bin;
                huStatus.IsConsignment = locationLotDetail.IsConsignment;
                huStatus.PlanBill = locationLotDetail.PlanBill;
                huStatus.QualityType = locationLotDetail.QualityType;
                huStatus.IsFreeze = locationLotDetail.IsFreeze;
                huStatus.IsATP = locationLotDetail.IsATP;
                huStatus.OccupyType = locationLotDetail.OccupyType;
                huStatus.OccupyReferenceNo = locationLotDetail.OccupyReferenceNo;
            }
        }