Subversion Repositories SmartDukaan

Rev

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

Rev 25721 Rev 30601
Line 1... Line 1...
1
 <script>
1
<script>
2
 
2
 
3
        
3
 
4
        $('input[name="procuredDate"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
4
    $('input[name="procuredDate"]').daterangepicker(getSingleDatePicker());
5
        
5
 
6
        var object={timePicker: true,locale : {format : 'DD/MM/YYYY hh A'}};
6
    var object = {timePicker: true, locale: {format: 'DD/MM/YYYY hh A'}};
7
      $('input[name="responseTime"]').daterangepicker($.extend(getSingleDatePicker(),object), dateRangeCallback);
7
    $('input[name="responseTime"]').daterangepicker($.extend(getSingleDatePicker(), object));
8
      
8
 
9
      
9
 
10
      $(document).ready(function() {
10
    $(document).ready(function () {
11
   $('#chckHead').click(function () {
11
        $('#chckHead').click(function () {
12
        if (this.checked == false) {
12
            if (this.checked == false) {
13
            $('.chcktbl:checked').attr('checked', false);
13
                $('.chcktbl:checked').attr('checked', false);
14
        }
-
 
15
        else {
14
            } else {
16
            $('.chcktbl:not(:checked)').attr('checked', true);
15
                $('.chcktbl:not(:checked)').attr('checked', true);
17
        }
16
            }
18
   
17
 
19
		  });
18
        });
20
	 });
19
    });
21
       </script> 
20
</script>
22
 <div class="modal-header">
21
<div class="modal-header">
23
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
22
    <button type="button" class="close" data-dismiss="modal">&times;</button>
24
	        <h4 class="modal-title">Notify Order</h4>
23
    <h4 class="modal-title">Notify Order</h4>
25
       </div>
-
 
26
 <div class="modal-body">
-
 
27
  <div class = "row">
-
 
28
    <div style = "float:right; padding-right: 16px;">
-
 
29
      <input type="checkbox" name="overridemessage" id = "overridemessage"> Override the message
-
 
30
      </div>
-
 
31
    <div class="col-lg-12">
-
 
32
    
-
 
33
    
-
 
34
         <div style="border:1px; border-style:solid; border-color:#D3D3D3;padding: 2px;" id = "notifymessage">
-
 
35
          <p id = "notifymsg">$inProcessselectedOrder.get(0).getLineItem().getItem().getItemDescription() is currently not in stock.
-
 
36
The current availability is in <span id="colorValue"></span>. please click on it to change the color</p>  
-
 
37
	    </div>
-
 
38
	    <br>
-
 
39
	    <div>
-
 
40
	    <textarea class='form-control' rows='1' id='textnotifymessage'></textarea>
-
 
41
	    </div>
-
 
42
	
-
 
43
     </div>
-
 
44
     </div>
-
 
45
   <div class="notify-order">
-
 
46
   
-
 
47
 
-
 
48
    
-
 
49
      <div class = "row">
-
 
50
	    		<div class="col-lg-12">
-
 
51
	    	 
-
 
52
	             <table class="table  table-advance" id = "notify-table">
-
 
53
	    			<tbody>
-
 
54
	    				<tr>
-
 
55
	    					<th>color</th>
-
 
56
	    					<th>Response Time</th>	
-
 
57
	    					<th>Procured Date</th>
-
 
58
	    				</tr>
-
 
59
	    	            	#foreach( $request in $item )
-
 
60
			    				<tr class="notifyOrder" data="$request.getId()">
-
 
61
			    					<td><input type="checkbox" value="$request.getId()" name = "itemCheck">$request.getColor()</td>
-
 
62
			    					<td><input placeholder="Response Time" id="responseTime" name="responseTime" type="text" value="" class="form-control input-sm"></td>
-
 
63
			    				    <td><input placeholder="Procured Date" id="procuredDate" name="procuredDate" type="text" value="" class="form-control input-sm"></td>
-
 
64
			    				</tr>	
-
 
65
			    	   #end
-
 
66
		    	</tbody>
-
 
67
	    </table>
-
 
68
	</div>	
-
 
69
</div>	
-
 
70
</div>
24
</div>
-
 
25
<div class="modal-body">
-
 
26
    <div class="row">
-
 
27
        <div style="float:right; padding-right: 16px;">
-
 
28
            <input type="checkbox" name="overridemessage" id="overridemessage"> Override the message
-
 
29
        </div>
-
 
30
        <div class="col-lg-12">
-
 
31
 
-
 
32
 
-
 
33
            <div style="border:1px; border-style:solid; border-color:#D3D3D3;padding: 2px;" id="notifymessage">
-
 
34
                <p id="notifymsg">$inProcessselectedOrder.get(0).getLineItem().getItem().getItemDescription() is
-
 
35
                    currently not in stock.
-
 
36
                    The current availability is in <span id="colorValue"></span>. please click on it to change the color
-
 
37
                </p>
-
 
38
            </div>
-
 
39
            <br>
-
 
40
            <div>
-
 
41
                <textarea class='form-control' rows='1' id='textnotifymessage'></textarea>
-
 
42
            </div>
-
 
43
 
-
 
44
        </div>
-
 
45
    </div>
-
 
46
    <div class="notify-order">
-
 
47
 
-
 
48
 
-
 
49
        <div class="row">
-
 
50
            <div class="col-lg-12">
71
 
51
 
-
 
52
                <table class="table  table-advance" id="notify-table">
-
 
53
                    <tbody>
-
 
54
                    <tr>
-
 
55
                        <th>color</th>
-
 
56
                        <th>Response Time</th>
-
 
57
                        <th>Procured Date</th>
-
 
58
                    </tr>
-
 
59
                        #foreach( $request in $item )
-
 
60
                        <tr class="notifyOrder" data="$request.getId()">
-
 
61
                            <td><input type="checkbox" value="$request.getId()" name="itemCheck">$request.getColor()
-
 
62
                            </td>
-
 
63
                            <td><input placeholder="Response Time" id="responseTime" name="responseTime" type="text"
-
 
64
                                       value="" class="form-control input-sm"></td>
-
 
65
                            <td><input placeholder="Procured Date" id="procuredDate" name="procuredDate" type="text"
-
 
66
                                       value="" class="form-control input-sm"></td>
-
 
67
                        </tr>
-
 
68
                        #end
-
 
69
                    </tbody>
-
 
70
                </table>
-
 
71
            </div>
-
 
72
        </div>
-
 
73
    </div>
72
 
74
 
-
 
75
 
73
   <div class="selected-order-table">
76
    <div class="selected-order-table">
74
   
77
 
75
      <div class = "row">
78
        <div class="row">
76
      <h4 class="modelHeaderCustom" style="font-size:22px;">In Process Order</h4>
79
            <h4 class="modelHeaderCustom" style="font-size:22px;">In Process Order</h4>
77
	
80
 
78
	    		<div class="col-lg-12">
81
            <div class="col-lg-12">
79
	    	
82
 
80
	             <table class="table  table-advance" id = "notify-order-table">
83
                <table class="table  table-advance" id="notify-order-table">
81
	    			<tbody>
84
                    <tbody>
82
	    				 <tr>
85
                    <tr>
83
				                <td><input type="checkbox" id="chckHead"/></td>
86
                        <td><input type="checkbox" id="chckHead"/></td>
84
								<th>Item Id</th>
87
                        <th>Item Id</th>
85
	    						<th>OrderId</th>
88
                        <th>OrderId</th>
86
	    						<th>Description</th>
89
                        <th>Description</th>
87
	    						<th>Customer Name </th>
90
                        <th>Customer Name</th>
88
	    						<th>Quantity</th>
91
                        <th>Quantity</th>
89
	    						<th>City</th>
92
                        <th>City</th>
90
	    						<th>State</th>
93
                        <th>State</th>
91
	    						<th>Store Code</th>
94
                        <th>Store Code</th>
92
	    						
95
 
93
	    					
96
 
94
	    					</tr>	
97
                    </tr>
95
	    						
98
 
96
				        </thead>
99
                    </thead>
97
	    					
100
 
98
		    					 #foreach($request in $inProcessselectedOrder )
101
                    #foreach($request in $inProcessselectedOrder )
99
		    					 	<tr>
102
                        <tr>
100
		    					 	    <td> <input type="checkbox" class ="chcktbl" name="partnerCheck" /></td>
103
                            <td><input type="checkbox" class="chcktbl" name="partnerCheck"/></td>
101
		    					       	<td>$request.getLineItem().getItemId()</td>
104
                            <td>$request.getLineItem().getItemId()</td>
102
		    					       	<td>$request.getId()</td>
105
                            <td>$request.getId()</td>
103
		    					 		<td>$request.getLineItem().getItem().getItemDescription()</td>
106
                            <td>$request.getLineItem().getItem().getItemDescription()</td>
104
		    					 		<td>$request.getRetailerName()</td>
107
                            <td>$request.getRetailerName()</td>
105
                                        <td>$request.getLineItem().getQuantity()</td>	
108
                            <td>$request.getLineItem().getQuantity()</td>
106
                                        <td>$request.getRetailerCity()</td>
109
                            <td>$request.getRetailerCity()</td>
107
                                        <td>$request.getRetailerState()</td>
110
                            <td>$request.getRetailerState()</td>
108
                                        <td>$storeIdAndFofoIdMap.get($request.getRetailerId())</td>
111
                            <td>$storeIdAndFofoIdMap.get($request.getRetailerId())</td>
-
 
112
 
-
 
113
 
109
                                       
114
                        </tr>
110
								
-
 
111
			    				</tr>	
115
                    #end
112
			    	   #end
116
                    </tbody>
113
		    	</tbody>
117
                </table>
114
	    </table>
118
            </div>
115
	</div>	
119
        </div>
116
</div>	
120
    </div>
117
</div>
121
</div>
118
</div>	
-
 
119
	<div class="modal-footer">
-
 
120
		        <button type="button" data-dismiss="modal" class="btn btn-default notify-cancel">Cancel</button>
-
 
121
		        <button type="button"  class="btn btn-default notify-submit">Submit</button>
-
 
122
		   
-
 
123
	   </div>
-
 
124
122
<div class="modal-footer">
-
 
123
    <button type="button" data-dismiss="modal" class="btn btn-default notify-cancel">Cancel</button>
-
 
124
    <button type="button" class="btn btn-default notify-submit">Submit</button>
-
 
125
 
-
 
126
</div>
-
 
127
125
128