Пример #1
0
        void load_DropList()
        {
            if (!this.IsPostBack)
            {
                // Giam dinh vien
                DataTable dt = gdv.DanhSachGiamDinhVien();
                drSurveyor.DataSource     = dt;
                drSurveyor.DataValueField = "ID_GDV";
                drSurveyor.DataTextField  = "TenGDV";
                drSurveyor.DataBind();

                // nha bao hiem
                NhaBHDAO nbhdao = new NhaBHDAO();
                drInsurer.DataSource     = nbhdao.DSCongTyTong();
                drInsurer.DataValueField = "ID_NhaBH";
                drInsurer.DataTextField  = "TenNhaBH";
                drInsurer.DataBind();

                // loai hinh ton that
                drTypeofloss.DataSource     = lhtt.DSLoaiHinhTT();
                drTypeofloss.DataValueField = "ID_LoaiHinhTonThat";
                drTypeofloss.DataTextField  = "LoaiHinhTonThat";
                drTypeofloss.DataBind();
            }
        }
        void load_DropList()
        {
            if (!this.IsPostBack)
            {
                // Giam dinh vien
                GiamDinhVienDAO gdv = new GiamDinhVienDAO();
                DataTable       dt  = gdv.DanhSachGiamDinhVien();
                drGDV1.DataSource     = dt;
                drGDV1.DataValueField = "ID_GDV";
                drGDV1.DataTextField  = "TenGDV";
                drGDV1.DataBind();

                drGDV2.DataSource     = dt;
                drGDV2.DataValueField = "ID_GDV";
                drGDV2.DataTextField  = "TenGDV";
                drGDV2.DataBind();

                drGDV3.DataSource     = dt;
                drGDV3.DataValueField = "ID_GDV";
                drGDV3.DataTextField  = "TenGDV";
                drGDV3.DataBind();

                // nha bao hiem
                NhaBHDAO nbhdao = new NhaBHDAO();
                drNBH.DataSource     = nbhdao.DSCongTyTong();
                drNBH.DataValueField = "ID_NhaBH";
                drNBH.DataTextField  = "TenNhaBH";
                drNBH.DataBind();

                // khach hang
                KhachHangDAO khdao = new KhachHangDAO();
                drKH.DataSource     = khdao.DSNguoiDuocBaoHiem();
                drKH.DataValueField = "ID_KhachHang";
                drKH.DataTextField  = "TenKhachHang";
                drKH.DataBind();

                // loai hinh ton that
                LoaiHinhTonThatDAO lhTTdao = new LoaiHinhTonThatDAO();
                drLoaiHinhTonThat.DataSource     = lhTTdao.DSLoaiHinhTT();
                drLoaiHinhTonThat.DataValueField = "ID_LoaiHinhTonThat";
                drLoaiHinhTonThat.DataTextField  = "LoaiHinhTonThat";
                drLoaiHinhTonThat.DataBind();
                // giai doan thuc hien
                GiaiDoanDAO gddao = new GiaiDoanDAO();
            }
        }
Пример #3
0
 void loadDS()
 {
     grDSLoaiHinhTT.DataSource = lhdao.DSLoaiHinhTT();
     grDSLoaiHinhTT.DataBind();
 }