Beispiel #1
0
        protected override void QCSave()
        {
            string strQCFile = ConfInfo.GetQCFile(this.Name);

            DFHelper.IniWriteValue("QC", this.txtLDateF.Name, this.txtLDateF.Text.Trim(), strQCFile);
            DFHelper.IniWriteValue("QC", this.txtLDateT.Name, this.txtLDateT.Text.Trim(), strQCFile);
            DFHelper.IniWriteValue("QC", this.cboBoxUserName.Name, this.cboBoxUserName.Text.Trim(), strQCFile);
            DFHelper.IniWriteValue("QC", this.cboBoxHostName.Name, this.cboBoxHostName.Text.Trim(), strQCFile);
        }
Beispiel #2
0
        protected override void QCInit()
        {
            BusinessObject bo = new BusinessObject();

            string s = "select distinct username from sysiolog order by username";

            s += ";";
            s += "select distinct hostname from sysiolog order by hostname";

            bo.BusiDataSQL = new string[] { s };
            bo.GetBusiData();

            this.cboBoxUserName.Items.Add("È«²¿");
            if (bo.BusiData.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < bo.BusiData.Tables[0].Rows.Count; i++)
                {
                    this.cboBoxUserName.Items.Add(bo.BusiData.Tables[0].Rows[i][0].ToString());
                }
            }
            this.cboBoxUserName.SelectedIndex = 0;
            this.cboBoxHostName.Items.Add("È«²¿");
            if (bo.BusiData.Tables[1].Rows.Count > 0)
            {
                for (int i = 0; i < bo.BusiData.Tables[1].Rows.Count; i++)
                {
                    this.cboBoxHostName.Items.Add(bo.BusiData.Tables[1].Rows[i][0].ToString());
                }
            }
            this.cboBoxHostName.SelectedIndex = 0;

            string strQCFile = ConfInfo.GetQCFile(this.Name);
            string strValue  = DFHelper.IniReadValue("QC", this.txtLDateF.Name, strQCFile);

            if (strValue != "")
            {
                this.txtLDateF.Text = strValue;
            }
            strValue = DFHelper.IniReadValue("QC", this.txtLDateT.Name, strQCFile);
            if (strValue != "")
            {
                this.txtLDateT.Text = strValue;
            }
            strValue = DFHelper.IniReadValue("QC", this.cboBoxUserName.Name, strQCFile);
            if (strValue != "")
            {
                this.cboBoxUserName.SelectedIndex = this.cboBoxUserName.FindString(strValue);
            }
            strValue = DFHelper.IniReadValue("QC", this.cboBoxHostName.Name, strQCFile);
            if (strValue != "")
            {
                this.cboBoxHostName.SelectedIndex = this.cboBoxHostName.FindString(strValue);
            }
        }