Subversion Repositories SmartDukaan

Rev

Rev 28477 | Rev 28523 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


<script type="text/javascript">
        $(function() {
                getItemAheadOptions($("#catalog-search-item"), false, function(
                                selectedItem) {
                        currentItem = selectedItem;
                        console.log(currentItem);
                });
        });
        startMoment = moment().subtract(6, 'days');

        //      startDate = startMoment;
        $('input[name="saleDate"]').daterangepicker(getSingleDatePicker(),
                        dateRangeCallback);

        $('.chosen-select').chosen({
                search_contains : true

        });

        $('.criteria-item-catalogids')
                        .multiselect(
                                        {
                                                maxHeight : 400,
                                                numberDisplayed : 1,
                                                selectAll : false,
                                                nonSelectedText : 'Items Selected',
                                                nSelectedText : ' - Items Selected',
                                                allSelectedText : 'All Items Selected',
                                                enableFiltering : true,
                                                enableCaseInsensitiveFiltering : true,
                                                onChange : function(option, checked) {
                                                        // Get selected options.
                                                        var selectedOptions = jQuery('.criteria-item-catalogids option:selected');

                                                        if (selectedOptions.length >= 5) {
                                                                // Disable all other checkboxes.
                                                                var nonSelectedOptions = jQuery(
                                                                                '.criteria-item-catalogids option')
                                                                                .filter(
                                                                                                function() {
                                                                                                        return !jQuery(this).is(
                                                                                                                        ':selected');
                                                                                                });

                                                                nonSelectedOptions.each(function() {
                                                                        var input = jQuery('input[value="'
                                                                                        + jQuery(this).val() + '"]');
                                                                        input.prop('disabled', true);
                                                                        input.parent('li').addClass('disabled');
                                                                });
                                                        } else {
                                                                // Enable all checkboxes.
                                                                $('.criteria-item-catalogids option')
                                                                                .each(
                                                                                                function() {
                                                                                                        var input = jQuery('input[value="'
                                                                                                                        + jQuery(this)
                                                                                                                                        .val()
                                                                                                                        + '"]');
                                                                                                        input.prop('disabled',
                                                                                                                        false);
                                                                                                        input.parent('li')
                                                                                                                        .addClass(
                                                                                                                                        'disabled');
                                                                                                });
                                                        }
                                                }
                                        });
</script>

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header">
                                <i class="icon_document_alt"></i>PLACEMENT PLAN
                        </h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a
                                        href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>PLAN</li>

                        </ol>
                </div>
        </div>


        <div class="row">
                <div class="col-lg-12">

                        <div class="col-lg-1 form-group">
                                <label>Range </label>
                                <div class="input-group">
                                        <input type="text" id="subNumber" class="form-control input-number"
                                                value="0" readonly />
                                        <div class="input-group-btn">
                                                <button id="down" class="btn btn-default" onclick="subRange()">
                                                        <span class="glyphicon glyphicon-minus"></span>
                                                </button>
                                        </div>
                                </div>
                        </div>

                        <div class="col-lg-1 form-group" style="margin: 5px">
                                <label> </label>
                                <div class="input-group" style="">

                                        <input type="text" id="addRange" class="form-control input-number"
                                                value="0" readonly />
                                        <div class="input-group-btn">
                                                <button id="up" class="btn btn-default" onclick="addRange()">
                                                        <span class="glyphicon glyphicon-plus"></span>
                                                </button>
                                        </div>
                                </div>
                        </div>

                        <div class="col-lg-1 form-group" style="margin: 5px">
                                <label> </label>
                                <div class="input-group" style="">
                                        <div class="input-group-btn">
                                                <button class="btn btn-primary resetValue" type="button">Reset</button>
                                        </div>
                                </div>
                        </div>


                </div>
        </div>


        <div class="row">
                <div class="col-lg-12">
                        <div class="col-lg-2 form-group">
                                <label> Date</label>
                                <div class="input-group">

                                        <input placeholder="Sale Date" id="saleDate" name="saleDate"
                                                type="text" value="" class="form-control input-sm">
                                </div>
                        </div>


                        <div class="col-lg-2">
                                <div class="row col-lg-12 form-group">
                                        <div>
                                                <label>Brand</label>
                                        </div>
                                        <select data-placeholder="Choose brands" multiple="multiple"
                                                class="criteria-item-brands chosen-select">
                                                #foreach($brand in $brands)
                                                <option value="$brand">$brand</option> #end
                                        </select>
                                </div>
                        </div>

                        <div class="col-lg-2">
                                <div class="row col-lg-12 form-group" style="margin-top: 22px">
                                        <select class="criteria-item-catalogids form-control"
                                                multiple="multiple"></select>
                                </div>
                        </div>

                        <div class="col-lg-2">
                                <div class="row col-lg-12 form-group" style="margin-top: 22px">

                                        <select class="form-control input-sm" id="warehouseMap"
                                                name="warehouseMap" placeholder="Warehouse">
                                                <option value="" disabled selected>Warehouse</option>
                                                <option value="0" selected>All</option> #foreach($wm in
                                                $warehouseMap.entrySet()))

                                                <option value="$wm.getKey()">$wm.getValue()</option> #end
                                        </select>
                                </div>
                        </div>


                        <div class="col-lg-2">
                                <div class="row col-lg-12 form-group" style="margin-top: 21px">

                                        <button class="btn btn-primary search-partner-stock" type="button">Search</button>

                                </div>
                        </div>
                </div>

        </div>






        <div class="placement-plan-detail"></div>
</section>