|
|
@ -90,8 +90,10 @@ namespace formula_manage |
|
|
_SQL.IsEnabled = true; |
|
|
_SQL.IsEnabled = true; |
|
|
_SQLBAK.IsEnabled = true; |
|
|
_SQLBAK.IsEnabled = true; |
|
|
_SOFTWARE_SET.IsEnabled = true; |
|
|
_SOFTWARE_SET.IsEnabled = true; |
|
|
|
|
|
_EXCHANGE_SET.IsEnabled = true; |
|
|
_PRINT_SET.IsEnabled = true; |
|
|
_PRINT_SET.IsEnabled = true; |
|
|
_USER_SET.IsEnabled = true; |
|
|
_USER_SET.IsEnabled = true; |
|
|
|
|
|
_USER_log.IsEnabled = true; |
|
|
_RECIPE.IsEnabled = true; |
|
|
_RECIPE.IsEnabled = true; |
|
|
_PROCESS.IsEnabled = true; |
|
|
_PROCESS.IsEnabled = true; |
|
|
_WORKFLOW.IsEnabled = true; |
|
|
_WORKFLOW.IsEnabled = true; |
|
|
@ -142,7 +144,7 @@ namespace formula_manage |
|
|
{ |
|
|
{ |
|
|
DataTable logindataTable = new DataTable(); //建立login缓存
|
|
|
DataTable logindataTable = new DataTable(); //建立login缓存
|
|
|
SqlConnection conn_SC = new SqlConnection(Connstr_SC); |
|
|
SqlConnection conn_SC = new SqlConnection(Connstr_SC); |
|
|
string user_sql = "SELECT UserCode ,PassWord ,UserSetup ,Capacity ,GROUP_CODE ,Note FROM [Dispensing].[dbo].[UserAccount] WHERE Capacity != 0";//查询语句
|
|
|
string user_sql = "SELECT UserCode ,PassWord ,UserSetup ,Capacity ,GROUP_CODE ,Note FROM [dbo].[UserAccount] WHERE Capacity != 0";//查询语句
|
|
|
|
|
|
|
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
@ -168,6 +170,7 @@ namespace formula_manage |
|
|
_SQL.IsEnabled = true; |
|
|
_SQL.IsEnabled = true; |
|
|
_SQLBAK.IsEnabled = true; |
|
|
_SQLBAK.IsEnabled = true; |
|
|
_SOFTWARE_SET.IsEnabled = true; |
|
|
_SOFTWARE_SET.IsEnabled = true; |
|
|
|
|
|
_EXCHANGE_SET.IsEnabled = true; |
|
|
_PRINT_SET.IsEnabled = true; |
|
|
_PRINT_SET.IsEnabled = true; |
|
|
_USER_SET.IsEnabled = true; |
|
|
_USER_SET.IsEnabled = true; |
|
|
_RECIPE.IsEnabled = true; |
|
|
_RECIPE.IsEnabled = true; |
|
|
@ -408,7 +411,7 @@ namespace formula_manage |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
SqlConnection conn_SC = new SqlConnection(Connstr_SC); |
|
|
SqlConnection conn_SC = new SqlConnection(Connstr_SC); |
|
|
string DYELOTS_sql = "SELECT count(*) FROM [Dispensing].[dbo].[DYELOTS_RECIPE] WHERE Dyelot = '" + Number.Text + "' and ReDye = '" + ReDye.Text + "'";//单号查询语句
|
|
|
string DYELOTS_sql = "SELECT count(*) FROM [dbo].[DYELOTS_RECIPE] WHERE Dyelot = '" + Number.Text + "' and ReDye = '" + ReDye.Text + "'";//单号查询语句
|
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
await conn_SC.OpenAsync(); //打开数据连接
|
|
|
await conn_SC.OpenAsync(); //打开数据连接
|
|
|
|