예제 #1
0
        public FormLOTConfirm(CEPSR oEPSR, string CSTID, string PORTID, int _iMaxSlotCount, LOTConfirmWindowViewType oViewType, enumTransferType oType)
        {
            InitializeComponent();
            MAXSlotCount = _iMaxSlotCount;
            //oEPSR가 Null이 아니면, 화면에 EPSR 정보를 갱신
            TransferType    = oType;
            ConfirmViewType = oViewType;

            if (oEPSR != null)
            {
                DisplayEPSRInfo(oEPSR);
                HOST_INFO          = true;
                _EPSR              = oEPSR;
                btnOffLine.Enabled = false;
                //Offline Button 은 CT Time OUT, Validation Error 시에만 동작
            }
            else
            {
                _EPSR      = new CEPSR();
                _EPSR.CST  = CSTID;
                _EPSR.PORT = PORTID;
                for (int i = 1; i < MAXSlotCount + 1; i++)
                {
                    EPSR_CSTMap oMap = new EPSR_CSTMap();
                    oMap.SLOT = i.ToString();
                    _EPSR.CSTMAP.Add(oMap);
                }
                btnOffLine.Enabled = false;
            }

            txtPORTID.Text = PORTID;
            txtCSTID.Text  = CSTID;

            if (oEPSR == null)
            {
                btnCreateInfo.Enabled = true;
            }
            else
            {
                btnCreateInfo.Enabled = false;
            }

            this.ActiveControl = txtLOTID;
        }
예제 #2
0
        public void DisplayEPSRInfo(CEPSR oEPSR)
        {
            //EPSR시 비활성화 버튼 처리
            this.btnOffLine.Enabled = false;
            this.btnOK.Enabled      = false;

            //화면 초기화 진행
            InitializeDisplay();

            //화면에 갱신 부분이 들어가야 됨

            if (oEPSR.CMD == "START")
            {
                lblMessageBOX.Text = "HOST로 부터 START이 내려 왔습니다.";
                this.btnOK.Enabled = true;
            }
            else if (oEPSR.CMD == "CANCEL")
            {
                lblMessageBOX.Text = "HOST로 부터 Cancel이 내려 왔습니다.";
            }

            txtPORTID.Text    = oEPSR.PORT;
            txtLOTID.Text     = oEPSR.LOT;
            txtCSTID.Text     = oEPSR.CST;
            txtCSTSIZE.Text   = oEPSR.CST_SIZE;
            txtPRODTYPE.Text  = oEPSR.PROD_TYPE;
            txtATTRIBUTE.Text = oEPSR.ATTRIBUTE;
            txtGLSTHICK.Text  = oEPSR.GLS_THK;
            txtPARTNUM.Text   = oEPSR.PROD;
            txtPRCID.Text     = oEPSR.OPER;

            string tmpRECIPE = oEPSR.RECIPE.ToString();

            tmpRECIPE = tmpRECIPE.Replace("[","");
            tmpRECIPE = tmpRECIPE.Replace("]","");

            string[] strRECIPEList = tmpRECIPE.Split(',');

            //Recipe ComboBox에 값을 저장하는 로직
            foreach (string strRECIPEItem in strRECIPEList)
            {
                cboRCP.Items.Add(strRECIPEItem);
            }

            cboRCP.Text = cboRCP.Items[0].ToString();


            //Grid에 EPSR의 Cassette 정보를 표시
            foreach (EPSR_CSTMap oMap in oEPSR.CSTMAP)
            {
                string tmpCSTMAP = oMap.ToString();

                string[] strCSTMAPList = tmpCSTMAP.Split(':');


                DataGridViewRow oFindRow = null;

                foreach (DataGridViewRow oRow in dgrdLOTInfo.Rows)
                {
                    if (oRow.Cells["colSlotID"].Value.ToString() == strCSTMAPList[0].ToString())
                    {
                        oFindRow = oRow;
                        break;
                    }
                }

                if (strCSTMAPList[9].ToString() == "0")
                {
                    oFindRow.Cells["colSLOTCHECK"].Value = 0;
                }
                else if (strCSTMAPList[9].ToString() == "1")
                {
                    oFindRow.Cells["colSLOTCHECK"].Value = 1;
                }

                oFindRow.Cells["colGLSID"].Value = strCSTMAPList[1].ToString();
                oFindRow.Cells["colJUDGE"].Value = strCSTMAPList[3].ToString();
                oFindRow.Cells["colGSD"].Value   = "";
                //oFindRow.Cells["colPLNIF"].Value = "";
                oFindRow.Cells["colPLNIF"].Value = strCSTMAPList[6].ToString();
            }
        }