Exemplo n.º 1
0
        /// <summary>
        /// 空包起吊
        /// </summary>
        /// <param name="record"></param>
        public override void EmptyHoist(ActionHandlerBase handler)
        {
            PosManager.UpdatePos_CCM_Hoist(Wst.NUM, handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);
            PosManager.EndPos(handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);

            InsertCCMOutWeightRecord(handler.Record);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 重包起吊
        /// </summary>
        /// <param name="record"></param>
        public override void FullHoist(ActionHandlerBase handler)
        {
            PosManager.UpdatePos(Wst.NUM, handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);

            string ladle = LadleManager.MatchLadle(Wst.NUM, handler.Record.CRA_ID.CRA_NUM);

            InsertBofOutWeightRecord(handler.Record, ladle);
        }
Exemplo n.º 3
0
 public FreeContext(Contexts contexts, IEventArgs args)
 {
     this.EntitasContexts = contexts;
     Bufs       = new FreeBufManager();
     Poss       = new PosManager(args);
     TimerTask  = new TimerTask();
     MultiFrame = new MultiFrameActions();
     TestCase   = new TestCase();
 }
Exemplo n.º 4
0
 public LogoutViewModel(IMvxNavigationService navigationService,
                        IMvxLog log,
                        PosManager posManager,
                        IMessageBoxService messageBoxService)
 {
     this.navigationService = navigationService;
     this.log               = log;
     this.posManager        = posManager;
     this.messageBoxService = messageBoxService;
 }
Exemplo n.º 5
0
 public ReceiptGenerator(PosManager posManager,
                         AppLanguage language,
                         DecimalPlace fuelUnitPriceDecimalPlace)
 {
     this.posManager = posManager;
     this.language   = language;
     this.fuelUnitPriceDecimalPlace = fuelUnitPriceDecimalPlace;
     this.english = new CultureInfo("en");
     this.arabic  = new CultureInfo("ar");
 }
 public PrintReceiptViewModel(IMvxLog log,
                              Printer printer,
                              PosManager posManager,
                              IMvxNavigationService navigationService)
 {
     this.log               = log;
     this.printer           = printer;
     this.posManager        = posManager;
     this.navigationService = navigationService;
 }
 public RefundStatusViewModel(IMvxNavigationService navigationService,
                              IMvxLog log,
                              PosManager posManager,
                              IFcsService fcsService,
                              IAppSettings appSettings,
                              IMessageBoxService messageBoxService)
 {
     this.navigationService = navigationService;
     this.log               = log;
     this.posManager        = posManager;
     this.fcsService        = fcsService;
     this.appSettings       = appSettings;
     this.messageBoxService = messageBoxService;
 }
Exemplo n.º 8
0
 public PrepayViewModel(
     IFcsService fcsService,
     IMvxLog log,
     IMvxNavigationService navigationService,
     IDBAccess dbService,
     PosManager posManager,
     IMessageBoxService messageBoxService)
 {
     this.fcsService        = fcsService;
     this.log               = log;
     this.navigationService = navigationService;
     this.dbService         = dbService;
     this.posManager        = posManager;
     this.messageBoxService = messageBoxService;
 }
Exemplo n.º 9
0
 public BaseEventArgs()
 {
     this.map           = new MyDictionary <string, IParable>();
     this.directMap     = new MyDictionary <string, IParable>();
     this.units         = new GameUnitSet();
     this.temp          = new MyDictionary <string, Stack <IParable> >();
     this._functions    = new CommonActions();
     this._triggers     = new GameTriggers();
     this._componentMap = new GameComponentMap();
     this._components   = new GameComponents();
     this._bufs         = new FreeBufManager();
     this._poss         = new PosManager(this);
     this._freeContext  = new FreeContext(_gameContext, this);
     this.useArgs       = new TempUseArgs(this);
 }
Exemplo n.º 10
0
 public CardTenderViewModel(IMvxNavigationService navigationService,
                            IMvxLog log,
                            ITpsService tpsService,
                            IFcsService fcsService,
                            IAppSettings appSettings,
                            PosManager posManager,
                            IReceiptGenerator receiptGenerator)
 {
     this.navigationService = navigationService;
     this.log              = log;
     this.tpsService       = tpsService;
     this.fcsService       = fcsService;
     this.posManager       = posManager;
     this.appSettings      = appSettings;
     this.receiptGenerator = receiptGenerator;
 }
Exemplo n.º 11
0
        private async void OnFcsConnectionStatusChanged(object sender, bool isConnected)
        {
            log.Info("App: Fcs Connection status is changed...");
            //Todo: need to be aware of connection status changes
            var fcsService = sender as IFcsService;

            IsFcsConnected = isConnected;
            if (!IsFcsConnected)
            {
                IsSignOnDone = false;
                log.Debug("App: Fcs is disconnected. Navigate and stop pos.");

                navigationService = Mvx.IoCProvider.Resolve <IMvxNavigationService>();
                posManager        = Mvx.IoCProvider.Resolve <PosManager>();

                if (posManager.IsUserLoggedIn())
                {
                    log.Debug("App: User logged in. Navigate to Home");
                    await navigationService.Navigate <HomeViewModel>();
                }
                else
                {
                    log.Debug("App: User not logged in. Navigate to Login");
                    await navigationService.Navigate <LoginViewModel>();
                }

                await posManager.StopPos();

                // Try re-connect
                fcstimer.Enabled = true;
            }
            else
            {
                log.Error("App: Fcs is connected now.");
            }
        }
Exemplo n.º 12
0
 private void OnFCSConfigReceived(object sender, ConfigurationRequest config)
 {
     log.Debug("App: fcs configuration is received.");
     posManager = Mvx.IoCProvider.Resolve <PosManager>();
     posManager.StartPos();
 }
Exemplo n.º 13
0
 public PosManager()
 {
     instance = this;
 }
 /// <summary>
 /// 重包起吊
 /// </summary>
 /// <param name="record"></param>
 public override void FullHoist(ActionHandlerBase handler)
 {
     PosManager.UpdatePos(handler.Record.CRA_ID.SPA_ID.NUM, (int)handler.Record.COORD_X,
                          (int)handler.Record.COORD_Y, handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);
 }
        /// <summary>
        /// 重包起吊
        /// </summary>
        /// <param name="record"></param>
        public override void FullHoist(ActionHandlerBase handler)
        {
            PosManager.UpdatePos(Wst.NUM, handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);

            InsertRefineOutWeightRecord(handler.Record);
        }
 /// <summary>
 /// 重包起吊
 /// </summary>
 /// <param name="record"></param>
 public override void FullHoist(ActionHandlerBase handler)
 {
     PosManager.UpdatePos(Wst.NUM, handler.Record.CRA_ID.CRA_NUM, handler.Record.CRA_ID.CRA_NUM);
 }
Exemplo n.º 17
0
        /// <summary>
        /// 重包放吊
        /// </summary>
        /// <param name="record"></param>
        public override void FullDrop(ActionHandlerBase handler)
        {
            PosManager.UpdatePos(handler.Record.CRA_ID.CRA_NUM, Wst.NUM, handler.Record.CRA_ID.CRA_NUM);

            InsertBofInWeightRecord(handler.Record);
        }
Exemplo n.º 18
0
 /// <summary>
 /// 空包起吊
 /// </summary>
 /// <param name="record"></param>
 public override void EmptyHoist(ActionHandlerBase handler)
 {
     PosManager.EndPos(Wst.NUM, handler.Record.CRA_ID.CRA_NUM);
 }
Exemplo n.º 19
0
        /// <summary>
        /// 空包放吊
        /// </summary>
        /// <param name="record"></param>
        public override void EmptyDrop(ActionHandlerBase handler)
        {
            PosManager.StartPos(Wst.NUM, handler.Record.CRA_ID.CRA_NUM);

            InsertBofInWeightRecord(handler.Record);
        }