Beispiel #1
0
        private bool Clearhandpay(int InstallationNo)
        {
            int       Datapak;
            DataTable dt = new DataTable();

            dt = analysisBusinessObject.GetHandpaystoClear(InstallationNo);

            foreach (DataRow dr in dt.Rows)
            {
                Datapak = BMC.Presentation.Helper_classes.Common.GetRowValue <int>(dr, "Datapak_No");
                //return MachineManager.ClearHandpayLock(Datapak);
                System.Diagnostics.Process proc = new System.Diagnostics.Process();
                proc.StartInfo.FileName  = "CmdLine";
                proc.StartInfo.Arguments = Datapak.ToString();
                proc.Start();
            }
            return(false);
        }
        private bool Clearhandpay(int InstallationNo)
        {
            int       Datapak;
            DataTable dt = new DataTable();

            dt = GetHandpaystoClear(InstallationNo);
            LogManager.WriteLog("Clear Handpay/Jackpot Lock", LogManager.enumLogLevel.Debug);
            foreach (DataRow dr in dt.Rows)
            {
                LogManager.WriteLog("Clear Handpay/Jackpot Lock Build clear script", LogManager.enumLogLevel.Debug);
                Datapak = GetRowValue <int>(dr, "Datapak_No");
                //return MachineManager.ClearHandpayLock(Datapak);
                System.Diagnostics.Process proc = new System.Diagnostics.Process();
                LogManager.WriteLog("Clear Handpay/Jackpot Lock Script Path :" + AssemblyDirectory + @"\..\..\CmdLine", LogManager.enumLogLevel.Debug);
                proc.StartInfo.FileName  = AssemblyDirectory + @"\..\..\CmdLine";
                proc.StartInfo.Arguments = Datapak.ToString();
                proc.Start();
                LogManager.WriteLog("Clear Handpay/Jackpot Lock cleared ", LogManager.enumLogLevel.Debug);
            }
            return(false);
        }