Ejemplo n.º 1
0
        private void btnNext_Click(object sender, System.EventArgs e)
        {
            string nextPage        = String.Empty;
            string appendOrReplace = String.Empty;
            bool   PODReceived     = false;

            if (this.rblOperation.SelectedValue == "0")
            {
                appendOrReplace = "S";
                nextPage        = IsNewDynamicWebTwainLicensed ? "scanDocumentNew.aspx" : "scanDocument.aspx";
            }
            else if (this.rblOperation.SelectedValue == "1")
            {
                appendOrReplace = "U";
                nextPage        = "uploadDocument.aspx";
            }
            else if (this.rblOperation.SelectedValue == "2")
            {
                // Skip the scanning page
                Orchestrator.Facade.ReferenceData facForm = new Orchestrator.Facade.ReferenceData();
                Entities.FormType formType = facForm.GetForFormTypeId(this.ScannedFormTypeId);

                nextPage        = formType.FormTypePage;
                appendOrReplace = "N";
            }

            if (this.rblAppandOReplace.SelectedValue == "0")
            {
                appendOrReplace += "R";
            }
            else if (this.rblAppandOReplace.SelectedValue == "1")
            {
                appendOrReplace += "A";
            }

            nextPage += "?ScannedFormId=" + this.ScannedFormId.ToString();
            nextPage += "&ScannedFormTypeId=" + this.ScannedFormTypeId.ToString();
            nextPage += "&JobId=" + this.JobId.ToString();;
            nextPage += "&OrderId=" + this.OrderId.ToString();;
            nextPage += "&OrgId=" + this.OrganisationIdentityId.ToString();
            nextPage += "&OrgDocId=" + this.OrganisationDocumentId.ToString();
            nextPage += "&CollectDropId=" + this.CollectDropId.ToString();
            nextPage += "&PointId=" + this.PointId.ToString();
            nextPage += "&ManifestId=" + this.ManifestId.ToString();
            nextPage += "&DeHireReceiptId=" + this.DehireReceiptId.ToString();
            nextPage += "&DHNo=" + this.DehireReceiptNumber.ToString();
            nextPage += "&AppendOrReplace=" + appendOrReplace;
            nextPage += "&PODReceived=" + PODReceived;

            if (this.Request.QueryString["dcb"] != null)
            {
                nextPage += "&dcb=" + this.Request.QueryString["dcb"].ToString();
            }

            nextPage += "&WizardBackUrl=" + HttpUtility.UrlEncode(Request.Url.PathAndQuery);

            Response.Redirect(nextPage);
        }
Ejemplo n.º 2
0
        //--------------------------------------------------------------------------

        private void btnNext_Click(object sender, System.EventArgs e)
        {
            if (!String.IsNullOrEmpty(this.FileName))
            {
                if (this.ScannerId == -1)
                {
                    if (!String.IsNullOrEmpty(this.hidSelectedScannerID.Value))
                    {
                        HttpCookie scannerCookie = new HttpCookie(cookieScanner,
                                                                  this.hidSelectedScannerID.Value);

                        scannerCookie.Expires = DateTime.Today.AddYears(50);
                        Response.Cookies.Add(scannerCookie);
                    }
                }

                Orchestrator.Facade.ReferenceData facForm = new Orchestrator.Facade.ReferenceData();
                Entities.FormType formType = facForm.GetForFormTypeId(this.ScannedFormTypeId);

                string nextPage = formType.FormTypePage;

                nextPage += "?ScannedFormId=" + this.ScannedFormId.ToString();
                nextPage += "&ScannedFormTypeId=" + this.ScannedFormTypeId.ToString();
                nextPage += "&JobId=" + this.JobId;
                nextPage += "&OrderId=" + this.OrderId;
                nextPage += "&OrgId=" + this.OrganisationIdentityId;
                nextPage += "&OrgDocId=" + this.OrganisationDocumentId;
                nextPage += "&CollectDropId=" + this.CollectDropId;
                nextPage += "&PointId=" + this.PointId;
                nextPage += "&ManifestId=" + this.ManifestId;
                nextPage += "&DeHireReceiptId=" + this.DehireReceiptId;
                nextPage += "&DHNo=" + this.DehireReceiptNumber;
                nextPage += "&AppendOrReplace=" + this.AppendOrReplace;
                nextPage += "&FileName=" + this.FileName;

                if (this.Request.QueryString["dcb"] != null)
                {
                    nextPage += "&dcb=" + this.Request.QueryString["dcb"].ToString();
                }

                nextPage += "&WizardBackUrl=" + HttpUtility.UrlEncode(Request.Url.PathAndQuery);

                Response.Redirect(nextPage);
            }
        }
Ejemplo n.º 3
0
        //--------------------------------------------------------------------------

        private void btnNext_Click(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(this.FileName))
            {
                Orchestrator.Facade.ReferenceData facForm = new Orchestrator.Facade.ReferenceData();
                Entities.FormType formType = facForm.GetForFormTypeId(this.ScannedFormTypeId);

                string nextPage = formType.FormTypePage;

                nextPage += "?ScannedFormId=" + this.ScannedFormId.ToString() + "&";

                nextPage += "&ScannedFormTypeId=" + this.ScannedFormTypeId.ToString();
                nextPage += "&JobId=" + this.JobId;
                nextPage += "&OrderId=" + this.OrderId;
                nextPage += "&OrgId=" + this.OrganisationIdentityId;
                nextPage += "&OrgDocId=" + this.OrganisationDocumentId;
                nextPage += "&CollectDropId=" + this.CollectDropId;
                nextPage += "&PointId=" + this.PointId;
                nextPage += "&ManifestId=" + this.ManifestId;
                nextPage += "&DeHireReceiptId=" + this.DehireReceiptId;
                nextPage += "&DHNo=" + this.DehireReceiptNumber;
                nextPage += "&AppendOrReplace=" + this.AppendOrReplace;
                nextPage += "&FileName=" + this.FileName;

                if (this.Request.QueryString["dcb"] != null)
                {
                    nextPage += "&dcb=" + this.Request.QueryString["dcb"].ToString();
                }

                nextPage += "&WizardBackUrl=" + HttpUtility.UrlEncode(Request.Url.PathAndQuery);

                Response.Redirect(nextPage);
            }
            else
            {
                this.lblError.Text = "No upload file path found.";
            }
        }