Exemplo n.º 1
0
        public ActionResult EditHoSo(long id)
        {
            DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>();
            CCTC_THANHPHANBusiness  = Get <CCTC_THANHPHANBusiness>();
            HOSOCANBOBusiness       = Get <HOSOCANBOBusiness>();
            HoSoCanBoVM model = new HoSoCanBoVM();

            model.HoSo                = HOSOCANBOBusiness.Find(id);
            model.LstGioiTinh         = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIOITINH", 0, model.HoSo.GIOITINH.HasValue ? model.HoSo.GIOITINH.Value : 0);
            model.LstDanToc           = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_DANTOC", 0, model.HoSo.DANTOC.HasValue ? model.HoSo.DANTOC.Value : 0);
            model.LstTonGiao          = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TONGIAO", 0, model.HoSo.TONGIAO.HasValue ? model.HoSo.TONGIAO.Value : 0);
            model.LstNgach            = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGACH", 0, model.HoSo.NGACHCONGCHUCVIENCHUC.HasValue ? model.HoSo.NGACHCONGCHUCVIENCHUC.Value : 0);
            model.LstTrinhDoGiaoDuc   = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOGIAODUC", 0, model.HoSo.TRINHDOGIAODUC.HasValue ? model.HoSo.TRINHDOGIAODUC.Value : 0);
            model.LstTrinhDoChuyenMon = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOCHUYENMON", 0, model.HoSo.TRINHDOCHUYENMONCAONHAT.HasValue ? model.HoSo.TRINHDOCHUYENMONCAONHAT.Value : 0);
            model.LstLyLuanChinhTri   = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_LYLUANCHINHTRI", 0, model.HoSo.LYLUANCHINHTRI.HasValue ? model.HoSo.LYLUANCHINHTRI.Value : 0);
            model.LstQuanLyNhaNuoc    = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_QUANLYNHANUOC", 0, model.HoSo.QUANLYNHANUOC.HasValue ? model.HoSo.QUANLYNHANUOC.Value : 0);
            model.LstNgoaiNgu         = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGOAINGU", 0, model.HoSo.NGOAINGU.HasValue ? model.HoSo.NGOAINGU.Value : 0);
            model.LstTinHoc           = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHOC", 0, model.HoSo.TINHOC.HasValue ? model.HoSo.TINHOC.Value : 0);
            model.LstTinhTrangSucKhoe = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHTRANGSUCKHOE", 0, model.HoSo.SUCKHOE.HasValue ? model.HoSo.SUCKHOE.Value : 0);
            model.LstNhomMau          = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NHOMMAU", 0, model.HoSo.NHOMMAU.HasValue ? model.HoSo.NHOMMAU.Value : 0);
            model.LstGiaDinhChinhSach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIADINHCHINHSACH", 0, model.HoSo.GIADINHCHINHSACH.HasValue ? model.HoSo.GIADINHCHINHSACH.Value : 0);
            model.LstChucVu           = DM_DANHMUC_DATABusiness.DsByMaNhom("DMCHUCVU", 0, model.HoSo.CHUCVUHIENTAI.HasValue ? model.HoSo.CHUCVUHIENTAI.Value : 0);
            model.LstDonViHienTai     = CCTC_THANHPHANBusiness.GetDropDownList(model.HoSo.DONVI_ID.HasValue ? model.HoSo.DONVI_ID.Value : 0);
            return(View("Create", model));
        }
Exemplo n.º 2
0
        public ActionResult Create()
        {
            DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>();
            CCTC_THANHPHANBusiness  = Get <CCTC_THANHPHANBusiness>();
            HoSoCanBoVM model = new HoSoCanBoVM();

            model.HoSo                = new HOSO_CANBO_THONGTINCHUNG();
            model.LstGioiTinh         = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIOITINH", 0);
            model.LstDanToc           = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_DANTOC", 0);
            model.LstTonGiao          = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TONGIAO", 0);
            model.LstNgach            = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGACH", 0);
            model.LstTrinhDoGiaoDuc   = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOGIAODUC", 0);
            model.LstTrinhDoChuyenMon = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOCHUYENMON", 0);
            model.LstLyLuanChinhTri   = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_LYLUANCHINHTRI", 0);
            model.LstQuanLyNhaNuoc    = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_QUANLYNHANUOC", 0);
            model.LstNgoaiNgu         = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGOAINGU", 0);
            model.LstTinHoc           = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHOC", 0);
            model.LstTinhTrangSucKhoe = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHTRANGSUCKHOE", 0);
            model.LstNhomMau          = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NHOMMAU", 0);
            model.LstGiaDinhChinhSach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIADINHCHINHSACH", 0);
            model.LstChucVu           = DM_DANHMUC_DATABusiness.DsByMaNhom("DMCHUCVU", 0);
            model.LstDonViHienTai     = CCTC_THANHPHANBusiness.GetDropDownList();
            return(View(model));
        }