提交代码
This commit is contained in:
@@ -103,7 +103,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
drpQuarters.SelectedValue = quarters;
|
drpQuarters.SelectedValue = quarters;
|
||||||
drpYear.SelectedValue = year;
|
drpYear.SelectedValue = year;
|
||||||
txtFillingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
txtFillingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
txtDutyPerson.Text = this.CurrUser.UserName;
|
txtDutyPerson.Text = this.CurrUser.PersonName;
|
||||||
//增加明细集合
|
//增加明细集合
|
||||||
GetNewItems(year, quarters);
|
GetNewItems(year, quarters);
|
||||||
this.Grid1.DataSource = items;
|
this.Grid1.DataSource = items;
|
||||||
@@ -1219,7 +1219,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
{
|
{
|
||||||
report.ArchitectureReportId = SQLHelper.GetNewID(typeof(Model.Environmental_ArchitectureReport));
|
report.ArchitectureReportId = SQLHelper.GetNewID(typeof(Model.Environmental_ArchitectureReport));
|
||||||
report.UpState = BLL.Const.UpState_2;
|
report.UpState = BLL.Const.UpState_2;
|
||||||
report.FillingMan = this.CurrUser.UserName;
|
report.FillingMan = this.CurrUser.PersonName;
|
||||||
BLL.ArchitectureReportService.AddArchitectureReport(report);
|
BLL.ArchitectureReportService.AddArchitectureReport(report);
|
||||||
BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Quarters.ToString(), report.ArchitectureReportId, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnAdd);
|
BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Quarters.ToString(), report.ArchitectureReportId, BLL.Const.ArchitectureReportMenuId, BLL.Const.BtnAdd);
|
||||||
}
|
}
|
||||||
@@ -1434,7 +1434,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private void GetButtonPower()
|
private void GetButtonPower()
|
||||||
{
|
{
|
||||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ArchitectureReportMenuId);
|
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.ArchitectureReportMenuId);
|
||||||
if (buttonList.Count() > 0)
|
if (buttonList.Count() > 0)
|
||||||
{
|
{
|
||||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||||
@@ -1472,9 +1472,9 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
newArchitectureReport.UnitId = this.drpUnit.SelectedValue;
|
newArchitectureReport.UnitId = this.drpUnit.SelectedValue;
|
||||||
newArchitectureReport.Year = Convert.ToInt32(this.drpYear.SelectedValue);
|
newArchitectureReport.Year = Convert.ToInt32(this.drpYear.SelectedValue);
|
||||||
newArchitectureReport.Quarters = Convert.ToInt32(this.drpQuarters.SelectedValue);
|
newArchitectureReport.Quarters = Convert.ToInt32(this.drpQuarters.SelectedValue);
|
||||||
newArchitectureReport.FillingMan = this.CurrUser.UserName;
|
newArchitectureReport.FillingMan = this.CurrUser.PersonName;
|
||||||
newArchitectureReport.FillingDate = DateTime.Now;
|
newArchitectureReport.FillingDate = DateTime.Now;
|
||||||
newArchitectureReport.DutyPerson = this.CurrUser.UserName;
|
newArchitectureReport.DutyPerson = this.CurrUser.PersonName;
|
||||||
newArchitectureReport.UpState = BLL.Const.UpState_2;
|
newArchitectureReport.UpState = BLL.Const.UpState_2;
|
||||||
BLL.ArchitectureReportService.AddArchitectureReport(newArchitectureReport);
|
BLL.ArchitectureReportService.AddArchitectureReport(newArchitectureReport);
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
drpMonth.SelectedValue = months;
|
drpMonth.SelectedValue = months;
|
||||||
drpYear.SelectedValue = year;
|
drpYear.SelectedValue = year;
|
||||||
txtFillingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
txtFillingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
txtDutyPerson.Text = this.CurrUser.UserName;
|
txtDutyPerson.Text = this.CurrUser.PersonName;
|
||||||
//增加明细集合
|
//增加明细集合
|
||||||
GetNewItems(year, months);
|
GetNewItems(year, months);
|
||||||
this.Grid1.DataSource = items;
|
this.Grid1.DataSource = items;
|
||||||
@@ -1841,7 +1841,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
{
|
{
|
||||||
report.ChemicalReportId = SQLHelper.GetNewID(typeof(Model.Environmental_ChemicalReport));
|
report.ChemicalReportId = SQLHelper.GetNewID(typeof(Model.Environmental_ChemicalReport));
|
||||||
report.UpState = BLL.Const.UpState_2;
|
report.UpState = BLL.Const.UpState_2;
|
||||||
report.FillingMan = this.CurrUser.UserName;
|
report.FillingMan = this.CurrUser.PersonName;
|
||||||
BLL.ChemicalReportService.AddChemicalReport(report);
|
BLL.ChemicalReportService.AddChemicalReport(report);
|
||||||
BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Month.ToString(), report.ChemicalReportId, BLL.Const.ProjectChemicalReportMenuId, BLL.Const.BtnAdd);
|
BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Month.ToString(), report.ChemicalReportId, BLL.Const.ProjectChemicalReportMenuId, BLL.Const.BtnAdd);
|
||||||
}
|
}
|
||||||
@@ -2056,7 +2056,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private void GetButtonPower()
|
private void GetButtonPower()
|
||||||
{
|
{
|
||||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectChemicalReportMenuId);
|
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.ProjectChemicalReportMenuId);
|
||||||
if (buttonList.Count() > 0)
|
if (buttonList.Count() > 0)
|
||||||
{
|
{
|
||||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||||
@@ -2094,9 +2094,9 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
|||||||
newChemicalReport.UnitId = this.drpUnit.SelectedValue;
|
newChemicalReport.UnitId = this.drpUnit.SelectedValue;
|
||||||
newChemicalReport.Year = Convert.ToInt32(this.drpYear.SelectedValue);
|
newChemicalReport.Year = Convert.ToInt32(this.drpYear.SelectedValue);
|
||||||
newChemicalReport.Month = Convert.ToInt32(this.drpMonth.SelectedValue);
|
newChemicalReport.Month = Convert.ToInt32(this.drpMonth.SelectedValue);
|
||||||
newChemicalReport.FillingMan = this.CurrUser.UserName;
|
newChemicalReport.FillingMan = this.CurrUser.PersonName;
|
||||||
newChemicalReport.FillingDate = DateTime.Now;
|
newChemicalReport.FillingDate = DateTime.Now;
|
||||||
newChemicalReport.DutyPerson = this.CurrUser.UserName;
|
newChemicalReport.DutyPerson = this.CurrUser.PersonName;
|
||||||
newChemicalReport.UpState = BLL.Const.UpState_2;
|
newChemicalReport.UpState = BLL.Const.UpState_2;
|
||||||
BLL.ChemicalReportService.AddChemicalReport(newChemicalReport);
|
BLL.ChemicalReportService.AddChemicalReport(newChemicalReport);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user