提交代码
This commit is contained in:
@@ -109,7 +109,16 @@ namespace FineUIPro.Web.CQMS.Performance
|
||||
}
|
||||
}
|
||||
//根据projectid加载CQMS_Performance表中成功的user数据
|
||||
BLL.PerformanceService.InitUserDropDownList(drpUser, CurrUser.LoginProjectId, true);
|
||||
//超级管理员
|
||||
if (CurrUser.UserId != Const.sysglyId && CurrUser.UserId != Const.hfnbdId)
|
||||
{
|
||||
BLL.PerformanceService.InitUserDropDownListByUser(drpUser, CurrUser.LoginProjectId,CurrUser.UserId, true);
|
||||
}
|
||||
else {
|
||||
BLL.PerformanceService.InitUserDropDownList(drpUser, CurrUser.LoginProjectId, true);
|
||||
}
|
||||
|
||||
|
||||
CreateUser = Request.QueryString["CreateUser"];
|
||||
if (!string.IsNullOrEmpty(CreateUser))
|
||||
{
|
||||
@@ -144,13 +153,17 @@ namespace FineUIPro.Web.CQMS.Performance
|
||||
{
|
||||
var NowDate = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
|
||||
var Month = 1;
|
||||
var Year = NowDate.Year;
|
||||
if (NowDate.Month != 12)
|
||||
{
|
||||
Month = NowDate.Month + 1;
|
||||
}
|
||||
else {
|
||||
Year += 1;
|
||||
}
|
||||
|
||||
//获取配置
|
||||
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == NowDate.Year.ToString() && x.SortIndex == Month);
|
||||
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
|
||||
if (modelConfig != null)
|
||||
{
|
||||
int child3Index = 1;
|
||||
@@ -1095,12 +1108,16 @@ namespace FineUIPro.Web.CQMS.Performance
|
||||
//获取周数
|
||||
var NowDate = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
|
||||
var Month = 1;
|
||||
var Year = NowDate.Year;
|
||||
if (NowDate.Month != 12)
|
||||
{
|
||||
Month = NowDate.Month + 1;
|
||||
}
|
||||
else {
|
||||
Year += 1;
|
||||
}
|
||||
|
||||
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == NowDate.Year.ToString() && x.SortIndex == Month);
|
||||
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
|
||||
|
||||
for (int i = 0; i < listChild1.Count; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user