Subversion Repositories SmartDukaan

Rev

Rev 30026 | Rev 30274 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28134 tejbeer 1
<style>
30026 amit.gupta 2
    .table {
3
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='100px' width='100px'><text transform='translate(20, 100) rotate(-45)' fill='rgb(211,211,211)' font-size='20'>$partnerCode</text></svg>");
4
    }
28134 tejbeer 5
</style>
6
 
27873 amit.gupta 7
<script type="text/javascript">
30026 amit.gupta 8
    $('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker(),
9
            dateRangeCallback);
27873 amit.gupta 10
 
30255 amit.gupta 11
    if ($searchModel > 0) {
12
        currentItem = $searchModel;
13
    }
14
    getEntityAheadOptions($("#scheme-item-search-text"), function (selectedItem) {
15
        currentItem = selectedItem.catalogId_i;
30026 amit.gupta 16
    });
27873 amit.gupta 17
 
30026 amit.gupta 18
    getImeiAheadOptions($("#scheme-imei-search-text"), $fofoId, function (
19
            inventoryItem) {
20
        imei = inventoryItem;
21
        console.log(imei)
22
    });
28795 tejbeer 23
 
28136 tejbeer 24
 
30026 amit.gupta 25
    $(document).ready(function () {
26
        console.log('$partnerType')
27
        $('#partner-category').val('$partnerType');
28
        $('body').bind('cut copy paste', function (e) {
29
            return false;
30
        });
31
        $('#offr-des').contextmenu(function () {
32
            return false;
33
        });
28136 tejbeer 34
 
30026 amit.gupta 35
        $('#sch-des').contextmenu(function () {
36
            return false;
37
        });
38
 
39
    });
27873 amit.gupta 40
</script>
28139 tejbeer 41
<body>
30026 amit.gupta 42
<section class="wrapper">
43
    <div class="row">
44
        <div class="col-lg-12">
45
            <h3 class="page-header">
46
                <i class="icon_document_alt"></i>MARGINS
47
            </h3>
48
            <ol class="breadcrumb">
49
                <li><i class="fa fa-home"></i><a
50
                        href="${rc.contextPath}/dashboard">Home</a></li>
51
                <li><i class="icon_document_alt"></i>MARGINS</li>
52
            </ol>
53
        </div>
54
    </div>
55
    <div class="row">
56
        <div class="col-lg-3"></div>
57
 
58
        <div class="col-lg-3">
59
            #if($schemeInOut)
60
                <div style="padding: 12px">
61
                    <span> <b> Model Name - $item.getItemDescriptionNoColor() </b></span>
62
 
63
                </div>
64
            #end
65
        </div>
66
        <div class="col-lg-3">
67
            #if($searchItem > 0)
68
                <div style="padding: 12px">
69
                    <span>DP - <span class="currency">$dp</span>,</span>
70
                    <span>MOP - <span class="currency">$mop</span>,</span>
71
                    <span>NLC - <span class="currency">$nlc</span></span>
72
                </div>
73
            #elseif($searchItem > 0)
74
                <div style="padding: 12px">
75
                    <span>DP - <span class="currency">0</span>,</span>
76
                    <span>MOP - <span class="currency">0</span>,</span>
77
                    <span>NLC - <span class="currency">0</span></span>
78
                </div>
79
            #end
80
        </div>
81
 
82
 
83
        <div class="form-inline col-lg-8">
84
            <div class="form-group">
85
 
86
                <div class="input-group">
87
                    <input type="date" class="form-control schemes-date"
88
                           value="${date}"/>
89
                </div>
90
 
91
                <div class="input-group top_search">
92
 
93
                    <input type="text" class="form-control"
94
                           id="scheme-item-search-text" autocomplete="off"
30255 amit.gupta 95
                           placeholder="Search Model"
96
                        #if($searchModel > 0)
97
                           value="$modelName"
98
                        #end
99
                    />
100
                    <span class="input-group-btn">
28139 tejbeer 101
							<button class="btn btn-primary submit"
30026 amit.gupta 102
                                    id="scheme-item-search-button" type="button">Go!</button>
28139 tejbeer 103
						</span>
30026 amit.gupta 104
                </div>
105
 
106
 
107
            </div>
108
        </div>
109
 
110
        <div class="form-inline col-lg-4">
111
            <div class="form-group">
112
 
113
 
114
                <label> Check Margins</label>
115
 
116
                <div class="input-group top_search">
117
                    <input type="text" class="form-control"
118
                           id="scheme-imei-search-text" autocomplete="off"
119
                           placeholder="Search for Imei"/> <span class="input-group-btn">
28795 tejbeer 120
							<button class="btn btn-primary submit"
30026 amit.gupta 121
                                    id="scheme-imei-search-button" type="button">Go!</button>
28795 tejbeer 122
						</span>
30026 amit.gupta 123
                </div>
124
            </div>
125
        </div>
126
    </div>
127
    <div id="schemes-table">
128
        <div class="row">
129
            <div class="col-lg-12">
130
                <table class="table table-border table-condensed table-bordered"
131
                       id="sch-des">
132
                    <tbody>
133
                    <tr>
134
                        <th>ID</th>
135
                        <th>Name</th>
136
                        <th>Description</th>
137
                        <th>Type</th>
138
                        <th>Amount</th>
139
                        <th>Start Date</th>
140
                        <th>End Date</th>
141
                    </tr>
142
                        #if($schemes && !$schemes.isEmpty()) #foreach( $scheme in
143
                            $schemes )
144
                            #if($scheme.getAmountModel())
145
                            <tr data="$scheme.getId()">
146
                                <td>$scheme.getId()</td>
147
                                <td>$scheme.getName()</td>
148
                                <td>$scheme.getDescription()</td>
149
                                <td>$scheme.getType()</td>
150
                                <td>$scheme.getAmountModel()</td>
151
                                <td>$scheme.getFormattedStartDateTime()</td>
152
                                <td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
153
                            </tr>
154
                            #end
155
                        #end #else $noData #end
156
                    </tbody>
157
                </table>
158
            </div>
159
        </div>
160
    </div>
161
    #if(!$schemeInOut)
162
        #if($schemes && !$schemes.isEmpty())
163
            <div class="col-lg-12">
164
                <h5>Note</h5>
165
                <b>Hygiene Payout</b> - This is basis the customer details entered in
166
                the system, pls refer to hygiene meter in your Dashboard. <br> <b>Tertiary
167
                Payout</b> - This is basis the activation of the handset. <br> <b>Investment
168
                Payout</b> - Investments in stocks should be above 90% for minimum 12
169
                days in a month to earn 2%, between 8-11 days will earn 1%, less then
170
                8 days there will be no payout.
171
            </div>
172
        #end
173
    #end
174
 
175
    #if($schemeInOut)
176
        <div class="row">
177
            <div class="col-lg-12">
178
                <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
179
                <table class="table table-border table-condensed table-bordered">
180
                    <tr>
181
                        <th>ID</th>
182
                        <th>Name</th>
183
                        <th>Description</th>
184
                        <th>Type</th>
185
                        <th>Amount</th>
186
                        <th>Paid Amount</th>
187
                        <th>Status</th>
188
                        <th>Credit Timestamp</th>
189
 
190
                        <th>Description</th>
191
 
192
                    </tr>
193
 
194
                    #if($schemeInOut && !$schemeInOut.isEmpty()) #foreach( $sio in
195
                        $schemeInOut )
196
                        <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
197
                            <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
198
                            <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
199
                            <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
200
                            <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
201
                            <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
202
                            <td>$sio.getAmount()</td>
203
                            <td>$sio.getStatus()</td>
204
                            #if($sio.getCreditTimestamp().format($dateTimeFormatter))
205
                                <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
206
                            #else
207
                                <td>-</td>
208
                            #end
209
 
210
                            #if($sio.getStatusDescription())
211
                                <td>$sio.getStatusDescription()</td>
212
                            #else
213
                                <td>-</td>
214
                            #end
215
                        </tr>
216
                    #end #else $noData #end
217
 
218
 
219
                </table>
220
            </div>
29207 amit.gupta 221
        </div>
30026 amit.gupta 222
 
223
    #end
224
 
225
 
226
    #if(!$priceDropImeis.isEmpty())
227
        <div class="row">
228
            <div class="col-lg-6">
229
                <h3>Price Drop</h3>
230
                <table class="table table-border table-condensed table-bordered"
231
                       id="offr-des">
232
                    <tr>
233
                        <th>Status</th>
234
                        <th>Amount</th>
235
                        <th>Description</th>
236
 
237
 
238
                    </tr>
239
                    #if(!$priceDropImeis.isEmpty()) #foreach( $pdi in $priceDropImeis )
240
                        <tr class="priceDrop-details">
241
                            <td>$pdi.getStatus()</td>
242
                            <td>$pdi.getPriceDrop().getAmount()</td>
243
                            #if($pdi.getRejectionReason())
244
                                <td>$pdi.getRejectionReason()</td>
245
                            #else
246
                                <td>-</td>
247
                            #end
248
 
249
                        </tr>
250
                    #end
251
                    #else $noData #end
252
                </table>
253
            </div>
254
        </div>
255
    #end
256
 
257
    #if(!$schemeInOut)
258
        <div class="row">
259
            <div class="col-lg-12">
260
                <h3>Other Schemes</h3>
261
                <table class="table table-border table-condensed table-bordered"
262
                       id="offr-des">
263
                    <tr>
264
                        <th>Name</th>
265
                        <th>Margin Based On</th>
266
                        <th>Sale Criteria</th>
267
                        <th>Payout(Per pc)</th>
268
                    </tr>
269
                    #if(!$offers.isEmpty())
270
                        #foreach( $offer in $offers )
271
                            #set($itemCriteriaPayout = $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0))
272
                            #set($slab=$itemCriteriaPayout.getCurrentSlab())
273
                            #if(!$slab)
274
                                #set($slab=$itemCriteriaPayout.getNextSlab())
275
                            #end
276
                            <tr class="offer-details" data-offerid="$offer.getId()">
277
                                <td><a class="mk_offer_detail"
278
                                       href="javascript:void(0)">$offer.getName()</a>
279
                                <td>$offer.getSchemeType()</td>
280
                                <td>$itemCriteriaPayout.getItemCriteriaString()</td>
281
                                <td>Rs. <span
282
                                        class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
283
                                </td>
284
                            </tr>
285
                        #end #else $noData #end
286
                </table>
287
            </div>
288
        </div>
289
    #end
290
 
291
    <div class="offer-margin-container">
292
        <div class="modal  text-center" id="offerDescription">
293
            <div class="modal-dialog modal-lg modal-dialog-scrollable">
294
                <div class="modal-content">
295
                </div>
296
            </div>
297
        </div>
298
    </div>
299
 
300
 
301
</section>
28139 tejbeer 302
</body>