public GiaDongCuon(int soLuong, int tyLeMarkUpSales, string donViTinh, DongCuon dongCuon) { this.SoLuong = soLuong; this.DongCuon = dongCuon; this.TyLeMarkUp = tyLeMarkUpSales; this.DonViTinh = donViTinh; }
public static string Sua(DongCuon canGap) { var dongCuonLogic = new DongCuonLogic(); var itemBDO = new DongCuonBDO(); ChuyenDoiGiayDTOThanhBDO(canGap, itemBDO); return(dongCuonLogic.Sua(itemBDO)); }
public static DongCuon DocTheoId(int iD) { var canPhuLogic = new DongCuonLogic();; DongCuon dongCuon = new DongCuon(); try { var dongCuonBDO = canPhuLogic.DocTheoId(iD); //Chuyen ChuyenDoiGiayBDOThanhDTO(dongCuonBDO, dongCuon); } catch { } return(dongCuon); }
private static void ChuyenDoiGiayDTOThanhBDO(DongCuon dongCuonDTO, DongCuonBDO dongCuonBDO) { dongCuonBDO.ID = dongCuonDTO.ID; dongCuonBDO.Ten = dongCuonDTO.Ten; dongCuonBDO.TieuDe = dongCuonDTO.TieuDe; dongCuonBDO.BHR = dongCuonDTO.BHR; dongCuonBDO.TocDoCuonGio = dongCuonDTO.TocDoCuonGio; dongCuonBDO.ThoiGianChuanBi = dongCuonDTO.ThoiGianChuanBi; dongCuonBDO.BiaToDon = dongCuonDTO.BiaToDon; dongCuonBDO.RuotToDon = dongCuonDTO.RuotToDon; dongCuonBDO.DayLoiNhuan = dongCuonDTO.DayLoiNhuan; dongCuonBDO.DaySoLuong = dongCuonDTO.DaySoLuong; dongCuonBDO.Ma_01 = dongCuonDTO.Ma_01; dongCuonBDO.DonViTinh = dongCuonDTO.DonViTinh; dongCuonBDO.DaySoLuongNiemYet = dongCuonDTO.DaySoLuongNiemYet; dongCuonBDO.ThuTu = dongCuonDTO.ThuTu; }
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()); }