|
|
|
|
@ -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<TeamInfoModel> listTeam = Utils.ToDataList<TeamInfoModel>(dt);
|
|
|
|
|
// List<TeamInfoModel> listTeam = Utils.ToDataList<TeamInfoModel>(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,
|
|
|
|
|
|