<apex:page id="page" standardController="TradeCustomerManager__c" extensions="TradeCustomerManagerController" sidebar="true" showHeader="true" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"/>
|
<style type="text/css">
|
.divObj{
|
width: 90%;
|
}
|
.divObj input[type="text"],select{
|
/*border:none;
|
outline: none;*/
|
height: 25px;
|
}
|
.divObj input,textarea,select{
|
/*background-color: #F0E68C;*/
|
}
|
.errorMessage{
|
font-size: 15px;
|
color:#FF0000;
|
}
|
.juzhong{
|
vertical-align:middle!important;
|
text-align: center;
|
}
|
.trHeight{
|
width: 100%;
|
border: 2px solid #151515;
|
border-bottom: 0px;
|
border-collapse: collapse;
|
}
|
.trHeight tr{
|
height: 30px;
|
border: 0px;
|
}
|
.trHeight td{
|
vertical-align:middle!important;
|
border: 0px;
|
/*text-align: center;*/
|
}
|
.isproject{
|
height: 30px;
|
width: 100%;
|
border: 2px solid #151515;
|
border-collapse: collapse;
|
border-bottom: 0px;
|
}
|
.isproject tr{
|
height: 30px;
|
border: 0px;
|
}
|
.isproject td{
|
vertical-align:middle!important;
|
border: 1px solid #151515;
|
/*text-align: center;*/
|
}
|
.fileTable{
|
width: 100%;
|
border:2px solid #151515;
|
border-collapse: collapse;
|
}
|
.fileTable th{
|
text-align: center;
|
padding:1px 5px 1px 5px;
|
border:1px solid #151515;
|
}
|
.fileTable tr{
|
height: 30px;
|
}
|
.fileTable td{
|
vertical-align:middle!important;
|
text-align: center;
|
padding:1px 5px 1px 5px;
|
border:1px solid #151515;
|
}
|
.buttonCss input,button{
|
text-decoration-color:#696969;
|
width: 80px;
|
line-height: 20px;
|
}
|
</style>
|
<script>
|
j$(document).ready(function() {
|
|
});
|
|
function noUpdate(){
|
var isOnClick = j$(escapeVfId("isOnClick")).value();
|
//j$(escapeVfId("page:messageForm:opportunityCode")).attr("style","display:none");
|
//j$(escapeVfId("page:messageForm:opportunityCode")).attr("readonly","readonly");
|
//j$(escapeVfId("page:messageForm:opportunityCode")).attr("type","hidden");display:none
|
}
|
|
function statusChabge(str,type){
|
if(type == "yes"){
|
j$(escapeVfId("page:messageForm:"+str+"no")).attr("checked",false);
|
}
|
if(type == "no"){
|
j$(escapeVfId("page:messageForm:"+str+"yes")).attr("checked",false);
|
}
|
}
|
function tradeCustomerApplaySave(){
|
var errorMessageValue = j$(escapeVfId("errorMessageValue")).value();
|
if (errorMessageValue!="1") {
|
var strList = errorMessageValue.split("-");
|
var errorStr = "";
|
for(var i = 0 ; i<strList.length ; i++){
|
errorStr += strList[i] + "\n";
|
}
|
alert(errorStr);
|
}
|
}
|
|
function saveAndBank(){
|
var errorMessageValue = j$(escapeVfId("errorMessageValue")).value();
|
if (errorMessageValue!="1") {
|
var strList = errorMessageValue.split("-");
|
var errorStr = "";
|
for(var i = 0 ; i<strList.length ; i++){
|
errorStr += strList[i] + "\n";
|
}
|
if(confirm(errorStr + '是否返回合同页?') == true){
|
returnOrder();
|
}
|
//noUpdate();
|
}else{
|
returnOrder();
|
}
|
}
|
|
function deleteFormJS(){
|
if(confirm('是否删除申请表?') == true){
|
deleteForm();
|
returnOrder();
|
}
|
}
|
|
function refreshPage(code,oppId){
|
getOppCode(code,oppId);
|
}
|
|
function openSearchOpp(){
|
var baseUrl = j$(escapeVfId("baseUrl")).value();
|
var DealerId = j$(escapeVfId("DealerId")).value();
|
//var repairId = j$(escapeVfId("repairId")).value();
|
window.open(baseUrl + '/apex/TradeCustomerManagerSearchOpp?DealerId='+DealerId,'pselect', 'width=700,height=600,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true);
|
}
|
|
function isDeleteFile(){
|
var isDeleteFile = j$(escapeVfId("isdeleteFile")).value();
|
if(isDeleteFile == "NO"){
|
alert("合同已提交,申请表附件不可删除!");
|
}
|
}
|
</script>
|
<div class="divObj">
|
<apex:form id="messageForm">
|
<input id="errorMessageValue" type="hidden" value="{!errorMessage}" />
|
<input type="hidden" id="baseUrl" value="{!baseUrl}"/>
|
<input type="hidden" id="isOnClick" value="{!isOnClick}"/>
|
<input type="hidden" id="DealerId" value="{!trade.DealerId__c}"/>
|
<input type="hidden" id="isdeleteFile" value="{!isdeleteFile}"/>
|
<apex:actionFunction name="returnOrder" action="{!returnOrder}" reRender="" oncomplete="">
|
</apex:actionFunction>
|
<apex:actionFunction name="deleteForm" action="{!deleteForm}" reRender="" oncomplete="">
|
</apex:actionFunction>
|
<apex:actionFunction name="getOppCode" action="{!getOppCode}" reRender="messageForm" oncomplete="">
|
<apex:param assignTo="{!trade.oppCodeLink__c}" name="code" value=""></apex:param>
|
<apex:param assignTo="{!trade.oppId__c}" name="oppId" value=""></apex:param>
|
</apex:actionFunction>
|
<table class="trHeight">
|
<tr>
|
<td class="juzhong" colspan="4">
|
<font style="font-size:25px;font-weight:bold;border-bottom:2px solid #000;">贸易管理悬念客户(B类)申请表</font>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="4"></td>
|
</tr>
|
<tr>
|
<td class="juzhong">
|
<font style="font-size:15px;font-weight:bold;">重复客户</font>
|
</td>
|
<td class="juzhong">
|
<apex:inputField value="{!trade.isAloneCustomer__c}"/>
|
</td>
|
<td colspan="2">
|
<font style="font-size: 5px;color: #FF0000;">填写提示:</font><br/>
|
<font style="color: #FF0000;">重复用户的定义:2年内曾被OCSM-B类审核通过的用户(具体到最终使用人),且同时满足以下a,b,c的条件。</font><br/>
|
<font style="color: #FF0000;">a.使用者的所属单位与部门没有发生变化。</font><br/>
|
<font style="color: #FF0000;">b.使用者仅用于民用的使用目的没有变化。</font><br/>
|
<font style="color: #FF0000;">c.使用者及其所属的机构(大学、研究机关、企业等)在上回审批通过后无违法行为及合规违反等问题的发生。</font>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="4"></td>
|
</tr>
|
<tr>
|
<td class="juzhong">
|
<font style="font-size:15px;font-weight:bold;">客户信息有更新</font>
|
</td>
|
<td class="juzhong">
|
<apex:inputField value="{!trade.customerInfoIsUpdate__c}"/>
|
</td>
|
<td class="juzhong" style="text-align:right;">
|
<font style="font-size:15px;font-weight:bold;">已被审核通过的询价号 </font>
|
</td>
|
<td>
|
|
<apex:outputPanel layout="none" rendered="{!IF(trade.oppCodeLink__c != null, true, false)}">
|
|
<apex:outputLink value="/{!trade.oppId__c}">{!trade.oppCodeLink__c}</apex:outputLink>
|
</apex:outputPanel>
|
<apex:commandButton onclick="openSearchOpp();return false;" value="选择询价" disabled="{!isOnClick}"/>
|
<apex:outputPanel layout="none" rendered="{!IF(trade.oppCodeLink__c == null, true, false)}">
|
|
|
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(trade.oppCodeLink__c != null, true, false)}">
|
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</table>
|
<table class="trHeight">
|
<tr style="height: 0px">
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
<td style="width: 10%"></td>
|
</tr>
|
<tr>
|
<td class="juzhong" colspan="10">
|
<font style="font-size:15px;font-weight:bold;">使用者及用途信息</font>
|
</td>
|
</tr>
|
<tr>
|
<td><font style="font-size:15px;">最终用户</font></td>
|
<td colspan="2"><apex:outputField value="{!trade.endUser__c}"/></td>
|
<td></td>
|
<td><font style="font-size:15px;">职务</font></td>
|
<td colspan="2"><apex:inputField value="{!trade.work__c}" style="width: 96%;"/></td>
|
<td colspan="3"></td>
|
</tr>
|
<tr>
|
<td><font style="font-size:15px;">购买目的</font></td>
|
<td colspan="2"><apex:inputField value="{!trade.buyTo__c}" style="width: 96%;"/></td>
|
<td></td>
|
<td><font style="font-size:15px;">观察对象</font></td>
|
<td colspan="2"><apex:inputField value="{!trade.watchObject__c}" style="width: 96%;"/></td>
|
<td colspan="3"></td>
|
</tr>
|
<tr>
|
<td>
|
<font style="font-size:15px;">研究方向</font>
|
</td>
|
<td colspan="2">
|
<apex:inputField value="{!trade.studyDirection__c}" style="width: 96%;"/>
|
</td>
|
<td></td>
|
<td>
|
<font style="font-size:15px;">应用领域</font>
|
</td>
|
<td colspan="2">
|
<apex:inputField value="{!trade.application__c}" style="width: 96%;"/>
|
</td>
|
<td colspan="3"></td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
<font style="font-size:15px;">用户是否有个人网址</font>
|
</td>
|
<td>
|
<apex:inputField id="isHaveLink__c" onchange="" value="{!trade.isHaveLink__c}"/>
|
</td>
|
<td colspan="7"></td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
<font style="font-size:15px;">IF YES,个人网址链接信息</font>
|
</td>
|
<td colspan="8">
|
<apex:inputField value="{!trade.peopleLink__c}" style="width: 96%;" html-placeholder="LINK"/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
|
</td>
|
<td colspan="8">
|
<apex:commandButton id="uploadFileButton2" action="{!uploadFile}" style="" onclick="blockme();" value="上传文件" disabled="{!isOnClick}"/>
|
<apex:outputPanel rendered="{!IF(personalListSize == 0,true,false)}">
|
同步上传个人网址PDF文件(附件命名规则:个人信息+询价号+使用者个人信息)
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(personalListSize != 0,true,false)}">
|
|
<apex:repeat id="personalFileList" value="{!personalFileList}" var="att">
|
<apex:commandLink id="seePersonalFileLink" value="{!att.Name}" action="{!seeFile}" onclick="blockme();" oncomplete="unblockUI();" reRender="messageForm">
|
<apex:param name="fileIdSee" assignTo="{!fileIdSee}" value="{!att.Id}" />
|
</apex:commandLink>
|
</apex:repeat>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr class="" id="isHaveLinkNo">
|
<td colspan="2">
|
<font style="font-size:15px;">IF NO,所在单位网址</font>
|
</td>
|
<td colspan="8">
|
<apex:inputField value="{!trade.companyLink__c}" style="width: 96%;" html-placeholder="如单位无官网,请用文字对该企业进行简单介绍"/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
<font style="font-size:15px;">是否单独部品采购</font>
|
</td>
|
<td>
|
<apex:inputField value="{!trade.isAlone__c}"/>
|
</td>
|
<td>
|
<font style="font-size:15px;">IF YES,主机型号:</font>
|
</td>
|
<td colspan="3">
|
<apex:inputField value="{!trade.model__c}" style="width: 96%;"/>
|
</td>
|
<td>
|
<font style="font-size:15px;">IF YES,主机合同号:</font>
|
</td>
|
<td colspan="2">
|
<apex:inputField value="{!trade.contractNum__c}" style="width: 96%;"/>
|
</td>
|
</tr>
|
<!-- <tr>
|
<td colspan="2">
|
<font style="font-size:15px;">是否PC/显示器采购</font>
|
</td>
|
<td>
|
<apex:inputField value="{!trade.isPC__c}"/>
|
</td>
|
<td>
|
<font style="font-size:15px;">IF YES,主机型号:</font>
|
</td>
|
<td colspan="3">
|
<apex:inputField value="{!trade.PCmodel__c}" html-placeholder="主机型号+SET+(最终用户单位名)" style="width: 96%;"/>
|
</td>
|
<td>
|
<font style="font-size:15px;">IF YES,主机合同号:</font>
|
</td>
|
<td colspan="2">
|
<apex:inputField value="{!trade.PCcontractNum__c}" style="width: 96%;"/>
|
</td>
|
</tr> -->
|
</table>
|
|
<table class="isproject" cellspacing="0" cellpadding="1">
|
<tr style="height: 0px;border: 0px;">
|
<td style="width: 10%;border: 0px"></td>
|
<td style="width: 10%;border: 0px"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
<td style="width: 10%;border: 0px;"></td>
|
</tr>
|
<tr>
|
<td colspan="10" class="juzhong" style="border-top: 0px">
|
<span style="font-size:15px;">确认项目</span>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9" >
|
<span>用途确认:</span><br/>
|
<span>是否属于核武器/军用武器的开发、制造、使用、储存</span>
|
</td>
|
<td>
|
<apex:inputField id="useyes" onchange="statusChabge('use','yes')" value="{!trade.useYes__c}" style="height: "/>YES<br/>
|
<apex:inputField id="useno" onchange="statusChabge('use','no')" value="{!trade.useNo__c}"/>NO
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9" >
|
<span>用途确认:</span><br/>
|
<span>是否有参与核燃料物质或者核原料物质、核反应堆的开发、制造、使用、储藏及核融合的关联研究</span>
|
</td>
|
<td>
|
<apex:inputField id="fuelyes" onchange="statusChabge('fuel','yes')" value="{!trade.isFuelYes__c}" style="height: "/>YES<br/>
|
<apex:inputField id="fuelno" onchange="statusChabge('fuel','no')" value="{!trade.isFuelNo__c}"/>NO
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9" >
|
<span>用户确认:</span><br/>
|
<span>用户当前或过去是否关联核武器/军用武器的开发、制造、使用、储存</span>
|
</td>
|
<td>
|
<apex:inputField id="useryes" onchange="statusChabge('user','yes')" value="{!trade.userYes__c}"/>YES<br/>
|
<apex:inputField id="userno" onchange="statusChabge('user','no')" value="{!trade.userNo__c}"/>NO
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9" >
|
<span>场所确认:</span><br/>
|
<span>安装场所或使用场所是否在军事禁区或邻近军事军区或机密级别要求高的区域</span>
|
</td>
|
<td>
|
<apex:inputField id="placeyes" onchange="statusChabge('place','yes')" value="{!trade.placeYes__c}"/>YES<br/>
|
<apex:inputField id="placeno" onchange="statusChabge('place','no')" value="{!trade.placeNo__c}"/>NO
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9" >
|
<span>产品配件确认:</span><br/>
|
<span>配件是否超出了常规配置</span>
|
</td>
|
<td>
|
<apex:inputField id="productyes" onchange="statusChabge('product','yes')" value="{!trade.productYes__c}"/>YES<br/>
|
<apex:inputField id="productno" onchange="statusChabge('product','no')" value="{!trade.productNo__c}"/>NO
|
</td>
|
</tr>
|
<tr>
|
<td style="vertical-align:text-top!important;text-align: center;">
|
<span style="font-size:15px;">备注:</span>
|
</td>
|
<td colspan="9" >
|
<apex:inputField value="{!trade.remark__c}" style="width: 98%;" html-placeholder="确认项目有任何一项选yes,备注必填" />
|
</td>
|
</tr>
|
<tr>
|
<td colspan="10">
|
<span style="font-size:15px;">使用者的军用关联web检索链接</span>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="10">
|
<apex:inputField value="{!trade.militaryLink__c}" style="width: 98%" html-placeholder="搜索关键词格式:“公司名 使用者姓名 军事” 关键词中间需空一格。链接请不要含中文字符。"/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="10" style="border-bottom: 0px;">
|
<!-- <apex:outputPanel rendered="{!IF(militaryListSize == 0,true,false)}"> -->
|
<span style="font-size:15px;">同步上传军事关联web检索PDF文件</span>
|
<span>附件命名规则:军事+询价号+军事关联web检索</span>
|
<!-- </apex:outputPanel> -->
|
|
<apex:commandButton id="uploadFileButton3" action="{!uploadFile}" style="width: 80px; line-height: 20px;" onclick="blockme();" value="上传文件" disabled="{!isOnClick}">
|
</apex:commandButton>
|
|
<apex:outputPanel rendered="{!IF(militaryListSize != 0,true,false)}">
|
|
<apex:repeat id="militaryFileList" value="{!militaryFileList}" var="att">
|
<apex:commandLink id="militaryListSize" value="{!att.Name}" action="{!seeFile}" onclick="blockme();" oncomplete="unblockUI();" reRender="messageForm">
|
<apex:param name="fileIdSee" assignTo="{!fileIdSee}" value="{!att.Id}" />
|
</apex:commandLink>
|
</apex:repeat>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</table>
|
<table class="fileTable" cellspacing="0" cellpadding="1">
|
<tr>
|
<td colspan="4" style="text-align: left;">
|
<span style="font-size:15px;">其他附件</span>
|
<apex:commandButton id="uploadFileButton1" action="{!uploadFile}" style="width: 80px; line-height: 20px;" onclick="blockme();" value="上传文件" disabled="{!isOnClick}">
|
</apex:commandButton>
|
</td>
|
</tr>
|
<tr>
|
<th>文件名</th>
|
<th>上传时间</th>
|
<th>创建人</th>
|
<th>操作</th>
|
</tr>
|
<apex:repeat id="fileList" value="{!fileListNew}" var="att">
|
<tr>
|
<td>{!att.Name}</td>
|
<td><apex:inputField value="{!att.CreatedDate}" style="margin:1px 10px 1px 2px;"/></td>
|
<td><apex:inputField value="{!att.CreatedById}"/></td>
|
<td>
|
<apex:commandLink id="deleteFileLink" value="删除" action="{!deleteFile}" onclick="blockme();" oncomplete="unblockUI();isDeleteFile();" reRender="messageForm">
|
<apex:param name="fileIdDelete" assignTo="{!fileIdDelete}" value="{!att.Id}" />
|
</apex:commandLink>
|
|
<apex:commandLink id="seeFileLink" value="详情" action="{!seeFile}" onclick="blockme();" oncomplete="unblockUI();" reRender="messageForm">
|
<apex:param name="fileIdSee" assignTo="{!fileIdSee}" value="{!att.Id}" />
|
</apex:commandLink>
|
</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
<div style="display: table;margin:0 auto;width:auto;">
|
<div style="display: table;margin:0 auto;width:auto;float: left;">
|
<apex:commandButton id="saveButton" action="{!send}" style="width: 80px; line-height: 20px;" value="保存" onclick="blockme();" oncomplete="unblockUI();tradeCustomerApplaySave();" reRender="messageForm" disabled="{!isOnClick}">
|
<apex:param name="saveSend" assignTo="{!sendType}" value="send"></apex:param>
|
</apex:commandButton>
|
</div>
|
<div style="display: table;margin:0 auto;width:auto;float: left;">
|
<apex:commandButton id="saveAndBankButton" action="{!send}" style="width: 80px; line-height: 20px;" onclick="blockme();" reRender="messageForm" oncomplete="unblockUI();saveAndBank();" value="保存并返回" disabled="{!isOnClick}">
|
<apex:param name="saveSend" value="send" assignTo="{!sendType}" />
|
</apex:commandButton>
|
</div>
|
<!-- action="{!deleteForm}" -->
|
<div style="display: table;margin:0 auto;width:auto;float: left;">
|
<apex:commandButton id="deleteButton" style="width: 80px; line-height: 20px;" value="删除申请表" onclick="blockme();deleteFormJS();" disabled="{!isOnClick}">
|
</apex:commandButton>
|
</div>
|
|
</div>
|
<!-- <div class="errorMessage" style="display: table;margin:0 auto;width:auto;">
|
<span id="errorMessage">{!errorMessage}</span>
|
</div> -->
|
<div class="errorMessage" style="display: table;margin:0 auto;width:auto;font-size: 15px;color:#00FF00;">
|
<span id="errorMessage">{!saveYes}</span>
|
</div>
|
</apex:form>
|
</div>
|
</apex:page>
|