Exemple #1
0
        void PUNADataEditor_Ok(object sender, EventArgs e)
        {
            try
            {
                PUNAcknowledgementInformation puna = (PUNAcknowledgementInformation)PUNADataEditor.DataSource;
                PUNWrapper.AcknowledgePickupNotice(puna);//, new AuditTrailWrapper("Initiate PUN Process",
                //new object[][]{new object[]{pickupNotice.PUNAInformation, puna}}));

                PageDataTransfer reportTransfer = new PageDataTransfer(HttpContext.Current.Request.ApplicationPath + "/ReportViewerForm.aspx");
                reportTransfer.TransferData["TransactionId"]    = puna.TransactionId;
                reportTransfer.TransferData["IsGINTransaction"] = false;
                reportTransfer.TransferData["RequestedReport"]  = "rptPUNTrackingReport";
                reportTransfer.TransferData["ReturnPage"]       = transferedData.GetTransferedData("ReturnPage");
                reportTransfer.PersistToSession();
                ScriptManager.RegisterStartupScript(this,
                                                    this.GetType(),
                                                    "ShowReport",
                                                    "<script type=\"text/javascript\">" +
                                                    string.Format("javascript:window.open(\"ReportViewerForm.aspx?id={0}\", \"_blank\",\"height=400px,width=600px,top=0,left=0,resizable=yes,scrollbars=yes\");", Guid.NewGuid()) +
                                                    string.Format("location.href = '{0}';", transferedData.GetTransferedData("ReturnPage")) +
                                                    "</script>",
                                                    false);

                GINProcessWrapper.RemoveGINProcessInformation();
            }
            catch (Exception ex)
            {
                errorDisplayer.ShowErrorMessage(ex.Message);
            }
        }
Exemple #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();
            transferedData         = new PageDataTransfer(Request.Path);
            PUNADataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("PickupNoticeAkcnowledged", "PUNAcknowledgement");
            PUNADataEditor.Ok     += new EventHandler(PUNADataEditor_Ok);
            PUNADataEditor.Cancel += new EventHandler(PUNADataEditor_Cancel);
            try
            {
                pickupNotice          = PUNWrapper.GetPUN(IsPostBack);
                PUNADataEditor.Lookup = pickupNotice.LookupSource;

                PUNADataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }