| | |
| | | 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> |
| | |
| | | var rowhandle = gvMx1.FocusedRowHandle; |
| | | //if (rowhandle < 0) |
| | | // return; |
| | | int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; |
| | | int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; |
| | | //if (_drhzlx <= 0) |
| | | //{ |
| | | // MsgHelper.Warning("提示:请先选择调入货主类型!"); |