Browse Source

添加 第三方库

master
luanhui 8 years ago
parent
commit
0e587de9a3
4 changed files with 11 additions and 3 deletions
  1. +7
    -1
      BO/Utils/AfterLoginUtil.cs
  2. +1
    -0
      ButcherManageClient/ButcherManageClient.csproj
  3. +3
    -2
      ButcherManageClient/Login.cs
  4. BIN
      ButcherManageClient/libs/AutoMapper.dll

+ 7
- 1
BO/Utils/AfterLoginUtil.cs View File

@ -21,7 +21,13 @@ namespace BO.Utils
static List<Tuple<string, string>> roleToAssemblies = new List<Tuple<string, string>>(){new Tuple<string,string>("排宰员",@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherOrder\bin\Debug\ButcherOrder"),
new Tuple<string,string>("过磅员",@"C:\BwpB3Project\src\B3ButcherManageClient\ButcherWeight\bin\Debug\ButcherWeight"),
new Tuple<string,string>("验质员",@"C:\BwpB3Project\src\B3ButcherManageClient\QualityAndOrder\bin\Debug\QualityAndOrder"),new Tuple<string,string>("定级员",@"C:\BwpB3Project\src\B3ButcherManageClient\WeighAndGrading\bin\Debug\WeighAndGrading"),new Tuple<string,string>("窒晕员",@"C:\BwpB3Project\src\B3ButcherManageClient\OrderConfirm\bin\Debug\OrderConfirm"),new Tuple<string,string>("掉猪处理员",@"C:\BwpB3Project\src\B3ButcherManageClient\DropPigReOrder\bin\Debug\DropPigReOrder")};
new Tuple<string,string>("验质员",@"C:\BwpB3Project\src\B3ButcherManageClient\QualityAndOrder\bin\Debug\QualityAndOrder"),
new Tuple<string,string>("定级员",@"C:\BwpB3Project\src\B3ButcherManageClient\WeighAndGrading\bin\Debug\WeighAndGrading"),
new Tuple<string,string>("窒晕员",@"C:\BwpB3Project\src\B3ButcherManageClient\OrderConfirm\bin\Debug\OrderConfirm"),
new Tuple<string,string>("掉猪处理员",@"C:\BwpB3Project\src\B3ButcherManageClient\DropPigReOrder\bin\Debug\DropPigReOrder"),
new Tuple<string,string>("配货员",@"D:\BWP\BWPB3\src\B3ButcherManageClient\Distribution\bin\Debug\Distribution")
};
// static List<Tuple<string, string>> roleToAssemblies = new List<Tuple<string, string>>()
// {


+ 1
- 0
ButcherManageClient/ButcherManageClient.csproj View File

@ -112,6 +112,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="libs\AutoMapper.dll" />
<Content Include="pig [128x128].ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />


+ 3
- 2
ButcherManageClient/Login.cs View File

@ -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(); };


BIN
ButcherManageClient/libs/AutoMapper.dll View File


Loading…
Cancel
Save