Преглед изворни кода

获取上下线电脑名称

callm пре 6 дана
родитељ
комит
bbab8e8c06
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      UAS_MES_YTDZ/FunctionCode/Query/Query_LoadMake.cs

+ 4 - 4
UAS_MES_YTDZ/FunctionCode/Query/Query_LoadMake.cs

@@ -69,8 +69,8 @@ namespace UAS_MES_NEW.Query
                 MessageBox.Show("线别" + li_code.Text + "存在在线工单,不允许上线");
                 return;
             }
-            dh.ExecuteSql("insert into loadmake(lm_id,lm_makecode,lm_linecode,lm_uptime,lm_inman,lm_mannum,lm_stepcode)" +
-                "values(loadmake_seq.nextval,'" + ma_code.Text + "','" + li_code.Text + "',sysdate,'" + User.UserName + "','" + mancount.Value + "','" + User.CurrentStepCode + "')", "insert");
+            dh.ExecuteSql("insert into loadmake(lm_id,lm_makecode,lm_linecode,lm_uptime,lm_inman,lm_mannum,lm_stepcode,lm_uppc)" +
+                "values(loadmake_seq.nextval,'" + ma_code.Text + "','" + li_code.Text + "',sysdate,'" + User.UserName + "','" + mancount.Value + "','" + User.CurrentStepCode + "','" + Environment.MachineName + "')", "insert");
             LoadGridData();
         }
 
@@ -85,7 +85,7 @@ namespace UAS_MES_NEW.Query
             {
                 if (DGV.Rows[i].Cells["Choose"].Value != null && DGV.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True")
                 {
-                    dh.ExecuteSql("update loadmake set lm_downtime=sysdate,lm_output='" + output.Value.ToString() + "' where lm_id='" + DGV.Rows[i].Cells["lm_id"].Value.ToString() + "'", "update");
+                    dh.ExecuteSql("update loadmake set lm_downtime=sysdate,lm_downpc='" + Environment.MachineName + "',lm_output='" + output.Value.ToString() + "' where lm_id='" + DGV.Rows[i].Cells["lm_id"].Value.ToString() + "'", "update");
                 }
             }
             LoadGridData();
@@ -109,7 +109,7 @@ namespace UAS_MES_NEW.Query
             {
                 if (DGV.Rows[i].Cells["Choose"].Value != null && DGV.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True")
                 {
-                    dh.ExecuteSql("update loadmake set lm_downtime=sysdate where lm_id='" + DGV.Rows[i].Cells["lm_id"].Value.ToString() + "'", "update");
+                    dh.ExecuteSql("update loadmake set lm_downtime=sysdate,lm_downpc='" + Environment.MachineName + "' where lm_id='" + DGV.Rows[i].Cells["lm_id"].Value.ToString() + "'", "update");
                     string makecode = DGV.Rows[i].Cells["lm_makecode"].Value.ToString();
                     string licode = DGV.Rows[i].Cells["lm_linecode"].Value.ToString();
                     string mannum = DGV.Rows[i].Cells["LM_MANNUM"].Value.ToString();