binxie
2023-06-26 614b1b648eceb33e325ed7cf8d8cb6a7a71b9ddc
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
({
    doInit : function(component, event, helper) {
        helper.doinit(component, event, helper);
    },
    toggle_report : function(component, event, helper) {
        helper.toggle_report(component, event, helper);
    },
    createTarget : function (component, event, helper) {
        helper.createTarget(component, event, helper);
    },
    hosChange : function(component, event, helper) {
        // var hospital_name = event.getParam("value");
        // if (hospital_name.match(/(\S+\s)+/)) {
        //     helper.searchHos(component, event, helper);
        // } else {
        //     helper.hideSearch(component, event, helper);
        // }
        var hosId = component.get("v.record.Agency_Hospital__c");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.selectHos(component, event, helper);
        }
        
    },
    productcategoryGIChange1 : function(component, event, helper) {
        var hosId = component.find("select_GI1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GI', 1);
        }
    },
    productcategoryGIChange2 : function(component, event, helper) {
        var hosId = component.find("select_GI2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GI', 2);
        }
    },
    productcategoryGIChange3 : function(component, event, helper) {
        var hosId = component.find("select_GI3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GI', 3);
        }
    },
    aimpricGIChange4 : function(component, event, helper) {
        var hosId = component.find("select_GI4_2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GI', 3);
        }
    },
 
 
    productcategoryGSChange1 : function(component, event, helper) {
        var hosId = component.find("select_GS1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GS', 1);
        }
    },
    productcategoryGSChange2 : function(component, event, helper) {
        var hosId = component.find("select_GS2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GS', 2);
        }
    },
    productcategoryGSChange3 : function(component, event, helper) {
        var hosId = component.find("select_GS3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GS', 3);
        }
    },
    aimpricGSChange4 : function(component, event, helper) {
        var hosId = component.find("select_GS4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GS', 3);
        }
    },
 
 
    productcategoryETChange1 : function(component, event, helper) {
        var hosId = component.find("select_ET1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ET', 1);
        }
    },
    productcategoryETChange2 : function(component, event, helper) {
        var hosId = component.find("select_ET2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ET', 2);
        }
    },
    productcategoryETChange3 : function(component, event, helper) {
        var hosId = component.find("select_ET3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ET', 3);
        }
    },
    aimpricETChange4 : function(component, event, helper) {
        var hosId = component.find("select_ET4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ET', 3);
        }
    },
 
    productcategoryBFChange1 : function(component, event, helper) {
        var hosId = component.find("select_BF1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'BF', 1);
        }
    },
    productcategoryBFChange2 : function(component, event, helper) {
        var hosId = component.find("select_BF2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'BF', 2);
        }
    },
    productcategoryBFChange3 : function(component, event, helper) {
        var hosId = component.find("select_BF3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'BF', 3);
        }
    },
    aimpricBFChange4 : function(component, event, helper) {
        var hosId = component.find("select_BF4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'BF', 3);
        }
    },
 
 
    productcategoryOTHChange1 : function(component, event, helper) {
        var hosId = component.find("select_OTH1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'OTH', 1);
        }
    },
    productcategoryOTHChange2 : function(component, event, helper) {
        var hosId = component.find("select_OTH1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'OTH', 2);
        }
    },
    productcategoryOTHChange3 : function(component, event, helper) {
        var hosId = component.find("select_OTH3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'OTH', 3);
        }
    },
    aimpricOTHChange4 : function(component, event, helper) {
        var hosId = component.find("select_OTH4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'OTH', 3);
        }
    },
 
    productcategoryENTChange1 : function(component, event, helper) {
        var hosId = component.find("select_ENT1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ENT', 1);
        }
    },
    productcategoryENTChange2 : function(component, event, helper) {
        var hosId = component.find("select_ENT2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ENT', 2);
        }
    },
    productcategoryENTChange3 : function(component, event, helper) {
        var hosId = component.find("select_ENT3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ENT', 3);
        }
    },
    aimpricENTChange4 : function(component, event, helper) {
        var hosId = component.find("select_ENT4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'ENT', 3);
        }
    },
 
    productcategoryUROChange1 : function(component, event, helper) {
        var hosId = component.find("select_URO1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'URO', 1);
        }
    },
    productcategoryUROChange2 : function(component, event, helper) {
        var hosId = component.find("select_URO2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'URO', 2);
        }
    },
    productcategoryUROChange3 : function(component, event, helper) {
        var hosId = component.find("select_URO3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'URO', 3);
        }
    },
    aimpricUROChange4 : function(component, event, helper) {
        var hosId = component.find("select_URO4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'URO', 3);
        }
    },
 
    productcategoryGYNChange1 : function(component, event, helper) {
        var hosId = component.find("select_GYN1").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GYN', 1);
        }
    },
    productcategoryGYNChange2 : function(component, event, helper) {
        var hosId = component.find("select_GYN2").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GYN', 2);
        }
    },
    productcategoryGYNChange3 : function(component, event, helper) {
        var hosId = component.find("select_GYN3").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GYN', 3);
        }
    },
    aimpricGYNChange4 : function(component, event, helper) {
        var hosId = component.find("select_GYN4").get("v.value");
        if (hosId != null && hosId != '' && hosId != 'MALFORMED_ID') {
            helper.productcategoryChange(component, event, helper, 'GYN', 3);
        }
    },
 
  //   selectHos : function(component, event, helper) {
        // helper.selectHos(component, event, helper);
  //   },
})