Exemple #1
0
        void GlassIDChange(int subUnitID, string strGlassID)
        {
            try
            {
                this.Invoke(new MethodInvoker(delegate()
                {
                    Label lb = new Label();
                    //if (GLSExist)
                    {
                        switch (subUnitID)
                        {
                        case 1:    //FT01
                            lb = lblFT01;
                            break;

                        case 2:    //FT02
                            lb = lblFT02;
                            break;

                        case 3:    //AL01
                            lb = lblAL01;
                            break;

                        case 4:    //LM01
                            lb = lblLM01;
                            break;

                        case 5:    //DM01
                            lb = lblDM01;
                            break;

                        case 6:    //IS01
                            lb = lblIS01;
                            break;

                        case 7:    //ST01
                            lb = lblST01;
                            break;

                        case 8:    //ST02
                            lb = lblST02;
                            break;

                        case 9:    //GL01
                            lb = lblGL01;
                            break;

                        default:
                            break;
                        }
                    }


                    lb.Text = "";
                    if (subUnitID > 6)
                    {
                        clsGLS CurrentGLS = PInfo.GLSID(PInfo.Unit(3).SubUnit(subUnitID).HGLSID);

                        if (CurrentGLS != null)
                        {
                            lb.Text = string.Format("{0}\r\n{1}", CurrentGLS.H_PANELID, CurrentGLS.SlotID);
                        }
                        else
                        {
                            lb.Text = "";
                        }
                    }
                    else
                    {
                        string strLotID = PInfo.Unit(3).SubUnit(subUnitID).FilmID;
                        int dintNo      = PInfo.Unit(3).SubUnit(subUnitID).FilmCount;

                        lb.Text = string.Format("{0}\r\n{1}", strLotID, dintNo);
                    }
                }));
            }
            catch (Exception ex)
            {
                PInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString());
            }
        }
Exemple #2
0
        void glsexist(int subUnitID, bool GLSExist)
        {
            try
            {
                this.Invoke(new MethodInvoker(delegate()
                {
                    PictureBox pb = new PictureBox();
                    Label lb      = new Label();
                    //if (GLSExist)
                    {
                        switch (subUnitID)
                        {
                        case 1:    //FT01
                            pb = pbFT01;
                            lb = lblFT01;
                            break;

                        case 2:    //FT02
                            pb = pbFT02;
                            lb = lblFT02;
                            break;

                        case 3:    //AL01
                            pb = pbAL01;
                            lb = lblAL01;
                            break;

                        case 4:    //LM01
                            pb = pbLM01;
                            lb = lblLM01;
                            break;

                        case 5:    //DM01
                            pb = pbDM01;
                            lb = lblDM01;
                            break;

                        case 6:    //IS01
                            pb = pbIS01;
                            lb = lblIS01;
                            break;

                        case 7:    //ST01
                            pb = pbST01;
                            lb = lblST01;
                            break;

                        case 8:    //ST02
                            pb = pbST02;
                            lb = lblST02;
                            break;

                        case 9:    //GL01
                            pb = null;
                            break;

                        default:
                            pb = null;
                            break;
                        }
                    }

                    if (pb != null)
                    {
                        pb.Visible = GLSExist;
                    }

                    lb.Text = "";
                    if (subUnitID > 6)
                    {
                        clsGLS CurrentGLS = PInfo.GLSID(PInfo.Unit(3).SubUnit(subUnitID).HGLSID);

                        if (CurrentGLS != null)
                        {
                            lb.Text = string.Format("{0}\r\n{1}", CurrentGLS.H_PANELID, CurrentGLS.SlotID);
                        }
                        else
                        {
                            lb.Text = "";
                        }
                    }
                    else
                    {
                        string strLotID = PInfo.Unit(3).SubUnit(subUnitID).FilmID;
                        int dintNo      = PInfo.Unit(3).SubUnit(subUnitID).FilmCount;

                        lb.Text = string.Format("{0}\r\n{1}", strLotID, dintNo);
                    }
                }));
            }
            catch (Exception ex)
            {
                PInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString());
            }
        }