| | |
| | | getPageListQuery(); |
| | | }; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 查询集合 |
| | | /// </summary> |
| | |
| | | .GetRowCellValue(i, "fieldWhere").ToString()); |
| | | var _fieldValue = gridView1.GetRowCellValue(i, "fieldValue") |
| | | .ToString(); |
| | | var _fieldType = gridView1.GetRowCellValue(i, "fieldType") |
| | | .ToString(); |
| | | if (_fileWhere.Contains("like")) |
| | | { |
| | | _fileWhere = " like "; |
| | | _fieldValue = "%" + _fieldValue + "%"; |
| | | } |
| | | list.Add(new FilterEntity(_fieId, _fileIdDec, _fileWhere, |
| | | _fileWhereDec, _fieldValue)); |
| | | _fileWhereDec, _fieldValue, _fieldType)); |
| | | } |
| | | UpdateParent?.Invoke(this, |
| | | new UpdateParentEventArgs { FilterList = list }); |
| | |
| | | if (col.Tag != null && !string.IsNullOrEmpty(col.Tag.ToString())) |
| | | { |
| | | var item = new CboItemEntity(); |
| | | item.Text = col.Tag.ToString() + "(" + col.Caption + ")"; |
| | | item.Text = col.Tag.ToString() + "(" + col.Caption + ")"; |
| | | //item.Value = col.FieldName; |
| | | item.Value = col.Tag.ToString(); |
| | | item.FType = col.UnboundExpression; |
| | | repositoryItemComboBox1.Items.Add(item); |
| | | } |
| | | |
| | |
| | | foreach (var kvp in d2) |
| | | { |
| | | var item = new CboItemEntity(); |
| | | item.Text = kvp.Key + "(" + kvp.Value + ")"; |
| | | item.Text = kvp.Key + "(" + kvp.Value + ")"; |
| | | item.Value = kvp.Key; |
| | | repositoryItemComboBox2.Items.Add(item); |
| | | } |
| | |
| | | var dt = new DataTable(); |
| | | dt.Columns.Add("field", typeof(string)); |
| | | dt.Columns.Add("fieldWhere", typeof(string)); |
| | | dt.Columns.Add("fieldValue", typeof(string)); |
| | | dt.Columns.Add("fieldValue", typeof(string)); |
| | | dt.Columns.Add("fieldType", typeof(string)); |
| | | foreach (var _sql in FilterList) |
| | | { |
| | | var dr = dt.NewRow(); |
| | | dr["field"] = _sql.fileId + "(" + _sql.fileIdDec; |
| | | dr["fieldWhere"] = _sql.fileOper + "(" + _sql.fileOperDec; |
| | | dr["field"] = _sql.fileId + "(" + _sql.fileIdDec; |
| | | dr["fieldWhere"] = _sql.fileOper + "(" + _sql.fileOperDec; |
| | | dr["fieldValue"] = _sql.fileValue.Replace("%", ""); |
| | | dr["fieldType"] = _sql.fileType; |
| | | dt.Rows.Add(dr); |
| | | } |
| | | gcMain.BindingContext = new BindingContext(); |
| | |
| | | |
| | | private (string, string) _getFiled(string _field) |
| | | { |
| | | return (_field.Split('(')[0], _field.Split('(')[1]); |
| | | return (_field.Split('(')[0], _field.Split('(')[1]); |
| | | } |
| | | |
| | | private void BtnEsc_Click(object sender, EventArgs e) |
| | |
| | | { |
| | | e.Value = e.Value.ToString(); |
| | | e.Handled = true; |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | private void repositoryItemComboBox1_SelectedValueChanged(object sender, EventArgs e) |
| | | { |
| | | ComboBoxEdit comboBox = sender as ComboBoxEdit; |
| | | if (comboBox != null) |
| | | { |
| | | CboItemEntity _itm = comboBox.EditValue as CboItemEntity; |
| | | string dddd = _itm.Value.ToString(); |
| | | string ccc = _itm.Text.ToString(); |
| | | string yyy = _itm.FType.ToString(); |
| | | GridView myView = (gcMain.MainView as GridView); |
| | | int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle); |
| | | myView.CloseEditor(); |
| | | myView.UpdateCurrentRow(); |
| | | myView.SetRowCellValue(dataIndex, "fieldType", yyy); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移出一行 |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |