diff --git a/shangjian/XGLFinishPro/LoginPage.xaml b/shangjian/XGLFinishPro/LoginPage.xaml index 081e562..4e94293 100644 --- a/shangjian/XGLFinishPro/LoginPage.xaml +++ b/shangjian/XGLFinishPro/LoginPage.xaml @@ -50,7 +50,7 @@ - + diff --git a/shangjian/XGLFinishPro/LoginPage.xaml.cs b/shangjian/XGLFinishPro/LoginPage.xaml.cs index b45697e..9fc0c2e 100644 --- a/shangjian/XGLFinishPro/LoginPage.xaml.cs +++ b/shangjian/XGLFinishPro/LoginPage.xaml.cs @@ -41,7 +41,7 @@ namespace XGLFinishPro //Main mainWindow = new Main(); //mainWindow.Show(); InitVersion(); - InitTeamInfo(); + //InitTeamInfo(); InitShiftInfo(); } @@ -64,22 +64,22 @@ namespace XGLFinishPro comboBoxShift.DisplayMemberPath = "shift_desc"; } - private void InitTeamInfo() - { - DataTable dt = formingMachineService.GetTeamList(); - if (dt == null) - { - CustomMessageBox.Show("没有查询到班组信息,请联系管理员!", CustomMessageBoxIcon.Warning); - return; - } + //private void InitTeamInfo() + //{ + // DataTable dt = formingMachineService.GetTeamList(); + // if (dt == null) + // { + // CustomMessageBox.Show("没有查询到班组信息,请联系管理员!", CustomMessageBoxIcon.Warning); + // return; + // } - List listTeam = Utils.ToDataList(dt); + // List listTeam = Utils.ToDataList(dt); - //绑定 - comboBoxTeam.ItemsSource = listTeam; - comboBoxTeam.SelectedValuePath = "team_id"; - comboBoxTeam.DisplayMemberPath = "team_desc"; - } + // //绑定 + // comboBoxTeam.ItemsSource = listTeam; + // comboBoxTeam.SelectedValuePath = "team_id"; + // comboBoxTeam.DisplayMemberPath = "team_desc"; + //} private void InitVersion() { @@ -99,12 +99,12 @@ namespace XGLFinishPro //this.dldh.IsActive = true;//遮罩层可见 this.dldh.Visibility = Visibility.Visible;//遮罩层可见 zzdl.Visibility = Visibility.Visible; - if (comboBoxTeam.SelectedValue == null || string.IsNullOrEmpty(comboBoxTeam.SelectedValue.ToString())) - { - CustomMessageBox.Show("登录失败,请选择班组", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Error); - comboBoxTeam.Focus(); - return; - } + //if (comboBoxTeam.SelectedValue == null || string.IsNullOrEmpty(comboBoxTeam.SelectedValue.ToString())) + //{ + // CustomMessageBox.Show("登录失败,请选择班组", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Error); + // comboBoxTeam.Focus(); + // return; + //} if (comboBoxShift.SelectedValue == null || string.IsNullOrEmpty(comboBoxShift.SelectedValue.ToString())) { CustomMessageBox.Show("登录失败,请选择班次", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Error); @@ -124,7 +124,7 @@ namespace XGLFinishPro username = username.Text.Trim(), pwd = userpwd.Password.Trim(), IsChecked = rememberpwd.IsChecked, - teamID = comboBoxTeam.SelectedValue.ToString(), + //teamID = comboBoxTeam.SelectedValue.ToString(), shiftID = comboBoxShift.SelectedValue.ToString(), workDate = datepickerWorkDate.Text, startTime = lst.Shift_Start_Time, diff --git a/shangjian/XGLFinishPro/Views/LanJu_Operator.xaml b/shangjian/XGLFinishPro/Views/LanJu_Operator.xaml index 8c3de15..2dfa952 100644 --- a/shangjian/XGLFinishPro/Views/LanJu_Operator.xaml +++ b/shangjian/XGLFinishPro/Views/LanJu_Operator.xaml @@ -193,6 +193,27 @@ Grid.Row="0" Grid.Column="0" Height="90"> + + +