예제 #1
0
        public void StartReplenishmentAsync(StartReplenishmentResponseEventHandler callBack)
        {
            Utils.ToLogFCCApiLog("StartReplenishment");
            StartReplenishmentResponseCallBack = callBack;
            FCCSrv2.StartReplenishmentFromEntranceRequestType  objStartRepFERequest  = new FCCSrv2.StartReplenishmentFromEntranceRequestType();
            FCCSrv2.StartReplenishmentFromEntranceResponseType objStartRepFEResponse = new FCCSrv2.StartReplenishmentFromEntranceResponseType();
            objStartRepFERequest.Id    = GetId();;
            objStartRepFERequest.SeqNo = GetSequenceNumber();

            clsBrueBoxService.StartReplenishmentFromEntranceOperationAsync(objStartRepFERequest);

            Replenishment = true;
        }
예제 #2
0
        public void CancelReplenishment(StartReplenishmentResponseEventHandler callBack)
        {
            Utils.ToLogFCCApiLog("CancelReplenishment");
            CancelReplenishmentResponseCallBack = callBack;
            FCCSrv2.ReplenishmentFromEntranceCancelRequestType  objCancelRepFERequest  = new FCCSrv2.ReplenishmentFromEntranceCancelRequestType();
            FCCSrv2.ReplenishmentFromEntranceCancelResponseType objCancelRepFEResponse = new FCCSrv2.ReplenishmentFromEntranceCancelResponseType();
            objCancelRepFERequest.Id    = GetId();
            objCancelRepFERequest.SeqNo = GetSequenceNumber();
            try
            {
                clsBrueBoxService.ReplenishmentFromEntranceCancelOperationAsync(objCancelRepFERequest);

                Replenishment = false;
            }
            catch (Exception ex)
            {
            }
        }
예제 #3
0
        public void CollectAsync(FCCSrv2.DenominationType[] Cash, StartReplenishmentResponseEventHandler callback)
        {
            CollectAsyncResponseCallBack = callback;
            FCCSrv2.CollectRequestType objCollect = new FCCSrv2.CollectRequestType();
            objCollect.Id          = GetId();
            objCollect.SeqNo       = GetSequenceNumber();
            objCollect.Option      = new FCCSrv2.CollectOptionType();
            objCollect.Option.type = "0";

            objCollect.RequireVerification      = new FCCSrv2.RequireVerificationType();
            objCollect.RequireVerification.type = "0";
            objCollect.Mix       = new FCCSrv2.CollectOptionType();
            objCollect.Mix.type  = FCC_REQ_COLLECTION_MIX_ON.ToString();
            objCollect.Cash      = new FCCSrv2.CashType();
            objCollect.Cash.type = FCC_REQ_COLLECTION_CASH_INFO.ToString();
            //   objCollect.Cash.type = "5";
            //  objCollect.Cash.Denomination = new FCCSrv2.DenominationType[11];
            //FCCSrv2.CashUnitsType[] CU = UpdateInventory();
            //FCCSrv2.CashUnitsType MyCash = CU.Where(a => a.devid == "1").FirstOrDefault();
            objCollect.Cash.Denomination = Cash;

            /*
             * objCollect.Partial = new FCCSrv2.CollectPartialType();
             * objCollect.Partial.type = "1";
             */
            /*
             * if (MyCash != null)
             * {
             *  FCCSrv2.CashUnitType Dt = MyCash.CashUnit.Where(a => a.unitno == "4045").FirstOrDefault();
             *  objCollect.Cash.Denomination[0] = Dt.Denomination[0];
             *  Dt = MyCash.CashUnit.Where(a => a.unitno == "4044").FirstOrDefault();
             *  objCollect.Cash.Denomination[1] = Dt.Denomination[0];
             *  Dt = MyCash.CashUnit.Where(a => a.unitno == "4043").FirstOrDefault();
             *  objCollect.Cash.Denomination[2] = Dt.Denomination[0];
             * }
             * */
            clsBrueBoxService.CollectOperationAsync(objCollect);
        }