Subversion Repositories SmartDukaan

Rev

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