高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<apex:page Controller="ConsumptionListController" showHeader="true" 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)}"/>
<script>
function ConsumableorderDelJs(){
    //确认提交
    ConsumableorderDel();
}
function FilesUploadJs(){
    //上传文件
    FilesUpload();
}
function PrintPDFJs(){
    //打印纳品书
    window.open("/customer/ConsumptionPDF?ESetid="+'{!IdCheck}'); 
}
 
window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
</script>
<style>
    .dateFormat  {
        display: none;
    }
</style>
    <!--<apex:form id="allForm">
        <apex:actionFunction name="ConsumableorderDel" action="{!ConsumableorderDel}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
        </apex:actionFunction>
        <apex:actionFunction name="FilesUpload" action="{!FilesUpload}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
            <apex:pageBlock id="allBlock" >  
                <apex:pageBlock id="EDCline_1" >
                    <apex:commandButton onclick="PrintPDFJs()" value="打印纳品书" style="width:150px" rerender="dummy" disabled="{!IF(coc.Consumable_pdf_insert_day__c!=null,true,false)}"/>
                    <apex:commandButton onclick="FilesUploadJs();" value="上传纳品书" style="width:150px" rerender="dummy" disabled="{!IF(coc.Consumable_pdf_insert_day__c!=null,true,false)}"/>
                 </apex:pageBlock>    
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                 </apex:outputPanel>
                <apex:pageBlock title="消费情况一览" id="Editable">
                    <table>
                        <colgroup>
                            <col width="300px"/>
                            <col width="300px"/>
                            <col width="300px"/>
                            <col width="600px"/>
                            <col width="100px"/>
                            <col width="180px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                            <col width="150px"/>
                        </colgroup>     
                        <tr>
                            <td align="right" style="width: 100px">消费单号:</td>
                            <td align="left"><apex:outputField id="OrderExpectDate" value="{!coc.Name}" style="width:300px" /></td> 
                            <td align="right" style="width: 100px">医院或二级经销商:</td>
                            <td align="left"><apex:outputField id="OrderDircteion"  value="{!coc.ShipmentAccount__c}" style="width:600px"/></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 100px">经销商(录入):</td>
                            <td align="left"><apex:outputField id="ConsumeForDealer"  value="{!coc.Order_ForDealerText__c}" style="width:300px"/></td>
                            <td align="right"  style="width: 100px">上传时间:</td>
                            <td align="left"><apex:outputField value="{!coc.Consumable_pdf_insert_day__c}" id="Checkbox" style="width:300px"/></td>
                           </tr>
                        
                    </table>
                </apex:pageBlock>
 
                 <apex:pageblocksection columns="1" title="消费明细" id="ConsumableorderdetailsSection">
                    <apex:pageblocktable value="{!ConsumableorderdetailsRecords}" var="records" id="ConsumableorderdetailsTable">
                         <apex:column width="180">
                             <apex:facet name="header">消耗品明细名称</apex:facet>
                             <apex:outputField value="{!records.esd.Name}"/>
                         </apex:column>
                         <apex:column width="180">
                             <apex:facet name="header">消耗品名称</apex:facet>
                             <apex:outputField value="{!records.esd.Consumable_Product__r.Name__c}"/> 
                         </apex:column>
                         <apex:column width="120">
                             <apex:facet name="header">产品型号</apex:facet>
                             <apex:outputField value="{!records.esd.Asset_Model_No__c}"/> 
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">单价(元)</apex:facet>
                             <apex:outputField id="consumablesCountSinglePrice" value="{!records.esd.Intra_Trade_List_RMB__c}"/> 
                         </apex:column>
                    </apex:pageblocktable>
                    <script>
                        setDisabled();
                    </script>
                </apex:pageblocksection>
            </apex:pageBlock> 
        </apex:outputPanel>
    </apex:form>
<script>
 
</script>-->   
</apex:page>