📄 viewrelationships.jsp
字号:
<TD width="100%" >
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<form name="addPartyRelationshipTo" method="post" action="<ofbiz:url>/createPartyRelationship</ofbiz:url>">
<input type="hidden" name="partyId" value="<%=partyId%>">
<input type="hidden" name="partyIdFrom" value="<%=partyId%>">
<tr>
<td>
<div class="tabletext" style="font-weight: bold;">
The party with ID <input type="text" size="20" name="partyIdTo" class="inputBox">
in the role of <select name="roleTypeIdTo" class="selectBox">
<ofbiz:iterator name="roleType" property="roleTypes">
<option <%=("_NA_".equals(roleType.getString("roleTypeId"))) ? "SELECTED" : ""%> value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
is a <select name="partyRelationshipTypeId" class="selectBox">
<ofbiz:iterator name="relateType" property="relateTypes">
<option value='<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>'><ofbiz:entityfield attribute="relateType" field="partyRelationshipName"/><%-- [<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
of the current party in the role of
<select name="roleTypeIdFrom" class="selectBox">
<ofbiz:iterator name="roleType" property="roleTypes">
<option <%=("_NA_".equals(roleType.getString("roleTypeId"))) ? "SELECTED" : ""%> value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
from <input type="text" size="24" name="fromDate" class="inputBox"> <a href="javascript:setNowFromDate('addPartyRelationshipTo')" class="buttontext">[Now]</a>
thru <input type="text" size="24" name="thruDate" class="inputBox">
</div>
</td>
<td>
<a href="javascript:document.addPartyRelationshipTo.submit()" class="buttontext">[Add]</a>
</td>
</tr>
<tr>
<td colspan="2"><span class="tabletext">Comments: </span><input type="text" size="60" name="comments" class="inputBox"></td>
</tr>
</form>
</table>
</TD>
</TR>
<TR>
<TD width="100%"><hr class="sepbar"></TD>
</TR>
<TR>
<TD width="100%" >
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<form name="addPartyRelationshipFrom" method="post" action="<ofbiz:url>/createPartyRelationship</ofbiz:url>">
<input type="hidden" name="partyId" value="<%=partyId%>">
<input type="hidden" name="partyIdTo" value="<%=partyId%>">
<tr>
<td>
<div class="tabletext" style="font-weight: bold;">
The current party in the role of
<select name="roleTypeIdTo" class="selectBox">
<ofbiz:iterator name="roleType" property="roleTypes">
<option <%=("_NA_".equals(roleType.getString("roleTypeId"))) ? "SELECTED" : ""%> value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
is a
<select name="partyRelationshipTypeId" class="selectBox">
<ofbiz:iterator name="relateType" property="relateTypes">
<option value='<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>'><ofbiz:entityfield attribute="relateType" field="partyRelationshipName"/><%-- [<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
of the party with ID
<input type="text" size="20" name="partyIdFrom" class="inputBox">
in the role of
<select name="roleTypeIdFrom" class="selectBox">
<ofbiz:iterator name="roleType" property="roleTypes">
<option <%=("_NA_".equals(roleType.getString("roleTypeId"))) ? "SELECTED" : ""%> value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
from <input type="text" size="24" name="fromDate" class="inputBox"> <a href="javascript:setNowFromDate('addPartyRelationshipFrom')" class="buttontext">[Now]</a>
thru <input type="text" size="24" name="thruDate" class="inputBox">
</div>
</td>
<td>
<a href="javascript:document.addPartyRelationshipFrom.submit()" class="buttontext">[Add]</a>
</td>
</tr>
<tr>
<td colspan="2"><span class="tabletext">Comments: </span><input type="text" size="60" name="comments" class="inputBox"></td>
</tr>
</form>
</table>
</TD>
</TR>
<%}%>
</TABLE>
<%-- Add relationship type --%>
<%if(security.hasEntityPermission("PARTYMGR", "_CREATE", session)) {%>
<br>
<TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign="middle" align="left">
<div class="boxhead"> New Relationship Type</div>
</td>
</tr>
</table>
</TD>
</form>
</TR>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='1' cellpadding='1' class='boxbottom'>
<form method="post" action="<ofbiz:url>/addrelationshiptype/viewrelationships</ofbiz:url>" name="createrelatetypeform">
<input type="hidden" name="partyId" value="<%=partyId%>">
<tr>
<td width="16%"><div class="tabletext">Relationship Type ID</div></td>
<td width="84%">
<input type="text" name="partyRelationshipTypeId" size="20" class="inputBox">
*</td>
</tr>
<tr>
<td width="16%"><div class="tabletext">Relationship Name</div></td>
<td width="84%">
<input type="text" name="partyRelationshipName" size="20" class="inputBox">
*</td>
</tr>
<tr>
<td width="16%"><div class="tabletext">Description</div></td>
<td width="84%">
<input type="text" name="description" size="60" class="inputBox">
</td>
</tr>
<tr>
<td width="16%"><div class="tabletext">Parent Type</div></td>
<td width="84%">
<select name="parentTypeId" class="selectBox">
<option value=''></option>
<ofbiz:iterator name="relateType" property="relateTypes">
<option value='<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>'><ofbiz:entityfield attribute="relateType" field="partyRelationshipName"/><%-- [<ofbiz:entityfield attribute="relateType" field="partyRelationshipTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
</td>
</tr>
<tr>
<td width="16%"><div class="tabletext">Has Table</div></td>
<td width="84%">
<select name="hasTable" class="selectBox">
<option value='N'>No</option>
<option value='Y'>Yes</option>
</select>
</td>
</tr
<tr>
<td width="16%"><div class="tabletext">Valid From RoleType</div></td>
<td width="84%">
<select name="roleTypeIdValidFrom" class="selectBox">
<option value=''></option>
<ofbiz:iterator name="roleType" property="roleTypes">
<option value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
</td>
</tr>
<tr>
<td width="16%"><div class="tabletext">Valid To RoleType</div></td>
<td width="84%">
<select name="roleTypeIdValidTo" class="selectBox">
<option value=''></option>
<ofbiz:iterator name="roleType" property="roleTypes">
<option value='<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>'><ofbiz:entityfield attribute="roleType" field="description"/><%-- [<ofbiz:entityfield attribute="roleType" field="roleTypeId"/>]--%></option>
</ofbiz:iterator>
</select>
<a href="javascript:document.createrelatetypeform.submit()" class="buttontext">[Save]</a>
</td>
</tr>
</form>
</table>
</TD>
</TR>
</TABLE>
<%}%>
<%}else{%>
<h3>You do not have permission to view this page. ("PARTYMGR_VIEW" or "PARTYMGR_ADMIN" needed)</h3>
<%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -