| | |
| | | using DevExpress.Utils.DirectXPaint; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using DevExpress.XtraEditors.Repository; |
| | | using DevExpress.XtraGrid.Columns; |
| | | using DevExpress.XtraGrid.Views.Base.ViewInfo; |
| | | using FastReport.MSChart; |
| | |
| | | #region MyRegion |
| | | private void getPageListQuery() |
| | | { |
| | | var _colList = new List<dynamic>(); |
| | | foreach (GridColumn col in _columns) |
| | | { |
| | | _colList.Add(col.Name.ToString()); |
| | | } |
| | | //foreach (GridColumn col in _columns) |
| | | // if (col.Tag != null && col.Tag.ToString().StartsWith("query")) |
| | | // { |
| | | // var item = new CboItemEntity(); |
| | | // item.Text = col.Tag.ToString().Replace("query_", "") + |
| | | // "(" + col.Caption + ")"; |
| | | // //item.Value = col.FieldName; |
| | | // item.Value = col.Tag.ToString().Replace("query_", ""); |
| | | // repositoryItemComboBox1.Items.Add(item); |
| | | // } |
| | | repositoryItemComboBoxSql.Items.Clear(); |
| | | repositoryItemComboBoxSql.Items.Add("1"); |
| | | repositoryItemComboBoxSql.Items.Add("1"); |
| | | repositoryItemComboBoxSql.Items.Add("1"); |
| | | var _obj = new |
| | | { |
| | | formPath = this._fullName, |
| | | colArray = _colList |
| | | list = new List<dynamic>(), |
| | | }; |
| | | foreach (GridColumn col in _columns) |
| | | { |
| | | _obj.list.Add(new { |
| | | colName= col.Name.ToString(), |
| | | colCap=col.Caption |
| | | }); |
| | | } |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |