本文整理汇总了PHP中DataEdit::pre_process方法的典型用法代码示例。如果您正苦于以下问题:PHP DataEdit::pre_process方法的具体用法?PHP DataEdit::pre_process怎么用?PHP DataEdit::pre_process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataEdit
的用法示例。
在下文中一共展示了DataEdit::pre_process方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dataedit
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);
}
示例2: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, '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->tits;
$this->load->view('view_ventanas', $data);
}
示例3: dataedit
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);
}
示例4: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, '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->tits);
$this->load->view('view_ventanas', $data);
}
示例5: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, '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->tits);
$this->load->view('view_ventanas', $data);
}
示例6: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Aplicación de Anticipos", "apan");
$edit->back_url = site_url("inventario/anticipos/filteredgrid");
$edit->pre_process('insert', '_pre_insert');
$edit->pre_process('update', '_pre_update');
$edit->numero = new inputField("Número", "numero");
$edit->numero->mode = "autohide";
$edit->numero->maxlength = 8;
$edit->numero->size = 12;
$edit->numero->rule = "trim|required";
$edit->fecha = new dateonlyField("Fecha", "fecha");
$edit->fecha->size = 12;
$edit->fecha->insertValue = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 30, date("Y")));
$edit->fecha->rule = "trim|required";
$edit->tipo = new inputField("Tipo", "tipo");
$edit->tipo->maxlength = 1;
$edit->tipo->size = 6;
$edit->tipo->rule = "trim";
$edit->clipro = new inputField("Clipro", "clipro");
$edit->clipro->maxlength = 5;
$edit->clipro->size = 6;
$edit->clipro->rule = "trim";
$edit->nombre = new inputField("Nombre", "nombre");
$edit->nombre->maxlength = 30;
$edit->nombre->size = 20;
$edit->nombre->rule = "trim";
$edit->monto = new inputField("Monto", "monto");
$edit->monto->size = 12;
$edit->monto->rule = "trim";
$edit->reinte = new inputField("Reintegro", "reinte");
$edit->reinte->maxlength = 5;
$edit->reinte->size = 6;
$edit->reinte->rule = "trim";
$edit->observa1 = new inputField("Observaciones", "observa1");
$edit->observa1->maxlength = 50;
$edit->observa1->size = 50;
$edit->observa1->rule = "trim";
$edit->observa2 = new inputField("", "observa2");
$edit->observa2->maxlength = 50;
$edit->observa2->size = 50;
$edit->observa2->rule = "trim";
$edit->transac = new inputField("Transacción", "transac");
$edit->hora = new inputField("Hora", "hora");
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Aplicación de Anticipos</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例7: dataedit
function dataedit()
{
//$this->datasis->modulo_id(101,1);
$this->rapyd->load('dataedit', 'dataobject');
$script = '
$(".inputnum").numeric(".");
';
$do = new DataObject("cajach");
$edit = new DataEdit($this->tits, $do);
$edit->back_url = site_url($this->url . "filteredgrid");
$edit->script($script, "create");
$edit->script($script, "modify");
$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->numero = new inputField("Número", "numero");
$edit->numero->mode = "autohide";
$edit->numero->when = array('show');
$edit->fapertura = new dateonlyField("Fecha Apertura", "fapertura");
$edit->fapertura->insertValue = date('Y-m-d');
$edit->fapertura->size = 12;
$edit->fapertura->rule = 'required';
$edit->fapertura->mode = "autohide";
$edit->nombre = new inputField("Nombre", 'nombre');
$edit->nombre->size = 40;
$edit->nombre->rule = "required";
$edit->descrip = new textAreaField("Descripción", 'descrip');
$edit->descrip->rows = 4;
$edit->descrip->cols = 70;
$edit->custodio = new inputField("Custodio", 'custodio');
$edit->custodio->size = 40;
$edit->custodio->rule = "required";
$edit->maximo = new inputField("Monto Maximo", 'maximo');
$edit->maximo->mode = "autohide";
$edit->maximo->size = 8;
$edit->maximo->css_class = 'inputnum';
$edit->maximo->rule = "required|callback_positivo";
$edit->activo = new dropdownField("Activo", "activo");
$edit->activo->option("S", "Si");
$edit->activo->option("N", "No");
$edit->activo->style = "width:150px";
$edit->buttons("save", "modify", "undo", "back");
$edit->build();
$smenu['link'] = barra_menu('125');
$data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
$data['content'] = $edit->output;
$data['title'] = " {$this->tits} ";
$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);
}
示例8: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit('Parametros Contables', 'cemp');
$edit->back_url = 'contabilidad/configurar';
$edit->pre_process('insert', '_pre_insert');
$edit->pre_process('update', '_pre_update');
$edit->pre_process('delete', '_pre_delete');
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->inicio = new DateonlyField('Desde', 'inicio', 'd/m/Y');
$edit->inicio->group = 'Ejercicio Fiscal';
$edit->inicio->rule = 'required';
$edit->inicio->size = 12;
$edit->final = new DateonlyField('Hasta', 'final', 'd/m/Y');
$edit->final->group = 'Ejercicio Fiscal';
$edit->final->rule = 'required';
$edit->final->size = 12;
$edit->formato = new inputField('Formato', 'formato');
$edit->formato->group = 'Ejercicio Fiscal';
$edit->formato->rule = 'trim|strtoupper|callback_chformato|required';
$edit->formato->size = 22;
$edit->formato->autocomplete = false;
$edit->resultado = new inputField('Resultado', 'resultado');
$edit->resultado->maxlength = 15;
$edit->resultado->rule = 'required';
$edit->resultado->size = 20;
$edit->patrimonio = new dropdownField('Patrimonio', 'patrimo');
$edit->patrimonio->option('', '');
$edit->patrimonio->options("SELECT SUBSTRING_INDEX(codigo, '.', 1) cuenta,SUBSTRING_INDEX(codigo, '.', 1) valor FROM cpla GROUP BY cuenta");
$edit->patrimonio->style = 'width:50px';
$edit->patrimonio->rule = 'required';
$edit->patrimonio->group = 'Ejercicio Fiscal';
$edit->ordend = new dropdownField('Deudora', 'ordend');
$edit->ordend->group = 'Cuentas de Orden';
$edit->ordend->option('', '');
$edit->ordend->options("SELECT SUBSTRING_INDEX(codigo, '.', 1) cuenta,SUBSTRING_INDEX(codigo, '.', 1) valor FROM cpla GROUP BY cuenta");
$edit->ordend->style = 'width:50px';
$edit->ordena = new dropdownField('Acreedora', 'ordena');
$edit->ordena->option('', '');
$edit->ordena->options("SELECT SUBSTRING_INDEX(codigo, '.', 1) cuenta,SUBSTRING_INDEX(codigo, '.', 1) valor FROM cpla GROUP BY cuenta");
$edit->ordena->group = 'Cuentas de Orden';
$edit->ordena->style = 'width:50px';
$edit->buttons('modify', 'save', 'undo');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head();
$data['title'] = '<h1>Configuración de la Contabilidad</h1>';
$this->load->view('view_ventanas', $data);
}
示例9: dataedit
function dataedit()
{
$parametros = $this->uri->uri_to_assoc(4);
$this->datasis->modulo_id($this->modulo, 1);
$this->rapyd->load("dataedit");
$edit = new DataEdit("Tiket", "tiket");
$edit->pre_process('insert', '_pre_insert');
$edit->pre_process('delete', '_pre_del');
$edit->post_process("insert", "_post_insert");
$edit->post_process("update", "_post_update");
$edit->post_process("delete", "_post_del");
$edit->contenido = new textareaField("Contenido", "contenido");
$edit->contenido->rule = "required";
$edit->contenido->rows = 6;
$edit->contenido->cols = 90;
$edit->padre = new inputField(" ", "padre");
$edit->padre->style = 'display: none;';
$edit->padre->type = 'hidden';
$edit->padre->when = array("create");
if (!array_key_exists('pertenece', $parametros)) {
//$edit->back_url = site_url("supervisor/tiket/filteredgrid");
$edit->back_uri = "supervisor/tiket/filteredgrid";
$edit->padre->insertValue = 'S';
$edit->prioridad = new dropdownField("Prioridad", "prioridad");
$edit->prioridad->options($this->prioridad);
$edit->prioridad->insertValue = 5;
$edit->estado = new inputField(" ", "estado");
$edit->estado->style = 'display: none;';
$edit->estado->type = 'hidden';
$edit->estado->when = array("create");
$edit->estado->insertValue = 'N';
} else {
//$edit->back_url = site_url("supervisor/tiket/ver/").$parametros['pertenece'];
$edit->back_uri = "supervisor/tiket/ver/" . $parametros['pertenece'];
$edit->padre->insertValue = 'N';
$edit->pertenece = new inputField(" ", "pertenece");
$edit->pertenece->style = 'display: none;';
$edit->pertenece->type = 'hidden';
$edit->pertenece->when = array("create");
$edit->pertenece->insertValue = $parametros['pertenece'];
}
$edit->buttons("modify", "save", "undo", "delete", 'back');
$edit->build();
$data['content'] = $edit->output;
$data["head"] = $this->rapyd->get_head();
$data['title'] = ' Crear Tiket ';
$this->load->view('view_ventanas', $data);
}
示例10: dataedit
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);
}
示例11: dataedit
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);
}
示例12: dataedit
function dataedit()
{
$this->rapyd->load('dataobject', 'dataedit');
$script = '
$(document).ready(function(){
$(".inputnum").numeric(".");
});
';
$do = new DataObject('r_interes');
$edit = new DataEdit($this->tits, $do);
$edit->back_url = site_url($this->url . "filteredgrid");
$edit->script($script, 'create');
$edit->script($script, 'modify');
$edit->pre_process('insert', '_valida');
$edit->pre_process('update', '_valida');
$edit->pre_process('delete', '_pre_delete');
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->ano = new inputField('Ano', 'ano');
$edit->ano->rule = 'trim';
$edit->ano->size = 13;
$edit->ano->maxlength = 11;
//$edit->ano->mode = 'autohide';
//$edit->ano->when =array('show','modify');
$edit->mes = new dropDownField('Mes', 'mes');
for ($i = 1; $i <= 12; $i++) {
$edit->mes->option($i, $i);
}
$edit->mes->rule = 'trim';
$edit->mes->size = 13;
$edit->mes->maxlength = 11;
//$edit->mes->mode = 'autohide';
//$edit->mes->when =array('show','modify');
$edit->monto = new inputField('Monto', 'monto');
$edit->monto->rule = 'trim|numeric';
$edit->monto->css_class = 'inputnum';
$edit->monto->size = 21;
$edit->monto->maxlength = 19;
$edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css');
$data['title'] = $this->tits;
$this->load->view('view_ventanas', $data);
}
示例13: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$modbus = array('tabla' => 'maes', 'columnas' => array('codigo' => 'Código', 'descrip' => 'Descripción', 'precio1' => 'Precio 1', 'precio2' => 'Precio 2', 'precio3' => 'Precio 3', 'precio4' => 'Precio 4', 'precio5' => 'Precio 5'), 'filtro' => array('codigo' => 'Código', 'descrip' => 'Descripción'), 'retornar' => array('codigo' => 'codigo'), 'titulo' => 'Buscar en inventario');
$boton = $this->datasis->modbus($modbus);
$script = '
$(function() {
$(".inputnum").numeric(".");
});';
$edit = new DataEdit("Inventario Express", "maesfisico");
$edit->pre_process('insert', '_pre_insert');
$edit->back_url = site_url("supermercado/efisico/filteredgrid");
$edit->script($script, "create");
$edit->script($script, "modify");
$edit->id = new inputField("ID", "id");
$edit->id->mode = "autohide";
$edit->id->when = array('show');
$edit->codigo = new inputField("Código", "codigo");
$edit->codigo->size = 20;
$edit->codigo->append($boton);
$edit->codigo->mode = "autohide";
$edit->codigo->maxlength = 15;
$edit->codigo->rule = "trim|required";
$edit->ubica = new dropdownField("Almacen", "ubica");
$edit->ubica->option("", "Seleccionar");
$edit->ubica->options("SELECT ubica,CONCAT(ubica,' ',ubides) descrip FROM caub WHERE gasto='N' ");
$edit->ubica->rule = "trim|required";
$edit->locali = new inputField("Localización", "locali");
$edit->locali->size = 9;
$edit->locali->maxlength = 5;
$edit->locali->rule = "trim";
$edit->cantidad = new inputField("Cantidad", "cantidad");
$edit->cantidad->size = 15;
$edit->cantidad->css_class = 'inputnum';
$edit->cantidad->maxlength = 11;
$edit->cantidad->rule = "numeric|callback_ccana";
$edit->fraccion = new inputField("Fracción", "fraccion");
$edit->fraccion->size = 15;
$edit->fraccion->css_class = 'inputnum';
$edit->fraccion->maxlength = 11;
$edit->fraccion->rule = "numeric|callback_ccana";
$edit->fecha = new DateonlyField("Fecha", "fecha", "d/m/Y");
$edit->fecha->insertValue = date("Y-m-d");
$edit->fecha->rule = "required";
$edit->fecha->size = 12;
//$edit->hora = new inputField("Hora","hora");
//$edit->hora->size =8;
//$edit->hora->rule='callback_chhora|trim';
//$edit->hora->append('hh:mm:ss');
//$edit->hora->rule="trim";
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Inventario Express</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);
}
示例14: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$script = '
$(function() {
$(".inputnum").numeric(".");
});
';
$edit = new DataEdit("Cambio de IVA", "civa");
$edit->back_url = site_url("tesoreria/civa/filteredgrid");
$edit->script($script, "create");
$edit->script($script, "modify");
$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->fecha = new DateField("Fecha", "fecha");
$edit->fecha->mode = "autohide";
$edit->fecha->rule = 'required';
//$edit->fecha->rule= 'required|callback_chexiste';
$edit->fecha->size = 12;
$edit->tasa = new inputField("Tasa", "tasa");
$edit->tasa->size = 8;
$edit->tasa->maxlength = 6;
$edit->tasa->rule = "required|numeric|trim";
$edit->tasa->css_class = 'inputnum';
$edit->redutasa = new inputField("Tasa Reducida", "redutasa");
$edit->redutasa->size = 8;
$edit->redutasa->maxlength = 6;
$edit->redutasa->css_class = 'inputnum';
$edit->redutasa->rule = 'numeric|trim';
$edit->sobretasa = new inputField("Tasa Adicional", "sobretasa");
$edit->sobretasa->size = 8;
$edit->sobretasa->maxlength = 6;
$edit->sobretasa->css_class = 'inputnum';
$edit->sobretasa->rule = 'numeric|trim';
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "Cambio de Iva";
$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);
}
示例15: dataedit
function dataedit()
{
$this->rapyd->load('dataobject', 'dataedit');
$qformato = $this->qformato = $this->datasis->formato_cpla();
$modbus = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'Código', 'denominacion' => 'Denominación'), 'filtro' => array('codigo' => 'Có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->tits, "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ó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ó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->tits}";
$this->load->view('view_ventanas', $data);
}