Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //Controller.executeDeliveryBlocks("ES01");

            string salesOrg = args[0];

            IServerLogger log = Create.serverLogger(161);

            log.start(salesOrg);

            try {
                Controller.executeDeliveryBlocks(salesOrg);
                log.finish(salesOrg);
            } catch (Exception ex) {
                GlobalErrorHandler.handle(salesOrg, "Delivery Blocks", ex);
                log.finish(salesOrg + " Error");
            }
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            string salesOrg = args[0];

            //string salesOrg = "FR01";

            IServerLogger log = Create.serverLogger(157);

            log.start();

            try {
                Controller.executeDistressReport(salesOrg);
                log.finish("success");
            } catch (Exception ex) {
                GlobalErrorHandler.handle(salesOrg, "Distress", ex);
                log.finish("error");
            }
        }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            //TODO: Add ship to & sold to name for the email report

            //Controller.executeRejections("ZA01", true);

            string salesOrg  = args[0];
            bool   isRelease = (args[1] == "Release");

            IServerLogger log = Create.serverLogger(147);

            log.start();

            try {
                Controller.executeRejections(salesOrg, isRelease);
                log.finish("success");
            } catch (Exception ex) {
                GlobalErrorHandler.handle(salesOrg, isRelease ? "Release Rejections" : "After Release Rejections", ex);
                log.finish("error");
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// SOAR script runs reports as per args that are passed to save in the SOAR folder
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            IServerLogger log = Create.serverLogger(154);

            string soarReport = args[0];
            //string soarReport = "WE05";

            var SOs = new string[] { "FR01", "NL01", "DE01", "IT01", "GR01", "PL01", "CZ01", "PT01", "ES01", "RO01", "GB01", "TR01", "UA01", "RU01", "ZA01", "KE02", "NG01" };

            log.start();

            switch (soarReport)
            {
            case "WE05": {
                Controller.executeWE05(Strings.Left(args[1], 2));
                log.finish();
                break;
            }

            case "ZV04HN": {
                Controller.executeZV04HN(args[1]);
                log.finish();
                break;
            }

            case "All": {
                runAll(SOs);
                log.finish();
                break;
            }

            default: {
                throw new NotImplementedException("no report for " + soarReport);
            }
            }
        }