Beispiel #1
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'rv_modelo');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('Ref', 'id');
     $edit->id->rule = 'max_length[11]';
     $edit->id->size = 13;
     $edit->id->maxlength = 11;
     $edit->id->mode = 'autohide';
     $edit->id->when = array('show', 'modify');
     $edit->id_marca = new dropDownField('Marca', 'id_marca');
     $edit->id_marca->options("SELECT id,descrip FROM rv_marca ORDER BY descrip");
     $edit->descrip = new inputField('Descripcion', 'descrip');
     $edit->descrip->rule = 'max_length[100]';
     $edit->descrip->size = 40;
     $edit->descrip->maxlength = 100;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #2
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'su_conc');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('id', 'id');
     $edit->id->rule = 'max_length[10]';
     $edit->id->size = 12;
     $edit->id->maxlength = 10;
     $edit->id->mode = "autohide";
     $edit->id->when = array('show', 'modify');
     $edit->descrip = new textareaField('Descripcion', 'descrip');
     $edit->descrip->cols = 70;
     $edit->descrip->rows = 4;
     $edit->tipo = new dropdownField('Tipo', 'tipo');
     $edit->tipo->option("E", "Entrada");
     $edit->tipo->option("S", "Salida");
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #3
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'edifubica');
     $edit->back_url = site_url($this->url . 'filteredgrid');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->pre_process('insert', '_pre_insert');
     $edit->pre_process('update', '_pre_update');
     $edit->pre_process('delete', '_pre_delete');
     $edit->id_edif = new dropdownField('Edificación', 'id_edif');
     $edit->id_edif->option('', 'Seleccionar');
     $edit->id_edif->options('SELECT id,TRIM(nombre) AS nombre FROM edif ORDER BY nombre');
     $edit->id_edif->rule = 'max_length[11]';
     $edit->descripcion = new inputField('Descripción', 'descripcion');
     $edit->descripcion->rule = 'max_length[50]';
     $edit->descripcion->size = 52;
     $edit->descripcion->maxlength = 50;
     $edit->buttons('modify', 'save', 'undo', 'delete', 'back', 'add');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = heading($this->t**s);
     $this->load->view('view_ventanas', $data);
 }
Beispiel #4
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $edit = new DataEdit("Cierre Plan de cuenta", "cplacierre");
     $edit->back_url = "contabilidad/cplacierre";
     //		$edit->pre_process('delete','_pre_del');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->cuenta = new inputField("Cuenta", "cuenta");
     $edit->cuenta->rule = "trim|required|existecpla";
     $edit->cuenta->mode = "autohide";
     $edit->cuenta->size = 20;
     $edit->cuenta->maxlength = 15;
     $edit->descrip = new inputField("Descripción", "descrip");
     $edit->descrip->rule = "strtoupper|required";
     $edit->descrip->size = 45;
     $edit->descrip->maxlength = 35;
     $edit->anno = new dateonlyField("Año", "anno", "Y");
     $edit->anno->rule = "strtoupper|required";
     $edit->anno->size = 15;
     $edit->anno->maxlength = 15;
     $edit->monto = new inputField("Monto", "monto");
     $edit->monto->rule = "strtoupper|required";
     $edit->monto->size = 15;
     $edit->monto->maxlength = 15;
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data["head"] = $this->rapyd->get_head();
     $data['title'] = '<h1>Cierre Plan de Cuentas</h1>';
     $this->load->view('view_ventanas', $data);
 }
Beispiel #5
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'casise');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('Referencia', 'id');
     $edit->id->mode = 'autohide';
     $edit->id->when = array('show');
     $edit->ano = new inputField('A&ntilde;o', 'ano');
     $edit->ano->value = $this->datasis->traevalor("EJERCICIO");
     $edit->ano->size = 4;
     $edit->mes = new dropdownField("Mes", 'mes');
     for ($i = 1; $i <= 12; ++$i) {
         $edit->mes->option(str_pad($i, 2, "0", STR_PAD_LEFT), str_pad($i, 2, "0", STR_PAD_LEFT));
     }
     $edit->mes->mode = "autohide";
     $edit->mes->rule = "required";
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #6
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $edit = new DataEdit('Grupos de Gastos', 'grga');
     $edit->back_url = site_url('finanzas/grga/filteredgrid');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->grupo = new inputField("Grupo", "grupo");
     $edit->grupo->mode = "autohide";
     $edit->grupo->size = 6;
     $edit->grupo->rule = "trim|required|callback_chexiste";
     $edit->grupo->maxlength = 5;
     $edit->nom_grup = new inputField("Nombre del Grupo", "nom_grup");
     $edit->nom_grup->size = 35;
     $edit->nom_grup->rule = "trim|required";
     $edit->nom_grup->maxlength = 25;
     $edit->cu_inve = new inputField("Cuenta Contable", "cu_inve");
     $edit->cu_inve->size = 18;
     $edit->cu_inve->maxlength = 15;
     $edit->cu_inve->rule = "trim|callback_chcuentac";
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = "<h1>Grupos de Gastos</h1>";
     $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #7
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'local');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField('C&oacute;digo', 'codigo');
     $edit->codigo->rule = 'trim|max_length[2]|unique|required';
     $edit->codigo->size = 4;
     $edit->codigo->maxlength = 2;
     $edit->codigo->mode = 'autohide';
     $edit->codigo->when = array('create', 'show', 'modify');
     $edit->nombre = new inputField('Nombre', 'nombre');
     $edit->nombre->rule = 'max_length[20]';
     $edit->nombre->size = 22;
     $edit->nombre->maxlength = 20;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #8
0
    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		';
        $edit = new DataEdit("Cargos", "carg");
        $edit->back_url = "nomina/carg/filteredgrid";
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->cargo = new inputField("Cargo", "cargo");
        $edit->cargo->rule = "required|callback_chexiste";
        $edit->cargo->mode = "autohide";
        $edit->cargo->maxlength = 8;
        $edit->cargo->size = 10;
        $edit->descrip = new inputField("Descripci&oacute;n", "descrip");
        $edit->descrip->size = 40;
        $edit->descrip->maxlength = 30;
        $edit->descrip->rule = "strtoupper|required";
        $edit->sueldo = new inputField("Sueldo", "sueldo");
        $edit->sueldo->size = 20;
        $edit->sueldo->rule = "required|callback_positivo";
        $edit->sueldo->css_class = 'inputnum';
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = "<h1>Cargos</h1>";
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
Beispiel #9
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'r_sector');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('Id', 'id');
     $edit->id->rule = 'trim';
     $edit->id->size = 13;
     $edit->id->maxlength = 11;
     $edit->id->mode = 'autohide';
     $edit->id->when = array('show', 'modify');
     $edit->descrip = new inputField('Descrip', 'descrip');
     $edit->descrip->rule = 'trim';
     $edit->descrip->size = 40;
     $edit->descrip->maxlength = 100;
     $edit->monto = new inputField('Monto', 'monto');
     $edit->monto->rule = 'max_length[19]|numeric';
     $edit->monto->css_class = 'inputnum';
     $edit->monto->size = 10;
     $edit->monto->maxlength = 19;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #10
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $qformato = $this->qformato = $this->datasis->formato_cpla();
     $mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'C&oacute;digo', 'descrip' => 'Descripci&oacute;n'), 'filtro' => array('codigo' => 'C&oacute;digo', 'descrip' => 'Descripci&oacute;n'), 'retornar' => array('codigo' => 'cuenta'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"");
     $bcpla = $this->datasis->modbus($mCPLA);
     $edit = new DataEdit("Grupo Menu", "grme");
     $edit->back_url = site_url("hospitalidad/grupomenu/filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->grupo = new inputField("Grupo", "grupo");
     $edit->grupo->rule = "trim|required|callback_chexiste";
     $edit->grupo->size = 8;
     $edit->grupo->maxlength = 5;
     $edit->descri1 = new dropdownField("Descripci&oacute;n", "descri1");
     $edit->descri1->option("", "");
     $edit->descri1->options("SELECT grupo,descri1 FROM grme ORDER BY grupo ");
     $edit->descri1->style = "width:180px";
     $edit->cuenta = new inputField("Cuenta contable", "cuenta");
     $edit->cuenta->rule = 'trim|existecpla';
     $edit->cuenta->append($bcpla);
     $edit->cuenta->size = 20;
     $edit->cuenta->maxlength = 15;
     $edit->observ = new inputField("Observaci&oacute;n", "observ1");
     $edit->observ->rule = 'trim';
     $edit->observ->size = 45;
     $edit->buttons("modify", "save", "undo", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = "<h1>Grupo Menu</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #11
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $edit = new DataEdit("Plan de cuenta", "cpla");
     $edit->back_url = "contabilidad/cpla";
     $edit->pre_process('delete', '_pre_del');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField("C&oacute;digo", "codigo");
     $edit->codigo->rule = "trim|required|callback_chcodigo";
     $edit->codigo->mode = "autohide";
     $edit->codigo->size = 20;
     $edit->codigo->maxlength = 15;
     $edit->descrip = new inputField("Descripci&oacute;n", "descrip");
     $edit->descrip->rule = "strtoupper|required";
     $edit->descrip->size = 45;
     $edit->descrip->maxlength = 35;
     $edit->departa = new dropdownField("Usa departamento", "departa");
     $edit->departa->option("N", "No");
     $edit->departa->option("S", "Si");
     $edit->departa->style = 'width:80px';
     $edit->moneta = new dropdownField("Cuenta Monetaria", "moneta");
     $edit->moneta->option("N", "No");
     $edit->moneta->option("S", "Si");
     $edit->moneta->style = 'width:80px';
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data["head"] = $this->rapyd->get_head();
     $data['title'] = '<h1>Plan de Cuentas</h1>';
     $this->load->view('view_ventanas', $data);
 }
Beispiel #12
0
    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $edit = new DataEdit("Asignaciones", "asig");
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		';
        $edit->back_url = site_url("nomina/asig/filteredgrid");
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->codigo = new inputField("C&oacute;digo", "codigo");
        $edit->codigo->mode = "autohide";
        $edit->codigo->maxlength = 15;
        $edit->codigo->size = 20;
        $edit->codigo->rule = "required|callback_chexiste";
        $edit->nombre = new inputField("Nombre", "nombre");
        $edit->nombre->rule = "strtoupper|required";
        $edit->nombre->maxlength = 30;
        $edit->nombre->size = 40;
        $edit->concepto = new dropdownField("Concepto", "concepto");
        $edit->concepto->options("SELECT concepto, descrip FROM conc ORDER BY CONCEPTO");
        $edit->concepto->style = "width:300px;";
        $edit->tipo = new dropdownField("Tipo", "tipo");
        $edit->tipo->style = "width:100px;";
        $edit->tipo->options(array("A" => "Asignaci&oacute;n", "O" => "Otros", "D" => "Deducci&oacute;n"));
        $edit->descrip = new inputField("Descripci&oacute;n", "descrip");
        $edit->descrip->size = 45;
        $edit->descrip->maxlength = 35;
        $edit->descrip->rule = "strtoupper";
        $edit->formula = new inputField("F&oacute;rmula", "formula");
        $edit->formula->size = 80;
        $edit->formula->maxlength = 150;
        $edit->monto = new inputField("Monto", "monto");
        $edit->monto->size = 13;
        $edit->monto->css_class = 'inputnum';
        $edit->monto->rule = 'callback_positivo';
        $edit->fecha = new DateField("Fecha", "fecha");
        $edit->fecha->size = 12;
        $edit->cuota = new inputField("Cuotas", "cuota");
        $edit->cuota->size = 13;
        $edit->cuota->maxlength = 11;
        $edit->cuota->css_class = 'inputnum';
        $edit->cuota->rule = 'integer';
        $edit->cuotat = new inputField("Total de cuotas", "cuotat");
        $edit->cuotat->size = 13;
        $edit->cuotat->maxlength = 11;
        $edit->cuotat->css_class = 'inputnum';
        $edit->cuotat->rule = 'integer';
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = "Asignaci&oacute;n";
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
Beispiel #13
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $edit = new DataEdit("Datos del Huesped", "hchk");
     $edit->back_url = site_url("hospitalidad/huesped/filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->cedula = new inputField("Cedula", "cedula");
     $edit->cedula->rule = "trim|strtoupper|required|callback_chrif|callback_chexiste";
     $edit->cedula->mode = "autohide";
     $edit->cedula->maxlength = 15;
     $edit->cedula->size = 17;
     $edit->nombres = new inputField("Nombres", "nombre");
     $edit->nombres->rule = "trim";
     $edit->nombres->size = 30;
     $edit->nombres->maxlength = 20;
     $edit->apellidos = new inputField("Apeliidos", "apellido");
     $edit->apellidos->rule = "trim";
     $edit->apellidos->size = 30;
     $edit->apellidos->maxlength = 20;
     $edit->dire1 = new inputField("Direcci&oacute;n", "dire1");
     $edit->dire1->rule = "trim";
     $edit->dire1->size = 50;
     $edit->dire1->maxlength = 40;
     $edit->telefono = new inputField("Tel&eacute;fono", "telefono");
     $edit->telefono->rule = "trim";
     $edit->telefono->size = 23;
     $edit->telefono->maxlength = 20;
     $edit->edad = new inputField("Edad", "edad");
     $edit->edad->rule = "trim";
     $edit->edad->size = 4;
     $edit->edad->maxlength = 2;
     $edit->visa = new dropdownField("Tipo de Visa", "visa");
     $edit->visa->option("", "");
     $edit->visa->options(array("T" => "Turista", "R" => "Residente", "O" => "Otros"));
     $edit->visa->style = "width:100px";
     $edit->civil = new dropdownField("Estado Civil", "civil");
     $edit->civil->option("", "");
     $edit->civil->options(array("S" => "SOLTERO(A)", "C" => "CASADO(A)", "D" => "DIVORCIADO(A)", "V" => "VIUDO(A)"));
     $edit->civil->style = "width:130px";
     $edit->profesion = new inputField("Profesi&oacute;n", "profesion");
     $edit->profesion->rule = "trim";
     $edit->profesion->size = 30;
     $edit->profesion->maxlength = 20;
     $edit->email = new inputField("Correo Electronico", "email");
     $edit->email->size = 40;
     $edit->email->maxlength = 40;
     $edit->email->rule = "valid_email|trim";
     $edit->nacional = new dropdownField("Nacionalidad", "nacional");
     $edit->nacional->option("", "");
     $edit->nacional->options("SELECT codigo, pais FROM nacion where pais>'' ORDER BY codigo ");
     $edit->nacional->style = "width:180px";
     $edit->buttons("modify", "save", "undo", "back", "delete");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = "<h1>Huespedes</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #14
0
 function dataedit()
 {
     $this->rapyd->load("dataobject", "dataedit");
     $edit = new DataEdit($this->t**s, "bi_conc");
     $edit->back_url = site_url($this->url . "/filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField("C&oacute;digo", "codigo");
     $edit->codigo->mode = "autohide";
     $edit->codigo->rule = 'required';
     $edit->codigo->maxlength = 2;
     $edit->codigo->size = 2;
     $edit->denomi = new inputField("Denominaci&oacute;n", "denomi");
     $edit->denomi->size = 80;
     $edit->denomi->maxlength = 200;
     $edit->denomi->rule = "required";
     $edit->tipo = new dropdownField("Tipo", "tipo");
     $edit->tipo->option("I", "Incorporaci&oacute;n");
     $edit->tipo->option("D", "Desincorporaci&oacute;n");
     $edit->tipo->style = "width:150px";
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = $this->t**s;
     $data["head"] = script("jquery.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #15
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'r_contador');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('Id', 'id');
     $edit->id->rule = 'trim';
     $edit->id->size = 13;
     $edit->id->maxlength = 11;
     $edit->id->mode = 'autohide';
     $edit->id->when = array('show', 'modify');
     $edit->nombre = new inputField('Nombre', 'nombre');
     $edit->nombre->rule = 'trim';
     $edit->nombre->size = 13;
     $edit->nombre->maxlength = 11;
     $edit->proxnumero = new inputField('Proxnumero', 'proxnumero');
     $edit->proxnumero->rule = 'trim';
     $edit->proxnumero->size = 13;
     $edit->proxnumero->maxlength = 11;
     $edit->serie = new inputField('Serie', 'serie');
     $edit->serie->rule = 'trim';
     $edit->serie->size = 13;
     $edit->serie->maxlength = 11;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #16
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'negocio');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField('Codigo', 'codigo');
     $edit->codigo->size = 7;
     $edit->codigo->maxlength = 5;
     $edit->codigo->rule = 'trim|required|unique';
     $edit->nombre = new textAreaField('Nombre', 'nombre');
     $edit->nombre->rows = 2;
     $edit->nombre->cols = 80;
     $edit->monto = new inputField('Monto', 'monto');
     $edit->monto->rule = 'max_length[8]';
     $edit->monto->size = 10;
     $edit->monto->maxlength = 8;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #17
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'tingresos');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField('C&oacute;digo', 'codigo');
     $edit->codigo->rule = 'trim|max_length[2]|required|unique';
     $edit->codigo->size = 4;
     $edit->codigo->maxlength = 2;
     $edit->descrip = new inputField('Descripci&oacute;n', 'descrip');
     $edit->descrip->rule = 'max_length[100]';
     $edit->descrip->size = 102;
     $edit->descrip->maxlength = 100;
     $edit->grupo = new inputField('Grupo', 'grupo');
     $edit->grupo->rule = 'max_length[1]';
     $edit->grupo->size = 3;
     $edit->grupo->maxlength = 1;
     $edit->activo = new dropdownField('Activo', 'activo');
     $edit->activo->option("S", "SI");
     $edit->activo->option("N", "NO");
     $edit->codigopres = new inputField('Codigo Presupuestario', 'codigopres');
     $edit->codigopres->rule = 'max_length[100]';
     $edit->codigopres->size = 40;
     $edit->codigopres->maxlength = 100;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #18
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'parroquia');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->id = new inputField('id', 'id');
     $edit->id->rule = 'max_length[11]';
     $edit->id->size = 13;
     $edit->id->maxlength = 11;
     $edit->id->mode = "autohide";
     $edit->id->when = array('show');
     $edit->nombre = new inputField('nombre', 'nombre');
     $edit->nombre->rule = 'max_length[255]';
     $edit->nombre->size = 257;
     $edit->nombre->maxlength = 255;
     $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #19
0
 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $edit = new DataEdit("Zona", "zona");
     $edit->back_url = site_url("ventas/zona/filteredgrid");
     //$edit->pre_process("delete",'_pre_del');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField("C&oacute;digo", "codigo");
     $edit->codigo->size = 10;
     $edit->codigo->rule = "trim|required|callback_chexiste";
     $edit->codigo->maxlength = 8;
     $edit->codigo->mode = "autohide";
     $edit->nombre = new inputField("Nombre", "nombre");
     $edit->nombre->size = 38;
     $edit->nombre->rule = "trim|required|strtoupper";
     $edit->nombre->maxlength = 30;
     $edit->descrip = new textareafield("Descripci&oacute;n", "descrip");
     $edit->descrip->cols = 70;
     $edit->descrip->rows = 4;
     $edit->descrip->rule = "trim";
     $edit->descrip->maxlength = 90;
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = "<h1>Zonas</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #20
0
 function dataedit()
 {
     $this->rapyd->load("dataobject", "dataedit");
     $edit = new DataEdit($this->t**s, $this->tabla);
     $edit->back_url = site_url($this->url . "/filteredgrid");
     //$edit->pre_process('insert'  ,'_valida');
     //$edit->pre_process('update'  ,'_valida');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->grupo = new dropdownField("Grupo", "grupo");
     $edit->grupo->option(2, "2 Muebles");
     $edit->grupo->option(1, "1 Inmuebles");
     $edit->codigo = new inputField("C&oacute;digo", "codigo");
     $edit->codigo->mode = "autohide";
     $edit->codigo->rule = 'required';
     $edit->codigo->maxlength = 4;
     $edit->codigo->size = 4;
     $edit->descrip = new textareaField("Descripci&oacute;n", "descrip");
     $edit->descrip->rows = 4;
     $edit->descrip->cols = 50;
     $edit->descrip->rule = "required";
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = $this->t**s;
     $data["head"] = script("jquery.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #21
0
 function dataedit()
 {
     //$this->load->database('construc',TRUE);
     $this->rapyd->load("dataedit");
     $edit = new DataEdit("Partida", "obpa");
     $edit->back_url = site_url("construccion/partida/filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->codigo = new inputField("C&oacute;digo", "codigo");
     $edit->codigo->mode = "autohide";
     $edit->codigo->rule = "required|callback_chexiste";
     $edit->codigo->size = 7;
     $edit->codigo->maxlength = 4;
     $edit->descrip = new inputField("Descripci&oacute;n", "descrip");
     $edit->descrip->rule = "strtoupper|required";
     $edit->descrip->size = 50;
     $edit->descrip->maxlength = 40;
     $edit->grupo = new dropdownField("Grupo", "grupo");
     $edit->grupo->option("", "");
     $edit->grupo->options('SELECT grupo, nombre FROM obgp order by nombre');
     $edit->comi = new inputField("Comisi&oacute;n", "comision");
     $edit->comi->size = 8;
     $edit->comi->maxlength = 5;
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = "<h1>Partidas</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #22
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'usuario');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->us_codigo = new inputField('Codigo', 'us_codigo');
     $edit->us_codigo->rule = 'trim';
     $edit->us_codigo->size = 14;
     $edit->us_codigo->maxlength = 12;
     $edit->us_codigo->mode = 'autohide';
     $edit->us_nombre = new inputField('Nombre', 'us_nombre');
     $edit->us_nombre->rule = 'trim';
     $edit->us_nombre->size = 32;
     $edit->us_nombre->maxlength = 30;
     $edit->us_nombre->mode = 'autohide';
     $edit->caja = new dropdownField("Caja", "cajas");
     $edit->caja->option("", "");
     $edit->caja->options("SELECT id,nombre FROM r_caja ");
     $edit->caja->rule = 'trim';
     $edit->caja->size = 13;
     $edit->caja->maxlength = 11;
     $edit->caja->db_name = 'caja';
     $edit->buttons('modify', 'save', 'undo', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head() . script('jquery.js');
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #23
0
 function dataedit()
 {
     $this->rapyd->load('dataedit', 'datagrid');
     $script = '$(function() {$(".inputnum").numeric(".");});';
     $edit = new DataEdit(" ", 'crm_tipos');
     $edit->back_url = site_url('crm/tipos/index');
     $edit->script($script, 'create');
     $edit->script($script, 'modify');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->usuario = new autoUpdateField('usuario', $this->session->userdata('usuario'), $this->session->userdata('usuario'));
     $edit->definicion = new dropdownField("Definici&oacute;n", "definicion");
     $edit->definicion->option("", "Seleccione");
     $edit->definicion->options("SELECT id,nombre  FROM crm_definiciones ORDER BY nombre");
     $edit->definicion->rule = 'required';
     $edit->descrip = new inputField('Descripci&oacute;n', 'descrip');
     $edit->descrip->size = 50;
     $edit->descrip->maxlength = 200;
     $edit->descrip->rule = 'trim|strtoupper|required';
     $edit->buttons('modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = '<h1>Tipos</h1>';
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
Beispiel #24
0
 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->t**s, 'IA');
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->pre_process('insert', '_pre_insert');
     $edit->pre_process('update', '_pre_update');
     $edit->pre_process('delete', '_pre_delete');
     $edit->id = new inputField('Id', 'id');
     $edit->id->rule = 'max_length[10]';
     $edit->id->size = 12;
     $edit->id->maxlength = 10;
     $edit->nombre = new inputField('Nombre', 'nombre');
     $edit->nombre->rule = 'max_length[100]';
     $edit->nombre->size = 102;
     $edit->nombre->maxlength = 100;
     $edit->w = new inputField('W', 'w');
     $edit->w->rule = 'max_length[8]';
     $edit->w->size = 10;
     $edit->w->maxlength = 8;
     $edit->pos = new inputField('Pos', 'pos');
     $edit->pos->rule = 'max_length[10]';
     $edit->pos->size = 12;
     $edit->pos->maxlength = 10;
     $edit->buttons('modify', 'save', 'undo', 'delete', 'back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = $this->t**s;
     $this->load->view('view_ventanas', $data);
 }
Beispiel #25
0
    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		';
        $pers = array('tabla' => 'pers', 'columnas' => array('codigo' => 'Codigo', 'cedula' => 'Cedula', 'nombre' => 'Nombre', 'apellido' => 'Apellido'), 'filtro' => array('codigo' => 'C&oacute;digo', 'cedula' => 'Cedula'), 'retornar' => array('codigo' => 'codigo', 'nombre' => 'nombre'), 'titulo' => 'Buscar Personal');
        $boton = $this->datasis->modbus($pers);
        $edit = new DataEdit("Aumentos de Sueldo", "ausu");
        $edit->back_url = site_url("nomina/aumentosueldo/filteredgrid");
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        //$edit->post_process('insert','_post');
        //$edit->post_process('update','_post');
        //$edit->post_process('delete','_post');
        $edit->codigo = new inputField("Codigo", "codigo");
        $edit->codigo->size = 15;
        $edit->codigo->append($boton);
        $edit->codigo->mode = "autohide";
        $edit->codigo->maxlength = 15;
        $edit->codigo->rule = "required|callback_chexiste";
        $edit->codigo->group = "Trabajador";
        $edit->nombre = new inputField("Nombre", "nombre");
        $edit->nombre->size = 40;
        $edit->nombre->maxlength = 30;
        $edit->nombre->group = "Trabajador";
        $edit->fecha = new dateField("Apartir de la nomina", "fecha", "d/m/Y");
        $edit->fecha->mode = "autohide";
        $edit->fecha->size = 12;
        $edit->fecha->dbformat = 'Ymd';
        $edit->fecha->rule = "required|callback_fpositiva";
        $edit->sueldoa = new inputField("Sueldo anterior", "sueldoa");
        $edit->sueldoa->size = 14;
        $edit->sueldoa->css_class = 'inputnum';
        $edit->sueldoa->rule = 'callback_positivoa';
        $edit->sueldoa->maxlength = 11;
        $edit->sueldo = new inputField("Sueldo nuevo", "sueldo");
        $edit->sueldo->size = 14;
        $edit->sueldo->css_class = 'inputnum';
        $edit->sueldo->rule = 'callback_positivo';
        $edit->sueldo->maxlength = 11;
        $edit->observ1 = new inputField("Observaciones", "observ1");
        $edit->observ1->size = 51;
        $edit->observ1->maxlength = 46;
        $edit->oberv2 = new inputField("", "oberv2");
        $edit->oberv2->size = 51;
        $edit->oberv2->maxlength = 46;
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = "Aumentos de Sueldo";
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
Beispiel #26
0
    function dataedit()
    {
        //$this->datasis->modulo_id(101,1);
        $this->rapyd->load("dataedit");
        $link = site_url('presupuesto/ppla/autocompleteppla');
        $script = "\n\t\t\$(document).ready(function() {\n\t\t\t\$.post('{$link}',{ partida:'' },function(data){\n\t\t\t\tdatos=jQuery.parseJSON(data);\n\n\t\t\t\t\$('#codigopres').autocomplete({\n\t\t\t\t\tdelay: 0,\n\t\t\t\t\tminLength: 4,\n\t\t\t\t\tsource: datos,\n\t\t\t\t\tfocus: function( event, ui ) {\n\t\t\t\t\t\t\$( '#codigopres').val( ui.item.codigo );\n\t\t\t\t\t\t\$( '#denominacion').val( ui.item.denominacion );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tselect: function( event, ui ) {\n\t\t\t\t\t\t\$( '#codigopres').val( ui.item.codigo );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.data( 'autocomplete' )._renderItem = function( ul, item ) {\n\t\t\t\t\treturn \$( '<li></li>' )\n\t\t\t\t\t.data( 'item.autocomplete', item )\n\t\t\t\t\t.append( '<a>' +item.codigo+'-'+ item.denominacion + '</a>' )\n\t\t\t\t\t.appendTo( ul );\n\t\t\t\t};\n\t\t\t});\n\t\t});\n\t\t";
        $edit = new DataEdit("Presupuesto de Ingresos", "ingpresup");
        $edit->back_url = $this->url;
        $edit->post_process('update', '_post');
        $edit->post_process('insert', '_post');
        $edit->script($script, 'create');
        $edit->script($script, 'modify');
        $edit->codigopres = new inputField("C&oacute;digo Presupuesto", "codigopres");
        $edit->codigopres->db_name = "codigopres";
        $edit->codigopres->size = 20;
        $edit->codigopres->mode = "autohide";
        $edit->codigopres->rule = "required";
        $edit->denominacion = new textareaField("Denominacion", "denominacion");
        $edit->denominacion->rows = 2;
        $edit->denominacion->cols = 70;
        $edit->denominacion->rule = "required";
        $edit->tipo = new dropdownField("Tipo", "tipo");
        $edit->tipo->option('o', 'Ingreso Ordinario');
        $edit->tipo->option('e', 'Ingreso Extraordinario');
        $edit->tipo->option('r', 'Reversion de Pago');
        $edit->tipo->style = "50px";
        $edit->estimado = new inputField("Estimado", "estimado");
        $edit->estimado->size = 20;
        //$edit->estimado->mode = "autohide";
        //$edit->estimado->when = array("show","create");
        $edit->cuenta = new inputField("C&oacute;digo ", "cuenta");
        $edit->cuenta->db_name = "cuenta";
        $edit->cuenta->size = 20;
        //$edit->cuenta->mode = "autohide";
        //$edit->cuenta->rule ="required";
        $edit->abreviatura = new inputField("Abreviatura", "abreviatura");
        $edit->abreviatura->size = 15;
        $edit->abreviatura->maxlenght = 20;
        $edit->buttons("add", "modify", "save", "undo", "delete", "back");
        $edit->build();
        $style = '

		.ui-autocomplete {
		  max-height: 250px;
		  overflow-y: auto;
		  max-width: 600px;
		}
		 html.ui-autocomplete {
		  height: 250px;
		  width: 600px;
		}

		';
        $data['content'] = $edit->output;
        $data["style"] = $style;
        $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
        $data['title'] = ' Presupuesto ';
        $this->load->view('view_ventanas', $data);
    }
Beispiel #27
0
    function dataedit()
    {
        $this->rapyd->load('dataedit');
        $edit = new DataEdit($this->t**s, 'gestion_indicador');
        $edit->back_url = site_url($this->url . 'filteredgrid');
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->pre_process('insert', '_pre_insert');
        $edit->pre_process('update', '_pre_update');
        $edit->pre_process('delete', '_pre_delete');
        $edit->id_gestion_grupo = new inputField('Grupo', 'id_gestion_grupo');
        $edit->id_gestion_grupo->rule = 'max_length[10]|integer';
        $edit->id_gestion_grupo->css_class = 'inputonlynum';
        $edit->id_gestion_grupo->size = 12;
        $edit->id_gestion_grupo->maxlength = 10;
        $edit->activo = new dropdownField('Activo', 'activo');
        $edit->activo->style = 'width:100px;';
        $edit->activo->option('S', 'Si');
        $edit->activo->option('N', 'No');
        $edit->activo->rule = 'enum[S,N]';
        $edit->unidad = new inputField('Unidad', 'unidad');
        $edit->unidad->rule = 'max_length[8]';
        $edit->unidad->size = 10;
        $edit->unidad->maxlength = 8;
        $edit->descrip = new inputField('Descripción', 'descrip');
        $edit->descrip->rule = 'max_length[100]';
        $edit->descrip->size = 102;
        $edit->descrip->maxlength = 100;
        $edit->indicador = new inputField('Indicador', 'indicador');
        $edit->indicador->rule = 'max_length[100]';
        $edit->indicador->size = 102;
        $edit->indicador->maxlength = 100;
        $edit->objetivo = new inputField('Objetivo', 'objetivo');
        $edit->objetivo->rule = 'max_length[12]|numeric';
        $edit->objetivo->css_class = 'inputnum';
        $edit->objetivo->size = 14;
        $edit->objetivo->maxlength = 12;
        $edit->ejecuta = new textareaField('Ejecuta', 'ejecuta');
        $edit->ejecuta->rule = 'required';
        $edit->ejecuta->cols = 70;
        $edit->ejecuta->rows = 4;
        $edit->buttons('modify', 'save', 'undo', 'delete', 'back');
        $edit->build();
        $script = '<script type="text/javascript" >
		$(function() {
			$(".inputnum").numeric(".");
			$(".inputonlynum").numeric();
		});
		</script>';
        $data['content'] = $edit->output;
        $data['head'] = $this->rapyd->get_head();
        $data['script'] = script('jquery.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js');
        $data['script'] .= $script;
        $data['title'] = heading($this->t**s);
        $this->load->view('view_ventanas', $data);
    }
Beispiel #28
0
    function dataedit()
    {
        $this->rapyd->load('dataobject', 'dataedit');
        $qformato = $this->qformato = $this->datasis->formato_cpla();
        $modbus = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'C&oacute;digo', 'denominacion' => 'Denominaci&oacute;n'), 'filtro' => array('codigo' => 'C&oacute;digo', 'denominacion' => 'Denominacion'), 'retornar' => array('codigo' => 'cuenta'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"");
        $btn = $this->datasis->p_modbus($modbus, "cpla");
        $script = '
			$(".inputnum").numeric(".");
		';
        $edit = new DataEdit($this->t**s, "bcta");
        $edit->back_url = $this->url . "index/osp";
        $edit->pre_process('delete', '_pre_del');
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->codigo = new inputField("C&oacute;digo", "codigo");
        $edit->codigo->rule = "unique";
        //|callback_chcodigo";
        //		$edit->codigo->mode="autohide";
        $edit->codigo->when = array('create', 'show', 'modify');
        $edit->codigo->size = 20;
        $edit->denominacion = new inputField("Denominaci&oacute;n", "denominacion");
        $edit->denominacion->rule = "required";
        //strtoupper|
        $edit->denominacion->size = 45;
        $edit->denominacion->maxlenght = 250;
        $edit->cuenta = new inputField("Cuenta Contable", "cuenta");
        $edit->cuenta->rule = "callback_chcodigo";
        $edit->cuenta->size = 12;
        $edit->cuenta->append($btn);
        $edit->descrip = new textareaField("Descripcion", "descrip");
        $edit->descrip->rows = 3;
        $edit->descrip->cols = 80;
        if ($this->datasis->puede(321)) {
            $edit->tipo = new dropdownField("Tipo", "tipo");
            $edit->tipo->option("O", "Otro");
            $edit->tipo->option("P", "Por Pagar");
            $edit->deuda = new inputField("Deuda", 'deuda');
            $edit->deuda->css_class = "inputnum";
            $edit->deuda->size = 20;
            $edit->saldo = new inputField("Deuda", 'deuda');
            $edit->saldo->size = 20;
            $edit->saldo->mode = "autohide";
            $edit->saldo->when = array("show", "modify");
        }
        $edit->buttons("modify", "save", "undo", "back", "delete", "add");
        //, "delete"
        $edit->build();
        $data['content'] = $edit->output;
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $data['title'] = "{$this->t**s}";
        $this->load->view('view_ventanas', $data);
    }
Beispiel #29
0
    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		';
        $edit = new DataEdit("Relacion de Cheques", "relch");
        $edit->back_url = site_url("tesoreria/relch/filteredgrid");
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->id = new inputField("Id", "id");
        $edit->id->mode = "autohide";
        $edit->id->when = array('show');
        $edit->id->size = 5;
        $edit->numero = new inputField("Numero", "numero");
        //$edit->numero->mode='autohide';
        $edit->usuario = new inputField("Usuario", "usuario");
        $edit->usuario->mode = 'autohide';
        $edit->fecha = new dateonlyField("Fecha", 'fecha');
        //$edit->fecha->mode='autohide';
        $edit->destino = new dropdownField('Destino', 'destino');
        $edit->destino->mode = 'autohide';
        $edit->destino->option('C', 'Caja');
        $edit->destino->option('I', 'Interno');
        $edit->status = new inputField("Estado", 'status');
        $edit->status->mode = 'autohide';
        $edit->fondo = new dropdownField("Clasificacion", "fondo");
        $edit->fondo->style = "width:300px;";
        $edit->fondo->option("", "");
        $edit->fondo->options("SELECT fondo,fondo a FROM banc GROUP BY fondo UNION ALL SELECT CONCAT('REPO.',fondo),CONCAT('REPO.',fondo) a FROM banc GROUP BY fondo");
        $status = $edit->_dataobject->get('status');
        if ($status == 'P') {
            $action = "javascript:window.location='" . site_url($this->url . '/busca/' . $edit->rapyd->uri->get_edited_id()) . "'";
            $edit->button_status("btn_anular", 'Modificar Cheques', $action, "TR", "show");
            $action = "javascript:window.location='" . site_url($this->url . '/actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
            $edit->button_status("btn_anular", 'Cerrar Relacion', $action, "TR", "show");
        } elseif ($status == 'C') {
            $action = "javascript:window.location='" . site_url($this->url . '/anular/' . $edit->rapyd->uri->get_edited_id()) . "'";
            $edit->button_status("btn_rever", 'Anular', $action, "TR", "show");
        } else {
            //$edit->buttons("save");
        }
        $edit->buttons("modify", "save");
        $edit->buttons("undo", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = "Relacion de Ordenes Pagadas";
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
Beispiel #30
0
    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		';
        $edit = new DataEdit("Inventario de Gastos", "mgas");
        $edit->back_url = site_url("finanzas/invgasto/filteredgrid");
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $edit->codigo = new inputField("C&oacute;digo", "codigo");
        $edit->codigo->rule = "trim|required|callback_chexiste";
        $edit->codigo->mode = "autohide";
        $edit->codigo->size = 8;
        $edit->codigo->maxlength = 6;
        $edit->tipo = new dropdownField("Tipo", "tipo");
        $edit->tipo->option("G", "Gasto");
        $edit->tipo->option("I", "Inventario");
        $edit->tipo->option("S", "Suministro");
        $edit->tipo->option("A", "Activo");
        $edit->tipo->style = "width:150px";
        $edit->descrip = new inputField("Descripci&oacute;n", "descrip");
        $edit->descrip->size = 50;
        $edit->descrip->maxlength = 40;
        $edit->descrip->rule = "trim|strtoupper";
        $edit->grupo = new dropdownField("Grupo", "grupo");
        $edit->grupo->option("", "");
        $edit->grupo->options("SELECT grupo, nom_grup FROM grga ORDER BY nom_grup");
        $edit->grupo->style = "width:230px";
        $edit->nom_grup = new inputField("Nombre del grupo", "nom_grup");
        $edit->nom_grup->size = 30;
        $edit->nom_grup->maxlength = 20;
        $edit->nom_grup->rule = 'trim';
        $edit->iva = new inputField("I.V.A", "iva");
        $edit->iva->size = 7;
        $edit->iva->maxlength = 5;
        $edit->iva->css_class = 'inputnum';
        $edit->iva->rule = 'trim|numeric';
        $edit->medida = new inputField("Medida", "medida");
        $edit->medida->size = 7;
        $edit->medida->maxlength = 5;
        $edit->medida->rule = 'trim';
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = "<h1>Inventario de Gastos</h1>";
        $data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }