|
|
|
@ -33,7 +33,7 @@ namespace ButcherManageClient |
|
|
|
{ |
|
|
|
InitializeComponent(); |
|
|
|
userNameTxt.Text = ButcherAppContext.Context.UserConfig.UserName; |
|
|
|
pwdTxt.Text = ""; |
|
|
|
pwdTxt.Text = "123"; |
|
|
|
} |
|
|
|
|
|
|
|
private void settingBtn_Click(object sender, EventArgs e) |
|
|
|
@ -65,9 +65,9 @@ namespace ButcherManageClient |
|
|
|
throw new Exception("离线状态请保持与上次用户名一致"); |
|
|
|
ButcherAppContext.Context.UserConfig.Connection = false; |
|
|
|
} |
|
|
|
// var form = AfterLoginUtil.CreateForm(ButcherAppContext.Context.UserConfig.Role);
|
|
|
|
var form = AfterLoginUtil.CreateForm(ButcherAppContext.Context.UserConfig.Role); |
|
|
|
// var form = AfterLoginUtil.CreateForm("分割入库");
|
|
|
|
var form = AfterLoginUtil.CreateForm("分割称重"); |
|
|
|
// var form = AfterLoginUtil.CreateForm("分割称重");
|
|
|
|
if (form == null) |
|
|
|
throw new Exception("权限不符"); |
|
|
|
form.FormClosing += delegate { SubFormClosing(); }; |
|
|
|
|