From 8fb5c223708e61cb2f63111dadabaa5397ab94b0 Mon Sep 17 00:00:00 2001 From: zhaojian Date: Fri, 10 Nov 2023 17:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=80=E5=A7=8B=E5=B7=A5?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shangjian/XGLFinishPro/LoginPage.xaml | 2 +- shangjian/XGLFinishPro/LoginPage.xaml.cs | 44 ++++++++--------- .../XGLFinishPro/Views/LanJu_Operator.xaml | 33 ++++++++++--- .../XGLFinishPro/Views/LanJu_Operator.xaml.cs | 47 ++++++++++++++++++- 4 files changed, 96 insertions(+), 30 deletions(-) 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"> + + +