/// <summary> /// In the Page Load Dropdownlist for PaymentType is added by calling the GetPaymentType in Payment WebService /// The Received ReceiptNumber is Passed to the ReportCriteria and the GetReceiptdetails is Called /// </summary> protected void Page_Load(object sender, System.EventArgs e) { // SSO Integration - CH1 Start -Added the below code to clear the cache of the page to prevent the page loading on browser back button hit Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); Response.Cache.SetNoStore(); // SSO Integration - CH1 End -Added the below code to clear the cache of the page to prevent the page loading on browser back button hit lblErrMsg.Visible = false; if (!Page.IsPostBack) { //for adding the PaymentType to the PaymentType dropdownlist Order DataConnection = new Order(Page); DataTable dtbPaymentType; dtbPaymentType = DataConnection.LookupDataSet("Payment", "GetPaymentType", new object[] { ColumnFlag, User.Identity.Name }).Tables["PAY_Payment_Type"]; PaymentType.DataSource = dtbPaymentType; PaymentType.DataBind(); //For displaying the ReceiptDetails OrderClasses.ReportCriteria ReceiptCrit1 = new OrderClasses.ReportCriteria(); strReceiptNumber = Request.QueryString["ReceiptNumber"]; ReceiptCrit1.ReceiptNumber = strReceiptNumber; TurninClasses.Service.Turnin InsSvc = new TurninClasses.Service.Turnin(); DataSet dsReceiptDetails = InsSvc.GetReceiptDetails(ReceiptCrit1); DataTable dtbReceiptDetails = dsReceiptDetails.Tables[0]; if (dtbReceiptDetails.Rows.Count > 0) { lblReceiptDate.Text = dtbReceiptDetails.Rows[0]["ReceiptDate"].ToString(); lblReceiptNumber.Text = dtbReceiptDetails.Rows[0]["ReceiptNumber"].ToString(); lblUsers.Text = dtbReceiptDetails.Rows[0]["UFirstName"].ToString() + ", " + dtbReceiptDetails.Rows[0]["ULastName"].ToString() + " (" + dtbReceiptDetails.Rows[0]["RepID"].ToString() + ") - " + dtbReceiptDetails.Rows[0]["UserName"].ToString(); lblPaymentMethod.Text = dtbReceiptDetails.Rows[0]["PaymentName"].ToString(); //START CSR 3824-ch1 - Added by Cognizant on 08/30/2005 to //Update the Datatable with the Receipt Changes Performed during Reissue if (Session["ReissueInfo"] != null) { //Modified on 09/13/2005 to check whether the ReceiptNumber in the Session and Querystring are simillar if (((OrderClasses.ReportCriteria)Session["ReissueInfo"]).ReceiptNumber == strReceiptNumber) { UpdateReceiptInfo(ref dtbReceiptDetails, (OrderClasses.ReportCriteria)Session["ReissueInfo"], dtbPaymentType); } else { Session["ReissueInfo"] = null; Session["VoidInfo"] = null; Session["PaymentType"] = null; } } //END setSelectedIndex(PaymentType, dtbReceiptDetails.Rows[0]["PaymentID"].ToString()); DataView dv = dtbReceiptDetails.DefaultView; ReceiptsRepeater.DataSource = dv; ReceiptsRepeater.DataBind(); } } }