diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index a0002477..8b1f9512 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/CoEPALController.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/CoEPALController.java index 4f5b6ce6..2df2017d 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/CoEPALController.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/CoEPALController.java @@ -3119,9 +3119,16 @@ public class CoEPALController { * @author zhaolei */ @Mapping("com.actionsoft.apps.coe.pal_pl_repository_designer_checkname") + public String checkCreatePalProcessLevelRepository(UserContext me, String title, String method) { + CoeProcessLevelWeb web = new CoeProcessLevelWeb(me); + return web.checkCreatePalProcessLevelRepository(title, method); + } + + + @Mapping("com.actionsoft.apps.coe.pal_pl_repository_designer_checknameByuuid") public String checkCreatePalProcessLevelRepository(UserContext me, String title, String method,String uuid) { CoeProcessLevelWeb web = new CoeProcessLevelWeb(me); - return web.checkCreatePalProcessLevelRepository(title, method,uuid); + return web.checkCreatePalProcessLevelRepositoryByuuid(title, method,uuid); } /** diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index d0826b86..7e92d8c3 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -8673,7 +8673,21 @@ public class CoeProcessLevelWeb extends ActionWeb { * @return * by zhaolei */ - public String checkCreatePalProcessLevelRepository(String title,String method,String ruuid){ + public String checkCreatePalProcessLevelRepository(String title,String method){ + ResponseObject ro = ResponseObject.newOkResponse(); + RowMap rowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND PLMETHODID=?",title,method); + if(rowMap!=null){ + ro.put("result","error"); + }else{ + ro.put("result","ok"); + } + return ro.toString(); + + } + + + + public String checkCreatePalProcessLevelRepositoryByuuid(String title,String method,String ruuid){ ResponseObject ro = ResponseObject.newOkResponse(); RowMap plversionIdrowMap=DBSql.getMap("SELECT PLVERSIONID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND PLMETHODID=?",title,method); if(plversionIdrowMap!=null){ @@ -8695,8 +8709,6 @@ public class CoeProcessLevelWeb extends ActionWeb { } - - /** * 根据用户选择类型创建相应制度图形 * @param type diff --git a/com.actionsoft.apps.coe.pal/template/page/main.htm b/com.actionsoft.apps.coe.pal/template/page/main.htm index f10bf9b7..6b42fe24 100644 --- a/com.actionsoft.apps.coe.pal/template/page/main.htm +++ b/com.actionsoft.apps.coe.pal/template/page/main.htm @@ -13,4 +13,4 @@ var mainType = "<#mainType>"; var uid = "<#uid>"; var wHref = "./w"; - var jdHref = "./jd";