tjx
2025-10-21 86f320b3d6cb57078afd0d6b896a347f37c1370b
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -41,6 +41,8 @@
           {
               Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
           }, tips);
            // 添加gridView1的RowStyle事件,当退货标识th=1时整行标红
            gridView1.RowStyle += GridView1_RowStyle;
            Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
            {
                getModel(value);
@@ -159,6 +161,26 @@
            ConfigureOaColumn(gridColumn2, "xblb", "选别类别", 19);
        }
        /// <summary>
        /// gridView1的RowStyle事件,当退货标识th=1时整行标红
        /// </summary>
        private void GridView1_RowStyle(object sender, RowStyleEventArgs e)
        {
            if (e.RowHandle >= 0)
            {
                var view = sender as GridView;
                if (view != null)
                {
                    var thValue = view.GetRowCellValue(e.RowHandle, "th");
                    if (thValue != null && thValue.ToString() == "1")
                    {
                        e.Appearance.BackColor = System.Drawing.Color.Red;
                        e.Appearance.ForeColor = System.Drawing.Color.White;
                    }
                }
            }
        }
        private static void ConfigureOaColumn(GridColumn column, string fieldName, string caption, int visibleIndex)
        {
            if (column == null)