lu
2025-02-19 9cdebe64f7ce63aee080491dec6d108466527432
DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
@@ -2,10 +2,13 @@
using System.Collections.Generic;
using System.Data;
using System.Windows.Forms;
using DevExpress.Office.Utils;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid.Columns;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
using Newtonsoft.Json;
namespace Gs.DevApp.DevFrm.Sys
@@ -23,6 +26,10 @@
            toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            toolBarMenu1.btnLayoutClick += ToolBarMenu1_btnLayoutClick;
            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
            gvList.Add(gridView1);
            Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) =>
            {
                Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
@@ -48,6 +55,8 @@
            txt_isSpilit.CheckedChanged += (s, e) => { DoPreviewCode(); };
        }
        /// <summary>
        ///     分页事件
        /// </summary>
@@ -57,7 +66,14 @@
        {
            getPageList(1);
        }
        private void ToolBarMenu1_btnLayoutClick(object sender, EventArgs e)
        {
            string _formNamespace = this.GetType().FullName;
            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
            gvList.Add(gridView1);
            Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace, gvList);
            DevFrm.ShowDialog();
        }
        /// <summary>
        ///     反审核
        /// </summary>
@@ -171,7 +187,7 @@
                return;
            }
            Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
           if (xtraTabControl1.SelectedTabPageIndex == 1)
            if (xtraTabControl1.SelectedTabPageIndex == 1)
            {
                getModel(lbGuid.Text.Trim());
            }
@@ -330,7 +346,7 @@
                        txxtItem3.Text = "<" + _ary[2];
                    if (_ary.Length > 3)
                        txxtItem4.Text = "<" + _ary[3];
                    if (_ary.Length >4)
                    if (_ary.Length > 4)
                        txxtItem5.Text = "<" + _ary[4];
                    txxtItem1.Enabled = txxtItem2.Enabled = txxtItem3.Enabled = txxtItem4.Enabled = panelControl1.Enabled = false;
                }
@@ -390,12 +406,13 @@
            dataTable.Rows.Add("FQC(入库检验)");
            dataTable.Rows.Add("OQCSQ(出库检验申请)");
            dataTable.Rows.Add("OQC(出库检验)");
            dataTable.Rows.Add("TM(条码)");
            txt_docCode.Properties.DataSource = dataTable;
            txt_docCode.Properties.DisplayMember = "docCode"; // 显示的列
            txt_docCode.Properties.ValueMember = "docCode"; // 实际值的列
            txt_docCode.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
        }
        private void DoPreviewCode()
        {
            if (txt_docCode.Enabled == false
@@ -483,5 +500,6 @@
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
    }
}