/// <summary> /// 注册高级查询按钮事件 /// </summary> /// <param name="advanceSearchMethod"></param> /// <param name="pageSortOrderSearchMethod"></param> private void RegisterAdvanceSearch(DelegateCustomMethod advanceSearchMethod, DelegateCustomMethod pageSortOrderSearchMethod) { AdvanceSearchMethod = advanceSearchMethod; PageSortOrderSearchMethod = pageSortOrderSearchMethod; CloseLocalSort(); }
/// <summary> /// 加载和保存界面grid风格 /// 1、包含菜单项:高级查询、列配置、行号、行高 /// 2、包含分页字段排序查询方法(不包含高级查询) /// </summary> /// <param name="barManager">barManager</param> /// <param name="moduleName">模块名称</param> /// <param name="pageSortOrderSearchMethod">分页字段排序查询委托事件</param> /// <param name="getPageSizeMethod">每页记录数</param> /// <param name="getTotalRecordCountMethod">总记录数</param> public void LoadGridLayout(BarManager barManager, string moduleName, DelegateCustomMethod pageSortOrderSearchMethod, DelegateCustomGetMethod getPageSizeMethod, DelegateCustomGetMethod getTotalRecordCountMethod) { GetPageSizeMethod = getPageSizeMethod; GetTotalRecordCountMethod = getTotalRecordCountMethod; RegisterAdvanceSearch(null, pageSortOrderSearchMethod); LoadGridLayout(barManager, moduleName); }
/// <summary> /// 加载和保存界面grid风格 /// 1、包含菜单项:高级查询、列配置、行号、行高 /// 2、包含高级查询方法 /// </summary> /// <param name="barManager">barManager</param> /// <param name="moduleName">模块名称</param> /// <param name="advanceSearchMethod">高级查询委托事件</param> public void LoadGridLayout(BarManager barManager, string moduleName, DelegateCustomMethod advanceSearchMethod) { RegisterAdvanceSearch(advanceSearchMethod, null); LoadGridLayout(barManager, moduleName); }