Exemple #1
0
        private void InlineEfficiencyMonitor(ALINE line)
        {
            VehicleBLL vehicleBLL = scApp.VehicleBLL;
            CMDBLL     cmdBLL     = scApp.CMDBLL;

            line.CurrntVehicleModeAutoRemoteCount = vehicleBLL.cache.getVhCurrentModeInAutoRemoteCount();
            line.CurrntVehicleModeAutoLoaclCount  = vehicleBLL.cache.getVhCurrentModeInAutoLocalCount();
            line.CurrntVehicleStatusIdelCount     = vehicleBLL.cache.getVhCurrentStatusInIdleCount();
            line.CurrntVehicleStatusErrorCount    = vehicleBLL.cache.getVhCurrentStatusInErrorCount();
            var    host_cmds = cmdBLL.loadACMD_MCSIsUnfinished();
            var    cst       = scApp.CassetteDataBLL.loadCassetteData();
            UInt16 carrier_transferring_count = (UInt16)cst.
                                                Where(x => x.CSTState == E_CSTState.Alternate ||
                                                      x.CSTState == E_CSTState.WaitIn ||
                                                      x.CSTState == E_CSTState.WaitOut ||
                                                      x.CSTState == E_CSTState.Transferring).
                                                Count();
            UInt16 carrier_watting_count = (UInt16)cst.
                                           Where(x => x.CSTState == E_CSTState.Installed ||
                                                 x.CSTState == E_CSTState.Completed).
                                           Count();

            UInt16 host_cmd_assigned_count = (UInt16)host_cmds.
                                             Where(cmd => cmd.TRANSFERSTATE >= E_TRAN_STATUS.Transferring).
                                             Count();
            UInt16 host_cmd_watting_count = (UInt16)host_cmds.
                                            Where(cmd => cmd.TRANSFERSTATE < E_TRAN_STATUS.Transferring).
                                            Count();

            line.CurrntCSTStatueTransferCount = carrier_transferring_count;
            line.CurrntCSTStatueWaitingCount  = carrier_watting_count;
            line.CurrntHostCommandTransferStatueAssignedCount = host_cmd_assigned_count;
            line.CurrntHostCommandTransferStatueWaitingCounr  = host_cmd_watting_count;
        }
Exemple #2
0
        private void InlineEfficiencyMonitor()
        {
            ALINE      line       = scApp.getEQObjCacheManager().getLine();
            VehicleBLL vehicleBLL = scApp.VehicleBLL;
            CMDBLL     cmdBLL     = scApp.CMDBLL;

            line.CurrntVehicleModeAutoRemoteCount = vehicleBLL.cache.getVhCurrentModeInAutoRemoteCount();
            line.CurrntVehicleModeAutoLoaclCount  = vehicleBLL.cache.getVhCurrentModeInAutoLocalCount();
            line.CurrntVehicleStatusIdelCount     = vehicleBLL.cache.getVhCurrentStatusInIdleCount();
            line.CurrntVehicleStatusErrorCount    = vehicleBLL.cache.getVhCurrentStatusInErrorCount();
            var    host_cmds = cmdBLL.loadACMD_MCSIsUnfinished();
            UInt16 carrier_transferring_count = (UInt16)host_cmds.
                                                Where(cmd => cmd.TRANSFERSTATE == E_TRAN_STATUS.Transferring).
                                                Count();
            UInt16 carrier_watting_count = (UInt16)host_cmds.
                                           Where(cmd => cmd.TRANSFERSTATE < E_TRAN_STATUS.Transferring).
                                           Count();
            UInt16 host_cmd_assigned_count = (UInt16)host_cmds.
                                             Where(cmd => cmd.TRANSFERSTATE >= E_TRAN_STATUS.Initial).
                                             Count();
            UInt16 host_cmd_watting_count = (UInt16)host_cmds.
                                            Where(cmd => cmd.TRANSFERSTATE < E_TRAN_STATUS.Initial).
                                            Count();

            line.CurrntCSTStatueTransferCount = carrier_transferring_count;
            line.CurrntCSTStatueWaitingCount  = carrier_watting_count;
            line.CurrntHostCommandTransferStatueAssignedCount = host_cmd_assigned_count;
            line.CurrntHostCommandTransferStatueWaitingCounr  = host_cmd_watting_count;
        }