📄 editcustomtimeperiod.jsp
字号:
</td> <td align="center"> <%boolean hasExpired = false;%> <%if (currentCustomTimePeriod.getDate("thruDate") != null && UtilDateTime.nowDate().after(currentCustomTimePeriod.getDate("thruDate"))) { hasExpired = true; }%> <input type="text" size='13' <ofbiz:inputvalue entityAttr="currentCustomTimePeriod" field="thruDate" fullattrs="true"/> class='inputBox' style='<%if (hasExpired) {%> color: red;<%}%>'> </td> <td align="center"><INPUT type="submit" value='Update' style='font-size: x-small;'></td> <td align="center"> <a href='<ofbiz:url>/deleteCustomTimePeriod?customTimePeriodId=<ofbiz:entityfield attribute="currentCustomTimePeriod" field="customTimePeriodId"/></ofbiz:url>' class="buttontext"> [Delete]</a> </td> </FORM> </ofbiz:if> <ofbiz:unless name="currentCustomTimePeriod"> <TR><TD colspan="8"><div class='tabletext'>No Current Custom Time Period Selected; "Children" below have no Parent Period.</div></TD></TR> </ofbiz:unless></table><br/><div class='tabletext'>Child Periods</div><TABLE border='1' cellpadding='2' cellspacing='0'> <TR> <TD><div class='tabletext'>ID</div></TD> <TD><div class='tabletext'>Parent ID</div></TD> <TD><div class='tabletext'>Org Party ID</div></TD> <TD><div class='tabletext'>Period Type</div></TD> <TD><div class='tabletext'>#</div></TD> <TD><div class='tabletext'>Name</div></TD> <TD><div class='tabletext'>From Date</div></TD> <TD><div class='tabletext'>Thru Date</div></TD> <TD><div class='tabletext'> </div></TD> <TD><div class='tabletext'> </div></TD> <TD><div class='tabletext'> </div></TD> </TR><%int line = 0;%><ofbiz:iterator name="customTimePeriod" property="customTimePeriods"> <%line++;%> <%-- GenericValue periodType = customTimePeriod.getRelatedOneCache("PeriodType"); --%> <tr valign="middle"> <FORM method="post" action='<ofbiz:url>/updateCustomTimePeriod</ofbiz:url>' name='lineForm<%=line%>'> <input type="hidden" name="findOrganizationPartyId" value="<%=UtilFormatOut.checkNull(findOrganizationPartyId)%>"> <input type="hidden" name="currentCustomTimePeriodId" value="<%=UtilFormatOut.checkNull(currentCustomTimePeriodId)%>"> <input type="hidden" <ofbiz:inputvalue entityAttr="customTimePeriod" field="customTimePeriodId" fullattrs="true"/>> <td><div class='tabletext'><ofbiz:inputvalue entityAttr="customTimePeriod" field="customTimePeriodId"/></div></td> <td> <select name="parentPeriodId" class='selectBox'> <option value=''> </option> <ofbiz:iterator name="allCustomTimePeriod" property="allCustomTimePeriods"> <%GenericValue allPeriodType = allCustomTimePeriod.getRelatedOneCache("PeriodType");%> <%boolean isDefault = customTimePeriod.getString("parentPeriodId") == null ? false : customTimePeriod.getString("parentPeriodId").equals(allCustomTimePeriod.getString("customTimePeriodId"));%> <option value='<ofbiz:entityfield attribute="allCustomTimePeriod" field="customTimePeriodId"/>' <%if (isDefault) {%>selected<%}%>>Pty:<ofbiz:entityfield attribute="allCustomTimePeriod" field="organizationPartyId"/> <%=allPeriodType == null ? "" : allPeriodType.getString("description") + ":"%> <ofbiz:inputvalue entityAttr="allCustomTimePeriod" field="periodNum"/> [<ofbiz:entityfield attribute="allCustomTimePeriod" field="customTimePeriodId"/>]</option> </ofbiz:iterator> </select> </td> <td><input type="text" class='inputBox' size='12' <ofbiz:inputvalue entityAttr="customTimePeriod" field="organizationPartyId" fullattrs="true"/>></td> <td> <select name="periodTypeId" class='selectBox'> <ofbiz:iterator name="periodType" property="periodTypes"> <%boolean isDefault = customTimePeriod.getString("periodTypeId") == null ? false : customTimePeriod.getString("periodTypeId").equals(periodType.getString("periodTypeId"));%> <option value='<ofbiz:entityfield attribute="periodType" field="periodTypeId"/>' <%if (isDefault) {%>selected<%}%>><ofbiz:entityfield attribute="periodType" field="description"/><%-- [<ofbiz:entityfield attribute="periodType" field="periodTypeId"/>]--%></option> </ofbiz:iterator> </select> </td> <td><input type="text" size='4' <ofbiz:inputvalue entityAttr="customTimePeriod" field="periodNum" fullattrs="true"/> class='inputBox' ></td> <td><input type="text" size='10' <ofbiz:inputvalue entityAttr="customTimePeriod" field="periodName" fullattrs="true"/> class='inputBox' ></td> <td> <%boolean hasntStarted = false;%> <%if (customTimePeriod.getDate("fromDate") != null && UtilDateTime.nowDate().before(customTimePeriod.getDate("fromDate"))) { hasntStarted = true; }%> <input type="text" size='13' <ofbiz:inputvalue entityAttr="customTimePeriod" field="fromDate" fullattrs="true"/> class='inputBox' style='<%if (hasntStarted) {%> color: red;<%}%>'> </td> <td align="center"> <%boolean hasExpired = false;%> <%if (customTimePeriod.getDate("thruDate") != null && UtilDateTime.nowDate().after(customTimePeriod.getDate("thruDate"))) { hasExpired = true; }%> <input type="text" size='13' <ofbiz:inputvalue entityAttr="customTimePeriod" field="thruDate" fullattrs="true"/> class='inputBox' style='<%if (hasExpired) {%> color: red;<%}%>'> </td> <td align="center"><INPUT type="submit" value='Update' style='font-size: x-small;'></td> <td align="center"> <a href='<ofbiz:url>/deleteCustomTimePeriod?customTimePeriodId=<ofbiz:inputvalue entityAttr="customTimePeriod" field="customTimePeriodId"/><%=currentCustomTimePeriodId == null ? "" : "¤tCustomTimePeriodId=" + currentCustomTimePeriodId%><%=findOrganizationPartyId == null ? "" : "&findOrganizationPartyId=" + findOrganizationPartyId%></ofbiz:url>' class="buttontext"> [Delete]</a> </td> <td align="center"> <a href='<ofbiz:url>/EditCustomTimePeriod?currentCustomTimePeriodId=<ofbiz:inputvalue entityAttr="customTimePeriod" field="customTimePeriodId"/><%=findOrganizationPartyId == null ? "" : "&findOrganizationPartyId=" + findOrganizationPartyId%></ofbiz:url>' class="buttontext"> [Set As Current]</a> </td> </FORM> </tr></ofbiz:iterator></table><br/><form method="POST" action="<ofbiz:url>/createCustomTimePeriod</ofbiz:url>" style='margin: 0;' name='createCustomTimePeriodForm'> <input type="hidden" name="findOrganizationPartyId" value="<%=UtilFormatOut.checkNull(findOrganizationPartyId)%>"> <input type="hidden" name="currentCustomTimePeriodId" value="<%=UtilFormatOut.checkNull(currentCustomTimePeriodId)%>"> <input type="hidden" name="useValues" value="true"> <div class='head2'>Add Custom Time Period:</div> <div class='tabletext'> Parent Period: <select name="parentPeriodId" class='selectBox'> <option value=''> </option> <ofbiz:iterator name="allCustomTimePeriod" property="allCustomTimePeriods"> <%GenericValue allPeriodType = allCustomTimePeriod.getRelatedOneCache("PeriodType");%> <%boolean isDefault = currentCustomTimePeriod == null ? false : currentCustomTimePeriod.getString("customTimePeriodId").equals(allCustomTimePeriod.getString("customTimePeriodId"));%> <option value='<ofbiz:entityfield attribute="allCustomTimePeriod" field="customTimePeriodId"/>' <%if (isDefault) {%>selected<%}%>>Pty:<ofbiz:entityfield attribute="allCustomTimePeriod" field="organizationPartyId"/> Par:<ofbiz:entityfield attribute="allCustomTimePeriod" field="parentPeriodId"/> <%=allPeriodType == null ? "" : allPeriodType.getString("description")%> <ofbiz:entityfield attribute="allCustomTimePeriod" field="periodNum"/> [<ofbiz:entityfield attribute="allCustomTimePeriod" field="customTimePeriodId"/>]</option> </ofbiz:iterator> </select> </div> <div class='tabletext'> Organization Party ID: <input type="text" size='20' name='organizationPartyId' class='inputBox'> Period Type: <select name="periodTypeId" class='selectBox'> <ofbiz:iterator name="periodType" property="periodTypes"> <%boolean isDefault = newPeriodTypeId == "" ? false : newPeriodTypeId.equals(periodType.getString("periodTypeId"));%> <option value='<ofbiz:entityfield attribute="periodType" field="periodTypeId"/>' <%if (isDefault) {%>selected<%}%>><ofbiz:entityfield attribute="periodType" field="description"/><%-- [<ofbiz:entityfield attribute="periodType" field="periodTypeId"/>]--%></option> </ofbiz:iterator> </select> Period Number: <input type="text" size='4' name='periodNum' class='inputBox'> Period Name: <input type="text" size='10' name='periodName' class='inputBox'> </div> <div class='tabletext'> From Date: <input type="text" size='14' name='fromDate' class='inputBox'> Thru Date: <input type="text" size='14' name='thruDate' class='inputBox'> <input type="submit" value="Add" style='font-size: x-small;'> </div></form></TABLE><%} else {%> <h3>You do not have permission to view this page (PERIOD_MAINT needed).</h3><%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -