Subversion Repositories SmartDukaan

Rev

Rev 30601 | Rev 34964 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30601 Rev 33045
Line 1... Line 1...
1
<script type="text/javascript">
1
<script type="text/javascript">
2
	var customRetailers = ${customRetailers};
2
    var customRetailers = ${customRetailers};
3
	$("#FofoId").typeahead({
3
    $("#FofoId").typeahead({
4
		source: customRetailers,
4
        source: customRetailers,
5
		autoSelect: true,
5
        autoSelect: true,
6
		displayText: function (item) {
6
        displayText: function (item) {
7
			return item.businessName + "-" + item.address.city;
7
            return item.businessName + "-" + item.address.city;
8
		},
8
        },
9
		afterSelect: function (currentItem) {
9
        afterSelect: function (currentItem) {
10
			currentFofoId = currentItem.partnerId;
10
            currentFofoId = currentItem.partnerId;
11
		}
11
        }
12
	});
12
    });
13
 
13
 
14
	$('#businessDate').daterangepicker(getSingleDatePicker());
14
    $('#businessDate').daterangepicker(getSingleDatePicker());
15
 
15
 
16
	$('button.btnuploadcns').on('click', function () {
16
    $('button.btnuploadcns').on('click', function () {
17
		var fileSelector = $('#uploadcns')[0];
17
        var fileSelector = $('#uploadcns')[0];
18
		if (fileSelector != undefined && fileSelector.files[0] != undefined) {
18
        if (fileSelector != undefined && fileSelector.files[0] != undefined) {
19
			if (confirm("Confirm Upload?")) {
19
            if (confirm("Confirm Upload?")) {
20
				doAjaxUploadRequestHandler("${rc.contextPath}/wallet/upload", "POST", fileSelector.files[0], function(response){
20
                doAjaxUploadRequestHandler("${rc.contextPath}/wallet/upload", "POST", fileSelector.files[0], function (response) {
21
					if(response) {
21
                    if (response) {
22
						alert("Content updated successfully");
22
                        alert("Content updated successfully");
23
					}
23
                    }
24
				});
24
                });
25
			}
25
            }
26
		} else {
26
        } else {
27
			alert("Please upload file!");
27
            alert("Please upload file!");
28
		}
28
        }
29
		return false;
29
        return false;
30
	});
30
    });
31
	
31
 
32
</script>
32
</script>
33
 
33
 
34
<section class="wrapper">            
34
<section class="wrapper">
35
	<div class="row">
35
    <div class="row">
36
		<div class="col-lg-12">
36
        <div class="col-lg-12">
37
			<h3 class="page-header"><i class="icon_document_alt"></i>Wallet-Edit</h3>
37
            <h3 class="page-header"><i class="icon_document_alt"></i>Wallet-Edit</h3>
38
			<ol class="breadcrumb">
38
            <ol class="breadcrumb">
39
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
39
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
40
				<li><i class="icon_document_alt"></i>CREDIT/DEBIT</li>
40
                <li><i class="icon_document_alt"></i>CREDIT/DEBIT</li>
41
			</ol>
41
            </ol>
42
		</div>
42
        </div>
43
	</div>
43
    </div>
44
	
44
 
45
	<div style="background:white;background-color:white;padding:10px;">
45
    <div style="background:white;background-color:white;padding:10px;">
46
		<form class="form-horizontal" style="display:inline-block">
46
        <form class="form-horizontal" style="display:inline-block">
47
				<label class="control-label col-sm-2" for="excelfile">Bulk Credit/Debit:</label>
47
            <label class="control-label col-sm-2" for="excelfile">Bulk Credit/Debit:</label>
48
			    <div class="col-lg-3">
48
            <div class="col-lg-3">
49
			    	<div class="input-group">
49
                <div class="input-group">
50
			    		<input class="form-control" type="file" id="uploadcns" name="uploadcns" value="Upload File">
50
                    <input class="form-control" type="file" id="uploadcns" name="uploadcns" value="Upload File">
51
			    		<span class="input-group-btn">
51
                    <span class="input-group-btn">
52
				    		<button class="btn btn-default btnuploadcns">
52
				    		<button class="btn btn-default btnuploadcns">
53
							    Uplaod
53
							    Uplaod
54
							</button>
54
							</button>
55
						</span>
55
						</span>
56
					</div>
56
                </div>
57
			    </div>
57
            </div>
58
		    	<!--<div class="col-lg-2">
58
            <!--<div class="col-lg-2">
59
		    		<a class="btn btn-default" href="/content/template.csv">
59
                <a class="btn btn-default" href="/content/template.csv">
60
					    Download Tempate
60
                    Download Tempate
61
					</a>-->
-
 
62
		    	</div>
61
                </a>-->
63
		    </form>
62
        </form>
64
	</div>
63
    </div>
65
	<div style="background:white;background-color:white;padding:10px;">
64
    <div style="background:white;background-color:white;padding:10px;">
66
		<h4 class="modelHeaderCustom" style="font-size:22px;">Credit/Debit</h4>
65
        <h4 class="modelHeaderCustom" style="font-size:22px;">Credit/Debit</h4>
67
		<form id = "wallet-form" >
66
        <form id="wallet-form">
68
			<div class = "row">
67
            <div class="row">
69
				<div class="col-lg-2 form-group">
68
                <div class="col-lg-2 form-group">
70
			    	<input id="FofoId" type="text" class="typeahead form-control form-control-sm" placeholder="Partner Name" data-provide="typeahead" 
69
                    <input id="FofoId" type="text" class="typeahead form-control form-control-sm"
-
 
70
                           placeholder="Partner Name" data-provide="typeahead"
71
			    	 #if(${retailerName}) value="${retailerName}" #end
71
                        #if(${retailerName}) value="${retailerName}" #end
72
			    	 autocomplete="off"/>
72
                           autocomplete="off"/>
73
 
73
 
74
			    </div>
74
                </div>
75
			    <div class="col-lg-2 form-group">
75
                <div class="col-lg-2 form-group">
76
					<button class="btn btn-primary fetchTransactions" type="button">Search Transactions</button>
76
                    <button class="btn btn-primary fetchTransactions" type="button">Search Transactions</button>
77
				</div>
77
                </div>
78
			</div>
78
            </div>
79
			
79
 
80
			<div class = "row">
80
            <div class="row">
81
				<div class="col-lg-2 form-group">
81
                <div class="col-lg-2 form-group">
82
					<select class="form-control input-sm" id = "reference-type" name = "reference-type" placeholder="Reference Type">
82
                    <select class="form-control input-sm" id="reference-type" name="reference-type"
-
 
83
                            placeholder="Reference Type">
83
						<option value="" disabled selected>Reference Type</option>
84
                        <option value="" disabled selected>Reference Type</option>
84
						#foreach($referenceType in $referenceTypes)
85
                        #foreach($referenceType in $referenceTypes)
85
	             			<option value="${referenceType.getValue()}">$referenceType</option>
86
                            <option value="${referenceType.getValue()}">$referenceType</option>
86
	             		#end
87
                        #end
87
	             	</select>
88
                    </select>
88
				</div>
89
                </div>
89
				
90
 
90
				<div class="col-lg-2 form-group">
91
                <div class="col-lg-2 form-group">
91
				   	<input placeholder="Reference Id" id="reference_id" name="reference_id" type="text" value="" class="form-control input-sm">
92
                    <input placeholder="Reference Id" id="reference_id" name="reference_id" type="text" value=""
-
 
93
                           class="form-control input-sm">
92
				</div>
94
                </div>
93
				
95
 
94
				<div class="col-lg-2 form-group">
96
                <div class="col-lg-2 form-group">
95
					<button class="btn btn-primary referenceSearch" type="button">Search</button>
97
                    <button class="btn btn-primary referenceSearch" type="button">Search</button>
96
				</div>
98
                </div>
97
			</div>
99
            </div>
98
		
100
 
99
			<div class = "row">
101
            <div class="row">
100
				<div class="col-lg-1 form-group">
102
                <div class="col-lg-1 form-group">
101
					<select class="form-control input-sm" id = "transaction-type" name = "transaction-type" placeholder="Transaction Type">
103
                    <select class="form-control input-sm" id="transaction-type" name="transaction-type"
-
 
104
                            placeholder="Transaction Type">
102
						<option value="" disabled selected>Transaction Type</option>
105
                        <option value="" disabled selected>Transaction Type</option>
103
						#foreach($transactionType in $transactionTypes)
106
                        #foreach($transactionType in $transactionTypes)
104
	             			<option value="$transactionType">$transactionType</option>
107
                            <option value="$transactionType">$transactionType</option>
105
	             		#end
108
                        #end
106
	             	</select>
109
                    </select>
107
				</div>
110
                </div>
108
				
111
 
109
				<div class="col-lg-1 form-group">
112
                <div class="col-lg-1 form-group">
110
				   	<input placeholder="Amount" id="amount" name="amount" type="text" value="" class="form-control input-sm">
113
                    <input placeholder="Amount" id="amount" name="amount" type="text" value=""
-
 
114
                           class="form-control input-sm">
111
				</div>
115
                </div>
112
				
116
 
113
				
117
 
114
				<div class="col-lg-1 form-group">
118
                <div class="col-lg-1 form-group">
115
				   	<input placeholder="Business date" id="businessDate" name="businessDate" type="text" value="" class="form-control input-sm">
119
                    <input placeholder="Business date" id="businessDate" name="businessDate" type="text" value=""
-
 
120
                           class="form-control input-sm">
116
				</div>
121
                </div>
117
				
122
 
118
				<div class="col-lg-2 form-group">
123
                <div class="col-lg-2 form-group">
119
				   	<input placeholder="Description" id="description" name="description" type="text" value="" class="form-control input-sm">
124
                    <input placeholder="Description" id="description" name="description" type="text" value=""
-
 
125
                           class="form-control input-sm">
120
				</div>
126
                </div>
121
				
127
 
122
				
128
 
123
				<div class="col-lg-1 form-group">
129
                <div class="col-lg-1 form-group">
124
					<button class="btn btn-primary transactionSubmit" type="button">Submit</button>
130
                    <button class="btn btn-primary transactionSubmit" type="button">Submit</button>
125
				</div>
131
                </div>
126
				</div>
132
            </div>
127
		</div>
-
 
128
	</div>
-
 
129
	</div>
133
 
130
	</form>
134
        </form>
131
	
135
 
132
	     <div class="wallet-history-container">
136
        <div class="wallet-history-container">
133
		</div>	 
137
        </div>
134
</section>
138
</section>
135
 
139