Commit 49a395a5 by wuwenlong

项目立项修改BUGFIX;

parent 7a21ed77
...@@ -131,7 +131,16 @@ public class ServiceHGSC001 extends ServiceBase { ...@@ -131,7 +131,16 @@ public class ServiceHGSC001 extends ServiceBase {
* *
* @param hgsc001 * @param hgsc001
*/ */
private void checkSaveData(HGSC001 hgsc001) { private void checkSaveData(HGSC001 hgsc001) throws InstantiationException, IllegalAccessException {
if(Objects.nonNull(hgsc001.getId())&&hgsc001.getId()>0){
EiInfo inInfo = new EiInfo();
EiInfoUtils.addBlock(inInfo,EiConstant.queryBlock, new HGSC001(){{setId(hgsc001.getId());}}, HGSC001.class);
inInfo = super.query(inInfo,HGSC001.QUERY,new HGSC001());
Map resultMap = EiInfoUtils.getFirstRow(inInfo,EiConstant.resultBlock);
HGSC001 oldHgsc001 = new HGSC001();
oldHgsc001.fromMap(resultMap);
AssertUtils.isTrue(oldHgsc001.getApprovalStatus()== CommonConstant.YesNo.NO_0,"项目已提交不可修改!");
}
AssertUtils.isEmpty(UserSessionUtils.getAccountCode(), "当前用户未绑定公司,无法操作数据,请联系管理员!"); AssertUtils.isEmpty(UserSessionUtils.getAccountCode(), "当前用户未绑定公司,无法操作数据,请联系管理员!");
AssertUtils.isEmpty(UserSessionUtils.getOrgId(), "当前用户未绑定部门,无法操作数据,请联系管理员!"); AssertUtils.isEmpty(UserSessionUtils.getOrgId(), "当前用户未绑定部门,无法操作数据,请联系管理员!");
AssertUtils.isEmpty(hgsc001.getCompanyCode(), "请选择公司!"); AssertUtils.isEmpty(hgsc001.getCompanyCode(), "请选择公司!");
......
...@@ -95,6 +95,10 @@ function update() { ...@@ -95,6 +95,10 @@ function update() {
message("请选择一条需要修改的数据"); message("请选择一条需要修改的数据");
return; return;
} }
if(row[0].approvalStatus>0){
message("项目已提交不可修改!");
return;
}
let id = rows[0].id; let id = rows[0].id;
JSColorbox.open({ JSColorbox.open({
href: "HGSC001U??methodName=initLoad&inqu_status-0-id=" + id + "&efParentFormEname=HGSC001", href: "HGSC001U??methodName=initLoad&inqu_status-0-id=" + id + "&efParentFormEname=HGSC001",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment