Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
27873 amit.gupta 1
<script type="text/javascript">
2
 
3
    $('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
4
 
5
    getItemAheadOptions($("#scheme-item-search-text"), false, function (selectedItem) {
6
        currentItem = selectedItem;
7
    });
8
 
9
    $(document).ready(function () {
10
        console.log('$partnerType')
11
        $('#partner-category').val('$partnerType');
12
    });
13
</script>
14
 
15
<section class="wrapper">
16
    <div class="row">
17
        <div class="col-lg-12">
18
            <h3 class="page-header"><i class="icon_document_alt"></i>MARGINS</h3>
19
            <ol class="breadcrumb">
20
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
21
                <li><i class="icon_document_alt"></i>MARGINS</li>
22
            </ol>
23
        </div>
24
    </div>
25
    <div class="row">
26
        <div class="col-lg-4"></div>
27
        <div class="col-lg-2">
27899 amit.gupta 28
            #if($searchItem > 0)
27873 amit.gupta 29
                <div style="padding:12px">
30
                    <span> DP - <span class="currency">$dp</span>,&nbsp;&nbsp;
31
                    <span> MOP - <span class="currency">$mop</span>
32
                </div>
27899 amit.gupta 33
            #elseif($searchItem > 0)
27873 amit.gupta 34
                <div style="padding:12px">
35
                    <span> DP - <span class="currency">0</span>,&nbsp;&nbsp;
36
                    <span> MOP - <span class="currency">0</span>
37
                </div>
38
            #end
39
        </div>
40
        <div class="col-lg-2">
41
        </div>
42
        <div class="form-inline col-lg-4">
43
            <div class="form-group">
44
                <div class="input-group">
45
                    <input type="date" class="form-control schemes-date" value="${date}"/>
46
                </div>
47
                <div class="input-group top_search">
48
                    <input type="text" class="form-control" id="scheme-item-search-text" autocomplete="off"
27899 amit.gupta 49
                           placeholder="Search for Item" />
27873 amit.gupta 50
                    <span class="input-group-btn">
51
		                      <button class="btn btn-primary submit" id="scheme-item-search-button"
52
                                      type="button">Go!</button>
53
		                    </span>
54
                </div>
55
            </div>
56
        </div>
57
    </div>
58
    <div id="schemes-table">
59
        <div class="row">
60
            <div class="col-lg-12">
61
                <table class="table table-striped table-advance table-hover">
62
                    <tbody>
63
                    <tr>
64
                        <th>ID</th>
65
                        <th>Name</th>
66
                        <th>Description</th>
67
                        <th>Type</th>
68
                        <th>Amount</th>
69
                        <th>Start Date</th>
70
                        <th>End Date</th>
71
                    </tr>
72
                        #if($schemes && !$schemes.isEmpty())
73
                            #foreach( $scheme in $schemes )
74
                            <tr class="scheme-details" data="$scheme.getId()">
75
                                <td>$scheme.getId()</td>
76
                                <td>$scheme.getName()</td>
77
                                <td>$scheme.getDescription()</td>
78
                                <td>$scheme.getType()</td>
79
                                <td>$scheme.getAmountModel()</td>
80
                                <td>$scheme.getFormattedStartDateTime()</td>
81
                                <td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
82
                            </tr>
83
                            #end
84
                        #else
85
                            $noData
86
                        #end
87
                    </tbody>
88
                </table>
89
            </div>
90
        </div>
91
    </div>
92
    #if($schemes && !$schemes.isEmpty())
93
        <div class="row" id="schemes-paginated">
94
            <div class="col-lg-9">
95
                <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
96
                        class="size">$size</span> items</p>
97
            </div>
98
            <div class="col-lg-3" style="text-align:right;">
99
                <div class="btn-group" style="width:40%">
100
                    <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous
101
                    </button>
102
                </div>
103
                <div class="btn-group" style="width:40%">
104
                    #if($end >= $size)
105
                        <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
106
                    #else
107
                        <button class="btn btn-primary next" style="width:100%">Next</button>
108
                    #end
109
                </div>
110
            </div>
111
        </div>
112
    #end
113
<div class="row">
114
	<div class="col-lg-12">
115
		<h3>Other Schemes</h3>
116
		<table class="table table-striped table-advance">
117
			<tr>
118
                <th>Name</th>
119
                <th>Target Type</th>
120
                <th>Scheme Type</th>
121
                <th>Brand %</th>
122
                <th>Sellin %</th>
123
                <th>Target Criteria</th>
124
                <th>Start</th>
125
                <th>End</th>
126
            </tr>
127
            #if(!$offers.isEmpty())
128
            #foreach( $offer in $offers )
129
            <tr class="offer-details" data-offerid="$offer.getId()">
27976 amit.gupta 130
                <td rowspan="$offer.getTargetSlabs().size()"><a class="mk_offer_detail" href="javascript:void(0)">$offer.getName()</a></td>
131
                #foreach($targetSlab in $offer.getTargetSlabs())
132
                	$targetSlab.getItemCriteriaPayouts().get(0).getPayoutSlabs().get(0).getPayoutAmount()
133
                #end
27873 amit.gupta 134
            </tr>
135
            #end
136
	        #else
137
            $noData
138
    	    #end
139
		</table>
140
	</div>
141
</div>
27899 amit.gupta 142
<div class="col-lg-12">
143
    <h5>Note</h5>
144
    <b>Hygiene Payout</b> - This is basis the customer details entered in the system, pls refer to hygiene
145
    meter
146
    in your Dashboard.
147
    <br><b>Tertiary Payout</b> - This is basis the activation of the handset.
148
    <br><b>Investment Payout</b> - Investments in stocks should be above 90% for minimum 12 days in a month
149
    to
150
    earn 2%, between 8-11 days will earn 1%, less then 8 days there will be no payout.
151
</div>
27873 amit.gupta 152
<div id="scheme-details-container" style="background:white;background-color:white;">
153
</div>
154
</section>