示例#1
0
 public void UpdatePalletWeight(PalletWeightMaintain palletWeight)
 {
     PalletWeight fisObject = new PalletWeight();
     fisObject.Id = palletWeight.Id;
     fisObject.FamilyID = palletWeight.Family;
     fisObject.Region = palletWeight.Region;
     fisObject.Qty = palletWeight.Qty;
     fisObject.Weight = palletWeight.Weight;
     fisObject.Tolerance = palletWeight.Tolerance;
     fisObject.Editor = palletWeight.Editor;
     fisObject.Cdt = palletWeight.Cdt;
     fisObject.Udt = palletWeight.Udt;
     palletWeightRepository.UpdatePalletWeight(fisObject);
 }
示例#2
0
        public IList<PalletWeightMaintain> GetPalletWeightToleranceList(string family)
        {
            IList<PalletWeightMaintain> palettList = new List<PalletWeightMaintain>();
            IList<PalletWeight> fisObjectList = palletWeightRepository.GetAllPalletWeightByFamily(family);
            if (fisObjectList != null)
            {
                foreach (PalletWeight temp in fisObjectList)
                {
                    PalletWeightMaintain palletWeight = new PalletWeightMaintain();
                    palletWeight.Id = temp.Id;
                    palletWeight.Family = temp.FamilyID;
                    palletWeight.Region = temp.Region;
                    palletWeight.Qty = temp.Qty;
                    palletWeight.Weight = temp.Weight;
                    palletWeight.Tolerance = temp.Tolerance;
                    palletWeight.Editor = temp.Editor;
                    palletWeight.Cdt = temp.Cdt;
                    palletWeight.Udt = temp.Udt;

                    palettList.Add(palletWeight);
                }
            }
            return palettList;
        }