<?php

namespace PHPMaker2021\gudang_ubi;

// Page object
$SortirAdd = &$Page;
?>
<script>
var currentForm, currentPageID;
var fsortiradd;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "add";
    fsortiradd = currentForm = new ew.Form("fsortiradd", "add");

    // Add fields
    var fields = ew.vars.tables.sortir.fields;
    fsortiradd.addFields([
        ["sortir_kedatangan", [fields.sortir_kedatangan.required ? ew.Validators.required(fields.sortir_kedatangan.caption) : null], fields.sortir_kedatangan.isInvalid],
        ["sortir_petugas", [fields.sortir_petugas.required ? ew.Validators.required(fields.sortir_petugas.caption) : null], fields.sortir_petugas.isInvalid],
        ["sortir_tanggal", [fields.sortir_tanggal.required ? ew.Validators.required(fields.sortir_tanggal.caption) : null], fields.sortir_tanggal.isInvalid],
        ["sortir_okking", [fields.sortir_okking.required ? ew.Validators.required(fields.sortir_okking.caption) : null], fields.sortir_okking.isInvalid],
        ["sortir_okl", [fields.sortir_okl.required ? ew.Validators.required(fields.sortir_okl.caption) : null], fields.sortir_okl.isInvalid],
        ["sortir_okm", [fields.sortir_okm.required ? ew.Validators.required(fields.sortir_okm.caption) : null], fields.sortir_okm.isInvalid],
        ["sortir_oks", [fields.sortir_oks.required ? ew.Validators.required(fields.sortir_oks.caption) : null], fields.sortir_oks.isInvalid],
        ["sortir_okss", [fields.sortir_okss.required ? ew.Validators.required(fields.sortir_okss.caption) : null], fields.sortir_okss.isInvalid],
        ["sortir_oktotal", [fields.sortir_oktotal.required ? ew.Validators.required(fields.sortir_oktotal.caption) : null], fields.sortir_oktotal.isInvalid],
        ["sortir_rijek_busuk", [fields.sortir_rijek_busuk.required ? ew.Validators.required(fields.sortir_rijek_busuk.caption) : null], fields.sortir_rijek_busuk.isInvalid],
        ["sortir_rijek_kecil", [fields.sortir_rijek_kecil.required ? ew.Validators.required(fields.sortir_rijek_kecil.caption) : null], fields.sortir_rijek_kecil.isInvalid],
        ["sortir_rijek_sampah", [fields.sortir_rijek_sampah.required ? ew.Validators.required(fields.sortir_rijek_sampah.caption) : null], fields.sortir_rijek_sampah.isInvalid],
        ["sortir_catatan", [fields.sortir_catatan.required ? ew.Validators.required(fields.sortir_catatan.caption) : null], fields.sortir_catatan.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        var f = fsortiradd,
            fobj = f.getForm(),
            $fobj = $(fobj),
            $k = $fobj.find("#" + f.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            f.setInvalid(rowIndex);
        }
    });

    // Validate form
    fsortiradd.validate = function () {
        if (!this.validateRequired)
            return true; // Ignore validation
        var fobj = this.getForm(),
            $fobj = $(fobj);
        if ($fobj.find("#confirm").val() == "confirm")
            return true;
        var addcnt = 0,
            $k = $fobj.find("#" + this.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1, // Check rowcnt == 0 => Inline-Add
            gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            $fobj.data("rowindex", rowIndex);

            // Validate fields
            if (!this.validateFields(rowIndex))
                return false;

            // Call Form_CustomValidate event
            if (!this.customValidate(fobj)) {
                this.focus();
                return false;
            }
        }

        // Process detail forms
        var dfs = $fobj.find("input[name='detailpage']").get();
        for (var i = 0; i < dfs.length; i++) {
            var df = dfs[i],
                val = df.value,
                frm = ew.forms.get(val);
            if (val && frm && !frm.validate())
                return false;
        }
        return true;
    }

    // Form_CustomValidate
    fsortiradd.customValidate = function(fobj) { // DO NOT CHANGE THIS LINE!
        // Your custom validation code here, return false if invalid.
        return true;
    }

    // Use JavaScript validation or not
    fsortiradd.validateRequired = <?= Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

    // Dynamic selection lists
    fsortiradd.lists.sortir_kedatangan = <?= $Page->sortir_kedatangan->toClientList($Page) ?>;
    fsortiradd.lists.sortir_petugas = <?= $Page->sortir_petugas->toClientList($Page) ?>;
    loadjs.done("fsortiradd");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fsortiradd" id="fsortiradd" class="<?= $Page->FormClassName ?>" action="<?= CurrentPageUrl() ?>" method="post">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="sortir">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($Page->sortir_kedatangan->Visible) { // sortir_kedatangan ?>
    <div id="r_sortir_kedatangan" class="form-group row">
        <label id="elh_sortir_sortir_kedatangan" for="x_sortir_kedatangan" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_kedatangan->caption() ?><?= $Page->sortir_kedatangan->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_kedatangan->cellAttributes() ?>>
<span id="el_sortir_sortir_kedatangan">
    <select
        id="x_sortir_kedatangan"
        name="x_sortir_kedatangan"
        class="form-control ew-select<?= $Page->sortir_kedatangan->isInvalidClass() ?>"
        data-select2-id="sortir_x_sortir_kedatangan"
        data-table="sortir"
        data-field="x_sortir_kedatangan"
        data-value-separator="<?= $Page->sortir_kedatangan->displayValueSeparatorAttribute() ?>"
        data-placeholder="<?= HtmlEncode($Page->sortir_kedatangan->getPlaceHolder()) ?>"
        <?= $Page->sortir_kedatangan->editAttributes() ?>>
        <?= $Page->sortir_kedatangan->selectOptionListHtml("x_sortir_kedatangan") ?>
    </select>
    <?= $Page->sortir_kedatangan->getCustomMessage() ?>
    <div class="invalid-feedback"><?= $Page->sortir_kedatangan->getErrorMessage() ?></div>
<?= $Page->sortir_kedatangan->Lookup->getParamTag($Page, "p_x_sortir_kedatangan") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='sortir_x_sortir_kedatangan']"),
        options = { name: "x_sortir_kedatangan", selectId: "sortir_x_sortir_kedatangan", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.sortir.fields.sortir_kedatangan.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_tanggal->Visible) { // sortir_tanggal ?>
    <div id="r_sortir_tanggal" class="form-group row">
        <label id="elh_sortir_sortir_tanggal" for="x_sortir_tanggal" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_tanggal->caption() ?><?= $Page->sortir_tanggal->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_tanggal->cellAttributes() ?>>
<span id="el_sortir_sortir_tanggal">
<input type="<?= $Page->sortir_tanggal->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_tanggal" name="x_sortir_tanggal" id="x_sortir_tanggal" placeholder="<?= HtmlEncode($Page->sortir_tanggal->getPlaceHolder()) ?>" value="<?= $Page->sortir_tanggal->EditValue ?>"<?= $Page->sortir_tanggal->editAttributes() ?> aria-describedby="x_sortir_tanggal_help">
<?= $Page->sortir_tanggal->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_tanggal->getErrorMessage() ?></div>
<?php if (!$Page->sortir_tanggal->ReadOnly && !$Page->sortir_tanggal->Disabled && !isset($Page->sortir_tanggal->EditAttrs["readonly"]) && !isset($Page->sortir_tanggal->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fsortiradd", "datetimepicker"], function() {
    ew.createDateTimePicker("fsortiradd", "x_sortir_tanggal", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_okking->Visible) { // sortir_okking ?>
    <div id="r_sortir_okking" class="form-group row">
        <label id="elh_sortir_sortir_okking" for="x_sortir_okking" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_okking->caption() ?><?= $Page->sortir_okking->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_okking->cellAttributes() ?>>
<span id="el_sortir_sortir_okking">
<input type="<?= $Page->sortir_okking->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_okking" name="x_sortir_okking" id="x_sortir_okking" size="30" placeholder="<?= HtmlEncode($Page->sortir_okking->getPlaceHolder()) ?>" value="<?= $Page->sortir_okking->EditValue ?>"<?= $Page->sortir_okking->editAttributes() ?> aria-describedby="x_sortir_okking_help">
<?= $Page->sortir_okking->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_okking->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_okl->Visible) { // sortir_okl ?>
    <div id="r_sortir_okl" class="form-group row">
        <label id="elh_sortir_sortir_okl" for="x_sortir_okl" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_okl->caption() ?><?= $Page->sortir_okl->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_okl->cellAttributes() ?>>
<span id="el_sortir_sortir_okl">
<input type="<?= $Page->sortir_okl->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_okl" name="x_sortir_okl" id="x_sortir_okl" size="30" placeholder="<?= HtmlEncode($Page->sortir_okl->getPlaceHolder()) ?>" value="<?= $Page->sortir_okl->EditValue ?>"<?= $Page->sortir_okl->editAttributes() ?> aria-describedby="x_sortir_okl_help">
<?= $Page->sortir_okl->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_okl->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_okm->Visible) { // sortir_okm ?>
    <div id="r_sortir_okm" class="form-group row">
        <label id="elh_sortir_sortir_okm" for="x_sortir_okm" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_okm->caption() ?><?= $Page->sortir_okm->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_okm->cellAttributes() ?>>
<span id="el_sortir_sortir_okm">
<input type="<?= $Page->sortir_okm->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_okm" name="x_sortir_okm" id="x_sortir_okm" size="30" placeholder="<?= HtmlEncode($Page->sortir_okm->getPlaceHolder()) ?>" value="<?= $Page->sortir_okm->EditValue ?>"<?= $Page->sortir_okm->editAttributes() ?> aria-describedby="x_sortir_okm_help">
<?= $Page->sortir_okm->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_okm->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_oks->Visible) { // sortir_oks ?>
    <div id="r_sortir_oks" class="form-group row">
        <label id="elh_sortir_sortir_oks" for="x_sortir_oks" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_oks->caption() ?><?= $Page->sortir_oks->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_oks->cellAttributes() ?>>
<span id="el_sortir_sortir_oks">
<input type="<?= $Page->sortir_oks->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_oks" name="x_sortir_oks" id="x_sortir_oks" size="30" placeholder="<?= HtmlEncode($Page->sortir_oks->getPlaceHolder()) ?>" value="<?= $Page->sortir_oks->EditValue ?>"<?= $Page->sortir_oks->editAttributes() ?> aria-describedby="x_sortir_oks_help">
<?= $Page->sortir_oks->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_oks->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_okss->Visible) { // sortir_okss ?>
    <div id="r_sortir_okss" class="form-group row">
        <label id="elh_sortir_sortir_okss" for="x_sortir_okss" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_okss->caption() ?><?= $Page->sortir_okss->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_okss->cellAttributes() ?>>
<span id="el_sortir_sortir_okss">
<input type="<?= $Page->sortir_okss->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_okss" name="x_sortir_okss" id="x_sortir_okss" size="30" placeholder="<?= HtmlEncode($Page->sortir_okss->getPlaceHolder()) ?>" value="<?= $Page->sortir_okss->EditValue ?>"<?= $Page->sortir_okss->editAttributes() ?> aria-describedby="x_sortir_okss_help">
<?= $Page->sortir_okss->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_okss->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_oktotal->Visible) { // sortir_oktotal ?>
    <div id="r_sortir_oktotal" class="form-group row">
        <label id="elh_sortir_sortir_oktotal" for="x_sortir_oktotal" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_oktotal->caption() ?><?= $Page->sortir_oktotal->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_oktotal->cellAttributes() ?>>
<span id="el_sortir_sortir_oktotal">
<input type="<?= $Page->sortir_oktotal->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_oktotal" name="x_sortir_oktotal" id="x_sortir_oktotal" size="30" placeholder="<?= HtmlEncode($Page->sortir_oktotal->getPlaceHolder()) ?>" value="<?= $Page->sortir_oktotal->EditValue ?>"<?= $Page->sortir_oktotal->editAttributes() ?> aria-describedby="x_sortir_oktotal_help">
<?= $Page->sortir_oktotal->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_oktotal->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_rijek_busuk->Visible) { // sortir_rijek_busuk ?>
    <div id="r_sortir_rijek_busuk" class="form-group row">
        <label id="elh_sortir_sortir_rijek_busuk" for="x_sortir_rijek_busuk" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_rijek_busuk->caption() ?><?= $Page->sortir_rijek_busuk->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_rijek_busuk->cellAttributes() ?>>
<span id="el_sortir_sortir_rijek_busuk">
<input type="<?= $Page->sortir_rijek_busuk->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_rijek_busuk" name="x_sortir_rijek_busuk" id="x_sortir_rijek_busuk" size="30" placeholder="<?= HtmlEncode($Page->sortir_rijek_busuk->getPlaceHolder()) ?>" value="<?= $Page->sortir_rijek_busuk->EditValue ?>"<?= $Page->sortir_rijek_busuk->editAttributes() ?> aria-describedby="x_sortir_rijek_busuk_help">
<?= $Page->sortir_rijek_busuk->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_rijek_busuk->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_rijek_kecil->Visible) { // sortir_rijek_kecil ?>
    <div id="r_sortir_rijek_kecil" class="form-group row">
        <label id="elh_sortir_sortir_rijek_kecil" for="x_sortir_rijek_kecil" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_rijek_kecil->caption() ?><?= $Page->sortir_rijek_kecil->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_rijek_kecil->cellAttributes() ?>>
<span id="el_sortir_sortir_rijek_kecil">
<input type="<?= $Page->sortir_rijek_kecil->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_rijek_kecil" name="x_sortir_rijek_kecil" id="x_sortir_rijek_kecil" size="30" placeholder="<?= HtmlEncode($Page->sortir_rijek_kecil->getPlaceHolder()) ?>" value="<?= $Page->sortir_rijek_kecil->EditValue ?>"<?= $Page->sortir_rijek_kecil->editAttributes() ?> aria-describedby="x_sortir_rijek_kecil_help">
<?= $Page->sortir_rijek_kecil->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_rijek_kecil->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_rijek_sampah->Visible) { // sortir_rijek_sampah ?>
    <div id="r_sortir_rijek_sampah" class="form-group row">
        <label id="elh_sortir_sortir_rijek_sampah" for="x_sortir_rijek_sampah" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_rijek_sampah->caption() ?><?= $Page->sortir_rijek_sampah->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_rijek_sampah->cellAttributes() ?>>
<span id="el_sortir_sortir_rijek_sampah">
<input type="<?= $Page->sortir_rijek_sampah->getInputTextType() ?>" data-table="sortir" data-field="x_sortir_rijek_sampah" name="x_sortir_rijek_sampah" id="x_sortir_rijek_sampah" size="30" placeholder="<?= HtmlEncode($Page->sortir_rijek_sampah->getPlaceHolder()) ?>" value="<?= $Page->sortir_rijek_sampah->EditValue ?>"<?= $Page->sortir_rijek_sampah->editAttributes() ?> aria-describedby="x_sortir_rijek_sampah_help">
<?= $Page->sortir_rijek_sampah->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_rijek_sampah->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->sortir_catatan->Visible) { // sortir_catatan ?>
    <div id="r_sortir_catatan" class="form-group row">
        <label id="elh_sortir_sortir_catatan" for="x_sortir_catatan" class="<?= $Page->LeftColumnClass ?>"><?= $Page->sortir_catatan->caption() ?><?= $Page->sortir_catatan->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->sortir_catatan->cellAttributes() ?>>
<span id="el_sortir_sortir_catatan">
<textarea data-table="sortir" data-field="x_sortir_catatan" name="x_sortir_catatan" id="x_sortir_catatan" cols="35" rows="4" placeholder="<?= HtmlEncode($Page->sortir_catatan->getPlaceHolder()) ?>"<?= $Page->sortir_catatan->editAttributes() ?> aria-describedby="x_sortir_catatan_help"><?= $Page->sortir_catatan->EditValue ?></textarea>
<?= $Page->sortir_catatan->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->sortir_catatan->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$Page->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
    <div class="<?= $Page->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?= $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?= GetUrl($Page->getReturnUrl()) ?>"><?= $Language->phrase("CancelBtn") ?></button>
    </div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("sortir");
});
</script>
<script>
loadjs.ready("load", function () {
    // Startup script
    $(document).ready((function(){$("#x_sortir_okking, #x_sortir_okl, #x_sortir_okm, #x_sortir_oks, #x_sortir_okss").keyup((function(){var o=parseFloat($("#x_sortir_okking").val()),r=parseFloat($("#x_sortir_okl").val()),t=parseFloat($("#x_sortir_okm").val()),s=parseFloat($("#x_sortir_oks").val()),_=parseFloat($("#x_sortir_okss").val()),a=$("#x_sortir_oktotal");a=parseFloat(a),$("#x_sortir_oktotal").val(o+r+t+s+_)}))}));
});
</script>
