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

📄 statereportoptions.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#--  * Copyright (C) 2006  Open Source Strategies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *  --><#-- Re-usable form for state reports (between two dates or two time periods) Make sure you call parseReportOptions.bsh so that this form can work.@author Leon Torres (leon@opensourcestrategies.com)--><#macro listCustomTimePeriods customTimePeriods defaultTimePeriodId>  <#list customTimePeriods as customTimePeriod>    <#assign selected=""/>    <#if defaultTimePeriodId == customTimePeriod.customTimePeriodId><#assign selected="selected"></#if>    <option ${selected?if_exists} value="${customTimePeriod.customTimePeriodId}">${customTimePeriod.periodName?if_exists}       <#if customTimePeriod.periodNum?has_content>        ${customTimePeriod.periodNum?string("####")}      </#if>         ${uiLabelMap.FinancialsEndingOn} ${customTimePeriod.thruDate?string("MMM dd, yyyy")}       <#if customTimePeriod.isClosed == "Y">        (${uiLabelMap.isClosed})      <#else>        (${uiLabelMap.isNotClosed})      </#if>    </option>  </#list></#macro><#macro listGlFiscalTypes glFiscalTypes>  <#list glFiscalTypes as glFiscalType>    <#assign selected = ""/>    <#if glFiscalTypeId?exists && glFiscalTypeId == glFiscalType.glFiscalTypeId><#assign selected = "selected"/></#if>    <option ${selected?if_exists} value="${glFiscalType.glFiscalTypeId}">${glFiscalType.description}</option>  </#list></#macro><#-- preserve the last checked date option --><#if customTimePeriodId?exists || fromTimePeriodId?exists>  <#assign byTimePeriodChecked = "checked=''">  <#else>  <#assign byDateChecked = "checked=''"></#if><#-- a function to "disable" the other date option when one is selected --><script type="text/javascript">  <!--  function selectReportDateOption(button) {    if (button.checked == true) {      if (button.value == "byDate") {        button.form.asOfDate.disabled = false;        button.form.customTimePeriodId.disabled = true;      }      if (button.value == "byTimePeriod") {        button.form.asOfDate.disabled = true;        button.form.customTimePeriodId.disabled = false;      }    }  }  //--></script><#-- this form needs no action since it returns to the same page, allowing multiple different views to use it in the same pattern --><form method="POST" name="stateReportForm" action="">  <input type="hidden" name="reportFormType" value="state"></input>  <#-- some forms need a partyId, they should define this map which contains a "label" for the label -->  <#if partyIdInputRequested?exists>  <div style="margin-left: 5px; margin-bottom: 5px;">    <span class="tableheadtext">${uiLabelMap.get(partyIdInputRequested.get("label"))}</span>    <input type="text" name="partyId" size="20" maxlength="20" value="${partyId?if_exists}" class="inputBox"></input>    <a href="javascript:call_fieldlookup2(document.stateReportForm.partyId, 'LookupPartyGroup');">      <img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"></img>    </a>  </div>  </#if>  <table>    <tr>      <td><input type="radio" name="reportDateOption" value="byDate" onClick="javascript:selectReportDateOption(this)" ${byDateChecked?default("")}></input></td>      <td class="tableheadtext">${uiLabelMap.AsOf}</td>      <td>        <input type="text" name="asOfDate" value="${requestParameters.asOfDate?if_exists}" size="10" maxlength="10" class="inputBox"></input>        <a href="javascript:call_cal_notime(document.stateReportForm.asOfDate,'');"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Calendar'/></a>      </td>    </tr>  </table>  <#if customTimePeriods.size() != 0>  <table>    <tr>      <td><input type="radio" name="reportDateOption" value="byTimePeriod" onClick="javascript:selectReportDateOption(this)" ${byTimePeriodChecked?default("")}></input></td>      <td class="tableheadtext">${uiLabelMap.TimePeriod}</td>      <td class="tabletext">        <select class="selectBox" name="customTimePeriodId" size="1">          <@listCustomTimePeriods customTimePeriods =customTimePeriods defaultTimePeriodId=customTimePeriodId?default("")/>        </select>       </td>    </tr>  </table>  </#if>  <div style="margin-left: 30px; margin-top: 5px;">    <span class="tableheadtext">${uiLabelMap.GlFiscalType}</span>    <select class="selectBox" name="glFiscalTypeId" size="1"><@listGlFiscalTypes glFiscalTypes/></select>  </div>  <div style="margin-left: 30px; margin-top: 10px;">    <input type="Submit" class="smallSubmit" name="submitButton" value="Run"></input>    <#if returnPage?exists && returnLabel?exists>    <input type="button" class="smallSubmit" name="backButton" value="${uiLabelMap.get(returnLabel)}" onClick="window.location.href='/financials/control/${returnPage}'"></input>    </#if>  </div>  </form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -