集团主数据
This commit is contained in:
@@ -798,6 +798,36 @@
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取集团主数据项目
|
||||
|
||||
/// <summary>
|
||||
/// 获取主数据项目【新的主数据表】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Ads_pms_pro_info_build> GetMasterProjectDataInfos()
|
||||
{
|
||||
var thisUnit = CommonService.GetIsThisUnit();
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>()
|
||||
{
|
||||
{"collCropCode", thisUnit.CollCropCode}
|
||||
};
|
||||
//var cacheKey = "MasterDataProjects";
|
||||
//if (CacheHelper.Exists(cacheKey))
|
||||
//{
|
||||
// return CacheHelper.Get<List<Model.Ads_pms_pro_info_build>>(cacheKey);
|
||||
//}
|
||||
List<Ads_pms_pro_info_build> projectlist = new List<Ads_pms_pro_info_build>();
|
||||
var returnData = ServerService.GerDataFromCncec("/api/Common/GetMasterProjectDataByCollCropCode", dic, null);
|
||||
if (returnData != null && returnData.code == 1)
|
||||
{
|
||||
projectlist = JsonConvert.DeserializeObject<List<Ads_pms_pro_info_build>>(returnData.data.ToString());
|
||||
//CacheHelper.Add(cacheKey, projectlist, DateTimeOffset.Now.AddDays(2));
|
||||
}
|
||||
|
||||
return projectlist;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取主数据项目
|
||||
/// </summary>
|
||||
@@ -851,5 +881,8 @@
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user