📄 voucher.xhtml
字号:
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout" xmlns:ajax="http://www.apusic.com/jsf/ajax" renderKitId="AJAX" xmlns:h="http://java.sun.com/jsf/html" xmlns:om="http://www.apusic.com/jsf/misc"> <w:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script> //<![CDATA[ function addTab(title, url,iconCls) { var item = parent.tabs.getItem(title); if (item) { item.show(); return; } parent.tabs.add({ id : title, title: title, iconCls: iconCls, html: '<iframe id="source_frm" frameborder="no" style="width: 100%; height: 100%;" src="'+url+'"></iframe>', closable:true }).show(); } //]]> </script> </w:head> <w:page> <ajax:scripter id="scripter"></ajax:scripter> <w:form style="height:100%"> <w:dataGrid var="voucherData" paged="true" rows="10" toolBarPosition="top" id="voucher_grid" autoSizeColumns="true" singleSelect="true"> <w:outputColumn id="name" width="80" sortable="true" header="#{voucherBean.nameHeader}" value="#{voucherData.name}"></w:outputColumn> <w:outputColumn id="number" width="100" sortable="true" header="#{voucherBean.numberHeader}" value="#{voucherData.number}"></w:outputColumn> <w:outputColumn id="isCheck" width="70" sortable="true" header="#{voucherBean.isCheckHeader}" value="#{voucherData.isCheck}" converter="booleanConverter"></w:outputColumn> <w:outputColumn id="voucherAbstract" width="120" header="#{voucherBean.voucherAbstractHeader}" value="#{voucherData.voucherAbstract}"></w:outputColumn> <w:outputColumn id="hasCashAccount" width="120" header="#{voucherBean.hasCashAccountHeader}" value="#{voucherData.hasCashAccount}" converter="booleanConverter"></w:outputColumn> <w:outputColumn id="localCreditAmount" width="130" header="#{voucherBean.localCreditAmountHeader}" value="#{voucherData.localCreditAmount}"></w:outputColumn> <w:outputColumn id="localDebitAmout" width="120" header="#{voucherBean.localDebitAmoutHeader}" value="#{voucherData.localDebitAmout}"></w:outputColumn> <w:outputColumn id="bookedDate" width="100" header="#{voucherBean.bookedDateHeader}" value="#{voucherData.bookedDate}" converter="outputDateFormatter"></w:outputColumn> <!-- 由于关联对象的属性绑定在IoVC中尚未支持,在此暂且用EL表达式绑定。 --> <w:outputColumn id="voucher_cashier" width="60" header="#{voucherBean.cashierNameHeader}" value="#{voucherData.cashier.name}"></w:outputColumn> <w:outputColumn id="voucher_poster" width="100" header="#{voucherBean.posterNameHeader}" value="#{voucherData.poster.name}"></w:outputColumn> <w:outputColumn id="voucher_period" width="100" header="#{voucherBean.periodNumberHeader}" value="#{voucherData.period.number}"></w:outputColumn> <w:outputColumn id="voucher_voucherType" width="70" header="#{voucherBean.voucherTypeNameHeader}" value="#{voucherData.voucherType.name}"></w:outputColumn> <w:outputColumn id="voucher_currency" width="70" header="#{voucherBean.currencySignHeader}" value="#{voucherData.currency.sign}"></w:outputColumn> <w:pagingToolbar for="voucher_grid"> <w:separator /> <w:button id="add" image="../icons/new.png" /> <w:button id="remove" image="../icons/remove.png" /> </w:pagingToolbar> </w:dataGrid> </w:form> <!-- <layout:window width="700" height="320" modal="true" resizable="true" id="voucher_dialog"> <ajax:updater id="voucher_edit" globalAction="true" url="edit/voucherEdit.xhtml" /> </layout:window> --> </w:page></f:view>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -