From 2f4492ee18f90274582fcc2bb06f5e9bf64136e8 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 13 五月 2022 17:32:14 +0800 Subject: [PATCH] ProdBackup0513 --- force-app/main/default/pages/NewRepairParts.page | 144 +++++++----------------------------------------- 1 files changed, 21 insertions(+), 123 deletions(-) diff --git a/force-app/main/default/pages/NewRepairParts.page b/force-app/main/default/pages/NewRepairParts.page index 08429c6..bd5f88b 100644 --- a/force-app/main/default/pages/NewRepairParts.page +++ b/force-app/main/default/pages/NewRepairParts.page @@ -3,23 +3,6 @@ <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> - <style> - .pbSubheader { - background: #BFB19C!important; - /*background-color: #FFFFFF!important;*/ - /*background: #BFB19C;*/ - /*background-color: #44A3BB!important; - background-color: #E6E6FA!important;*/ - /*background-color: #1797c0!important;*/ - background-color: #DFE6F0!important; - /*color:#607799;*/ - /*color:#FFFFFF!important;*/ - /*background-color: #FFFFFF!important;*/ - /*font-size:12pt; - font-family:verdana;*/ - font-weight:bold; - } - </style> <script> //var isReturn = true; function returnSWOPage(){ @@ -50,56 +33,46 @@ } blockme(); deleteAction(); + } } - function toSearchProduct(){ - var baseUrl = j$(escapeVfId("baseUrl")).value(); - window.open(baseUrl + '/apex/NewSearchProductPage','_blank', 'width=500,height=300,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true); - } - function searchProduct(){ - var baseUrl = '{!baseUrl}'; - - openPopup(baseUrl + '/apex/NewSearchProductPage', 'setsearch', 950, 450, 'width=500,height=300,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true); - } - function productReturnJS(id,code,eccode,description){ - j$(escapeVfId("Product")).val(id); - j$(escapeVfId("Page:formInfo:RepairPartInfo:j_id42:j_id46:ITEM")).val(code); - j$(escapeVfId("PART_NUMBER")).val(eccode); - j$(escapeVfId("DESCRIPTION")).val(description); - } - - function setProduct(){ - blockme(); - var productId = j$(escapeVfId("Page:formInfo:RepairPartInfo:j_id39:j_id43:Product")).val(); - productReturn(productId); - } </script> - + <style type="text/css"> + .pbSubheader { + background: #BFB19C!important; + /*background-color: #FFFFFF!important;*/ + /*background: #BFB19C;*/ + /*background-color: #44A3BB!important; + background-color: #E6E6FA!important;*/ + /*background-color: #1797c0!important;*/ + background-color: #DFE6F0!important; + /*color:#607799;*/ + /*color:#FFFFFF!important;*/ + /*background-color: #FFFFFF!important;*/ + /*font-size:12pt; + font-family:verdana;*/ + font-weight:bold; + + } + </style> <apex:form id="formInfo"> <apex:outputPanel id="message"> <apex:pagemessages /> </apex:outputPanel> <apex:actionFunction name="save" action="{!save}" oncomplete="returnSWOPage();unblockUI();" reRender="formInfo,message"/> <apex:actionFunction name="deleteAction" action="{!deleteAction}" oncomplete="returnSWOPage();unblockUI();" reRender="formInfo,message"/> - <apex:actionFunction name="productReturn" action="{!productReturn}" oncomplete="unblockUI();" reRender="formInfo"> - <apex:param name="productId" value="{!productId}" /> - </apex:actionFunction> <input type="hidden" id="repairPartId" value="{!repairId}" /> <input type="hidden" id="pageClose" value="{!pageClose}" /> <input type="hidden" id="swoId" value="{!repairPart.SWO_ID__c}" /> <input type="hidden" id="id" value="{!repairPart.Id}" /> - <input type="hidden" id="baseUrl" value="{!baseUrl}" /> - <input type="hidden" id="Product" value="{!repairPart.Product__c}" /> - <input type="hidden" id="PART_NUMBER" value="{!repairPart.PART_NUMBER__c}" /> - <input type="hidden" id="DESCRIPTION" value="{!repairPart.DESCRIPTION__c}" /> <apex:pageBlock id="RepairPartInfo" title="RepairPart"> <apex:pageBlockButtons location="top"> <apex:commandButton onclick="saveJS()" value="Save" oncomplete="returnSWOPage();" reRender="formInfo,messageInfo" style="width: 10%"> </apex:commandButton> - <apex:commandButton onclick="closePage();" value="Cancel" style="width: 10%"> + <apex:commandButton onclick="closePage()" value="Cancel" style="width: 10%"> </apex:commandButton> <!-- onclick="deleteJS();" --> @@ -118,29 +91,9 @@ <apex:outputField value="{!repairPart.SWO_ID__c}" id="SWO_ID" /> </apex:pageBlockSectionItem> - <!-- <apex:pageBlockSectionItem > + <apex:pageBlockSectionItem > <apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.Product__c.label}" for="ITEM"/> <apex:inputField value="{!repairPart.Product__c}" id="ITEM" required="true"/> - </apex:pageBlockSectionItem> --> - - <apex:pageBlockSectionItem > - <apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.Product__c.label}" for="Product"/> - <apex:inputField value="{!repairPart.Product__c}" id="Product" required="true" /> - </apex:pageBlockSectionItem> - - <apex:pageBlockSectionItem > - <apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.ITEM_ProductCode__c.label}" for="ITEM"/> - <apex:inputField value="{!repairPart.ITEM_ProductCode__c}" id="ITEM"/> - </apex:pageBlockSectionItem> - - <apex:pageBlockSectionItem > - <apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.PART_NUMBERNew__c.label}" for="PART_NUMBER"/> - <apex:inputField value="{!repairPart.PART_NUMBERNew__c}" id="PART_NUMBER"/> - </apex:pageBlockSectionItem> - - <apex:pageBlockSectionItem > - <apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.DescriptionNew__c.label}" for="Description"/> - <apex:inputField value="{!repairPart.DescriptionNew__c}" id="Description"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > @@ -226,59 +179,4 @@ </apex:pageBlockSection> </apex:pageBlock> </apex:form> - - <!-- 閫夋嫨浜у搧寮瑰嚭灞傞儴鍒� --> - - <!-- <div id="popBox"> - <div class="close"> - <a href="javascript:void(0)" onclick="closeBox()">鍏抽棴</a> - </div> - <div class="content"> - <table width="100%"> - <colgroup> - <col width="33%"></col> - <col width="33%"></col> - <col width="33%"></col> - </colgroup> - <tr> - <td> - <apex:selectList id="type" value="{!ConditionType}" size="1"> - <apex:selectOption itemLabel="浜у搧鍚嶇О" itemValue="name"></apex:selectOption> - <apex:selectOption itemLabel="浜у搧浠g爜" itemValue="code"></apex:selectOption> - <apex:selectOption itemLabel="EC浠g爜" itemValue="eccode"></apex:selectOption> - </apex:selectList> - </td> - <td> - <apex:inputText value="{!ByCondition}"></apex:inputText> - </td> - <td> - <apex:commandButton action="{!doSearch}" onclick="blockme();" reRender="data" oncomplete="unblockUI();" value="鏌ヨ"></apex:commandButton> - </td> - </tr> - <tr> - <th>浜у搧鍚嶇О</th> - <th>浜у搧浠g爜</th> - <th>EC浠g爜</th> - </tr> - </table> - <div style="width: 100%;height: 100%;overflow:auto;"> - <table width="100%"> - <colgroup> - <col width="33%"></col> - <col width="33%"></col> - <col width="33%"></col> - </colgroup> - <apex:repeat value="{!dataList}" var="line" id="result"> - <tr> - <td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.name}</apex:outputLink></td> - <td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.code}</apex:outputLink></td> - <td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.eccode}</apex:outputLink></td> - </tr> - </apex:repeat> - </table> - </div> - </div> - </div> - <div id="popLayer"> - </div> --> </apex:page> \ No newline at end of file -- Gitblit v1.9.1