Beispiel #1
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin     bin = (BInputBin)bin1;
            ReportOptions obj = (ReportOptions)(obj1 != null ? obj1 : bin.onObjectCreated(new ReportOptions()));

            base.read(obj, bin1, version);
            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.erpCodes = (EloixClient.IndexServer.ReportErpCode[])bin.readObj(false, EloixClient.IndexServer.BSerializer_1004870809.instance);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.mode = (EloixClient.IndexServer.ReportModeZ)bin.readObj(false, null);

            return(obj);
        }
Beispiel #2
0
        public void run()
        {
            IXConnFactory connFact = null;
            IXConnection  ix       = null;

            try
            {
                IXProperties connProps = IXConnFactory.CreateConnProperties(url);
                IXProperties sessOpts  = IXConnFactory.CreateSessionOptions("IX-Examples", "1.0");
                connFact = new IXConnFactory(connProps, sessOpts);
                Logger.instance().log("create IXConnFactory OK");

                // Prepare ClientInfo object with language and country
                // ClientInfo ci = new ClientInfo();
                // ci.language = "de";
                // ci.country = "DE";

                // LOGIN
                Logger.instance().log("login...");
                ix = connFact.Create(userName, userPwd, "myComputer", null);
                // ci = ix.Login.ci
                Logger.instance().log("login OK");

                // get constants
                Logger.instance().log("get const...");
                IXServicePortC CONST = ix.CONST;
                Logger.instance().log("get const OK");

                // checkout report options
                Logger.instance().log("checkout ...");
                EloixClient.IndexServer.ReportOptions reportOptions = ix.Ix.checkoutReportOptions(LockC.YES);
                Logger.instance().log("checkout OK");

                // log report mode
                String strMode = "";
                if (reportOptions.mode.bset == ReportModeC.NO.bset)
                {
                    strMode = "NO";
                }
                else if (reportOptions.mode.bset == ReportModeC.LIMITED.bset)
                {
                    strMode = "LIMITED";
                }
                else if (reportOptions.mode.bset == ReportModeC.VERBOSE.bset)
                {
                    strMode = "VERBOSE";
                }
                else if (reportOptions.mode.bset == ReportModeC.FULL.bset)
                {
                    strMode = "FULL";
                }
                Logger.instance().log("mode=" + strMode);

                // list
                Logger.instance().log("Report actions: ");
                for (int i = 0; i < reportOptions.erpCodes.Length; i++)
                {
                    ReportErpCode erp = reportOptions.erpCodes[i];
                    Logger.instance().log("  id=" + erp.id + ", name=" + erp.name + ", verbose=" + erp.verbose + ", limited=" + erp.limited);
                }

                // unlock report data
                Logger.instance().log("unlock...");
                ix.Ix.checkinReportOptions(null, LockC.YES);
                Logger.instance().log("unlock OK");
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                // Logout
                // --
                if (ix != null)
                {
                    Logger.instance().log("IX logout...");
                    ix.Logout();
                    Logger.instance().log("IX logout OK");
                }
            }
        }
Beispiel #3
0
 public ReportOptions(ReportOptions rhs) : base(rhs)
 {
     this.erpCodesValue = rhs.erpCodesValue;
     this.modeValue     = rhs.modeValue;
 }