Beispiel #1
0
        public static string Them(KhuonEpKim item)
        {
            KhuonEpKimLogic giayLogic = new KhuonEpKimLogic();
            var             itemBDO   = new KhuonEpKimBDO();

            ChuyenDoiKhuonEpKimDTOThanhBDO(item, itemBDO);
            return(giayLogic.Them(itemBDO));
        }
Beispiel #2
0
 private static void ChuyenDoiKhuonEpKimDTOThanhBDO(KhuonEpKim giay, KhuonEpKimBDO giayBDO)
 {
     giayBDO.ID      = giay.ID;
     giayBDO.Ten     = giay.Ten;
     giayBDO.GiaMua  = giay.GiaMua;
     giayBDO.IDEPKIM = giay.IDEPKIM;
     giayBDO.ThuTu   = giay.ThuTu;
 }
Beispiel #3
0
 //Chuyển đổi
 private static void ChuyenDoiKhuonEpKimBDOThanhDTO(KhuonEpKimBDO giayBDO, KhuonEpKim giay)
 {
     giay.ID       = giayBDO.ID;
     giay.Ten      = giayBDO.Ten;
     giay.DienGiai = giayBDO.DienGiai;
     giay.GiaMua   = giayBDO.GiaMua;
     giay.IDEPKIM  = giayBDO.IDEPKIM;
     giay.ThuTu    = giayBDO.ThuTu;
 }
Beispiel #4
0
 public GiaEpKim(int soLuong, float khoEpRong, float khoEpCao,
                 EpKim epKim, KhuonEpKim khuonEp, NhuEpKim nhuEp)
 {
     this.SoLuong   = soLuong;
     this.KhoEpRong = khoEpRong;
     this.KhoEpCao  = KhoEpCao;
     this.EpKim     = epKim;
     this.KhuonEp   = khuonEp;
     this.NhuEp     = nhuEp;
 }
Beispiel #5
0
        public static KhuonEpKim DocTheoId(int idKhuonEpKim)
        {
            var        khuonEpKimLogic = new KhuonEpKimLogic();
            KhuonEpKim khuonEpKim      = new KhuonEpKim();

            try
            {
                var khuonEpKimBDO = khuonEpKimLogic.DocTheoId(idKhuonEpKim);
                //Chuyen
                ChuyenDoiKhuonEpKimBDOThanhDTO(khuonEpKimBDO, khuonEpKim);
            }
            catch {
            }
            return(khuonEpKim);
        }