chenjingwu
2024-04-12 5524860fa72aa2a26be5a4624bee6ce1c7f9ef3e
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
<template >
<!-- <apex:page id="Page" standardController="Product2" extensions="SearchProductController" sidebar="false" showHeader="false" lightningStylesheets="true" > -->
<!--     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> -->
 
<!--     <style type="text/css">
        div#iframelike {
            color: #fff;
            height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
        }
    </style> -->
    <template if:true={isLoad}>
        <div id="all">
            <from id="mainForm">
                <lightning-card id="idSearchSetProduct" title={Label.Product_Search}>
 
                    <lightning-input type="hidden" id="Trade" value={data.trade}></lightning-input>
                    <table width="900" border="0" style="background-color:#DCDCDC;">
                        <colgroup>
                            <col width="12" />
                            <col width="1000" />  <!-- lighting升级 20230210 lt 名称串行问题  20==50 -->
                            <col width="20" />
                            <col width="200" />
                            <col width="20" />
                            <col width="428" />
                        </colgroup>
                        <tr>
                            <td>&nbsp;</td>
                            <th style="width: 50px">{Label.Search_Condition}</th>
                            <td>&nbsp;</td>
                            <th>{Label.Asset_No}</th>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td><lightning-input type="search"  value={data.SearchName} onchange={searchNameInputChange} style="width:200px" ></lightning-input></td>
    <!--                        <td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" rerender="all,message1" onclick="blockme();" oncomplete="unblockUI();"/></td>-->
                            <!-- xudan Enterキーを対応するため、rerender、onclick、oncomplete全部なし -->
                            <td><lightning-button label={Label.Search} onclick={serContact}  class="slds-m-left_x-small" style="width:1000px;float:right;"> </lightning-button></td>
                            <td>&nbsp;<lightning-button label={Label.Add_Product}  style="width:100px;float:right;" disabled={Hascl} rerender="dummy" onclick={setProductList} class="slds-m-left_x-small"> </lightning-button></td>
                        </tr>
                        <tr>
                            <td style="border-bottom: 1px solid #888;" colspan="15">&nbsp;</td>
                        </tr>
                    </table>
                    <div class="spacer" style="height:10px;background-color:#DCDCDC;"> 
                    </div>
                    <table width="900" border="0" style="background-color:#DCDCDC;">
                        <tr>
                            <td width="12">&nbsp;</td>
                            <th valign="top">{Label.Search_Result}</th>
                            <td width="20">&nbsp;</td>
                            <td>
                                <table border="0">
                                    <tr>
                                        <td>
                                        <div id="iframelike" style="width:1200px;
                                            height: 300px;
                                            overflow-y: auto;
                                            overflow-x: hidden;">
                                            <lightning-datatable
                                                key-field="id"
                                                data={data.cc}
                                                columns = {columns}>
                                            </lightning-datatable>
                                        <!-- 20221020 ljh SWAG-CJ98AJ start-->
                                        <!-- <lightning-cardTable id="idRezultVisitor" value="{!cl}" var="c" border="1" columns="9" columnsWidth="25px,120px,120px,280px,60px,60px,60px,60px,35px"> -->
                                        
 
 
 
                                        <!-- <lightning-cardTable id="idRezultVisitor" value="{!cl}" var="c" border="1" columns="10" columnsWidth="25px,120px,120px,280px,60px,60px,60px,60px,35px">
 
                                            <apex:column style="width:15px;" >
                                                <apex:facet name="header">{Label.Selected}</apex:facet>
                                                <input type="checkbox" name="checklist" value="" style="width:10px;"/>
                                            </apex:column>
 
                                            <apex:column >
                                                <apex:facet name="header">{Label.Asset_No}</apex:facet>
                                                <apex:outputLink id="Asset_Model_No__c" value="{!c.pbe.Product2.Asset_Model_No__c}" onclick="setProductOne('{!lineno}','{!c.idx}');return false;">{c.pbe.Product2.Asset_Model_No__c}</apex:outputLink>
                                                <lightning-input type="hidden" id="NameCode" value={c.NameCode}/>
                                                <lightning-input type="hidden" id="Sales_Possibility" value={c.Sales_Possibility}/>
                                                <lightning-input type="hidden" id="Bsscategory" value={c.Bsscategory}/>
                                                <lightning-input type="hidden" id="Product_Id" value={c.Product_Id}/>
                                                <lightning-input type="hidden" id="PricebookEntryId" value={c.PricebookEntryId}/>
                                                <lightning-input type="hidden" id="Intra_Trade_Cost_RMB__c" value={c.Intra_Trade_Cost_RMB}/>
                                                <lightning-input type="hidden" id="Foreign_Trade_Cost_US__c" value={c.Foreign_Trade_Cost_US}/>
                                                <lightning-input type="hidden" id="GuaranteePeriod" value={c.Entend_gurantee_period_all/>
                                                <lightning-input type="hidden" id="Intra_Trade_Service_RMB" value={c.Intra_Trade_Service_RMB}/>
                                                 <lightning-input type="hidden" id="CanNotCancelledGurantee__c" value={c.CanNotCancelledGurantee}/>
                                                  </apex:column>
 
                                            <apex:column >
                                                <apex:facet name="header">{!$ObjectType.Product2.fields.OT_CODE_no_link__c.Label}</apex:facet>
                                                <apex:outputField id="OT_CODE_no_link__c" value="{!c.pbe.Product2.OT_CODE_no_link__c}" />
                                            </apex:column>
                                            <apex:column >
                                                <apex:facet name="header">{Label.Product_Name}</apex:facet>
                                                <apex:outputField id="Name" value="{!c.pbe.Product2.Name}" />
                                            </apex:column>
                                            <apex:column >
                                                <apex:facet name="header">{!$ObjectType.Product2.fields.suitDepartment__c.Label}</apex:facet>
                                                <apex:outputField id="suitDepartment__c" value="{!c.pbe.Product2.suitDepartment__c}" />
                                            </apex:column>
                                           <apex:column >
                                                <apex:facet name="header">{!$ObjectType.Product2.fields.Alternative_Products__c.Label}</apex:facet>
                                                <apex:outputField id="Alternative" value="{!c.pbe.Product2.Alternative_Products__c}" />
                                            </apex:column>
                                            <apex:column >
                                                <apex:facet name="header">{Label.SFDA_Status}</apex:facet>
                                                <apex:outputField id="SFDA_Status__c" value="{!c.pbe.Product2.SFDA_Status__c}" />
                                            </apex:column>
                                            <apex:column style="text-align:right;">
                                                <apex:facet name="header">{Label.ListPrice_In}</apex:facet>
                                                <apex:outputField id="Intra_Trade_List_RMB__c" value="{!c.pbe.Product2.Intra_Trade_List_RMB__c}" />
                                            </apex:column>
                                            <apex:column style="text-align:right;">
                                                <apex:facet name="header">{!$Label.ListPrice_Out}</apex:facet>
                                                <apex:outputField id="Foreign_Trade_List_US__c" value="{!c.pbe.Product2.Foreign_Trade_List_US__c}" />
                                            </apex:column>
                                            <apex:column style="text-align:right;">
                                                <apex:facet name="header">{Label.Unit}</apex:facet>
                                                <apex:outputField id="Qty_Unit__c" value="{!c.pbe.Product2.Qty_Unit__c}" />
                                            </apex:column>
                                        </lightning-cardTable> -->
                                        </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </lightning-card>
            </from>
        </div>
    </template>
<!-- </apex:page> -->
</template>