Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage
This commit is contained in:
commit
ae7ff52abf
1 file changed
+7
-4
+7
-4
@@ -30,6 +30,7 @@ using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using formula_manage.UserClass;
|
||||
using System.Drawing;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace formula_manage
|
||||
{
|
||||
@@ -78,6 +79,7 @@ namespace formula_manage
|
||||
RRODUCTdataTable.Columns.Add("PRODUCT_NAME", typeof(string));
|
||||
RRODUCTdataTable.Columns.Add("TARGET_WT", typeof(float));
|
||||
RRODUCTdataTable.Columns.Add("UNIT", typeof(string));
|
||||
RRODUCTdataTable.Columns.Add("Process", typeof(string));
|
||||
RRODUCTdataTable.Columns.Add("REMARK", typeof(string));
|
||||
|
||||
if (USER.Text == "ENGINEER") //工程师允许功能
|
||||
@@ -399,9 +401,8 @@ namespace formula_manage
|
||||
{
|
||||
System.Windows.MessageBox.Show("请选择机台", "注意",MessageBoxButton.OK , MessageBoxImage.Question) ;
|
||||
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);
|
||||
if (result == MessageBoxResult.OK)
|
||||
@@ -410,6 +411,8 @@ namespace formula_manage
|
||||
} 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_P.Text = "1";
|
||||
|
||||
@@ -592,7 +595,7 @@ namespace formula_manage
|
||||
Type_ = "%";
|
||||
if (double.TryParse(list_Weight.Text, out ang))
|
||||
{
|
||||
Weight_ = double.Parse(list_Weight.Text) * double.Parse(Conc_) *10;
|
||||
Weight_ = double.Parse(list_Weight.Text) * double.Parse(Conc_) * 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user