| | |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.DevFrm.Work |
| | | { |
| | |
| | | public Frm_WorkStart() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | |
| | | _getListJyxm(); |
| | | btnLogin.Click += BtnLogin_Click; |
| | | } |
| | | |
| | | private void BtnLogin_Click(object sender, EventArgs e) |
| | | { |
| | | Frm_Work01 frm = new Frm_Work01(); |
| | | if (txt_bc.SelectedIndex <= 0) |
| | | { |
| | | txt_bc.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择班次!"); |
| | | return; |
| | | } |
| | | if (txt_gx.SelectedIndex <= 0) |
| | | { |
| | | txt_gx.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择工序!"); |
| | | return; |
| | | } |
| | | string fGx = txt_gx.Text.Trim(); |
| | | string fBc = txt_bc.Text.Trim(); |
| | | Frm_Work01 frm = new Frm_Work01(fGx, fBc); |
| | | frm.ShowDialog(); |
| | | } |
| | | |
| | |
| | | txt_gx.Properties.Items.Add("-请选择-"); |
| | | foreach (DataRow dr in dt.Rows) |
| | | { |
| | | txt_gx.Properties.Items.Add(dr["processNo"].ToString()+":"+ dr["processName"].ToString()); |
| | | txt_gx.Properties.Items.Add(dr["processNo"].ToString() + ":" + dr["processName"].ToString()); |
| | | } |
| | | txt_gx.Focus(); |
| | | txt_gx.SelectedIndex = 0; |