<apex:page controller="UserInProcessController" showHeader="false" sidebar="false" id="Page" action="{!init}">
|
<head>
|
<title>人员离职/变更管理</title>
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
|
<script type="text/javascript">
|
function searchProcessInfoJs() {
|
var baseUrl = "/apex/UserInProcess";
|
|
var s = j$(escapeVfId('Page:Form:searchBlock:sobj')).val();
|
if (s != '') {
|
baseUrl += '&s=' + s;
|
}
|
var p = j$(escapeVfId('Page:Form:searchBlock:proc')).val();
|
if (p != '') {
|
baseUrl += '&p=' + p;
|
}
|
var a = j$(escapeVfId('Page:Form:searchBlock:actor_lkid')).val();
|
if (a != '000000000000000' && a != '') {
|
baseUrl += '&a=' + a;
|
}
|
var sn = j$(escapeVfId('Page:Form:searchBlock:stay')).val();
|
if (sn != '') {
|
baseUrl += '&sn=' + encodeURI(sn);
|
}
|
var l = j$(escapeVfId('Page:Form:searchBlock:limit')).val();
|
if (l != '') {
|
baseUrl += '&l=' + l;
|
}
|
|
baseUrl = baseUrl.replace("/apex/UserInProcess&", "/apex/UserInProcess?");
|
// alert(baseUrl);
|
document.location.href = baseUrl;
|
}
|
</script>
|
</head>
|
|
<apex:form id="Form">
|
<apex:actionFunction name="resetProcOptsJs" action="{!resetProcOpts}" rerender="searchBlock" />
|
<!-- <apex:actionFunction name="searchProcessInfoJs" action="{!searchProcessInfo}" rerender="allForm" oncomplete="unblockUI();" /> -->
|
<!-- <apex:param name="p1" assignTo="{!saveType}" value="" /> -->
|
<!-- <apex:param name="p2" assignTo="{!sortKey}" value="" /> -->
|
<!-- <apex:param name="p3" assignTo="{!family}" value="" /> -->
|
<!-- </apex:actionFunction> -->
|
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock id="searchBlock" tabStyle="Report">
|
<table style="font-size:12px;">
|
<tr>
|
<td width="40" style="text-align:right;">类型</td><td width="200"><apex:selectList id="sobj" value="{!sobj}" size="1" style="width:90%;" onchange="resetProcOptsJs();"><apex:selectOptions value="{!sObjectOpts}"/></apex:selectList></td>
|
<td width="80" style="text-align:right;">批准过程</td><td width="200"><apex:selectList id="proc" value="{!proc}" size="1" style="width:90%;" ><apex:selectOptions value="{!procOpts}"/></apex:selectList></td>
|
<td width="60" style="text-align:right;">被分配人</td>
|
<td width="130"><apex:inputField id="actor" value="{!dummyDr.Reporter__c}" style="width:90px;" /></td>
|
<td width="200px"></td>
|
<td width="60" style="text-align:right;">在职/离职</td><td width="80"><apex:selectList id="stay" value="{!stay}" size="1" style="width:90%;"><apex:selectOptions value="{!stayNotOpts}"/></apex:selectList></td>
|
<td width="10px"></td>
|
<td>显示 <apex:selectList id="limit" value="{!limits}" size="1" onchange="blockme(); searchProcessInfoJs(); return false;"><apex:selectOptions value="{!limitOpts}"/></apex:selectList> 条数据</td>
|
<td width="10px"></td>
|
<td><apex:commandButton value="检索" onclick="searchProcessInfoJs();" rerender="dummy"/></td>
|
</tr>
|
</table>
|
|
<apex:pageblocksection columns="1" title="批准过程" >
|
<apex:pageblocktable value="{!procRecords}" var="pr">
|
<apex:column >
|
<apex:facet name="header">类型</apex:facet>
|
<apex:outputText value="{!pr.sobjName}"/>
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">批准过程</apex:facet>
|
<apex:outputText value="{!pr.rec.ProcessInstance.ProcessDefinition.Name}"/>
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">相关项</apex:facet>
|
<!-- <a href="#" onclick="window.open('/{!pr.rec.ProcessInstance.TargetObjectId}', '', '')" >相关项</a> -->
|
<apex:outputField value="{!pr.rec.ProcessInstance.TargetObjectId}" />
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">被分配人</apex:facet>
|
<!-- <a href="#" onclick="window.open('/{!pr.rec.Id}/e?et=REASSIGN&retURL=%2Fapex%2FUserInProcess', '', '')" >重新分配</a> {!pr.rec.Actor.Name} -->
|
<a href="#" onclick="window.open('/{!pr.rec.Id}/e?et=REASSIGN&retURL=%2F{!pr.rec.ProcessInstance.TargetObjectId}', '', '')" >重新分配</a> {!pr.rec.Actor.Name}
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">{!$ObjectType.User.fields.Post__c.label}</apex:facet>
|
<apex:outputText value="{!pr.post}"/>
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">{!$ObjectType.User.fields.Stay_or_not__c.label}</apex:facet>
|
<apex:outputText value="{!pr.stayOrNot}"/>
|
</apex:column>
|
<apex:column >
|
<apex:facet name="header">{!$ObjectType.User.fields.Pregnant_Rest__c.label}</apex:facet>
|
<!-- <apex:outputText value="{!proc.pregnantRest}"/> -->
|
<apex:outputPanel rendered="{!NOT(pr.pregnantRest)}" layout="none"><img src="/img/checkbox_unchecked.gif" /></apex:outputPanel>
|
<apex:outputPanel rendered="{!pr.pregnantRest}" layout="none"><img src="/img/checkbox_checked.gif" /></apex:outputPanel>
|
</apex:column>
|
</apex:pageblocktable>
|
</apex:pageblocksection>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
</apex:page>
|