Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage
This commit is contained in:
commit
ae7ff52abf
1 file changed
+6
-3
+6
-3
@@ -30,6 +30,7 @@ using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
|||||||
using static System.Net.Mime.MediaTypeNames;
|
using static System.Net.Mime.MediaTypeNames;
|
||||||
using formula_manage.UserClass;
|
using formula_manage.UserClass;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace formula_manage
|
namespace formula_manage
|
||||||
{
|
{
|
||||||
@@ -78,6 +79,7 @@ namespace formula_manage
|
|||||||
RRODUCTdataTable.Columns.Add("PRODUCT_NAME", typeof(string));
|
RRODUCTdataTable.Columns.Add("PRODUCT_NAME", typeof(string));
|
||||||
RRODUCTdataTable.Columns.Add("TARGET_WT", typeof(float));
|
RRODUCTdataTable.Columns.Add("TARGET_WT", typeof(float));
|
||||||
RRODUCTdataTable.Columns.Add("UNIT", typeof(string));
|
RRODUCTdataTable.Columns.Add("UNIT", typeof(string));
|
||||||
|
RRODUCTdataTable.Columns.Add("Process", typeof(string));
|
||||||
RRODUCTdataTable.Columns.Add("REMARK", typeof(string));
|
RRODUCTdataTable.Columns.Add("REMARK", typeof(string));
|
||||||
|
|
||||||
if (USER.Text == "ENGINEER") //工程师允许功能
|
if (USER.Text == "ENGINEER") //工程师允许功能
|
||||||
@@ -399,9 +401,8 @@ namespace formula_manage
|
|||||||
{
|
{
|
||||||
System.Windows.MessageBox.Show("请选择机台", "注意",MessageBoxButton.OK , MessageBoxImage.Question) ;
|
System.Windows.MessageBox.Show("请选择机台", "注意",MessageBoxButton.OK , MessageBoxImage.Question) ;
|
||||||
return;
|
return;
|
||||||
}
|
} //机台检查
|
||||||
|
if (int.Parse(Procedures_N.Text) > int.Parse(Procedures_P.Text)) //步骤检查
|
||||||
if (int.Parse(Procedures_N.Text) > int.Parse(Procedures_P.Text))
|
|
||||||
{
|
{
|
||||||
MessageBoxResult result = System.Windows.MessageBox.Show("当前步骤与总步骤设定不符是否继续", "注意", MessageBoxButton.OKCancel, MessageBoxImage.Question, MessageBoxResult.Cancel);
|
MessageBoxResult result = System.Windows.MessageBox.Show("当前步骤与总步骤设定不符是否继续", "注意", MessageBoxButton.OKCancel, MessageBoxImage.Question, MessageBoxResult.Cancel);
|
||||||
if (result == MessageBoxResult.OK)
|
if (result == MessageBoxResult.OK)
|
||||||
@@ -410,6 +411,8 @@ namespace formula_manage
|
|||||||
} else return;
|
} else return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SqlCommand insertcommand = new SqlCommand("INSERT INTO [Dispensing].[dbo].[DYELOTS_RECIPE]([CompanyName],[CompanyCode],[Address],[Owner],[Memo])" +"VALUES(@CompanyName, @CompanyCode,@Address,@Owner,@Memo)", conn_SC);
|
||||||
|
|
||||||
Procedures_N.Text = "1";
|
Procedures_N.Text = "1";
|
||||||
Procedures_P.Text = "1";
|
Procedures_P.Text = "1";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user