lu
4 天以前 9878916af28906629dad956b65726167b50834cf
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
@@ -13,7 +13,9 @@
        /// pc只需要过站
        /// </summary>
        private string isPc = "投入,电检,水检,终检";
        //电检取值路径
        /// <summary>
        /// 电检取值路径,目前都是存硬盘
        /// </summary>
        string dianJianPath = "";
        public Frm_WorkStart()
        {
@@ -27,13 +29,13 @@
            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();
@@ -47,18 +49,16 @@
                    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);
@@ -83,13 +83,13 @@
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
                return false;
            }
        }
        /// <summary>
        /// 读取工序下拉
        /// 读取工序下拉,同时配对isPc
        /// </summary>
        private void _getListJyxm()
        {
@@ -111,7 +111,7 @@
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
    }