protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         //serviceCSKHCMIS.Service_CSKHCMIS ob = new Service_CSKHCMIS();
         CSKH_CMIS.Service_CSKHCMIS ob = new CSKH_CMIS.Service_CSKHCMIS();
         DataSet ds = ob.find_KHANG("CMIS2_VP", "PA25VY", "chung", "", "");
         //DataSet ds = ob.Get_HDONG_by_KHANG("SONLA", "PA15TX", "PA15TX0006309");
         GridView1.DataSource = ds;
         GridView1.DataBind();
     }
     catch (Exception ex) { Response.Write(ex.Message); }
 }
 protected void Tim_Kiem()
 {
     pnThongTin.Visible = false;
     try
     {
         CSKH_CMIS.Service_CSKHCMIS ob = new CSKH_CMIS.Service_CSKHCMIS();
         DataSet ds = ob.find_KHANG(lbPC.Text, ddDonViQL.SelectedValue, tbTenKH.Text, "", tbMaKH.Text);
         gvKhachHang.DataSource = ds;
         gvKhachHang.DataBind();
         if (gvKhachHang.Rows.Count == 0)
             lbError.Text = "Không tìm thấy khách hàng";
         else
             lbError.Text = string.Format("Kết quả tìm kiếm: {0} khách hàng.", ds.Tables[0].Rows.Count);
     }
     catch (Exception ex) { lbError.Text = "Có lỗi trong quá trình tìm kiếm. " + ex.Message; }
 }