Subversion Repositories SmartDukaan

Rev

Rev 30255 | Rev 30601 | 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">
30274 amit.gupta 67
            #if($searchModel > 0)
30026 amit.gupta 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>
30274 amit.gupta 73
            #else
30026 amit.gupta 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
 
162
    #if($schemeInOut)
163
        <div class="row">
164
            <div class="col-lg-12">
165
                <h3 style="text-align:center; color:#4169e1;">IMEI Wise Margin Status</h3>
166
                <table class="table table-border table-condensed table-bordered">
167
                    <tr>
168
                        <th>ID</th>
169
                        <th>Name</th>
170
                        <th>Description</th>
171
                        <th>Type</th>
172
                        <th>Amount</th>
173
                        <th>Paid Amount</th>
174
                        <th>Status</th>
175
                        <th>Credit Timestamp</th>
176
 
177
                        <th>Description</th>
178
 
179
                    </tr>
180
 
181
                    #if($schemeInOut && !$schemeInOut.isEmpty()) #foreach( $sio in
182
                        $schemeInOut )
183
                        <tr data="$schemeMap.get($sio.getSchemeId()).getId()">
184
                            <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
185
                            <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
186
                            <td>$schemeMap.get($sio.getSchemeId()).getDescription()</td>
187
                            <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
188
                            <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
189
                            <td>$sio.getAmount()</td>
190
                            <td>$sio.getStatus()</td>
191
                            #if($sio.getCreditTimestamp().format($dateTimeFormatter))
192
                                <td>$sio.getCreditTimestamp().format($dateTimeFormatter)</td>
193
                            #else
194
                                <td>-</td>
195
                            #end
196
 
197
                            #if($sio.getStatusDescription())
198
                                <td>$sio.getStatusDescription()</td>
199
                            #else
200
                                <td>-</td>
201
                            #end
202
                        </tr>
203
                    #end #else $noData #end
204
 
205
 
206
                </table>
207
            </div>
29207 amit.gupta 208
        </div>
30026 amit.gupta 209
 
210
    #end
211
 
212
 
30274 amit.gupta 213
    #if($searchImei.length() > 0)
30026 amit.gupta 214
        <div class="row">
215
            <div class="col-lg-6">
216
                <h3>Price Drop</h3>
217
                <table class="table table-border table-condensed table-bordered"
218
                       id="offr-des">
219
                    <tr>
220
                        <th>Status</th>
221
                        <th>Amount</th>
222
                        <th>Description</th>
223
 
224
 
225
                    </tr>
226
                    #if(!$priceDropImeis.isEmpty()) #foreach( $pdi in $priceDropImeis )
227
                        <tr class="priceDrop-details">
228
                            <td>$pdi.getStatus()</td>
229
                            <td>$pdi.getPriceDrop().getAmount()</td>
230
                            #if($pdi.getRejectionReason())
231
                                <td>$pdi.getRejectionReason()</td>
232
                            #else
233
                                <td>-</td>
234
                            #end
235
 
236
                        </tr>
237
                    #end
238
                    #else $noData #end
239
                </table>
240
            </div>
241
        </div>
242
    #end
243
 
244
    #if(!$schemeInOut)
245
        <div class="row">
246
            <div class="col-lg-12">
247
                <h3>Other Schemes</h3>
248
                <table class="table table-border table-condensed table-bordered"
249
                       id="offr-des">
250
                    <tr>
251
                        <th>Name</th>
252
                        <th>Margin Based On</th>
253
                        <th>Sale Criteria</th>
254
                        <th>Payout(Per pc)</th>
255
                    </tr>
256
                    #if(!$offers.isEmpty())
257
                        #foreach( $offer in $offers )
258
                            #set($itemCriteriaPayout = $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0))
259
                            #set($slab=$itemCriteriaPayout.getCurrentSlab())
260
                            #if(!$slab)
261
                                #set($slab=$itemCriteriaPayout.getNextSlab())
262
                            #end
263
                            <tr class="offer-details" data-offerid="$offer.getId()">
264
                                <td><a class="mk_offer_detail"
265
                                       href="javascript:void(0)">$offer.getName()</a>
266
                                <td>$offer.getSchemeType()</td>
267
                                <td>$itemCriteriaPayout.getItemCriteriaString()</td>
268
                                <td>Rs. <span
269
                                        class="currency">$offerSlabPayoutMap.get($offer.getId()).get($slab.getOnwardsAmount())</span>
270
                                </td>
271
                            </tr>
272
                        #end #else $noData #end
273
                </table>
274
            </div>
275
        </div>
276
    #end
277
 
30274 amit.gupta 278
    #if(!$schemeInOut)
279
        #if($schemes && !$schemes.isEmpty())
280
            <div class="row col-lg-12">
281
                <b>Hygiene Payout</b> - This is basis the customer details entered in
282
                the system, pls refer to hygiene meter in your Dashboard. <br> <b>Tertiary
283
                Payout</b> - This is basis the activation of the handset. <br> <b>Investment
284
                Payout</b> - Investments in stocks should be above 90% for minimum 12
285
                days in a month to earn 2%, between 8-11 days will earn 1%, less then
286
                8 days there will be no payout.
287
            </div>
288
        #end
289
    #end
290
 
30026 amit.gupta 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
</section>
28139 tejbeer 301
</body>