Вы находитесь на странице: 1из 41

<%-Author(s): Nguyen Duy Thinh Date: 29/05/2012 Description: Page for setting of user profile Modificaton: refactoring --%>

<%@page import="com.tessi.bmd.db.entities.WorkflowImage"%> <%@page import="com.tessi.bmd.db.entities.WorkflowModuleSpecific"%> <%@page import="com.tessi.bmd.db.entities.enums.VidocFeature"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64"%> <%@page import="java.util.List"%> <%@page import="java.util.ArrayList"%> <%@page <%@page <%@page <%@page <%@page <%@page <%@page <%@page <%@page <%@page <%@page <%@page import="com.tessi.struts.tag.ColumnDef"%> import="com.tessi.struts.tag.YuiTable"%> import="com.tessi.struts.tag.YuiButton"%> import="com.tessi.translation.Translation"%> import="com.tessi.bmd.db.entities.Workflow"%> import="com.tessi.bmd.db.entities.WorkflowImage"%> import="com.tessi.bmd.db.entities.TaskType"%> import="com.tessi.bmd.db.entities.RequestType"%> import="com.tessi.bmd.db.entities.TaskFeature"%> import="com.tessi.bmd.web.bean.ImageAndLabel"%> import="com.tessi.bmd.web.bean.ButtonInTable"%> import="com.tessi.bmd.web.bean.CheckboxInTable"%>

<%@page import="com.tessi.bmd.web.bean.TableLine"%> <%@page import="com.tessi.bmd.bosadmin.action.UserFieldTable"%> <%@page import="com.tessi.bmd.bosadmin.action.TeamMemberTable"%> <jsp:useBean id="profile" class="com.tessi.bmd.db.entities.UserRightProfile" scope="request" /> <%@page import="com.tessi.bmd.db.entities.User"%> <%@page import="com.tessi.bmd.db.entities.Team"%> <%@page import="com.tessi.bmd.db.entities.TeamMember"%> <%@page import="com.tessi.bmd.db.entities.UserRightProfileCenter"%> <%@page import="com.tessi.bmd.db.entities.UserRightProfileWorkflow"%> <%@page import="com.tessi.bmd.db.entities.Center"%> <%@page import="com.tessi.bmd.bosadmin.action.Settingsuserprofile.CenterTable"%> <%@page import="com.tessi.bmd.bosadmin.action.Settingsuserprofile.WorkflowTable" %> <%@page import="com.tessi.bmd.bosadmin.action.Settingsuserprofile"%> <%@page import="com.tessi.bmd.db.entities.WorkflowModule"%> <%@page import="com.tessi.bmd.db.entities.enums.ModuleRightName"%> <%@page import="com.tessi.bmd.db.entities.enums.Module"%> <%@page import="com.tessi.bmd.db.entities.ModuleRight"%> <%@page import="java.util.Map"%> <%@page import="com.tessi.bmd.bosadmin.action.Settingsuserprofile.WorkflowTable" %> <%@page import="com.tessi.bmd.db.entities.enums.WorkerNature"%> <%@page import="com.tessi.bmd.db.entities.UserRightWorkflowTask"%> <%@page import="com.tessi.bmd.web.tag.BmdPanelSearch"%> <%@ taglib prefix="s" uri="/struts-tags"%>

<%@ taglib uri="../../../WEB-INF/tessi.tld" prefix="tessi"%> <%@ taglib uri="../../../WEB-INF/yui.tld" prefix="yui"%> <%@ taglib uri="../../../WEB-INF/bmd.tld" prefix="bmd"%> <% Translation tr = (Translation) request.getAttribute("tr"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="styles/style.css"> <link rel="stylesheet" type="text/css" href="styles/bosadmin/admin_menu.css"> <link rel="stylesheet" type="text/css" href="styles/bosadmin/admin_userprofile.c ss"> <title><%=tr.tr("User profile configuration")%></title> <script type="text/javascript" src="js/bosadmin/admin_UserProfile.js"></script> <script type="text/javascript"> YAHOO.util.Event.addListener(window, "load", function() { //init CRUD system CrudCommon.actionName = "settingsuserprofile" ; CrudCommon.beanName = "profile" ; <% @SuppressWarnings("unchecked") Map<Module, Long> mapModuleId = (Map<Module, Long>) requ est .getAttribute("mapModuleId"); for (Map.Entry<Module, Long> entry : mapModuleId.entrySe t()) {%> UserProfile.idModules["<%=entry.getKey() .name()%>"] = <%=entry.getValue()%> ; <%}%> <% @SuppressWarnings("unchecked") Map<ModuleRightName, Long> mapModuleRightId = (Map<Modul eRightName, Long>) request .getAttribute("mapModuleRightId"); for (Map.Entry<ModuleRightName, Long> entry : mapModuleR ightId .entrySet()) {%> UserProfile.idModuleRights["<%=entry.get Key().name()%>"] = <%=entry.getValue()%> ; <%}%> <% @SuppressWarnings("unchecked") List<TaskType> listTaskTypeId = (List<TaskType>) request .getAttribute("listTaskTypeId"); for (int i = 0; i < listTaskTypeId.size(); i++) { TaskType task = listTaskTypeId.get(i);%> UserProfile.idTaskTypes["<%=task.getCode()%>"] = <%=task.getId()%> ; UserProfile.wfTaskType["<%=task.getCode()%>"] =

<%=task.getWorkflow().getId()%> ; <%}%> <% @SuppressWarnings("unchecked") List<RequestType> listRequestTypeId = (List<RequestType> ) request .getAttribute("listRequestTypeId"); for (int i = 0; i < listRequestTypeId.size(); i++) {%> UserProfile.idRequestTypes["<%="req_" + listRequestTypeId.get(i).getId()%>"] = <%=listRequestTypeId.get(i).getId()%> ; <%}%> <% @SuppressWarnings("unchecked") List<WorkflowModuleSpecific> listSpecific=(List< WorkflowModuleSpecific>)request.getAttribute("listModuleSpecificId"); for(int i=0; i<listSpecific.size(); i++){ %> UserProfile.idSpecific["<%="wms_"+listSpecific.g et(i).getId()%>"] = <%=listSpecific.get(i).getId()%> ; <% } %> YAHOO.util.Event.addListener(Dom.get("profile.maxSimulta neaousConnec"), "keypress", inputNumericOnly); // show confirm redirect if( Dom.get('confirmUser') != null && Dom.get('confirmUs er').value == 'YES' ){ showMessagePanelLink("info", SAVE_SUCCESS, "sett ingsuserprofile.action") ; } UserProfile.parseAll() ; }); </script> </head> <body> <s:form name="form" theme="simple" id="form"> <s:token /> <s:hidden name="profile.id" id="profile.id"></s:hidden> <s:hidden name="profile.code" id="profile.code"></s:hidden> <s:hidden name="fromUser" id="fromUser"></s:hidden> <div class="divContentBanner"> <jsp:include page="../../includes/infoContentBanner.jsp" /> <div id="divInfoPage"> <h1><%=tr.tr("User profile")%></h1> <p class="fontSubTitle"><%=tr.tr("User profile c onfiguration")%></p> </div> </div> <div style="margin-top:-15px"> <table style="margin-top:-10px"> <tr > <td style="width:250px;padding-left:5px"> <%=tr.tr("Profile name")%> <span

class="spanMandatoryMask">&#42;< /span> <s:textfield id="profile.name" name=" profile.name" maxlength="50" /> <bmd:error key="name" /> </td> <td style="width:350px;float:left <% if (profile.getId() != null) { %> ;padding-top:5px <% } %> "><%=tr.tr("Max number of simultaneous c onnections")%> <span class="spanMandatoryMask"> &#42;</span> <s:textfield id="profile.maxSimultane aousConnec" name="profile.maxSimulta neaousConnec" maxlength="4" size="3" /> <bmd:error key="maxSimultaneaousConnec" /> </td> <% if (profile.getId() != null) { %> <td class="tdUserProfileUserAffected"> <s:hidden id="confirmUser" name= "confirmUser"></s:hidden> <span class="fontBold">${numbe rOfUsers} </span> <%=tr.tr("user affected" )%> </td>&nbsp; <td> <yui:button name="btnSeeUsers" label ='<%=tr.tr("List of users")%>' events='<%="click:UserPr ofile.getListUsers(" + profile.getId( ) + ")"%>' /> </td> <% } %> </tr> <tr > <td colspan="4"><bmd:error key="save" /></td> </tr> </table> </div> <hr style="width:1105px"/> <div id="divUserProfileLeftContent"> <% List<Center> listAllCenters = (List<Center>) req

uest.getAttribute("allCenters"); List<WorkflowImage> listAllWorkflowImages = (Lis t<WorkflowImage>) request.getAttribute("allWorkflowImages") ; List<Workflow> listAllWorkflows = (List<Workflow >) request.getAttribute("allWorkflows") ; List<UserRightProfileCenter> listAllUserRightPro fileCenters = (List<UserRightProfileCenter>) request.getAttribute("allUserRightP rofileCenters") ; List<UserRightProfileWorkflow> listAllUserRightP rofileWorkflows = (List<UserRightProfileWorkflow>) request.getAttribute("allUser RightProfileWorkflows") ; %> <div id="div_globalmodulesleft" class="divUserPr ofileImage" style=" background-color: #717BD8;border:1px solid #3216B0;color :white;" onclick="UserProfile.displayContent('div_globalmodulesleft','div_globa lmodules',<%=listAllCenters.size()%>,<%=listAllWorkflowImages.size()%>);"> <img class="imgUserProfile" src="Images/ logoTessi_541_501.png" /> <div class="fontBold"><%=tr.tr("Global m odules")%></div> </div> <% for (int i=0;i<listAllCenters.size();i++) { Center cen = listAllCenters.get(i); %> <div id="div_center<%=i%>left" class="di vUserProfileImage" onclick="UserProfile.displayContent('div_center<%=i%>left','d iv_center<%=i%>',<%=listAllCenters.size()%>,<%=listAllWorkflowImages.size()%>);" > <img class="imgUserProfile" src= "Images/bosaudit/iconDelivery_40_39.png" /><br/> <div class="fontBold"><%=cen.get Name()%></div> </div> <%}%> <% for(int i=0;i<listAllWorkflows.size();i++){ Workflow wf = listAllWorkflows.get(i); for (WorkflowImage wfImage : listAllWorkflowImag es){ if(wf.getId() != null && wf.getId().equa ls(wfImage.getId())){ String encodedImage = Base64.enc ode(wfImage.getImg()); %> <div id="div_workflow<%=i%>left" class="divUserProfileImage" onclick="UserProfile.displayContent('div_workflow<% =i%>left','div_workflow<%=i%>',<%=listAllCenters.size()%>,<%=listAllWorkflowImag es.size()%>);"> <img class="imgUserProfi le" src="data:image/jpg;base64,<%=encodedImage%>" style="width:50px;padding-top: 8px" /><br/> <div class="fontBold"><% =wf.getDesc()%></div> </div> <%}}}%> </div> <div id="divUserProfileRightContent" >

<div id="div_globalmodules" > <table style="width:1000px"> <tr> <td colspan="4"> <div class="divNone"> <yui:table name="listModules" wi dth="450" height="100" columns='<%=ColumnDef.cr eateCols( ColumnDe f.createCol(WorkflowModule.Field.id, "id", 10, 20), ColumnDe f.createCol(WorkflowModule.Field.code, "code", 10, 120) )%>' lines="${profile.listMod ules}" beanClass="<%=WorkflowMo dule.class%>" horizScrolling="true" vertScrolling="true" /> <yui:table name="listModuleRight s" width="450" height="100" columns='<%=ColumnDef.cr eateCols( ColumnDe f.createCol(ModuleRight.Field.id, "id", 10, 20), ColumnDe f.createCol(ModuleRight.Field.name, "name", 10, 200) )%>' lines="${profile.listMod uleRight}" beanClass="<%=ModuleRigh t.class%>" horizScrolling="true" vertScrolling="true" /> <yui:table name="listTasks" widt h="450" height="100" columns='<%=ColumnDef.cr eateCols( ColumnDe f.createCol(TaskType.Field.id, "id", 10, 20), ColumnDe f.createCol(TaskType.Field.code, "code", 10, 50), ColumnDe f.createCol(TaskType.Field.workflow, "workflow", 10, 50) )%>' lines="${taskTypesTable} " beanClass="<%=Settingsus erprofile.WorkflowInnerTable.class%>" horizScrolling="true" ve rtScrolling="true" /> <yui:table name="listRequests" w idth="450" height="100" columns='<%=ColumnDef.cr eateCols( ColumnDe f.createCol(RequestType.Field.id, "id", 10, 20), ColumnDe f.createCol(RequestType.Field.code, "code", 10, 100), ColumnDe

f.createCol(RequestType.Field.workflow, "workflow", 10, 50), ColumnDe f.createHiddenCol("create"), ColumnDe f.createHiddenCol("view"), ColumnDe f.createHiddenCol("answer") )%>' lines="${requestTypesTab le}" beanClass="<%=Settingsus erprofile.WorkflowInnerTable.class%>" horizScrolling="true" ve rtScrolling="true" /> <yui:table name="listSpecific" w idth="450" height="100" columns= '<%=ColumnDef.createCols( ColumnDef.createCol(WorkflowModuleSpecific.Field.id, "id", 10, 20), ColumnDef.createCol(WorkflowModuleSpecific.Field.workflow, "workflow", 10, 20) )%>' lines="${moduleSpecifics Table}" beanClass="<%=Settingsus erprofile.WorkflowInnerTable.class%>" horizScrolling="true" ve rtScrolling="true" /> </div> <h3><%=tr.tr("Global modules")%></h3> </td> </tr> <tr> <td colspan="4"> <hr /> </td> </tr> <tr > <td> <script type="text/javascript"> YAHOO.util.Event.addListener(win dow, "load", function() { UserProfile.setStyleChec kbox('globalright','globalmodule_<%=Module.SETTINGS.name()%>'); }); </script> <input type="checkbox" id="globalmodule_ <%=Module.SETTINGS.name()%>" name="globalmodule_<%=Module.SET TINGS.name()%>" onchange="UserProfile.updateModu leTable(); UserProfile.setStyleCheckbox('gl obalright','globalmodule_<%=Module.SETTINGS.name()%>')"/> <span id="spanglobalmodule_<%=Module.SET TINGS.name()%>"> <%=tr.tr("Access to settings")%></span> <span id="selectall_globalright">

<a class="aTooltipSelectAll" > <img onclick="UserProfil e.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright','globalmodule_<%=Modu le.SETTINGS.name()%>',true)" src="Images/Ico n/iconSelectAll_22_20.png"> <span><%=tr.tr("Select a ll")%></span> </a> <img class="imgVerticalLine" src ="Images/backgroundVerticalLine_190_190.png" > <a class="aTooltipSelectAll" > <img onclick="UserProfil e.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright','globalmodule_<%=Modul e.SETTINGS.name()%>',false)" src="Images/Ico n/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td colspan="4"> <table class="tableUserProfileRight"> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright0')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_CENTER_ADD.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_CENTER_ADD.name()%>" id="spanglobalri ght0"> <%=tr.tr("Create new center")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright1')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_WORKFLOW_ADD.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_WORKFLOW_ADD.name()%>" id="spanglobalri

ght1"> <%=tr.tr("Create new workflow")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright2')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_USERS.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_USERS.name()%>" id="spanglobalri ght2"> <%=tr.tr("Users settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright3')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_WARNINGS.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_WARNINGS.name()%>" id="spanglobalri ght3"> <%=tr.tr("Warnings settings")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright4')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_PARAMETER.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_PARAMETER.name()%>" id="spanglobalri ght4"> <%=tr.tr("Params settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright5')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_PROBLEMS.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright

_<%=ModuleRightName.SETTINGS_PROBLEMS.name()%>" id="spanglobalri ght5"> <%=tr.tr("Problems settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright6')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_POSTCONTRACT.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_POSTCONTRACT.name()%>" id="spanglobalri ght6"> <%=tr.tr("Post contracts settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalrightthuong')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_GTHUONG.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_GTHUONG.name()%>" id="spanglobalri ghtthuong"> <%=tr.tr("Global Thuong Setting")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright7')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_PLUGIN.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_PLUGIN.name()%>" id="spanglobalri ght7"> <%=tr.tr("Plugin settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright8')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_THREAD_MANAGE.name()%>" onchange="UserPr

ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_THREAD_MANAGE.name()%>" id="spanglobalri ght8"> <%=tr.tr("Thread Manage settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright9')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_USERS_PROFIL.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_USERS_PROFIL.name()%>" id="spanglobalri ght9"> <%=tr.tr("User profiles settings")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright10')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_USERS_TEAM.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_USERS_TEAM.name()%>" id="spanglobalri ght10"> <%=tr.tr("User teams settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright11')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_HARDWARE.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_HARDWARE.name()%>" id="spanglobalri ght11"> <%=tr.tr("Hardware settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright12')" name="globalrigh t"

id="globalright_ <%=ModuleRightName.SETTINGS_ARCHIVER.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_ARCHIVER.name()%>" id="spanglobalri ght12"> <%=tr.tr("Archiver settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright13')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_MATCHING_TYPE.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_MATCHING_TYPE.name()%>" id="spanglobalri ght13"> <%=tr.tr("Matching Type settings")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright14')" name="globalrigh t" id="globalright_ <%=ModuleRightName.UPDATER.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.UPDATER.name()%>" id="spanglobalri ght14"> <%=tr.tr("Database updater")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright15')" name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_BMDINSTANCES_ADD.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_BMDINSTANCES_ADD.name()%>" id="spanglobalri ght15"> <%=tr.tr("Instance settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright16')"

name="globalrigh t" id="globalright_ <%=ModuleRightName.SETTINGS_WORKFLOW_WIZARD.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.SETTINGS_WORKFLOW_WIZARD.name()%>" id="spanglobalri ght16"> <%=tr.tr("Workflow wizard")%> </label></td> <td></td> </tr> </table> </td> </tr> <tr > <td colspan="4"> <script type="text/javascript"> YAHOO.util.Event.addListener(win dow, "load", function() { UserProfile.setStyleChec kbox('globalright_pilot','globalmodule_<%=Module.PILOT.name()%>'); }); </script> <input type="checkbox" id="globalmodule_ <%=Module.PILOT.name()%>" onchange="UserProfile.updateModu leTable(); UserProfile.setStyleChec kbox('globalright_pilot','globalmodule_<%=Module.PILOT.name()%>')"/> <span id="spanglobalmodule_<%=Module.PIL OT.name()%>"> <%=tr.tr("Access to pilots")%></span> <span id="selectall_globalright_pilot"> <a class="aTooltipSelectAll" > <img onclick="UserPro file.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright_pilot','globalmodule_<% =Module.PILOT.name()%>',true)" src="Images/Icon /iconSelectAll_22_20.png"> <span><%=tr.tr("Select a ll")%></span> </a> <img class="imgVerticalLine" src ="Images/backgroundVerticalLine_190_190.png" > <a class="aTooltipSelectAll"> <img onclick="UserPro file.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright_pilot','globalmodule_<% =Module.PILOT.name()%>',false)" src="Images/Icon /iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span>

</a> </span> </td> </tr> <tr> <td colspan="4"> <table class="tableUserProfileRight"> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot0')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_PRODUCT.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_PRODUCT.name()%>" id="spanglobalri ght_pilot0"> <%=tr.tr("Production")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot1')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_TASKS.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_TASKS.name()%>" id="spanglobalri ght_pilot1"> <%=tr.tr("Tasks follow-up")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot2')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_TASKSTODO.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_TASKSTODO.name()%>" id="spanglobalri ght_pilot2"> <%=tr.tr("Follow task to do")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot3')" name="globalrigh t_pilot"

id="globalright_ <%=ModuleRightName.PILOT_TRANSFER.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_TRANSFER.name()%>" id="spanglobalri ght_pilot3"> <%=tr.tr("Transfer follow-up")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot4')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_USERTRACK.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_USERTRACK.name()%>" id="spanglobalri ght_pilot4"> <%=tr.tr("User track")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot5')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_EDITION.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_EDITION.name()%>" id="spanglobalri ght_pilot5"> <%=tr.tr("Pilot Edition")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot6')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_PROGRESS.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_PROGRESS.name()%>" id="spanglobalri ght_pilot6"> <%=tr.tr("Progress follow-up")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot7')"

name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_TRANSACTION.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_TRANSACTION.name()%>" id="spanglobalri ght_pilot7"> <%=tr.tr("Task transaction")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot8')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_MATCHING.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_MATCHING.name()%>" id="spanglobalri ght_pilot8"> <%=tr.tr("End day checking")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot9')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_STATISTIC.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_STATISTIC.name()%>" id="spanglobalri ght_pilot9"> <%=tr.tr("Statistics workflow")%> </label></td> </tr> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot10')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_BATCH_MONITORING.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_BATCH_MONITORING.name()%>" id="spanglobalri ght_pilot10"> <%=tr.tr("Batch monitoring")%> </label></td> <td><input type="checkbo x"

onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot11')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_MANUAL_COMPUTE.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_MANUAL_COMPUTE.name()%>" id="spanglobalri ght_pilot11"> <%=tr.tr("Manual compute")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot12')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_WORK_SENDING.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_WORK_SENDING.name()%>" id="spanglobalri ght_pilot12"> <%=tr.tr("Work sending follow-up send")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot13')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_WORK_SENDING_RECEPTION.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_WORK_SENDING_RECEPTION.name()%>" id="spanglobalri ght_pilot13"> <%=tr.tr("Work sending follow-up recept")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_pilot14')" name="globalrigh t_pilot" id="globalright_ <%=ModuleRightName.PILOT_TASKREPARTITION.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.PILOT_TASKREPARTITION.name()%>" id="spanglobalri ght_pilot14"> <%=tr.tr("Task Repartition")%> </label></td> </tr>

</table> </td> </tr> <tr > <td colspan="4"> <script type="text/javascript"> YAHOO.util.Event.addListener(win dow, "load", function() { UserProfile.setStyleChec kbox('globalright_audit','globalmodule_<%=Module.AUDIT.name()%>'); }); </script> <input type="checkbox" id="globalmodule_ <%=Module.AUDIT.name()%>" onchange="UserProfile.updateModu leTable(); UserProfile.setStyleChec kbox('globalright_audit','globalmodule_<%=Module.AUDIT.name()%>')"/> <span id="spanglobalmodule_<%=Module.AUD IT.name()%>"> <%=tr.tr("Access to audits")%></span> <span id="selectall_globalright_audit"> <a class="aTooltipSelectAll" > <img onclick="UserPro file.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright_audit','globalmodule_<% =Module.AUDIT.name()%>',true)" src="Images/Icon /iconSelectAll_22_20.png"> <span><%=tr.tr("Select a ll")%></span> </a> <img class="imgVerticalLine" src ="Images/backgroundVerticalLine_190_190.png" > <a class="aTooltipSelectAll"> <img onclick="UserPro file.updateModuleTable(); UserProfile.setStyleforSelectOrDeselectAll('globalright_audit','globalmodule_<% =Module.AUDIT.name()%>',false)" src="Images/Icon /iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td colspan="4"> <table class="tableUserProfileRight"> <tr> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanglobalright_audit0')"

name="globalrigh t_audit" id="globalright_ <%=ModuleRightName.AUDIT_TRACEABILITY.name()%>" onchange="UserPr ofile.updateModuleTable()" /> <label for="globalright _<%=ModuleRightName.AUDIT_TRACEABILITY.name()%>" id="spanglobalri ght_audit0"> <%=tr.tr("Traceability")%> </label></td> </tr> </table> </td> </tr> <tr > <td colspan="4"><script type="text/javascript"> YAHOO.util.Event.addListener(window, "lo ad", function() { UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.WARNING.name()%>'); }); </script> <input type="checkbox" id="globalmodule_<%=Modul e.WARNING.name()%>" onchange="UserProfile.updateModuleTable( ); UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.WARNING.name()%>')"/> <span id="spanglobalmodule_<%=Module.WARNING.nam e()%>"> <%=tr.tr("Access to warnings")%></span> </td> </tr> <tr > <td colspan="4"><script type="text/javascript"> YAHOO.util.Event.addListener(window, "lo ad", function() { UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.IMPORTS.name()%>'); }); </script> <input type="checkbox" id="globalmodule_<%=Modul e.IMPORTS.name()%>" onchange="UserProfile.updateModuleTable( ); UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.IMPORTS.name()%>')"/> <span id="spanglobalmodule_<%=Module.IMPORTS.nam e()%>"> <%=tr.tr("Access to imports")%></span> </td> </tr> <tr > <td colspan="4"><script type="text/javascript"> YAHOO.util.Event.addListener(window, "lo ad", function() { UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.SPECIFIC_TASK.name()%>'); }); </script> <input type="checkbox" id="globalmodule_<%=Modul

e.SPECIFIC_TASK.name()%>" onchange="UserProfile.updateModuleTable( ); UserProfile.setStyleCheckbox('', 'globalmodule_<%=Module.SPECIFIC_TASK.name()%>')"/> <span id="spanglobalmodule_<%=Module.SPECIFIC_TA SK.name()%>"> <%=tr.tr("Access to specific mod ule")%></span> </td> </tr> </table> </div> <div class="divNone"> <yui:table name="listCenters" width="450" height="100" columns='<%=ColumnDef.createCols( ColumnDef.create Col(CenterTable.Field.id, "id", 10, 20), ColumnDef.create Col(CenterTable.Field.code, "code", 10, 20), ColumnDef.create Col(CenterTable.Field.center, "center", 10, 20), ColumnDef.create Col(CenterTable.Field.modRECEPTION1, "recep1", 10, 20), ColumnDef.create Col(CenterTable.Field.rightRECEPTION1_MODIFY, "modifDel", 10, 20), ColumnDef.create Col(CenterTable.Field.rightRECEPTION1_DEL, "suppDel", 10, 20), ColumnDef.create Col(CenterTable.Field.rightSETTINGS_CENTER_MODIF, "settingsCenter", 10, 20), ColumnDef.create Col(CenterTable.Field.rightSETTINGS_CENTER_MSG, "settingsRecep1", 10, 20), ColumnDef.create Col(CenterTable.Field.rightSETTINGS_RECEP1, "settingsCenterMsg", 10, 20) , ColumnDef.create Col(CenterTable.Field.rightSETTINGS_CTHUONG, "settingsCenterThuong", 10, 20) )%>' lines="${centerTable}" beanClass="<%=Settingsuserprofile.CenterTable.cl ass%>" horizScrolling="true" vertScrolling="true" /> </div> <% for (int i=0;i<listAllCenters.size();i++) { int value =0; Center cen = listAllCenters.get(i); %> <div id="div_center<%=i%>" style="display:none"> <table style="width:1000px"> <tr> <td> <h3><%=tr.tr("Center")%> <%=cen.getName( )%></h3> </td> </tr> <tr> <td colspan="4"> <hr />

</td> </tr> <tr> <td> <% for(int j=0;j<listAllUserRightPr ofileCenters.size();j++) if( profile.getId() != null && cen.getId() != null && profi le.getId().equals(listAllUserRightProfileCenters.get(j).getProfile().getId()) && cen.g etId().equals(listAllUserRightProfileCenters.get(j).getCenter().getId())) value =1; %> <input type="checkbox" id="checkbox_cent er<%=i%>" <% if(value==1){ %>checked="checked"<%} %> onclick="UserProfile.displ ayRight('center','<%=i%>','cen_<%=cen.getId()%>','<%=cen.getId()%>')" /><%=tr.tr ("Have access to this center")%> </td> </tr> <tr> <td colspan="4"> <hr /> </td> </tr> <tbody id="tbody_center<%=i%>" <%if(value==0){%> style=" display:none" <%}%> > <tr id="cen_<%=cen.getId()%>"> <td colspan="4"> <table> <tr> <script type="text/javas cript"> UserProfile.cent ersId[UserProfile.centersId.length] = "<%=cen.getId()%>"; </script> <td> <span class="fon tBold" style="padding-left:25px"><%=tr.tr("Access to configuration")%></span> <a class="aToolt ipSelectAll" > <img onclick="UserProfile.setStyleAllCheckboxCenter('<%=cen.getId()%>',true); UserProfile.updateCenter('<%=cen.getId()%>',true)" src="Images/Icon/iconSelectAll_22_20.png"> <span><% =tr.tr("Select all")%></span> </a> <img class="imgV erticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class="aToolt ipSelectAll"> <img onclick="UserProfile.setStyleAllCheckboxCenter('<%=cen.getId()%>',false);

UserProfile.updateCenter('<%=cen.getId()%>',false)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><% =tr.tr("Unselect all")%></span> </a> </td> </tr> <table class="tableUserProfileRi ght"> <tr > <td><input type= "checkbox" onclick= "UserProfile.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION 13')" name="ce n_<%=cen.getId()%>_rightRECEPTION2" id="cen_ <%=cen.getId()%>_rightSETTINGS_CENTER_MODIF" onchange ="UserProfile.updateCenterTable('<%=cen.getId()%>')" /> <label f or="cen_<%=cen.getId()%>_rightSETTINGS_CENTER_MODIF" id="span cen_<%=cen.getId()%>_rightRECEPTION13"> <%=tr.tr("Center configuration")%> </label></td> <td><input type= "checkbox" onclick= "UserProfile.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION 14')" name="ce n_<%=cen.getId()%>_rightRECEPTION2" id="cen_ <%=cen.getId()%>_rightSETTINGS_CENTER_MSG" onchange ="UserProfile.updateCenterTable('<%=cen.getId()%>')" /> <label f or="cen_<%=cen.getId()%>_rightSETTINGS_CENTER_MSG" id="span cen_<%=cen.getId()%>_rightRECEPTION14"> <%=tr.tr("Edition of center message")%> </label></td> <td><input type= "checkbox" onclick= "UserProfile.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION THUONG')" name="ce n_<%=cen.getId()%>_rightRECEPTION2" id="cen_ <%=cen.getId()%>_rightSETTINGS_CTHUONG" onchange ="UserProfile.updateCenterTable('<%=cen.getId()%>')" /> <label f or="cen_<%=cen.getId()%>_rightSETTINGS_CTHUONG" id="span cen_<%=cen.getId()%>_rightRECEPTIONTHUONG"> <%=tr.tr("Thuong center setting")%> </label></td>

</tr> </table> <%-- Module reception1 --%> <tr > <td > <input type="che ckbox" id="cen_<%=cen.getId()%>_modRECEPTION1" name="ce n_<%=cen.getId()%>_modRECEPTION1" onchange ="UserProfile.updateCenterTable('<%=cen.getId()%>'); UserProf ile.setStyleCheckbox('cen_<%=cen.getId()%>_rightRECEPTION1','cen_<%=cen.getId()% >_modRECEPTION1')"/> <span id="spance n_<%=cen.getId()%>_modRECEPTION1"> <%=tr.tr("Access to reception1")%></span> <span id="select all_cen_<%=cen.getId()%>_rightRECEPTION1"> <a class ="aTooltipSelectAll" > <img onclick="UserProfile.setStyleforSelectOrDeselectAll('cen_<%=cen.getId()%>_rightR ECEPTION1','cen_<%=cen.getId()%>_modRECEPTION1',true); UserProfile.updateCenterTable('<%=cen.getId()%>')" src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img cla ss="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class ="aTooltipSelectAll"> <img onclick="UserProfile.setStyleforSelectOrDeselectAll('cen_<%=cen.getId()%>_rightR ECEPTION1','cen_<%=cen.getId()%>_modRECEPTION1',false); UserProfile.updateCenterTable('<%=cen.getId()%>');" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION10')" name="cen_<%=cen .getId()%>_rightRECEPTION1" id="cen_<%=cen.g

etId()%>_rightRECEPTION1_MODIFY" onchange="UserPr ofile.updateCenterTable('<%=cen.getId()%>')" /> <label for="cen_ <%=cen.getId()%>_rightRECEPTION1_MODIFY" id="spancen_<%=c en.getId()%>_rightRECEPTION10"> <%=tr.tr("Modification of a delivery")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION11')" name="cen_<%=cen .getId()%>_rightRECEPTION1" id="cen_<%=cen.g etId()%>_rightRECEPTION1_DEL" onchange="UserPr ofile.updateCenterTable('<%=cen.getId()%>')" /> <label for="cen_ <%=cen.getId()%>_rightRECEPTION1_DEL" id="spancen_<%=c en.getId()%>_rightRECEPTION11"> <%=tr.tr("Deletion of a delivery")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spancen_<%=cen.getId()%>_rightRECEPTION12')" name="cen_<%=cen .getId()%>_rightRECEPTION1" id="cen_<%=cen.g etId()%>_rightSETTINGS_RECEP1" onchange="UserPr ofile.updateCenterTable('<%=cen.getId()%>')" /> <label for="cen_ <%=cen.getId()%>_rightSETTINGS_RECEP1" id="spancen_<%=c en.getId()%>_rightRECEPTION12"> <%=tr.tr("Reception1 configuration")%> </label></td> </tr> <%-- End Module reception1 --%> </table> </td> </tr> </tbody> </table> </div> <%}%> <div class="divNone"> <yui:table name="listWorkflows" width="450" height="100" columns='<%=ColumnDef.createCols( ColumnDef.createCol(Work flowTable.Field.id, "id", 10, 20), ColumnDef.createCol(Work flowTable.Field.code, "code", 10, 20), ColumnDef.createCol(Work flowTable.Field.workflow, "workflow", 10, 20), ColumnDef.createCol(Work flowTable.Field.modPREPARATION, "modPREPARATION", 10, 20), ColumnDef.createCol(Work flowTable.Field.modRECEPTION2, "modRECEPTION2", 10, 20),

ColumnDef.createCol(Work flowTable.Field.modVIDOC, "modVIDOC", 10, 20), ColumnDef.createCol(Work flowTable.Field.modREQUESTSUMMARY, "modREQUESTSUMMARY", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightRECEPTION2_MODIFY, "rightRECEPTION2_MODIFY", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_IMPORTS, "rightSETTINGS_IMPORTS", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_PREPA, "rightSETTINGS_PREPA", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_VIDOC, "rightSETTINGS_VIDOC", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_VIDOC_TASKREQUIREMENT, "rightSETTINGS_VIDOC_TASKRE QUIREMENT", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_CATEGORIES, "rightSETTINGS_CATEGORIES", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_MANUAL, "rightSETTINGS_WORKFLOW_MANUAL", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_MODIF, "rightSETTINGS_WORKFLOW_MODIF", 10 , 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_MSG, "rightSETTINGS_WORKFLOW_MSG", 10, 20 ), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_STEPS, "rightSETTINGS_WORKFLOW_STEPS", 10 , 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_ARCHIVES, "rightSETTINGS_ARCHIVES", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_PAGEGROUPTYPE, "rightSETTINGS_PAGEGROUPTYPE", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_PROGRESS_STEPS, "rightSETTINGS_PROGRESS_STEPS", 10 , 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_STAT_EDITION, "rightSETTINGS_STAT_EDITION", 10, 20 ), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_FIELDTYPE, "rightSETTINGS_FIELDTYPE", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_REJECTTYPE, "rightSETTINGS_REJECTTYPE", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_PARAMETER, "rightSETTINGS_WORKFLOW_PARAME TER", 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_WORKFLOW_WTHUONG, "rightSETTINGS_WORKFLOW_WTHUONG" , 10, 20), ColumnDef.createCol(Work flowTable.Field.rightSETTINGS_SPECIFIC, "rightSETTINGS_SPECIFIC", 10, 20) )%>' lines="${workflowTable}" beanClass="<%=Settingsuserprofile.WorkflowTable. class%>" horizScrolling="true" vertScrolling="true" /> </div> <% for(int i=0;i<listAllWorkflows.size();i++){

Workflow wf = listAllWorkflows.get(i); %> <div id="div_workflow<%=i%>" style="display:none"> <table style="width:1000px"> <tr > <td> <h3><%=tr.tr("Workflow")%> <%=wf.getDesc ()%></h3> </td> </tr> <tr> <td> <hr /> </td> </tr> <tr > <td colspan="2"> <% int value =0; for(int j=0;j<listAllUserRightProfileWor kflows.size();j++){ Workflow userRightWf = listAllUs erRightProfileWorkflows.get(j).getWorkflow(); if(profile.getId()!= null && wf. getId() != null && userRightWf != null && profile.getId().equal s(listAllUserRightProfileWorkflows.get(j).getProfile().getId()) && wf.getId().equals(use rRightWf.getId())) value =1; } %> <input type="checkbox" id="checkbox_work flow<%=i%>" <% if(value==1){ %>checked="checked"<%} %> onclick="UserProfile.disp layRight('workflow','<%=i%>','wf_<%=wf.getId()%>','<%=wf.getId()%>')" /><%=tr.tr ("Have access to this workflow")%> </td> </tr> <tr id="wf_<%=wf.getId()%>"> <td colspan="4"> <table id="modify" style="width:1000px"> <script type="text/javascript"> UserProfile.workflowsId[ UserProfile.workflowsId.length] = "<%=wf.getId()%>"; </script> <tr> <td colspan="4"> <hr /> </td> </tr> <tbody id="tbody_workflow<%=i%>" <% if(value==0){ %>style="display:none"<%} %> > <tr> <td> <span class="fon tBold" style="padding-left:25px"><%=tr.tr("Access to configuration")%></span> <a class="aToolt ipSelectAll" > <img

onclick="UserProfile.setStyleAllCheckboxWf('<%=wf.getId()%>',true); UserProfile.updateWf(<%=wf.getId()%>,'<%=ModuleRightName.SETTINGS_IMPORTS%>', '<%=ModuleRightName.SETTINGS_WORKFLOW_MANUAL%>','<%=ModuleRightName.SETTINGS_WO RKFLOW_MODIF%>', '<%=ModuleRightName.SETTINGS_WORKFLOW_MSG%>','<%=ModuleRightName.SETTINGS_WORKF LOW_STEPS%>', '<%=ModuleRightName.SETTINGS_ARCHIVES%>','<%=ModuleRightName.SETTINGS_PAGEGROUP TYPE%>', '<%=ModuleRightName.SETTINGS_STAT_EDITION%>','<%=ModuleRightName.SETTINGS_REJEC TTYPE%>', '<%=ModuleRightName.SETTINGS_PROGRESS_STEPS%>','<%=ModuleRightName.SETTINGS_FIE LDTYPE%>', '<%=ModuleRightName.SETTINGS_SPECIFIC%>','<%=ModuleRightName.SETTINGS_WORKFLOW_ PARAMETER%>',true)" src="Images/Icon/iconSelectAll_22_20.png"> <span><% =tr.tr("Select all")%></span> </a> <img class="imgV erticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class="aToolt ipSelectAll"> <img onclick="UserProfile.setStyleAllCheckboxWf('<%=wf.getId()%>',false); UserProfile.updateWf(<%=wf.getId()%>,'<%=ModuleRightName.SETTINGS_IMPORTS%>', '<%=ModuleRightName.SETTINGS_WORKFLOW_MANUAL%>','<%=ModuleRightName.SETTINGS_WO RKFLOW_MODIF%>', '<%=ModuleRightName.SETTINGS_WORKFLOW_MSG%>','<%=ModuleRightName.SETTINGS_WORKF LOW_STEPS%>', '<%=ModuleRightName.SETTINGS_ARCHIVES%>','<%=ModuleRightName.SETTINGS_PAGEGROUP TYPE%>', '<%=ModuleRightName.SETTINGS_STAT_EDITION%>','<%=ModuleRightName.SETTINGS_REJEC TTYPE%>', '<%=ModuleRightName.SETTINGS_PROGRESS_STEPS%>','<%=ModuleRightName.SETTINGS_FIE LDTYPE%>', '<%=ModuleRightName.SETTINGS_SPECIFIC%>','<%=ModuleRightName.SETTINGS_WORKFLOW_ PARAMETER%>',false)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><% =tr.tr("Unselect all")%></span> </a>

</td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right21')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_IMPORTS%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right21" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_IMPORTS%>"> <%=tr.tr ("Settings of import")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right22')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MANUAL%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right22" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MANUAL%>"> <%=tr.tr ("Settings of manual")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right23')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MODIF%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right23" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MODIF%>"> <%=tr.tr ("Edition of workflow")%> </label></td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right24')"

name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MSG%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right24" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_MSG%>"> <%=tr.tr ("Edition of workflow message")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right25')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_STEPS%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right25" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_STEPS%>"> <%=tr.tr ("Edition of workflow steps")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right26')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_ARCHIVES%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right26" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_ARCHIVES%>"> <%=tr.tr ("Archive Settings")%> </label></td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right27')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_PAGEGROUPTYPE%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf

.getId()%>_right27" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_PAGEGROUPTYPE%>"> <%=tr.tr ("PageGroup type Settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right28')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_STAT_EDITION%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right28" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_STAT_EDITION%>"> <%=tr.tr ("Statistic Edition Settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right29')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_REJECTTYPE%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right29" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_REJECTTYPE%>"> <%=tr.tr ("RejectType Edition Settings")%> </label></td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right210')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_PROGRESS_STEPS%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right210" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_PROGRESS_STEPS%>"> <%=tr.tr ("Progress Step Settings")%> </label></td> <td><input type="checkbo

x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right211')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_FIELDTYPE%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right211" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_FIELDTYPE%>"> <%=tr.tr ("Field type Settings")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right212')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_SPECIFIC%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right212" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_SPECIFIC%>"> <%=tr.tr ("Specific Modules Settings")%> </label></td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right213')" name="wf_<%=wf.g etId()%>_righ2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_PARAMETER%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right213" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_WORKFLOW_PARAMETER%>"> <%=tr.tr ("Workflow parameter setting")%> </label></td> <td></td> </tr> <%-- MODULE RECEPTION2 --%> <tr > <td colspan="3">

<input type="che ckbox" id="wf_<%=wf.getId()%>_mod<%=Module.RECEPTION2%>" name="wf _<%=wf.getId()%>_mod<%=Module.RECEPTION2%>" onchange ="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProf ile.setStyleCheckbox('wf_<%=wf.getId()%>_right1','wf_<%=wf.getId()%>_mod<%=Modul e.RECEPTION2%>')"/> <span id="spanwf _<%=wf.getId()%>_mod<%=Module.RECEPTION2%>"> <%=tr.tr("Access to reception2")%>< /span> <span id="select all_wf_<%=wf.getId()%>_right1"> <a class ="aTooltipSelectAll" > <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right1','wf_<%=w f.getId()%>_mod<%=Module.RECEPTION2%>',true)" src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img cla ss="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class ="aTooltipSelectAll"> <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right1','wf_<%=w f.getId()%>_mod<%=Module.RECEPTION2%>',false)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td colspan="3" style="p adding-left:19px"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right10')" name="wf_<%=wf.g etId()%>_right1" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.RECEPTION2_MODIFY%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label for="wf_<%=wf.ge

tId()%>_right<%=ModuleRightName.RECEPTION2_MODIFY%>" id="spanwf_<%=wf .getId()%>_right10"> <%=tr.tr("Modification of a reception2")%> </label></td> </tr> <%-- MODULE PREPARATION --%> <tr > <td colspan="3"> <input type="che ckbox" id="wf_<%=wf.getId()%>_mod<%=Module.PREPARATION%>" name="wf _<%=wf.getId()%>_mod<%=Module.PREPARATION%>" onchange ="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProf ile.setStyleCheckbox('wf_<%=wf.getId()%>_right2','wf_<%=wf.getId()%>_mod<%=Modul e.PREPARATION%>')"/> <span id="spanwf _<%=wf.getId()%>_mod<%=Module.PREPARATION%>"> <%=tr.tr("Access to preparation")% ></span> <span id="select all_wf_<%=wf.getId()%>_right2"> <a class ="aTooltipSelectAll" > <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right2','wf_<%=w f.getId()%>_mod<%=Module.PREPARATION%>',true)" src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img cla ss="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class ="aTooltipSelectAll"> <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right2','wf_<%=w f.getId()%>_mod<%=Module.PREPARATION%>',false)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td colspan="3" style="p adding-left:19px"><input type="checkbox"

onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right20')" name="wf_<%=wf.g etId()%>_right2" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_PREPA%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right20" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_PREPA%>"> <%=tr.tr ("Settings of preparation")%> </label></td> </tr> <%-- MODULE VIDOC --%> <tr > <td colspan="3"> <input type="checkbox" i d="wf_<%=wf.getId()%>_mod<%=Module.VIDOC%>" name="wf_<%=wf.g etId()%>_mod<%=Module.VIDOC%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setS tyleCheckbox('wf_<%=wf.getId()%>_right3','wf_<%=wf.getId()%>_mod<%=Module.VIDOC% >');"/> <span id="spanwf_<%=wf.g etId()%>_mod<%=Module.VIDOC%>"> <%=tr.tr("Access to BosVidoc")%></span> <span id="selectall_wf_< %=wf.getId()%>_right3"> <a class="aToolt ipSelectAll" > <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right3','wf_<%=w f.getId()%>_mod<%=Module.VIDOC%>',true)" src="Images/Icon/iconSelectAll_22_20.png"> <span><% =tr.tr("Select all")%></span> </a> <img class="imgV erticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class="aToolt ipSelectAll"> <img onclick="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleforSelectOrDeselectAll('wf_<%=wf.getId()%>_right3','wf_<%=w f.getId()%>_mod<%=Module.VIDOC%>',false)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%

=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <td class="tdUserProfile Right"><input type="checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right30')" name="wf_<%=wf.g etId()%>_right3" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_VIDOC%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right30" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_VIDOC%>"> <%=tr.tr ("Settings of BosVidoc")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right31')" name="wf_<%=wf.g etId()%>_right3" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_VIDOC_TASKREQUIREMENT%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right31" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_VIDOC_TASKREQUIREMENT%>"> <%=tr.tr ("Settings task requirement task")%> </label></td> <td><input type="checkbo x" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right32')" name="wf_<%=wf.g etId()%>_right3" id="wf_<%=wf.get Id()%>_right<%=ModuleRightName.SETTINGS_CATEGORIES%>" onchange="UserPr ofile.updateWorkflowTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right32" for="wf_<%=wf.ge tId()%>_right<%=ModuleRightName.SETTINGS_CATEGORIES%>"> <%=tr.tr ("Settings Categories")%> </label></td> </tr> <%-- VIDOC TASK --%>

<% if (wf.getListTaskTypes( ).size() > 0) { %> <tr> <td> <table> <tr> <td style="padding-left:25px"> <span class="fontBold" > <%=tr.tr("Tasks")%></span> <a class="aTooltipSelectAll" > <img onclick="UserProfile.checkAllTask(true,<%=wf.getId()%>); UserProfile.updateTaskTable(<%=wf.getId()%>)" src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img class="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class="aTooltipSelectAll"> <img onclick="UserProfile.checkAllTask(false,<%=wf.getId()%>); UserProfile.updateTaskTable(<%=wf.getId()%>)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </td> </tr> </table> </td> </tr> <% } //end if %> <% for (TaskType task : wf. getListTaskTypes()) { if (task.getNature().equals(WorkerNature.MANUAL) || task.getNature().equals(Work erNature.WSEXT)) { %> <tr>

<td colspan="1" style="p adding-left:19px"> <input type="ch eckbox" id="task_<%=task.getCode()%>" name="seTask_<%=task.getCode()%>" onclick="UserPro file.setStyleforOnclickCkb(this,'spantask_<%=task.getCode()%>')" onchange="UserPr ofile.updateTaskTable(<%=wf.getId()%>)" /> <label id="spant ask_<%=task.getCode()%>" for="task_<%=task.getCode()%>" ><%=tr.tr(task.getName() )%></label> </td> </tr> <% } //end if manual } //end for tasktype %> <%-- MODULE REQUEST --%> <tr> <td> <input type="che ckbox" id="wf_<%=wf.getId()%>_mod<%=Module.REQUESTSUMMARY%>" name="wf _<%=wf.getId()%>_mod<%=Module.REQUESTSUMMARY%>" onchange ="UserProfile.updateWorkflowTable(<%=wf.getId()%>); UserProfile.setStyleCheckbox('wf_<%=wf.getId()%>_right4','wf_<%=wf.getId()%>_m od<%=Module.REQUESTSUMMARY%>')"/> <span id="spanwf _<%=wf.getId()%>_mod<%=Module.REQUESTSUMMARY%>"><%=tr.tr("Access to Request")%>< /span> <span id="select all_wf_<%=wf.getId()%>_right4"> <a class ="aTooltipSelectAll" > <img onclick="UserProfile.setStyleAllCheckbox('wf_<%=wf.getId()%>_right4','wf_<%=wf.g etId()%>_right4',true); UserProfile.updateRequestTable(<%=wf.getId()%>)" src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img cla ss="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class ="aTooltipSelectAll">

<img onclick="UserProfile.setStyleAllCheckbox('wf_<%=wf.getId()%>_right4','wf_<%=wf.g etId()%>_right4',false); UserProfile.updateRequestTable(<%=wf.getId()%>)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <%-- Requests --%> <% int count = 0; for (Req uestType req : wf.getListRequestTypes()) { if (count % 3 == 0) { %> </tr> <tr> <td class="tdUserProfile Right"> <% } else { %> <td> <% } %> <input type=" checkbox" onclick="UserPro file.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right4<%="" + count%>')" name="wf_<%=wf.g etId()%>_right4" id="req_<%=req.getId()%>" onchange="UserPr ofile.updateRequestTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf .getId()%>_right4<%="" + count%>" for="req_<%=req. getId()%>"> <%=tr.tr(req.getName())%> </label><br /> <div id="group_< %=req.getId()%>_rights" class="divNone"> <label>& nbsp;&nbsp;</label> <input type="checkbox" name="wf_<%=wf.getId()%>_right4" id="req_<%=req.getId()%>_create_right" onclick="UserProfile.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right4<% ="" + count%>_create')"

onchange="UserProfile.updateRequestTable(<%=wf.getId()%>)" /> <label i d="spanwf_<%=wf.getId()%>_right4<%="" + count%>_create"><%=tr.tr("Create")%></la bel> <input t ype="checkbox" name="wf_<%=wf.getId()%>_right4" id="req_<%=req.getId()%>_view_right" onclick="UserProfile.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right4<% ="" + count%>_view')" onchange="UserProfile.updateRequestTable(<%=wf.getId()%>)" /> <label i d="spanwf_<%=wf.getId()%>_right4<%="" + count%>_view"><%=tr.tr("View")%></label> <input t ype="checkbox" name="wf_<%=wf.getId()%>_right4" id="req_<%=req.getId()%>_answer_right" onclick="UserProfile.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right4<% ="" + count%>_answer')" onchange="UserProfile.updateRequestTable(<%=wf.getId()%>)" /> <label i d="spanwf_<%=wf.getId()%>_right4<%="" + count%>_answer"><%=tr.tr("Answer")%></la bel> </div> </td> <% count++; }//end for request %> </tr> <%-- SPECIFIC MODULES --%> <% int flag =1; if (wf.getListWorkflowMo duleSpecific().size() > 0) { %> <tr > <td><span class="fontBol d"> <%=tr.tr("Specific Modules")%></span></td> <td> <span id="select all_wf_<%=wf.getId()%>_right71"> <a class ="aTooltipSelectAll" > <img onclick="UserProfile.setStyleAllCheckbox('wf_<%=wf.getId()%>_right71','wf_<%=wf. getId()%>_right71',true); UserProfile.updateModuleSpecificTable(<%=wf.getId()%>)"

src="Images/Icon/iconSelectAll_22_20.png"> <span><%=tr.tr("Select all")%></span> </a> <img cla ss="imgVerticalLine" src="Images/backgroundVerticalLine_190_190.png" > <a class ="aTooltipSelectAll"> <img onclick="UserProfile.setStyleAllCheckbox('wf_<%=wf.getId()%>_right71','wf_<%=wf. getId()%>_right71',false); UserProfile.updateModuleSpecificTable(<%=wf.getId()%>)" src="Images/Icon/iconDeselectAll_22_21.png"> <span><%=tr.tr("Unselect all")%></span> </a> </span> </td> </tr> <tr> <% for(i =0;i<wf.getListWor kflowModuleSpecific().size();i++){ flag ++; %> <td> <input t ype="checkbox" onclick="UserProfile.setStyleforOnclickCkb(this,'spanwf_<%=wf.getId()%>_right71< %=i+5%>')" name="wf_<%=wf.getId()%>_right71" id="wms_<%=wf.getListWorkflowModuleSpecific().get(i).getId()%>" onchange="UserProfile.updateModuleSpecificTable(<%=wf.getId()%>)" /> <label id="spanwf_<%=wf.getId()%>_right71<%=i%>" for="wms_<%=wf.getListWorkflowModuleSpecific().get(i).getId()%>"> <%=wf.getListWorkflowModuleSpecific().get(i).getName()%> </label> </td> <% if(flag ==4){ %> </tr> <tr> <% flag =1; } %> <% } }%>

</tr> <%-- END TABLE WORFLOW --%> </table> </td> </tr> </tbody> </table> </div> <%}%> <%--end for workflows--%> </div> <div style="clear: both"></div> <s:hidden name="screen" id="screen"></s:hidden> <s:hidden name="idUser" id="idUser"></s:hidden> </s:form> <hr> <div style="text-align: center"> <yui:button name="btnValidate" label='<%=tr.tr("Validate")%>' ev ents="click:UserProfile.save" width="100" />&nbsp;&nbsp; <% String screen = (String) request.getAttribute("screen"); if (screen.equals("userConfig")) { long idUser = (Long)request.getAttribute("idUser "); %> <yui:button name="btnCancel" type="<%=YuiButton.Type.LI NK%>" label='<%=tr.tr("Cancel")%>' target='<%="settingsuserconfig!goToInput.action?idProfi le=0&user.id=" + idUser%>' width="100" /> <% } else { %> <yui:button name="btnCancel" type="<%=YuiButton.Type.LI NK%>" label='<%=tr.tr("Cancel")%>' target="settingsuserprofil e.action" width="100" /> <% } %> </div> <yui:panel name="panelListUsers" width="600" height="200" visible="false" fixedcenter="true" modal="true"> <span class="fontBold"><%=tr.tr("Affected users")%></span> <div id="panelListUsersDiv"></div> </yui:panel> </body> </html>

Вам также может понравиться