<?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
$bkp_master_articulos_edit = new bkp_master_articulos_edit();

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

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

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

// Page Rendering event
$bkp_master_articulos_edit->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var fbkp_master_articulosedit, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "edit";
	fbkp_master_articulosedit = currentForm = new ew.Form("fbkp_master_articulosedit", "edit");

	// Validate form
	fbkp_master_articulosedit.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "F")
			return true;
		var elm, felm, uelm, addcnt = 0;
		var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
		var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
		var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
		var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
		for (var i = startcnt; i <= rowcnt; i++) {
			var infix = ($k[0]) ? String(i) : "";
			$fobj.data("rowindex", infix);
			<?php if ($bkp_master_articulos_edit->id_reg->Required) { ?>
				elm = this.getElements("x" + infix + "_id_reg");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->id_reg->caption(), $bkp_master_articulos_edit->id_reg->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->idempresa->Required) { ?>
				elm = this.getElements("x" + infix + "_idempresa");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->idempresa->caption(), $bkp_master_articulos_edit->idempresa->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_idempresa");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->idempresa->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->idarticuloemp->Required) { ?>
				elm = this.getElements("x" + infix + "_idarticuloemp");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->idarticuloemp->caption(), $bkp_master_articulos_edit->idarticuloemp->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->codproveedor->Required) { ?>
				elm = this.getElements("x" + infix + "_codproveedor");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->codproveedor->caption(), $bkp_master_articulos_edit->codproveedor->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_codproveedor");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->codproveedor->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->estado->Required) { ?>
				elm = this.getElements("x" + infix + "_estado");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->estado->caption(), $bkp_master_articulos_edit->estado->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->coddum->Required) { ?>
				elm = this.getElements("x" + infix + "_coddum");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->coddum->caption(), $bkp_master_articulos_edit->coddum->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->descripcion->Required) { ?>
				elm = this.getElements("x" + infix + "_descripcion");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->descripcion->caption(), $bkp_master_articulos_edit->descripcion->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->descripcioncorta->Required) { ?>
				elm = this.getElements("x" + infix + "_descripcioncorta");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->descripcioncorta->caption(), $bkp_master_articulos_edit->descripcioncorta->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->idcategoria->Required) { ?>
				elm = this.getElements("x" + infix + "_idcategoria");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->idcategoria->caption(), $bkp_master_articulos_edit->idcategoria->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_idcategoria");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->idcategoria->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->articuloaltura->Required) { ?>
				elm = this.getElements("x" + infix + "_articuloaltura");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->articuloaltura->caption(), $bkp_master_articulos_edit->articuloaltura->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_articuloaltura");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->articuloaltura->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->articuloancho->Required) { ?>
				elm = this.getElements("x" + infix + "_articuloancho");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->articuloancho->caption(), $bkp_master_articulos_edit->articuloancho->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_articuloancho");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->articuloancho->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->articulolargo->Required) { ?>
				elm = this.getElements("x" + infix + "_articulolargo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->articulolargo->caption(), $bkp_master_articulos_edit->articulolargo->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_articulolargo");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->articulolargo->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->articulopeso->Required) { ?>
				elm = this.getElements("x" + infix + "_articulopeso");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->articulopeso->caption(), $bkp_master_articulos_edit->articulopeso->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_articulopeso");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->articulopeso->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->articulocosto->Required) { ?>
				elm = this.getElements("x" + infix + "_articulocosto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->articulocosto->caption(), $bkp_master_articulos_edit->articulocosto->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_articulocosto");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->articulocosto->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->cajaaltura->Required) { ?>
				elm = this.getElements("x" + infix + "_cajaaltura");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->cajaaltura->caption(), $bkp_master_articulos_edit->cajaaltura->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cajaaltura");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->cajaaltura->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->cajaancho->Required) { ?>
				elm = this.getElements("x" + infix + "_cajaancho");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->cajaancho->caption(), $bkp_master_articulos_edit->cajaancho->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cajaancho");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->cajaancho->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->cajalargo->Required) { ?>
				elm = this.getElements("x" + infix + "_cajalargo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->cajalargo->caption(), $bkp_master_articulos_edit->cajalargo->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cajalargo");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->cajalargo->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->cajapeso->Required) { ?>
				elm = this.getElements("x" + infix + "_cajapeso");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->cajapeso->caption(), $bkp_master_articulos_edit->cajapeso->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cajapeso");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->cajapeso->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->numpiezas->Required) { ?>
				elm = this.getElements("x" + infix + "_numpiezas");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->numpiezas->caption(), $bkp_master_articulos_edit->numpiezas->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_numpiezas");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->numpiezas->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->unidadcaja->Required) { ?>
				elm = this.getElements("x" + infix + "_unidadcaja");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->unidadcaja->caption(), $bkp_master_articulos_edit->unidadcaja->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_unidadcaja");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->unidadcaja->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_edit->diasventa->Required) { ?>
				elm = this.getElements("x" + infix + "_diasventa");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->diasventa->caption(), $bkp_master_articulos_edit->diasventa->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_edit->fecha_reg->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha_reg");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $bkp_master_articulos_edit->fecha_reg->caption(), $bkp_master_articulos_edit->fecha_reg->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha_reg");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($bkp_master_articulos_edit->fecha_reg->errorMessage()) ?>");

				// Call Form_CustomValidate event
				if (!this.Form_CustomValidate(fobj))
					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;
			if (val && ew.forms[val])
				if (!ew.forms[val].validate())
					return false;
		}
		return true;
	}

	// Form_CustomValidate
	fbkp_master_articulosedit.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!

		// Your custom validation code here, return false if invalid.
		return true;
	}

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

	// Dynamic selection lists
	loadjs.done("fbkp_master_articulosedit");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $bkp_master_articulos_edit->showPageHeader(); ?>
<?php
$bkp_master_articulos_edit->showMessage();
?>
<form name="fbkp_master_articulosedit" id="fbkp_master_articulosedit" class="<?php echo $bkp_master_articulos_edit->FormClassName ?>" 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="bkp_master_articulos">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$bkp_master_articulos_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($bkp_master_articulos_edit->id_reg->Visible) { // id_reg ?>
	<div id="r_id_reg" class="form-group row">
		<label id="elh_bkp_master_articulos_id_reg" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->id_reg->caption() ?><?php echo $bkp_master_articulos_edit->id_reg->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->id_reg->cellAttributes() ?>>
<span id="el_bkp_master_articulos_id_reg">
<span<?php echo $bkp_master_articulos_edit->id_reg->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($bkp_master_articulos_edit->id_reg->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="bkp_master_articulos" data-field="x_id_reg" name="x_id_reg" id="x_id_reg" value="<?php echo HtmlEncode($bkp_master_articulos_edit->id_reg->CurrentValue) ?>">
<?php echo $bkp_master_articulos_edit->id_reg->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->idempresa->Visible) { // idempresa ?>
	<div id="r_idempresa" class="form-group row">
		<label id="elh_bkp_master_articulos_idempresa" for="x_idempresa" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->idempresa->caption() ?><?php echo $bkp_master_articulos_edit->idempresa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->idempresa->cellAttributes() ?>>
<span id="el_bkp_master_articulos_idempresa">
<input type="text" data-table="bkp_master_articulos" data-field="x_idempresa" name="x_idempresa" id="x_idempresa" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->idempresa->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->idempresa->EditValue ?>"<?php echo $bkp_master_articulos_edit->idempresa->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->idempresa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->idarticuloemp->Visible) { // idarticuloemp ?>
	<div id="r_idarticuloemp" class="form-group row">
		<label id="elh_bkp_master_articulos_idarticuloemp" for="x_idarticuloemp" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->idarticuloemp->caption() ?><?php echo $bkp_master_articulos_edit->idarticuloemp->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->idarticuloemp->cellAttributes() ?>>
<span id="el_bkp_master_articulos_idarticuloemp">
<input type="text" data-table="bkp_master_articulos" data-field="x_idarticuloemp" name="x_idarticuloemp" id="x_idarticuloemp" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->idarticuloemp->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->idarticuloemp->EditValue ?>"<?php echo $bkp_master_articulos_edit->idarticuloemp->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->idarticuloemp->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->codproveedor->Visible) { // codproveedor ?>
	<div id="r_codproveedor" class="form-group row">
		<label id="elh_bkp_master_articulos_codproveedor" for="x_codproveedor" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->codproveedor->caption() ?><?php echo $bkp_master_articulos_edit->codproveedor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->codproveedor->cellAttributes() ?>>
<span id="el_bkp_master_articulos_codproveedor">
<input type="text" data-table="bkp_master_articulos" data-field="x_codproveedor" name="x_codproveedor" id="x_codproveedor" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->codproveedor->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->codproveedor->EditValue ?>"<?php echo $bkp_master_articulos_edit->codproveedor->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->codproveedor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->estado->Visible) { // estado ?>
	<div id="r_estado" class="form-group row">
		<label id="elh_bkp_master_articulos_estado" for="x_estado" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->estado->caption() ?><?php echo $bkp_master_articulos_edit->estado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->estado->cellAttributes() ?>>
<span id="el_bkp_master_articulos_estado">
<input type="text" data-table="bkp_master_articulos" data-field="x_estado" name="x_estado" id="x_estado" size="30" maxlength="1" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->estado->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->estado->EditValue ?>"<?php echo $bkp_master_articulos_edit->estado->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->estado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->coddum->Visible) { // coddum ?>
	<div id="r_coddum" class="form-group row">
		<label id="elh_bkp_master_articulos_coddum" for="x_coddum" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->coddum->caption() ?><?php echo $bkp_master_articulos_edit->coddum->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->coddum->cellAttributes() ?>>
<span id="el_bkp_master_articulos_coddum">
<input type="text" data-table="bkp_master_articulos" data-field="x_coddum" name="x_coddum" id="x_coddum" size="30" maxlength="25" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->coddum->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->coddum->EditValue ?>"<?php echo $bkp_master_articulos_edit->coddum->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->coddum->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->descripcion->Visible) { // descripcion ?>
	<div id="r_descripcion" class="form-group row">
		<label id="elh_bkp_master_articulos_descripcion" for="x_descripcion" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->descripcion->caption() ?><?php echo $bkp_master_articulos_edit->descripcion->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->descripcion->cellAttributes() ?>>
<span id="el_bkp_master_articulos_descripcion">
<input type="text" data-table="bkp_master_articulos" data-field="x_descripcion" name="x_descripcion" id="x_descripcion" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->descripcion->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->descripcion->EditValue ?>"<?php echo $bkp_master_articulos_edit->descripcion->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->descripcion->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->descripcioncorta->Visible) { // descripcioncorta ?>
	<div id="r_descripcioncorta" class="form-group row">
		<label id="elh_bkp_master_articulos_descripcioncorta" for="x_descripcioncorta" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->descripcioncorta->caption() ?><?php echo $bkp_master_articulos_edit->descripcioncorta->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->descripcioncorta->cellAttributes() ?>>
<span id="el_bkp_master_articulos_descripcioncorta">
<input type="text" data-table="bkp_master_articulos" data-field="x_descripcioncorta" name="x_descripcioncorta" id="x_descripcioncorta" size="30" maxlength="65" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->descripcioncorta->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->descripcioncorta->EditValue ?>"<?php echo $bkp_master_articulos_edit->descripcioncorta->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->descripcioncorta->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->idcategoria->Visible) { // idcategoria ?>
	<div id="r_idcategoria" class="form-group row">
		<label id="elh_bkp_master_articulos_idcategoria" for="x_idcategoria" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->idcategoria->caption() ?><?php echo $bkp_master_articulos_edit->idcategoria->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->idcategoria->cellAttributes() ?>>
<span id="el_bkp_master_articulos_idcategoria">
<input type="text" data-table="bkp_master_articulos" data-field="x_idcategoria" name="x_idcategoria" id="x_idcategoria" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->idcategoria->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->idcategoria->EditValue ?>"<?php echo $bkp_master_articulos_edit->idcategoria->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->idcategoria->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->articuloaltura->Visible) { // articuloaltura ?>
	<div id="r_articuloaltura" class="form-group row">
		<label id="elh_bkp_master_articulos_articuloaltura" for="x_articuloaltura" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->articuloaltura->caption() ?><?php echo $bkp_master_articulos_edit->articuloaltura->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->articuloaltura->cellAttributes() ?>>
<span id="el_bkp_master_articulos_articuloaltura">
<input type="text" data-table="bkp_master_articulos" data-field="x_articuloaltura" name="x_articuloaltura" id="x_articuloaltura" size="30" maxlength="6" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->articuloaltura->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->articuloaltura->EditValue ?>"<?php echo $bkp_master_articulos_edit->articuloaltura->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->articuloaltura->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->articuloancho->Visible) { // articuloancho ?>
	<div id="r_articuloancho" class="form-group row">
		<label id="elh_bkp_master_articulos_articuloancho" for="x_articuloancho" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->articuloancho->caption() ?><?php echo $bkp_master_articulos_edit->articuloancho->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->articuloancho->cellAttributes() ?>>
<span id="el_bkp_master_articulos_articuloancho">
<input type="text" data-table="bkp_master_articulos" data-field="x_articuloancho" name="x_articuloancho" id="x_articuloancho" size="30" maxlength="6" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->articuloancho->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->articuloancho->EditValue ?>"<?php echo $bkp_master_articulos_edit->articuloancho->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->articuloancho->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->articulolargo->Visible) { // articulolargo ?>
	<div id="r_articulolargo" class="form-group row">
		<label id="elh_bkp_master_articulos_articulolargo" for="x_articulolargo" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->articulolargo->caption() ?><?php echo $bkp_master_articulos_edit->articulolargo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->articulolargo->cellAttributes() ?>>
<span id="el_bkp_master_articulos_articulolargo">
<input type="text" data-table="bkp_master_articulos" data-field="x_articulolargo" name="x_articulolargo" id="x_articulolargo" size="30" maxlength="6" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->articulolargo->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->articulolargo->EditValue ?>"<?php echo $bkp_master_articulos_edit->articulolargo->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->articulolargo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->articulopeso->Visible) { // articulopeso ?>
	<div id="r_articulopeso" class="form-group row">
		<label id="elh_bkp_master_articulos_articulopeso" for="x_articulopeso" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->articulopeso->caption() ?><?php echo $bkp_master_articulos_edit->articulopeso->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->articulopeso->cellAttributes() ?>>
<span id="el_bkp_master_articulos_articulopeso">
<input type="text" data-table="bkp_master_articulos" data-field="x_articulopeso" name="x_articulopeso" id="x_articulopeso" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->articulopeso->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->articulopeso->EditValue ?>"<?php echo $bkp_master_articulos_edit->articulopeso->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->articulopeso->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->articulocosto->Visible) { // articulocosto ?>
	<div id="r_articulocosto" class="form-group row">
		<label id="elh_bkp_master_articulos_articulocosto" for="x_articulocosto" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->articulocosto->caption() ?><?php echo $bkp_master_articulos_edit->articulocosto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->articulocosto->cellAttributes() ?>>
<span id="el_bkp_master_articulos_articulocosto">
<input type="text" data-table="bkp_master_articulos" data-field="x_articulocosto" name="x_articulocosto" id="x_articulocosto" size="30" maxlength="6" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->articulocosto->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->articulocosto->EditValue ?>"<?php echo $bkp_master_articulos_edit->articulocosto->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->articulocosto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->cajaaltura->Visible) { // cajaaltura ?>
	<div id="r_cajaaltura" class="form-group row">
		<label id="elh_bkp_master_articulos_cajaaltura" for="x_cajaaltura" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->cajaaltura->caption() ?><?php echo $bkp_master_articulos_edit->cajaaltura->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->cajaaltura->cellAttributes() ?>>
<span id="el_bkp_master_articulos_cajaaltura">
<input type="text" data-table="bkp_master_articulos" data-field="x_cajaaltura" name="x_cajaaltura" id="x_cajaaltura" size="30" maxlength="7" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->cajaaltura->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->cajaaltura->EditValue ?>"<?php echo $bkp_master_articulos_edit->cajaaltura->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->cajaaltura->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->cajaancho->Visible) { // cajaancho ?>
	<div id="r_cajaancho" class="form-group row">
		<label id="elh_bkp_master_articulos_cajaancho" for="x_cajaancho" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->cajaancho->caption() ?><?php echo $bkp_master_articulos_edit->cajaancho->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->cajaancho->cellAttributes() ?>>
<span id="el_bkp_master_articulos_cajaancho">
<input type="text" data-table="bkp_master_articulos" data-field="x_cajaancho" name="x_cajaancho" id="x_cajaancho" size="30" maxlength="7" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->cajaancho->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->cajaancho->EditValue ?>"<?php echo $bkp_master_articulos_edit->cajaancho->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->cajaancho->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->cajalargo->Visible) { // cajalargo ?>
	<div id="r_cajalargo" class="form-group row">
		<label id="elh_bkp_master_articulos_cajalargo" for="x_cajalargo" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->cajalargo->caption() ?><?php echo $bkp_master_articulos_edit->cajalargo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->cajalargo->cellAttributes() ?>>
<span id="el_bkp_master_articulos_cajalargo">
<input type="text" data-table="bkp_master_articulos" data-field="x_cajalargo" name="x_cajalargo" id="x_cajalargo" size="30" maxlength="7" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->cajalargo->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->cajalargo->EditValue ?>"<?php echo $bkp_master_articulos_edit->cajalargo->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->cajalargo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->cajapeso->Visible) { // cajapeso ?>
	<div id="r_cajapeso" class="form-group row">
		<label id="elh_bkp_master_articulos_cajapeso" for="x_cajapeso" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->cajapeso->caption() ?><?php echo $bkp_master_articulos_edit->cajapeso->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->cajapeso->cellAttributes() ?>>
<span id="el_bkp_master_articulos_cajapeso">
<input type="text" data-table="bkp_master_articulos" data-field="x_cajapeso" name="x_cajapeso" id="x_cajapeso" size="30" maxlength="7" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->cajapeso->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->cajapeso->EditValue ?>"<?php echo $bkp_master_articulos_edit->cajapeso->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->cajapeso->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->numpiezas->Visible) { // numpiezas ?>
	<div id="r_numpiezas" class="form-group row">
		<label id="elh_bkp_master_articulos_numpiezas" for="x_numpiezas" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->numpiezas->caption() ?><?php echo $bkp_master_articulos_edit->numpiezas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->numpiezas->cellAttributes() ?>>
<span id="el_bkp_master_articulos_numpiezas">
<input type="text" data-table="bkp_master_articulos" data-field="x_numpiezas" name="x_numpiezas" id="x_numpiezas" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->numpiezas->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->numpiezas->EditValue ?>"<?php echo $bkp_master_articulos_edit->numpiezas->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->numpiezas->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->unidadcaja->Visible) { // unidadcaja ?>
	<div id="r_unidadcaja" class="form-group row">
		<label id="elh_bkp_master_articulos_unidadcaja" for="x_unidadcaja" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->unidadcaja->caption() ?><?php echo $bkp_master_articulos_edit->unidadcaja->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->unidadcaja->cellAttributes() ?>>
<span id="el_bkp_master_articulos_unidadcaja">
<input type="text" data-table="bkp_master_articulos" data-field="x_unidadcaja" name="x_unidadcaja" id="x_unidadcaja" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->unidadcaja->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->unidadcaja->EditValue ?>"<?php echo $bkp_master_articulos_edit->unidadcaja->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->unidadcaja->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->diasventa->Visible) { // diasventa ?>
	<div id="r_diasventa" class="form-group row">
		<label id="elh_bkp_master_articulos_diasventa" for="x_diasventa" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->diasventa->caption() ?><?php echo $bkp_master_articulos_edit->diasventa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->diasventa->cellAttributes() ?>>
<span id="el_bkp_master_articulos_diasventa">
<input type="text" data-table="bkp_master_articulos" data-field="x_diasventa" name="x_diasventa" id="x_diasventa" size="30" maxlength="5" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->diasventa->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->diasventa->EditValue ?>"<?php echo $bkp_master_articulos_edit->diasventa->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_edit->diasventa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_edit->fecha_reg->Visible) { // fecha_reg ?>
	<div id="r_fecha_reg" class="form-group row">
		<label id="elh_bkp_master_articulos_fecha_reg" for="x_fecha_reg" class="<?php echo $bkp_master_articulos_edit->LeftColumnClass ?>"><?php echo $bkp_master_articulos_edit->fecha_reg->caption() ?><?php echo $bkp_master_articulos_edit->fecha_reg->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_edit->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_edit->fecha_reg->cellAttributes() ?>>
<span id="el_bkp_master_articulos_fecha_reg">
<input type="text" data-table="bkp_master_articulos" data-field="x_fecha_reg" name="x_fecha_reg" id="x_fecha_reg" maxlength="19" placeholder="<?php echo HtmlEncode($bkp_master_articulos_edit->fecha_reg->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_edit->fecha_reg->EditValue ?>"<?php echo $bkp_master_articulos_edit->fecha_reg->editAttributes() ?>>
<?php if (!$bkp_master_articulos_edit->fecha_reg->ReadOnly && !$bkp_master_articulos_edit->fecha_reg->Disabled && !isset($bkp_master_articulos_edit->fecha_reg->EditAttrs["readonly"]) && !isset($bkp_master_articulos_edit->fecha_reg->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fbkp_master_articulosedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fbkp_master_articulosedit", "x_fecha_reg", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $bkp_master_articulos_edit->fecha_reg->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$bkp_master_articulos_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $bkp_master_articulos_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $bkp_master_articulos_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$bkp_master_articulos_edit->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

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

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