public CellarTrackerWeb(string sUsername, string sPassword, StatusRpt srpt) { m_sUsername = sUsername; m_sPassword = sPassword; m_srpt = srpt; m_wc = new WebControl(srpt); }
/* G E N G A M E S T A T S */ /*---------------------------------------------------------------------------- %%Function: GameData %%Qualified: GenCount.CountsData:GameData.GameData %%Contact: rlittle ----------------------------------------------------------------------------*/ public GameData(StatusRpt srpt) { // m_sRoster = null; m_srpt = srpt; m_rst = new Roster(srpt); m_gms = new GameSlots(srpt); }
/* M P G E T S E L E C T V A L U E S */ /*---------------------------------------------------------------------------- %%Function: MpGetSelectValues %%Qualified: ArbWeb.AwMainForm.MpGetSelectValues %%Contact: rlittle for a given <select name=$sName><option value=$sValue>$sText</option>... Find the given sName select object. Then add a mapping of $sText -> $sValue to a dictionary and return it. ----------------------------------------------------------------------------*/ public static Dictionary<string, string> MpGetSelectValues(StatusRpt srpt, IHTMLDocument2 oDoc2, string sName) { IHTMLElementCollection hec; Dictionary<string, string> mp = new Dictionary<string, string>(); hec = (IHTMLElementCollection) oDoc2.all.tags("select"); foreach (IHTMLSelectElement ihie in hec) { if (String.Compare(ihie.name, sName, true) == 0) { foreach (IHTMLOptionElement ihoe in (IHTMLElementCollection) ihie.tags("option")) { if (mp.ContainsKey(ihoe.text)) srpt.AddMessage( String.Format("How strange! '{0}' shows up more than once as a position", ihoe.text), StatusRpt.MSGT.Warning); else mp.Add(ihoe.text, ihoe.value); } } } return mp; }
public ArbWebControl(StatusRpt srpt) { #if notused m_plNewWindow3 = new List<DWebBrowserEvents2_NewWindow3EventHandler>(); m_plBeforeNav2= new List<DWebBrowserEvents2_BeforeNavigate2EventHandler>(); #endif m_srpt = srpt; InitializeComponent(); }
protected virtual void BuildKidneyDiseaseState(int PatientID, string FormName, string FormType) { StatusDa sDa = new StatusDa(); DataSet sDs = sDa.GetStatus(PatientID, "Kidney"); if (sDs.Tables.Count > 0 && sDs.Tables[0].Rows.Count > 0) { StatusRpt.DataSource = sDs.Tables[0].DefaultView; StatusRpt.DataBind(); } }
protected virtual void BuildStatus(int patientId, string PatientStatus) { StatusDa Da = new StatusDa(); DataSet Ds = Da.GetStatus(patientId, PatientStatus); if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0) { StatusRpt.DataSource = Ds.Tables[0].DefaultView; StatusRpt.DataBind(); } }
public TrapFileDownload(StatusRpt srpt, string sExpectedName, string sTarget, string sProgressWait, AutoResetEvent evt) { m_srpt = srpt; m_sName = sExpectedName; m_sTarget = sTarget; m_evtCallerWaiting = evt; m_sProgressWait = sProgressWait; m_srpt.LogData("Starting TaskTrap", 3, StatusRpt.MSGT.Body); Task taskTrap = new Task(TrapFileDownloadWork); taskTrap.Start(); }
public WebControl(StatusRpt srpt) { #if notused m_plNewWindow3 = new List<DWebBrowserEvents2_NewWindow3EventHandler>(); m_plBeforeNav2 = new List<DWebBrowserEvents2_BeforeNavigate2EventHandler>(); #endif m_srpt = srpt; InitializeComponent(); m_wbc.ScriptErrorsSuppressed = true; // m_wbc }
public CtLists(string username, string password) { m_username = username; m_password = password; InitializeComponent(); m_headingWineList.Text = ""; m_headingCellarTrackerUpdate.Text = ""; m_srpt = new StatusRpt(m_recStatus); //m_srpt.SetLogLevel(5); //m_srpt.SetFilter(StatusRpt.MSGT.Body); }
protected virtual void BuildDiseaseStateForDisease(int PatientID, string Disease) { StatusDa sDa = new StatusDa(); DataSet sDs = sDa.GetStatus(PatientID, Disease); if (sDs.Tables.Count > 0 && sDs.Tables[0].Rows.Count > 0) { if (StatusMsg != null) { StatusMsg.Visible = false; } StatusRpt.DataSource = sDs.Tables[0].DefaultView; StatusRpt.DataBind(); } }
/// <summary> /// 货机主机信息 /// </summary> public MachineRpt MachineInfo() { MachineRpt machineRpt = new MachineRpt(); //VMC参数 VmcSetup vmcSetup = base.GET_SETUP(); machineRpt.VmcSetup = vmcSetup.ToString(); //VMC状态 StatusRpt statusRpt = base.GET_STATUS(); machineRpt.VmcStatus = statusRpt.ToString(); //硬币器 InfoRpt_17 infoRpt_17 = base.GetCoinInfo(); machineRpt.CoinRpt = infoRpt_17.ToString(); //纸币器 InfoRpt_16 infoRpt_16 = base.GetPaperInfo(); machineRpt.PaperRpt = infoRpt_16.ToString(); return(machineRpt); }
/* M P G E T S E L E C T V A L U E S */ /*---------------------------------------------------------------------------- %%Function: MpGetSelectValues %%Qualified: ArbWeb.AwMainForm.MpGetSelectValues %%Contact: rlittle for a given <select name=$sName><option value=$sValue>$sText</option>... Find the given sName select object. Then add a mapping of $sText -> $sValue to a dictionary and return it. ----------------------------------------------------------------------------*/ public static Dictionary<string, string> MpGetSelectValues(StatusRpt srpt, IHTMLDocument2 oDoc2, string sName) { IHTMLElementCollection hec; Dictionary<string, string> mp = new Dictionary<string, string>(); hec = (IHTMLElementCollection)oDoc2.all.tags("select"); foreach (HTMLSelectElementClass ihie in hec) { if (String.Compare(ihie.name, sName, true) == 0) { foreach (IHTMLOptionElement ihoe in (IHTMLElementCollection)ihie.tags("option")) { if (mp.ContainsKey(ihoe.text)) srpt.AddMessage(String.Format("How strange! '{0}' shows up more than once as a position", ihoe.text), StatusRpt.MSGT.Warning); else mp.Add(ihoe.text, ihoe.value); } } } return mp; }
/* G A M E S L O T S */ /*---------------------------------------------------------------------------- %%Function: GameSlots %%Qualified: ArbWeb.GameData.GameSlots.GameSlots %%Contact: rlittle ----------------------------------------------------------------------------*/ public GameSlots(StatusRpt srpt) { m_plgmsSorted = new SortedList<string, GameSlot>(); m_plgmsSortedGameNum = new SortedList<string, GameSlot>(); m_srpt = srpt; m_mpSportSport = new Dictionary<string, Sport>(); m_plsLegend = new List<string>(); m_mpTeamCount = new Dictionary<string, int>(); m_plgmSorted = new SortedList<string, Game>(); m_mpnumgm = new Dictionary<string, Game>(); UnitTest(); }
public Roster(StatusRpt srpt) { m_mpNameUmpire = new Dictionary<string, Umpire>(); m_rst = new ArbWeb.Roster(); m_srpt = srpt; }