|
|
@@ -86,11 +86,11 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
|
|
|
public void Start()
|
|
|
{
|
|
|
- //string SQL = "select count(distinct mp_sncode) from makeprocess where trunc(sysdate)=trunc(mp_indate) and ";
|
|
|
- //SQL += "mp_sourcecode='" + Source1 + "' and mp_linecode='" + LineCode1 + "' and mp_stepcode='" + StepCode1 + "' and mp_inman='"+User.UserCode+"' ";
|
|
|
- //DataTable dt = (DataTable)Dh.ExecuteSql(SQL, "select");
|
|
|
- //Count.Text = "计数:" + dt.Rows[0][0].ToString();
|
|
|
- //CountRefresh.Start();
|
|
|
+ string SQL = "select count(distinct mp_sncode) from makeprocess where trunc(sysdate)=trunc(mp_indate) and ";
|
|
|
+ SQL += "mp_sourcecode='" + Source1 + "' and mp_linecode='" + LineCode1 + "' and mp_stepcode='" + StepCode1 + "' and mp_inman='"+User.UserCode+"' ";
|
|
|
+ DataTable dt = (DataTable)Dh.ExecuteSql(SQL, "select");
|
|
|
+ Count.Text = "计数:" + dt.Rows[0][0].ToString();
|
|
|
+ CountRefresh.Start();
|
|
|
}
|
|
|
|
|
|
public void Close()
|
|
|
@@ -100,10 +100,10 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
|
|
|
private void CountRefresh_Tick(object sender, EventArgs e)
|
|
|
{
|
|
|
- //string SQL = "select count(distinct mp_sncode) from makeprocess where trunc(sysdate)=trunc(mp_indate) and ";
|
|
|
- //SQL += "mp_sourcecode='" + Source1 + "' and mp_linecode='" + LineCode1 + "' and mp_stepcode='" + StepCode1 + "'and mp_inman='" + User.UserCode + "' ";
|
|
|
- //DataTable dt = (DataTable)Dh.ExecuteSql(SQL, "select");
|
|
|
- //Count.Text = "计数:" + dt.Rows[0][0].ToString();
|
|
|
+ string SQL = "select count(distinct mp_sncode) from makeprocess where trunc(sysdate)=trunc(mp_indate) and ";
|
|
|
+ SQL += "mp_sourcecode='" + Source1 + "' and mp_linecode='" + LineCode1 + "' and mp_stepcode='" + StepCode1 + "'and mp_inman='" + User.UserCode + "' ";
|
|
|
+ DataTable dt = (DataTable)Dh.ExecuteSql(SQL, "select");
|
|
|
+ Count.Text = "计数:" + dt.Rows[0][0].ToString();
|
|
|
}
|
|
|
}
|
|
|
}
|