예제 #1
0
 //Chuyển đổi
 private static void ChuyenDoiBDOThanhDTO(ToBoiBiaCungBDO toBoiBiaCungBDO, ToBoiBiaCung toBoiBiaCung)
 {
     toBoiBiaCung.ID       = toBoiBiaCungBDO.ID;
     toBoiBiaCung.Ten      = toBoiBiaCungBDO.Ten;
     toBoiBiaCung.DoDayCm  = toBoiBiaCungBDO.DoDayCm;
     toBoiBiaCung.GiaMuaTo = toBoiBiaCungBDO.GiaMuaTo;
     toBoiBiaCung.ThuTu    = toBoiBiaCungBDO.ThuTu;
 }
예제 #2
0
        public static string Sua(ToBoiBiaCung item)
        {
            var toLotLogic = new ToBoiBiaCungLogic();
            var itemBDO    = new ToBoiBiaCungBDO();

            ChuyenDoiItemDTOThanhBDO(item, itemBDO);
            return(toLotLogic.Sua(itemBDO));
        }
예제 #3
0
 public GiaBoiBiaCung(int soLuongTam, BoiBiaCung boiBiaCung,
                      float tamRong, float tamCao, ToBoiBiaCung toBoi, int soToBoiTrenMoiBia, int tyLeMarkUpSales)
 {
     this.SoLuong       = soLuongTam;
     this.TamRong       = tamRong;
     this.TamCao        = tamCao;
     this.MayBoiBiaCung = boiBiaCung;
     this.ToBoi         = toBoi;
     this.SoToBoiMoiBia = soToBoiTrenMoiBia;
     this.TyLeMarkUp    = tyLeMarkUpSales;
 }
예제 #4
0
        public static ToBoiBiaCung DocTheoId(int idKhuonEpKim)
        {
            var toBoiBCLogic = new ToBoiBiaCungLogic();
            var toBoiBC      = new ToBoiBiaCung();

            try
            {
                var khuonEpKimBDO = toBoiBCLogic.DocTheoId(idKhuonEpKim);
                //Chuyen
                ChuyenDoiBDOThanhDTO(khuonEpKimBDO, toBoiBC);
            }
            catch {
            }
            return(toBoiBC);
        }