예제 #1
0
        void loadCover(string id)
        {
            DataTable dt = new DataTable();

            dt = cldao.ClaimCover(id);
            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                txtBaoCaoTruoc.Text       = dr[0].ToString();
                txtHDBH.Text              = dr[1].ToString();
                txtTenInsured.Text        = dr[2].ToString();
                txtDiaChi.Text            = dr[3].ToString();
                txtLinhVucKinhDoanh.Text  = dr[4].ToString();
                txtDiaDiemTonThat.Text    = dr[5].ToString();
                txtNgayTonThat.Text       = dr[6].ToString();
                txtNguyenNhan.Text        = dr[7].ToString();
                txtPhamViTT.Text          = dr[8].ToString();
                txtSumInsured.Text        = dr[9].ToString();
                txtThoiHanBH.Text         = dr[10].ToString();
                txtMucMienThuong.Text     = dr[11].ToString();
                txtDieuKhoanBoSung.Text   = dr[12].ToString();
                txtKhieuNaiNDBH.Text      = dr[13].ToString();
                txtDuPhongBoiThuong.Text  = dr[14].ToString();
                txtTinhToanDieuChinh.Text = dr[15].ToString();
                txtTruMucMienThuong.Text  = dr[16].ToString();
                txtDeXuatBoiThuong.Text   = dr[17].ToString();
                txtTypePolicy.Text        = dr[18].ToString();
            }
        }