高章伟
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
<apex:page Controller="ShipmentController" showHeader="true" sidebar="true" id="allPage" tabStyle="SaleAndDelivery__tab" action="{!init}" title="出货信息一览">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<script>
 
function SortLimitedJs(key){
    blockme();
    var productCount = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsCnt')).value();
    var isChanged = false;
    for (var i = 0; i < productCount; i++) {
        var nowChk = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':sumablesCountproRowCheckbox')).attr('checked');
        var oldChk = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':proRowOldCheckbox')).attr('checked');
        var nowshelfnumber= j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':shelfnumber')).value();
        var oldshelfnumber= j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + i + ':oldshelfnumber')).value();
        if (nowChk != oldChk || (nowChk == 'checked' && nowshelfnumber != oldshelfnumber)) {
            isChanged = true;
            break;
        }
    }
    
 
        //SortLimited();
    
 
 
}
 
 
 
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="200px"/>
                            <col width="100px"/>
                            <col width="100px"/>
                            <col width="100px"/>
                            <col width="200px"/>
                            <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:140px" /></td> 
                            <td align="right">消费医院:</td>
                            <td align="left"><apex:outputField id="OrderDircteion"  value="{!coc.Order_ForHospital__c}" style="width:160px"/></td>
                            <td align="right">二级经销商:</td>
                            <td align="left"><apex:outputField id="OrderSecondDealer"  value="{!coc.Order_ForDealer__r.Name}" style="width:160px"/></td>
                           </tr>
                        <tr>  
                        </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}"/>
                         </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>