bug
lu
3 天以前 8a7bc73b5ac40d26ec72a5df94ca15c5a2976af0
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
@@ -4,6 +4,7 @@
using System;
using System.Data;
using System.IO;
using System.Windows;
namespace Gs.DevApp.DevFrm.Work
{
@@ -13,13 +14,25 @@
        /// pc只需要过站
        /// </summary>
        private string isPc = "投入,电检,水检,终检";
        //电检取值路径
        /// <summary>
        /// 电检取值路径,目前都是存硬盘
        /// </summary>
        string dianJianPath = "";
        public Frm_WorkStart()
        {
            InitializeComponent();
            _getListJyxm();
            btnLogin.Click += BtnLogin_Click;
            txt_gx.EditValueChanged += (s, e) =>
            {
                string fGx = txt_gx.Text.Trim();
                if (fGx == "G003:水检")
                {
                    chkWater.Visible = true;
                }
                else
                    chkWater.Visible = false;
            };
        }
        private void BtnLogin_Click(object sender, EventArgs e)
@@ -27,13 +40,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,19 +60,17 @@
                    return;
                }
            }
            Frm_Work01 frm = new Frm_Work01(fGx, fBc,dianJianPath);
            Frm_Work01 frm = new Frm_Work01(fGx, fBc, dianJianPath, (chkWater.Checked ? 1 : 0));
            frm.ShowDialog();
        }
        /// <summary>
        /// 先读取电检配置
        /// 先读取电检的存储路径
        /// </summary>
        /// <returns></returns>
        private bool getConfigDianJian()
        {
            //这是电检数据的路径
            string _where = " and 1=1 and  defect_code='7001'";
            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);
            try
@@ -83,13 +94,13 @@
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
                return false;
            }
        }
        /// <summary>
        /// 读取工序下拉
        /// 读取工序下拉,同时配对isPc
        /// </summary>
        private void _getListJyxm()
        {
@@ -111,7 +122,7 @@
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
    }