lu
2 天以前 f7289e89b6293e92271ad0673ba6abf36604ef4c
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -2,7 +2,6 @@
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraEditors.Drawing;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Menu;
@@ -56,10 +55,10 @@
        /// <summary>
        /// http请求
        /// </summary>
        /// <param name="url"></param>
        /// <param name="meth"></param>
        /// <param name="param"></param>
        /// <param name="isLoading"></param>
        /// <param name="url">api根地址</param>
        /// <param name="meth">方法名称</param>
        /// <param name="param">json参数</param>
        /// <param name="isLoading">是否loading</param>
        /// <returns></returns>
        public static string HttpPost(string url, string meth, string param, bool isLoading = true)
        {
@@ -454,6 +453,15 @@
                            txt.Enabled = !isEdt;
                            continue;
                        }
                        //多选
                        if (colType is RadioGroup)
                        {
                            var txt = colType as RadioGroup;
                            if (txt != null)
                                txt.SelectedIndex =int.Parse( strVal);
                            txt.ReadOnly = isEdt;
                            continue;
                        }
                        //时间
                        if (colType is DateTimePicker)
                        {
@@ -748,6 +756,15 @@
                        txt.ReadOnly = isEdt;
                    continue;
                }
                //多选
                if (ctrl is RadioGroup)
                {
                    var txt = ctrl as RadioGroup;
                    if (txt != null)
                        txt.SelectedIndex = 0;
                    txt.ReadOnly = isEdt;
                    continue;
                }
                //时间
                if (ctrl is DateTimePicker)
                {
@@ -1005,6 +1022,13 @@
                if (ctrl is NumericUpDown)
                {
                    var txt = ctrl as NumericUpDown;
                    txt.ReadOnly = isEdt;
                    continue;
                }
                //多选
                if (ctrl is RadioGroup)
                {
                    var txt = ctrl as RadioGroup;
                    txt.ReadOnly = isEdt;
                    continue;
                }
@@ -1709,7 +1733,6 @@
                }
            };
            gridView1.OptionsView.ColumnAutoWidth = false;//自动调整列宽
            if (isPostSearch == true)
            {
                gridView1.OptionsView.ShowGroupPanel = false;
@@ -1726,7 +1749,6 @@
                //是否显示底部的过滤条
                // gridView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
            }
            // gridView1.Appearance.HeaderPanel.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.ControlText;
            foreach (GridColumn column in gridView1.Columns)
            {
@@ -1752,7 +1774,6 @@
                        column.OptionsFilter.AllowAutoFilter = false;
                }
            }
            gridView1.IndicatorWidth = 60;
            gridView1.CustomDrawRowIndicator += (s, e) =>
            {
@@ -2436,7 +2457,13 @@
        iqc,
        ipqc巡检,
        ipqc首检,
        fqc
        fqc,
        生产退料入库检,
        其它入库检,
        销售退货入库检,
        超期检,
        cqcjyes,//重检方案
        cqcjno,//重检方案
    }