<?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_add = new bkp_master_articulos_add();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "add";
	fbkp_master_articulosadd = currentForm = new ew.Form("fbkp_master_articulosadd", "add");

	// Validate form
	fbkp_master_articulosadd.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_add->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_add->idempresa->caption(), $bkp_master_articulos_add->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_add->idempresa->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->idarticuloemp->caption(), $bkp_master_articulos_add->idarticuloemp->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->codproveedor->caption(), $bkp_master_articulos_add->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_add->codproveedor->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->estado->caption(), $bkp_master_articulos_add->estado->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->coddum->caption(), $bkp_master_articulos_add->coddum->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->descripcion->caption(), $bkp_master_articulos_add->descripcion->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->descripcioncorta->caption(), $bkp_master_articulos_add->descripcioncorta->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->idcategoria->caption(), $bkp_master_articulos_add->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_add->idcategoria->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->articuloaltura->caption(), $bkp_master_articulos_add->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_add->articuloaltura->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->articuloancho->caption(), $bkp_master_articulos_add->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_add->articuloancho->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->articulolargo->caption(), $bkp_master_articulos_add->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_add->articulolargo->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->articulopeso->caption(), $bkp_master_articulos_add->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_add->articulopeso->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->articulocosto->caption(), $bkp_master_articulos_add->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_add->articulocosto->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->cajaaltura->caption(), $bkp_master_articulos_add->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_add->cajaaltura->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->cajaancho->caption(), $bkp_master_articulos_add->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_add->cajaancho->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->cajalargo->caption(), $bkp_master_articulos_add->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_add->cajalargo->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->cajapeso->caption(), $bkp_master_articulos_add->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_add->cajapeso->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->numpiezas->caption(), $bkp_master_articulos_add->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_add->numpiezas->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->unidadcaja->caption(), $bkp_master_articulos_add->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_add->unidadcaja->errorMessage()) ?>");
			<?php if ($bkp_master_articulos_add->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_add->diasventa->caption(), $bkp_master_articulos_add->diasventa->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($bkp_master_articulos_add->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_add->fecha_reg->caption(), $bkp_master_articulos_add->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_add->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_articulosadd.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_articulosadd.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $bkp_master_articulos_add->showPageHeader(); ?>
<?php
$bkp_master_articulos_add->showMessage();
?>
<form name="fbkp_master_articulosadd" id="fbkp_master_articulosadd" class="<?php echo $bkp_master_articulos_add->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="insert">
<input type="hidden" name="modal" value="<?php echo (int)$bkp_master_articulos_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->idempresa->caption() ?><?php echo $bkp_master_articulos_add->idempresa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->idempresa->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->idempresa->EditValue ?>"<?php echo $bkp_master_articulos_add->idempresa->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->idempresa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->idarticuloemp->caption() ?><?php echo $bkp_master_articulos_add->idarticuloemp->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->idarticuloemp->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->idarticuloemp->EditValue ?>"<?php echo $bkp_master_articulos_add->idarticuloemp->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->idarticuloemp->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->codproveedor->caption() ?><?php echo $bkp_master_articulos_add->codproveedor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->codproveedor->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->codproveedor->EditValue ?>"<?php echo $bkp_master_articulos_add->codproveedor->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->codproveedor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->estado->caption() ?><?php echo $bkp_master_articulos_add->estado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->estado->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->estado->EditValue ?>"<?php echo $bkp_master_articulos_add->estado->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->estado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->coddum->caption() ?><?php echo $bkp_master_articulos_add->coddum->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->coddum->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->coddum->EditValue ?>"<?php echo $bkp_master_articulos_add->coddum->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->coddum->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->descripcion->caption() ?><?php echo $bkp_master_articulos_add->descripcion->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->descripcion->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->descripcion->EditValue ?>"<?php echo $bkp_master_articulos_add->descripcion->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->descripcion->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->descripcioncorta->caption() ?><?php echo $bkp_master_articulos_add->descripcioncorta->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->descripcioncorta->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->descripcioncorta->EditValue ?>"<?php echo $bkp_master_articulos_add->descripcioncorta->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->descripcioncorta->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->idcategoria->caption() ?><?php echo $bkp_master_articulos_add->idcategoria->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->idcategoria->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->idcategoria->EditValue ?>"<?php echo $bkp_master_articulos_add->idcategoria->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->idcategoria->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->articuloaltura->caption() ?><?php echo $bkp_master_articulos_add->articuloaltura->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->articuloaltura->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->articuloaltura->EditValue ?>"<?php echo $bkp_master_articulos_add->articuloaltura->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->articuloaltura->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->articuloancho->caption() ?><?php echo $bkp_master_articulos_add->articuloancho->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->articuloancho->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->articuloancho->EditValue ?>"<?php echo $bkp_master_articulos_add->articuloancho->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->articuloancho->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->articulolargo->caption() ?><?php echo $bkp_master_articulos_add->articulolargo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->articulolargo->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->articulolargo->EditValue ?>"<?php echo $bkp_master_articulos_add->articulolargo->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->articulolargo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->articulopeso->caption() ?><?php echo $bkp_master_articulos_add->articulopeso->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->articulopeso->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->articulopeso->EditValue ?>"<?php echo $bkp_master_articulos_add->articulopeso->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->articulopeso->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->articulocosto->caption() ?><?php echo $bkp_master_articulos_add->articulocosto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->articulocosto->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->articulocosto->EditValue ?>"<?php echo $bkp_master_articulos_add->articulocosto->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->articulocosto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->cajaaltura->caption() ?><?php echo $bkp_master_articulos_add->cajaaltura->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->cajaaltura->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->cajaaltura->EditValue ?>"<?php echo $bkp_master_articulos_add->cajaaltura->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->cajaaltura->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->cajaancho->caption() ?><?php echo $bkp_master_articulos_add->cajaancho->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->cajaancho->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->cajaancho->EditValue ?>"<?php echo $bkp_master_articulos_add->cajaancho->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->cajaancho->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->cajalargo->caption() ?><?php echo $bkp_master_articulos_add->cajalargo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->cajalargo->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->cajalargo->EditValue ?>"<?php echo $bkp_master_articulos_add->cajalargo->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->cajalargo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->cajapeso->caption() ?><?php echo $bkp_master_articulos_add->cajapeso->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->cajapeso->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->cajapeso->EditValue ?>"<?php echo $bkp_master_articulos_add->cajapeso->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->cajapeso->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->numpiezas->caption() ?><?php echo $bkp_master_articulos_add->numpiezas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->numpiezas->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->numpiezas->EditValue ?>"<?php echo $bkp_master_articulos_add->numpiezas->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->numpiezas->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->unidadcaja->caption() ?><?php echo $bkp_master_articulos_add->unidadcaja->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->unidadcaja->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->unidadcaja->EditValue ?>"<?php echo $bkp_master_articulos_add->unidadcaja->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->unidadcaja->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->diasventa->caption() ?><?php echo $bkp_master_articulos_add->diasventa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->diasventa->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->diasventa->EditValue ?>"<?php echo $bkp_master_articulos_add->diasventa->editAttributes() ?>>
</span>
<?php echo $bkp_master_articulos_add->diasventa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($bkp_master_articulos_add->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_add->LeftColumnClass ?>"><?php echo $bkp_master_articulos_add->fecha_reg->caption() ?><?php echo $bkp_master_articulos_add->fecha_reg->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $bkp_master_articulos_add->RightColumnClass ?>"><div <?php echo $bkp_master_articulos_add->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_add->fecha_reg->getPlaceHolder()) ?>" value="<?php echo $bkp_master_articulos_add->fecha_reg->EditValue ?>"<?php echo $bkp_master_articulos_add->fecha_reg->editAttributes() ?>>
<?php if (!$bkp_master_articulos_add->fecha_reg->ReadOnly && !$bkp_master_articulos_add->fecha_reg->Disabled && !isset($bkp_master_articulos_add->fecha_reg->EditAttrs["readonly"]) && !isset($bkp_master_articulos_add->fecha_reg->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fbkp_master_articulosadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fbkp_master_articulosadd", "x_fecha_reg", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $bkp_master_articulos_add->fecha_reg->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$bkp_master_articulos_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $bkp_master_articulos_add->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $bkp_master_articulos_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$bkp_master_articulos_add->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_add->terminate();
?>