225 lines
9.3 KiB
HTML
225 lines
9.3 KiB
HTML
title = "machine/rulon"
|
|
url = "/machine/rulon"
|
|
layout = "platform_main"
|
|
is_hidden = 0
|
|
[builderList]
|
|
modelClass = "Romanah\Gokbakja\Models\Building"
|
|
scope = "-"
|
|
scopeValue = "{{ :scope }}"
|
|
displayColumn = "id"
|
|
noRecordsMessage = "No records found"
|
|
detailsPage = "-"
|
|
detailsUrlParameter = "id"
|
|
pageNumber = "{{ :page }}"
|
|
|
|
[builderList builderList2]
|
|
modelClass = "Romanah\Gokbakja\Models\Machine"
|
|
scope = "-"
|
|
scopeValue = "{{ :scope }}"
|
|
displayColumn = "id"
|
|
noRecordsMessage = "No records found"
|
|
detailsPage = "-"
|
|
detailsUrlParameter = "id"
|
|
pageNumber = "{{ :page }}"
|
|
|
|
[builderList builderList3]
|
|
modelClass = "Romanah\Gokbakja\Models\BagSize"
|
|
scope = "-"
|
|
scopeValue = "{{ :scope }}"
|
|
displayColumn = "id"
|
|
noRecordsMessage = "No records found"
|
|
detailsPage = "-"
|
|
detailsUrlParameter = "id"
|
|
pageNumber = "{{ :page }}"
|
|
|
|
[builderList builderList4]
|
|
modelClass = "Romanah\Gokbakja\Models\BagType"
|
|
scope = "-"
|
|
scopeValue = "{{ :scope }}"
|
|
displayColumn = "id"
|
|
noRecordsMessage = "No records found"
|
|
detailsPage = "-"
|
|
detailsUrlParameter = "id"
|
|
pageNumber = "{{ :page }}"
|
|
|
|
[machineProduction]
|
|
==
|
|
<?php
|
|
function onStart(){
|
|
$this["shifts"] = Romanah\Gokbakja\Models\Shift::get();
|
|
$this["machines"] = Romanah\Gokbakja\Models\Machine::all();
|
|
$this["mechanics"] = Romanah\Gokbakja\Models\Employee::where("is_mechanic", 1)->get();
|
|
|
|
$this["m_productions"] = Romanah\Gokbakja\Models\ProductionMachine::select('id', 'type_id', 'size_id', 'machine_id', 'produced_weight', 'employee_id', 'mechanic_id', 'note', 'date', 'color_id', 'left_weight')
|
|
->selectRaw('produced_weight - left_weight as spent')->get();
|
|
}
|
|
?>
|
|
==
|
|
{% set records = builderList.records %}
|
|
{% set displayColumn = builderList.displayColumn %}
|
|
{% set noRecordsMessage = builderList.noRecordsMessage %}
|
|
{% set detailsPage = builderList.detailsPage %}
|
|
{% set detailsKeyColumn = builderList.detailsKeyColumn %}
|
|
{% set detailsUrlParameter = builderList.detailsUrlParameter %}
|
|
|
|
{% set machines = builderList2.records %}
|
|
{% set types = builderList4.records %}
|
|
{% set sizes = builderList3.records %}
|
|
|
|
{% put styles %}
|
|
<link href="{{'assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
<link href="{{'assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
<link href="{{'assets/libs/datatables.net-select-bs4/css/select.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
|
|
<link href="{{'assets/libs/select2/css/select2.min.css'|theme}}" rel="stylesheet" type="text/css">
|
|
{% endput %}
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form data-request="onReport" data-request-flash>
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
<label class="form-label">Enjam Saýlaň</label>
|
|
<select class="form-control select2" name="machine_id" id="machine_id">
|
|
<option value="0">Saýla</option>
|
|
{% for machine in machines %}
|
|
<option value="{{machine.id}}">{{machine.name}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Seneleri Saýlaň</label>
|
|
|
|
<div class="input-daterange input-group" id="datepicker6"
|
|
data-date-format="d.m.yyyy" data-date-autoclose="true" data-provide="datepicker"
|
|
data-date-container='#datepicker6'>
|
|
<input type="text" class="form-control" name="start"
|
|
placeholder="Başlanýan sene" />
|
|
<input type="text" class="form-control" name="end"
|
|
placeholder="Gutarýan sene" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Mehanik Saýlaň</label>
|
|
<select class="form-control select2" name="mechanic_id" id="mechanic_id">
|
|
<option value="0">Saýla</option>
|
|
{% for mechanic in mechanics %}
|
|
<option value="{{mechanic.id}}">{{mechanic.name}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Ölçeg Saýlaň</label>
|
|
<select class="form-control select2" name="size_id">
|
|
<option value="0">Saýla</option>
|
|
{% for size in sizes %}
|
|
<option value="{{size.id}}">{{size.name}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Görnüş Saýlaň</label>
|
|
<select class="form-control select2" name="type_id">
|
|
<option value="0">Görnüş Saýla</option>
|
|
{% for type in types %}
|
|
<option value="{{type.id}}">{{type.name}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<button type="submit" class="btn btn-primary waves-effect waves-light"
|
|
style="margin-top: 30px;width: 100%;">Hasabat</button>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h3 class="card-title" style="font-size: 22px;color: #1e2038;">Rulonlar boýunça</h3>
|
|
<p class="card-title-desc" style="color: #6c6ff5;">Hasabat</p>
|
|
|
|
</div>
|
|
<!-- <div class="col-md-6" style="text-align: right;">
|
|
<a class="btn btn-primary" data-bs-toggle="collapse" href="#multiCollapseExample1"
|
|
role="button" aria-expanded="false" aria-controls="multiCollapseExample1">Täze
|
|
Maglumat</a>
|
|
</div> -->
|
|
|
|
</div>
|
|
<h1>{{m_productions}}</h1>
|
|
|
|
|
|
<table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap"
|
|
style="border-collapse: collapse; border-spacing: 0; width: 100%;">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 5%;">№</th>
|
|
<th>Ady</th>
|
|
<th>Rulon Ölçegi</th>
|
|
<th>Rulon Görnüşi</th>
|
|
<th>Rulon Reňki</th>
|
|
<th>Önen Önüm (kg)</th>
|
|
<th>Ady Familiýasy</th>
|
|
<th>Mehanik</th>
|
|
<th>Bellik</th>
|
|
<!-- <th>Настройки</th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th style="width: 5%;">№</th>
|
|
<th>Öndürlen Sene</th>
|
|
<th>Bina No</th>
|
|
<th>Enjam No</th>
|
|
<th>Rulon Ölçegi</th>
|
|
<th>Rulon Görnüşi</th>
|
|
<th>Rulon Reňki</th>
|
|
<th>Önen Önüm (kg)</th>
|
|
<th>Ady Familiýasy</th>
|
|
<th>Mehanik</th>
|
|
<th>Bellik</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% put scripts %}
|
|
<script src="{{'assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js'|theme}}"></script>
|
|
<script src="{{'assets/libs/select2/js/select2.min.js'|theme}}"></script>
|
|
<script src="{{'assets/js/pages/form-advanced.init.js'|theme}}"></script>
|
|
{% endput %}
|
|
|
|
{% partial 'dataTableJs' %}
|