zhangzhengmei
2023-05-29 15791f058aef8363b7bc690f49325e8fa1241287
force-app/main/default/pages/SetPersonalProductTarget.page
@@ -1,4 +1,4 @@
<apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}">
<apex:page id="allPage" showHeader="false" sidebar="false" Controller="SetPersonalProductTargetController" action="{!init}" lightningStylesheets="true">
<head>
<title>担当者重点产品目标设定</title>
<!-- 2018年7月25日 SWAG-B2Z344 by 张玉山
@@ -8,6 +8,34 @@
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<style type="text/css">
     body input[type="text"], .slds-vf-scope input[type="text"] {
        padding: 0;
    }
    table > tbody > tr > th, .slds-vf-scope .listViewport table > tr > td, .slds-vf-scope .listViewport table > tr > th {
        padding: .2rem;
    }
    body .bPageBlock.apexDefaultPageBlock {
        border-top: 2px solid #cfc1c1;
    }
    #crossTable th ,#topTable th, #topTable ,#bodyTable{
        border-right: 1px solid #c9c9c9;
    }
    #leftTable , #crossTable {
        border-left: 1px solid #c9c9c9;
    }
    #leftTable,#bodyTable {
        border-bottom: 1px solid #c9c9c9;
    }
.StandLeft{
}
@@ -139,7 +167,7 @@
    // 2018年7月6日 SWAG-AZHBH7  添加UpdateJs 调用Apex 中Update函数 by 张玉山
function UpdateJs() {
    blockme_dark();
    if (window.confirm('确定要反应到目标吗?')) {
    if (window.confirm('确定要反映到目标吗?')) {
        Update();
    } else {
        unblockUI();
@@ -244,7 +272,7 @@
}
//CHAN-BDQBLX  20210129 ljh end 
/*****************************/
var heightAjustment = 160;
var heightAjustment = 180;
var widthAjustment = 15;
function windowResize() {
    blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:headBlock')).height() - j$('div#MessageBlock').height() - heightAjustment;
@@ -394,7 +422,7 @@
            <apex:outputPanel id="popupBox" layout="block">
                <input type="file" id="file_input" name="attFile" accept=".csv" /><br/>
                <center>
                    <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" />
                    <apex:commandButton value="确认" onclick="remoteLocationPost(); return false;" style="width: 20%; " />
                    <apex:commandButton value="取消" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" />
                </center>
            </apex:outputPanel>
@@ -416,32 +444,32 @@
        <table id="ButtonTable" border="0" >
            <tr>
                <td>
                    本部&nbsp;<apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>&nbsp;&nbsp;&nbsp;
                    省&nbsp;<apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField>&nbsp;&nbsp;&nbsp;
                    本部 <apex:selectList value="{!salesDpt}" size="1" style="width:120px;" disabled="{!!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)}" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>
                    省 <apex:inputField id="province" value="{!loginUser.Province__c}" style="width:90px;" onchange="searchByProvinceJs();return false;"></apex:inputField>
                <script type="text/javascript">
                    var isadmin = {!(loginUser.ProfileId == $Label.ProfileId_SystemAdmin || loginUser.ProfileId == $Label.ProfileId_103)};
                    if (!isadmin) {
                        j$(escapeVfId('allPage:allForm:headBlock:province')).attr("disabled",true);
                    }
                </script>
                    职种&nbsp;<apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;">
                    职种 <apex:selectList id="jobCategory" value="{!loginUser.Job_Category__c}" size="1" style="width:80px;" onchange="searchByFilterJs();return false;">
                        <apex:selectOptions value="{!userJobCategorys}"/>
                    </apex:selectList>&nbsp;&nbsp;&nbsp;
                    {!$ObjectType.User.fields.Consumable_sales__c.Label}&nbsp;<apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField>&nbsp;&nbsp;&nbsp;
                    产品担当&nbsp;
                    </apex:selectList>
                    {!$ObjectType.User.fields.Consumable_sales__c.Label} <apex:inputField value="{!loginUser.Consumable_sales__c}" style="width:80px;" onchange="searchByFilterJs();return false;"></apex:inputField>
                    产品担当
                    <apex:selectList value="{!productUser}" size="1" style="width:100px;" onchange="searchByFilterJs();return false;">
                        <apex:selectOptions value="{!productUserOptions}"/>
                    </apex:selectList>&nbsp;&nbsp;&nbsp;
                    <!-- xiongyl重点产品&nbsp;
                    </apex:selectList>
                    <!-- xiongyl重点产品
                    <apex:selectList value="{!opp.Important_Key_product_category__c}" id="impKey" size="1" style="width:280px;" onchange="searchByImpKeyJs();return false;">
                        <apex:selectOptions value="{!impProductOptions}"/>
                    </apex:selectList>&nbsp;&nbsp;&nbsp;!-->
                    <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="经理以下" for="checkAll"/>&nbsp;&nbsp;&nbsp;
                    </apex:selectList>   !-->
                    <apex:inputCheckBox id="checkAll" value="{!checkAll}" onchange="searchByFilterJs(); false;"/><apex:outputLabel value="经理以下" for="checkAll"/>
                    <input type="hidden" id="targetCategory" value="{!target_category}"/>
                    <input type="hidden" id="titileSize" value="{titileSize}"/>
                </td>
                <td align="right" width="10%">
                    <apex:commandButton value="反应到目标" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/>
                    <apex:commandButton value="反映到目标" rerender="dummy" onclick="UpdateJs();return false;" rendered="{!Not(isPast)}"/>
                </td>
                <!--CHAN-BDQBLX  20210129 ljh start -->
                <td>
@@ -511,7 +539,7 @@
                </table>
        </div>
          <div id="out_Div">
         <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="topTable">
         <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;width:100%;" border="0"  cellspacing="0" cellpadding="0" id="topTable">
              <thead>
                <tr class="headerRow" id="header_R">
                    <apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat_R_2">
@@ -536,8 +564,9 @@
            </tbody>
            </table>
        </div>
        <div style="clear:both;height:0px;"></div>
        <div id="in_Div_L" >
            <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="leftTable">
            <table class="list" style="table-layout:fixed;"  cellspacing="0" cellpadding="0" id="leftTable">
                    <apex:variable value="{!1}" var="cnt" />
                    <apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat_L">
                    <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" id="dataRow_L">
@@ -557,7 +586,7 @@
        </div>
      
        <div id="in_Div">
        <table  class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" border="0"  cellspacing="0" cellpadding="0" id="bodyTable">
        <table  class="list" style="border-collapse: collapse;table-layout:fixed;"  cellspacing="0" cellpadding="0" id="bodyTable">
            
            <tbody>
                 </tbody>