Exemplo n.º 1
0
    private string[] GetNums(string flag)
    {
        string[] query = allKey.Value.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

        string[] param = null;

        if (query.Length == 4)
        {
            param = new string[] { Request["ID"], Request["Company"], Request["Currency"], Request["type"] };
        }
        else
        {
            param = new string[query.Length];
            for (int i = 0; i < query.Length; ++i)
            {
                param[i] = Request[query[query.Length - 1 - i]];
            }
        }

        Reportparameters rpm = new Reportparameters(hidInvDraft.Text);

        return(rpm.GetNums(hidtype.Value.ToString(), flag, CmbPrint1.Text, param, hidsys.Value.ToString(), Page));
    }
Exemplo n.º 2
0
    private string[] GetNums(string flag)
    {
        string[] query = allKey.Value.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

        string[] param = null;
        if (query.Length == 4)
        {   ///?type=Bill&ID=738565&HAttach=1&HType=
            if (query.Contains("HType") || query.Contains("HAttach"))
            {
                param = new string[] { Request["ID"], Request["HAttach"], Request["HType"], Request["type"] }
            }
            ;
            else
            {
                param = new string[] { Request["ID"], Request["Company"], Request["Currency"], Request["type"] }
            };
        }
        else
        {
            param = new string[query.Length];
            for (int i = 0; i < query.Length; ++i)
            {
                param[i] = Request[query[query.Length - 1 - i]];
            }
        }

        Reportparameters rpm = new Reportparameters(hidInvDraft.Text);

        return(rpm.GetNums(hidtype.Value.ToString(), flag, CmbPrint1.Text, param, hidsys.Value.ToString(), Page));

        //string[] nums = null;
        //string rpt_Type = "";
        //string rpt_Header = "";
        //if (Request.QueryString["type"] == "Arrivial")
        //{
        //    rpt_Type = "Arrival";
        //    rpt_Header = "ARRIVAL NOTICE";
        //}
        //else if (Request.QueryString["type"] == "Delivery")
        //{
        //    rpt_Type = "Delivery";
        //    rpt_Header = "DELIVERY ORDER";
        //}
        //else if (Request.QueryString["type"] == "Storage")
        //{
        //    rpt_Type = "Storage";
        //    rpt_Header = "FREE STORAGE NOTICE";
        //}
        //else if (hidtype.Text == "Letter")
        //{
        //    rpt_Type = "Letter";
        //    rpt_Header = "LETTER OF GUARANTEE";
        //}
        //else if (hidtype.Text == "Devanning")
        //{
        //    rpt_Header = "入口拆櫃報告(IMPORT DEVANNING REPORT)";
        //    rpt_Type = "Devanning";
        //}
        //else if (hidtype.Text == "Manifest")
        //{
        //    rpt_Type = "OI Manifest";
        //    rpt_Header = "CONTAINER MANIFEST";
        //}
        //else if (hidtype.Text == "Attachment")
        //{
        //    rpt_Type = "OI Attachment";
        //    rpt_Header = "CARRIER ATTACHMENT";
        //}
        //if (hidtype.Text == "Invoice")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/O" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = "O_Invoice";
        //    nums[5] = FSecurityHelper.CurrentUserDataGET()[12].ToUpper();
        //    nums[6] = hidInvDraft.Text;
        //}
        //else if (hidtype.Text == "PaymentRequest")
        //{
        //    nums = new string[9];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "OI";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //    nums[7] = Request["Company"].ToString();
        //    nums[8] = Request["Currency"].ToString();
        //}
        //else if (hidtype.Text == "ProfitLoss")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/ProfitAndLoss.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "OI";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //}
        //else
        //{
        //    nums = new string[9];
        //    nums[0] = Server.MapPath("~/Report/OIReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = rpt_Header;
        //    nums[4] = hidID.Text;
        //    nums[5] = rpt_Type;
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[7] = FSecurityHelper.CurrentUserDataGET()[15].ToString();
        //    nums[8] = FSecurityHelper.CurrentUserDataGET()[2].ToString();
        //}
        //return nums;
    }
Exemplo n.º 3
0
    private string[] GetNums(string flag)
    {
        string[] query = allKey.Value.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

        string[] param = null;
        if (query.Length == 4)
        {   ///?type=Bill&ID=738565&HAttach=1&HType=
            if (query.Contains("HType") || query.Contains("HAttach"))
            {
                param = new string[] { Request["ID"], Request["HAttach"], Request["HType"], Request["type"] }
            }
            ;
            else
            {
                param = new string[] { Request["ID"], Request["Company"], Request["Currency"], Request["type"] }
            };
        }
        else
        {
            param = new string[query.Length];
            for (int i = 0; i < query.Length; ++i)
            {
                param[i] = Request[query[query.Length - 1 - i]];
            }
        }

        Reportparameters rpm = new Reportparameters(hidInvDraft.Text);

        return(rpm.GetNums(hidtype.Value.ToString(), flag, CmbPrint1.Text, param, hidsys.Value, Page));


        //string[] nums = null;
        //string rpt_Type = "";
        //string rpt_Header = "";
        //if (hidtype.Text == "Invoice")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = "O_Invoice";
        //    nums[5] = FSecurityHelper.CurrentUserDataGET()[12].ToUpper();
        //    nums[6] = hidInvDraft.Text;
        //}
        //else if (hidtype.Text == "Manifest")
        //{
        //    rpt_Type = "OE Manifest";
        //    rpt_Header = "CONTAINER MANIFEST";
        //    nums = new string[9];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = rpt_Header;
        //    nums[4] = hidID.Text;
        //    nums[5] = rpt_Type;
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[7] = FSecurityHelper.CurrentUserDataGET()[15].ToString();
        //    nums[8] = FSecurityHelper.CurrentUserDataGET()[2].ToString();
        //}
        //else if (hidtype.Text == "HDraft" || hidtype.Text == "Bill")
        //{
        //    rpt_Type = "OE HAWB";
        //    nums = new string[7];
        //    if (pdfStatus == 1 && hidtype.Text == "HDraft")
        //    {
        //        pdfStatus = 0;
        //        nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + "pdf.rpt");
        //    }
        //    else
        //    {
        //        nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    }
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = Request["HType"] == null ? "" : Request["HType"];
        //    nums[4] = hidID.Text;
        //    nums[5] = rpt_Type;
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //}
        //else if (hidtype.Text == "BLSample")
        //{
        //    nums = new string[8];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = Request["groupid"] == null ? "0" : Request["groupid"];
        //    nums[5] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[11].ToString();
        //    nums[7] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //}

        //else if (hidtype.Text == "ACI")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //else if (hidtype.Text == "AttachList")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}

        //else if (hidtype.Text == "PaymentRequest")
        //{
        //    nums = new string[9];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "OE";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //    nums[7] = Request["Company"].ToString();
        //    nums[8] = Request["Currency"].ToString();
        //}
        //else if (hidtype.Text == "ProfitLoss")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/ProfitAndLoss.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "OE";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //}
        //else if (hidtype.Text == "Test")
        //{
        //    nums = new string[3];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/TestPreview.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //}
        //else if (hidtype.Text == "ShipmentOrder")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //else if (hidtype.Text == "BillForSBS")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/OEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //return nums;
    }
Exemplo n.º 4
0
    private string[] GetNums(string flag)
    {
        string[] query = allKey.Value.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

        string[] param = null;
        if (query.Length == 4)
        {   ///?type=Bill&ID=738565&HAttach=1&HType=
            if (query.Contains("HType") || query.Contains("HAttach"))
            {
                param = new string[] { Request["ID"], Request["HAttach"], Request["HType"], Request["type"] }
            }
            ;
            else
            {
                param = new string[] { Request["ID"], Request["Company"], Request["Currency"], Request["type"] }
            };
        }
        else
        {
            param = new string[query.Length];
            for (int i = 0; i < query.Length; ++i)
            {
                param[i] = Request[query[query.Length - 1 - i]];
            }
        }

        Reportparameters rpm = new Reportparameters(hidInvDraft.Text);

        return(rpm.GetNums(hidtype.Value.ToString(), flag, CmbPrint1.Text, param, hidsys.Value.ToString(), Page));


        //string[] nums = null;
        //if (hidtype.Text == "Invoice")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/A" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = "A_Invoice";
        //    nums[5] = FSecurityHelper.CurrentUserDataGET()[12].ToUpper();
        //    nums[6] = hidInvDraft.Text;
        //}
        //else if (hidtype.Text == "ShippingNote")
        //{
        //    nums = new string[5];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = hidID.Text;
        //}
        //else if (hidtype.Text == "Manifest")
        //{
        //    nums = new string[6];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text; //air_seed
        //    nums[4] = hidID.Text; //air_tomawb
        //    nums[5] = hidID.Text; //air_seed
        //}
        //else if (hidtype.Text == "Pre-Alert")
        //{
        //    nums = new string[6];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text; //air_seed
        //    nums[4] = hidID.Text; //air_tomawb
        //    nums[5] = hidID.Text; //air_seed
        //}
        //else if (hidtype.Text == "HAWB")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + hidtype.Text + "-PROC.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //else if (hidtype.Text == "HAWB1")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + "HAWB" + "View.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //else if (hidtype.Text == "MAWB")
        //{
        //    nums = new string[4];
        //    nums[0] = Server.MapPath("~/Report/AEReportFile/" + hidtype.Text + "-PROC.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //}
        //else if (hidtype.Text == "PaymentRequest")
        //{
        //    nums = new string[9];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/" + hidtype.Text + ".rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "AE";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //    nums[7] = Request["Company"].ToString();
        //    nums[8] = Request["Currency"].ToString();
        //}
        //else if (hidtype.Text == "ProfitLoss")
        //{
        //    nums = new string[7];
        //    nums[0] = Server.MapPath("~/Report/CommonReportFile/ProfitAndLoss.rpt");
        //    nums[1] = flag;
        //    nums[2] = CmbPrint1.Text;
        //    nums[3] = hidID.Text;
        //    nums[4] = FSecurityHelper.CurrentUserDataGET()[12].ToString();
        //    nums[5] = "AE";
        //    nums[6] = FSecurityHelper.CurrentUserDataGET()[0].ToString();
        //}
        //return nums;
    }