コード例 #1
0
 private void frmMessageClose()
 {
     if (frmMsg != null)
     {
         frmMsg.Close();
         frmMsg = null;
     }
 }
コード例 #2
0
 private void MassageFormLoad(string Gubun, string Msg)
 {
     try
     {
         frmMsg = null;
         frmMsg = new frmMsg(Gubun, Msg);
         frmWork_Set(frmMsg);
     }
     catch (Exception ex)
     {
         slog = DateTime.Now + "[frmWork_Stark_FEM] :      " + ex;
         Global.EquipInfo.fh_Err_Log.TextFileWriteAppend(slog);
     }
 }
コード例 #3
0
        private void TagSet()
        {
            string rTR_ID = "";

            try
            {
                DataSet ds = new DataSet();
                Procedure.PPC_TOOL_CHECK(EquipInfo.WORKCENTER, EquipInfo.BODY_NO.Substring(0, 2), EquipInfo.ROUTE_NO, EquipInfo.PART_ID, ref ds);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    rTR_ID = NetRemoting.TagGet(EquipInfo.WORKCENTER + "_" + EquipInfo.ROUTE_NO + "_TR_ID");

                    if (rTR_ID == "0" || rTR_ID == "")
                    {
                        High_Value = ds.Tables[0].Rows[0]["MAX_VALUE"].ToString();
                        Low_Value  = ds.Tables[0].Rows[0]["MIN_VALUE"].ToString();

                        Dabom.TagAdapter.Item.WorkDataUp datupS = new Dabom.TagAdapter.Item.WorkDataUp(EquipInfo.WORKCENTER + "_" + EquipInfo.ROUTE_NO, true);

                        datupS.Variables.Add("TOOL_MAX", new VariableItem {
                            VarID = "TOOL_MAX", Value = High_Value
                        });
                        datupS.Variables.Add("TOOL_MIN", new VariableItem {
                            VarID = "TOOL_MIN", Value = Low_Value
                        });
                        datupS.Variables.Add("TR_ID", new VariableItem {
                            VarID = "TR_ID", Value = EquipInfo.TR_ID
                        });
                        NetRemoting.Comm_IDSet_Etool(datupS);

                        //////
                        slog = DateTime.Now + "[frmWorkElectricTool TAG MIN/MAX/TR_ID(재전송) 전송] :      " + High_Value + "/" + Low_Value + "/" + EquipInfo.TR_ID;
                        Global.EquipInfo.fhLog.TextFileWriteAppend(slog);
                        //////
                    }
                    else
                    {
                        High_Value = ds.Tables[0].Rows[0]["MAX_VALUE"].ToString();
                        Low_Value  = ds.Tables[0].Rows[0]["MIN_VALUE"].ToString();

                        Dabom.TagAdapter.Item.WorkDataUp datupT = new Dabom.TagAdapter.Item.WorkDataUp(EquipInfo.WORKCENTER + "_" + EquipInfo.ROUTE_NO, true);

                        datupT.Variables.Add("TOOL_MAX", new VariableItem {
                            VarID = "TOOL_MAX", Value = High_Value
                        });
                        datupT.Variables.Add("TOOL_MIN", new VariableItem {
                            VarID = "TOOL_MIN", Value = Low_Value
                        });
                        datupT.Variables.Add("TR_ID", new VariableItem {
                            VarID = "TR_ID", Value = EquipInfo.TR_ID
                        });
                        NetRemoting.Comm_IDSet_Etool(datupT);

                        //////
                        slog = DateTime.Now + "[frmWorkElectricTool TAG MIN/MAX 전송] :      " + High_Value + "/" + Low_Value;
                        Global.EquipInfo.fhLog.TextFileWriteAppend(slog);
                        //////
                    }
                }
                else
                {
                    timer_Tool_Check.Enabled = false;
                    frmMsg = new frmMsg("ERROR", "SPEC 기준정보가 없습니다.");
                    frmMsg.ShowDialog();
                    timer_Tool_Check.Enabled = true;
                }
                ds.Dispose();
            }
            catch (Exception ex)
            {
                slog = DateTime.Now + "[frmWorkElectricTool] : TagSet     " + ex;
                Global.EquipInfo.fh_Err_Log.TextFileWriteAppend(slog);
            }
        }