本文整理汇总了PHP中DataEdit::script方法的典型用法代码示例。如果您正苦于以下问题:PHP DataEdit::script方法的具体用法?PHP DataEdit::script怎么用?PHP DataEdit::script使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataEdit
的用法示例。
在下文中一共展示了DataEdit::script方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dataedit
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);
}
示例2: dataedit
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);
}
示例3: dataedit
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ó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ón", "O" => "Otros", "D" => "Deducción"));
$edit->descrip = new inputField("Descripción", "descrip");
$edit->descrip->size = 45;
$edit->descrip->maxlength = 35;
$edit->descrip->rule = "strtoupper";
$edit->formula = new inputField("Fó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ó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);
}
示例4: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$script = '
$(function() {
$(".inputnum").numeric(".");
});';
$edit = new DataEdit('Metas', 'metas');
$edit->back_url = site_url('ventas/metas/filteredgrid');
$edit->script($script, 'create');
$edit->script($script, 'modify');
$edit->fecha = new dateonlyField('Fecha', 'fecha', 'm/Y');
$edit->fecha->insertValue = date('Y-m-d');
$edit->fecha->dbformat = 'Ym';
$edit->fecha->size = 7;
$edit->fecha->append('mes/año');
$edit->fecha->rule = 'required';
$edit->codigo = new dropdownField('Producto', 'codigo');
$edit->codigo->option('', 'Seleccionar');
$edit->codigo->rule = 'required';
$edit->codigo->options('SELECT TRIM(codigo),CONCAT_WS("-",TRIM(codigo),TRIM(descrip)) AS valor FROM sinv ORDER BY codigo');
//$edit->codigo->style = 'width:150px';
$edit->codigo->rule = 'required';
$edit->cantidad = new inputField('Cantidad', 'cantidad');
$edit->cantidad->size = 12;
$edit->cantidad->maxlength = 12;
$edit->cantidad->rule = 'numeric|required|positive';
$edit->cantidad->css_class = 'inputnum';
$edit->buttons('modify', 'save', 'undo', 'delete', 'back', 'add');
$edit->build();
$data['content'] = $edit->output;
$data['title'] = heading('Metas');
$data['head'] = script('jquery.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例5: dataedit
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ó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);
}
示例6: dataedit
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ó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ó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);
}
示例7: 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);
}
示例8: dataedit
function dataedit()
{
//$this->datasis->modulo_id(101,1);
$this->rapyd->load("dataedit");
$script = '
$(".inputnum").numeric(".");
';
$qformato = $this->qformato = $this->datasis->formato_cpla();
$mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'Código', 'denominacion' => 'Descripción'), 'filtro' => array('codigo' => 'Código', 'denominacion' => 'Denominacion'), 'retornar' => array('codigo' => '<#i#>'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"", 'p_uri' => array(4 => '<#i#>'));
$bcpla = $this->datasis->p_modbus($mCPLA, "cuenta");
$bcplap = $this->datasis->p_modbus($mCPLA, "cuentap");
$fbcpla = $this->datasis->p_modbus($mCPLA, "fcuenta");
$fbcplap = $this->datasis->p_modbus($mCPLA, "fcuentap");
$edit = new DataEdit($this->tits, "fondo");
$edit->script($script, "create");
$edit->script($script, "modify");
$edit->back_url = site_url("presupuesto/fondo/filteredgrid");
$edit->fondo = new inputField("F. Financiamiento", "fondo");
$edit->fondo->size = 20;
$edit->fondo->maxlength = 20;
$edit->descrip = new inputField("Descripción", "descrip");
$edit->descrip->size = 60;
$edit->descrip->maxlength = 100;
$edit->cuenta = new inputField("Cuenta. Contable", "cuenta");
$edit->cuenta->rule = 'callback_chcuentac|trim';
$edit->cuenta->size = 12;
$edit->cuenta->readonly = true;
$edit->cuenta->append($bcpla);
$edit->cuenta->group = 'Ordenes de Pago';
$edit->cuentap = new inputField("Cuenta. Pasivo", "cuentap");
$edit->cuentap->rule = 'callback_chcuentac|trim';
$edit->cuentap->size = 20;
$edit->cuentap->readonly = true;
$edit->cuentap->append($bcplap);
$edit->cuentap->group = 'Ordenes de Pago';
$edit->fcuenta = new inputField("Cuenta. Contable", "fcuenta");
$edit->fcuenta->rule = 'callback_chcuentac|trim';
$edit->fcuenta->size = 20;
//$edit->fcuenta->readonly=true;
$edit->fcuenta->append($fbcpla);
$edit->fcuenta->group = 'Fondo Anticipo';
$edit->fcuentap = new inputField("Cuenta. Pasivo", "fcuentap");
$edit->fcuentap->rule = 'callback_chcuentac|trim';
$edit->fcuentap->size = 20;
//$edit->fcuentap->readonly=true;
$edit->fcuentap->append($fbcplap);
$edit->fcuentap->group = 'Fondo Anticipo';
$edit->partidaiva = new inputField("Partida Iva", "partidaiva");
$edit->partidaiva->size = 25;
$edit->partidaiva->maxlength = 25;
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "{$this->tits}";
$data["head"] = script("jquery.pack.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例9: 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);
}
示例10: dataedit
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);
}
示例11: dataedit
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ó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ó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);
}
示例12: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$script = '
$(function() {
$(".inputnum").numeric(".");
});
';
$edit = new DataEdit("Retenciones", "rete");
$edit->back_url = site_url("finanzas/rete/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ódigo", "codigo");
$edit->codigo->mode = "autohide";
$edit->codigo->size = 7;
$edit->codigo->maxlength = 4;
$edit->codigo->rule = "required|callback_chexiste";
$edit->activida = new inputField("Pago de", "activida");
$edit->activida->size = 55;
$edit->activida->maxlength = 45;
$edit->activida->rule = "strtoupper|required";
$edit->tipo = new dropdownField("Tipo", "tipo");
$edit->tipo->option("JD", "JD");
$edit->tipo->option("JN", "JN");
$edit->tipo->option("NN", "NN");
$edit->tipo->option("NR", "NR");
$edit->tipo->style = 'width:60px';
$edit->base1 = new inputField("Base Imponible", "base1");
$edit->base1->size = 13;
$edit->base1->maxlength = 9;
$edit->base1->css_class = 'inputnum';
$edit->base1->rule = 'numeric';
$edit->tari1 = new inputField("Porcentaje de Retención", "tari1");
$edit->tari1->size = 13;
$edit->tari1->maxlength = 10;
$edit->tari1->css_class = 'inputnum';
$edit->tari1->rule = 'numeric';
$edit->pama1 = new inputField("Para pagos mayores a", "pama1");
$edit->pama1->size = 13;
$edit->pama1->maxlength = 13;
$edit->pama1->css_class = 'inputnum';
$edit->pama1->rule = 'numeric';
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$smenu['link'] = barra_menu('515');
$data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
$data['content'] = $edit->output;
$data['title'] = "<h1>Retenciones</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);
}
示例13: 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);
}
示例14: dataedit
function dataedit($status = '', $fondo = '', $codigoadm = '', $codigopres = '')
{
//$this->datasis->modulo_id(101,1);
$this->rapyd->load("dataobject", "dataedit");
$link = site_url('presupuesto/ppla/autocompleteppla');
$script = "\r\n\t\t\$(document).ready(function() {\r\n\t\t\t\$('#codigopres#').setMask('9.99.99.99.99.99');\r\n\t\t\t\$.post('{$link}',{ partida:'' },function(data){\r\n\t\t\t\tdatos=jQuery.parseJSON(data);\r\n\t\t\t\t\r\n\t\t\t\t\$('#codigopres').autocomplete({\r\n\t\t\t\t\tdelay: 0,\r\n\t\t\t\t\tminLength: 4,\r\n\t\t\t\t\tsource: datos,\r\n\t\t\t\t\tfocus: function( event, ui ) {\r\n\t\t\t\t\t\t\$( '#codigopres').val( ui.item.codigo );\r\n\t\t\t\t\t\t\$( '#denominacion').val( ui.item.denominacion );\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tselect: function( event, ui ) {\r\n\t\t\t\t\t\t\$( '#codigopres').val( ui.item.codigo );\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.data( 'autocomplete' )._renderItem = function( ul, item ) {\r\n\t\t\t\t\treturn \$( '<li></li>' )\r\n\t\t\t\t\t.data( 'item.autocomplete', item )\r\n\t\t\t\t\t.append( '<a>' +item.codigo+'-'+ item.denominacion + '</a>' )\r\n\t\t\t\t\t.appendTo( ul );\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t\t});\r\n\t\t";
$do = new DataObject("presusol");
if ($status == "create" && !empty($fondo) && !empty($codigoadm) && !empty($codigopres)) {
$keys = array("tipo" => $fondo, "codigoadm" => $codigoadm, "codigopres" => $codigopres);
$do->load($keys);
}
$edit = new DataEdit("Presupuesto", $do);
$edit->back_url = "presupuesto/presusol";
$edit->post_process('update', '_post');
$edit->post_process('insert', '_post');
$edit->script($script, 'create');
$edit->script($script, 'modify');
$edit->codigoadm = new dropdownField("Estructura Administrativa", "codigoadm");
$edit->codigoadm->options("SELECT codigo,CONCAT_WS(' ',codigo,denominacion) FROM estruadm WHERE LENGTH(codigo)=(SELECT LENGTH(valor) from valores WHERE nombre='FORMATOESTRU')");
$edit->codigoadm->mode = "autohide";
$edit->codigoadm->rule = "required";
$edit->tipo = new dropdownField("Fuente de Financiamiento", "tipo");
$edit->tipo->options("SELECT fondo, fondo AS val FROM fondo");
$edit->tipo->style = 'width:150px;';
$edit->tipo->mode = "autohide";
$edit->tipo->rule = "required";
$edit->codigopres = new inputField("Có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->asignacion = new inputField("Asignado", "asignacion");
$edit->asignacion->size = 20;
//$edit->asignacion->mode = "autohide";
//$edit->asignacion->when = array("show");
$edit->solicitado = new inputField("Solicitado", "solicitado");
$edit->solicitado->size = 20;
//$edit->solicitado->mode = "autohide";
//$edit->solicitado->when = array("show");
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$style = "\r\n\t\t.ui-autocomplete {\r\n\t\t max-height: 250px;\r\n\t\t overflow-y: auto;\r\n\t\t max-width: 600px;\r\n\t\t}\r\n\t\t html.ui-autocomplete {\r\n\t\t height: 250px;\r\n\t\t width: 600px;\r\n\t\t}\r\n\t\t";
$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);
}
示例15: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$modbus = array('tabla' => 'tban', 'columnas' => array('cod_banc' => 'Código', 'nomb_banc' => 'Nombre'), 'filtro' => array('cod_banc' => 'Código', 'nomb_banc' => 'Nombre'), 'retornar' => array('cod_banc' => 'codbanc'), 'titulo' => 'Buscar Banco');
$boton = $this->datasis->modbus($modbus);
$script = '
$(function() {
$(".inputnum").numeric(".");
});
';
$edit = new DataEdit("Movimientos en Mansivo", "bman");
$edit->back_url = site_url("finanzas/bman/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->codbanc = new inputField("Banco", "codbanc");
$edit->codbanc->size = 12;
$edit->codbanc->maxlength = 10;
$edit->codbanc->append($boton);
$edit->codbanc->rule = "required|callback_chexiste";
$edit->tipo = new dropdownField("Tipo", "tipo");
$edit->tipo->style = 'width:60px;';
$edit->tipo->option("ND", "ND");
$edit->tipo->option("NC", "NC");
$edit->tipo->option("CH", "CH");
$edit->tipo->option("DE", "DE");
$edit->numero = new inputField("Número", "numero");
$edit->numero->size = 12;
$edit->numero->maxlength = 12;
$edit->numero->rule = 'trim';
$edit->fecha = new DateField("Fecha", "fecha");
$edit->fecha->size = 12;
$edit->fecha->rule = "required";
$edit->beneficiario = new inputField("Beneficiario", "beneficiario");
$edit->beneficiario->size = 50;
$edit->beneficiario->maxlength = 50;
$edit->beneficiario->rule = 'trim|required';
$edit->monto = new inputField("Monto", "monto");
$edit->monto->size = 20;
$edit->monto->maxlength = 17;
$edit->monto->css_class = 'inputnum';
$edit->monto->rule = 'trim|numeric';
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Movimientos en Mansivo</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);
}