Esempio n. 1
0
        public override void RCardRun()
        {
            string strLotNo = GetOQCLotNo();

            if (strLotNo == string.Empty)
            {
                return;
            }
            FOQCSamplePlan fPlan = new FOQCSamplePlan();

            fPlan.Show();
            fPlan.oqcLotNo = strLotNo;
            fPlan.cbbLotNO_KeyUp(fPlan.cbbLotNO, new KeyEventArgs(Keys.Enter));
            fPlan.btnLoadConfig_Click(null, null);
            fPlan.ucLabEditSampleQty.Value = f.GetAppConfig("OQCSampleSize");
            fPlan.ucButtonOK_Click(null, null);
            fPlan.Close();

            Application.DoEvents();
            actionForm.ucLabOQCLot.Value = strLotNo;
            actionForm.ucLabEdit1_TxtboxKeyPress(actionForm.ucLabOQCLot, new KeyPressEventArgs('\r'));
            Application.DoEvents();
            int iSampleSize = int.Parse(f.GetAppConfig("OQCSampleSize"));

            for (int i = 0; i < iSampleSize; i++)
            {
                string strRCard = GetOQCRunningCard(strLotNo);
                if (strRCard != null)
                {
                    actionForm.ucLabRunningID.Value = strRCard;
                    actionForm.ucLabRunningID_TxtboxKeyPress(actionForm.ucLabRunningID, new KeyPressEventArgs('\r'));
                    actionForm.ucButtonOK_Click(null, null);
                }
                Application.DoEvents();
                System.Threading.Thread.Sleep(1000);
            }
            DateTime dtStart = DateTime.Now;

            actionForm.ucButtonOQC_Click(null, null);
            f.LogCostTime(dtStart, strLotNo);
        }