⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editcustomtimeperiod.jsp

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 JSP
📖 第 1 页 / 共 2 页
字号:
    </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&nbsp;ID</div></TD>    <TD><div class='tabletext'>Org&nbsp;Party&nbsp;ID</div></TD>    <TD><div class='tabletext'>Period&nbsp;Type</div></TD>    <TD><div class='tabletext'>#</div></TD>    <TD><div class='tabletext'>Name</div></TD>    <TD><div class='tabletext'>From&nbsp;Date</div></TD>    <TD><div class='tabletext'>Thru&nbsp;Date</div></TD>    <TD><div class='tabletext'>&nbsp;</div></TD>    <TD><div class='tabletext'>&nbsp;</div></TD>    <TD><div class='tabletext'>&nbsp;</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=''>&nbsp;</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 ? "" : "&currentCustomTimePeriodId=" + 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=''>&nbsp;</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&nbsp;Party&nbsp;ID:&nbsp;<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&nbsp;Number:&nbsp;<input type="text" size='4' name='periodNum' class='inputBox'>        Period&nbsp;Name:&nbsp;<input type="text" size='10' name='periodName' class='inputBox'>    </div>    <div class='tabletext'>        From&nbsp;Date:&nbsp;<input type="text" size='14' name='fromDate' class='inputBox'>        Thru&nbsp;Date:&nbsp;<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 + -