|
|
@@ -75,6 +75,7 @@ namespace UAS_MES_NEW
|
|
|
try
|
|
|
{
|
|
|
dh = new DataHelper();
|
|
|
+ SystemInf.dh = dh;
|
|
|
//将账套的信息查询出来赋给下拉框
|
|
|
DbComboxData = (DataTable)dh.ExecuteSql("select ms_pwd,ma_user,ma_user||'#'||ma_inneraddress db_user from master", "select");
|
|
|
DB.DataSource = DbComboxData;
|
|
|
@@ -104,12 +105,12 @@ namespace UAS_MES_NEW
|
|
|
SystemInf.ScreenHeight = Screen.PrimaryScreen.WorkingArea.Height;
|
|
|
//重新执行一遍构造函数使得重置之后的链接字符串生效
|
|
|
dh = new DataHelper();
|
|
|
- SystemInf.dh = dh;
|
|
|
+
|
|
|
string ErrorMessage = "";
|
|
|
//验证用户名和密码
|
|
|
if (LogicHandler.CheckUserLogin(UserName.Text, PassWord.Text, DBUser, out ErrorMessage))
|
|
|
{
|
|
|
- DataTable dt = (DataTable)dh.ExecuteSql("select nvl(em_modifypassword,0)em_modifypassword,nvl(em_passwordctl,0)em_passwordctl from employee where em_code='" + UserName.Text + "'", "select");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql("select nvl(em_modifypassword,0)em_modifypassword,nvl(em_passwordctl,0)em_passwordctl from employee where upper(em_code)='" + UserName.Text.ToUpper() + "'", "select");
|
|
|
if (dt.Rows[0]["em_passwordctl"].ToString() != "0")
|
|
|
{
|
|
|
if (dt.Rows[0]["em_modifypassword"].ToString() == "0")
|