Пример #1
0
        // GET: Home
        public ActionResult Index()
        {
            // Load Terminal Loadup/Startup Method here
            // On Page Load! Or similar..
            list = new ClientRfidList();
            unproductiveOrderList = new ClientUnproductiveOrderList();
            //GetXamlDirectory();

            // Check bool, if program already started
            if (ProgramStarted != true)
            {
                QTSysGlobal.HardInitialize();
                QTSysGlobal.SoftInitialize();
                ProgramStarted = true;
            }

            if (CheckInitialization())
            {
                //mainWindowCommandEnabled = true;
                //systemShutDownCommandEnabled = false;
                Info = "Startar MainWindowView";
                //MainWindow(null);
            }
            else
            {
                //timer.Start();
                //mainWindowCommandEnabled = false;
                //systemShutDownCommandEnabled = true;
            }
            //timer.Start();
            bool ViewError = false;

            QTSysGlobal.LogicAssemblyAPI.Production.GetTerminalSettings(5, out ViewError);
            //if (ViewError)
            //{
            //    view.Dispatcher.Invoke(QTSysGlobal.ErrorDelegate, null);
            //}
            //UcInOutQuestion test = new UcInOutQuestion();


            //GetTerminalConfig();
            //updateInterval = QTSysGlobal.TerminalConfig.UpdateInterval;
            unproductiveOrderList = GetUnproductiveOrders();
            Version = GetVersionFromLicenceKey();

            QTSysGlobal.LogicAssemblyAPI.TimeTrans.GetTerminalUserInfo(ref SvcRecGlobal.TimeTransHandlerSvcRecList, timeTransList, QTSysGlobal.ConfigRec.RowId, out ViewError);

            ViewBag.UserList = timeTransList;
            ViewBag.unproductiveOrderList = unproductiveOrderList;
            return(View(timeTransList));
        }
Пример #2
0
        public ActionResult UteImproduktiva()
        {
            // Load Terminal Loadup/Startup Method here
            // On Page Load! Or similar..
            list = new ClientRfidList();
            unproductiveOrderList = new ClientUnproductiveOrderList();
            //GetXamlDirectory();


            // Check bool, if program already started
            if (ProgramStarted != true)
            {
                QTSysGlobal.HardInitialize();
                QTSysGlobal.SoftInitialize();
                ProgramStarted = true;
            }
            if (CheckInitialization())
            {
                //mainWindowCommandEnabled = true;
                //systemShutDownCommandEnabled = false;
                Info = "Startar MainWindowView";
                //MainWindow(null);
            }
            else
            {
                //timer.Start();
                //mainWindowCommandEnabled = false;
                //systemShutDownCommandEnabled = true;
            }
            //timer.Start();
            bool ViewError = false;

            QTSysGlobal.LogicAssemblyAPI.Production.GetTerminalSettings(5, out ViewError);
            //if (ViewError)
            //{
            //    view.Dispatcher.Invoke(QTSysGlobal.ErrorDelegate, null);
            //}
            //UcInOutQuestion test = new UcInOutQuestion();


            //GetTerminalConfig();
            //updateInterval = QTSysGlobal.TerminalConfig.UpdateInterval;
            unproductiveOrderList = GetUnproductiveOrders();
            Version = GetVersionFromLicenceKey();

            var loopUteImproduktivaOrderList = unproductiveOrderList;

            return(Json(new { loopUteImproduktivaOrderList }, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public ActionResult UteTillverkningsorder()
        {
            // Load Terminal Loadup/Startup Method here
            // On Page Load! Or similar..
            list = new ClientRfidList();
            unproductiveOrderList = new ClientUnproductiveOrderList();
            //GetXamlDirectory();

            // Check bool, if program already started
            if (ProgramStarted != true)
            {
                QTSysGlobal.HardInitialize();
                QTSysGlobal.SoftInitialize();
                ProgramStarted = true;
            }
            //QTSysGlobal.HardInitialize();
            //QTSysGlobal.SoftInitialize();
            if (CheckInitialization())
            {
                //mainWindowCommandEnabled = true;
                //systemShutDownCommandEnabled = false;
                Info = "Startar MainWindowView";
                //MainWindow(null);
            }
            else
            {
                //timer.Start();
                //mainWindowCommandEnabled = false;
                //systemShutDownCommandEnabled = true;
            }
            //timer.Start();
            bool ViewError = false;

            QTSysGlobal.LogicAssemblyAPI.Production.GetTerminalSettings(5, out ViewError);

            //GetTerminalConfig();
            //updateInterval = QTSysGlobal.TerminalConfig.UpdateInterval;
            orderHeadList = GetOpenProductionOrderHeads();
            productionorderoperationlist = GetOpenOperationOrderList();
            Version = GetVersionFromLicenceKey();

            var loopUteTillverkningsorderOrderHead = orderHeadList;
            var loopUteTillverkningsorderOrderList = productionorderoperationlist;

            //var JsonToReturn = new[] { FirstThing = loopUteOperationerOrderHead, SecondThing = loopUteOperationerOrderList };
            return(Json(new { loopUteTillverkningsorderOrderHead, loopUteTillverkningsorderOrderList }, JsonRequestBehavior.AllowGet));
        }