From d4a4ce824f3b2f3a335a3ad8e8c9efb3b37d630f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 04 五月 2023 08:59:14 +0800
Subject: [PATCH] backup

---
 force-app/main/default/pages/summonsCreat.page | 2468 +++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 1,650 insertions(+), 818 deletions(-)

diff --git a/force-app/main/default/pages/summonsCreat.page b/force-app/main/default/pages/summonsCreat.page
index a153471..e78d033 100644
--- a/force-app/main/default/pages/summonsCreat.page
+++ b/force-app/main/default/pages/summonsCreat.page
@@ -1,489 +1,643 @@
-<apex:page Controller="summonsCreatController" showHeader="true" tabStyle="SaleAndDelivery__tab" sidebar="true" id="allPage" action="{!init}" title="鍑哄簱鍗曠鐞�">
-<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
-<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
-<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
-<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
-<apex:includeScript value="{!URLFOR($Resource.summonsCreatJs)}"/>
-<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
-<apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
-<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
-<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
-<script type="text/javascript">
-function setFocusOnLoad() {}
-function bodyOnLoad(){setFocusOnLoad();}
-function searchsearchAgencyH(str){
-    //update by rentx 2021-3-1 start
-    //鍏堝垽鏂綋鍓嶇粡閿�鍟嗕笅鏄惁鏈夌淮鎶ょ壒浠峰尰闄� 濡傛灉娌℃湁缁存姢鐗逛环鍖婚櫌 閭d箞鐩存帴鏌ヨ鎵�鏈夊尰闄�
-    var flag = j$(escapeVfId('allPage:allForm:allBlock:Editable:OutPattern01')).value();
-    j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
-    if ({!hasHos == false}) {
-        openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
-    }else{
-        var noOfRecords = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
-        var ishosNum = 0;
-        for (var i = 0; i < noOfRecords; i++) {
-            var tempCheckVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':variableinfo:consumablesCountproRowCheckbox')).value();
-            var tempHosVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':hosOffer')).value();
-            var tempHosProVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':hosPro')).value();
-            console.log('tempHosProVar:'+tempHosProVar);
-            if (((tempCheckVar == true || tempCheckVar == 'on') || {!Existarrive}) && (tempHosVar == true || tempHosVar == 'true') && (tempHosProVar == true || tempHosProVar == 'true')) {   
-                ishosNum ++;   
-            }
-
-        }
-        // alert({!Existarrive} + flag);
-        console.log('34:'+ishosNum);
-        if (ishosNum > 0 || ({!Existarrive} && flag == 'true')) {
-        // if (ishosNum > 0) {
-            openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=true', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
-        }else{
-            openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
-        }
-    }
-    //update by rentx 2021-01-29 start
-    // j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
-    // openPopup('/customer/searchAgencyHospital?Ctype=' + str, 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
-    // var flag = j$(escapeVfId('allPage:allForm:allBlock:Editable:OutPattern01')).value();
-    // j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
-    // openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos='+flag, 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
-    //update by rentx 2021-01-29 end
-    //update by rentx 2021-3-1 end
-}
-function clearAgencyI(){
-    var agencyname = j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).value();
-    if (agencyname == '' || agencyname == null) {
-        document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
-    }
-
-    var accid = j$(escapeVfId('allPage:allForm:allBlock:Editable:OECId')).value();
-    if (accid != null && accid != '') {
-        checkOutPatternFn();
-    }
-
-
-}
-// vivek update start
-function saveConfirmJs(str){
-    var msg = "鍑哄簱浠锋牸浠呭彲鎿嶄綔涓�娆″彉鏇达紝淇濆瓨鍚庡皢鏃犳硶淇敼銆俓n\n璇风‘璁わ紒";
-    if(str == '浠锋牸鏈畾'){
-        if(confirm(msg)==true){
-            saveJs();
-        }
-    }else{
-        saveJs();
-    }
-}
-// vivek update end
-
-function setVisitorPlace(){
-    var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
-    if (x == '浜掔浉璋冭揣') {
-        try{
-            var str = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
-            var strPage = null;
-            var options = {};
-            var ros = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
-            strPage = '/customer/apex/ConSearchAgencyPlace?r=' + encodeURI(ros);
-            options = {minchars:3, minwords:1, resultsClass:'visitorplace_results'};
-            jQuery(escapeVfId(str)).unbind();
-            if (strPage != null) {
-                jQuery(escapeVfId(str)).suggest(strPage,options);
-            }
-        }catch(e){
-            alert(e);
-        }
-    }
-    else{
-        var agencytext = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).val(agencytext);
-        //alert('1' + agencytext);
-        //alert('2' + j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).value());
-    }
-
-}
-
-function vpClear2_delay(){
-    var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
-    if (x == '浜掔浉璋冭揣') {
-        var vp = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
-        var vpHidden = 'allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden';
-        setTimeout(
-            function() {
-                if(j$(escapeVfId(vp)).attr("jquerysuggest_skip_flag") == "false") {
-                    if (j$(escapeVfId(vp)).value() != j$(escapeVfId(vpHidden)).value()) {
-                        vpClear2();
-                    }
-                }
-            },
-            200
-        );
-    }
-    else{
-        var agencytext = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).val(agencytext);
-    }
-}
-function vpClear2(){
-  var vp = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
-  var vpHidden = 'allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden';
-  // alert('vp=' + j$(escapeVfId(vp)).value());
-  // alert('vpHidden=' + j$(escapeVfId(vpHidden)).value());
-  // if (j$(escapeVfId(vp)).value() != j$(escapeVfId(vpHidden)).value()) {
-  //   changeFlg = 'false';
-  //   //alert('changeFlg+' +changeFlg);
-  //   if(changeFlg == 'true'){
-  //       vpBefore = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).value();
-  //       j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).val(vpBefore);
-  //       document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').blur();
-  //       return;
-  //   }
-  // }
-  resetValue('allPage:allForm:allBlock:Editable:Order_ForDealerText');
-}
-function FilesUaplodJs(){
-    //涓婁紶鏂囦欢
-    FilesUpload();
-}
-
-function refreshPageSizeJs() {
-    refreshPageSize();
-}
-
-function CommitConsumable(){
-    //纭鎻愪氦
-    approval();
-    //openPDF();
-}
-function openPDF(){
-    window.open("/customer/summonsPDF?ESetid="+'{!URLENCODE(IdCheck)}');
-}
-
-function openReportJs(){
-    //鎵撳紑鎶ヨ〃
-    var reportId = '{!IdCheck}';
-    reportId = reportId.substring(0,15);
-    window.open("/customer/" +'{!URLENCODE($Label.ConsumableOut_report)}'+ "?pv1="+ encodeURI(reportId));
-}
-
-function openToInvoiceJs(){
-    //鎵撳紑鍙戠エ
-    //upchangeorder();
-    var invoiceId = j$(escapeVfId('allPage:allForm:allBlock:unEditable:ConInvoice_Code_lkid')).value();
-    if (invoiceId.length > 0 && invoiceId != '000000000000000') {
-        window.open("/customer/ConInvoiceView?deliveryId="+'{!URLENCODE(IdCheck)}' + "&invoiceId=" + encodeURI(invoiceId) + "&KeyWords=Redirect","_self");
-    }else{
-        window.open("/customer/ConInvoiceView?deliveryId="+'{!URLENCODE(IdCheck)}' + "&KeyWords=Redirect","_self");
-    }
-}
-
-function PraseToPDFJs(){
-    //鎵撳嵃鎴怭DF
-    PraseToPDF();
-    window.open("/customer/summonsPDF?ESetid="+'{!URLENCODE(IdCheck)}');
-}
-
-function ChangeDirction(j){
-    var a = j.id;
-    var x = j$(escapeVfId(a)).value();
-    var productCount = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
-    if(x == '鐩存帴閿�鍞粰鍖婚櫌'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }else if(x == '鍖婚櫌璇曠敤'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }else if(x == '閿�鍞粰浜岀骇缁忛攢鍟�'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
-        // }
-    }else if(x == '浜掔浉璋冭揣'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:OEC').value = "";
-        document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:Order_ForCustomer').value = "";
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }else{
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        //document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        //document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
-        //     //document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }
-}
-//椤甸潰鍒锋柊閲嶆柊璁$畻閲戦
-function CountCounttestPrice(){
-    var numberDetails =j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
-    for(var i = 0; i < numberDetails ; i++){
-        var ckeck = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableinfo' + ':consumablesCountproRowCheckbox')).value();
-
-        if (ckeck == 'on') {
-            var a=document.getElementById ("allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:" + i +":variableAllprice:consumablesCounttestPrice");
-            if ({!Existarrive}) {
-                z  =  parseFloat(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i +':consumablesCount_UnEditout:consumablesCount_UnEditin')).value());
+<apex:page
+    Controller="summonsCreatController"
+    showHeader="true"
+    tabStyle="SaleAndDelivery__tab"
+    sidebar="true"
+    id="allPage"
+    action="{!init}"
+    title="鍑哄簱鍗曠鐞�"
+>
+    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}" />
+    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}" />
+    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}" />
+    <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}" />
+    <apex:includeScript value="{!URLFOR($Resource.summonsCreatJs)}" />
+    <apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}" />
+    <apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}" />
+    <apex:includeScript value="{!URLFOR($Resource.connection20)}" />
+    <apex:includeScript value="{!URLFOR($Resource.apex20)}" />
+    <script type="text/javascript">
+        console.log('hasHosPro = ' + '{!hasHosPro}')
+        console.log('EditAble = ' + '{!EditAble}')
+        console.log('pageRecords = ' + '{!pageRecords}')
+        console.log('coc = ' + '{!coc}')
+        console.log('provinceOpts = ' + '{!provinceOpts}')
+        console.log('Existarrive = ' + '{!Existarrive}')
+        console.log('SecondDealer = ' + '{!SecondDealer}')
+        function setFocusOnLoad() {}
+        function bodyOnLoad(){setFocusOnLoad();}
+        function searchsearchAgencyH(str){
+            //update by rentx 2021-3-1 start
+            //鍏堝垽鏂綋鍓嶇粡閿�鍟嗕笅鏄惁鏈夌淮鎶ょ壒浠峰尰闄� 濡傛灉娌℃湁缁存姢鐗逛环鍖婚櫌 閭d箞鐩存帴鏌ヨ鎵�鏈夊尰闄�
+            var flag = j$(escapeVfId('allPage:allForm:allBlock:Editable:OutPattern01')).value();
+            j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
+            if ({!hasHos == false}) {
+                openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
             }else{
-                z  =  parseFloat(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i+':variable:consumablesCount')).value());
+                var noOfRecords = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
+                var ishosNum = 0;
+                for (var i = 0; i < noOfRecords; i++) {
+                    var tempCheckVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':variableinfo:consumablesCountproRowCheckbox')).value();
+                    var tempHosVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':hosOffer')).value();
+                    var tempHosProVar = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':hosPro')).value();
+                    console.log('tempHosProVar:'+tempHosProVar);
+                    if (((tempCheckVar == true || tempCheckVar == 'on') || {!Existarrive}) && (tempHosVar == true || tempHosVar == 'true') && (tempHosProVar == true || tempHosProVar == 'true')) {
+                        ishosNum ++;
+                    }
+
+                }
+                // alert({!Existarrive} + flag);
+                console.log('34:'+ishosNum);
+                if (ishosNum > 0 || ({!Existarrive} && flag == 'true')) {
+                // if (ishosNum > 0) {
+                    openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=true', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
+                }else{
+                    openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos=', 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
+                }
+            }
+            //update by rentx 2021-01-29 start
+            // j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
+            // openPopup('/customer/searchAgencyHospital?Ctype=' + str, 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
+            // var flag = j$(escapeVfId('allPage:allForm:allBlock:Editable:OutPattern01')).value();
+            // j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).attr('readonly',true);
+            // openPopup('/customer/searchAgencyHospital?Ctype=' + str+'&ishos='+flag, 'setsearch', 800, 600, 'width=800,height=600,scrollbars=yes', true);
+            //update by rentx 2021-01-29 end
+            //update by rentx 2021-3-1 end
+        }
+        function clearAgencyI(){
+            var agencyname = j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).value();
+            if (agencyname == '' || agencyname == null) {
+                document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
+            }
+
+            var accid = j$(escapeVfId('allPage:allForm:allBlock:Editable:OECId')).value();
+            if (accid != null && accid != '') {
+                checkOutPatternFn();
+            }
+
+
+        }
+        // vivek update start
+        function saveConfirmJs(str){
+            console.log('pageRecords = ' + '{!pageRecords}')
+            debugger
+            var msg = "鍑哄簱浠锋牸浠呭彲鎿嶄綔涓�娆″彉鏇达紝淇濆瓨鍚庡皢鏃犳硶淇敼銆俓n\n璇风‘璁わ紒";
+            if(str == '浠锋牸鏈畾'){
+                if(confirm(msg)==true){
+                    saveJs();
+                }
+            }else{
+                saveJs();
+            }
+        }
+        // vivek update end
+
+        function setVisitorPlace(){
+            var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
+            if (x == '浜掔浉璋冭揣') {
+                try{
+                    var str = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
+                    var strPage = null;
+                    var options = {};
+                    var ros = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
+                    strPage = '/customer/apex/ConSearchAgencyPlace?r=' + encodeURI(ros);
+                    options = {minchars:3, minwords:1, resultsClass:'visitorplace_results'};
+                    jQuery(escapeVfId(str)).unbind();
+                    if (strPage != null) {
+                        console.log('杩涘叆strPage != null')
+                        jQuery(escapeVfId(str)).suggest(strPage,options);
+                    }
+                }catch(e){
+                    alert(e);
+                }
+            }
+            else{
+                var agencytext = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).val(agencytext);
+                //alert('1' + agencytext);
+                //alert('2' + j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).value());
+            }
+
+        }
+
+        function vpClear2_delay(){
+            var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
+            if (x == '浜掔浉璋冭揣') {
+                var vp = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
+                var vpHidden = 'allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden';
+                setTimeout(
+                    function() {
+                        if(j$(escapeVfId(vp)).attr("jquerysuggest_skip_flag") == "false") {
+                            if (j$(escapeVfId(vp)).value() != j$(escapeVfId(vpHidden)).value()) {
+                                vpClear2();
+                            }
+                        }
+                    },
+                    200
+                );
+            }
+            else{
+                var agencytext = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).value();
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).val(agencytext);
+            }
+        }
+        function vpClear2(){
+          var vp = 'allPage:allForm:allBlock:Editable:Order_ForDealerText';
+          var vpHidden = 'allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden';
+          // alert('vp=' + j$(escapeVfId(vp)).value());
+          // alert('vpHidden=' + j$(escapeVfId(vpHidden)).value());
+          // if (j$(escapeVfId(vp)).value() != j$(escapeVfId(vpHidden)).value()) {
+          //   changeFlg = 'false';
+          //   //alert('changeFlg+' +changeFlg);
+          //   if(changeFlg == 'true'){
+          //       vpBefore = j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerTextHidden')).value();
+          //       j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).val(vpBefore);
+          //       document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').blur();
+          //       return;
+          //   }
+          // }
+          resetValue('allPage:allForm:allBlock:Editable:Order_ForDealerText');
+        }
+        function FilesUaplodJs(){
+            //涓婁紶鏂囦欢
+            FilesUpload();
+        }
+
+        function refreshPageSizeJs() {
+            refreshPageSize();
+        }
+
+        function CommitConsumable(){
+            //纭鎻愪氦
+            approval();
+            //openPDF();
+        }
+        function openPDF(){
+            window.open("/customer/summonsPDF?ESetid="+'{!URLENCODE(IdCheck)}');
+        }
+
+        function openReportJs(){
+            //鎵撳紑鎶ヨ〃
+            var reportId = '{!IdCheck}';
+            reportId = reportId.substring(0,15);
+            window.open("/customer/" +'{!URLENCODE($Label.ConsumableOut_report)}'+ "?pv1="+ encodeURI(reportId));
+        }
+
+        function openToInvoiceJs(){
+            //鎵撳紑鍙戠エ
+            //upchangeorder();
+            var invoiceId = j$(escapeVfId('allPage:allForm:allBlock:unEditable:ConInvoice_Code_lkid')).value();
+            if (invoiceId.length > 0 && invoiceId != '000000000000000') {
+                window.open("/customer/ConInvoiceView?deliveryId="+'{!URLENCODE(IdCheck)}' + "&invoiceId=" + encodeURI(invoiceId) + "&KeyWords=Redirect","_self");
+            }else{
+                window.open("/customer/ConInvoiceView?deliveryId="+'{!URLENCODE(IdCheck)}' + "&KeyWords=Redirect","_self");
+            }
+        }
+
+        function PraseToPDFJs(){
+            //鎵撳嵃鎴怭DF
+            PraseToPDF();
+            window.open("/customer/summonsPDF?ESetid="+'{!URLENCODE(IdCheck)}');
+        }
+
+        function ChangeDirction(j){
+            var a = j.id;
+            var x = j$(escapeVfId(a)).value();
+            var productCount = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
+            if(x == '鐩存帴閿�鍞粰鍖婚櫌'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }else if(x == '鍖婚櫌璇曠敤'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }else if(x == '閿�鍞粰浜岀骇缁忛攢鍟�'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
+                // }
+            }else if(x == '浜掔浉璋冭揣'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:OEC').value = "";
+                document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:Order_ForCustomer').value = "";
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }else{
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                //document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                //document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
+                //     //document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }
+        }
+        //椤甸潰鍒锋柊閲嶆柊璁$畻閲戦
+        function CountCounttestPrice(){
+            var numberDetails =j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
+            for(var i = 0; i < numberDetails ; i++){
+                var ckeck = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableinfo' + ':consumablesCountproRowCheckbox')).value();
+
+                if (ckeck == 'on') {
+                    var a=document.getElementById ("allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:" + i +":variableAllprice:consumablesCounttestPrice");
+                    if ({!Existarrive}) {
+                        z  =  parseFloat(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i +':consumablesCount_UnEditout:consumablesCount_UnEditin')).value());
+                    }else{
+                        z  =  parseFloat(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i+':variable:consumablesCount')).value());
+                    }
+                    //z= z.replace(/,/g,'');
+                    if(isNaN(z)){z=0.00;}
+                    //alert(z);
+                    x = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i +':variableMoneyinfo:productOrderMoneyinfo')).value().replace(/,/g,'');
+                    c = parseFloat(z * x).toFixed(2);
+                    //c = number_format_common (c,2,'.',',');
+                    a.innerHTML = c;
+                    SumCompute();
+                }
+            }
+        }
+
+        function ComputePriceCheck(j){ // FIXME lineNo 銇仐銇︺亸銇犮仌銇�
+            var z,x,c;
+            var a = j.id;
+            var i=a.substring(0,a.lastIndexOf(':'));// <apex:variable value="{!1}" var="lineNo" />
+            i=i.substring(0,i.lastIndexOf(':'));
+            var a=document.getElementById (i+":variableAllprice:consumablesCounttestPrice");
+            if ({!Existarrive}) {
+                z  =  parseFloat(j$(escapeVfId(i+':consumablesCount_UnEditout:consumablesCount_UnEditin')).value());
+            }else{
+                z  =  parseFloat(j$(escapeVfId(i+':variable:consumablesCount')).value());
             }
             //z= z.replace(/,/g,'');
             if(isNaN(z)){z=0.00;}
             //alert(z);
-            x = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i +':variableMoneyinfo:productOrderMoneyinfo')).value().replace(/,/g,'');
+            x = j$(escapeVfId(i +':variableMoneyinfo:productOrderMoneyinfo')).value().replace(/,/g,'');
             c = parseFloat(z * x).toFixed(2);
             //c = number_format_common (c,2,'.',',');
             a.innerHTML = c;
             SumCompute();
         }
-    }
-}
 
-function ComputePriceCheck(j){ // FIXME lineNo 銇仐銇︺亸銇犮仌銇�
-    var z,x,c;
-    var a = j.id;
-    var i=a.substring(0,a.lastIndexOf(':'));// <apex:variable value="{!1}" var="lineNo" />
-    i=i.substring(0,i.lastIndexOf(':'));
-    var a=document.getElementById (i+":variableAllprice:consumablesCounttestPrice");
-    if ({!Existarrive}) {
-        z  =  parseFloat(j$(escapeVfId(i+':consumablesCount_UnEditout:consumablesCount_UnEditin')).value());
-    }else{
-        z  =  parseFloat(j$(escapeVfId(i+':variable:consumablesCount')).value());
-    }
-    //z= z.replace(/,/g,'');
-    if(isNaN(z)){z=0.00;}
-    //alert(z);
-    x = j$(escapeVfId(i +':variableMoneyinfo:productOrderMoneyinfo')).value().replace(/,/g,'');
-    c = parseFloat(z * x).toFixed(2);
-    //c = number_format_common (c,2,'.',',');
-    a.innerHTML = c;
-    SumCompute();
-}
+        function showCate() {
+            //var productCount = j$(escapeVfId('allPage:allForm:allBlock:searchBlock:category3Search')).value();
+            categoryload();
+        }
 
-function showCate() {
-    //var productCount = j$(escapeVfId('allPage:allForm:allBlock:searchBlock:category3Search')).value();
-    categoryload();
-}
+        function showAllCate() {
+            categoryAllload();
+        }
 
-function showAllCate() {
-    categoryAllload();
-}
+        //椤甸潰鍔犺浇 椤圭洰鍒濆鍖�
+        function onLoadDirction(){
+            var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
+            var productCount = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
 
-//椤甸潰鍔犺浇 椤圭洰鍒濆鍖�
-function onLoadDirction(){
-    var x = j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value();
-    var productCount = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount')).value();
+            if(x == '鐩存帴閿�鍞粰鍖婚櫌'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }else if(x == '鍖婚櫌璇曠敤'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }else if(x == '閿�鍞粰浜岀骇缁忛攢鍟�'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
+                // }
+            }else if(x == '浜掔浉璋冭揣'){
+                //鍖婚櫌
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:OEC').value = "";
+                document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',true);
+                document.getElementById('allPage:allForm:allBlock:Editable:Order_ForCustomer').value = "";
+                //浜岀骇缁忛攢鍟�
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
+                j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
 
-    if(x == '鐩存帴閿�鍞粰鍖婚櫌'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:province').value = "";
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:Order_ForDealerText').value = "";
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }else if(x == '鍖婚櫌璇曠敤'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }else if(x == '閿�鍞粰浜岀骇缁忛攢鍟�'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',false);
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',false);
-        // }
-    }else if(x == '浜掔浉璋冭揣'){
-        //鍖婚櫌
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:OEC')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:OEC').value = "";
-        document.getElementById('allPage:allForm:allBlock:Editable:OECId').value = "";
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForCustomer')).prop('disabled',true);
-        document.getElementById('allPage:allForm:allBlock:Editable:Order_ForCustomer').value = "";
-        //浜岀骇缁忛攢鍟�
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:province')).prop('disabled',false);
-        j$(escapeVfId('allPage:allForm:allBlock:Editable:Order_ForDealerText')).prop('disabled',false);
+                // for (var i = 0; i < productCount; i++) {
+                //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
+                //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
+                // }
+            }
+        }
 
-        // for (var i = 0; i < productCount; i++) {
-        //     j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency')).prop('disabled',true);
-        //     document.getElementById('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':variableMoneyinfo:Unitpriceagency').value = "";
-        // }
-    }
-}
-
-window.sfdcPage.appendToOnloadQueue(function() { onLoadDirction(); });
-
-</script>
-<style>
-    .visitorplace_results {
-        border: 1px solid gray;
-        background-color: white;
-        padding: 0;
-        margin: 0;
-        list-style: none;
-        position: absolute;
-        z-index: 10000;
-        display: none;
-        overflow:auto;
-        white-space:nowrap;
-        width:400px;
-        height:250px;
-    }
-    .visitorplace_results li {
-        padding: 2px 5px 2px 0px;
-        margin-left : 2px;
-        color: #101010;
-        text-align: left;
-    }
-    .panelGridCenter td,.panelGridCenter tr {
-        text-align: center;
-    }
-    .dateFormat  {
-        display: none;
-    }
-    tr.dataRow {
-        background-color:white;
-    }
-    td.columus {
-        background-color:white;
-        text-align: right;
-    }
-    tr.dataRow:hover {
-        background-color: #e3f3ff;
-    }
-</style>
+        window.sfdcPage.appendToOnloadQueue(function() { onLoadDirction(); });
+    </script>
+    <style>
+        .visitorplace_results {
+            border: 1px solid gray;
+            background-color: white;
+            padding: 0;
+            margin: 0;
+            list-style: none;
+            position: absolute;
+            z-index: 10000;
+            display: none;
+            overflow: auto;
+            white-space: nowrap;
+            width: 400px;
+            height: 250px;
+        }
+        .visitorplace_results li {
+            padding: 2px 5px 2px 0px;
+            margin-left: 2px;
+            color: #101010;
+            text-align: left;
+        }
+        .panelGridCenter td,
+        .panelGridCenter tr {
+            text-align: center;
+        }
+        .dateFormat {
+            display: none;
+        }
+        tr.dataRow {
+            background-color: white;
+        }
+        td.columus {
+            background-color: white;
+            text-align: right;
+        }
+        tr.dataRow:hover {
+            background-color: #e3f3ff;
+        }
+    </style>
     <apex:form id="allForm">
-    <!-- //add  by rentx 2021-2-26 -->
-        <apex:actionFunction name="checkOutPatternFn" action="{!checkOutPattern}" status="fetchStatus" reRender="ConsumableorderdetailsSection,message,OutPattern01" onComplete="CountCounttestPrice();onLoadDirction();"/>
-    <!-- //add by rentx 2021-2-26 -->
-        <apex:actionFunction name="refreshPageSize" action="{!refreshPageSize}" status="fetchStatus" reRender="ConsumableorderdetailsSection,message" onComplete="CountCounttestPrice();onLoadDirction();"/>
-        <apex:actionFunction name="save" action="{!save}" rerender=" message,Editable,ConsumableorderdetailsSection" onComplete="unblockUI();CountCounttestPrice();onLoadDirction();">
+        <!-- //add  by rentx 2021-2-26 -->
+        <apex:actionFunction
+            name="checkOutPatternFn"
+            action="{!checkOutPattern}"
+            status="fetchStatus"
+            reRender="ConsumableorderdetailsSection,message,OutPattern01"
+            onComplete="CountCounttestPrice();onLoadDirction();"
+        />
+        <!-- //add by rentx 2021-2-26 -->
+        <apex:actionFunction
+            name="refreshPageSize"
+            action="{!refreshPageSize}"
+            status="fetchStatus"
+            reRender="ConsumableorderdetailsSection,message"
+            onComplete="CountCounttestPrice();onLoadDirction();"
+        />
+        <apex:actionFunction
+            name="save"
+            action="{!save}"
+            rerender=" message,Editable,ConsumableorderdetailsSection"
+            onComplete="unblockUI();CountCounttestPrice();onLoadDirction();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="categoryload" action="{!categoryload}" rerender="searchBlock" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="categoryload"
+            action="{!categoryload}"
+            rerender="searchBlock"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-         <apex:actionFunction name="categoryAllload" action="{!categoryAllload}" rerender="searchBlock" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="categoryAllload"
+            action="{!categoryAllload}"
+            rerender="searchBlock"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="searchConsumableorderdetails" action="{!searchConsumableorderdetails}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CountCounttestPrice();onLoadDirction();">
+        <apex:actionFunction
+            name="searchConsumableorderdetails"
+            action="{!searchConsumableorderdetails}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();CountCounttestPrice();onLoadDirction();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="setEditAble" action="{!setEditAble}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="setEditAble"
+            action="{!setEditAble}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="approval" action="{!approval}" rerender="allForm" onComplete="unblockUI();openPDF();">
+        <apex:actionFunction
+            name="approval"
+            action="{!approval}"
+            rerender="allForm"
+            onComplete="unblockUI();openPDF();"
+        >
         </apex:actionFunction>
-         <apex:actionFunction name="DelConsumable" action="{!DelConsumable}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="DelConsumable"
+            action="{!DelConsumable}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="PraseToPDF" action="{!PraseToPDF}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="PraseToPDF"
+            action="{!PraseToPDF}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="GoodsDelivery" action="{!GoodsDelivery}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="GoodsDelivery"
+            action="{!GoodsDelivery}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
-        <apex:actionFunction name="SortLimited" action="{!SortLimited}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CountCounttestPrice();onLoadDirction();">
+        <apex:actionFunction
+            name="SortLimited"
+            action="{!SortLimited}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();CountCounttestPrice();onLoadDirction();"
+        >
             <apex:param name="firstParam" assignTo="{!sortKey}" value="" />
         </apex:actionFunction>
         <!--<apex:actionFunction name="SortStore" action="{!SortStore}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
             <apex:param name="firstParam" assignTo="{!sortKey}" value="" />
         </apex:actionFunction>-->
-        <apex:actionFunction name="FilesUpload" action="{!FilesUpload}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
+        <apex:actionFunction
+            name="FilesUpload"
+            action="{!FilesUpload}"
+            rerender="ConsumableorderdetailsSection, message"
+            onComplete="unblockUI();"
+        >
         </apex:actionFunction>
 
         <apex:outputPanel id="allPanel">
-        <input type="hidden" id="userState" value="{!localuser.State_Hospital__c}"/>
-            <apex:pageBlock id="allBlock" >
+            <input
+                type="hidden"
+                id="userState"
+                value="{!localuser.State_Hospital__c}"
+            />
+            <apex:pageBlock id="allBlock">
                 <table>
                     <colgroup>
-                        <col width="150px"/>
-                        <col width="200px"/>
-                        <col width="200px"/>
-                        <col width="200px"/>
-                        <col width="200px"/>
-                        <col width="200px"/>
-                        <col width="90px"/>
-                        <col width="100px"/>
-                        <col width="10px"/>
-                        <col width="85px"/>
-                        <col width="100px"/>
-                        <col width="10px"/>
-                        <col width="70px"/>
-                        <col width="100px"/>
+                        <col width="150px" />
+                        <col width="200px" />
+                        <col width="200px" />
+                        <col width="200px" />
+                        <col width="200px" />
+                        <col width="200px" />
+                        <col width="90px" />
+                        <col width="100px" />
+                        <col width="10px" />
+                        <col width="85px" />
+                        <col width="100px" />
+                        <col width="10px" />
+                        <col width="70px" />
+                        <col width="100px" />
                     </colgroup>
                     <tr>
                         <td></td>
-                        <td  colspan="4"><apex:commandButton onclick="saveConfirmJs('{!coc.SummonsStatus_c__c}');" value="淇濆瓨" style="width:150px" rerender="dummy" rendered="{!(EditDelCommitBtnDisabled||EditAble)}"/></td>
+                        <td colspan="4">
+                            <apex:commandButton
+                                onclick="saveConfirmJs('{!coc.SummonsStatus_c__c}');"
+                                value="淇濆瓨"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!(EditDelCommitBtnDisabled||EditAble)}"
+                            />
+                        </td>
                     </tr>
                     <tr>
                         <td></td>
-                        <td ><apex:commandButton onclick="EditConsumable();"   value="缂栬緫鍑哄簱鍗�" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�',true,false)}"/></td>
+                        <td>
+                            <apex:commandButton
+                                onclick="EditConsumable();"
+                                value="缂栬緫鍑哄簱鍗�"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�',true,false)}"
+                            />
+                        </td>
                         <!--CHAN-B65CAZ 20181105 UpdateStart-->
                         <!-- <td ><apex:commandButton onclick="CommitConsumable();" value="鎻愪氦鍑哄簱鍗�" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='鎵瑰噯'||coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='鍑哄簱鍗曞凡鎵撳嵃'||coc.SummonsStatus_c__c='宸插畬鎴�',true,false)}"/></td> -->
-                        <td ><apex:commandButton onclick="GoodsDeliveryJs();"  value="鍑鸿揣/閿�鍞�"     style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='宸插畬鎴�'||coc.SummonsStatus_c__c='浠锋牸鏈畾',true,false)}"/></td>
+                        <td>
+                            <apex:commandButton
+                                onclick="GoodsDeliveryJs();"
+                                value="鍑鸿揣/閿�鍞�"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='宸插畬鎴�'||coc.SummonsStatus_c__c='浠锋牸鏈畾',true,false)}"
+                            />
+                        </td>
                         <!-- CHAN-B65CAZ 20181105 UpdateEnd-->
-                        <td ><apex:commandButton onclick="openToInvoiceJs();return false;" value="寮�绁�" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(((coc.Billed_Status__c !='鍏ㄩ儴寮�绁�' &&coc.SummonsStatus_c__c='宸插畬鎴�') || coc.Onchange_order__c = true) && coc.SummonsForDirction__c!='浜掔浉璋冭揣',false,true)}"/></td>
+                        <td>
+                            <apex:commandButton
+                                onclick="openToInvoiceJs();return false;"
+                                value="寮�绁�"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(((coc.Billed_Status__c !='鍏ㄩ儴寮�绁�' &&coc.SummonsStatus_c__c='宸插畬鎴�') || coc.Onchange_order__c = true) && coc.SummonsForDirction__c!='浜掔浉璋冭揣',false,true)}"
+                            />
+                        </td>
                     </tr>
                     <tr>
                         <td></td>
                         <!--CHAN-B65CAZ 20181105 UpdateStart-->
-                        <td ><apex:commandButton onclick="PraseToPDFJs();" value="鎵撳嵃鎸囩ず鍗�" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='鎵瑰噯'||coc.SummonsStatus_c__c='鍑哄簱鍗曞凡鎵撳嵃'||coc.SummonsStatus_c__c='鑽夋涓�',false,true)}"/></td>
-                        <!-- CHAN-B65CAZ 20181105 UpdateEnd-->
-                        <td ><apex:commandButton onclick="openReportJs(); return false;" value="鏄剧ず鏄庣粏" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.Billed_Status__c !='杩樻病寮�绁�' || coc.SummonsStatus_c__c='宸插畬鎴�',false,true)}"/></td>
-                        <td ><apex:commandButton onclick="DeleteConsumable();" value="鍒犻櫎" style="width:150px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}" disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='浠锋牸鏈畾'||coc.SummonsStatus_c__c='鎵瑰噯'||coc.SummonsStatus_c__c='鍑哄簱鍗曞凡鎵撳嵃'||coc.SummonsStatus_c__c='宸插畬鎴�',true,false)}"/></td>
-                        <td >
+                        <td>
+                            <apex:commandButton
+                                onclick="PraseToPDFJs();"
+                                value="鎵撳嵃鎸囩ず鍗�"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='鎵瑰噯'||coc.SummonsStatus_c__c='鍑哄簱鍗曞凡鎵撳嵃'||coc.SummonsStatus_c__c='鑽夋涓�',false,true)}"
+                            />
                         </td>
+                        <!-- CHAN-B65CAZ 20181105 UpdateEnd-->
+                        <td>
+                            <apex:commandButton
+                                onclick="openReportJs(); return false;"
+                                value="鏄剧ず鏄庣粏"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(coc.Billed_Status__c !='杩樻病寮�绁�' || coc.SummonsStatus_c__c='宸插畬鎴�',false,true)}"
+                            />
+                        </td>
+                        <td>
+                            <apex:commandButton
+                                onclick="DeleteConsumable();"
+                                value="鍒犻櫎"
+                                style="width: 150px"
+                                rerender="dummy"
+                                rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                                disabled="{!IF(coc.SummonsStatus_c__c='宸查攢鍞緟涓婁紶绾冲搧涔�'||coc.SummonsStatus_c__c='浠锋牸鏈畾'||coc.SummonsStatus_c__c='鎵瑰噯'||coc.SummonsStatus_c__c='鍑哄簱鍗曞凡鎵撳嵃'||coc.SummonsStatus_c__c='宸插畬鎴�',true,false)}"
+                            />
+                        </td>
+                        <td></td>
                     </tr>
                 </table>
                 <apex:outputPanel id="message">
                     <apex:pageMessages />
-                 </apex:outputPanel>
-<!--==============20160314====INSERT_CODE_END=======================================-->
-                <apex:pageBlock title="鍑哄簱鍗曚俊鎭�" id="Editable" rendered="{!EditAble}">
-                <!-- update start by vivek 2019-7-15 -->
+                </apex:outputPanel>
+                <!--==============20160314====INSERT_CODE_END=======================================-->
+                <apex:pageBlock
+                    title="鍑哄簱鍗曚俊鎭�"
+                    id="Editable"
+                    rendered="{!EditAble}"
+                >
+                    <!-- update start by vivek 2019-7-15 -->
                     <!-- <table>
                         <colgroup>
                             <col width="150px"/>
@@ -501,162 +655,308 @@
                             <col width="70px"/>
                             <col width="100px"/>
                         </colgroup> -->
-                <!-- update end by vivek 2019-7-15 -->
-                        <!-- update start by vivek 2019-7-15 -->
-                        <apex:outputPanel rendered="{! If(coc.SummonsStatus_c__c == '浠锋牸鏈畾',true,false) }">
+                    <!-- update end by vivek 2019-7-15 -->
+                    <!-- update start by vivek 2019-7-15 -->
+                    <apex:outputPanel
+                        rendered="{! If(coc.SummonsStatus_c__c == '浠锋牸鏈畾',true,false) }"
+                    >
                         <table>
-                        <colgroup>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="80px"/>
-                            <col width="10px"/>
-                            <col width="90px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="85px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="70px"/>
-                            <col width="100px"/>
-                        </colgroup>
-                                <tr>
+                            <colgroup>
+                                <col width="150px" />
+                                <col width="300px" />
+                                <col width="150px" />
+                                <col width="300px" />
+                                <col width="80px" />
+                                <col width="10px" />
+                                <col width="90px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="85px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="70px" />
+                                <col width="100px" />
+                            </colgroup>
+                            <tr>
                                 <td align="right">鍑哄簱鍗曞彿锛�</td>
-                                <td align="left"><apex:outputField id="OrderCode_out2"  value="{!coc.Name}" style="width:300px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="OrderCode_out2"
+                                        value="{!coc.Name}"
+                                        style="width: 300px"
+                                    />
+                                </td>
                                 <td align="right">鍑哄簱鍗曠姸鎬侊細</td>
-                                <td align="left"><apex:outputField id="OrderStatus_out2" value="{!coc.SummonsStatus_c__c}" style="width:300px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="OrderStatus_out2"
+                                        value="{!coc.SummonsStatus_c__c}"
+                                        style="width: 300px"
+                                    />
+                                </td>
                             </tr>
                             <tr>
                                 <td align="right">鐩殑锛�</td>
-                                <td align="left"><apex:outputField id="OrderDirction_out2"  value="{!coc.SummonsForDirction__c}" style="width:300px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="OrderDirction_out2"
+                                        value="{!coc.SummonsForDirction__c}"
+                                        style="width: 300px"
+                                    />
+                                </td>
                                 <td align="right">寮�绁ㄧ姸鎬侊細</td>
                                 <td align="left">
-                                <apex:outputField id="SecondDealer_level22" value="{!coc.Billed_Status__c}" style="width:300px"/>
+                                    <apex:outputField
+                                        id="SecondDealer_level22"
+                                        value="{!coc.Billed_Status__c}"
+                                        style="width: 300px"
+                                    />
                                 </td>
-
                             </tr>
-                            <tr style="{!IF(coc.SummonsForDirction__c='閿�鍞粰浜岀骇缁忛攢鍟�','','display:none')}">
+                            <tr
+                                style="{!IF(coc.SummonsForDirction__c='閿�鍞粰浜岀骇缁忛攢鍟�','','display:none')}"
+                            >
                                 <td align="right">浜岀骇缁忛攢鍟嗭細</td>
-                                <td align="left"><apex:outputField id="SecondDealer_out2" value="{!coc.Order_Dealer_Info__c}" style="width:300px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="SecondDealer_out2"
+                                        value="{!coc.Order_Dealer_Info__c}"
+                                        style="width: 300px"
+                                    />
+                                </td>
                                 <td align="right"></td>
                                 <td align="left"></td>
                             </tr>
                             <tr>
                                 <td align="right">瀹㈡埛鍚嶏細</td>
-                                <td align="left"><apex:outputField id="OrderForHospital_out2" value="{!coc.ShipmentAccount__c}" style="width:300px"/></td>
-                                <td align="right"><apex:outputText value="鍙戠エ锛�" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"/></td>
-                                <td align="left"><apex:inputField value="{!coc.ConInvoice_Code__c}" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}" id="ConInvoice_Code2"/>
-                                <c:helpicon helpText="宸插紑绁ㄧ殑鎹㈣揣鐨勬椂鍊欙紝閫夋嫨宸插紑绁ㄧ殑鍙戠エ銆�" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"/>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="OrderForHospital_out2"
+                                        value="{!coc.ShipmentAccount__c}"
+                                        style="width: 300px"
+                                    />
+                                </td>
+                                <td align="right">
+                                    <apex:outputText
+                                        value="鍙戠エ锛�"
+                                        rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                    />
+                                </td>
+                                <td align="left">
+                                    <apex:inputField
+                                        value="{!coc.ConInvoice_Code__c}"
+                                        rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                        id="ConInvoice_Code2"
+                                    />
+                                    <c:helpicon
+                                        helpText="宸插紑绁ㄧ殑鎹㈣揣鐨勬椂鍊欙紝閫夋嫨宸插紑绁ㄧ殑鍙戠エ銆�"
+                                        rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                    />
                                 </td>
                             </tr>
                             <tr>
                                 <td align="right">绉戝锛�</td>
                                 <td align="left">
-                                    <apex:outputField id="Order_ForDealerText2" value="{!coc.Order_ForCustomerText__c}" style="width:170px"/>
+                                    <apex:outputField
+                                        id="Order_ForDealerText2"
+                                        value="{!coc.Order_ForCustomerText__c}"
+                                        style="width: 170px"
+                                    />
                                 </td>
                                 <td align="right">鍑哄簱閲戦锛�</td>
-                                <td align="left"><apex:outputField id="sumPrice_buttom2" value="{!coc.Shipment_total_amount__c}" style="width:300px"/> 鍏�</td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="sumPrice_buttom2"
+                                        value="{!coc.Shipment_total_amount__c}"
+                                        style="width: 300px"
+                                    />
+                                    鍏�
+                                </td>
                             </tr>
                             <tr>
                                 <td align="right">娌℃湁纭畾浠锋牸锛�</td>
                                 <td align="left">
-                                    <apex:inputCheckbox id="NoConfirmedPrice_out2" value="{!coc.NoConfirmedPrice__c}" disabled="true" />
+                                    <apex:inputCheckbox
+                                        id="NoConfirmedPrice_out2"
+                                        value="{!coc.NoConfirmedPrice__c}"
+                                        disabled="true"
+                                    />
                                 </td>
 
                                 <!-- ===add by rentx 2020-12-04 start -->
                                 <!-- <apex:detail rendered="{!agencyProType == 'ENG'}"> -->
-                                    <!-- <td align="right">鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
-                                    <!-- <td align="left"> -->
-                                        <apex:inputHidden id="OutPattern02" value="{!coc.OutPattern__c}"  />
-                                        <!-- <apex:outputField id="OutPattern02" value="{!coc.OutPattern__c}"  /> -->
-                                        <!-- <apex:inputCheckbox id="OutPattern02" value="{!coc.OutPattern__c}" disabled="true"  /> -->
+                                <!-- <td align="right">鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
+                                <!-- <td align="left"> -->
+                                <apex:inputHidden
+                                    id="OutPattern02"
+                                    value="{!coc.OutPattern__c}"
+                                />
+                                <!-- <apex:outputField id="OutPattern02" value="{!coc.OutPattern__c}"  /> -->
+                                <!-- <apex:inputCheckbox id="OutPattern02" value="{!coc.OutPattern__c}" disabled="true"  /> -->
 
-                                        <!-- <apex:inputField id="OutPattern" value="{!coc.DeliveryMode__c}" style="width:160px"/> -->
-                                    <!-- </td> -->
+                                <!-- <apex:inputField id="OutPattern" value="{!coc.DeliveryMode__c}" style="width:160px"/> -->
+                                <!-- </td> -->
                                 <!-- </apex:detail> -->
                                 <!-- ===add by rentx 2020-12-04 end -->
                             </tr>
                         </table>
-                            </apex:outputPanel>
-                        <apex:outputPanel rendered="{! If(coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false) }">
+                    </apex:outputPanel>
+                    <apex:outputPanel
+                        rendered="{! If(coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false) }"
+                    >
                         <table>
-                        <colgroup>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="80px"/>
-                            <col width="10px"/>
-                            <col width="90px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="85px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="70px"/>
-                            <col width="100px"/>
-                        </colgroup>
-                            <tr id = "SummonsFlag" style="visibility:{!SummonsFlag}">
+                            <colgroup>
+                                <col width="150px" />
+                                <col width="300px" />
+                                <col width="150px" />
+                                <col width="300px" />
+                                <col width="80px" />
+                                <col width="10px" />
+                                <col width="90px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="85px" />
+                                <col width="100px" />
+                                <col width="10px" />
+                                <col width="70px" />
+                                <col width="100px" />
+                            </colgroup>
+                            <tr
+                                id="SummonsFlag"
+                                style="visibility:{!SummonsFlag}"
+                            >
                                 <td align="right">鍑哄簱鍗曞彿锛�</td>
-                                <td align="left"><apex:outputField id="OrderCode"  value="{!coc.Name}" style="width:100px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="OrderCode"
+                                        value="{!coc.Name}"
+                                        style="width: 100px"
+                                    />
+                                </td>
                                 <td align="right">鍑哄簱鍗曠姸鎬侊細</td>
-                                <td align="left"><apex:outputField id="SummonsStatus_c__c" value="{!coc.SummonsStatus_c__c}" style="width:100px"/></td>
+                                <td align="left">
+                                    <apex:outputField
+                                        id="SummonsStatus_c__c"
+                                        value="{!coc.SummonsStatus_c__c}"
+                                        style="width: 100px"
+                                    />
+                                </td>
                             </tr>
                             <tr>
                                 <td align="right">鐩殑锛�</td>
-                                <td align="left"><div style="width:3px;height:20px;background-color:red; position:absolute;margin-right:5px;"></div>
-                                <apex:inputField onchange="ChangeDirction(this)" id="SummonsForDirction__c" value="{!coc.SummonsForDirction__c}" style="width:160px"/></td>
+                                <td align="left">
+                                    <div
+                                        style="
+                                            width: 3px;
+                                            height: 20px;
+                                            background-color: red;
+                                            position: absolute;
+                                            margin-right: 5px;
+                                        "
+                                    ></div>
+                                    <apex:inputField
+                                        onchange="ChangeDirction(this)"
+                                        id="SummonsForDirction__c"
+                                        value="{!coc.SummonsForDirction__c}"
+                                        style="width: 160px"
+                                    />
+                                </td>
                                 <td align="right">浜岀骇缁忛攢鍟嗭細</td>
                                 <td align="left">
-                                <apex:selectList id="province" value="{!SecondDealer}" style="width:160px" size="1" >
-                                    <apex:selectOptions value="{!provinceOpts}"/>
-                                </apex:selectList>
+                                    <apex:selectList
+                                        id="province"
+                                        value="{!SecondDealer}"
+                                        style="width: 160px"
+                                        size="1"
+                                    >
+                                        <apex:selectOptions
+                                            value="{!provinceOpts}"
+                                        />
+                                    </apex:selectList>
                                 </td>
                             </tr>
                             <tr>
                                 <td align="right">瀹㈡埛鍚嶏細</td>
                                 <td align="left">
-                                    <apex:inputText id="OEC" value="{!HospitalName}" onclick="searchsearchAgencyH('{!agencyProType}'); return false;" onblur="clearAgencyI();return false;" style="width:155px"  />
-                                    <apex:inputHidden value="{!HospitalInfo}" id="OECId" />
+                                    <apex:inputText
+                                        id="OEC"
+                                        value="{!HospitalName}"
+                                        onclick="searchsearchAgencyH('{!agencyProType}'); return false;"
+                                        onblur="clearAgencyI();return false;"
+                                        style="width: 155px"
+                                    />
+                                    <apex:inputHidden
+                                        value="{!HospitalInfo}"
+                                        id="OECId"
+                                    />
                                 </td>
                                 <td align="right">缁忛攢鍟�(褰曞叆)锛�</td>
                                 <td align="left">
-                                    <apex:inputField id="Order_ForDealerText" value="{!coc.Order_ForDealerText__c}" onfocus="setVisitorPlace();" style="width:155px" onblur="if (j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value() == '浜掔浉璋冭揣'){vpClear2_delay();}"/>
-<!--                                    <apex:inputField id="Order_ForDealerText" value="{!coc.Order_ForDealerText__c}"  style="width:155px" onblur="if (j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value() == '浜掔浉璋冭揣'){vpClear2_delay();}"/>-->
-                                    <apex:inputHidden id="Order_ForDealerTextHidden" value="{!coc.Order_ForDealerText__c}" />
-                                    <apex:inputHidden id="Order_ForDealerTextId" value="{!coc.Order_ForDealerTextID__c}" />
-                                    <apex:inputHidden id="Order_ForDealerTextHiddenId" value="{!coc.Order_ForDealerTextID__c}" />
+                                    <apex:inputField
+                                        id="Order_ForDealerText"
+                                        value="{!coc.Order_ForDealerText__c}"
+                                        onfocus="setVisitorPlace();"
+                                        style="width: 155px"
+                                        onblur="if (j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value() == '浜掔浉璋冭揣'){vpClear2_delay();}"
+                                    />
+                                    <!--                                    <apex:inputField id="Order_ForDealerText" value="{!coc.Order_ForDealerText__c}"  style="width:155px" onblur="if (j$(escapeVfId('allPage:allForm:allBlock:Editable:SummonsForDirction__c')).value() == '浜掔浉璋冭揣'){vpClear2_delay();}"/>-->
+                                    <apex:inputHidden
+                                        id="Order_ForDealerTextHidden"
+                                        value="{!coc.Order_ForDealerText__c}"
+                                    />
+                                    <apex:inputHidden
+                                        id="Order_ForDealerTextId"
+                                        value="{!coc.Order_ForDealerTextID__c}"
+                                    />
+                                    <apex:inputHidden
+                                        id="Order_ForDealerTextHiddenId"
+                                        value="{!coc.Order_ForDealerTextID__c}"
+                                    />
                                 </td>
                             </tr>
                             <tr>
                                 <td align="right">绉戝锛�</td>
                                 <td align="left">
-                                    <apex:inputField id="Order_ForCustomer" value="{!coc.Order_ForCustomerText__c}" style="width:155px"/>
+                                    <apex:inputField
+                                        id="Order_ForCustomer"
+                                        value="{!coc.Order_ForCustomerText__c}"
+                                        style="width: 155px"
+                                    />
                                 </td>
                                 <td align="right">鎬婚噾棰濓細</td>
-                                <td align="left"><apex:outputText id="sumPrice_buttom" value="{!sumPrice}"/> 鍏�</td>
+                                <td align="left">
+                                    <apex:outputText
+                                        id="sumPrice_buttom"
+                                        value="{!sumPrice}"
+                                    />
+                                    鍏�
+                                </td>
                             </tr>
                             <tr>
                                 <td align="right">娌℃湁纭畾浠锋牸锛�</td>
                                 <td align="left">
-                                    <apex:inputCheckbox id="NoConfirmedPrice" value="{!coc.NoConfirmedPrice__c}" />
+                                    <apex:inputCheckbox
+                                        id="NoConfirmedPrice"
+                                        value="{!coc.NoConfirmedPrice__c}"
+                                    />
                                 </td>
 
                                 <!-- ===add by rentx 2020-12-04 start 鍥犱负鐩墠缁存姢浜嗙壒浠蜂骇鍝佺殑鍖婚櫌閮芥槸ENG鍖婚櫌,鎵�浠ュ彧鏈塃NG鐨勬椂鍊欏睍绀� 鏄惁鍖婚櫌鐗逛环鍑哄簱 鍗冲彲-->
                                 <!-- <apex:detail rendered="{!agencyProType == 'ENG'}"> -->
-                                    <!-- <td align="right" >鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
-                                    <!-- <td align="left"> -->
-                                        <!-- <apex:outputField id="OutPattern01" value="{!coc.OutPattern__c}" /> -->
-                                        <apex:inputHidden id="OutPattern01" value="{!coc.OutPattern__c}" />
+                                <!-- <td align="right" >鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
+                                <!-- <td align="left"> -->
+                                <!-- <apex:outputField id="OutPattern01" value="{!coc.OutPattern__c}" /> -->
+                                <apex:inputHidden
+                                    id="OutPattern01"
+                                    value="{!coc.OutPattern__c}"
+                                />
 
-                                    <!-- </td> -->
+                                <!-- </td> -->
                                 <!-- </apex:detail> -->
                                 <!-- ===add by rentx 2020-12-04 end -->
-
                             </tr>
                         </table>
-                        </apex:outputPanel>
+                    </apex:outputPanel>
 
                     <!-- <tr id = "SummonsFlag" style="visibility:{!SummonsFlag}">
                             <td align="right">鍑哄簱鍗曞彿锛�</td>
@@ -704,193 +1004,374 @@
                     </table> -->
                     <!-- update end by vivek2019-7-12 -->
                 </apex:pageBlock>
-<!--==============20160314====INSERT_CODE_START=======================================-->
-                 <apex:pageBlock title="鍑哄簱鍗曚俊鎭�" id="unEditable" rendered="{!!EditAble}">
+                <!--==============20160314====INSERT_CODE_START=======================================-->
+                <apex:pageBlock
+                    title="鍑哄簱鍗曚俊鎭�"
+                    id="unEditable"
+                    rendered="{!!EditAble}"
+                >
                     <table>
                         <colgroup>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="150px"/>
-                            <col width="300px"/>
-                            <col width="100px"/>
-                            <col width="70px"/>
-                            <col width="90px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="85px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="70px"/>
-                            <col width="100px"/>
+                            <col width="150px" />
+                            <col width="300px" />
+                            <col width="150px" />
+                            <col width="300px" />
+                            <col width="100px" />
+                            <col width="70px" />
+                            <col width="90px" />
+                            <col width="100px" />
+                            <col width="10px" />
+                            <col width="85px" />
+                            <col width="100px" />
+                            <col width="10px" />
+                            <col width="70px" />
+                            <col width="100px" />
                         </colgroup>
                         <tr>
                             <td align="right">鍑哄簱鍗曞彿锛�</td>
-                            <td align="left"><apex:outputField id="OrderCode_out"  value="{!coc.Name}" style="width:300px"/></td>
+                            <td align="left">
+                                <apex:outputField
+                                    id="OrderCode_out"
+                                    value="{!coc.Name}"
+                                    style="width: 300px"
+                                />
+                            </td>
                             <td align="right">鍑哄簱鍗曠姸鎬侊細</td>
-                            <td align="left"><apex:outputField id="OrderStatus_out" value="{!coc.SummonsStatus_c__c}" style="width:300px"/></td>
+                            <td align="left">
+                                <apex:outputField
+                                    id="OrderStatus_out"
+                                    value="{!coc.SummonsStatus_c__c}"
+                                    style="width: 300px"
+                                />
+                            </td>
                         </tr>
                         <tr>
                             <td align="right">鐩殑锛�</td>
-                            <td align="left"><apex:outputField id="OrderDirction_out"  value="{!coc.SummonsForDirction__c}" style="width:300px"/></td>
+                            <td align="left">
+                                <apex:outputField
+                                    id="OrderDirction_out"
+                                    value="{!coc.SummonsForDirction__c}"
+                                    style="width: 300px"
+                                />
+                            </td>
                             <td align="right">寮�绁ㄧ姸鎬侊細</td>
                             <td align="left">
-                            <apex:outputField id="SecondDealer_level2" value="{!coc.Billed_Status__c}" style="width:300px"/>
+                                <apex:outputField
+                                    id="SecondDealer_level2"
+                                    value="{!coc.Billed_Status__c}"
+                                    style="width: 300px"
+                                />
                             </td>
-
                         </tr>
-                        <tr style="{!IF(coc.SummonsForDirction__c='閿�鍞粰浜岀骇缁忛攢鍟�','','display:none')}">
+                        <tr
+                            style="{!IF(coc.SummonsForDirction__c='閿�鍞粰浜岀骇缁忛攢鍟�','','display:none')}"
+                        >
                             <td align="right">浜岀骇缁忛攢鍟嗭細</td>
-                            <td align="left"><apex:outputField id="SecondDealer_out" value="{!coc.Order_Dealer_Info__c}" style="width:300px"/></td>
+                            <td align="left">
+                                <apex:outputField
+                                    id="SecondDealer_out"
+                                    value="{!coc.Order_Dealer_Info__c}"
+                                    style="width: 300px"
+                                />
+                            </td>
                             <td align="right"></td>
                             <td align="left"></td>
                         </tr>
                         <tr>
                             <td align="right">瀹㈡埛鍚嶏細</td>
-                            <td align="left"><apex:outputField id="OrderForHospital_out" value="{!coc.ShipmentAccount__c}" style="width:300px"/></td>
-                            <td align="right"><apex:outputText value="鍙戠エ锛�" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"/></td>
-                            <td align="left"><apex:inputField value="{!coc.ConInvoice_Code__c}" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}" id="ConInvoice_Code"/>
-                            <c:helpicon helpText="宸插紑绁ㄧ殑鎹㈣揣鐨勬椂鍊欙紝閫夋嫨宸插紑绁ㄧ殑鍙戠エ銆�" rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"/>
+                            <td align="left">
+                                <apex:outputField
+                                    id="OrderForHospital_out"
+                                    value="{!coc.ShipmentAccount__c}"
+                                    style="width: 300px"
+                                />
+                            </td>
+                            <td align="right">
+                                <apex:outputText
+                                    value="鍙戠エ锛�"
+                                    rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                />
+                            </td>
+                            <td align="left">
+                                <apex:inputField
+                                    value="{!coc.ConInvoice_Code__c}"
+                                    rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                    id="ConInvoice_Code"
+                                />
+                                <c:helpicon
+                                    helpText="宸插紑绁ㄧ殑鎹㈣揣鐨勬椂鍊欙紝閫夋嫨宸插紑绁ㄧ殑鍙戠エ銆�"
+                                    rendered="{!IF(coc.SummonsStatus_c__c='宸插畬鎴�' && coc.SummonsForDirction__c!='浜掔浉璋冭揣',true,false)}"
+                                />
                             </td>
                         </tr>
                         <tr>
                             <td align="right">绉戝锛�</td>
                             <td align="left">
-                                <apex:outputField id="Order_ForDealerText" value="{!coc.Order_ForCustomerText__c}" style="width:170px"/>
+                                <apex:outputField
+                                    id="Order_ForDealerText"
+                                    value="{!coc.Order_ForCustomerText__c}"
+                                    style="width: 170px"
+                                />
                             </td>
                             <td align="right">鍑哄簱閲戦锛�</td>
-                            <td align="left"><apex:outputField id="sumPrice_buttom" value="{!coc.Shipment_total_amount__c}" style="width:300px"/> 鍏�</td>
-                        <!--    <td/>
+                            <td align="left">
+                                <apex:outputField
+                                    id="sumPrice_buttom"
+                                    value="{!coc.Shipment_total_amount__c}"
+                                    style="width: 300px"
+                                />
+                                鍏�
+                            </td>
+                            <!--    <td/>
 
                             <td align="right" style="visibility:hidden">鍑哄簱鍗曟棩鏈�:</td>
                             <td align="right" style="visibility:hidden"><apex:outputField id="OrderDate_out" value="{!coc.Order_date__c}" style="width:300px"/></td> -->
-
                         </tr>
                         <!-- update start by vivek2019-7-12 -->
                         <tr>
                             <td align="right">娌℃湁纭畾浠锋牸锛�</td>
                             <td align="left">
-                                <apex:inputCheckbox id="NoConfirmedPrice_out" value="{!coc.NoConfirmedPrice__c}" disabled="true" />
+                                <apex:inputCheckbox
+                                    id="NoConfirmedPrice_out"
+                                    value="{!coc.NoConfirmedPrice__c}"
+                                    disabled="true"
+                                />
                             </td>
 
                             <!-- ===add by rentx 2020-12-04 start -->
                             <!-- <apex:detail rendered="{!agencyProType == 'ENG'}"> -->
-                                <!-- <td align="right">鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
-                                <!-- <td align="left"> -->
-                                    <!-- <apex:outputField id="OutPattern" value="{!coc.OutPattern__c}"/> -->
-                                    <apex:inputHidden id="OutPattern" value="{!coc.OutPattern__c}"/>
-                                <!-- </td> -->
+                            <!-- <td align="right">鏄惁鍖婚櫌鐗逛环鍑哄簱 : </td> -->
+                            <!-- <td align="left"> -->
+                            <!-- <apex:outputField id="OutPattern" value="{!coc.OutPattern__c}"/> -->
+                            <apex:inputHidden
+                                id="OutPattern"
+                                value="{!coc.OutPattern__c}"
+                            />
+                            <!-- </td> -->
                             <!-- </apex:detail> -->
                             <!-- ===add by rentx 2020-12-04 end -->
                         </tr>
                         <!-- update end by vivek2019-7-12 -->
                     </table>
                 </apex:pageBlock>
-<!--==============20160314====INSERT_CODE_END=======================================-->
+                <!--==============20160314====INSERT_CODE_END=======================================-->
 
-<!--==============20160310====鍒拌揣鑱斿姩鏃朵笉闇�瑕佹绱�====================================-->
+                <!--==============20160310====鍒拌揣鑱斿姩鏃朵笉闇�瑕佹绱�====================================-->
                 <!-- update start by vivek 2019-7-15 -->
-                <apex:pageBlock id="searchBlock" rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}">
-                <!-- apex:pageBlock id="searchBlock" rendered="{!IF(!Existarrive && EditAble,true,false)}"> -->
-                <!-- update end by vivek 2019-7-15 -->
+                <apex:pageBlock
+                    id="searchBlock"
+                    rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}"
+                >
+                    <!-- apex:pageBlock id="searchBlock" rendered="{!IF(!Existarrive && EditAble,true,false)}"> -->
+                    <!-- update end by vivek 2019-7-15 -->
                     <table>
                         <colgroup>
-                            <col width="160px"/>
-                            <col width="200"/>
-                            <col width="15px"/>
-                            <col width="120px"/>
-                            <col width="200px"/>
-                            <col width="20px"/>
-                            <col width="120px"/>
-                            <col width="200px"/>
-                            <col width="20px"/>
-                            <col width="120px"/>
-                            <col width="200px"/>
-                            <col width="20px"/>
-                            <col width="90px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="85px"/>
-                            <col width="100px"/>
-                            <col width="10px"/>
-                            <col width="70px"/>
-                            <col width="100px"/>
+                            <col width="160px" />
+                            <col width="200" />
+                            <col width="15px" />
+                            <col width="120px" />
+                            <col width="200px" />
+                            <col width="20px" />
+                            <col width="120px" />
+                            <col width="200px" />
+                            <col width="20px" />
+                            <col width="120px" />
+                            <col width="200px" />
+                            <col width="20px" />
+                            <col width="90px" />
+                            <col width="100px" />
+                            <col width="10px" />
+                            <col width="85px" />
+                            <col width="100px" />
+                            <col width="10px" />
+                            <col width="70px" />
+                            <col width="100px" />
                         </colgroup>
                         <tr>
                             <td align="right">娑堣�楀搧鍚嶇О</td>
-                            <td><apex:inputText id="OrderDateSearch" value="{!category1}" style="width:100px"/></td>
-                            <td/>
+                            <td>
+                                <apex:inputText
+                                    id="OrderDateSearch"
+                                    value="{!category1}"
+                                    style="width: 100px"
+                                />
+                            </td>
+                            <td />
                             <td align="right">绗�3鍒嗙被</td>
                             <td>
-                             <apex:selectList id="category3Search" value="{!category3}" style="width:100px" size="1" onchange="showAllCate();">
-                                <apex:selectOptions value="{!categoryOptionList}"/>
-                            </apex:selectList>
+                                <apex:selectList
+                                    id="category3Search"
+                                    value="{!category3}"
+                                    style="width: 100px"
+                                    size="1"
+                                    onchange="showAllCate();"
+                                >
+                                    <apex:selectOptions
+                                        value="{!categoryOptionList}"
+                                    />
+                                </apex:selectList>
                             </td>
-                            <td/>
-                             <td align="right">绗�4鍒嗙被</td>
+                            <td />
+                            <td align="right">绗�4鍒嗙被</td>
                             <td>
-                             <apex:selectList id="category4Search" value="{!category4}" style="width:100px" size="1" onchange="showCate();">
-                                <apex:selectOptions value="{!category4OptionList}"/>
-                            </apex:selectList>
+                                <apex:selectList
+                                    id="category4Search"
+                                    value="{!category4}"
+                                    style="width: 100px"
+                                    size="1"
+                                    onchange="showCate();"
+                                >
+                                    <apex:selectOptions
+                                        value="{!category4OptionList}"
+                                    />
+                                </apex:selectList>
                             </td>
-                            <td/>
-                             <td align="right">绗�5鍒嗙被</td>
-                             <td>
-                             <apex:selectList id="category5Search" value="{!category5}" style="width:100px" size="1">
-                                <apex:selectOptions value="{!category5OptionList}"/>
-                            </apex:selectList>
+                            <td />
+                            <td align="right">绗�5鍒嗙被</td>
+                            <td>
+                                <apex:selectList
+                                    id="category5Search"
+                                    value="{!category5}"
+                                    style="width: 100px"
+                                    size="1"
+                                >
+                                    <apex:selectOptions
+                                        value="{!category5OptionList}"
+                                    />
+                                </apex:selectList>
                             </td>
-                            <td/>
+                            <td />
                             <!-- //add by rentx start -->
                             <apex:detail rendered="{!hasHosPro}">
                                 <td align="right" width="120px">鍖婚櫌鐗逛环</td>
-                                 <td>
-                                 <apex:selectList id="outOutPattern" value="{!outOutPattern}" style="width:100px" size="1">
-                                    <apex:selectOptions value="{!outOutPatternOptionList}"/>
-                                </apex:selectList>
+                                <td>
+                                    <apex:selectList
+                                        id="outOutPattern"
+                                        value="{!outOutPattern}"
+                                        style="width: 100px"
+                                        size="1"
+                                    >
+                                        <apex:selectOptions
+                                            value="{!outOutPatternOptionList}"
+                                        />
+                                    </apex:selectList>
                                 </td>
-                                </apex:detail>
-                            <td/>
+                            </apex:detail>
+                            <td />
                             <!-- //add by rentx end -->
 
                             <!-- <td align="right">浜у搧鍨嬪彿</td>
                             <td><apex:inputText id="OrderCodeSearch" value="{!category_Goods}" style="width:100px"/></td> -->
                             <td align="right"></td>
-                            <td><apex:commandButton value="妫�绱�" style="width: 100px;" onclick="searchProductJs(); return false;" /></td>
-                            <td><input type="button" value="娓呯┖" style="width: 100px;" onclick="ClearJs()" class="btn"/></td>
-                            <td/>
+                            <td>
+                                <apex:commandButton
+                                    value="妫�绱�"
+                                    style="width: 100px"
+                                    onclick="searchProductJs(); return false;"
+                                />
+                            </td>
+                            <td>
+                                <input
+                                    type="button"
+                                    value="娓呯┖"
+                                    style="width: 100px"
+                                    onclick="ClearJs()"
+                                    class="btn"
+                                />
+                            </td>
+                            <td />
                         </tr>
                         <tr>
                             <td></td>
                         </tr>
                     </table>
                 </apex:pageBlock>
-                <div id="ErrorName" style="color: red;font-weight: bold;">{!alertMessage}</div>
-                <apex:pageBlock title="鍑哄簱鍗曟槑缁�" id="ConsumableorderdetailsSection">
+                <div id="ErrorName" style="color: red; font-weight: bold">
+                    {!alertMessage}
+                </div>
+                <apex:pageBlock
+                    title="鍑哄簱鍗曟槑缁�"
+                    id="ConsumableorderdetailsSection"
+                >
                     <!--<apex:inputHidden id="consumableorderdetailsCnt" value="{!consumableorderdetailsCount}"/>-->
-                    <input type="hidden" id="allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount" value="{!consumableorderdetailsCount}" />
-                    <table class="list" border="0" cellpadding="0" cellspacing="0" id="ConsumableorderdetailsTable">
-                         <tr class="headerRow">
+                    <input
+                        type="hidden"
+                        id="allPage:allForm:allBlock:ConsumableorderdetailsSection:consumableorderdetailsCount"
+                        value="{!consumableorderdetailsCount}"
+                    />
+                    <table
+                        class="list"
+                        border="0"
+                        cellpadding="0"
+                        cellspacing="0"
+                        id="ConsumableorderdetailsTable"
+                    >
+                        <tr class="headerRow">
                             <!-- update start by vivek 2019-7-15 -->
-                            <apex:variable var="v" value="" rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}">
-                            <!-- <apex:variable var="v" value="" rendered="{!IF(!Existarrive && EditAble,true,false)}"> -->
-                            <!-- update start by vivek 2019-7-15 -->
-                                <th><input type='checkbox' onClick='checkAll()' id='checker'/>閫夋嫨</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}"
+                            >
+                                <!-- <apex:variable var="v" value="" rendered="{!IF(!Existarrive && EditAble,true,false)}"> -->
+                                <!-- update start by vivek 2019-7-15 -->
+                                <th>
+                                    <input
+                                        type="checkbox"
+                                        onClick="checkAll()"
+                                        id="checker"
+                                    />閫夋嫨
+                                </th>
                             </apex:variable>
-                            <th><a href="#" onclick="SortLimitedJs('0');return false;" style="text-decoration: underline;">娑堣�楀搧鍚嶇О</a>{!sortOrder[0]}</th>
-                        <!--    <th><a href="#" onclick="SortLimitedJs('1');return false;" style="text-decoration: underline;">浜у搧鍨嬪彿</a>{!sortOrder[1]}</th>-->
+                            <th>
+                                <a
+                                    href="#"
+                                    onclick="SortLimitedJs('0');return false;"
+                                    style="text-decoration: underline"
+                                    >娑堣�楀搧鍚嶇О</a
+                                >{!sortOrder[0]}
+                            </th>
+                            <!--    <th><a href="#" onclick="SortLimitedJs('1');return false;" style="text-decoration: underline;">浜у搧鍨嬪彿</a>{!sortOrder[1]}</th>-->
 
                             <!-- TODO 鏈暘鏆備笉鏄剧ず -->
                             <apex:variable var="v" value="">
-                            <th style="width: 80px;text-align:center;">瑙勬牸</th>
+                                <th style="width: 80px; text-align: center">
+                                    瑙勬牸
+                                </th>
                             </apex:variable>
                             <th>CFDA鐘舵��</th>
                             <th>娉ㄥ唽璇佺紪鐮佸彿</th>
                             <th>娉ㄥ唽璇佹晥鏈�</th>
 
-                            <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}">
-                             <th><a href="#" onclick="SortLimitedJs('5');return false;" style="text-decoration: underline;">绗�3鍒嗙被</a>{!sortOrder[5]}</th>
-                            <th><a href="#" onclick="SortLimitedJs('6');return false;" style="text-decoration: underline;">绗�4鍒嗙被</a>{!sortOrder[6]}</th>
-                            <th><a href="#" onclick="SortLimitedJs('7');return false;" style="text-decoration: underline;">绗�5鍒嗙被</a>{!sortOrder[7]}</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}"
+                            >
+                                <th>
+                                    <a
+                                        href="#"
+                                        onclick="SortLimitedJs('5');return false;"
+                                        style="text-decoration: underline"
+                                        >绗�3鍒嗙被</a
+                                    >{!sortOrder[5]}
+                                </th>
+                                <th>
+                                    <a
+                                        href="#"
+                                        onclick="SortLimitedJs('6');return false;"
+                                        style="text-decoration: underline"
+                                        >绗�4鍒嗙被</a
+                                    >{!sortOrder[6]}
+                                </th>
+                                <th>
+                                    <a
+                                        href="#"
+                                        onclick="SortLimitedJs('7');return false;"
+                                        style="text-decoration: underline"
+                                        >绗�5鍒嗙被</a
+                                    >{!sortOrder[7]}
+                                </th>
                             </apex:variable>
                             <th>鍗曚綅</th>
                             <th>鍑鸿揣鏁伴噺</th>
@@ -906,23 +1387,50 @@
                                 <th>鍑鸿揣鍗曚环(鍏�)</th>
                             </apex:variable>-->
 
-                            <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}" id="BoxPiece_UnEditout">
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}"
+                                id="BoxPiece_UnEditout"
+                            >
                             </apex:variable>
-                            <apex:variable var="v" value="" rendered="{!if(EditAble,true,false)}">
-                            <th>鍑鸿揣閲戦(鍏�)</th>
-                            <!--<th><a href="#" onclick="SortStoreJs('3');return false;" style="text-decoration: underline;width: 100px;text-align: center;">鏈夋晥鏈熷唴搴撳瓨</a>{!sortOrder[3]}</th>-->
-                            <th>鏈夋晥鏈熷唴搴撳瓨(鐩�)</th>
-                            <th>鏈夋晥鏈熷唴搴撳瓨(涓�)</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!if(EditAble,true,false)}"
+                            >
+                                <th>鍑鸿揣閲戦(鍏�)</th>
+                                <!--<th><a href="#" onclick="SortStoreJs('3');return false;" style="text-decoration: underline;width: 100px;text-align: center;">鏈夋晥鏈熷唴搴撳瓨</a>{!sortOrder[3]}</th>-->
+                                <th>鏈夋晥鏈熷唴搴撳瓨(鐩�)</th>
+                                <th>鏈夋晥鏈熷唴搴撳瓨(涓�)</th>
                             </apex:variable>
 
-                            <apex:variable var="v" value="" rendered="{!!EditAble}">
-                                <th>{!$ObjectType.Consumable_Orderdetails__c.fields.InvoiceProNot_count__c.label}</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!!EditAble}"
+                            >
+                                <th>
+                                    {!$ObjectType.Consumable_Orderdetails__c.fields.InvoiceProNot_count__c.label}
+                                </th>
                             </apex:variable>
-                            <apex:variable var="v" value="" rendered="{!!EditAble}">
-                                <th>{!$ObjectType.Consumable_Orderdetails__c.fields.RrturnPro_count__c.label}</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!!EditAble}"
+                            >
+                                <th>
+                                    {!$ObjectType.Consumable_Orderdetails__c.fields.RrturnPro_count__c.label}
+                                </th>
                             </apex:variable>
-                            <apex:variable var="v" value="" rendered="{!!EditAble}">
-                                <th>{!$ObjectType.Consumable_Orderdetails__c.fields.Invoiced_Procount__c.label}</th>
+                            <apex:variable
+                                var="v"
+                                value=""
+                                rendered="{!!EditAble}"
+                            >
+                                <th>
+                                    {!$ObjectType.Consumable_Orderdetails__c.fields.Invoiced_Procount__c.label}
+                                </th>
                             </apex:variable>
 
                             <!-- //add by rentx 2020-11-27 start -->
@@ -931,117 +1439,294 @@
                             </apex:detail>
                             <!-- //add by rentx 2020-11-27 end -->
                         </tr>
-                        <apex:repeat value="{!pageRecords}" var="records" id="ConsumableorderdetailsTable">
+                        <apex:repeat
+                            value="{!pageRecords}"
+                            var="records"
+                            id="ConsumableorderdetailsTable"
+                        >
                             <tr class="dataRow">
                                 <!-- update start by vivek 2019-7-15 -->
                                 <!-- <apex:variable var="v" value="" rendered="{!IF(!Existarrive && EditAble,true,false)}" id="variableinfo"> -->
-                                <apex:variable var="v" value="" rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}" id="variableinfo">
-                                <!-- update end by vivek 2019-7-15 -->
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!IF(!Existarrive && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}"
+                                    id="variableinfo"
+                                >
+                                    <!-- update end by vivek 2019-7-15 -->
                                     <td>
-                                    <apex:inputCheckbox value="{!records.check}" id="consumablesCountproRowCheckbox" disabled="{!!records.canSelect}"/>
-                                     <apex:inputCheckbox value="{!records.oldCheck}" id="proRowOldCheckbox" style="display:none"/></td>
-                                 </apex:variable>
+                                        <apex:inputCheckbox
+                                            value="{!records.check}"
+                                            id="consumablesCountproRowCheckbox"
+                                            disabled="{!!records.canSelect}"
+                                        />
+                                        <apex:inputCheckbox
+                                            value="{!records.oldCheck}"
+                                            id="proRowOldCheckbox"
+                                            style="display: none"
+                                        />
+                                    </td>
+                                </apex:variable>
                                 <td class="dataCell">
-                                    <apex:outputText id="ProductName" value="{!IF(records.oldCheck=false,records.Prod.Name__c,records.orderdetails1.Consumable_Product__r.Name__c)}"/>
+                                    <apex:outputText
+                                        id="ProductName"
+                                        value="{!IF(records.oldCheck=false,records.Prod.Name__c,records.orderdetails1.Consumable_Product__r.Name__c)}"
+                                    />
                                 </td>
-                            <!--    <td>{!records.Prod.Asset_Model_No__c}</td>
+                                <!--    <td>{!records.Prod.Asset_Model_No__c}</td>
                                  -->
-                                <td style="width: 80px;text-align:center;">{!records.packinglist}</td>
-                                <td class="dataCell">{!records.Prod.SFDA_Status__c}</td>
-                                <td class="dataCell">{!records.approbation_No}</td>
+                                <td style="width: 80px; text-align: center">
+                                    {!records.packinglist}
+                                </td>
                                 <td class="dataCell">
-                                    <apex:outputText value="{0, date, yyyy/MM/dd}">
-                                        <apex:param value="{!records.expiration_Date}" />
+                                    {!records.Prod.SFDA_Status__c}
+                                </td>
+                                <td class="dataCell">
+                                    {!records.approbation_No}
+                                </td>
+                                <td class="dataCell">
+                                    <apex:outputText
+                                        value="{0, date, yyyy/MM/dd}"
+                                    >
+                                        <apex:param
+                                            value="{!records.expiration_Date}"
+                                        />
                                     </apex:outputText>
                                 </td>
-                                <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}" id="variableCategory3">
-                                 <td class="dataCell">{!records.Prod.Category3__c}</td>
-                                 <td class="dataCell">{!records.Prod.Category4__c}</td>
-                                 <td class="dataCell">{!records.Prod.Category5__c}</td>
-                                <!-- update start by vivek 2019-7-15 -->
-                                <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}" id="BoxPiece_UnEditout1">
-                                 <td class="dataCell">
-                                    <apex:selectList value="{!records.orderdetails1.Box_Piece__c}" size="1" style="width:60px;" id="BoxPiece">
-                                    <apex:selectOptions value="{!records.boxorpiece}"/>
-                                    </apex:selectList>
-                                </td>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}"
+                                    id="variableCategory3"
+                                >
+                                    <td class="dataCell">
+                                        {!records.Prod.Category3__c}
+                                    </td>
+                                    <td class="dataCell">
+                                        {!records.Prod.Category4__c}
+                                    </td>
+                                    <td class="dataCell">
+                                        {!records.Prod.Category5__c}
+                                    </td>
+                                    <!-- update start by vivek 2019-7-15 -->
+                                    <apex:variable
+                                        var="v"
+                                        value=""
+                                        rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}"
+                                        id="BoxPiece_UnEditout1"
+                                    >
+                                        <td class="dataCell">
+                                            <apex:selectList
+                                                value="{!records.orderdetails1.Box_Piece__c}"
+                                                size="1"
+                                                style="width: 60px"
+                                                id="BoxPiece"
+                                            >
+                                                <apex:selectOptions
+                                                    value="{!records.boxorpiece}"
+                                                />
+                                            </apex:selectList>
+                                        </td>
+                                    </apex:variable>
+                                    <!-- update end by vivek 2019-7-15 -->
                                 </apex:variable>
-                                <!-- update end by vivek 2019-7-15 -->
-                                 </apex:variable>
 
                                 <!-- update start by vivek 2019-7-15 -->
-                                <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false))}" id="BoxPiece_UnEditout1">
-                                <!-- <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}" id="BoxPiece_UnEditout"> -->
-                                <!-- update end by vivek 2019-7-15 -->
-                                <td><apex:outputField id="BoxPiece_UnEditin" value="{!records.orderdetails1.Box_Piece__c}"/></td>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false))}"
+                                    id="BoxPiece_UnEditout1"
+                                >
+                                    <!-- <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}" id="BoxPiece_UnEditout"> -->
+                                    <!-- update end by vivek 2019-7-15 -->
+                                    <td>
+                                        <apex:outputField
+                                            id="BoxPiece_UnEditin"
+                                            value="{!records.orderdetails1.Box_Piece__c}"
+                                        />
+                                    </td>
                                 </apex:variable>
                                 <!-- update start by vivek 2019-7-15 -->
-                                <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false))}" id="consumablesCount_UnEditout">
-                                <!-- <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}" id="consumablesCount_UnEditout"> -->
-                                <!-- update start by vivek 2019-7-15 -->
-                                <!--<td style="text-align:right;"><apex:outputField id="consumablesCount_Unagency" value="{!records.orderdetails1.Unitprice_To_agency__c}"/></td>-->
-                                <td style="text-align:center;"><apex:outputField id="consumablesCount_UnEditin" value="{!records.orderdetails1.Shipment_Count__c}"/></td>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false))}"
+                                    id="consumablesCount_UnEditout"
+                                >
+                                    <!-- <apex:variable var="v" value="" rendered="{!NOT(IF(arriveorder ='' && Existarrive = false && EditAble,true,false))}" id="consumablesCount_UnEditout"> -->
+                                    <!-- update start by vivek 2019-7-15 -->
+                                    <!--<td style="text-align:right;"><apex:outputField id="consumablesCount_Unagency" value="{!records.orderdetails1.Unitprice_To_agency__c}"/></td>-->
+                                    <td style="text-align: center">
+                                        <apex:outputField
+                                            id="consumablesCount_UnEditin"
+                                            value="{!records.orderdetails1.Shipment_Count__c}"
+                                        />
+                                    </td>
                                 </apex:variable>
                                 <!-- update start by vivek 2019-7-15 -->
-                                <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}" id="variable">
-                                 <!-- <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}" id="variable"> -->
-                                <!-- update end by vivek 2019-7-15 -->
-                                <td class="dataCell">
-                                    <div style="width:2px;height:20px;background-color:red; position:absolute;margin-right:5px;"></div>
-                                    <apex:inputField onblur="ComputePrice(this)" id="consumablesCount" value="{!records.orderdetails1.Shipment_Count__c}" style="width: 100px;" /></td>
-                                 </apex:variable>
-                                <apex:variable var="v" value="" rendered="{!EditAble}" id="variableMoneyinfo">
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble && coc.SummonsStatus_c__c != '浠锋牸鏈畾',true,false)}"
+                                    id="variable"
+                                >
+                                    <!-- <apex:variable var="v" value="" rendered="{!IF(arriveorder ='' && Existarrive = false && EditAble,true,false)}" id="variable"> -->
+                                    <!-- update end by vivek 2019-7-15 -->
                                     <td class="dataCell">
-                                    <div style="width:2px;height:20px;background-color:red; position:absolute;margin-right:5px;"></div>
-                                    <apex:inputField onblur="ComputePriceCheck(this)" value="{!records.orderdetails1.Delivery_List_RMB__c}" style="width: 100px;" id="productOrderMoneyinfo"/>
+                                        <div
+                                            style="
+                                                width: 2px;
+                                                height: 20px;
+                                                background-color: red;
+                                                position: absolute;
+                                                margin-right: 5px;
+                                            "
+                                        ></div>
+                                        <apex:inputField
+                                            onblur="ComputePrice(this)"
+                                            id="consumablesCount"
+                                            value="{!records.orderdetails1.Shipment_Count__c}"
+                                            style="width: 100px"
+                                        />
+                                    </td>
+                                </apex:variable>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!EditAble}"
+                                    id="variableMoneyinfo"
+                                >
+                                    <td class="dataCell">
+                                        <div
+                                            style="
+                                                width: 2px;
+                                                height: 20px;
+                                                background-color: red;
+                                                position: absolute;
+                                                margin-right: 5px;
+                                            "
+                                        ></div>
+                                        <apex:inputField
+                                            onblur="ComputePriceCheck(this)"
+                                            value="{!records.orderdetails1.Delivery_List_RMB__c}"
+                                            style="width: 100px"
+                                            id="productOrderMoneyinfo"
+                                        />
                                     </td>
                                     <!-- <td class="dataCell">
                                     <apex:inputField id="Unitpriceagency" value="{!records.orderdetails1.Unitprice_To_agency__c}"  style="width: 100px;"/>
                                     </td> -->
                                 </apex:variable>
-                                <apex:variable var="v" value="" rendered="{!!EditAble}">
-                                    <td class="dataCell" style="text-align:center;">
-                                    <apex:outputText id="consumablesCountDealerPrice_Unedit" value="{!IF(records.orderdetails1.Delivery_List_RMB__c==null,0.00,records.orderdetails1.Delivery_List_RMB__c)}"/>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!!EditAble}"
+                                >
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center"
+                                    >
+                                        <apex:outputText
+                                            id="consumablesCountDealerPrice_Unedit"
+                                            value="{!IF(records.orderdetails1.Delivery_List_RMB__c==null,0.00,records.orderdetails1.Delivery_List_RMB__c)}"
+                                        />
                                     </td>
                                     <!-- <td style="text-align:center;"><apex:outputField id="consumablesCount_Unagency" value="{!records.orderdetails1.Unitprice_To_agency__c}"/></td> -->
                                 </apex:variable>
 
-                                <apex:variable var="v" value="" id="variableAllprice" rendered="{!EditAble}">
-                                <td class="dataCell" style="text-align:center;">
-                                    <apex:outputField id="consumablesCounttestPrice" value="{!records.orderdetails1.Shipment_amount__c}"/>
-                                </td>
-                                <!--<td class="dataCell" style="text-align:right;width: 50px;">{!records.allnumber}</td>-->
-                                <td class="dataCell" style="text-align:center;width: 50px;">{!records.Boxnumber}</td>
-                                <td class="dataCell" style="text-align:center;width: 50px;">{!records.Piecenumber}</td>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    id="variableAllprice"
+                                    rendered="{!EditAble}"
+                                >
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center"
+                                    >
+                                        <apex:outputField
+                                            id="consumablesCounttestPrice"
+                                            value="{!records.orderdetails1.Shipment_amount__c}"
+                                        />
+                                    </td>
+                                    <!--<td class="dataCell" style="text-align:right;width: 50px;">{!records.allnumber}</td>-->
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center; width: 50px"
+                                    >
+                                        {!records.Boxnumber}
+                                    </td>
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center; width: 50px"
+                                    >
+                                        {!records.Piecenumber}
+                                    </td>
                                 </apex:variable>
-                                <apex:variable var="v" value="" rendered="{!!EditAble}">
-                                    <td class="dataCell" style="text-align:center;"><apex:outputField value="{!records.orderdetails1.InvoiceProNot_count__c}"/></td>
-                                    <td class="dataCell" style="text-align:center;"><apex:outputField value="{!records.orderdetails1.RrturnPro_count__c}"/></td>
-                                    <td class="dataCell" style="text-align:center;"><apex:outputField value="{!records.orderdetails1.Invoiced_Procount__c}"/></td>
+                                <apex:variable
+                                    var="v"
+                                    value=""
+                                    rendered="{!!EditAble}"
+                                >
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center"
+                                    >
+                                        <apex:outputField
+                                            value="{!records.orderdetails1.InvoiceProNot_count__c}"
+                                        />
+                                    </td>
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center"
+                                    >
+                                        <apex:outputField
+                                            value="{!records.orderdetails1.RrturnPro_count__c}"
+                                        />
+                                    </td>
+                                    <td
+                                        class="dataCell"
+                                        style="text-align: center"
+                                    >
+                                        <apex:outputField
+                                            value="{!records.orderdetails1.Invoiced_Procount__c}"
+                                        />
+                                    </td>
                                 </apex:variable>
-                                    <!-- add by rentx 2020-11-26 start -->
-                                <apex:detail rendered="{!hasHosPro}" >
+                                <!-- add by rentx 2020-11-26 start -->
+                                <apex:detail rendered="{!hasHosPro}">
                                     <td>
                                         <!-- <apex:outputField value="{!records.orderdetails2.hospitalSpecialOffer__c}"/> -->
-                                        <apex:detail rendered="{!records.hospitalSpecialOffer}" >
-                                            <apex:inputHidden value="{!records.hospitalSpecialOffer}"  id="hosOffer"/>
-                                            <apex:inputHidden value="{!records.hosPro}"  id="hosPro"/>
+                                        <apex:detail
+                                            rendered="{!records.hospitalSpecialOffer}"
+                                        >
+                                            <apex:inputHidden
+                                                value="{!records.hospitalSpecialOffer}"
+                                                id="hosOffer"
+                                            />
+                                            <apex:inputHidden
+                                                value="{!records.hosPro}"
+                                                id="hosPro"
+                                            />
                                             鈭�
                                         </apex:detail>
                                     </td>
                                 </apex:detail>
-                            <!-- add by rentx 2020-11-26 end -->
+                                <!-- add by rentx 2020-11-26 end -->
                             </tr>
                         </apex:repeat>
                     </table>
                     <table style="width: 100%">
-                         <tr>
+                        <tr>
                             <td>
                                 <!-- Page X of Y -->
                                 <!-- PageNumber锛氬綋鍓嶉〉闈㈡墍鍦ㄤ綅缃紝ResultSize锛氳褰曟�绘潯鏁帮紝PageSize锛氭瘡椤佃褰曟潯鏁� -->
-                                <apex:outputText value="{!(setCon.pageNumber * size)+1-size}-{!IF((setCon.pageNumber * size)>noOfRecords, noOfRecords,
-                                 (setCon.pageNumber * size))} 鍏� {!noOfRecords} 涓�" />
-                                 <!--<apex:outputPanel >
+                                <apex:outputText
+                                    value="{!(setCon.pageNumber * size)+1-size}-{!IF((setCon.pageNumber * size)>noOfRecords, noOfRecords,
+                                 (setCon.pageNumber * size))} 鍏� {!noOfRecords} 涓�"
+                                />
+                                <!--<apex:outputPanel >
                                     <apex:actionStatus id="fetchStatus" >
                                         <apex:facet name="start" >
                                           <img src="/img/loading.gif" />
@@ -1051,64 +1736,162 @@
                             </td>
                             <td align="center">
                                 <div class="paginator line1">
-                                <span class="prevNextLinks">
-                                <!-- 鏈夎繛鎺� -->
-                                <apex:outputPanel rendered="{!setCon.hasPrevious}">
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" reRender="ConsumableorderdetailsSection" action="{!setCon.first}" oncomplete="refreshPageSizeJs();" title="棣栭〉" >
-                                <img src="/s.gif" title="棣栭〉" alt="棣栭〉" class="{!if((setCon.hasPrevious),'first','firstoff')}"/>
-                                </apex:commandLink>
-                                </span>
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" reRender="ConsumableorderdetailsSection"  action="{!setCon.previous}" oncomplete="refreshPageSizeJs();"  title="涓婁竴椤�">
-                                <img src="/s.gif" title="涓婁竴椤�" alt="涓婁竴椤�" class="{!if((setCon.hasPrevious),'prev','prevoff')}"/>涓婁竴椤�
-                                </apex:commandLink>
-                                </span>
-                                </apex:outputPanel>
-                                <!-- 鏃犺繛鎺� -->
-                                <apex:outputPanel rendered="{!!setCon.hasPrevious}">
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" oncomplete="onLoadDirction();" reRender="ConsumableorderdetailsSection" title="棣栭〉" >
-                                <img src="/s.gif" title="棣栭〉" alt="棣栭〉" class="{!if((setCon.hasPrevious),'first','firstoff')}"/>
-                                </apex:commandLink>
-                                </span>
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" oncomplete="onLoadDirction();" reRender="ConsumableorderdetailsSection"  title="涓婁竴椤�">
-                                <img src="/s.gif" title="涓婁竴椤�" alt="涓婁竴椤�" class="{!if((setCon.hasPrevious),'prev','prevoff')}"/>涓婁竴椤�
-                                </apex:commandLink>
-                                </span>
-                                </apex:outputPanel>
-                                <!-- 鏈夎繛鎺� -->
-                                <apex:outputPanel rendered="{!setCon.hasNext}">
-                                <span class="prevNext" rendered = "{!!setCon.hasNext}">
-                                <apex:commandLink status="fetchStatus" reRender="ConsumableorderdetailsSection" action="{!setCon.next}" oncomplete="refreshPageSizeJs();" title="涓嬩竴椤�" rendered="{!setCon.hasNext}">涓嬩竴椤�
-                                <img src="/s.gif" title="涓嬩竴椤�" alt="涓嬩竴椤�" class="{!if((setCon.hasNext),'next','nextoff')}" />
-                                </apex:commandLink>
-                                </span>
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" reRender="ConsumableorderdetailsSection" action="{!setCon.last}"  oncomplete="refreshPageSizeJs();" title="灏鹃〉">
-                                <img src="/s.gif" title="灏鹃〉" alt="灏鹃〉" class="{!if((setCon.hasNext),'last','lastoff')}"/>
-                                </apex:commandLink>
-                                </span>
-                                </apex:outputPanel>
-                                <!-- 鏃犺繛鎺� -->
-                                <apex:outputPanel rendered="{!!setCon.hasNext}">
-                                <span class="prevNext" rendered = "{!setCon.hasNext}">
-                                <apex:commandLink status="fetchStatus" oncomplete="onLoadDirction();" reRender="ConsumableorderdetailsSection"  title="涓嬩竴椤�">涓嬩竴椤�
-                                <img src="/s.gif" title="涓嬩竴椤�" alt="涓嬩竴椤�" class="{!if((setCon.hasNext),'next','nextoff')}" />
-                                </apex:commandLink>
-                                </span>
-                                <span class="prevNext">
-                                <apex:commandLink status="fetchStatus" oncomplete="onLoadDirction();" reRender="ConsumableorderdetailsSection" title="灏鹃〉">
-                                <img src="/s.gif" title="灏鹃〉" alt="灏鹃〉" class="{!if((setCon.hasNext),'last','lastoff')}"/>
-                                </apex:commandLink>
-                                </span>
-                                </apex:outputPanel>
-                                </span>
+                                    <span class="prevNextLinks">
+                                        <!-- 鏈夎繛鎺� -->
+                                        <apex:outputPanel
+                                            rendered="{!setCon.hasPrevious}"
+                                        >
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    action="{!setCon.first}"
+                                                    oncomplete="refreshPageSizeJs();"
+                                                    title="棣栭〉"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="棣栭〉"
+                                                        alt="棣栭〉"
+                                                        class="{!if((setCon.hasPrevious),'first','firstoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    action="{!setCon.previous}"
+                                                    oncomplete="refreshPageSizeJs();"
+                                                    title="涓婁竴椤�"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="涓婁竴椤�"
+                                                        alt="涓婁竴椤�"
+                                                        class="{!if((setCon.hasPrevious),'prev','prevoff')}"
+                                                    />涓婁竴椤�
+                                                </apex:commandLink>
+                                            </span>
+                                        </apex:outputPanel>
+                                        <!-- 鏃犺繛鎺� -->
+                                        <apex:outputPanel
+                                            rendered="{!!setCon.hasPrevious}"
+                                        >
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    oncomplete="onLoadDirction();"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    title="棣栭〉"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="棣栭〉"
+                                                        alt="棣栭〉"
+                                                        class="{!if((setCon.hasPrevious),'first','firstoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    oncomplete="onLoadDirction();"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    title="涓婁竴椤�"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="涓婁竴椤�"
+                                                        alt="涓婁竴椤�"
+                                                        class="{!if((setCon.hasPrevious),'prev','prevoff')}"
+                                                    />涓婁竴椤�
+                                                </apex:commandLink>
+                                            </span>
+                                        </apex:outputPanel>
+                                        <!-- 鏈夎繛鎺� -->
+                                        <apex:outputPanel
+                                            rendered="{!setCon.hasNext}"
+                                        >
+                                            <span
+                                                class="prevNext"
+                                                rendered="{!!setCon.hasNext}"
+                                            >
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    action="{!setCon.next}"
+                                                    oncomplete="refreshPageSizeJs();"
+                                                    title="涓嬩竴椤�"
+                                                    rendered="{!setCon.hasNext}"
+                                                    >涓嬩竴椤�
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="涓嬩竴椤�"
+                                                        alt="涓嬩竴椤�"
+                                                        class="{!if((setCon.hasNext),'next','nextoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    action="{!setCon.last}"
+                                                    oncomplete="refreshPageSizeJs();"
+                                                    title="灏鹃〉"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="灏鹃〉"
+                                                        alt="灏鹃〉"
+                                                        class="{!if((setCon.hasNext),'last','lastoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                        </apex:outputPanel>
+                                        <!-- 鏃犺繛鎺� -->
+                                        <apex:outputPanel
+                                            rendered="{!!setCon.hasNext}"
+                                        >
+                                            <span
+                                                class="prevNext"
+                                                rendered="{!setCon.hasNext}"
+                                            >
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    oncomplete="onLoadDirction();"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    title="涓嬩竴椤�"
+                                                    >涓嬩竴椤�
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="涓嬩竴椤�"
+                                                        alt="涓嬩竴椤�"
+                                                        class="{!if((setCon.hasNext),'next','nextoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                            <span class="prevNext">
+                                                <apex:commandLink
+                                                    status="fetchStatus"
+                                                    oncomplete="onLoadDirction();"
+                                                    reRender="ConsumableorderdetailsSection"
+                                                    title="灏鹃〉"
+                                                >
+                                                    <img
+                                                        src="/s.gif"
+                                                        title="灏鹃〉"
+                                                        alt="灏鹃〉"
+                                                        class="{!if((setCon.hasNext),'last','lastoff')}"
+                                                    />
+                                                </apex:commandLink>
+                                            </span>
+                                        </apex:outputPanel>
+                                    </span>
                                 </div>
-                             </td>
-                             <td align="right" width="20%">
                             </td>
+                            <td align="right" width="20%"></td>
                         </tr>
                     </table>
                     <!--
@@ -1138,49 +1921,87 @@
             </apex:panelGrid>-->
                 </apex:pageBlock>
 
-                <apex:pageBlock title="鍙戠エ鏄庣粏" rendered="{!IF((coc.Billed_Status__c !='杩樻病寮�绁�') && IdCheck != null,true,false)}">
-                     <apex:pageblocksection columns="1" id="consumableInvoiceRecordsSection">
-                        <apex:pageblocktable value="{!consumableInvoiceRecords}" var="records" id="consumableInvoiceRecordsTable">
-                             <apex:column width="80">
-                                 <apex:facet name="header">鍙戠エ鍙�</apex:facet>
-                                 <apex:outputField value="{!records.Name}"/>
-                             </apex:column>
-                              <apex:column width="80">
-                                 <apex:facet name="header">鍙戠エ鏃�</apex:facet>
-                                 <apex:outputField value="{!records.Invoice_Date__c}"/>
-                             </apex:column>
-                             <apex:column width="80" style="text-align: center;">
-                                 <apex:facet name="header">鍙戠エ绁ㄩ潰閲戦(鍏�)</apex:facet>
-                                 <apex:outputField value="{!records.Invoice_total_amount__c}"/>
-                             </apex:column>
-                             <apex:column width="80">
-                                 <apex:facet name="header">鍙戠エ鐘舵��</apex:facet>
-                                 <apex:outputField value="{!records.Invoice_status__c}"/>
-                             </apex:column>
+                <apex:pageBlock
+                    title="鍙戠エ鏄庣粏"
+                    rendered="{!IF((coc.Billed_Status__c !='杩樻病寮�绁�') && IdCheck != null,true,false)}"
+                >
+                    <apex:pageblocksection
+                        columns="1"
+                        id="consumableInvoiceRecordsSection"
+                    >
+                        <apex:pageblocktable
+                            value="{!consumableInvoiceRecords}"
+                            var="records"
+                            id="consumableInvoiceRecordsTable"
+                        >
+                            <apex:column width="80">
+                                <apex:facet name="header">鍙戠エ鍙�</apex:facet>
+                                <apex:outputField value="{!records.Name}" />
+                            </apex:column>
+                            <apex:column width="80">
+                                <apex:facet name="header">鍙戠エ鏃�</apex:facet>
+                                <apex:outputField
+                                    value="{!records.Invoice_Date__c}"
+                                />
+                            </apex:column>
+                            <apex:column width="80" style="text-align: center">
+                                <apex:facet name="header"
+                                    >鍙戠エ绁ㄩ潰閲戦(鍏�)</apex:facet
+                                >
+                                <apex:outputField
+                                    value="{!records.Invoice_total_amount__c}"
+                                />
+                            </apex:column>
+                            <apex:column width="80">
+                                <apex:facet name="header">鍙戠エ鐘舵��</apex:facet>
+                                <apex:outputField
+                                    value="{!records.Invoice_status__c}"
+                                />
+                            </apex:column>
                         </apex:pageblocktable>
                     </apex:pageblocksection>
                 </apex:pageBlock>
 
-                <apex:pageBlock title="鍑哄簱浜у搧鏄庣粏" rendered="{!IF(consumableorderdetails2Count > 0,true,false)}">
-                <apex:pageblocksection columns="1" id="Consumableorderdetails2Section">
-                    <apex:pageblocktable value="{!consumableorderdetails2Records}" var="records" id="Consumableorderdetails2Table">
-                         <apex:column width="80">
-                             <apex:facet name="header">娑堣�楀搧鍚嶇О</apex:facet>
-                             <apex:outputField value="{!records.Prod.name}"/>
-                         </apex:column>
-                          <apex:column width="80">
-                             <apex:facet name="header">鎵规鍙�</apex:facet>
-                             <apex:outputField value="{!records.orderdetails2.SerialLotNo__c}" />
-                         </apex:column>
-                          <apex:column width="80">
-                             <apex:facet name="header">绠$悊缂栫爜</apex:facet>
-                             <apex:outputField value="{!records.orderdetails2.TracingCode__c}"/>
-                         </apex:column>
-                          <apex:column width="80">
-                             <apex:facet name="header">浣跨敤鏈熼檺</apex:facet>
-                             <apex:outputField value="{!records.orderdetails2.Sterilization_limit__c}"/>
-                         </apex:column>
-                        <!-- <apex:column width="80">
+                <apex:pageBlock
+                    title="鍑哄簱浜у搧鏄庣粏"
+                    rendered="{!IF(consumableorderdetails2Count > 0,true,false)}"
+                >
+                    <apex:pageblocksection
+                        columns="1"
+                        id="Consumableorderdetails2Section"
+                    >
+                        <apex:pageblocktable
+                            value="{!consumableorderdetails2Records}"
+                            var="records"
+                            id="Consumableorderdetails2Table"
+                        >
+                            <apex:column width="80">
+                                <apex:facet name="header"
+                                    >娑堣�楀搧鍚嶇О</apex:facet
+                                >
+                                <apex:outputField
+                                    value="{!records.Prod.name}"
+                                />
+                            </apex:column>
+                            <apex:column width="80">
+                                <apex:facet name="header">鎵规鍙�</apex:facet>
+                                <apex:outputField
+                                    value="{!records.orderdetails2.SerialLotNo__c}"
+                                />
+                            </apex:column>
+                            <apex:column width="80">
+                                <apex:facet name="header">绠$悊缂栫爜</apex:facet>
+                                <apex:outputField
+                                    value="{!records.orderdetails2.TracingCode__c}"
+                                />
+                            </apex:column>
+                            <apex:column width="80">
+                                <apex:facet name="header">浣跨敤鏈熼檺</apex:facet>
+                                <apex:outputField
+                                    value="{!records.orderdetails2.Sterilization_limit__c}"
+                                />
+                            </apex:column>
+                            <!-- <apex:column width="80">
                              <apex:facet name="header">寮�绁ㄦ棩</apex:facet>
                              <apex:outputField value="{!records.orderdetails2.Invoice_Date__c}" />
                          </apex:column>
@@ -1190,28 +2011,39 @@
                                 <apex:outputText value="{!records.orderdetails2.Invoice_No__r.Name}" />
                              </apex:outputLink>
                          </apex:column> -->
-                    </apex:pageblocktable>
-                </apex:pageblocksection>
-            </apex:pageBlock>
+                        </apex:pageblocktable>
+                    </apex:pageblocksection>
+                </apex:pageBlock>
             </apex:pageBlock>
         </apex:outputPanel>
-        <apex:pageBlock title="闄勪欢" id="ConsumableConsumeSection" rendered="{!!editAble}">
-        <apex:pageBlockTable value="{!AttachmentRecoeds}" var="a" >
-        <apex:column headerValue="鏍囬" style="width: 33%">
-        <apex:outputLink value="{!a.Concc.Id}" target="LINK_{!a.Concc.Id}">
-            {!a.Concc.name}
-        </apex:outputLink>
-        </apex:column>
-        <apex:column headerValue="鍒涘缓浜�">
-            <apex:outputField value="{!a.Concc.OwnerId}"/>
-        </apex:column>
-        </apex:pageBlockTable>
-        <apex:pageBlockButtons location="top" >
-            <apex:commandButton onclick="FilesUaplodJs();" value="涓婁紶闄勪欢" style="margin-left:30px;width:100px" rerender="dummy" rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"/>
-        </apex:pageBlockButtons>
-    </apex:pageBlock>
+        <apex:pageBlock
+            title="闄勪欢"
+            id="ConsumableConsumeSection"
+            rendered="{!!editAble}"
+        >
+            <apex:pageBlockTable value="{!AttachmentRecoeds}" var="a">
+                <apex:column headerValue="鏍囬" style="width: 33%">
+                    <apex:outputLink
+                        value="{!a.Concc.Id}"
+                        target="LINK_{!a.Concc.Id}"
+                    >
+                        {!a.Concc.name}
+                    </apex:outputLink>
+                </apex:column>
+                <apex:column headerValue="鍒涘缓浜�">
+                    <apex:outputField value="{!a.Concc.OwnerId}" />
+                </apex:column>
+            </apex:pageBlockTable>
+            <apex:pageBlockButtons location="top">
+                <apex:commandButton
+                    onclick="FilesUaplodJs();"
+                    value="涓婁紶闄勪欢"
+                    style="margin-left: 30px; width: 100px"
+                    rerender="dummy"
+                    rendered="{!!(EditDelCommitBtnDisabled||EditAble)}"
+                />
+            </apex:pageBlockButtons>
+        </apex:pageBlock>
     </apex:form>
-<script>
-
-</script>
-</apex:page>
\ No newline at end of file
+    <script></script>
+</apex:page>

--
Gitblit v1.9.1