protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { string sz_Bill_status_id = extBillStatus.Text; Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO(); string sz_status_code = _obj.GetStatusCode(txtCompanyID.Text, sz_Bill_status_id); //VerificationReceived if (sz_status_code == "vr") { Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO(); ArrayList objAL = new ArrayList(); objAL.Add(txtViewBillNumber.Text); objAL.Add(txtVerificationNotes.Text); objAL.Add(txtCompanyID.Text); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString()); obj.saveVerificationReceivedInformation(objAL); BindGrid(); } //Verification Request if (sz_status_code == "vs") { Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO(); ArrayList objAL = new ArrayList(); objAL.Add(txtViewBillNumber.Text); objAL.Add(txtVerificationNotes.Text); objAL.Add(txtCompanyID.Text); objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString()); obj.SaveVerificationRequest(objAL); BindGrid(); } // Denial status if (sz_status_code == "den") { //txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string UserID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString(); ArrayList objAL = new ArrayList(); string szListOfBillIDs = ""; string szBillNumbers = ""; string SZDENIALUSERID = ""; Boolean flag = false; //for (int i = 0; i < grdBillSearch.Items.Count; i++) //{ // CheckBox chkDenial = ((CheckBox)grdBillSearch.Items[i].Cells[20].FindControl("chkDenial")); // szBillNumbers = "'" + grdBillSearch.Items[i].Cells[1].Text + "'"; // //szListOfBillIDs = "'" + grdBillSearch.Items[i].Cells[2].Text + "'"; // if (chkDenial.Checked) // { // if (flag == false) // { // szListOfBillIDs = "'" + grdBillSearch.Items[i].Cells[1].Text + "'"; // flag = true; // } // else // { // szListOfBillIDs = szListOfBillIDs + ",'" + grdBillSearch.Items[i].Cells[1].Text + "'"; // } // } //} objAL.Add("'" + txtViewBillNumber.Text + "'"); objAL.Add(txtCompanyID.Text); objAL.Add(UserID); objAL.Add(txtVerificationNotes.Text); Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO(); obj.updateBillStatusToDenial(objAL); BindGrid(); } ClearControls(); //Page.ClientScript.RegisterStartupScript(this.GetType(), "ss", "<script language='javascript'> window.parent.document.location.href='Bill_Sys_VerificationsentBills.aspx';window.self.close(); </script>"); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }