| | |
| | | var rtn = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = rtn.rtnData.list; |
| | | this.repositoryItemSearchLookUpEdit1.DataSource = dt; |
| | | // repositoryItemSearchLookUpEdit1.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
| | | // repositoryItemSearchLookUpEdit1.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
| | | //Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView2); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | }; |
| | | |
| | | this.gvMx1.InitNewRow += (s, e) => { |
| | | this.gvMx1.InitNewRow += (s, e) => |
| | | { |
| | | string _orgId = txt_fapporgid.GetId(); |
| | | string _orgName= txt_fapporgid.GetName(); |
| | | string _orgName = txt_fapporgid.GetName(); |
| | | if (string.IsNullOrEmpty(_orgId)) return; |
| | | |
| | | gvMx1.SetFocusedRowCellValue("dcOrg", _orgName); |
| | | gvMx1.SetFocusedRowCellValue("dcOrgGuid", _orgId); |
| | | gvMx1.SetFocusedRowCellValue("drOrg", _orgName); |
| | |
| | | gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; |
| | | gridView1.ActiveFilter.Clear(); |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | frm.UpdateParent += Frm_UpdateParent; |
| | | frm.ShowDialog(); |
| | | } |
| | |
| | | { |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl( splitMx1.Panel1.Controls, true, gvList); |
| | | UtilityHelper.ChangeEnableByControl(splitMx1.Panel1.Controls, true, gvList); |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | gridViews.Add(gvMx1); |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | //增加时,默认组织 |
| | | string deftOrg = UtilityHelper.GetFirstOrg(txt_fapporgid); |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 保存事件 |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | gcMain1.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | var rowhandle = gvMx1.FocusedRowHandle; |
| | | //if (rowhandle < 0) |
| | | // return; |
| | | int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; |
| | | int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; |
| | | //if (_drhzlx <= 0) |
| | | //{ |
| | | // MsgHelper.Warning("提示:请先选择调入货主类型!"); |