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

📄 myworkitem.xhtml

📁 Fire-Workflow-Engine-All-In-One-20090208 包含全部文档
💻 XHTML
字号:
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<body>
		<ui:composition template="/main.xhtml">
			<ui:define name="workspace">
				<script>
				<!--
				function doSelectMe(id){
					var theForm = document.getElementById('mainForm');
					var theSelectedWorkItemId = document.getElementById('selectedWorkItemId');

					var allRadioList = theForm.elements;
					for (var i=0;i<allRadioList.length;i++){
						var item = allRadioList[i];
						if (item.type=="radio" ){
							if (item.id!=id){
								item.checked = false;
							}else{
								theSelectedWorkItemId.value = item.value;
							}
						}
					}
				}
				-->
				</script>
				<h:form id="mainForm">
				<t:inputHidden id="selectedWorkItemId" forceId="true" value="#{MyWorkItemBean.selectedWorkItemId}"/>
						
				<div align="center"> 		
					<t:commandButton value="查询" action="#{MyWorkItemBean.doQueryMyToDoWorkItems}"/>
					|
					<t:commandButton value="签收选定的记录" action="#{MyWorkItemBean.signWorkItem}"/>
					|
					<t:commandButton value="处理选定的记录" action="#{MyWorkItemBean.openForm}"/>
				</div>
				<br/>
				<div align="center">
					<t:dataTable value="#{MyWorkItemBean.myTodoWorkitems}"
						var="workItem" headerClass="tableHeader" rowIndexVar="theRowIndex"
						rowClasses="row1, row2" style="width:600px" >
						<t:column>
							<f:facet name="header">流水号</f:facet>
							<t:outputText value="#{workItem.taskInstance.sn}" />
						</t:column>
						<t:column>
							<f:facet name="header">货物名称</f:facet>
							<t:outputText value="#{workItem.taskInstance.goodsName}" />
						</t:column>
						<t:column>
							<f:facet name="header">数量</f:facet>
							<t:outputText value="#{workItem.taskInstance.quantity}" />
						</t:column>
						<t:column>
							<f:facet name="header">当前环节</f:facet>
							<t:outputText value="#{workItem.taskInstance.displayName}" />
						</t:column>
						<t:column>
							<f:facet name="header">当前状态</f:facet>
							
							<t:outputText value="#{workItem.state==0?'待签收':'-待-处-理-'}" />
						</t:column>		
						
						<t:column>
							<f:facet name="header">选择</f:facet>
							<input id="radio#{theRowIndex}" type="radio" value="#{workItem.id}" onclick="doSelectMe('radio#{theRowIndex}')"/>
							
						</t:column>				
					</t:dataTable>
					</div>
				</h:form>
			</ui:define>
		</ui:composition>
	</body>

</html>

⌨️ 快捷键说明

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