0813
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user