This commit is contained in:
gaofei
2021-08-13 11:15:59 +08:00
parent 43acc57060
commit d8dff88c39
320 changed files with 37219 additions and 4678 deletions
@@ -26,7 +26,7 @@ namespace FineUIPro.Web.CQMS.DataBase
string standardCode = Request.Params["StandardCode"];
if (!string.IsNullOrEmpty(standardCode))
{
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode),this.CurrUser.LoginProjectId);
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode), this.CurrUser.LoginProjectId);
if (standard != null)
{
this.drpStandardType.SelectedValue = standard.StandardType;
@@ -85,7 +85,7 @@ namespace FineUIPro.Web.CQMS.DataBase
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
this.hdStandardCode.Text = (maxStandardCode + 1).ToString()+this.CurrUser.LoginProjectId;
this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", this.hdStandardCode.Text, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}
@@ -122,6 +122,8 @@ namespace FineUIPro.Web.CQMS.DataBase
if (!string.IsNullOrEmpty(standardCode))
{
newStandard.StandardCode = Convert.ToInt32(standardCode);
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode), this.CurrUser.LoginProjectId);
newStandard.IsChecked = standard.IsChecked;
BLL.ConstructionStandardListProjectService.UpdateConstructionStandardListProject(newStandard);
}
else
@@ -132,12 +134,13 @@ namespace FineUIPro.Web.CQMS.DataBase
//}
//else
//{
int maxStandardCode = 0;
if (BLL.ConstructionStandardListProjectService.GetCountConstructionStandardListProject(this.CurrUser.LoginProjectId) != 0)
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
newStandard.StandardCode = maxStandardCode + 1;
int maxStandardCode = 0;
if (BLL.ConstructionStandardListProjectService.GetCountConstructionStandardListProject(this.CurrUser.LoginProjectId) != 0)
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
newStandard.StandardCode = maxStandardCode + 1;
newStandard.IsChecked = true;
//}
BLL.ConstructionStandardListProjectService.AddConstructionStandardListProject(newStandard);
}