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ó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); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("Sucursal", "sucu"); $edit->back_url = site_url("supervisor/sucu/filteredgrid"); $edit->codigo = new inputField("Código", "codigo"); $edit->codigo->rule = "required"; $edit->codigo->mode = "autohide"; $edit->codigo->size = 4; $edit->codigo->maxlength = 2; $edit->sucursal = new inputField("Sucursal", "sucursal"); $edit->sucursal->rule = "strtoupper"; $edit->sucursal->size = 60; $edit->sucursal->maxlength = 45; $edit->url = new inputField("URL", "url"); $edit->url->size = 80; $edit->url->maxlength = 200; $edit->prefijo = new inputField("Prefijo", "prefijo"); $edit->prefijo->size = 5; $edit->prefijo->maxlength = 3; $edit->proteo = new inputField("Proteo", "proteo"); $edit->proteo->maxlength = 50; $edit->proteo->size = 70; $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "<h1>Sucursal</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); }
function dataedit() { $this->rapyd->load("dataobject", "dataedit"); // $link=site_url('finventario/bi_edificio/ultimo'); // $link2=site_url('finventario/bi_edificio/sugerir'); $edit = new DataEdit("Muebles", "bi_bienes"); $edit->back_url = site_url("bienes/bi_bienes/filteredgrid"); $edit->pre_process('insert', '_valida'); $edit->pre_process('update', '_valida'); $edit->id = new inputField("Id", "id"); $edit->id->mode = "autohide"; $edit->id->when = array('show'); $edit->nombre = new inputField("Nombre", "nombre"); $edit->nombre->size = 30; $edit->nombre->maxlength = 30; $edit->descrip = new textareaField("Descripción", "descrip"); $edit->descrip->rows = 4; $edit->descrip->cols = 50; $edit->modelo = new inputField("Modelo", "modelo"); $edit->modelo->size = 20; $edit->modelo->maxlength = 30; $edit->color = new inputField("Color", "color"); $edit->color->size = 20; $edit->color->maxlength = 30; $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "Muebles"; $data["head"] = script("jquery.pack.js") . $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
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ódigo', 'codigo'); $edit->codigo->rule = 'trim|max_length[2]|required|unique'; $edit->codigo->size = 4; $edit->codigo->maxlength = 2; $edit->descrip = new inputField('Descripció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); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("Estructura Administrativa", "estruadm"); $edit->pre_process('delete', '_pre_delete'); $edit->back_url = "presupuesto/estruadm/index/filteredgrid"; $edit->codigo = new inputField("Código", "codigo"); $edit->codigo->rule = "trim|required|callback_chcodigo"; $edit->codigo->mode = "autohide"; $edit->codigo->size = 20; $edit->codigo->maxlength = 15; $edit->titulo = new inputField("Denominación", "denominacion"); $edit->titulo->rule = "required"; $edit->titulo->size = 50; $edit->titulo->maxlength = 500; //$edit->descrip = new inputField("Tipo", "tipo"); //$edit->descrip->size = 10; //$edit->descrip->maxlength = 1; $edit->uejecutora = new dropdownField("Unidad Ejecutora", "uejecutora"); $edit->uejecutora->option("", ""); $edit->uejecutora->size = 80; $edit->uejecutora->options("SELECT codigo, CONCAT(codigo,' ', nombre) nombre FROM uejecutora ORDER BY nombre"); $edit->descripcion = new textAreaField("Descripcion", "descripcion"); $edit->descripcion->cols = 80; $edit->descripcion->rows = 7; $edit->buttons("add", "modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data["head"] = $this->rapyd->get_head(); $data['title'] = 'Estructura Administrativa'; $this->load->view('view_ventanas', $data); }
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ó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ó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); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("soporte", "soporte"); $edit->back_url = site_url("supervisor/sopor/filteredgrid"); //$edit->pre_process('delete','_pre_del'); $edit->usuario = new inputField("Usuario", "usuario"); $edit->usuario->mode = "autohide"; //$edit->rif->rule = "required"; //$edit->rif->maxlength=13; $edit->usuario->size = 14; $edit->estampa = new dateField("Estampa", "estampa", "d/m/Y"); $edit->estampa->size = 10; $edit->estampa->mode = "autohide"; $edit->titulo = new inputField("Titulo", "titulo"); $edit->comentario = new textareaField("Comentario", "comentario"); $edit->comentario->cols = 70; $edit->comentario->rows = 10; if ($this->uri->segment(4) === "1") { $edit->buttons("modify", "save", "undo", "back"); } else { $edit->buttons("modify", "save", "undo", "delete", "back"); } $edit->build(); //echo $edit->_dataobject->db->last_query();; $data["edit"] = $edit->output; $data["modulo"] = ""; $content["content"] = $this->load->view('rapyd/dataedit', $data, true); $content["rapyd_head"] = $this->rapyd->get_head(); $content["code"] = ""; $content["lista"] = "\r\n\t\t\t<h3>Editar o Agregar</h3>\r\n\t\t\t<div>La identificacion del Grupo debe ser unica, la clase puede ser Cliente, Interna u Otros, en la Descripcion colocar que se quiere agrupar y la cuenta contable para el enlace contable</div>\r\n\t\t\t<div class='line'></div>\r\n\t\t\t<a href='#' onclick='window.close()'>Cerrar</a>\r\n\t\t\t<div class='line'></div>\n<br><br><br>\n"; $this->load->view('rapyd/tmpsolo', $content); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("ARTICULO", "sinv"); $edit->back_url = site_url("inventario/cambiosinv/filteredgrid"); $edit->post_process('update', '_post_update'); $edit->codigo = new inputField("Codigo", "codigo"); $edit->codigo->size = 25; $edit->codigo->mode = "autohide"; $edit->descrip = new inputField("Descripcion", "descrip"); $edit->descrip->size = 50; $edit->descrip->mode = "autohide"; $edit->exmin = new inputField("Existencia Minima", "exmin"); $edit->exmin->size = 20; $edit->exmax = new inputField("Existencia Maxima", "exmax"); $edit->exmax->size = 20; $edit->existen = new inputField("Existencia", "existen"); $edit->existen->size = 20; $edit->activo = new dropdownField("Activo", "activo"); $edit->activo->option("", ""); $edit->activo->option("S", "Si"); $edit->activo->option("N", "No"); $edit->activo->style = "width:50px"; $edit->buttons("modify", "save", "undo", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = " Almacenes "; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("", "prueba"); $edit->id = new inputField("Código", "id"); $edit->id->rule = "trim|required"; $edit->id->size = 16; $edit->id->maxlength = 15; $edit->html = new editorField("Contenido", "html"); $edit->html->rule = "required"; $edit->html->rows = 20; //$edit->contenido->upload_path = $this->upload_path; $edit->html->cols = 90; $edit->html->when = array("modify"); // //$edit->html2 = new htmlField("Codice HTML", "html"); //$edit->html2->cols = 70; //$edit->html2->rows = 10; $edit->iframe = new iframeField("related", "mpru/a", "500"); $edit->iframe->when = array("show"); //$edit->iframe->group = "Related Records"; //$edit->container = new containerField("alert","html"); //$edit->container->when = array("show"); // //$edit->free = new freeField("Free Field","html","html"); $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data["head"] = script("tabber.js") . script("prototype.js") . $this->rapyd->get_head() . script("scriptaculous.js") . script("effects.js"); $data['title'] = '<h1>Catalogos de Inventarios</h1>'; $this->load->view('view_ventanas', $data); }
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ó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ó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ó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); }
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ódigo", "codigo"); $edit->codigo->mode = "autohide"; $edit->codigo->rule = 'required'; $edit->codigo->maxlength = 4; $edit->codigo->size = 4; $edit->descrip = new textareaField("Descripció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); }
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); }
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); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("Zona", "zona"); $edit->back_url = site_url("ventas/zonaf/filteredgrid"); $edit->codigo = new inputField("codigo", "codigo"); $edit->codigo->size = 5; $edit->codigo->rule = "required"; $edit->codigo->maxlength = 5; $edit->pais = new dropdownField("País", "pais"); $edit->pais->style = "width:150px"; $edit->pais->option("", "Seleccionar"); $edit->pais->options("SELECT codigo, nombre FROM pais ORDER BY codigo"); $edit->pais->group = "Ubicación"; $edit->nombre = new inputField("Nombre", "nombre"); $edit->nombre->size = 38; $edit->nombre->rule = "trim|required|strtoupper"; $edit->nombre->maxlength = 30; $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "<h1>Zona</h1>"; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->rapyd->load("dataedit"); $qformato = $this->qformato = $this->datasis->formato_cpla(); $mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'Código', 'descrip' => 'Descripción'), 'filtro' => array('codigo' => 'Código', 'descrip' => 'Descripció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ó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ó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); }
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ó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); }
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ó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ó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); }
function dataedit() { $codigo = $this->uri->segment(5); $this->rapyd->load("dataedit"); $edit = new DataEdit("Configuracion internet", "internet"); $edit->back_url = site_url("supervisor/internet/index"); if ($codigo == 'IPACEPTADOS') { $edit->pre_process('update', '_pre_update'); $titulo = 'Lista de ip con acceso a internet'; } else { $titulo = 'Lista de direcciones web prohibidas'; } $edit->pre_process('insert', '_pre_insert'); $edit->pre_process('delete', '_pre_delete'); $edit->post_process('update', '_post_update'); $edit->lista = new textareaField("Lista", "lista"); $edit->lista->rule = "required"; $edit->lista->rows = 15; $edit->buttons("modify", "save", "undo", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "<h1>{$titulo}</h1>"; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->datasis->modulo_id(102, 1); $this->rapyd->load("dataedit"); $script = ' $(".inputnum").numeric("."); '; $edit = new DataEdit("Programas", "programas"); $edit->script($script, "create"); $edit->back_url = site_url("presupuesto/programas/filteredgrid"); $edit->sect_pres = new dropdownField("Sector", "sect_pres"); $edit->sect_pres->options("SELECT sect_pres, CONCAT_WS(' ',sect_pres,nomb_sect)AS nomb_sect FROM sectores ORDER BY sect_pres"); $edit->sect_pres->style = 'width:300px;'; $filter->id_prog = new inputField("Identificador", "id_prog"); $filter->id_prog->size = 5; $edit->prog_pres = new inputField("Código Programa", "prog_pres"); $edit->prog_pres->size = 5; $edit->prog_pres->maxlength = 2; $edit->prog_pres->mode = "autohide"; $edit->prog_pres->css_class = 'inputnum'; $edit->prog_pres->rule = 'required'; $edit->nomb_prog = new inputField("Nombre Programa", "nomb_prog"); $edit->nomb_prog->size = 40; $edit->nomb_prog->maxlength = 80; $edit->nomb_prog->rule = 'required'; $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = " Programas "; $data["head"] = script("jquery.pack.js") . $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->datasis->modulo_id(101, 1); $this->rapyd->load("dataedit"); $script = ' $(".inputnum").numeric("."); '; $edit = new DataEdit("Sector", "sectores"); $edit->script($script, "create"); $edit->back_url = site_url("presupuesto/sectores/filteredgrid"); $edit->sect_pres = new inputField("Código", "sect_pres"); $edit->sect_pres->size = 5; $edit->sect_pres->maxlength = 2; $edit->sect_pres->mode = "autohide"; $edit->sect_pres->css_class = 'inputnum'; $edit->nomb_sect = new inputField("Nombre", "nomb_sect"); $edit->nomb_sect->size = 40; $edit->nomb_sect->maxlength = 80; $edit->nomb_sect->rule = 'required'; $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = " Sectores "; $data["head"] = script("jquery.pack.js") . $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->rapyd->load("dataedit"); $edit = new DataEdit("Carga de Publicidad", "publicidad"); $edit->back_url = site_url("supervisor/publicidad/filteredgrid"); $edit->archivo = new uploadField("Archivo", "archivo"); $edit->archivo->upload_path = $this->upload_path; $edit->archivo->allowed_types = "jpg|gif|swf|png"; $edit->bgcolor = new inputField("Color de Fondo", "bgcolor"); $edit->bgcolor->maxlength = 7; $edit->bgcolor->size = 9; //$edit->bgcolor->rule=""; $edit->prob = new inputField("Probabilidad de aparicion", "prob"); $edit->prob->css_class = 'inputnum'; $edit->prob->maxlength = 8; $edit->prob->size = 6; //$edit->prob->rule=""; $edit->descrip = new textareaField("Descripción", "descrip"); $edit->descrip->rows = 5; $edit->buttons("modify", "save", "undo", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "<h1>Registro de publicidad</h1>"; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
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); }
function dataedit() { $this->rapyd->load('dataedit'); $edit = new DataEdit("barras de Inventario", "sinv"); $edit->back_url = site_url("inventario/ubica/filteredgrid/search/osp"); $edit->ubica = new inputField("Ubica", "ubica"); $edit->ubica->size = 15; $edit->codigo = new inputField("Código", "codigo"); $edit->codigo->size = 15; $edit->codigo->rule = "required"; $edit->codigo->mode = "autohide"; $edit->codigo->mode = "readonly"; $edit->descrip = new inputField("Descripción", "descrip"); $edit->descrip->size = 40; $edit->descrip->mode = "autohide"; $edit->descrip2 = new inputField("Descripción Corta", "descrip2"); $edit->descrip2->size = 20; $edit->descrip2->mode = "autohide"; $edit->precio1 = new inputField("Precio", "precio1"); $edit->precio1->size = 15; $edit->precio1->mode = "autohide"; $edit->buttons("modify", "save", "undo", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = " Código Barras de Inventario "; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { $this->rapyd->load('dataedit'); $this->rapyd->uri->keep_persistence(); $edit = new DataEdit('Cheque emitido', 'bmov'); $status = $edit->_status; if ($status != 'show') { show_error('Error de parámetros'); } $edit->back_url = site_url('finanzas/conforch/filteredgrid'); $edit->fecha = new DateonlyField('Fecha', 'fecha', 'd/m/Y'); $edit->fecha->insertValue = date('Y-m-d'); $edit->benefi = new inputField('A nombre de', "benefi"); $edit->benefi->group = 'Detalle del cheque'; $edit->banco = new inputField("Del Banco", "banco"); $edit->banco->group = 'Detalle del cheque'; $edit->numcuent = new inputField("Número Cuenta", "numcuent"); $edit->numcuent->in = 'banco'; $edit->numcuent->group = 'Detalle del cheque'; $edit->numero = new inputField("Número de cheque", "numero"); $edit->numero->group = 'Detalle del cheque'; $edit->monto = new inputField("Por un Monto de", "monto"); $edit->monto->group = 'Detalle del cheque'; $edit->nombre = new inputField('Proveedor', 'nombre'); $edit->concepto = new inputField("Por Concepto", "concepto"); $edit->anulado = new inputField("Anulado", "anulado"); $edit->buttons('back'); $edit->build(); $data['content'] = $edit->output; $data['title'] = heading('Consulta de Cheques'); $data['head'] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function dataedit() { function _vfecha($strdate) { if ($strdate == '') { return true; } if (ereg("([0-9]{2})/([0-9]{2})/([0-9]{4})", "{$strdate}", $arr)) { if (date("d/m/Y", strtotime("{$arr['2']}/{$arr['1']}/{$arr['3']}")) == $strdate) { return true; } } return false; } $this->datasis->modulo_id(701001, 1); $this->rapyd->load("dataedit"); $edit = new DataEdit("Calendario", "cale"); $edit->back_url = site_url("nomina/calendario/filteredgrid"); $edit->feria = new DateField("Día Feriado", "feria", "d/m/Y"); $edit->feria->rule = "required|callback_vfecha("; $edit->feria->mode = "autohide"; $edit->motivo = new inputField("Motivo", "motivo"); $edit->fijo = new inputField("Fijo", "fijo"); $edit->buttons("modify", "save", "undo", "delete", "back"); $edit->build(); $data['content'] = $edit->output; $data['title'] = "<h1>Calendario</h1>"; $data["head"] = $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
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ódigo", "codigo"); $edit->codigo->mode = "autohide"; $edit->codigo->rule = 'required'; $edit->codigo->maxlength = 2; $edit->codigo->size = 2; $edit->denomi = new inputField("Denominació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ón"); $edit->tipo->option("D", "Desincorporació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); }
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); }
function dataedit($sta, $id) { $this->rapyd->load('dataedit', 'datagrid'); $edit = new DataEdit('Ficha del cliente', 'scli'); $edit->back_url = site_url($this->url . 'filteredgrid'); $edit->cliente = new inputField('Cliente', 'cliente'); $edit->cliente->rule = 'trim|required|existesprv'; $edit->cliente->maxlength = 5; $edit->cliente->size = 7; $edit->cliente->mode = 'autohide'; $edit->nombre = new inputField('Nombre', 'nombre'); $edit->nombre->rule = 'trim'; $edit->nombre->maxlength = 40; $edit->nombre->size = 40; $edit->nombre->mode = 'autohide'; $edit->nombre->in = 'cliente'; $edit->rifci = new inputField('RIF/CI', 'rifci'); $edit->rifci->rule = 'trim'; $edit->rifci->maxlength = 40; $edit->rifci->size = 40; $edit->rifci->mode = 'autohide'; $edit->telefono = new inputField('Teléfono', 'telefono'); $edit->telefono->rule = 'trim'; $edit->telefono->maxlength = 40; $edit->telefono->size = 40; $edit->telefono->mode = 'autohide'; $edit->buttons('undo', 'back'); $edit->build(); $data['content'] = $edit->output; $crm = $edit->_dataobject->get('crm'); if (empty($crm)) { $dbdata['usuario'] = $this->secu->usuario(); $dbdata['status'] = 'A'; $dbdata['fecha'] = date('Ymd'); $dbdata['titulo'] = 'Callcenter'; $dbdata['cliente'] = $edit->_dataobject->get('cliente'); $dbdata['descripcion'] = ''; $mSQL = $this->db->insert_string('crm_contenedor', $dbdata); $this->db->simple_query($mSQL); $crm = $this->db->insert_id(); $mSQL = "UPDATE scli SET crm = {$crm} WHERE id={$id}"; $this->db->simple_query($mSQL); } $this->crm_back = site_url("crm/callcenter/dataedit/{$sta}/{$id}"); $adici = array($edit->_dataobject->pk['id']); $this->prefijo = 'crm_'; $data['content'] .= Contenedor::_showAdjuntos($crm, 'crm/callcenter/adjuntos', $adici); $data['content'] .= Contenedor::_showEventos($crm, 'crm/callcenter/eventos', $adici); $data['content'] .= Contenedor::_showComentarios($crm, 'crm/callcenter/comentarios', $adici); $data['style'] = style('redmond/jquery-ui.css'); $data['script'] = script('jquery.js'); $data['script'] .= script('jquery-ui.js'); $data['script'] .= script('plugins/jquery.floatnumber.js'); $data['script'] .= script('plugins/jquery.numeric.pack.js'); $data['script'] .= script('plugins/jquery.ui.autocomplete.autoSelectOne.js'); $data['script'] .= phpscript('nformat.js'); $data['head'] = $this->rapyd->get_head(); $data['title'] = heading('Callcenter'); $this->load->view('view_ventanas', $data); }
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); }
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); }