代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -215,7 +215,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
return;
|
||||
}
|
||||
|
||||
var getNMonthReport = Funs.DB.SeDin_MonthReport.FirstOrDefault(x =>x.ProjectId == this.CurrUser.LoginProjectId && x.States != Const.State_3);
|
||||
var getNMonthReport = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.States != Const.State_3);
|
||||
if (getNMonthReport != null)
|
||||
{
|
||||
Alert.ShowInTop("存在未完成月报,请先办理完成!", MessageBoxIcon.Warning);
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
SetStep();
|
||||
if (string.IsNullOrEmpty(this.MonthReportId))
|
||||
{
|
||||
ReporMonth.Text= Request.Params["Month"];
|
||||
ReporMonth.Text = Request.Params["Month"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1446,12 +1446,14 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
protected void MonthWorkTime_Blur(object sender, EventArgs e)
|
||||
{
|
||||
var monthWorkTimeValue = Funs.GetNewDecimalOrZero(this.MonthWorkTime.Text);
|
||||
decimal hdYearWorkTimeValue =0;
|
||||
decimal hdSafeWorkTimeValue =0;
|
||||
DateTime month=Funs.GetNewDateTimeOrNow(this.ReporMonth.Text);
|
||||
decimal hdYearWorkTimeValue = 0;
|
||||
decimal hdSafeWorkTimeValue = 0;
|
||||
DateTime month = Funs.GetNewDateTimeOrNow(this.ReporMonth.Text);
|
||||
|
||||
var getMaxMonthReport = (from x in Funs.DB.SeDin_MonthReport where x.ProjectId == this.ProjectId && x.ReporMonth < month
|
||||
orderby x.ReporMonth descending select x).FirstOrDefault();
|
||||
var getMaxMonthReport = (from x in Funs.DB.SeDin_MonthReport
|
||||
where x.ProjectId == this.ProjectId && x.ReporMonth < month
|
||||
orderby x.ReporMonth descending
|
||||
select x).FirstOrDefault();
|
||||
if (getMaxMonthReport != null)
|
||||
{
|
||||
var getMonthReport2 = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == getMaxMonthReport.MonthReportId);
|
||||
|
||||
Reference in New Issue
Block a user