| | |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义库位 |
| | | if (colType is UcLookKw) |
| | | { |
| | | var txt = colType as UcLookKw; |
| | | txt.SetIdOrCode(strVal); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义供应商 |
| | | if (colType is UcLookSupplier) |
| | | { |
| | |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义库位 |
| | | if (ctrl is UcLookKw) |
| | | { |
| | | var txt = ctrl as UcLookKw; |
| | | txt.SetIdOrCode("-1"); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义供应商 |
| | | if (ctrl is UcLookSupplier) |
| | | { |
| | |
| | | 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; |
| | | } |
| | |
| | | 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) => |
| | | { |
| | | //默认选中行不变色 |