DESKTOP-0K9VGFE\hp
2022-03-11 6d766b0c8e9b31e7e03ffd344a94c2851aa9beb9
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<apex:page Controller="ArriveGsDetailsController" showHeader="true" tabStyle="ArriveGoodsMain__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)}"/>
<script>
function ProSaleJs() {
    blockme();
    ProSale();
}
 
window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
</script>
<style>
</style>
    <apex:form id="allForm">
        <apex:actionFunction name="ProSale" action="{!ProSale}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()">
        <apex:param name="firstParam" assignTo="{!sortKey}" value="" />
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
                 <!--<table>
                        <tr>
                            <td><div id="ErrorName" style="color: red;font-weight: bold;">{!alertMessage}</div>
                            </td>
                        </tr>
                </table>-->
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                 </apex:outputPanel>
            <apex:pageBlock id="allBlock" title="到货">
            <apex:pageBlock id="newBlock">
                <table>
                    <colgroup>
                        <col width="160px"/>
                        <col width="100px"/>
                        <col width="10px"/>
                        <col width="70px"/>
                        <col width="100px"/>
                        <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><apex:commandButton onclick="ProSaleJs();" value="出库" rerender="dummy" style="width:180px" disabled="{!arrivetoorder}"/></td>
                        <td/>
                    </tr>
                </table>
            </apex:pageBlock>
            <apex:pageBlock title="到货订单信息">
            <table>
                <colgroup>
                    <col width="200"/>
                    <col width="200"/>
                    <col width="200"/>
                    <col width="200"/>
                </colgroup>
                <tr>
                    <td align="right">到货订单名称:</td>
                    <td align="left"><apex:outputField value="{!coc.Name}"/></td>
                    <td align="right">本次入库产品金额:</td>
                    <td align="left"><apex:outputField value="{!coc.Arrive_total_amount__c}"/></td>
                </tr>
                <tr>
                    <td align="right">消耗品订单名称:</td>
                    <td align="left"><apex:outputField value="{!coc.Arrive_Order__c}"/></td>
                    <td align="right"></td>
                    <td align="left"></td>
                </tr>
            </table>
                </apex:pageBlock>
               
<!--==============20160310====INSERT_CODE_END===========================================-->
                 <!-- <apex:pageblocksection columns="1" title="在库商品库存一览" id="ConsumableorderdetailsSection"> -->
                 <apex:pageBlock title="在库商品库存一览">
                    <table class="list"  border="0" cellpadding="0" cellspacing="0" id="tableId" >
                        <colgroup>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="200px"/>
                        </colgroup>
 
                        <tr class="headerRow">
                            <th width="16%">消耗品名称</th>
                            <th width="16%">规格</th>
                            <th width="16%">CFDA状态</th>
                            <th width="16%">注册证编码号</th>
                            <th width="16%">注册证效期</th>
                            <th width="20%">使用期限</th>
                            <th width="20%">BarCode</th>
                            <th width="20%">采购单价</th>
                        </tr>
                        <apex:repeat value="{!consumableorderdetailsRecordsview}" var="records" id="ConsumableorderdetailsTableOuter" >
                            <apex:repeat value="{!records}" var="item" id="ConsumableorderdetailsTable">
                                <tr class="dataRow">
                                    <td> {!item.esd.Consumable_Product__r.Name__c} </td>
                                    <td> {!item.packing_list} </td>
                                    <td> {!item.Prod.SFDA_Status__c} </td>
                                    <td> {!item.approbation_No} </td>
                                    <td> {!item.expiration_DateStr} </td>
                                    <td> {!item.Sterilization_limitStr} </td>
                                    <td> {!item.esd.Bar_Code__c} </td>
                                    <td> {!item.esd.Intra_Trade_List_RMB__c} </td>
                                </tr>
                            </apex:repeat>
                        </apex:repeat>
                    </table>
 
                    <!-- <apex:pageblocktable value="{!ConsumableorderdetailsRecords}" var="records" id="ConsumableorderdetailsTable"> -->
                    <!--     <apex:column width="100">
                             <apex:facet name="header"><a href="#" onclick="SortLimited('0');return false;" style="text-decoration: underline;">消耗品明细名称</a>{!sortOrder[0]}</apex:facet>
                             <apex:outputField value="{!records.esd.Name}"/>
                         </apex:column>
                         <apex:column width="100">
                             <apex:facet name="header">消耗品明细名称</apex:facet>
                             <apex:outputField value="{!records.esd.Name}"/>
                         </apex:column>-->
                         <!-- <apex:column width="200">
                             <apex:facet name="header">消耗品名称</apex:facet>
                             <apex:outputField value="{!records.esd.Consumable_Product__r.Name__c}"/>
                         </apex:column>
                         <apex:column width="80" style="text-align: right;">
                             <apex:facet name="header">规格</apex:facet>
                             <apex:outputText value="{!records.packing_list}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">CFDA状态</apex:facet>
                             <apex:outputField value="{!records.Prod.SFDA_Status__c}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">注册证编码号</apex:facet>
                             <apex:outputText value="{!records.approbation_No}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">注册证效期</apex:facet>
                             <apex:outputText value="{0, date, yyyy/MM/dd}">
                                <apex:param value="{!records.expiration_Date}" />
                            </apex:outputText>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">使用期限</apex:facet>
                             <apex:outputField value="{!records.esd.Sterilization_limit__c}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">BarCode</apex:facet>
                             <apex:outputField value="{!records.esd.Bar_Code__c}"/>
                         </apex:column>
                         <apex:column width="80" style="text-align: right;">
                             <apex:facet name="header">采购单价</apex:facet>
                             <apex:outputField value="{!records.esd.Intra_Trade_List_RMB__c}"/>
                         </apex:column>
                    </apex:pageblocktable> -->
<!--                     <script>
                        setDisabled();
                    </script>
 -->                <!-- </apex:pageblocksection> -->
                </apex:pageBlock>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
</apex:page>