cdk
2025-12-02 821e74f483c3fddebe42ef30bb06e8fe29b1a5b9
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -501,6 +501,14 @@
                            txt.IsReadly = isEdt;
                            continue;
                        }
                        //自定义库位
                        if (colType is UcLookKw)
                        {
                            var txt = colType as UcLookKw;
                            txt.SetIdOrCode(strVal);
                            txt.IsReadly = isEdt;
                            continue;
                        }
                        //自定义供应商
                        if (colType is UcLookSupplier)
                        {
@@ -806,6 +814,14 @@
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定义库位
                if (ctrl is UcLookKw)
                {
                    var txt = ctrl as UcLookKw;
                    txt.SetIdOrCode("-1");
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定义供应商
                if (ctrl is UcLookSupplier)
                {
@@ -1062,6 +1078,13 @@
                if (ctrl is UcLookCk)
                {
                    var txt = ctrl as UcLookCk;
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定义库位
                if (ctrl is UcLookKw)
                {
                    var txt = ctrl as UcLookKw;
                    txt.IsReadly = isEdt;
                    continue;
                }
@@ -1846,6 +1869,30 @@
                    action2(_guid);
                };
            }
            gridView1.RowCellStyle += (s, e) =>
            {
                GridView view = s as GridView;
                if (view != null && e.Column != null && e.CellValue != null)
                {
                    if (e.Column.FieldName.EndsWith("Color"))
                    {
                        int rowHandle = e.RowHandle;
                        if (rowHandle >= 0)
                        {
                            DataRow row = gridView1.GetDataRow(e.RowHandle);
                            string _bgColor = row[e.Column.FieldName + "Rgb"].ToString();
                            if (!string.IsNullOrEmpty(_bgColor))
                            {
                                Color bgColor = ColorTranslator.FromHtml(_bgColor);
                                e.Appearance.BackColor = bgColor;
                                //e.Appearance.BackColor2 = Color.LightSkyBlue;
                                //e.Appearance.ForeColor = ColorTranslator.FromHtml("#ffffff") ;
                            }
                        }
                    }
                }
            };
            gridView1.RowStyle += (s, e) =>
            {
                //默认选中行不变色