<apex:page controller="UploadOBPMController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="上传OBPM">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<script>
|
sforce.connection.sessionId = '{!$Api.Session_ID}';
|
// function addJs(){
|
// blockme();
|
// addLine();
|
// }
|
function uploadJs(){
|
var IF_Approved = j$(escapeVfId('IF_Approved')).value();
|
if(IF_Approved == 'true'){
|
blockme();
|
uploadOBPM();
|
} else{
|
alert("此会议不需要申请决裁!");
|
}
|
}
|
function uploadSuccess(){
|
alert('上传OBPM成功!');
|
window.close();
|
}
|
function closeJs(){
|
window.close();
|
}
|
function deleteJs(line){
|
blockme();
|
deleteLine(line);
|
}
|
</script>
|
<apex:form id="allForm">
|
<apex:actionFunction name="addLine" action="{!addLine}" rerender="allForm,allPanel,allBlock,records" oncomplete="unblockUI();">
|
</apex:actionFunction>
|
<apex:actionFunction name="deleteLine" action="{!deleteLine}" rerender="allForm,allPanel,allBlock,records" oncomplete="unblockUI();">
|
<apex:param name="firstParam" assignTo="{!lineNo}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="uploadOBPM" action="{!uploadOBPM}" rerender="allForm,allPanel,allBlock,records" oncomplete="unblockUI();uploadSuccess();">
|
</apex:actionFunction>
|
<apex:outputPanel id="allPanel">
|
<input type="hidden" id="hasError" value="{!hasError}"/>
|
<input type="hidden" id="IF_Approved" value="{!IF_Approved}"/>
|
<apex:pageBlock id="allBlock">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton immediate="true" onclick="uploadJs();return false;" value="上传OBPM"/>
|
<apex:commandButton immediate="true" action="{!addLine}" onclick="blockme();" value="添加行"/>
|
<apex:commandButton immediate="true" onclick="closeJs();" value="关闭"/>
|
</apex:pageBlockButtons>
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<input type="hidden" id="hasError" value="{!hasError}"/>
|
<label>申请决裁时如需要共同编辑人和抄送人,请填入下表:</label>
|
<table class="linetable" border="1" style="border-collapse: collapse;width:590px;table-layout:fixed;">
|
<colgroup>
|
<col width="40px"/>
|
<col width="350px"/>
|
<col width="150px"/>
|
<col width="50px"/>
|
</colgroup>
|
<tr style="background-color:#DCDCDC;">
|
<th style="text-align:center">No.</th>
|
<th style="text-align:center">社内人员</th>
|
<th style="text-align:center">角色</th>
|
<th style="text-align:center">操作</th>
|
</tr>
|
</table>
|
<div style="width:610px;height:260px;overflow:auto;">
|
<table id="linetable" class="linetable" border="1" style="border-collapse: collapse;width:590px;table-layout:fixed;">
|
<colgroup>
|
<col width="40px"/>
|
<col width="350px"/>
|
<col width="150px"/>
|
<col width="50px"/>
|
</colgroup>
|
<apex:repeat value="{!OBPMInfoList}" var="OBPMInfo" id="records">
|
<tr>
|
<td align="center">
|
<apex:outputText id="line" value="{!OBPMInfo.line}"></apex:outputText>
|
</td>
|
<td align="center">
|
<apex:inputField id="department" value="{!OBPMInfo.cam.Shared_User__c}" style="width:95%;"></apex:inputField>
|
</td>
|
<td align="center">
|
<!-- <select name = "pronvince" style="width:85%;">
|
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
|
<option value ="共同编辑人">共同编辑人</option>
|
<option value ="抄送人">抄送人</option>
|
</select> -->
|
<apex:selectList value="{!OBPMInfo.Role}" size="1" style="position: relative; top: 6px;">
|
<apex:selectOptions value="{!items}"/>
|
</apex:selectList><p/>
|
</td>
|
<td align="center">
|
<input style="width:90%;" type="button" value="删除" onclick="deleteJs({!OBPMInfo.line})"/>
|
</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
</div>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
|
</apex:page>
|