提交代码
This commit is contained in:
@@ -79,13 +79,17 @@ namespace FineUIPro.Web.CQMS.Performance
|
||||
var CreateDateWeek = db.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid).CreateDateMonth;
|
||||
|
||||
var datesConfig = Convert.ToDateTime(CreateDateMonth);
|
||||
var Year = datesConfig.Year;
|
||||
var Month = 1;
|
||||
if (datesConfig.Month != 12)
|
||||
{
|
||||
Month = datesConfig.Month + 1;
|
||||
}
|
||||
else {
|
||||
Year += 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 == Year.ToString() && x.SortIndex == Month);
|
||||
List<CustomClass> myList = new List<CustomClass>();
|
||||
myList.Add(new CustomClass("1", "第一周"));
|
||||
myList.Add(new CustomClass("2", "第二周"));
|
||||
|
||||
Reference in New Issue
Block a user