修改绩效考核
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user