<apex:page controller="AccountTargetTabController" showChat="false" showHeader="false" sidebar="false" action="{!init}" id="Page">
|
<title>目标数</title>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<style type="text/css">
|
table {border-collapse: collapse;}
|
</style>
|
<script type="text/javascript">
|
function checkNum(val, id) {
|
if (val != "" && isNaN(parseInt(val))) {
|
alert("请输入数值");
|
document.getElementById(id).focus();
|
return;
|
}
|
}
|
function setReadonly() {
|
var cnt = j$(escapeVfId('datasize')).value();
|
var flg = j$(escapeVfId('Page:Form:ispast')).value();
|
if (flg == "true") {
|
for (var i = 0; i < cnt; i++) {
|
j$(escapeVfId('Page:Form:repeat:' + i + ':field1')).attr("readonly",true);
|
j$(escapeVfId('Page:Form:repeat:' + i + ':field2')).attr("readonly",true);
|
// 2020/07/15 taoqz add start
|
j$(escapeVfId('Page:Form:repeat:' + i + ':field4')).attr("disabled",true);
|
// 2020/07/15 taoqz add end
|
}
|
j$(escapeVfId('Page:Form:submitCustomerTarget')).attr("disabled",true);
|
j$(escapeVfId('Page:Form:DepartmentBudgetSumPrice')).attr("readonly",true);
|
j$(escapeVfId('Page:Form:Proposal_target_customer')).attr("disabled",true);
|
}
|
}
|
</script>
|
|
<apex:form id="Form">
|
<div style="height: 265px; overflow-y: auto;">
|
<apex:pageMessages />
|
|
<apex:outputPanel layout="none" rendered="{!NOT(ISNULL(history))}">
|
<script type="text/javascript">
|
var refreshAll = '{!refreshAll}';
|
var dupliErr = '{!dupliErr}';
|
if (refreshAll == "true") {
|
// 新規後
|
if (dupliErr == "true") {
|
//WLIG-BV8CHF 20201222 you start
|
var ocmperiod= '{!history.rec.OCM_Period__c}'.substring(0, 3);
|
alert("FY"+(parseInt(ocmperiod,10)+1868)+"的数据已经存在。");
|
//alert("{!history.rec.OCM_Period__c}的数据已经存在。");
|
//WLIG-BV8CHF 20201222 you end
|
// defaultの期のデータを表示
|
parent.location.href='/apex/AccountTargetHospital?id={!accid}&t={!dupliID}';
|
} else {
|
// 新規したデータを表示
|
parent.location.href='/apex/AccountTargetHospital?id={!accid}&t={!history.rec.Id}';
|
}
|
}
|
</script>
|
|
<table id="ocmTbl">
|
<tr>
|
<apex:outputPanel rendered="{!ISBLANK(history.rec.Id)}" layout="none">
|
<td style="text-align: right;">OCSM年度 </td>
|
<td width="80">
|
<apex:selectList value="{!history.rec.OCM_Year__c}" size="1" style="width:98%"><apex:selectOptions value="{!ocmYearOptions}"/></apex:selectList>
|
</td>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!NOT(ISBLANK(history.rec.Id))}" layout="none">
|
<td></td><td></td>
|
</apex:outputPanel>
|
<td width="100"><apex:commandButton id="savebtn" value="保存" action="{!save}" rerender="Form" style="width:98%;"/></td>
|
</tr>
|
</table>
|
|
<apex:inputHidden id="ispast" value="{!history.isPast}"/>
|
<input type="hidden" id="datasize" value="{!dataSize}"/>
|
|
<table border="1" id="table">
|
|
<!-- lt 目标客户的画面调整 20220106 start -->
|
<tr>
|
<!-- 左 -->
|
<td>
|
<table border="1" frame="void">
|
<tr>
|
<th width="100" style="height:20px;"> </th>
|
<th width="100" style="text-align: center;">目标数</th>
|
</tr>
|
<apex:variable value="{!1}" var="cnt" />
|
<apex:repeat value="{!history.dataList}" var="data" id="repeat">
|
<tr>
|
<td style="height:20px;">{!data.label1}</td>
|
<td style="text-align: center;">
|
<apex:inputField value="{!history.rec[data.field1]}" style="width:90%; height:14px; text-align: right; ime-mode: disabled;" id="field1" onblur="checkNum(this.value, this.id);" />
|
</td>
|
</tr>
|
<apex:variable value="{!cnt + 1}" var="cnt" />
|
</apex:repeat>
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Proposal_target_customer__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Proposal_target_customer__c}" style="width:50%; height:14px; text-align: center;" id="Proposal_target_customer"/>
|
</td>
|
</tr>
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Submit_Customer_target_new__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Submit_Customer_target_new__c}" style="width:50%; height:14px; text-align: center;" id="submitCustomerTarget"/>
|
</td>
|
</tr>
|
<tr>
|
<td style="width:120px;height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Department_Budget_Sum_Price__c.label}</td>
|
<td style="text-align: center;">
|
<apex:inputField value="{!history.rec.Department_Budget_Sum_Price__c}" style="width:90%; height:14px; text-align: right;" id="DepartmentBudgetSumPrice"/>
|
</td>
|
</tr>
|
<!-- 2022/01/07 ssm 左侧空行 start -->
|
<apex:repeat value="{!history.emptyLineLeft}" var="ell" id="ell_repeat">
|
<tr>
|
<td style="height:20px;"></td>
|
<td ></td>
|
</tr>
|
</apex:repeat>
|
<!-- 2022/01/07 ssm 左侧空行 end -->
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.TargetCustomerModifier__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.TargetCustomerModifier__c}" style="width:90%; height:14px; text-align: right;" />
|
</td>
|
</tr>
|
</table>
|
</td>
|
|
<!-- 右 -->
|
<td>
|
<table border="1" frame="void">
|
<tr>
|
<th width="110" style="height:20px;"> </th>
|
<th width="100" style="text-align: center;">金额</th>
|
<th width="130"> </th>
|
<!-- <th width="100" style="text-align: center;">主机数</th> -->
|
<th width="100"> </th>
|
</tr>
|
<tr>
|
<td style="width:180px;height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Opp_Actual_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Opp_Actual_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.RivalCustomers_first__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.RivalCustomers_first__c}" style="width:90%; text-align: right;" />
|
</td>
|
</tr>
|
<tr>
|
<!-- 20220331 lt 今年注残字段修改 3.6.位置互换 -->
|
<!-- <td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.BO_Forecast_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.BO_Forecast_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td> -->
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Opportunity_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Opportunity_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.RivalHostsProportion_first__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.RivalHostsProportion_first__c}" style="width:90%; text-align: right;" />
|
</td>
|
</tr>
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.OP_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.OP_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.RivalHostsNumber__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.RivalHostsNumber__c}" style="width:90%; text-align: right;" />
|
</td>
|
<!-- <td ></td>
|
<td ></td> -->
|
</tr>
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Opp_Forecast_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Opp_Forecast_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.RivalHostsNumber_first__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.RivalHostsNumber_first__c}" style="width:90%; text-align: right;" />
|
</td>
|
<!-- <td ></td>
|
<td ></td> -->
|
</tr>
|
<tr>
|
<!-- 20220331 lt 今年注残字段修改 3.6.位置互换 -->
|
<!-- <td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.Opportunity_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.Opportunity_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td> -->
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.BO_Forecast_ThousandY__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.BO_Forecast_ThousandY__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.AllHostsNumber__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.AllHostsNumber__c}" style="width:90%; text-align: right;" />
|
</td>
|
<!-- <td ></td>
|
<td ></td> -->
|
</tr>
|
<!-- 2022/01/07 ssm 右侧最后的地方拆成2行 与之前的效果保持一致 start -->
|
<tr>
|
<td style="height:20px;"></td>
|
<td style=""></td>
|
<td>{!$ObjectType.Account_Number_of_target__c.fields.AllHostsNumber_first__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.AllHostsNumber_first__c}" style="width:90%; text-align: right;" />
|
</td>
|
</tr>
|
<!-- 2022/01/07 ssm 右侧补空行 start -->
|
<apex:repeat value="{!history.emptyLineRight}" var="elr" id="elr_repeat">
|
<tr>
|
<td style="height:20px;"></td>
|
<td ></td>
|
<td ></td>
|
<td ></td>
|
</tr>
|
</apex:repeat>
|
<!-- 2022/01/07 ssm 右侧补空行 end -->
|
<tr>
|
<td style="height:20px;">{!$ObjectType.Account_Number_of_target__c.fields.TargetCustomerMTIME__c.label}</td>
|
<td style="text-align: center;">
|
<apex:outputField value="{!history.rec.TargetCustomerMTIME__c}" style="width:90%; text-align: right;" />
|
</td>
|
<td ></td>
|
<td ></td>
|
</tr>
|
<!-- 2022/01/07 ssm 右侧最后的地方拆成2行 与之前的效果保持一致 end -->
|
</table>
|
</td>
|
</tr>
|
<!-- lt 目标客户的画面调整 20220106 end -->
|
</table>
|
|
<script>
|
setReadonly();
|
</script>
|
|
</apex:outputPanel>
|
</div>
|
</apex:form>
|
</apex:page>
|