private void subExpirationReport(ArrayList darrExpiration, clsInfo.ProcessDataType pdType) { string dstrLogData = ""; try { foreach (string str in darrExpiration) { switch (pdType) { case clsInfo.ProcessDataType.APC: InfoAct.clsAPC CurrentAPC = pInfo.APC(str); CurrentAPC.SetTime = DateTime.Now; pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.APC, "3", "3!" + CurrentAPC.GLSID, true); //// APC Log 작성 //dstrLogData += "APC Data 만료!! => "; //dstrLogData += "GLASSID : " + CurrentAPC.GLSID; //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.APC, CurrentAPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData); //dstrLogData = ""; this.pInfo.All.APCDBUpdateCheck = true; break; case clsInfo.ProcessDataType.PPC: InfoAct.clsPPC CurrentPPC = this.pInfo.PPC(str); CurrentPPC.SetTime = DateTime.Now; pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.PPC, "3", "3!" + CurrentPPC.HGLSID, true); //// PPC Log 작성 //dstrLogData += "PPC Data 만료!! => "; //dstrLogData += "GLASSID : " + CurrentPPC.HGLSID; //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.PPC, CurrentPPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData); //dstrLogData = ""; this.pInfo.All.PPCDBUpdateCheck = true; break; case clsInfo.ProcessDataType.RPC: InfoAct.clsRPC CurrentRPC = this.pInfo.RPC(str); CurrentRPC.SetTime = DateTime.Now; pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.RPC, "3", "3!" + CurrentRPC.HGLSID, true); //// RPC Log 작성 //dstrLogData += "RPC Data 만료!! => "; //dstrLogData += "GLASSID : " + CurrentRPC.HGLSID; //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.RPC, CurrentRPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData); this.pInfo.All.RPCDBUpdateCheck = true; break; default: return; } } darrExpiration.Clear(); } catch (Exception ex) { this.pInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString()); } }
private void btnHostMessageClear_Click(object sender, EventArgs e) { try { this.cboHostMessage.Items.Clear(); //콤보박스항목 삭제 PInfo.subPLCCommand_Set(clsInfo.PLCCommand.MessageClear); } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
private void btnNORMAL_Click(object sender, EventArgs e) { try { PInfo.subPLCCommand_Set(clsInfo.PLCCommand.EQPState, "1"); this.Hide(); } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
void ppcGrid_OnDelete(NgridDeleteEventArgs ar) { string dstrLogData = ""; try { pInfo.All.PPCDataDel = true; pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.PPC, "2", ar.GlassID, true); // APC Log 작성 //dstrLogData += "PPC Data 삭제!! => "; //dstrLogData += "GLASSID : " + ar.GlassID; //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.APC, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dstrLogData); // 2012 12 07 조영훈 , 전달인자 형 변경 //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.PPC, DateTime.Now, dstrLogData); //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.PPC, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dstrLogData); this.pInfo.All.PPCDBUpdateCheck = true; } catch (Exception ex) { this.pInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString()); } }
private void subSaveECValue() { string ChangeECID = ""; string ChangeECV = ""; bool dbolErrorCheck = false; try { for (int dintLoop = 0; dintLoop < dataGridView1.Rows.Count; dintLoop++) { } if (dbolErrorCheck) { } for (int dintLoop = 0; dintLoop < dataGridView1.Rows.Count; dintLoop++) { int dintECID = Convert.ToInt32(dataGridView1[0, dintLoop].Value); clsECID ECID = pInfo.Unit(0).SubUnit(0).ECID(dintECID); if (ECID.ECDEF != dataGridView1[3, dintLoop].Value.ToString()) { ChangeECID += dintECID + "="; ChangeECV += dataGridView1[3, dintLoop].Value.ToString() + "="; ECID.ECDEF = dataGridView1[3, dintLoop].Value.ToString(); } } pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ECIDChange); //if (string.IsNullOrEmpty(ChangeECID) == false) //{ // funECID_DBDelete(); // funECID_DBInsert(); // //pInfo.subSendSF_Set(clsInfo.SFName.S6F11_ECReport, ChangeECID, ChangeECV); //} } catch (Exception ex) { pInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); MessageBox.Show("EC Value Update Fail!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void btnCimBitInitial_Click(object sender, EventArgs e) { try { pInfo.subPLCCommand_Set(clsInfo.PLCCommand.EventBitInitialCmd); } catch (Exception ex) { pInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString()); } }
/// <summary> /// 선택된 리스트의 항목을 지운다 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnClear_Click(object sender, EventArgs e) { try { PInfo.subPLCCommand_Set(clsInfo.PLCCommand.MessageClear); this.subClose(false); } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
private void subFormInitial(int dintType) { try { //PInfo.All.SelectPPIDType = dintType; grdPPIDList.Rows.Clear(); if (dintType == 1) { foreach (string EQPPPPID in PInfo.Unit(0).SubUnit(0).EQPPPID()) { grdPPIDList.Rows.Add(EQPPPPID); } } else if (dintType == 2) { foreach (string HostPPID in PInfo.Unit(0).SubUnit(0).HOSTPPID()) { grdPPIDList.Rows.Add(HostPPID); } } else { PInfo.All.isReceivedFromCIM = true; PInfo.subPLCCommand_Set(InfoAct.clsInfo.PLCCommand.SetUpPPID, 1); subWaitDuringReadFromPLC(); PInfo.All.isReceivedFromCIM = false; foreach (string EQPPPPID in PInfo.Unit(0).SubUnit(0).EQPPPID()) { grdPPIDList.Rows.Add(EQPPPPID); } } } catch (Exception ex) { this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
private void button1_Click(object sender, EventArgs e) { PInfo.subPLCCommand_Set(InfoAct.clsInfo.PLCCommand.Recovery); }