Beispiel #1
0
        public OffsetGiaCongBDO DocTheoId(int iD)
        {
            var toChay = new OffsetGiaCongBDO();

            try
            {
                toChay = db.IN_OFFSET_GIA_CONG.Where(x => x.ID == iD).Select(x => new OffsetGiaCongBDO
                {
                    ID                   = x.ID,
                    Ten                  = x.ten_may_in,
                    TenNhaCungCap        = x.ten_nha_cung_cap,
                    TenKhoIn             = x.ten_kho_in,
                    KhoInRongMax         = (int)x.kho_in_rong_max,
                    KhoInDaiMax          = (int)x.kho_in_dai_max,
                    KhoInRongMin         = (int)x.kho_in_rong_max,
                    KhoInDaiMin          = (int)x.kho_in_dai_min,
                    TuTroNhip            = (bool)x.tu_tro_nhip,
                    GiaCongIn            = (int)x.gia_cong_in,
                    SoMatInCoBan         = (int)x.so_mat_in_co_ban,
                    GiaInMoiMatVuotCoBan = (int)x.gia_in_moi_mat_vuot,
                    SoToChayBuHaoCoBan   = (int)x.so_to_chay_bu_hao_co_ban,
                    ThongTinThoDungMayIn = x.thong_tin_nguoi_dung_may,
                    GhiChu               = x.ghi_chu,
                    ThuTu                = (int)x.thu_tu,
                    KhongDung            = (bool)x.khong_dung
                }).SingleOrDefault();
            }
            catch { }
            return(toChay);
        }
Beispiel #2
0
 private static void ChuyenDTOThanhBDO(OffsetGiaCong offsetGiaCongDTO, OffsetGiaCongBDO offsetGiaCongBDO)
 {
     offsetGiaCongBDO.ID                   = offsetGiaCongDTO.ID;
     offsetGiaCongBDO.Ten                  = offsetGiaCongDTO.Ten;
     offsetGiaCongBDO.TenNhaCungCap        = offsetGiaCongDTO.TenNhaCungCap;
     offsetGiaCongBDO.TenKhoIn             = offsetGiaCongDTO.TenKhoIn;
     offsetGiaCongBDO.KhoInRongMax         = offsetGiaCongDTO.KhoInRongMax;
     offsetGiaCongBDO.KhoInDaiMax          = offsetGiaCongDTO.KhoInDaiMax;
     offsetGiaCongBDO.KhoInRongMin         = offsetGiaCongDTO.KhoInRongMin;
     offsetGiaCongBDO.KhoInDaiMin          = offsetGiaCongDTO.KhoInDaiMin;
     offsetGiaCongBDO.TuTroNhip            = offsetGiaCongDTO.TuTroNhip;
     offsetGiaCongBDO.GiaCongIn            = offsetGiaCongDTO.GiaCongIn;
     offsetGiaCongBDO.SoMatInCoBan         = offsetGiaCongDTO.SoMatInCoBan;
     offsetGiaCongBDO.GiaInMoiMatVuotCoBan = offsetGiaCongDTO.GiaInMoiMatVuotCoBan;
     offsetGiaCongBDO.SoToChayBuHaoCoBan   = offsetGiaCongDTO.SoToChayBuHaoCoBan;
     offsetGiaCongBDO.ThongTinThoDungMayIn = offsetGiaCongDTO.ThongTinThoDungMayIn;
     offsetGiaCongBDO.GhiChu               = offsetGiaCongDTO.GhiChu;
     offsetGiaCongBDO.ThuTu                = offsetGiaCongDTO.ThuTu;
     offsetGiaCongBDO.KhongDung            = offsetGiaCongDTO.KhongDung;
 }
Beispiel #3
0
 public void Sua(OffsetGiaCongBDO entityBDO)
 {
     throw new NotImplementedException();
 }