diff --git a/BO/Utils/AfterLoginUtil.cs b/BO/Utils/AfterLoginUtil.cs index 1b8f829..321f2ce 100644 --- a/BO/Utils/AfterLoginUtil.cs +++ b/BO/Utils/AfterLoginUtil.cs @@ -21,7 +21,13 @@ namespace BO.Utils static List> roleToAssemblies = new List>(){new Tuple("排宰员",@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherOrder\bin\Debug\ButcherOrder"), new Tuple("过磅员",@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherWeight\bin\Debug\ButcherWeight"), - new Tuple("验质员",@"C:\BwpB3Project\src\B3ButcherManageClient\QualityAndOrder\bin\Debug\QualityAndOrder"),new Tuple("定级员",@"C:\BwpB3Project\src\B3ButcherManageClient\WeighAndGrading\bin\Debug\WeighAndGrading"),new Tuple("窒晕员",@"C:\BwpB3Project\src\B3ButcherManageClient\OrderConfirm\bin\Debug\OrderConfirm"),new Tuple("掉猪处理员",@"C:\BwpB3Project\src\B3ButcherManageClient\DropPigReOrder\bin\Debug\DropPigReOrder")}; + new Tuple("验质员",@"C:\BwpB3Project\src\B3ButcherManageClient\QualityAndOrder\bin\Debug\QualityAndOrder"), + new Tuple("定级员",@"C:\BwpB3Project\src\B3ButcherManageClient\WeighAndGrading\bin\Debug\WeighAndGrading"), + new Tuple("窒晕员",@"C:\BwpB3Project\src\B3ButcherManageClient\OrderConfirm\bin\Debug\OrderConfirm"), + new Tuple("掉猪处理员",@"C:\BwpB3Project\src\B3ButcherManageClient\DropPigReOrder\bin\Debug\DropPigReOrder"), + new Tuple("配货员",@"D:\BWP\BWPB3\src\B3ButcherManageClient\Distribution\bin\Debug\Distribution") + + }; // static List> roleToAssemblies = new List>() // { diff --git a/ButcherManageClient/ButcherManageClient.csproj b/ButcherManageClient/ButcherManageClient.csproj index a3f0c23..7f39604 100644 --- a/ButcherManageClient/ButcherManageClient.csproj +++ b/ButcherManageClient/ButcherManageClient.csproj @@ -112,6 +112,7 @@ + diff --git a/ButcherManageClient/Login.cs b/ButcherManageClient/Login.cs index 823d5d5..9c9d426 100644 --- a/ButcherManageClient/Login.cs +++ b/ButcherManageClient/Login.cs @@ -33,7 +33,7 @@ namespace ButcherManageClient { InitializeComponent(); userNameTxt.Text = ButcherAppContext.Context.UserConfig.UserName; - pwdTxt.Text = "123"; + pwdTxt.Text = ""; } private void settingBtn_Click(object sender, EventArgs e) @@ -65,7 +65,8 @@ 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("配货员"); if (form == null) throw new Exception("权限不符"); form.FormClosing += delegate { SubFormClosing(); }; diff --git a/ButcherManageClient/libs/AutoMapper.dll b/ButcherManageClient/libs/AutoMapper.dll new file mode 100644 index 0000000..15e2b70 Binary files /dev/null and b/ButcherManageClient/libs/AutoMapper.dll differ