<?php
namespace PHPMaker2020\project2;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start();

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$kp_lab_ot_det_list = new kp_lab_ot_det_list();

// Run the page
$kp_lab_ot_det_list->run();

// Setup login status
SetupLoginStatus();
SetClientVar("login", LoginStatus());

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$kp_lab_ot_det_list->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$kp_lab_ot_det_list->isExport()) { ?>
<script>
var fkp_lab_ot_detlist, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "list";
	fkp_lab_ot_detlist = currentForm = new ew.Form("fkp_lab_ot_detlist", "list");
	fkp_lab_ot_detlist.formKeyCountName = '<?php echo $kp_lab_ot_det_list->FormKeyCountName ?>';
	loadjs.done("fkp_lab_ot_detlist");
});
var fkp_lab_ot_detlistsrch;
loadjs.ready("head", function() {

	// Form object for search
	fkp_lab_ot_detlistsrch = currentSearchForm = new ew.Form("fkp_lab_ot_detlistsrch");

	// Dynamic selection lists
	// Filters

	fkp_lab_ot_detlistsrch.filterList = <?php echo $kp_lab_ot_det_list->getFilterList() ?>;
	loadjs.done("fkp_lab_ot_detlistsrch");
});
</script>
<script>
loadjs.ready("head", function() {

	// Client script
	// Write your client script here, no need to add script tags.

});
</script>
<?php } ?>
<?php if (!$kp_lab_ot_det_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($kp_lab_ot_det_list->TotalRecords > 0 && $kp_lab_ot_det_list->ExportOptions->visible()) { ?>
<?php $kp_lab_ot_det_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->ImportOptions->visible()) { ?>
<?php $kp_lab_ot_det_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->SearchOptions->visible()) { ?>
<?php $kp_lab_ot_det_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->FilterOptions->visible()) { ?>
<?php $kp_lab_ot_det_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$kp_lab_ot_det_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$kp_lab_ot_det_list->isExport() && !$kp_lab_ot_det->CurrentAction) { ?>
<form name="fkp_lab_ot_detlistsrch" id="fkp_lab_ot_detlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="fkp_lab_ot_detlistsrch-search-panel" class="<?php echo $kp_lab_ot_det_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="kp_lab_ot_det">
	<div class="ew-extended-search">
<div id="xsr_<?php echo $kp_lab_ot_det_list->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo Config("TABLE_BASIC_SEARCH") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH") ?>" class="form-control" value="<?php echo HtmlEncode($kp_lab_ot_det_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" value="<?php echo HtmlEncode($kp_lab_ot_det_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $kp_lab_ot_det_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($kp_lab_ot_det_list->BasicSearch->getType() == "") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this);"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($kp_lab_ot_det_list->BasicSearch->getType() == "=") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, '=');"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($kp_lab_ot_det_list->BasicSearch->getType() == "AND") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'AND');"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($kp_lab_ot_det_list->BasicSearch->getType() == "OR") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'OR');"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $kp_lab_ot_det_list->showPageHeader(); ?>
<?php
$kp_lab_ot_det_list->showMessage();
?>
<?php if ($kp_lab_ot_det_list->TotalRecords > 0 || $kp_lab_ot_det->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($kp_lab_ot_det_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> kp_lab_ot_det">
<form name="fkp_lab_ot_detlist" id="fkp_lab_ot_detlist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($Page->CheckToken) { ?>
<input type="hidden" name="<?php echo Config("TOKEN_NAME") ?>" value="<?php echo $Page->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="kp_lab_ot_det">
<div id="gmp_kp_lab_ot_det" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($kp_lab_ot_det_list->TotalRecords > 0 || $kp_lab_ot_det_list->isGridEdit()) { ?>
<table id="tbl_kp_lab_ot_detlist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$kp_lab_ot_det->RowType = ROWTYPE_HEADER;

// Render list options
$kp_lab_ot_det_list->renderListOptions();

// Render list options (header, left)
$kp_lab_ot_det_list->ListOptions->render("header", "left");
?>
<?php if ($kp_lab_ot_det_list->id_reg->Visible) { // id_reg ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->id_reg) == "") { ?>
		<th data-name="id_reg" class="<?php echo $kp_lab_ot_det_list->id_reg->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_id_reg" class="kp_lab_ot_det_id_reg"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->id_reg->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id_reg" class="<?php echo $kp_lab_ot_det_list->id_reg->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->id_reg) ?>', 1);"><div id="elh_kp_lab_ot_det_id_reg" class="kp_lab_ot_det_id_reg">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->id_reg->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->id_reg->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->id_reg->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->idempresa->Visible) { // idempresa ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->idempresa) == "") { ?>
		<th data-name="idempresa" class="<?php echo $kp_lab_ot_det_list->idempresa->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_idempresa" class="kp_lab_ot_det_idempresa"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->idempresa->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="idempresa" class="<?php echo $kp_lab_ot_det_list->idempresa->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->idempresa) ?>', 1);"><div id="elh_kp_lab_ot_det_idempresa" class="kp_lab_ot_det_idempresa">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->idempresa->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->idempresa->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->idempresa->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->numero->Visible) { // numero ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->numero) == "") { ?>
		<th data-name="numero" class="<?php echo $kp_lab_ot_det_list->numero->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_numero" class="kp_lab_ot_det_numero"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->numero->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="numero" class="<?php echo $kp_lab_ot_det_list->numero->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->numero) ?>', 1);"><div id="elh_kp_lab_ot_det_numero" class="kp_lab_ot_det_numero">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->numero->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->numero->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->numero->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->idarticuloemp->Visible) { // idarticuloemp ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->idarticuloemp) == "") { ?>
		<th data-name="idarticuloemp" class="<?php echo $kp_lab_ot_det_list->idarticuloemp->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_idarticuloemp" class="kp_lab_ot_det_idarticuloemp"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->idarticuloemp->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="idarticuloemp" class="<?php echo $kp_lab_ot_det_list->idarticuloemp->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->idarticuloemp) ?>', 1);"><div id="elh_kp_lab_ot_det_idarticuloemp" class="kp_lab_ot_det_idarticuloemp">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->idarticuloemp->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->idarticuloemp->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->idarticuloemp->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->numcantidad->Visible) { // numcantidad ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->numcantidad) == "") { ?>
		<th data-name="numcantidad" class="<?php echo $kp_lab_ot_det_list->numcantidad->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_numcantidad" class="kp_lab_ot_det_numcantidad"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->numcantidad->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="numcantidad" class="<?php echo $kp_lab_ot_det_list->numcantidad->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->numcantidad) ?>', 1);"><div id="elh_kp_lab_ot_det_numcantidad" class="kp_lab_ot_det_numcantidad">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->numcantidad->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->numcantidad->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->numcantidad->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->codlote->Visible) { // codlote ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->codlote) == "") { ?>
		<th data-name="codlote" class="<?php echo $kp_lab_ot_det_list->codlote->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_codlote" class="kp_lab_ot_det_codlote"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->codlote->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="codlote" class="<?php echo $kp_lab_ot_det_list->codlote->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->codlote) ?>', 1);"><div id="elh_kp_lab_ot_det_codlote" class="kp_lab_ot_det_codlote">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->codlote->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->codlote->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->codlote->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->comentariodet->Visible) { // comentariodet ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->comentariodet) == "") { ?>
		<th data-name="comentariodet" class="<?php echo $kp_lab_ot_det_list->comentariodet->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_comentariodet" class="kp_lab_ot_det_comentariodet"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->comentariodet->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="comentariodet" class="<?php echo $kp_lab_ot_det_list->comentariodet->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->comentariodet) ?>', 1);"><div id="elh_kp_lab_ot_det_comentariodet" class="kp_lab_ot_det_comentariodet">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->comentariodet->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->comentariodet->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->comentariodet->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->fechavencimiento->Visible) { // fechavencimiento ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechavencimiento) == "") { ?>
		<th data-name="fechavencimiento" class="<?php echo $kp_lab_ot_det_list->fechavencimiento->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_fechavencimiento" class="kp_lab_ot_det_fechavencimiento"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechavencimiento->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="fechavencimiento" class="<?php echo $kp_lab_ot_det_list->fechavencimiento->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechavencimiento) ?>', 1);"><div id="elh_kp_lab_ot_det_fechavencimiento" class="kp_lab_ot_det_fechavencimiento">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechavencimiento->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->fechavencimiento->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->fechavencimiento->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->codproveedor->Visible) { // codproveedor ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->codproveedor) == "") { ?>
		<th data-name="codproveedor" class="<?php echo $kp_lab_ot_det_list->codproveedor->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_codproveedor" class="kp_lab_ot_det_codproveedor"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->codproveedor->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="codproveedor" class="<?php echo $kp_lab_ot_det_list->codproveedor->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->codproveedor) ?>', 1);"><div id="elh_kp_lab_ot_det_codproveedor" class="kp_lab_ot_det_codproveedor">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->codproveedor->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->codproveedor->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->codproveedor->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->fechaemision->Visible) { // fechaemision ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechaemision) == "") { ?>
		<th data-name="fechaemision" class="<?php echo $kp_lab_ot_det_list->fechaemision->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_fechaemision" class="kp_lab_ot_det_fechaemision"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechaemision->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="fechaemision" class="<?php echo $kp_lab_ot_det_list->fechaemision->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechaemision) ?>', 1);"><div id="elh_kp_lab_ot_det_fechaemision" class="kp_lab_ot_det_fechaemision">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechaemision->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->fechaemision->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->fechaemision->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->fechaentrega->Visible) { // fechaentrega ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechaentrega) == "") { ?>
		<th data-name="fechaentrega" class="<?php echo $kp_lab_ot_det_list->fechaentrega->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_fechaentrega" class="kp_lab_ot_det_fechaentrega"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechaentrega->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="fechaentrega" class="<?php echo $kp_lab_ot_det_list->fechaentrega->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fechaentrega) ?>', 1);"><div id="elh_kp_lab_ot_det_fechaentrega" class="kp_lab_ot_det_fechaentrega">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fechaentrega->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->fechaentrega->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->fechaentrega->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->comentarioesp->Visible) { // comentarioesp ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->comentarioesp) == "") { ?>
		<th data-name="comentarioesp" class="<?php echo $kp_lab_ot_det_list->comentarioesp->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_comentarioesp" class="kp_lab_ot_det_comentarioesp"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->comentarioesp->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="comentarioesp" class="<?php echo $kp_lab_ot_det_list->comentarioesp->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->comentarioesp) ?>', 1);"><div id="elh_kp_lab_ot_det_comentarioesp" class="kp_lab_ot_det_comentarioesp">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->comentarioesp->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->comentarioesp->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->comentarioesp->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->tipo_registro->Visible) { // tipo_registro ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->tipo_registro) == "") { ?>
		<th data-name="tipo_registro" class="<?php echo $kp_lab_ot_det_list->tipo_registro->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_tipo_registro" class="kp_lab_ot_det_tipo_registro"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->tipo_registro->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="tipo_registro" class="<?php echo $kp_lab_ot_det_list->tipo_registro->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->tipo_registro) ?>', 1);"><div id="elh_kp_lab_ot_det_tipo_registro" class="kp_lab_ot_det_tipo_registro">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->tipo_registro->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->tipo_registro->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->tipo_registro->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->destinatario->Visible) { // destinatario ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->destinatario) == "") { ?>
		<th data-name="destinatario" class="<?php echo $kp_lab_ot_det_list->destinatario->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_destinatario" class="kp_lab_ot_det_destinatario"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->destinatario->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="destinatario" class="<?php echo $kp_lab_ot_det_list->destinatario->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->destinatario) ?>', 1);"><div id="elh_kp_lab_ot_det_destinatario" class="kp_lab_ot_det_destinatario">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->destinatario->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->destinatario->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->destinatario->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($kp_lab_ot_det_list->fecha_reg->Visible) { // fecha_reg ?>
	<?php if ($kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fecha_reg) == "") { ?>
		<th data-name="fecha_reg" class="<?php echo $kp_lab_ot_det_list->fecha_reg->headerCellClass() ?>"><div id="elh_kp_lab_ot_det_fecha_reg" class="kp_lab_ot_det_fecha_reg"><div class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fecha_reg->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="fecha_reg" class="<?php echo $kp_lab_ot_det_list->fecha_reg->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $kp_lab_ot_det_list->SortUrl($kp_lab_ot_det_list->fecha_reg) ?>', 1);"><div id="elh_kp_lab_ot_det_fecha_reg" class="kp_lab_ot_det_fecha_reg">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $kp_lab_ot_det_list->fecha_reg->caption() ?></span><span class="ew-table-header-sort"><?php if ($kp_lab_ot_det_list->fecha_reg->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($kp_lab_ot_det_list->fecha_reg->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$kp_lab_ot_det_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($kp_lab_ot_det_list->ExportAll && $kp_lab_ot_det_list->isExport()) {
	$kp_lab_ot_det_list->StopRecord = $kp_lab_ot_det_list->TotalRecords;
} else {

	// Set the last record to display
	if ($kp_lab_ot_det_list->TotalRecords > $kp_lab_ot_det_list->StartRecord + $kp_lab_ot_det_list->DisplayRecords - 1)
		$kp_lab_ot_det_list->StopRecord = $kp_lab_ot_det_list->StartRecord + $kp_lab_ot_det_list->DisplayRecords - 1;
	else
		$kp_lab_ot_det_list->StopRecord = $kp_lab_ot_det_list->TotalRecords;
}
$kp_lab_ot_det_list->RecordCount = $kp_lab_ot_det_list->StartRecord - 1;
if ($kp_lab_ot_det_list->Recordset && !$kp_lab_ot_det_list->Recordset->EOF) {
	$kp_lab_ot_det_list->Recordset->moveFirst();
	$selectLimit = $kp_lab_ot_det_list->UseSelectLimit;
	if (!$selectLimit && $kp_lab_ot_det_list->StartRecord > 1)
		$kp_lab_ot_det_list->Recordset->move($kp_lab_ot_det_list->StartRecord - 1);
} elseif (!$kp_lab_ot_det->AllowAddDeleteRow && $kp_lab_ot_det_list->StopRecord == 0) {
	$kp_lab_ot_det_list->StopRecord = $kp_lab_ot_det->GridAddRowCount;
}

// Initialize aggregate
$kp_lab_ot_det->RowType = ROWTYPE_AGGREGATEINIT;
$kp_lab_ot_det->resetAttributes();
$kp_lab_ot_det_list->renderRow();
while ($kp_lab_ot_det_list->RecordCount < $kp_lab_ot_det_list->StopRecord) {
	$kp_lab_ot_det_list->RecordCount++;
	if ($kp_lab_ot_det_list->RecordCount >= $kp_lab_ot_det_list->StartRecord) {
		$kp_lab_ot_det_list->RowCount++;

		// Set up key count
		$kp_lab_ot_det_list->KeyCount = $kp_lab_ot_det_list->RowIndex;

		// Init row class and style
		$kp_lab_ot_det->resetAttributes();
		$kp_lab_ot_det->CssClass = "";
		if ($kp_lab_ot_det_list->isGridAdd()) {
		} else {
			$kp_lab_ot_det_list->loadRowValues($kp_lab_ot_det_list->Recordset); // Load row values
		}
		$kp_lab_ot_det->RowType = ROWTYPE_VIEW; // Render view

		// Set up row id / data-rowindex
		$kp_lab_ot_det->RowAttrs->merge(["data-rowindex" => $kp_lab_ot_det_list->RowCount, "id" => "r" . $kp_lab_ot_det_list->RowCount . "_kp_lab_ot_det", "data-rowtype" => $kp_lab_ot_det->RowType]);

		// Render row
		$kp_lab_ot_det_list->renderRow();

		// Render list options
		$kp_lab_ot_det_list->renderListOptions();
?>
	<tr <?php echo $kp_lab_ot_det->rowAttributes() ?>>
<?php

// Render list options (body, left)
$kp_lab_ot_det_list->ListOptions->render("body", "left", $kp_lab_ot_det_list->RowCount);
?>
	<?php if ($kp_lab_ot_det_list->id_reg->Visible) { // id_reg ?>
		<td data-name="id_reg" <?php echo $kp_lab_ot_det_list->id_reg->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_id_reg" class="kp_lab_ot_det_id_reg">
<span<?php echo $kp_lab_ot_det_list->id_reg->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->id_reg->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->idempresa->Visible) { // idempresa ?>
		<td data-name="idempresa" <?php echo $kp_lab_ot_det_list->idempresa->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_idempresa" class="kp_lab_ot_det_idempresa">
<span<?php echo $kp_lab_ot_det_list->idempresa->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->idempresa->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->numero->Visible) { // numero ?>
		<td data-name="numero" <?php echo $kp_lab_ot_det_list->numero->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_numero" class="kp_lab_ot_det_numero">
<span<?php echo $kp_lab_ot_det_list->numero->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->numero->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->idarticuloemp->Visible) { // idarticuloemp ?>
		<td data-name="idarticuloemp" <?php echo $kp_lab_ot_det_list->idarticuloemp->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_idarticuloemp" class="kp_lab_ot_det_idarticuloemp">
<span<?php echo $kp_lab_ot_det_list->idarticuloemp->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->idarticuloemp->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->numcantidad->Visible) { // numcantidad ?>
		<td data-name="numcantidad" <?php echo $kp_lab_ot_det_list->numcantidad->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_numcantidad" class="kp_lab_ot_det_numcantidad">
<span<?php echo $kp_lab_ot_det_list->numcantidad->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->numcantidad->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->codlote->Visible) { // codlote ?>
		<td data-name="codlote" <?php echo $kp_lab_ot_det_list->codlote->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_codlote" class="kp_lab_ot_det_codlote">
<span<?php echo $kp_lab_ot_det_list->codlote->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->codlote->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->comentariodet->Visible) { // comentariodet ?>
		<td data-name="comentariodet" <?php echo $kp_lab_ot_det_list->comentariodet->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_comentariodet" class="kp_lab_ot_det_comentariodet">
<span<?php echo $kp_lab_ot_det_list->comentariodet->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->comentariodet->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->fechavencimiento->Visible) { // fechavencimiento ?>
		<td data-name="fechavencimiento" <?php echo $kp_lab_ot_det_list->fechavencimiento->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_fechavencimiento" class="kp_lab_ot_det_fechavencimiento">
<span<?php echo $kp_lab_ot_det_list->fechavencimiento->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->fechavencimiento->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->codproveedor->Visible) { // codproveedor ?>
		<td data-name="codproveedor" <?php echo $kp_lab_ot_det_list->codproveedor->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_codproveedor" class="kp_lab_ot_det_codproveedor">
<span<?php echo $kp_lab_ot_det_list->codproveedor->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->codproveedor->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->fechaemision->Visible) { // fechaemision ?>
		<td data-name="fechaemision" <?php echo $kp_lab_ot_det_list->fechaemision->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_fechaemision" class="kp_lab_ot_det_fechaemision">
<span<?php echo $kp_lab_ot_det_list->fechaemision->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->fechaemision->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->fechaentrega->Visible) { // fechaentrega ?>
		<td data-name="fechaentrega" <?php echo $kp_lab_ot_det_list->fechaentrega->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_fechaentrega" class="kp_lab_ot_det_fechaentrega">
<span<?php echo $kp_lab_ot_det_list->fechaentrega->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->fechaentrega->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->comentarioesp->Visible) { // comentarioesp ?>
		<td data-name="comentarioesp" <?php echo $kp_lab_ot_det_list->comentarioesp->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_comentarioesp" class="kp_lab_ot_det_comentarioesp">
<span<?php echo $kp_lab_ot_det_list->comentarioesp->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->comentarioesp->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->tipo_registro->Visible) { // tipo_registro ?>
		<td data-name="tipo_registro" <?php echo $kp_lab_ot_det_list->tipo_registro->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_tipo_registro" class="kp_lab_ot_det_tipo_registro">
<span<?php echo $kp_lab_ot_det_list->tipo_registro->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->tipo_registro->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->destinatario->Visible) { // destinatario ?>
		<td data-name="destinatario" <?php echo $kp_lab_ot_det_list->destinatario->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_destinatario" class="kp_lab_ot_det_destinatario">
<span<?php echo $kp_lab_ot_det_list->destinatario->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->destinatario->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($kp_lab_ot_det_list->fecha_reg->Visible) { // fecha_reg ?>
		<td data-name="fecha_reg" <?php echo $kp_lab_ot_det_list->fecha_reg->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_det_list->RowCount ?>_kp_lab_ot_det_fecha_reg" class="kp_lab_ot_det_fecha_reg">
<span<?php echo $kp_lab_ot_det_list->fecha_reg->viewAttributes() ?>><?php echo $kp_lab_ot_det_list->fecha_reg->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$kp_lab_ot_det_list->ListOptions->render("body", "right", $kp_lab_ot_det_list->RowCount);
?>
	</tr>
<?php
	}
	if (!$kp_lab_ot_det_list->isGridAdd())
		$kp_lab_ot_det_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if (!$kp_lab_ot_det->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($kp_lab_ot_det_list->Recordset)
	$kp_lab_ot_det_list->Recordset->Close();
?>
<?php if (!$kp_lab_ot_det_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$kp_lab_ot_det_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $kp_lab_ot_det_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $kp_lab_ot_det_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($kp_lab_ot_det_list->TotalRecords == 0 && !$kp_lab_ot_det->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $kp_lab_ot_det_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$kp_lab_ot_det_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$kp_lab_ot_det_list->isExport()) { ?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php } ?>
<?php include_once "footer.php"; ?>
<?php
$kp_lab_ot_det_list->terminate();
?>