protected void Page_Load(object sender, EventArgs e) { ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();"); Bill_Sys_RequiredDocumentBO objDocumentBO = new Bill_Sys_RequiredDocumentBO(); PacketID = objDocumentBO.Get_PacketId(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); if (!IsPostBack) { ddlDateValues.SelectedValue = "1"; txtFromDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); txtToDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; txtPacketId.Text = objDocumentBO.Get_PacketId(txtCompanyID.Text); extddlSpeciality.Flag_ID = txtCompanyID.Text; if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "0") { grdPacketing.Columns[3].Visible = false; } BindGrid(); } }
protected void Page_Load(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 { this.con.SourceGrid = grdPacketing; this.txtSearchBox.SourceGrid = grdPacketing; this.grdPacketing.Page = this.Page; this.grdPacketing.PageNumberList = this.con; this.Title = "Bill Packet"; ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();"); ddlServiceDateValues.Attributes.Add("onChange", "javascript:SetServiceDate();"); Bill_Sys_RequiredDocumentBO objDocumentBO = new Bill_Sys_RequiredDocumentBO(); PacketID = objDocumentBO.Get_PacketId(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); if (!IsPostBack) { ddlDateValues.SelectedValue = "1"; txtFromDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); txtToDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); extddlBillStatus.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; txtPacketId.Text = objDocumentBO.Get_PacketId(txtCompanyID.Text); extddlSpeciality.Flag_ID = txtCompanyID.Text; if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "0") { grdPacketing.Columns[2].Visible = false; } 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()); } }