protected void btnLitigantion_Click(object sender, EventArgs e) { ArrayList arrayLists = new ArrayList(); for (int i = 0; i < this.grdvDenial.Rows.Count; i++) { if (((CheckBox)this.grdvDenial.Rows[i].FindControl("ChkLitigantion")).Checked) { Bill_sys_litigantion billSysLitigantion = new Bill_sys_litigantion(); string text = this.grdvDenial.Rows[i].Cells[0].Text; arrayLists.Add(text); } } (new Bill_Sys_NF3_Template()).UpdateLitigantion(arrayLists, this.txtCompanyID.Text); this.usrMessage.PutMessage("Selected Bill sended litigation!"); this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); this.usrMessage.Show(); this.BindGrid(); }
protected void btnLitigantion_Click(object sender, EventArgs e) { ArrayList _objarr = new ArrayList(); for (int i = 0; i < grdInsuranceCompany.Rows.Count; i++) { CheckBox chk = (CheckBox)grdInsuranceCompany.Rows[i].FindControl("ChkLitigantion"); if (chk.Checked) { Bill_sys_litigantion _objlitigantion = new Bill_sys_litigantion(); string BillNo = grdInsuranceCompany.DataKeys[i][0].ToString(); _objarr.Add(BillNo); } } Bill_Sys_NF3_Template objlitigate = new Bill_Sys_NF3_Template(); objlitigate.UpdateLitigantion(_objarr, txtCompanyID.Text); usrMessage.PutMessage("Selected Bill sended litigation!"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); grdInsuranceCompany.XGridBindSearch(); }