Exemple #1
0
        private void FrmYield_Load(object sender, EventArgs e)
        {
            List <string> keyName = new List <string>();

            List <string> keyValue = new List <string>();

            CIniFile.GetIniKeySection("PLCAlarm", out keyName, out keyValue, Application.StartupPath + "\\iniFile.ini");

            cmbStatName.Items.Clear();

            cmbStatName.Items.Add(CLanguage.Lan("所有工位"));

            for (int i = 0; i < keyValue.Count; i++)
            {
                cmbStatName.Items.Add(keyValue[i]);
            }
            cmbStatName.SelectedIndex = 0;

            cmbbAlarm.Items.Clear();
            cmbbAlarm.Items.Add(CLanguage.Lan("全部"));
            cmbbAlarm.Items.Add(CLanguage.Lan("解除"));
            cmbbAlarm.Items.Add(CLanguage.Lan("报警"));
            cmbbAlarm.SelectedIndex = 0;

            cmbFixNumSlotNo.SelectedIndex = 0;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);
        }
Exemple #2
0
        private void FrmYield_Load(object sender, EventArgs e)
        {
            dpStartDate.Value = DateTime.Now.Date;

            dpEndDate.Value = DateTime.Now.Date;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);
        }
Exemple #3
0
        private void FrmSample_Load(object sender, EventArgs e)
        {
            cmbResult.SelectedIndex = 0;

            cmbPartType.Items.Clear();
            cmbPartType.Items.Add(CLanguage.Lan("治具"));
            cmbPartType.Items.Add(CLanguage.Lan("库位"));
            cmbPartType.SelectedIndex = 0;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);
        }
Exemple #4
0
        private void FrmSample_Load(object sender, EventArgs e)
        {
            cmbResult.SelectedIndex = 0;

            cmbPartType.Items.Clear();
            cmbPartType.Items.Add(CLanguage.Lan("治具"));
            cmbPartType.Items.Add(CLanguage.Lan("库位"));
            cmbPartType.SelectedIndex = 0;

            txtUrl.Text = CIniFile.ReadFromIni("FrmSample", "url", iniFile, url);

            url = txtUrl.Text;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);
        }
Exemple #5
0
        private void FrmYield_Load(object sender, EventArgs e)
        {
            dpStartDate.Value = DateTime.Now.Date;

            dpEndDate.Value = DateTime.Now.Date;

            txtUrl.Text = CIniFile.ReadFromIni("FrmSnQuery", "url", iniFile, url);

            labSysDB.Text = CIniFile.ReadFromIni("FrmSnQuery", "sysDB", iniFile, sysDB);

            url = txtUrl.Text;

            sysDB = labSysDB.Text;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);
        }
Exemple #6
0
        private void FrmYield_Load(object sender, EventArgs e)
        {
            txtUrl.Text = CIniFile.ReadFromIni("FrmYield", "url", iniFile, url);

            url = txtUrl.Text;

            List <string> keyName = new List <string>();

            List <string> keyValue = new List <string>();

            CIniFile.GetIniKeySection("PLCAlarm", out keyName, out keyValue, iniFile);

            cmbStatName.Items.Clear();

            cmbStatName.Items.Add(CLanguage.Lan("所有工位"));

            for (int i = 0; i < keyValue.Count; i++)
            {
                cmbStatName.Items.Add(keyValue[i]);
            }
            cmbStatName.SelectedIndex = 0;

            cmbbAlarm.Items.Clear();
            cmbbAlarm.Items.Add(CLanguage.Lan("全部"));
            cmbbAlarm.Items.Add(CLanguage.Lan("解除"));
            cmbbAlarm.Items.Add(CLanguage.Lan("报警"));
            cmbbAlarm.SelectedIndex = 0;

            cmbFixNumSlotNo.SelectedIndex = 0;

            check_web_status_handler check_web = new check_web_status_handler(check_web_status);

            check_web.BeginInvoke(null, null);

            txtAccess.Text = CIniFile.ReadFromIni("FrmYield", "AccessFile", iniFile, Application.StartupPath + "\\BURNIN\\PLC_BURNIN.accdb");

            txtCSV.Text = CIniFile.ReadFromIni("FrmYield", "CSVFile", iniFile);

            if (LoadPLCAccessDB(txtAccess.Text))
            {
                LoadPLCCSV(txtCSV.Text);
            }
        }