From 5f8c97f8716088019ad9a0302c5dea461bc668b1 Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期一, 07 八月 2023 15:35:56 +0800
Subject: [PATCH] CIC相关按钮
---
force-app/main/default/pages/SetProductTarget.page | 62 ++++++++++++++++++++++--------
1 files changed, 45 insertions(+), 17 deletions(-)
diff --git a/force-app/main/default/pages/SetProductTarget.page b/force-app/main/default/pages/SetProductTarget.page
index 1d7d87f..d053c14 100644
--- a/force-app/main/default/pages/SetProductTarget.page
+++ b/force-app/main/default/pages/SetProductTarget.page
@@ -1,4 +1,4 @@
-<apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProductTargetController" action="{!init}">
+<apex:page id="Page" showHeader="false" sidebar="false" Controller="SetProductTargetController" action="{!init}" lightningStylesheets="true">
<head>
<title>鍚勭渷閲嶇偣浜у搧鐩爣璁惧畾</title>
@@ -6,6 +6,33 @@
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.jqueryTableFix)}"/>
+<style>
+ 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;
+ }
+ /*#Page\:Form\:editBlock > div.pbBody {
+ height: 500px;
+ }*/
+
+ #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;
+ }
+
+</style>
<script type="text/javascript">
window.onload = function getInfo() {
@@ -247,7 +274,7 @@
for(var i = 0; i< tbl.rows.length;i++){
if(document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp")){
document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp").style.display="none";
- document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").style.width="80%";
+ document.getElementById("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").style.width="99%";
}
//j$("Page:Form:dataBlock:dbRepeat_L:"+i+":owner_mlktp").attr('display','none');
//j$("Page:Form:dataBlock:dbRepeat_L:"+i+":owner").css("width","80%");
@@ -322,7 +349,7 @@
</script>
<style>
.TestCss{
- width:80%;
+ width:99%;
}
div#out_Div {
position:relative;
@@ -395,20 +422,20 @@
<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>
</apex:outputPanel>
<!--CHAN-BDQBLX 20210205 ljh end -->
<apex:pageBlock id="headBlock" tabStyle="Report">
- <table id="ButtonTable" border="0" width="100%">
+ <table id="ButtonTable" border="0" width="100%" style='margin-bottom: 5px;'>
<tr>
<td>
- 鏈儴 <apex:selectList value="{!salesDpt}" size="1" style="width:120px" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>
- 鐪� <apex:inputField value="{!opp.SAP_Province__c}" id="province" style="width:140px" onchange="searchByProvinceJs();return false;"></apex:inputField>
- <!-- 閲嶇偣鐩爣鍒嗙被 <apex:selectList value="{!target_category}" size="1" style="width:140px" onchange="searchByCategoryJs();return false;"><apex:selectOptions value="{!targetOpts}"/></apex:selectList>
- 閲嶇偣浜у搧
+ 鏈儴 <apex:selectList value="{!salesDpt}" size="1" style="width:120px" onchange="searchByDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>
+ 鐪� <apex:inputField value="{!opp.SAP_Province__c}" id="province" style="width:140px" onchange="searchByProvinceJs();return false;"></apex:inputField>
+ <!-- 閲嶇偣鐩爣鍒嗙被 <apex:selectList value="{!target_category}" size="1" style="width:140px" onchange="searchByCategoryJs();return false;"><apex:selectOptions value="{!targetOpts}"/></apex:selectList>
+ 閲嶇偣浜у搧
<apex:selectList value="{!opp.Important_Key_product_category__c}" id="impKey" size="1" style="width:200px;" onchange="searchByImpKeyJs();return false;">
<apex:selectOptions value="{!impProductOptions}"/>
</apex:selectList>-->
@@ -418,15 +445,15 @@
<!-- ljh 鏍峰紡璋冩暣 20210204 start -->
<!--CHAN-BDQBLX 20210204 ljh end -->
<td align="right">
- <apex:commandButton value="鍙嶅簲鍒扮洰鏍�" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/>
+ <apex:commandButton value="鍙嶆槧鍒扮洰鏍�" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}" id="setTarget"/>
<apex:commandbutton onclick="exportJs();return false;" id="export" value="瀵煎嚭鏁版嵁妯℃澘"></apex:commandbutton>
<apex:commandButton onclick="openPopupCSV(); return false;" value="瀵煎叆" rerender="Form"/>
</td>
<!--CHAN-BDQBLX 20210204 ljh end -->
</tr>
</table>
- <table id="ButtonTable" border="0" width="100%">
- <tr>
+ <table id="ButtonTable" border="0" width="100%" >
+ <tr style='line-height: 40px;height: 40px;'>
<td width="15%"></td>
<td align="center">
<apex:commandButton value="淇濆瓨" rerender="dummy" onclick="saveJs();return false;" rendered="{!Not(isPast) && loginUser.ProfileId == $Label.ProfileId_SystemAdmin}"/>
@@ -447,7 +474,7 @@
<apex:inputHidden id="changeFlg" value="{!saveFlg}"/>
<div id="Div_all">
<div id="out_Div_L">
- <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="crossTable">
+ <table class="list" style="border-bottom-width: 0px;table-layout:fixed;" cellspacing="0" cellpadding="0" id="crossTable">
<thead>
<tr class="headerRow" id="Head_L">
<th width="140px" class="headerRow booleanColumn">閿�鍞湰閮�</th>
@@ -466,7 +493,7 @@
</table>
</div>
<div id="out_Div" >
- <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" id="topTable">
+ <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;width:100%;" id="topTable">
<thead>
<tr class="headerRow" id="header_R">
<apex:repeat value="{!opportunity_category}" var="oc" id="opportunityCategoryRepeat">
@@ -488,15 +515,16 @@
</tbody>
</table>
</div>
+ <div style="clear:both;height:0px;"></div>
<div id="in_Div_L">
- <table class="list" style="table-layout:fixed;border-bottom-width: 0px;" border="0" cellspacing="0" cellpadding="0" id="leftTable">
+ <table class="list" style="table-layout:fixed;" border="0" cellspacing="0" cellpadding="0" id="leftTable">
<tbody>
<apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat_L">
<tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}">
<td class="dataCell" width="140px">{!dbs.department}</td>
<td class="dataCell" width="110px"><apex:outputField value="{!dbs.opportunity.SAP_Province__c}"></apex:outputField></td>
- <td class="dataCell" width="160px"><apex:inputField id="owner" value="{!dbs.opportunity.Owner_System__c}" onchange="checkOwner(this.value, this.id, {!cnt});" style="width:80%;"></apex:inputField>
+ <td class="dataCell" width="160px"><apex:inputField id="owner" value="{!dbs.opportunity.Owner_System__c}" onchange="checkOwner(this.value, this.id, {!cnt});" style="width:99%;"></apex:inputField>
<script type="text/javascript">
var ispast = {!isPast};
if (ispast) {
@@ -511,7 +539,7 @@
</div>
<div id="in_Div" >
- <table class="list" style="border-collapse: collapse;border-bottom-width: 0px;table-layout:fixed;" id="bodyTable">
+ <table class="list" style="border-collapse: collapse;table-layout:fixed;width:100%;" id="bodyTable">
<tbody>
<apex:repeat value="{!dataBeans}" var="dbs" id="dbRepeat">
--
Gitblit v1.9.1