Example #1
0
        public static string Sua(MayBe canGap)
        {
            var mayBeLogic = new MayBeLogic();
            var itemBDO    = new MayBeBDO();

            ChuyenDoiEpKimDTOThanhBDO(canGap, itemBDO);
            return(mayBeLogic.Sua(itemBDO));
        }
Example #2
0
        public static string Them(MayBe mayBe)
        {
            var mayBeLogic = new MayBeLogic();
            var itemBDO    = new MayBeBDO();

            ChuyenDoiEpKimDTOThanhBDO(mayBe, itemBDO);
            return(mayBeLogic.Them(itemBDO));
        }
Example #3
0
        public GiaBe(int soLuong,
                     MayBe mayBe, KhuonBe khuonBe, int tyLeMarkUpSales)
        {
            this.SoLuong = soLuong;

            this.MayBe      = mayBe;
            this.KhuonBe    = khuonBe;
            this.TyLeMarkUp = tyLeMarkUpSales;
        }
Example #4
0
        private static void ChuyenDoiEpKimDTOThanhBDO(MayBe epKimDTO, MayBeBDO epKimBDO)
        {
            epKimBDO.ID                      = epKimDTO.ID;
            epKimBDO.Ten                     = epKimDTO.Ten;
            epKimBDO.BHR                     = epKimDTO.BHR;
            epKimBDO.TocDoTamGio             = epKimDTO.TocDoTamGio;
            epKimBDO.ThoiGianChuanBi         = epKimDTO.ThoiGianChuanBi;
            epKimBDO.PhiNguyenVatLieuChuanBi = epKimDTO.PhiNVLChuanBi;
            epKimBDO.DayLoiNhuan             = epKimDTO.DayLoiNhuan;
            epKimBDO.DaySoLuong              = epKimDTO.DaySoLuong;

            epKimBDO.Ma_01             = epKimDTO.Ma_01;
            epKimBDO.DonViTinh         = epKimDTO.DonViTinh;
            epKimBDO.DaySoLuongNiemYet = epKimDTO.DaySoLuongNiemYet;
            epKimBDO.ThuTu             = epKimDTO.ThuTu;
        }
Example #5
0
        public static MayBe DocTheoId(int iD)
        {
            var   mayBeLogic = new MayBeLogic();;
            MayBe mayBe      = new MayBe();

            try
            {
                var canPhuBDO = mayBeLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiEpKimBDOThanhDTO(canPhuBDO, mayBe);
            }
            catch
            {
            }
            return(mayBe);
        }