private void BindGrid() { 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()); } _referalReminder = new Bill_Sys_ReferalReminder(); ArrayList _arrayList = new ArrayList(); try { _arrayList.Add(extddlReferalList.Text); _arrayList.Add(extddlProceduralCode.Text); _arrayList.Add(txtCompanyID.Text); grdReferalReminder.DataSource = _referalReminder.GetReminderList(_arrayList); grdReferalReminder.DataBind(); } 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()); } }
protected void grdReferalReminder_ItemCommand(object source, DataGridCommandEventArgs 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()); } _referalReminder = new Bill_Sys_ReferalReminder(); try { Button btnDone = new Button(); btnDone = (Button)grdReferalReminder.Items[e.Item.ItemIndex].Cells[12].FindControl("btnDone"); if (btnDone.Text == "Done") { TextBox txtDt = new TextBox(); txtDt = (TextBox)grdReferalReminder.Items[e.Item.ItemIndex].Cells[11].FindControl("txtDate"); if (ValidateTextDate(txtDt.Text)) { _referalReminder.updateReminder(grdReferalReminder.Items[e.Item.ItemIndex].Cells[0].Text, grdReferalReminder.Items[e.Item.ItemIndex].Cells[9].Text); lblMsg.Visible = true; lblMsg.Text = "Changes Saved Successfully ...!"; } else { lblMsg.Visible = true; lblMsg.Text = "Invalid Date ...!"; } } BindGrid(); } 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()); } }
private void UpdateMethod() { 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()); } ArrayList _arrayList; _bill_Sys_ReferalReminder = new Bill_Sys_ReferalReminder(); try { _arrayList = new ArrayList(); for (int i = 0; i < lstProcedureCode.Items.Count; i++) { if (lstProcedureCode.Items[i].Selected) { _arrayList.Clear(); _arrayList.Add(extddlReferalList.Text); _arrayList.Add(lstProcedureCode.Items[i].Value); _arrayList.Add(txtReminderDate.Text); _arrayList.Add(txtScheduleDate.Text); _arrayList.Add(txtUserID.Text); _arrayList.Add(txtUserID.Text); _arrayList.Add(txtCompanyID.Text); _bill_Sys_ReferalReminder.saveReminder(_arrayList); } } } 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()); } }
protected void extddlProceduralGroup_extendDropDown_SelectedIndexChanged(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 { _bill_Sys_ReferalReminder = new Bill_Sys_ReferalReminder(); lstProcedureCode.DataSource = _bill_Sys_ReferalReminder.GetProcedureCode(extddlProceduralGroup.Text, txtCompanyID.Text).Tables[0]; lstProcedureCode.DataValueField = "CODE"; lstProcedureCode.DataTextField = "DESCRIPTION"; lstProcedureCode.DataBind(); if (lstProcedureCode.Items.Count > 0) { lstProcedureCode.Items[0].Selected = true; } } 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()); } }