| | |
| | | /// pc只需要过站 |
| | | /// </summary> |
| | | private string isPc = "投入,电检,水检,终检"; |
| | | //电检取值路径 |
| | | /// <summary> |
| | | /// 电检取值路径,目前都是存硬盘 |
| | | /// </summary> |
| | | string dianJianPath = ""; |
| | | public Frm_WorkStart() |
| | | { |
| | |
| | | if (txt_bc.SelectedIndex <= 0) |
| | | { |
| | | txt_bc.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择班次!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择班次!"); |
| | | return; |
| | | } |
| | | if (txt_gx.SelectedIndex <= 0) |
| | | { |
| | | txt_gx.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请选择工序!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择工序!"); |
| | | return; |
| | | } |
| | | string fGx = txt_gx.Text.Trim(); |
| | |
| | | return; |
| | | } |
| | | } |
| | | |
| | | Frm_Work01 frm = new Frm_Work01(fGx, fBc,dianJianPath); |
| | | Frm_Work01 frm = new Frm_Work01(fGx, fBc, dianJianPath); |
| | | frm.ShowDialog(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 先读取电检配置 |
| | | /// 先读取电检的存储路径 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool getConfigDianJian() |
| | | { |
| | | //这是电检数据的路径 |
| | | string _where = " and 1=1 and defect_code='1008'"; |
| | | var pgq = new PageQueryModel(1, 999999, "a.defect_code", "asc", "", _where); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读取工序下拉 |
| | | /// 读取工序下拉,同时配对isPc |
| | | /// </summary> |
| | | private void _getListJyxm() |
| | | { |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | } |