修改绩效考核

This commit is contained in:
2023-10-30 16:30:10 +08:00
parent 31cf6d6508
commit b0f60f4a58
2 changed files with 22 additions and 5 deletions
@@ -468,14 +468,18 @@ namespace FineUIPro.Web.CQMS.Performance
#endregion
var datesConfig = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
var Month = 1;
var nowYear = datesConfig.Year;
if (datesConfig.Month != 12)
{
Month = datesConfig.Month+ 1;
Month = datesConfig.Month + 1;
}
else {
nowYear += 1;
}
var Child2SortIndex = 1;
//按照日期查询是否有设置
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == datesConfig.Year.ToString() && x.SortIndex == Month);
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == nowYear.ToString() && x.SortIndex == Month);
if (modelConfig!=null)
{
//根据设置的周数插入表格CQMS_Performance_Child2