public GiaCanGap(int soLuong, int soDuongCan, int tyLeMarkUp, string donViTinh, CanGap canGap) { this.SoLuong = soLuong; this.SoDuongCan = soDuongCan; this.CanGap = canGap; this.TyLeMarkUp = tyLeMarkUp; this.DonViTinh = donViTinh; }
public static string Sua(CanGap canGap) { CanGapLogic canGapLogic = new CanGapLogic(); var itemBDO = new CanGapBDO(); ChuyenDoiGiayDTOThanhBDO(canGap, itemBDO); return(canGapLogic.Sua(itemBDO)); }
private static void ChuyenDoiGiayBDOThanhDTO(CanGapBDO canGapBDO, CanGap canGapDTO) { canGapDTO.ID = canGapBDO.ID; canGapDTO.Ten = canGapBDO.Ten; canGapDTO.BHR = canGapBDO.BHR; canGapDTO.TocDoConGio = canGapBDO.TocDoConGio; canGapDTO.ThoiGianChuanBi = canGapBDO.ThoiGianChuanBi; canGapDTO.DayLoiNhuan = canGapBDO.DayLoiNhuan; canGapDTO.DaySoLuong = canGapBDO.DaySoLuong; canGapDTO.ThuTu = canGapBDO.ThuTu; }
private static void ChuyenDoiGiayDTOThanhBDO(CanGap canGapDTO, CanGapBDO canGapBDO) { canGapBDO.ID = canGapDTO.ID; canGapBDO.Ten = canGapDTO.Ten; canGapBDO.BHR = canGapDTO.BHR; canGapBDO.TocDoConGio = canGapDTO.TocDoConGio; canGapBDO.ThoiGianChuanBi = canGapDTO.ThoiGianChuanBi; canGapBDO.DayLoiNhuan = canGapDTO.DayLoiNhuan; canGapBDO.DaySoLuong = canGapDTO.DaySoLuong; canGapBDO.Ma_01 = canGapDTO.Ma_01; canGapBDO.DonViTinh = canGapDTO.DonViTinh; canGapBDO.DaySoLuongNiemYet = canGapDTO.DaySoLuongNiemYet; canGapBDO.MotDuongCanTangThoiGianChuanBi = canGapDTO.MotDuongCanTangThoiGianChuanBi; canGapBDO.ThuTu = canGapDTO.ThuTu; }
public static CanGap DocTheoId(int iD) { var canPhuLogic = new CanGapLogic();; CanGap canPhu = new CanGap(); try { var canPhuBDO = canPhuLogic.LayTheoId(iD); //Chuyen ChuyenDoiGiayBDOThanhDTO(canPhuBDO, canPhu); } catch { } return(canPhu); }
public static List <DichVuThanhPham> DocTatCaDichVuThanhPham() { var lst = new List <DichVuThanhPham>(); var i = 0; DichVuThanhPham dvTP; //Cán phủ foreach (CanPhu cp in CanPhu.DocTatCa()) { i += 1; dvTP = new DichVuThanhPham(i, cp.Ten, cp.ID, cp.DonViTinh, cp.DaySoLuongNiemYet, LoaiThanhPhamS.CanPhu); lst.Add(dvTP); } //Cân gấp foreach (CanGap cp in CanGap.DocTatCa()) { i += 1; dvTP = dvTP = new DichVuThanhPham(i, cp.Ten, cp.ID, cp.DonViTinh, cp.DaySoLuongNiemYet, LoaiThanhPhamS.CanGap); lst.Add(dvTP); } //Đóng cuốn foreach (DongCuon cp in DongCuon.DocTatCa()) { i += 1; dvTP = dvTP = new DichVuThanhPham(i, cp.Ten, cp.ID, cp.DonViTinh, cp.DaySoLuongNiemYet, LoaiThanhPhamS.DongCuon); lst.Add(dvTP); } //Ép kim foreach (EpKim cp in EpKim.DocTatCa()) { i += 1; dvTP = dvTP = new DichVuThanhPham(i, cp.Ten, cp.ID, cp.DonViTinh, cp.DaySoLuongNiemYet, LoaiThanhPhamS.EpKim); lst.Add(dvTP); } return(lst.OrderBy(x => x.ID).ToList()); }
public GiaCanGap(int soLuong, CanGap canGap, int tyLeMarkUp) { this.SoLuong = soLuong; this.CanGap = canGap; this.TyLeMarkUp = tyLeMarkUp; }