private void Soft1Login(string xco, string UserName, string Password, int Company, int Branch, DateTime LoginDate)
        {
            try
            {
                Prg = XSupport.Login(xco, UserName, Password, Company, Branch, LoginDate);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }

        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();
            myXSupport = this.XSupport;

            Settings settings = Settings.getInstance();

            //  OnTimerElapsed(null, null); //Run first time
            if (settings.timerInterval > 0)
            {
                myTimer          = new System.Timers.Timer(); // (settings.timerInterval * 60000);
                myTimer.Elapsed += new ElapsedEventHandler(OnTimerElapsed);

                myTimer.Interval = 10 * 60000; //Πρώτη φορά εκτέλεση στα 10 Λεπτά // settings.timerInterval * 60000;
                myTimer.Enabled  = true;
            }
        }
 public ItemRMenuFrm(XSupport xs, XModule xm)
 {
     InitializeComponent();
     xs_ = xs;
     xm_ = xm;
 }
        public override void Initialize()
        {
            base.Initialize();
            myXSupport = this.XSupport;

            Settings settings = Settings.getInstance();


            OnTimerElapsed(null, null); //Run first time

            myTimer          = new System.Timers.Timer(settings.timerInterval);
            myTimer.Elapsed += new ElapsedEventHandler(OnTimerElapsed);

            myTimer.Interval = settings.timerInterval;
            myTimer.Enabled  = true;



            /*
             * try
             * {
             *  XTable b2bParamTbl = this.XSupport.GetSQLDataSet(
             *      "SELECT NAME,VALUE " +
             *      "FROM BTOBPARAMTBL WHERE NAME='domain' "
             *       );
             *  settings.domain = b2bParamTbl[0, "VALUE"].ToString();
             *
             *  b2bParamTbl = this.XSupport.GetSQLDataSet(
             *  "SELECT NAME,VALUE " +
             *  "FROM BTOBPARAMTBL WHERE NAME='user' "
             *  );
             *  settings.user = b2bParamTbl[0, "VALUE"].ToString();
             *
             *  b2bParamTbl = this.XSupport.GetSQLDataSet(
             *  "SELECT NAME,VALUE " +
             *  "FROM BTOBPARAMTBL WHERE NAME='password' "
             *  );
             *  settings.password = b2bParamTbl[0, "VALUE"].ToString();
             *
             *  b2bParamTbl = this.XSupport.GetSQLDataSet(
             * "SELECT NAME,VALUE " +
             * "FROM BTOBPARAMTBL WHERE NAME='timerInterval' "
             *  );
             *  settings.timerInterval = Convert.ToInt32( b2bParamTbl[0, "VALUE"].ToString() );
             *
             * }
             * catch (Exception ex)
             * {
             *  this.XSupport.ExecuteSQL(
             *     " CREATE TABLE BTOBPARAMTBL "+
             *      "    ( "+
             *      "    NAME varchar(255), "+
             *     "     VALUE varchar(255) "+
             *      "    ); "
             *      );
             *
             *     this.XSupport.ExecuteSQL(
             *     " INSERT INTO BTOBPARAMTBL VALUES ('domain',''); " +
             *     " INSERT INTO BTOBPARAMTBL VALUES ('user',''); " +
             *     " INSERT INTO BTOBPARAMTBL VALUES ('password',''); " +
             *     " INSERT INTO BTOBPARAMTBL VALUES ('timerInterval','7200000'); "
             *      );
             * } */
        }
 public override void Initialize()
 {
     curSupport          = XSupport;
     CCCCONNECTIONBRICK  = XModule.GetTable("CCCCONNECTIONBRICK");
     CCCSQLCOMMANDCOLUMN = XModule.GetTable("CCCSQLCOMMANDCOLUMN");
 }