示例#1
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));
        }
示例#2
0
 public ClientProductionOrderHeadList GetOpenProductionOrderHeads()
 {
     orderHeadList = new ClientProductionOrderHeadList();
     QTSysGlobal.LogicAssemblyAPI.Production.GetProductionOrders(ref orderHeadList, 200, TAnetProductionType.Open, out ViewError);
     return(orderHeadList);
 }