/// <summary> /// DataGridView 초기화 (Port & Unit 정보) /// </summary> private void subMainGridViewInitial() { try { for (int dintLoop = 1; dintLoop <= PInfo.Unit(3).SubUnitCount; dintLoop++) { PInfo.Unit(3).SubUnit(dintLoop).eqpState += new clsSubUnit.EQPStateChange(eqpState); PInfo.Unit(3).SubUnit(dintLoop).eqpProcessState += new clsSubUnit.EQPProcessStateChange(eqpProcessState); //PInfo.Unit(3).SubUnit(dintLoop).filmexist += new clsSubUnit.FilmExistChange(filmexist); PInfo.Unit(3).SubUnit(dintLoop).glsexist += new clsSubUnit.GLSExistChange(glsexist); PInfo.Unit(3).SubUnit(dintLoop).GLSIDChange += new clsSubUnit.GlassIDChange(GlassIDChange); glsexist(dintLoop, PInfo.Unit(3).SubUnit(dintLoop).GLSExist); if (dintLoop > 6) { GlassIDChange(dintLoop, PInfo.Unit(3).SubUnit(dintLoop).HGLSID); } else { GlassIDChange(dintLoop, PInfo.Unit(3).SubUnit(dintLoop).FilmID); } } for (int dintLoop = 1; dintLoop <= PInfo.Unit(1).SubUnitCount; dintLoop++) { PInfo.Unit(3).SubUnit(dintLoop).eqpState += new clsSubUnit.EQPStateChange(eqpState); PInfo.Unit(3).SubUnit(dintLoop).eqpProcessState += new clsSubUnit.EQPProcessStateChange(eqpProcessState); PInfo.Unit(1).SubUnit(dintLoop).filmcaseexist += new clsSubUnit.FilmCaseExistChange(filmcaseexist); PInfo.Unit(1).SubUnit(dintLoop).PortNo = dintLoop; filmcaseexist(dintLoop, PInfo.Unit(1).SubUnit(dintLoop).FilmCaseExist); } for (int dintLoop = 1; dintLoop <= PInfo.Unit(2).SubUnitCount; dintLoop++) { PInfo.Unit(3).SubUnit(dintLoop).eqpState += new clsSubUnit.EQPStateChange(eqpState); PInfo.Unit(3).SubUnit(dintLoop).eqpProcessState += new clsSubUnit.EQPProcessStateChange(eqpProcessState); PInfo.Unit(2).SubUnit(dintLoop).filmcaseexist += new clsSubUnit.FilmCaseExistChange(filmcaseexist); PInfo.Unit(2).SubUnit(dintLoop).PortNo = dintLoop + 4; filmcaseexist(dintLoop + 4, PInfo.Unit(2).SubUnit(dintLoop).FilmCaseExist); } for (int dintLoop = 1; dintLoop <= PInfo.PortCount; dintLoop++) { PInfo.Port(dintLoop).cstidchange += new clsPort.CSTIDChange(cstidchange); } } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
private void subStateinit() { try { //string strPortName = PInfo.Unit(1).SubUnit(0).ModuleID.Substring(PInfo.Unit(1).SubUnit(0).ModuleID.Length - 4); //dgv_UnitState.Columns.Add(strPortName, strPortName); //strPortName = PInfo.Unit(2).SubUnit(0).ModuleID.Substring(PInfo.Unit(2).SubUnit(0).ModuleID.Length - 4); //dgv_UnitState.Columns.Add(strPortName, strPortName); for (int dintloop = 3; dintloop <= PInfo.UnitCount; dintloop++) { for (int dintloop2 = 1; dintloop2 <= PInfo.Unit(dintloop).SubUnitCount; dintloop2++) { string strName = PInfo.Unit(dintloop).SubUnit(dintloop2).ModuleID.Substring(PInfo.Unit(dintloop).SubUnit(dintloop2).ModuleID.Length - 4); if (dintloop == 3) { dgv_UnitState.Columns.Add(strName, strName); } else { //dgv_PortState.Columns.Add(strName, strName); } } } foreach (DataGridViewColumn col in dgv_UnitState.Columns) { col.SortMode = DataGridViewColumnSortMode.NotSortable; } //foreach (DataGridViewColumn col in dgv_PortState.Columns) //{ // col.SortMode = DataGridViewColumnSortMode.NotSortable; //} dgv_UnitState.Rows.Add(2); //dgv_PortState.Rows.Add(1); dgv_UnitState.Rows[0].HeaderCell.Value = "EQP STATE"; dgv_UnitState.Rows[1].HeaderCell.Value = "Process STATE"; //dgv_PortState.Rows[0].HeaderCell.Value = "PORT STATE"; ////LMD1 //eqpState(1, PInfo.Unit(1).SubUnit(0).EQPState); //eqpProcessState(1, PInfo.Unit(1).SubUnit(0).EQPProcessState); ////LMD2 //eqpState(2, PInfo.Unit(2).SubUnit(0).EQPState); //eqpProcessState(2, PInfo.Unit(2).SubUnit(0).EQPProcessState); for (int dintloop = 1; dintloop <= PInfo.UnitCount; dintloop++) { for (int dintloop2 = 1; dintloop2 <= PInfo.Unit(dintloop).SubUnitCount; dintloop2++) { string strName = PInfo.Unit(dintloop).SubUnit(dintloop2).ModuleID.Substring(PInfo.Unit(dintloop).SubUnit(dintloop2).ModuleID.Length - 4); if (dintloop == 3) { eqpState(dintloop2, PInfo.Unit(dintloop).SubUnit(dintloop2).EQPState); eqpProcessState(dintloop2, PInfo.Unit(dintloop).SubUnit(dintloop2).EQPProcessState); } } } for (int dintloop = 1; dintloop <= PInfo.PortCount; dintloop++) { portState(dintloop, PInfo.Port(dintloop).PortState); } } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }