Exemplo n.º 1
0
    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();
    }