Browse Source

提交错了

master
luanhui 8 years ago
parent
commit
a9538a6115
2 changed files with 25 additions and 25 deletions
  1. +22
    -22
      BO/Utils/AfterLoginUtil.cs
  2. +3
    -3
      ButcherManageClient/Login.cs

+ 22
- 22
BO/Utils/AfterLoginUtil.cs View File

@ -18,27 +18,27 @@ namespace BO.Utils
public static class AfterLoginUtil public static class AfterLoginUtil
{ {
//
// 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>("配货员",@"D:\BWP\BWPB3\src\B3ButcherManageClient\Distribution\bin\Debug\Distribution")
//
// };
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>("配货员",@"D:\BWP\BWPB3\src\B3ButcherManageClient\Distribution\bin\Debug\Distribution")
};
// static List<Tuple<string, string>> roleToAssemblies = new List<Tuple<string, string>>()
// {
// new Tuple<string,string>("排宰员",@"\ButcherOrder"),
// new Tuple<string,string>("过磅员",@"ButcherWeight"),
// new Tuple<string,string>("验质员",@"QualityAndOrder"),
// new Tuple<string,string>("定级员",@"WeighAndGrading"),
// new Tuple<string,string>("窒晕员",@"OrderConfirm"),
// new Tuple<string,string>("掉猪处理员",@"DropPigReOrder"),
//// new Tuple<string,string>("定级员",@"C:\B3\src\B3ButcherManageClient\CarcassStateWeight\bin\Debug\CarcassStateWeight")
// };
static List<Tuple<string, string>> roleToAssemblies = new List<Tuple<string, string>>()
{
new Tuple<string,string>("排宰员",@"\ButcherOrder"),
new Tuple<string,string>("过磅员",@"ButcherWeight"),
new Tuple<string,string>("验质员",@"QualityAndOrder"),
new Tuple<string,string>("定级员",@"WeighAndGrading"),
new Tuple<string,string>("窒晕员",@"OrderConfirm"),
new Tuple<string,string>("掉猪处理员",@"DropPigReOrder"),
// new Tuple<string,string>("定级员",@"C:\B3\src\B3ButcherManageClient\CarcassStateWeight\bin\Debug\CarcassStateWeight")
};
@ -48,10 +48,10 @@ namespace BO.Utils
if (first == null) if (first == null)
throw new Exception("未注册的角色"); throw new Exception("未注册的角色");
//#if debug //#if debug
var filePath = string.Format("{0}.dll", first.Item2);
// var filePath = string.Format("{0}.dll", first.Item2);
//#endif //#endif
//#if !debug //#if !debug
// var filePath = Path.Combine(Application.StartupPath, string.Format("{0}.dll", first.Item2));
var filePath = Path.Combine(Application.StartupPath, string.Format("{0}.dll", first.Item2));
//#endif //#endif
if (!File.Exists(filePath)) if (!File.Exists(filePath))
throw new Exception("相关模块不存在"); throw new Exception("相关模块不存在");


+ 3
- 3
ButcherManageClient/Login.cs View File

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


Loading…
Cancel
Save