| | |
| | | if (colType is SimpleButton) |
| | | { |
| | | var txt = colType as SimpleButton; |
| | | txt.Enabled = !isEdt; |
| | | if (txt.Tag != null && txt.Tag.ToString() == "gvBtnAlawys") |
| | | txt.Enabled = true; |
| | | else |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | //自定工序 |
| | |
| | | if (ctrl is SimpleButton) |
| | | { |
| | | var txt = ctrl as SimpleButton; |
| | | txt.Enabled = !isEdt; |
| | | if (txt.Tag != null && txt.Tag.ToString() == "gvBtnAlawys") |
| | | txt.Enabled = true; |
| | | else |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | } |
| | |
| | | if (ctrl is SimpleButton) |
| | | { |
| | | var txt = ctrl as SimpleButton; |
| | | txt.Enabled = !isEdt; |
| | | if (txt.Tag != null && txt.Tag.ToString() == "gvBtnAlawys") |
| | | txt.Enabled = true; |
| | | else |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | } |
| | |
| | | switch (type) |
| | | { |
| | | case "Bit类型": |
| | | string _val = (val.ToUpper()== "true".ToUpper() ? "1": "0"); |
| | | string _val = (val.ToUpper() == "true".ToUpper() ? "1" : "0"); |
| | | return new FilterEntity(id, idDec + ")", "=", "等于)", "" + _val + "", type); |
| | | break; |
| | | default: |
| | | return new FilterEntity(id, idDec + ")", "like", "包含)", "%" + val + "%", type); |
| | | break; |
| | | } |
| | | |
| | | |
| | | } |
| | | public static List<FilterEntity> GetDilter(GridColumnCollection Columns, GridView gridView1 = null) |
| | | { |
| | |
| | | ColumnFilterInfo filter = col.FilterInfo; |
| | | if (string.IsNullOrEmpty(filter.FilterString)) |
| | | continue; |
| | | string _filterString= filter.FilterString.Replace("Contains", "").Replace("(", "").Replace(")", "").Replace("'", "").Replace("'", ""); |
| | | string[] ddd= _filterString.Split(','); |
| | | string _filterString = filter.FilterString.Replace("Contains", "").Replace("(", "").Replace(")", "").Replace("'", "").Replace("'", ""); |
| | | string[] ddd = _filterString.Split(','); |
| | | string _val = ""; |
| | | if (ddd.Length > 1) |
| | | { |
| | | _val = ddd[1].Trim(); |
| | | } |
| | | else { |
| | | else |
| | | { |
| | | ddd = _filterString.Split('='); |
| | | _val = ddd[1].Trim(); |
| | | } |
| | |
| | | _sbSqlWhere.Append(" and isnull(" + itm.fileId + ",0) =" + itm.fileValue + ""); |
| | | break; |
| | | default: |
| | | _sbSqlWhere.Append(" and " +itm.fileId + " "+itm.fileOper + " '" + itm.fileValue + "'"); |
| | | _sbSqlWhere.Append(" and " + itm.fileId + " " + itm.fileOper + " '" + itm.fileValue + "'"); |
| | | break; |
| | | } |
| | | } |