Beispiel #1
0
        void LoadInfor(string maclaim)
        {
            ClaimDAO  cl = new ClaimDAO();
            DataTable dt = new DataTable();

            dt = cl.GetBasicInfor(maclaim);
            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                txtNBH.Text           = dr[2].ToString();
                txtDonVi.Text         = dr[3].ToString();
                txtTenKhachHang.Text  = dr[4].ToString();
                txtDiaChi.Text        = dr[5].ToString();
                txtNguoiDaiDien.Text  = dr[6].ToString();
                txtPhone.Text         = dr[7].ToString();
                txtFax.Text           = dr[8].ToString();
                txtEmail.Text         = dr[9].ToString();
                txtKinhDoanh.Text     = dr[10].ToString();
                txtPolicyNo.Text      = dr[11].ToString();
                txtPeriodfrom.Text    = dr[12].ToString();
                txtPremises.Text      = dr[13].ToString();
                txtDateofloss.Text    = dr[14].ToString();
                txttenloaihinhtt.Text = dr["LoaiHinhTonThat"].ToString();
                maLHTT = int.Parse(dr["ID_LoaiHinhTonThat"].ToString());
            }
        }