feat: 优化初始化缓存及控件功能
This commit is contained in:
@@ -473,6 +473,7 @@ namespace Lskj.PubBill
|
||||
Task<MyControl> controlObjTask = cachesDic.AddTask(this, "ControlObj", new Task<MyControl>(() =>
|
||||
{
|
||||
MyControl myControl = new MyControl() { Model = dynamicModel };
|
||||
myControl.MrpClickMenus = new DataTable();
|
||||
myControl.OtherParams = dynamicModel.OtherParams();
|
||||
cachesDic.AddTask(myControl, "DynamicModel", dynamicModelTask);
|
||||
cachesDic.AddTask(myControl, "ControlsTable", controlLocationTask);
|
||||
@@ -688,6 +689,7 @@ namespace Lskj.PubBill
|
||||
string searchSql = model.SourceType == 1 ? Regex.Replace(model.DetailSql, "{speciesno}", "", RegexOptions.IgnoreCase) : model.SourceSql;
|
||||
searchControl = new MyControl(searchSql, gridControl == null ? gridDetail : gridControl, treeView);
|
||||
searchControl.Model = dynamicModel;
|
||||
searchControl.MrpClickMenus = new DataTable();
|
||||
searchControl.OtherParams = dynamicModel.OtherParams();
|
||||
cachesDic.AddTask(searchControl, "DynamicModel", dynamicModelTask);
|
||||
cachesDic.AddTask(searchControl, "ControlsTable", customQueryFieldsTask);
|
||||
@@ -975,7 +977,7 @@ namespace Lskj.PubBill
|
||||
}
|
||||
if (this.BillModel.CanImport)
|
||||
{
|
||||
this.pmBillExp.AddItems(new BarItem[] { _itemImport, _itemImportUpdate });
|
||||
this.pmBillExp.AddItems(new BarItem[] { _itemImport });//_itemImportUpdate
|
||||
}
|
||||
//分配
|
||||
this.pmFP.AddItems(new BarItem[] { itemFPBatch });
|
||||
|
||||
Reference in New Issue
Block a user