高章伟
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
104
105
106
107
108
109
110
111
112
113
114
115
<apex:page Controller="InventoryListController" showHeader="true" tabStyle="InventoryView__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 calonLoad() {
}
window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
</script>
<style>
    .dateFormat  {
        display: none;
    }
</style>
    <apex:form id="allForm">
    <!--    <apex:actionFunction name="SortLimited" action="{!SortLimited}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();">
        <apex:param name="firstParam" assignTo="{!sortKey}" value="" />
        </apex:actionFunction> -->
        <apex:outputPanel id="allPanel">
            <apex:pageBlock id="allBlock" >
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                 </apex:outputPanel>
                <apex:pageBlock title="盘点情况一览" id="Editable">
                    <table>
                        <colgroup>
                            <col width="100px"/>
                            <col width="180px"/>
                                    <col width="100px"/>
                            <col width="100px"/>
                            <col width="100px"/>
                            <col width="100px"/>
                            <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">盘点单号:</td>
                            <td align="left"><apex:outputField id="OrderExpectDate" value="{!coc.Name}" style="width:180px" /></td>    
                           <td align="right" >盘点时间:</td>
                            <td align="left"><apex:outputField value="{!coc.Inventory_date__c}" id="Checkbox"/></td>
                           </tr>
                        <tr>  
                          </tr>
                    </table>
                </apex:pageBlock>
                 <apex:pageblocksection columns="1" title="盘点明细" id="ConsumableorderdetailsSectionPandian">
                    <apex:pageblocktable value="{!ConsumableorderdetailsRecords}" var="records" id="ConsumableorderdetailsTable0">
                         <apex:column width="180">
                             <apex:facet name="header">消耗品名称</apex:facet>
                             <apex:outputField value="{!records.Prod.Name__c}"/> 
                         </apex:column>
                        <apex:column width="180" style="text-align: right;">
                            <apex:facet name="header">库存</apex:facet>
                            <apex:outputField id="consumablesCount" value="{!records.orderdetails1.Count_Sum__c}" />
                        </apex:column>
                        <apex:column width="180" style="text-align: right;">
                            <apex:facet name="header">盘点</apex:facet>
                            <apex:outputField id="consumablesCount1"
                                value="{!records.orderdetails1.inventory_sum__c}" />
                        </apex:column>
                        <apex:column width="180" style="text-align: right;">
                            <apex:facet name="header">丢失</apex:facet>
                            <apex:outputField id="consumablesCount2" value="{!records.orderdetails1.Diff__c}" />
                        </apex:column>
                        <apex:column width="180" style="text-align: right;">
                            <apex:facet name="header">寻回</apex:facet>
                            <apex:outputField id="consumablesCount3" value="{!records.orderdetails1.Product_Refind__c}" />
                        </apex:column>
                        <apex:column width="180">
                            <apex:facet name="header">差异原因</apex:facet>
                            <apex:outputField value="{!records.orderdetails1.Lose_reason__c}" />
                        </apex:column>
                    </apex:pageblocktable>
                    <script>
                        setDisabled();
                    </script>
                </apex:pageblocksection>
                 <apex:pageblocksection columns="1" title="在库调整明细" id="ConsumableorderdetailsSection">
                    <apex:pageblocktable value="{!ConsumableorderdetailsRecordsError}" var="records" id="ConsumableorderdetailsTable">
                         <apex:column width="180">
                             <apex:facet name="header">消耗品名称</apex:facet>
                             <apex:outputField value="{!records.Prod.Name__c}"/> 
                         </apex:column>
                         <apex:column width="120">
                             <apex:facet name="header">产品型号</apex:facet>
                             <apex:outputField value="{!records.Prod.Asset_Model_No__c}"/> 
                         </apex:column>
                          <apex:column width="80">
                             <apex:facet name="header">差异原因</apex:facet>
                             <apex:outputField value="{!records.orderdetails2.Lose_reason__c}"/> 
                         </apex:column>
                          <apex:column width="80">
                             <apex:facet name="header">是否丢失</apex:facet>
                             <apex:outputField value="{!records.orderdetails2.Lose_Flag__c}"/> 
                         </apex:column>
                    </apex:pageblocktable>
                    <script>
                        setDisabled();
                    </script>
                </apex:pageblocksection>
               
            </apex:pageBlock> 
        </apex:outputPanel>
    </apex:form>
<script>
 
</script>
</apex:page>