public void Start() { List <GameObject> goLst = new List <GameObject>(); List <PlayerConstant.PlayerControlerType> pctLst = new List <PlayerConstant.PlayerControlerType>(); // ===================== test =============================== _unitsGameObjArr = GameObject.FindGameObjectsWithTag("tag_testPlayers"); _mainPlayer = GameObject.FindGameObjectWithTag("Player"); foreach (GameObject item in _unitsGameObjArr) { goLst.Add(item); pctLst.Add(PlayerConstant.PlayerControlerType.FOLLOWER); } goLst.Add(_mainPlayer); pctLst.Add(PlayerConstant.PlayerControlerType.PROTAGONIST); BMC.registerInitCompleteBehaviourManager(BehaviourManagerType.PLAYER_MOVEMENT, this); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.PLAYER_CONTROLER_CHANGED, new object[] { goLst, pctLst }); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.PLAYER_FOLLOW_TARGET_CHANGED, _mainPlayer); BMC.getObserverBehaviour().registerMsg(this); // ===================== test =============================== }
public List<SearchCustomerDetailsResult> SearchCustomer(BMC.Transport.Customer oCustomerDetailsEntity) { return oCustomerDataAccess.rsp_SearchCustomerDetails(oCustomerDetailsEntity.FirstName, oCustomerDetailsEntity.LastName, oCustomerDetailsEntity.PinCode, oCustomerDetailsEntity.BankAccNo).ToList(); }
public int InsertCustomer(BMC.Transport.Customer oCustomerDetailsEntity) { return Convert.ToInt32(oCustomerDataAccess.InsertCustomerDetails(oCustomerDetailsEntity.Title,oCustomerDetailsEntity.FirstName, oCustomerDetailsEntity.MiddleName,oCustomerDetailsEntity.LastName,oCustomerDetailsEntity.ADDRESS1,oCustomerDetailsEntity.ADDRESS2, oCustomerDetailsEntity.ADDRESS3,oCustomerDetailsEntity.PinCode,oCustomerDetailsEntity.BankAccNo)); }
// public BatchHistoryBreakdown(int CollectionID, int InstallationNo, string ExchangeConst, List<Transport.AllEvents> events, BMC.Transport.CollectionView collection) { InitializeComponent(); _CollectionID = CollectionID; _InstallationNo = InstallationNo; _collectionview = collection; _lstEvents = events; ExchangeConnection = ExchangeConst; txtBatchDate.Content = _collectionview.Collection_Date_Performed.GetUniversalDateTimeFormat(); txtGame.Content = ((_collectionview.MachineName).Length > 15) ? (_collectionview.MachineName).Substring(0, 15) : _collectionview.MachineName; txtGame.ToolTip = _collectionview.MachineName; txtGamingDay.Content = _collectionview.CollectionDate.GetUniversalDateTimeFormat(); txtPos.Content = _collectionview.PosName; txtUser.Content = _collectionview.UserName.Split(',').First(); txtUser.ToolTip = _collectionview.UserName; LogManager.WriteLog("Declared User Name : " + _collectionview.DeclaredUserName, LogManager.enumLogLevel.Info); txtDeclareBy.Content = _collectionview.DeclaredUserName; txtDeclareBy.ToolTip = _collectionview.DeclaredUserName; txtZone.Content = _collectionview.ZoneName; txtAsset.Content = _collectionview.Stock_No; ChangeHeader(); if (!Settings.IsAFTEnabledForSite ? true : false) { RemoveHeader("EFTIn"); RemoveHeader("EFTOut"); RemoveHeader("EFT"); } MessageBox.childOwner = this; dgEvents.ItemsSource = _lstEvents; BackgroundWorker _bgLoadPositionScreen = new BackgroundWorker(); _bgLoadPositionScreen.DoWork += OnPositionScreenInitialize; _bgLoadPositionScreen.RunWorkerCompleted += OnPositionScreenComplete; _bgLoadPositionScreen.RunWorkerAsync(); _bgLoadPositionScreen.WorkerSupportsCancellation = true; }
public void Start() { gameConfigVo = BMC.getGameConfigBehaviour().gameConfigVo; gameLayerByMovement = NavMesh.GetAreaFromName(gameConfigVo.gameLayer_unit_movement); playerRigidbody = GetComponent <Rigidbody>(); absStart(); }
/// <summary> /// Validating Existence of Asset,New GMU NO, Serial No /// </summary> /// <param name="item_ags"></param> /// <param name="ErrorMsg"></param> /// <returns></returns> private bool Vaildate(BMC.Transport.AGSdetails item_ags, ref string ErrorMsg) { bool retval = true; try { int mygmuno = 0; int.TryParse(item_ags.GMUNo, out mygmuno); if (mygmuno == 0) { ErrorMsg = "MessageID524"; retval = false; } else if (mygmuno > 0 && mygmuno > 99999) { ErrorMsg = "MessageID525"; retval = false; } else if (UpdateGMUNo.CreateInstance().CheckAGSCombination(item_ags.ActualAssetNo, item_ags.GMUNo, item_ags.SerialNo)) { ErrorMsg = "MessageID510"; retval = false; } } catch (Exception ex) { retval = false; ErrorMsg = "MessageID511"; ExceptionManager.Publish(ex); } return retval; }
public void OnDestroy() { if (BMC.getObserverBehaviour() != null) { BMC.getObserverBehaviour().cleanTargetSubscriberMsg(this); } }
// ========================= AIMovement ========================= //protected override PlayerMovementDescribeVo absCreatePlayerDescribeVo() //{ // PlayerMovementDescribeVo pmd = new PlayerMovementDescribeVo(); // pmd.isAddClickGroundMask = true; // pmd.playerControlerType = PlayerConstant.PlayerControlerType.INCONTROLLABLE; // return pmd; //} //protected override void absClickGroundMaskAddComplete( GameObject _maskGo ) //{ // _maskGo.SetActive( false ); //} protected override void absStart() { _gameConfigVo = BMC.getGameConfigBehaviour().gameConfigVo; _ani = GetComponent <Animator>(); _ani.applyRootMotion = true; _ani.updateMode = AnimatorUpdateMode.Normal; _ani.cullingMode = AnimatorCullingMode.AlwaysAnimate; playerRigidbody.useGravity = true; playerRigidbody.isKinematic = false; playerRigidbody.detectCollisions = !playerRigidbody.isKinematic; playerRigidbody.interpolation = RigidbodyInterpolation.Interpolate; playerRigidbody.collisionDetectionMode = CollisionDetectionMode.Discrete; playerRigidbody.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ | RigidbodyConstraints.FreezePositionY; // 构建一个lookAt朝向定位球 最后一个路径 朝向有点小偏差 _lookAtPositionDeviceGo = new GameObject(); _lookAtPositionDeviceGo.name = "[朝向]定位球"; BMC.getObserverBehaviour().registerMsg(this); }
public void Start() { _gameConfigVo = BMC.getGameConfigBehaviour().gameConfigVo; sendFsmEvent(FSMEventsBlackBoard.FSM_DEFAULT_SETTING); BMC.getObserverBehaviour().registerMsg(this); }
void Log_WriteToExternalLog(string formattedMessage, BMC.CoreLib.Diagnostics.LogEntryType type, object extra) { _queue.Enqueue(new LogItem() { Message = formattedMessage, LogType = type, }); }
public GameObject getSelectBattleUnitLocaltionMaskGo() { if (_selectBattleUnitLocaltionMaskGo == null) { _selectBattleUnitLocaltionMaskGo = BMC.getPrefabsBehaviour().instantiatePrefab(PrefbasAssets.PrefabAssetsConstant.CLICKED_GROUND_MASK, true); } return(_selectBattleUnitLocaltionMaskGo); }
// ========================= AIMovement ========================= //protected override PlayerMovementDescribeVo absCreatePlayerDescribeVo() //{ // PlayerMovementDescribeVo pmd = new PlayerMovementDescribeVo(); // pmd.isAddClickGroundMask = true; // pmd.playerControlerType = PlayerConstant.PlayerControlerType.INCONTROLLABLE; // return pmd; //} //protected override void absClickGroundMaskAddComplete( GameObject _maskGo ) //{ // _maskGo.SetActive( false ); //} protected override void absStart() { _ani = GetComponent <Animator>(); playerRigidbody.isKinematic = true; playerRigidbody.detectCollisions = false; BMC.getObserverBehaviour().registerMsg(this); }
private void Open() { OpenFileDialog m_openFile = new OpenFileDialog(); m_openFile.FileName = "bmgres"; m_openFile.DefaultExt = ".arc"; m_openFile.Filter = "arc files (*.arc)|*.arc"; if (m_openFile.ShowDialog() == true) { VirtualFilesystemDirectory sourceDir = WArchiveTools.ArchiveUtilities.LoadArchive(m_openFile.FileName); foreach (VirtualFilesystemNode node in sourceDir.Children) { EndianBinaryReader reader; if (node.Type == NodeType.File) { VirtualFilesystemFile file = node as VirtualFilesystemFile; if (file.Extension == ".bmg") { if (IsDataLoaded) { CloseCurrentFile(); } reader = new EndianBinaryReader(file.Data, Endian.Big); LoadedTextFile = new BMG(reader); m_listboxSelectedIndex = 0; m_loadedFileName = m_openFile.FileName; WindowTitle = m_loadedFileName; ColViewSource = new CollectionViewSource(); ColViewSource.Source = LoadedTextFile.MessageList; SelectedMessage = LoadedTextFile.MessageList[0]; IsDataLoaded = true; m_loadedDirRoot = sourceDir; } else if (file.Extension == ".bmc") { VirtualFilesystemFile bmcFile = node as VirtualFilesystemFile; reader = new EndianBinaryReader(bmcFile.Data, Endian.Big); LoadedColorFile = new BMC(reader); } } } } }
public void Start() { if (_maskGo == null) { _maskGo = BMC.getPrefabsBehaviour().instantiatePrefab(PrefbasAssets.PrefabAssetsConstant.CLICKED_GROUND_MASK, false); } BMC.getObserverBehaviour().registerMsg(this); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_GLOBALBLACKBOARD_FINISHED, this); }
protected override void absStart() { _currCanMoveNavMeshPath = new NavMeshPath(); _tpLookAt = new TweenParams().SetEase(Ease.Linear); _tpMovement = new TweenParams().SetEase(Ease.Linear).OnUpdate(this.tweenOnMovementUpdate).OnComplete(this.tweenOnMovementComplete); _ani = GetComponent <Animator>(); _ani.applyRootMotion = false; _ani.SetBool(aniKeyOnGround, true); BMC.getObserverBehaviour().registerMsg(this); }
protected void showLocaltionMask(Vector3 position) { if (_locationMaskGo == null) { _locationMaskGo = BMC.getPrefabsBehaviour().instantiatePrefab(PrefbasAssets.PrefabAssetsConstant.CLICKED_GROUND_MASK, true); } if (!_locationMaskGo.activeSelf) { _locationMaskGo.SetActive(true); } _locationMaskGo.transform.position = position; }
public void Update() { // 点击左键 if (UnityEngine.Input.GetButtonDown("Fire1")) { if (_uiEventSystem.currentSelectedGameObject != null && _uiEventSystem.IsPointerOverGameObject()) { string selectGoName = _uiEventSystem.currentSelectedGameObject.name; _uiEventSystem.SetSelectedGameObject(null); BMC.getObserverBehaviour().publisheMsgByCoroutine(ObserverMsgTypeEnum.INPUT_CLICKED_HIT_2D_GAME_OBJECT, null); } else { BMC.getObserverBehaviour().publisheMsgByCoroutine(ObserverMsgTypeEnum.INPUT_CLICKED_HIT_3D_GAME_OBJECT, null); } } }
public void SetProcessInfo(BMC.CoreLib.WMI.Win32.Process process2) { this.Process2 = process2; string exePath = process2.ExecutablePath; try { this.AsmName = AssemblyName.GetAssemblyName(exePath); this.DomainSetup = new AppDomainSetup() { ApplicationBase = Path.GetDirectoryName(exePath), ApplicationName = Path.GetFileName(exePath), ConfigurationFile = exePath + ".config", ShadowCopyFiles = "true" }; } catch { } }
public MainForm() { BddViewForm = new BddViewDialog(); AddOwnedForm(BddViewForm); TrajectoryViewForm = new TrajectoryView(); AddOwnedForm(TrajectoryViewForm); BddMemoryInfo = new BddMemoryInfoDialog(); AddOwnedForm(BddMemoryInfo); InitializeComponent(); MyBMC = new BMC(); m_BddManager = new BddManager(); m_BddVarToName = new List <string>(100); m_BddVarToName.Insert(0, ""); }
public BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationSoapOut S2SMessagePostOperation(BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationSoapIn request) { ModuleProc PROC = new ModuleProc("", "Method"); try { Console.WriteLine("Received : " + request.Request.request); } catch (Exception ex) { Log.Exception(PROC, ex); } return new BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationSoapOut() { Response = new BMC.EBSComms.Contracts.Dto.SMS2EBS.ResponseType_13_0() { response = "success", }, }; }
public void Start() { _gameConfigTxtAssetsArr = Resources.LoadAll <TextAsset>("Configs"); for (int i = 0; i < _gameConfigTxtAssetsArr.Length; i++) { TextAsset ta = _gameConfigTxtAssetsArr[i]; string txtAssetsName = ta.name; if (txtAssetsName == "GameConfig") { this.parseGameConfigXML(ta); } _gameConfigTxtAssetsArr[i] = null; } BMC.registerInitCompleteBehaviourManager(BehaviourManagerType.GAME_CONFIG, this); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_GLOBALBLACKBOARD_FINISHED, this); }
protected override void actionStart() { // 设置默认可以控制的 unit playerInfoBB.setCurrLeadGo(defaultSelectLeadUnit); //// 设置主摄像机 跟随的 unit //CameraPointVo mainCameraPointVo = defaultMainCameraPoint.GetComponent<CameraPointVo>(); //mainCameraPointVo.setFollowerTarget( defaultSelectLeadUnit ); //mainCameraPointVo.initDefaultCameraPoint(); //mainCameraPointVo.cameraFollowTarget(); //// [保存]住摄像机 机位对象 //playerInfoBB.setMainCameraPointVo( mainCameraPointVo ); // [保存]点击地板后的特效 GameObject clickedFloorAnimGo = BMC.getPrefabsBehaviour().instantiatePrefab(PrefbasAssets.PrefabAssetsConstant.CLICKED_GROUND_MASK, true); playerInfoBB.setClickedFloorAnimGo(clickedFloorAnimGo); // [保存]选择一个可控制单位的特效 或 高亮什么的 GameObject currSelectLeadAnimGo = BMC.getPrefabsBehaviour().instantiatePrefab(PrefbasAssets.PrefabAssetsConstant.CLICKED_GROUND_MASK, true); playerInfoBB.setCurrSelectLeadAnimGo(currSelectLeadAnimGo); }
public void Start() { BMC.getObserverBehaviour().registerMsg(this); RectTransform canvasRt = uiCanvas.GetComponent <RectTransform>(); Array uiLayerEnumArr = Enum.GetValues(typeof(UIConstant.UILayerType)); // ? 这个类 需要自动生成 PrefbasAssets.PrefabAssetsConstant uiEmptyContainer = PrefbasAssets.PrefabAssetsConstant.UI_EMPTY_CONTAINER; foreach (UIConstant.UILayerType item in uiLayerEnumArr) { GameObject windowContainer = BMC.getPrefabsBehaviour().instantiatePrefab(uiEmptyContainer, true); RectTransform windowRectTransfrom = windowContainer.GetComponent <RectTransform>(); windowRectTransfrom.name = item.ToString(); windowRectTransfrom.SetParent(canvasRt); string emptyContainerPrefabPath = BMC.getPrefabsBehaviour().getPrefabPath(uiEmptyContainer); windowContainer.AddComponent <RectTransfromResetComponent>().reSetRectTransformInfo(emptyContainerPrefabPath); _layerContainerMapping[item] = windowContainer; } }
///// <summary> ///// This Method will retry around certain number of times if it fails ///// </summary> ///// <param name="Key"></param> ///// <param name="Installation_No"></param> ///// <param name="Bar_Pos_Port"></param> ///// <param name="DisableMachine"></param> ///// <returns></returns> //private bool InvokeMethod(string Key, int Installation_No, int Bar_Pos_Port, int DisableMachine) //{ // bool retVal = false; // int Count = 0; // try // { // while (Count < RetryCount) // { // ar_wait.WaitOne(2000); // if (Key == "RemoveMachineFromPollingList") // { // if (di_Method[Key].Invoke(Installation_No, DisableMachine)) // { // ar_wait.Set(); // retVal = true; // break; // } // } // else // { // if (di_Method[Key].Invoke(Installation_No, Bar_Pos_Port)) // { // ar_wait.Set(); // retVal = true; // break; // } // } // Count++; // } // } // catch (Exception Ex) // { // ExceptionManager.Publish(Ex); // } // return retVal; //} /// <summary> /// Remove machine from polling list and then adding to polling list with same installtion /// </summary> /// <param name="item_ags"></param> /// <returns>true or false</returns> private bool SendDetailsToExcomms(BMC.Transport.AGSdetails item_ags) { bool retVal = false; try { EnrollmentDataAccess enrollmentDataAccess = new EnrollmentDataAccess(); int Bar_Pos_Port = enrollmentDataAccess.GetBarPosPort(item_ags.Installation_No.Value); if (item_ags.IsNull) { if (UpdateGMUNo.CreateInstance().RemoveMachineFromPollingList(item_ags.Installation_No.Value, 0)) { LogManager.WriteLog(strScreenName + " Remove Machine From PollingList Succeed InstallationNo:" + item_ags.Installation_No.Value, LogManager.enumLogLevel.Info); LogManager.WriteLog(strScreenName + "'NULL' string updated successfully for an asset :" + item_ags.AssetNo, LogManager.enumLogLevel.Info); bool retGMUEvent = UpdateGMUNo.CreateInstance().UpdateGMUDownEvent(item_ags.Installation_No.Value); LogManager.WriteLog(strScreenName + "'GMUDownEvent inserted - " + retGMUEvent.ToString() + " - for an asset :" + item_ags.AssetNo, LogManager.enumLogLevel.Info); retVal = true; } else { BMC.Presentation.MessageBox.ShowBox("MessageID208", BMC_Icon.Error); LogManager.WriteLog(strScreenName + "Unable to Remove Machine From PollingList InstallationNo:" + item_ags.Installation_No.Value, LogManager.enumLogLevel.Info); } } else { if (UpdateGMUNo.CreateInstance().AddToPollingList(item_ags.Installation_No.Value, Bar_Pos_Port)) { LogManager.WriteLog(strScreenName + "Add Machine To PollingList Succeed InstallationNo:" + item_ags.Installation_No.Value, LogManager.enumLogLevel.Info); retVal = true; } else { BMC.Presentation.MessageBox.ShowBox("MessageID508", BMC_Icon.Error); LogManager.WriteLog(strScreenName + "Unable to Add Machine To PollingList InstallationNo:" + item_ags.Installation_No.Value, LogManager.enumLogLevel.Info); } } } catch (Exception ex) { ExceptionManager.Publish(ex); } return retVal; }
public void Start() { BMC.registerInitCompleteBehaviourManager(BehaviourManagerType.OB_SERVER, this); StartCoroutine("coroutinePublisheMsg"); }
public static void GetAnalysisDetails(ref BMC.Transport.CashDeskOperatorEntity.SpotCheck objSpotCheck) { try { SqlParameter[] objParams = new SqlParameter[42]; objParams[0] = new SqlParameter("@Installation_No", objSpotCheck.InstallationNo); objParams[1] = AddOutputparameter("@Cash_In ", objSpotCheck.CashIn); objParams[2] = AddOutputparameter("@Cash_Out", objSpotCheck.CashOut); objParams[3] = AddOutputparameter("@Token_In", objSpotCheck.TokenIn); objParams[4] = AddOutputparameter("@Token_Out", objSpotCheck.TokenOut); objParams[5] = AddOutputparameter("@Token_Refill", objSpotCheck.TokenRefill); objParams[6] = AddOutputparameter("@Cash_Refill", objSpotCheck.CashRefill); objParams[7] = AddOutputparameter("@COINS_IN", objSpotCheck.CoinsIn); objParams[8] = AddOutputparameter("@COINS_OUT", objSpotCheck.CoinsOut); objParams[9] = AddOutputparameter("@COINS_DROP", objSpotCheck.CoinsDrop); objParams[10] = AddOutputparameter("@CANCELLED_CREDITS", objSpotCheck.CancelledCredits); objParams[11] = AddOutputparameter("@VTP", objSpotCheck.VTP); objParams[12] = AddOutputparameter("@Datetime", objSpotCheck.DateTimeStamp); objParams[13] = AddOutputparameter("@Jackpot", objSpotCheck.Jackpot); objParams[14] = AddOutputparameter("@Handpay", objSpotCheck.HandPay); objParams[15] = AddOutputparameter("@BILL_1", objSpotCheck.Bill1); objParams[16] = AddOutputparameter("@BILL_2", objSpotCheck.Bill2); objParams[17] = AddOutputparameter("@BILL_5", objSpotCheck.Bill5); objParams[18] = AddOutputparameter("@BILL_10", objSpotCheck.Bill10); objParams[19] = AddOutputparameter("@BILL_20", objSpotCheck.Bill20); objParams[20] = AddOutputparameter("@BILL_50", objSpotCheck.Bill50); objParams[21] = AddOutputparameter("@BILL_100", objSpotCheck.Bill100); objParams[22] = AddOutputparameter("@BILL_250", objSpotCheck.Bill250); objParams[23] = AddOutputparameter("@BILL_10000", objSpotCheck.Bill10000); objParams[24] = AddOutputparameter("@BILL_20000", objSpotCheck.Bill20000); objParams[25] = AddOutputparameter("@BILL_50000", objSpotCheck.Bill50000); objParams[26] = AddOutputparameter("@BILL_100000", objSpotCheck.Bill100000); objParams[27] = AddOutputparameter("@Ticktes_Inserted", objSpotCheck.TicketsInserted); objParams[28] = AddOutputparameter("@TRUE_COIN_IN", objSpotCheck.TrueCoinIn); objParams[29] = AddOutputparameter("@TRUE_COIN_OUT", objSpotCheck.TrueCoinOut); objParams[30] = AddOutputparameter("@CASH_IN_2P", objSpotCheck.CashIn2p); objParams[31] = AddOutputparameter("@CASH_IN_100P", objSpotCheck.CashIn100p); objParams[32] = AddOutputparameter("@CASH_IN_200P", objSpotCheck.CashIn200p); objParams[33] = AddOutputparameter("@CASH_IN_500P", objSpotCheck.CashIn500p); objParams[34] = AddOutputparameter("@CASH_IN_1000P", objSpotCheck.CashIn1000p); objParams[35] = AddOutputparameter("@CASH_IN_2000P", objSpotCheck.CashIn2000p); objParams[36] = AddOutputparameter("@Tickets_Printed", objSpotCheck.TicketsPrinted); objParams[37] = new SqlParameter("@bStartOfDay", objSpotCheck.StartOfDay); objParams[38] = new SqlParameter("@bSelectDay", objSpotCheck.SelectDay); objParams[39] = new SqlParameter("@Date", objSpotCheck.Date); objParams[40] = AddOutputparameter("@NoOfDays", 0); objParams[41] = AddOutputparameter("@ProgHandpay", 0); SqlConnection objcon = new SqlConnection(GetExchangeConnectionString()); objcon.Open(); SqlCommand objcomd = new SqlCommand("usp_GetSpotCheckDataSAS", objcon); objcomd.CommandType = CommandType.StoredProcedure; objcomd.Parameters.AddRange(objParams); objcomd.ExecuteReader(); objcon.Close(); objSpotCheck.CashIn = Convert.ToInt32(objParams[1].Value); objSpotCheck.CashOut = Convert.ToInt32(objParams[2].Value); objSpotCheck.TokenIn = Convert.ToInt32(objParams[3].Value); objSpotCheck.TokenOut = Convert.ToInt32(objParams[4].Value); objSpotCheck.TokenRefill = Convert.ToInt32(objParams[5].Value); objSpotCheck.CashRefill = Convert.ToInt32(objParams[6].Value); objSpotCheck.CoinsIn = Convert.ToInt32(objParams[7].Value); objSpotCheck.CoinsOut = Convert.ToInt32(objParams[8].Value); objSpotCheck.CoinsDrop = Convert.ToDouble(objParams[9].Value); objSpotCheck.CancelledCredits = Convert.ToInt32(objParams[10].Value); objSpotCheck.VTP = Convert.ToInt32(objParams[11].Value); objSpotCheck.DateTimeStamp = Convert.ToDateTime(objParams[12].Value); objSpotCheck.Jackpot = Convert.ToInt32(objParams[13].Value); objSpotCheck.HandPay = Convert.ToInt32(objParams[14].Value); objSpotCheck.TicketsInserted = Convert.ToInt32(objParams[27].Value); objSpotCheck.TrueCoinIn = Convert.ToInt32(objParams[28].Value); objSpotCheck.TrueCoinOut = Convert.ToInt32(objParams[29].Value); objSpotCheck.TicketsPrinted = Convert.ToInt32(objParams[36].Value); objSpotCheck.Bill1 = Convert.ToInt32(objParams[15].Value); objSpotCheck.Bill2 = Convert.ToInt32(objParams[16].Value); objSpotCheck.Bill5 = Convert.ToInt32(objParams[17].Value); objSpotCheck.Bill10 = Convert.ToInt32(objParams[18].Value); objSpotCheck.Bill20 = Convert.ToInt32(objParams[19].Value); objSpotCheck.Bill50 = Convert.ToInt32(objParams[20].Value); objSpotCheck.Bill100 = Convert.ToInt32(objParams[21].Value); objSpotCheck.Bill250 = Convert.ToInt32(objParams[22].Value); objSpotCheck.Bill10000 = Convert.ToInt32(objParams[23].Value); objSpotCheck.Bill20000 = Convert.ToInt32(objParams[24].Value); objSpotCheck.Bill50000 = Convert.ToInt32(objParams[25].Value); objSpotCheck.Bill100000 = Convert.ToInt32(objParams[26].Value); objSpotCheck.CashIn2p = Convert.ToInt32(objParams[30].Value); objSpotCheck.CashIn100p = Convert.ToInt32(objParams[31].Value); objSpotCheck.CashIn200p = Convert.ToInt32(objParams[32].Value); objSpotCheck.CashIn500p = Convert.ToInt32(objParams[33].Value); objSpotCheck.CashIn1000p = Convert.ToInt32(objParams[34].Value); objSpotCheck.CashIn2000p = Convert.ToInt32(objParams[35].Value); objSpotCheck.NumberOfDays = Convert.ToInt32(objParams[40].Value); objSpotCheck.ProgHandpay = Convert.ToInt32(objParams[41].Value); } catch (Exception ex) { ExceptionManager.Publish(ex); } }
protected override bool ConnectInternal(BMC.CoreLib.Diagnostics.ModuleProc PROC, EndPoint remoteEndpoint) { throw new NotImplementedException(); }
protected override int ReadInternal(BMC.CoreLib.Diagnostics.ModuleProc PROC, byte[] buffer, int offset, int size) { return 0; }
public void ProcessResponse(BMC.Business.NetworkService.EnableDisableThreadDataResponse threadData) { if (dEnableDisableRequest.Count <= 0) return; try { if (mEvent.WaitOne(NetworkServiceSettings.DBHitWaitTime)) { return; } lock (_lockRes) { if (dEnableDisableRequest.ContainsKey(threadData.MessageID)) { EnableDisableThreadData Requestitem = dEnableDisableRequest[threadData.MessageID]; //Update DB and remove from both lists if (threadData.Ack == true) { DBBuilder.UpdateAAMSStatus(Requestitem.badID, Requestitem.datapakCurrentState.ToString(), "", 3, Requestitem.InstallationNo, Requestitem.updateDate); // LogManager.WriteLog("Update Bar Position machine status", LogManager.enumLogLevel.Info); DBBuilder.UpdateBarPosition(Requestitem.InstallationNo, Requestitem.Enable); LogManager.WriteLog("ProcessResponse_EnableDisable | ACK Updated for Installation:" + Requestitem.InstallationNo.ToString() +", Command:"+Requestitem.command.ToString() , LogManager.enumLogLevel.Info); } else { LogManager.WriteLog("ProcessResponse_EnableDisable | NACK received for Installation:" + Requestitem.InstallationNo.ToString() + ", Command:" + Requestitem.command.ToString() , LogManager.enumLogLevel.Info); } //LogManager.WriteLog("Requesting command result: " + Responseitem.Value.ToString() + " - Installation Number: " + Requestitem.Value.ToString(), LogManager.enumLogLevel.Info); dEnableDisableRequest.Remove(threadData.MessageID); } } } catch (Exception ex) { LogManager.WriteLog("ProcessResponse_EnableDisable | Exception Occured." + ex.Message, LogManager.enumLogLevel.Info); ExceptionManager.Publish(ex); } }
public bool ProcessG2HMessage(BMC.ExComms.Contracts.DTO.Monitor.MonMsg_G2H request) { throw new NotImplementedException(); }
public void Start() { BMC.registerInitCompleteBehaviourManager(BehaviourManagerType.INPUT_MOUSE, this); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_GLOBALBLACKBOARD_FINISHED, this); }
public Config_EnterpriseClient(BMC.Common.Persistence.IConfigProvider configProvider, bool load) { this._configProvider = configProvider; this.Initialize(load); }
private void connectionServer() { BMC.registerInitCompleteBehaviourManager(BehaviourManagerType.GAME_SERVER, this); BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_GLOBALBLACKBOARD_FINISHED, this); }
protected void sendFsmEvent(int id) { BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_FSM_EVENT, id); }
public Config_ExchangeServer(BMC.Common.Persistence.IConfigProvider configProvider, bool load) { this._configProvider = configProvider; this.Initialize(load); }
protected void publisheMsgByCoroutine(ObserverMsgTypeEnum msg, object paramsObj) { BMC.getObserverBehaviour().publisheMsgByCoroutine(msg, paramsObj); }
public void Start() { BMC.getObserverBehaviour().publisheMsg(ObserverMsgTypeEnum.BEHAVIOUR_MACHINE_SET_AS_CONCURRENT, this); }
/// <summary> /// Send AGS details to enterprise /// </summary> /// <param name="item_ags"></param> private void SaveAGSCombination(BMC.Transport.AGSdetails item_ags) { try { string strXml = UpdateGMUNo.CreateInstance().ExportAGSDetails(item_ags.MachineID, item_ags.GMUNo); Proxy oProxy = new Proxy(Settings.SiteCode); if (oProxy.UpdateGMUNumber(strXml))//Send AGS Details to Enterprise { LogManager.WriteLog(strScreenName + "Enterprise GMU Number Updated Successfully", LogManager.enumLogLevel.Info); if (UpdateGMUNo.CreateInstance().UpdateGMUDetails(item_ags.MachineID, item_ags.GMUNo, item_ags.Installation_No.Value))//After Vaildating in Enterprise Updating GMUNo in Exchange { if (SendDetailsToExcomms(item_ags))//Send to Excomms i.e. GMU No is modified { BMC.Presentation.MessageBox.ShowBox("MessageID506", BMC_Icon.Information); LogManager.WriteLog(strScreenName + "Exchange GMU Number Updated Successfully GMUNo: " + item_ags.OldGMUNo + "-->" + item_ags.GMUNo, LogManager.enumLogLevel.Info); AuditModule("GMU Updated Successfully for an Asset ", item_ags.AssetNo, item_ags.OldGMUNo, item_ags.GMUNo); } else { AuditModule("GMU Updated Failed for an Asset ", item_ags.AssetNo, item_ags.OldGMUNo, item_ags.GMUNo); UpdateGMUNo.CreateInstance().UpdateGMUDetails(item_ags.MachineID, item_ags.OldGMUNo, item_ags.Installation_No.Value); LogManager.WriteLog(strScreenName + "Rollback GMU Number Updation in Exchange GMUNo: " + item_ags.GMUNo + "-->" + item_ags.OldGMUNo, LogManager.enumLogLevel.Info); strXml = UpdateGMUNo.CreateInstance().ExportAGSDetails(item_ags.MachineID, item_ags.OldGMUNo); oProxy.UpdateGMUNumber(strXml); LogManager.WriteLog(strScreenName + "Rollback GMU Number Updation in Enterprise GMUNo: " + item_ags.GMUNo + "-->" + item_ags.OldGMUNo, LogManager.enumLogLevel.Info); item_ags.GMUNo = item_ags.OldGMUNo; AuditModule("Rollback GMU Number Updation for an Asset ", item_ags.AssetNo, item_ags.GMUNo, item_ags.OldGMUNo); } } else { AuditModule("GMU Updated Failed for an Asset ", item_ags.AssetNo, item_ags.OldGMUNo, item_ags.GMUNo); BMC.Presentation.MessageBox.ShowBox("MessageID507", BMC_Icon.Information); LogManager.WriteLog(strScreenName + "Exchange GMU Number Updated Failed for GMUNo: " + item_ags.GMUNo, LogManager.enumLogLevel.Info); item_ags.GMUNo = item_ags.OldGMUNo; } } else { BMC.Presentation.MessageBox.ShowBox("MessageID529", BMC_Icon.Information); // AuditModule("GMU Updated Failed for an Asset ", item_ags.AssetNo, item_ags.OldGMUNo, item_ags.GMUNo); LogManager.WriteLog(strScreenName + "Enterprise GMU Number Updated Failed for GMUNo: " + item_ags.GMUNo, LogManager.enumLogLevel.Info); item_ags.GMUNo = item_ags.OldGMUNo; } } catch (Exception Ex) { AuditModule("GMU Updated Failed for an Asset ", item_ags.AssetNo, item_ags.OldGMUNo, item_ags.GMUNo); BMC.Presentation.MessageBox.ShowBox("MessageID507", BMC_Icon.Information); item_ags.GMUNo = item_ags.OldGMUNo; ExceptionManager.Publish(Ex); } }
public void GetAnalysisDetails(ref BMC.Transport.CashDeskOperatorEntity.SpotCheck objSpotCheck) { SqlParameter[] objParams = null; try { if (System.Globalization.CultureInfo.CurrentCulture.Name == "it-IT" || System.Globalization.CultureInfo.CurrentUICulture.Name == "it-IT" || (Settings.RegulatoryEnabled && Settings.RegulatoryType == "AAMS")) { if (Settings.IsAFTEnabledForSite) { objParams = new SqlParameter[54]; } else { objParams = new SqlParameter[48]; } objParams[0] = new SqlParameter("@Installation_No", objSpotCheck.InstallationNo); objParams[1] = CommonDataAccess.AddOutputparameter("@Cash_In ", objSpotCheck.CashIn); objParams[2] = CommonDataAccess.AddOutputparameter("@Cash_Out", objSpotCheck.CashOut); objParams[3] = CommonDataAccess.AddOutputparameter("@Token_In", objSpotCheck.TokenIn); objParams[4] = CommonDataAccess.AddOutputparameter("@Token_Out", objSpotCheck.TokenOut); objParams[5] = CommonDataAccess.AddOutputparameter("@Token_Refill", objSpotCheck.TokenRefill); objParams[6] = CommonDataAccess.AddOutputparameter("@Cash_Refill", objSpotCheck.CashRefill); objParams[7] = CommonDataAccess.AddOutputparameter("@COINS_IN", objSpotCheck.CoinsIn); objParams[8] = CommonDataAccess.AddOutputparameter("@COINS_OUT", objSpotCheck.CoinsOut); objParams[9] = CommonDataAccess.AddOutputparameter("@COINS_DROP", objSpotCheck.CoinsDrop); objParams[10] = CommonDataAccess.AddOutputparameter("@CANCELLED_CREDITS", objSpotCheck.CancelledCredits); objParams[11] = CommonDataAccess.AddOutputparameter("@VTP", objSpotCheck.VTP); objParams[12] = CommonDataAccess.AddOutputparameter("@Datetime", objSpotCheck.DateTimeStamp); objParams[13] = CommonDataAccess.AddOutputparameter("@Jackpot", objSpotCheck.Jackpot); objParams[14] = CommonDataAccess.AddOutputparameter("@Handpay", objSpotCheck.HandPay); objParams[15] = CommonDataAccess.AddOutputparameter("@BILL_1", objSpotCheck.Bill1); objParams[16] = CommonDataAccess.AddOutputparameter("@BILL_2", objSpotCheck.Bill2); objParams[17] = CommonDataAccess.AddOutputparameter("@BILL_5", objSpotCheck.Bill5); objParams[18] = CommonDataAccess.AddOutputparameter("@BILL_10", objSpotCheck.Bill10); objParams[19] = CommonDataAccess.AddOutputparameter("@BILL_20", objSpotCheck.Bill20); objParams[20] = CommonDataAccess.AddOutputparameter("@BILL_50", objSpotCheck.Bill50); objParams[21] = CommonDataAccess.AddOutputparameter("@BILL_100", objSpotCheck.Bill100); objParams[22] = CommonDataAccess.AddOutputparameter("@BILL_250", objSpotCheck.Bill250); objParams[23] = CommonDataAccess.AddOutputparameter("@BILL_10000", objSpotCheck.Bill10000); objParams[24] = CommonDataAccess.AddOutputparameter("@BILL_20000", objSpotCheck.Bill20000); objParams[25] = CommonDataAccess.AddOutputparameter("@BILL_50000", objSpotCheck.Bill50000); objParams[26] = CommonDataAccess.AddOutputparameter("@BILL_100000", objSpotCheck.Bill100000); objParams[27] = CommonDataAccess.AddOutputparameter("@Ticktes_Inserted", objSpotCheck.TicketsInserted); objParams[28] = CommonDataAccess.AddOutputparameter("@TRUE_COIN_IN", objSpotCheck.TrueCoinIn); objParams[29] = CommonDataAccess.AddOutputparameter("@TRUE_COIN_OUT", objSpotCheck.TrueCoinOut); objParams[30] = CommonDataAccess.AddOutputparameter("@CASH_IN_1P", objSpotCheck.CashIn1p); objParams[31] = CommonDataAccess.AddOutputparameter("@CASH_IN_2P", objSpotCheck.CashIn2p); objParams[32] = CommonDataAccess.AddOutputparameter("@CASH_IN_100P", objSpotCheck.CashIn100p); objParams[33] = CommonDataAccess.AddOutputparameter("@CASH_IN_200P", objSpotCheck.CashIn200p); objParams[34] = CommonDataAccess.AddOutputparameter("@CASH_IN_500P", objSpotCheck.CashIn500p); objParams[35] = CommonDataAccess.AddOutputparameter("@CASH_IN_1000P", objSpotCheck.CashIn1000p); objParams[36] = CommonDataAccess.AddOutputparameter("@CASH_IN_2000P", objSpotCheck.CashIn2000p); objParams[37] = CommonDataAccess.AddOutputparameter("@Tickets_Printed", objSpotCheck.TicketsPrinted); objParams[38] = new SqlParameter("@bStartOfDay", objSpotCheck.StartOfDay); objParams[39] = new SqlParameter("@bSelectDay", objSpotCheck.SelectDay); objParams[40] = new SqlParameter("@Date", objSpotCheck.Date); objParams[41] = CommonDataAccess.AddOutputparameter("@NoOfDays", 0); objParams[42] = CommonDataAccess.AddOutputparameter("@ProgHandpay", objSpotCheck.ProgHandpay); objParams[43] = CommonDataAccess.AddOutputparameter("@Games_Bet", 0); if (Settings.IsAFTEnabledForSite) { objParams[44] = CommonDataAccess.AddOutputparameter("@CashableAFTIn", objSpotCheck.CashableEFTIn); objParams[45] = CommonDataAccess.AddOutputparameter("@CashableAFTOut", objSpotCheck.CashableEFTOut); objParams[46] = CommonDataAccess.AddOutputparameter("@NonCashableAFTIn", objSpotCheck.NonCashableEFTIn); objParams[47] = CommonDataAccess.AddOutputparameter("@NonCashableAFTOut", objSpotCheck.NonCashableEFTOut); objParams[48] = CommonDataAccess.AddOutputparameter("@WATIn", objSpotCheck.WATIn); objParams[49] = CommonDataAccess.AddOutputparameter("@WATOut", objSpotCheck.WATOut); objParams[50] = CommonDataAccess.AddOutputparameter("@BILL_200", objSpotCheck.Bill200); objParams[51] = CommonDataAccess.AddOutputparameter("@BILL_500", objSpotCheck.Bill500); objParams[52] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Inserted", objSpotCheck.NonCashableTicketsInserted); objParams[53] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Printed", objSpotCheck.NonCashableTicketsPrinted); } else { objParams[44] = CommonDataAccess.AddOutputparameter("@BILL_200", objSpotCheck.Bill200); objParams[45] = CommonDataAccess.AddOutputparameter("@BILL_500", objSpotCheck.Bill500); objParams[46] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Inserted", objSpotCheck.NonCashableTicketsInserted); objParams[47] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Printed", objSpotCheck.NonCashableTicketsPrinted); } SqlConnection objcon = new SqlConnection(CommonDataAccess.ExchangeConnectionString); objcon.Open(); SqlCommand objcomd = new SqlCommand("usp_GetSpotCheckDataSAS", objcon); objcomd.CommandType = CommandType.StoredProcedure; objcomd.CommandTimeout = SqlHelper.LoadCommandTimeout(); objcomd.Parameters.AddRange(objParams); objcomd.ExecuteReader(); objcon.Close(); objSpotCheck.CashIn = (objParams[1].Value).ToString().GetDecimal(); objSpotCheck.CashOut = (objParams[2].Value).ToString().GetDecimal(); objSpotCheck.TokenIn = (objParams[3].Value).ToString().GetDecimal(); objSpotCheck.TokenOut = (objParams[4].Value).ToString().GetDecimal(); objSpotCheck.TokenRefill = (objParams[5].Value).ToString().GetDecimal(); objSpotCheck.CashRefill = (objParams[6].Value).ToString().GetDecimal(); objSpotCheck.CoinsIn = (objParams[7].Value).ToString().GetDecimal(); objSpotCheck.CoinsOut = (objParams[8].Value).ToString().GetDecimal(); objSpotCheck.CoinsDrop = (double)(objParams[9].Value).ToString().GetDecimal(); objSpotCheck.CancelledCredits = (objParams[10].Value).ToString().GetDecimal(); objSpotCheck.VTP = (objParams[11].Value).ToString().GetDecimal(); objSpotCheck.DateTimeStamp = objParams[12].Value.ToString().ReadDate(); objSpotCheck.Jackpot = (objParams[13].Value).ToString().GetDecimal(); objSpotCheck.HandPay = (objParams[14].Value).ToString().GetDecimal(); objSpotCheck.TicketsInserted = (objParams[27].Value).ToString().GetDecimal(); objSpotCheck.TrueCoinIn = (objParams[28].Value).ToString().GetDecimal(); objSpotCheck.TrueCoinOut = (objParams[29].Value).ToString().GetDecimal(); objSpotCheck.TicketsPrinted = (objParams[36].Value).ToString().GetDecimal(); objSpotCheck.Bill1 = (objParams[15].Value).ToString().GetDecimal(); objSpotCheck.Bill2 = (objParams[16].Value).ToString().GetDecimal(); objSpotCheck.Bill5 = (objParams[17].Value).ToString().GetDecimal(); objSpotCheck.Bill10 = (objParams[18].Value).ToString().GetDecimal(); objSpotCheck.Bill20 = (objParams[19].Value).ToString().GetDecimal(); objSpotCheck.Bill50 = (objParams[20].Value).ToString().GetDecimal(); objSpotCheck.Bill100 = (objParams[21].Value).ToString().GetDecimal(); objSpotCheck.Bill250 = (objParams[22].Value).ToString().GetDecimal(); objSpotCheck.Bill10000 = (objParams[23].Value).ToString().GetDecimal(); objSpotCheck.Bill20000 = (objParams[24].Value).ToString().GetDecimal(); objSpotCheck.Bill50000 = (objParams[25].Value).ToString().GetDecimal(); objSpotCheck.Bill100000 = (objParams[26].Value).ToString().GetDecimal(); objSpotCheck.CashIn2p = (objParams[30].Value).ToString().GetDecimal(); objSpotCheck.CashIn100p = (objParams[31].Value).ToString().GetDecimal(); objSpotCheck.CashIn200p = (objParams[32].Value).ToString().GetDecimal(); objSpotCheck.CashIn500p = (objParams[33].Value).ToString().GetDecimal(); objSpotCheck.CashIn1000p = (objParams[34].Value).ToString().GetDecimal(); objSpotCheck.CashIn2000p = (objParams[35].Value).ToString().GetDecimal(); objSpotCheck.NumberOfDays = (objParams[40].Value == DBNull.Value) ? 0 : Convert.ToInt32(objParams[40].Value); objSpotCheck.ProgHandpay = (objParams[41].Value).ToString().GetDecimal(); objSpotCheck.GamesBet = Convert.ToInt32(objParams[42].Value); if (Settings.IsAFTEnabledForSite) { objSpotCheck.CashableEFTIn = (objParams[43].Value).ToString().GetDecimal(); objSpotCheck.CashableEFTOut = (objParams[44].Value).ToString().GetDecimal(); objSpotCheck.NonCashableEFTIn = (objParams[45].Value).ToString().GetDecimal(); objSpotCheck.NonCashableEFTOut = (objParams[46].Value).ToString().GetDecimal(); objSpotCheck.WATIn = (objParams[47].Value).ToString().GetDecimal(); objSpotCheck.WATOut = (objParams[48].Value).ToString().GetDecimal(); objSpotCheck.Bill200 = (objParams[49].Value).ToString().GetDecimal(); objSpotCheck.Bill500 = (objParams[50].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsInserted = (objParams[51].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsPrinted = (objParams[52].Value).ToString().GetDecimal(); } else { objSpotCheck.Bill200 = (objParams[43].Value).ToString().GetDecimal(); objSpotCheck.Bill500 = (objParams[44].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsInserted = (objParams[45].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsPrinted = (objParams[46].Value).ToString().GetDecimal(); } } else { if (Settings.IsAFTEnabledForSite) { objParams = new SqlParameter[54]; } else { objParams = new SqlParameter[48]; } objParams[0] = new SqlParameter("@Installation_No", objSpotCheck.InstallationNo); objParams[1] = CommonDataAccess.AddOutputparameter("@Cash_In ", objSpotCheck.CashIn); objParams[2] = CommonDataAccess.AddOutputparameter("@Cash_Out", objSpotCheck.CashOut); objParams[3] = CommonDataAccess.AddOutputparameter("@Token_In", objSpotCheck.TokenIn); objParams[4] = CommonDataAccess.AddOutputparameter("@Token_Out", objSpotCheck.TokenOut); objParams[5] = CommonDataAccess.AddOutputparameter("@Token_Refill", objSpotCheck.TokenRefill); objParams[6] = CommonDataAccess.AddOutputparameter("@Cash_Refill", objSpotCheck.CashRefill); objParams[7] = CommonDataAccess.AddOutputparameter("@COINS_IN", objSpotCheck.CoinsIn); objParams[8] = CommonDataAccess.AddOutputparameter("@COINS_OUT", objSpotCheck.CoinsOut); objParams[9] = CommonDataAccess.AddOutputparameter("@COINS_DROP", objSpotCheck.CoinsDrop); objParams[10] = CommonDataAccess.AddOutputparameter("@CANCELLED_CREDITS", objSpotCheck.CancelledCredits); objParams[11] = CommonDataAccess.AddOutputparameter("@VTP", objSpotCheck.VTP); objParams[12] = CommonDataAccess.AddOutputparameter("@Datetime", objSpotCheck.DateTimeStamp); objParams[13] = CommonDataAccess.AddOutputparameter("@Jackpot", objSpotCheck.Jackpot); objParams[14] = CommonDataAccess.AddOutputparameter("@Handpay", objSpotCheck.HandPay); objParams[15] = CommonDataAccess.AddOutputparameter("@BILL_1", objSpotCheck.Bill1); objParams[16] = CommonDataAccess.AddOutputparameter("@BILL_2", objSpotCheck.Bill2); objParams[17] = CommonDataAccess.AddOutputparameter("@BILL_5", objSpotCheck.Bill5); objParams[18] = CommonDataAccess.AddOutputparameter("@BILL_10", objSpotCheck.Bill10); objParams[19] = CommonDataAccess.AddOutputparameter("@BILL_20", objSpotCheck.Bill20); objParams[20] = CommonDataAccess.AddOutputparameter("@BILL_50", objSpotCheck.Bill50); objParams[21] = CommonDataAccess.AddOutputparameter("@BILL_100", objSpotCheck.Bill100); objParams[22] = CommonDataAccess.AddOutputparameter("@BILL_250", objSpotCheck.Bill250); objParams[23] = CommonDataAccess.AddOutputparameter("@BILL_10000", objSpotCheck.Bill10000); objParams[24] = CommonDataAccess.AddOutputparameter("@BILL_20000", objSpotCheck.Bill20000); objParams[25] = CommonDataAccess.AddOutputparameter("@BILL_50000", objSpotCheck.Bill50000); objParams[26] = CommonDataAccess.AddOutputparameter("@BILL_100000", objSpotCheck.Bill100000); objParams[27] = CommonDataAccess.AddOutputparameter("@Ticktes_Inserted", objSpotCheck.TicketsInserted); objParams[28] = CommonDataAccess.AddOutputparameter("@TRUE_COIN_IN", objSpotCheck.TrueCoinIn); objParams[29] = CommonDataAccess.AddOutputparameter("@TRUE_COIN_OUT", objSpotCheck.TrueCoinOut); objParams[30] = CommonDataAccess.AddOutputparameter("@CASH_IN_1P", objSpotCheck.CashIn1p); objParams[31] = CommonDataAccess.AddOutputparameter("@CASH_IN_2P", objSpotCheck.CashIn2p); objParams[32] = CommonDataAccess.AddOutputparameter("@CASH_IN_100P", objSpotCheck.CashIn100p); objParams[33] = CommonDataAccess.AddOutputparameter("@CASH_IN_200P", objSpotCheck.CashIn200p); objParams[34] = CommonDataAccess.AddOutputparameter("@CASH_IN_500P", objSpotCheck.CashIn500p); objParams[35] = CommonDataAccess.AddOutputparameter("@CASH_IN_1000P", objSpotCheck.CashIn1000p); objParams[36] = CommonDataAccess.AddOutputparameter("@CASH_IN_2000P", objSpotCheck.CashIn2000p); objParams[37] = CommonDataAccess.AddOutputparameter("@Tickets_Printed", objSpotCheck.TicketsPrinted); objParams[38] = new SqlParameter("@bStartOfDay", objSpotCheck.StartOfDay); objParams[39] = new SqlParameter("@bSelectDay", objSpotCheck.SelectDay); objParams[40] = new SqlParameter("@Date", objSpotCheck.Date); objParams[41] = CommonDataAccess.AddOutputparameter("@NoOfDays", 0); objParams[42] = CommonDataAccess.AddOutputparameter("@ProgHandpay", 0); objParams[43] = CommonDataAccess.AddOutputparameter("@Games_Bet", 0); if (Settings.IsAFTEnabledForSite) { objParams[44] = CommonDataAccess.AddOutputparameter("@CashableAFTIn", objSpotCheck.CashableEFTIn); objParams[45] = CommonDataAccess.AddOutputparameter("@CashableAFTOut", objSpotCheck.CashableEFTOut); objParams[46] = CommonDataAccess.AddOutputparameter("@NonCashableAFTIn", objSpotCheck.NonCashableEFTIn); objParams[47] = CommonDataAccess.AddOutputparameter("@NonCashableAFTOut", objSpotCheck.NonCashableEFTOut); objParams[48] = CommonDataAccess.AddOutputparameter("@WATIn", objSpotCheck.WATIn); objParams[49] = CommonDataAccess.AddOutputparameter("@WATOut", objSpotCheck.WATOut); objParams[50] = CommonDataAccess.AddOutputparameter("@BILL_200", objSpotCheck.Bill200); objParams[51] = CommonDataAccess.AddOutputparameter("@BILL_500", objSpotCheck.Bill500); objParams[52] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Inserted", objSpotCheck.NonCashableTicketsInserted); objParams[53] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Printed", objSpotCheck.NonCashableTicketsPrinted); } else { objParams[44] = CommonDataAccess.AddOutputparameter("@BILL_200", objSpotCheck.Bill200); objParams[45] = CommonDataAccess.AddOutputparameter("@BILL_500", objSpotCheck.Bill500); objParams[46] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Inserted", objSpotCheck.NonCashableTicketsInserted); objParams[47] = CommonDataAccess.AddOutputparameter("@NonCashable_Tickets_Printed", objSpotCheck.NonCashableTicketsPrinted); } SqlConnection objcon = new SqlConnection(CommonDataAccess.ExchangeConnectionString); objcon.Open(); SqlCommand objcomd = new SqlCommand("usp_GetSpotCheckDataSAS", objcon); objcomd.CommandType = CommandType.StoredProcedure; objcomd.CommandTimeout = SqlHelper.LoadCommandTimeout(); objcomd.Parameters.AddRange(objParams); objcomd.ExecuteReader(); objcon.Close(); objSpotCheck.CashIn = (objParams[1].Value).ToString().GetDecimal(); objSpotCheck.CashOut = (objParams[2].Value).ToString().GetDecimal(); objSpotCheck.TokenIn = (objParams[3].Value).ToString().GetDecimal(); objSpotCheck.TokenOut = (objParams[4].Value).ToString().GetDecimal(); objSpotCheck.TokenRefill = (objParams[5].Value).ToString().GetDecimal(); objSpotCheck.CashRefill = (objParams[6].Value).ToString().GetDecimal(); objSpotCheck.CoinsIn = (objParams[7].Value).ToString().GetDecimal(); objSpotCheck.CoinsOut = (objParams[8].Value).ToString().GetDecimal(); objSpotCheck.CoinsDrop = (double)(objParams[9].Value).ToString().GetDecimal(); objSpotCheck.CancelledCredits = (objParams[10].Value).ToString().GetDecimal(); objSpotCheck.VTP = (objParams[11].Value).ToString().GetDecimal(); objSpotCheck.DateTimeStamp = objParams[12].Value.ToString().ReadDate(); objSpotCheck.Jackpot = (objParams[13].Value).ToString().GetDecimal(); objSpotCheck.HandPay = (objParams[14].Value).ToString().GetDecimal(); objSpotCheck.TicketsInserted = (objParams[27].Value).ToString().GetDecimal(); objSpotCheck.TrueCoinIn = (objParams[28].Value).ToString().GetDecimal(); objSpotCheck.TrueCoinOut = (objParams[29].Value).ToString().GetDecimal(); objSpotCheck.TicketsPrinted = (objParams[36].Value).ToString().GetDecimal(); objSpotCheck.Bill1 = (objParams[15].Value).ToString().GetDecimal(); objSpotCheck.Bill2 = (objParams[16].Value).ToString().GetDecimal(); objSpotCheck.Bill5 = (objParams[17].Value).ToString().GetDecimal(); objSpotCheck.Bill10 = (objParams[18].Value).ToString().GetDecimal(); objSpotCheck.Bill20 = (objParams[19].Value).ToString().GetDecimal(); objSpotCheck.Bill50 = (objParams[20].Value).ToString().GetDecimal(); objSpotCheck.Bill100 = (objParams[21].Value).ToString().GetDecimal(); objSpotCheck.Bill250 = (objParams[22].Value).ToString().GetDecimal(); objSpotCheck.Bill10000 = (objParams[23].Value).ToString().GetDecimal(); objSpotCheck.Bill20000 = (objParams[24].Value).ToString().GetDecimal(); objSpotCheck.Bill50000 = (objParams[25].Value).ToString().GetDecimal(); objSpotCheck.Bill100000 = (objParams[26].Value).ToString().GetDecimal(); objSpotCheck.CashIn2p = (objParams[30].Value).ToString().GetDecimal(); objSpotCheck.CashIn100p = (objParams[31].Value).ToString().GetDecimal(); objSpotCheck.CashIn200p = (objParams[32].Value).ToString().GetDecimal(); objSpotCheck.CashIn500p = (objParams[33].Value).ToString().GetDecimal(); objSpotCheck.CashIn1000p = (objParams[34].Value).ToString().GetDecimal(); objSpotCheck.CashIn2000p = (objParams[35].Value).ToString().GetDecimal(); objSpotCheck.NumberOfDays = (objParams[40].Value == DBNull.Value) ? 0 : Convert.ToInt32(objParams[40].Value); objSpotCheck.ProgHandpay = (objParams[41].Value).ToString().GetDecimal(); objSpotCheck.GamesBet = Convert.ToInt32(objParams[42].Value); if (Settings.IsAFTEnabledForSite) { objSpotCheck.CashableEFTIn = (objParams[43].Value).ToString().GetDecimal(); objSpotCheck.CashableEFTOut = (objParams[44].Value).ToString().GetDecimal(); objSpotCheck.NonCashableEFTIn = (objParams[45].Value).ToString().GetDecimal(); objSpotCheck.NonCashableEFTOut = (objParams[46].Value).ToString().GetDecimal(); objSpotCheck.WATIn = (objParams[47].Value).ToString().GetDecimal(); objSpotCheck.WATOut = (objParams[48].Value).ToString().GetDecimal(); objSpotCheck.Bill200 = (objParams[49].Value).ToString().GetDecimal(); objSpotCheck.Bill500 = (objParams[50].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsInserted = (objParams[51].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsPrinted = (objParams[52].Value).ToString().GetDecimal(); } else { objSpotCheck.Bill200 = (objParams[43].Value).ToString().GetDecimal(); objSpotCheck.Bill500 = (objParams[44].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsInserted = (objParams[45].Value).ToString().GetDecimal(); objSpotCheck.NonCashableTicketsPrinted = (objParams[46].Value).ToString().GetDecimal(); } } } catch (Exception ex) { ExceptionManager.Publish(ex); } }
public bool ProcessH2GMessage(BMC.ExComms.Contracts.DTO.Monitor.MonMsg_H2G response) { throw new NotImplementedException(); }
protected override void actionAwake() { _gameConfigVo = BMC.getGameConfigBehaviour().gameConfigVo; _gameClickInputLayerMask = LayerMask.GetMask(_gameConfigVo.gameLayer_clickInput); _mainCamera = getMaincamera(); }
public void Start() { BMC.getObserverBehaviour().registerMsg(this); _sm = this.gameObject.GetComponent <StateMachine>(); sendFinishedFsmEvent(); }
public void ProcessResponse(BMC.Business.NetworkService.AFTEnableDisableThreadDataResponse threadData) { if (_requestCollection.Count <= 0) return; lock (_lockRes) { if (mEvent.WaitOne(NetworkServiceSettings.DBHitWaitTime)) { return; } if (_requestCollection.ContainsKey(threadData.MessageID)) { AFTEnableDisableThreadData Requestitem = _requestCollection[threadData.MessageID]; if (threadData.Ack) { DBBuilder.UpdateAFTPolling(Requestitem.InstallationNo); LogManager.WriteLog("ProcessResponse_AFTEnableDisable | ACK Updated for Installation:" + Requestitem.InstallationNo.ToString() +", Command:"+Requestitem.Command.ToString() , LogManager.enumLogLevel.Info); } else { LogManager.WriteLog("ProcessResponse_AFTEnableDisable | NACK received for Installation:" + Requestitem.InstallationNo.ToString() + ", Command:" + Requestitem.Command.ToString() , LogManager.enumLogLevel.Info); } _requestCollection.Remove(threadData.MessageID); } } }
public void Start() { BMC.getObserverBehaviour().registerMsg(this); }
void Log_WriteToExternalLog(string formattedMessage, BMC.CoreLib.Diagnostics.LogEntryType type, object extra) { Console.WriteLine(formattedMessage); }
protected override bool DisconnectInternal(BMC.CoreLib.Diagnostics.ModuleProc PROC) { throw new NotImplementedException(); }
public void PrintSlip(BMC.Transport.jackpotProcessInfoDTO jpinfo) { PrintCageSlip oSlip = new PrintCageSlip(); oSlip.PrintSlip(jpinfo); }
public void TITOProcessResponse(BMC.Business.NetworkService.TITOThreadDataResponse threadData) { lock (_lockRes) { if (dTITORequest.Count <= 0) return; } try { if (mEvent.WaitOne(NetworkServiceSettings.DBHitWaitTime)) { return; } lock (_lockRes) { if (dTITORequest.ContainsKey(threadData.MessageID)) { TITOThreadDataRequest Requestitem = dTITORequest[threadData.MessageID]; //Update DB and remove from both lists if (threadData.Ack == true) { int EnableCommand = Requestitem.Command == eCommand.Enable ? 1 : 0; DBBuilder.UpdatedTITOConfig(Requestitem.InstallationNo, Requestitem.SiteTITOEnabled, Requestitem.SiteNonCashEnabled, Requestitem.MachineTITOEnabled, Requestitem.MachineNonCashEnabled, EnableCommand); LogManager.WriteLog("TITOProcessResponse | ACK Received For Installation: " + Requestitem.InstallationNo.ToString() + ", Command: " + Requestitem.Command.ToString(), LogManager.enumLogLevel.Info); } else { LogManager.WriteLog("TITOProcessResponse | NACK Received For Installation: " + Requestitem.InstallationNo.ToString() + ", Command: " + Requestitem.Command.ToString(), LogManager.enumLogLevel.Info); } dTITORequest.Remove(threadData.MessageID); } } } catch (Exception ex) { LogManager.WriteLog("TITOProcessResponse | Exception Occured." + ex.Message, LogManager.enumLogLevel.Info); ExceptionManager.Publish(ex); } }
public BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationResponse S2SMessagePostOperation(BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationRequest request) { ModuleProc PROC = new ModuleProc("", "Method"); try { Console.WriteLine("Received : " + request.Request.Request); } catch (Exception ex) { Log.Exception(PROC, ex); } s2sMessage msg = new s2sMessage(); s2sHeader hdr = new s2sHeader() { fromSystem = "EBS", toSystem = "SDS", dateTimeSent = DateTime.Now, }; s2sBody bdy = new s2sBody() { Items = new object[] { new infoUpdate() { propertyId="1313", Item = new infoUpdateDataAck() {} }, }, }; msg.Items = new object[] { hdr, bdy }; string resp = XmlSerializerHelper.ConvertObjectToXml(msg, null, false, false); return new BMC.EBSComms.Contracts.Messages.SMS2EBS.S2SMessagePostOperationResponse { Response = new BMC.EBSComms.Contracts.Dto.SMS2EBS.ResponseType_13_1() { Response = resp, } }; }
/// <summary> /// ÊÇ·ñ¼ÓÔعýMainScene /// </summary> /// <returns>true Loaded !</returns> private bool isLoadMainScene() { return(BMC.getObserverBehaviour() != null); }
/// <summary> /// saves the ticket deatils to DB /// </summary> /// <returns>success or failure</returns> /// Method Revision History /// /// Author Date Description /// --------------------------------------------------- /// Madhusudhanan 20-Oct-2008 Intial Version public static bool SaveOfflineTicketDetails(BMC.Transport.CashDeskOperatorEntity.OfflineTicket objOfflineTicket) { try { SqlParameter[] objParams = new SqlParameter[8]; objParams[0] = new SqlParameter(DBConstants.CONST_PARAM_iINSTALLATION_NUMBER, objOfflineTicket.InstallationNumber); objParams[1] = new SqlParameter(DBConstants.CONST_PARAM_sTICKET_NUMBER, objOfflineTicket.TicketBarCode); objParams[2] = new SqlParameter(DBConstants.CONST_PARAM_dDate, objOfflineTicket.RedeemedDateTime); objParams[3] = new SqlParameter(DBConstants.CONST_PARAM_sWINDOWS_USER, objOfflineTicket.UserName); objParams[4] = new SqlParameter(DBConstants.CONST_PARAM_iUSERID, objOfflineTicket.UserID); objParams[5] = new SqlParameter(DBConstants.CONST_PARAM_sWORKSTATION, objOfflineTicket.MachineName); objParams[6] = new SqlParameter(DBConstants.CONST_PARAM_sCUSTOMER_DETAILS, objOfflineTicket.CustomerDetails); objParams[7] = new SqlParameter(DBConstants.CONST_PARAM_iVALUE, objOfflineTicket.PayableValue); object objRetValue = SqlHelper.ExecuteScalar(GetExchangeConnectionString(), CommandType.StoredProcedure, DBConstants.CONST_SP_SAVE_OFFLINE_TICKET_PROC,objParams); if (Convert.ToInt32(objRetValue) == 0) { return true; } else { return false; } } catch (Exception ex) { ExceptionManager.Publish(ex); return false; } }
void ActiveLogger_WriteToExternalLog(string formattedMessage, BMC.PlayerGateway.Diagnostics.LogEntryType type, object extra) { LogManager.WriteLog(formattedMessage, LogManager.enumLogLevel.Info); }
protected override void absStart() { BMC.getObserverBehaviour().registerMsg(this); }