| | |
| | | { |
| | | 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); |
| | |
| | | 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) |