集团主数据

This commit is contained in:
2026-05-21 15:58:21 +08:00
parent 225f83a88d
commit f91ad2ca45
14 changed files with 850 additions and 130 deletions
+33
View File
@@ -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
}
}