本文整理汇总了PHP中DataForm::post_process方法的典型用法代码示例。如果您正苦于以下问题:PHP DataForm::post_process方法的具体用法?PHP DataForm::post_process怎么用?PHP DataForm::post_process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataForm
的用法示例。
在下文中一共展示了DataForm::post_process方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$modbus = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'Código Proveedor', 'nombre' => 'Nombre', 'rif' => 'RIF'), 'filtro' => array('proveed' => 'Código Proveedor', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'proveed', 'nombre' => 'nombre'), 'titulo' => 'Buscar Proveedor');
$boton = $this->datasis->modbus($modbus);
$edit = new DataForm("Ingresar Compras", "scst");
$edit->pre_process('insert', '_pre_insert');
$edit->post_process('insert', '_post_insert');
$edit->back_url = "compras/scst";
$edit->proveedor = new inputField("Proveedor", "proveed");
$edit->proveedor->size = 10;
$edit->proveedor->maxlength = 5;
$edit->proveedor->readonly = 1;
$edit->proveedor->rule = "required";
$edit->proveedor->append($boton);
$edit->nombre = new inputField("Nombre", "nombre");
$edit->nombre->size = 50;
$edit->nombre->maxlength = 40;
$edit->nombre->readonly = 1;
$edit->nombre->in = 'proveedor';
$edit->fecha = new DateonlyField("Fecha", "fecha", "d/m/Y");
$edit->fecha->insertValue = date("Y-m-d");
$edit->fecha->mode = "autohide";
$edit->fecha->rule = "require";
$edit->fecha->size = 11;
$edit->numero = new inputField("Número", "numero");
$edit->numero->size = 15;
$edit->numero->rule = "required";
$edit->numero->mode = "autohide";
$edit->numero->maxlength = 8;
$edit->cfis = new inputField("Control fiscal", "nfiscal");
$edit->cfis->size = 15;
$edit->cfis->maxlength = 12;
$edit->cfis->rule = "required";
$edit->almacen = new dropdownField("Almacen", "depo");
$edit->almacen->size = 15;
$edit->almacen->maxlength = 8;
$edit->almacen->option("", "Seleccionar");
$edit->almacen->options("SELECT ubica, ubides FROM caub WHERE gasto='N'");
$edit->almacen->rule = "required";
$edit->almacen->style = 'width:150px;';
$edit->tipo = new dropdownField("Tipo", "tipo_doc");
$edit->tipo->option("FC", "Factura Credito");
$edit->tipo->option("NC", "Nota Credito");
$edit->tipo->option("NE", "Nota Entrega");
$edit->tipo->rule = "required";
$edit->tipo->size = 20;
$edit->tipo->style = 'width:150px;';
//***********************
// Detalles
//***********************
$edit->codigo = new inputField("Codigo", "codigo");
$edit->codigo->size = 16;
$edit->codigo->maxlength = 15;
$edit->codigo->readonly = 1;
$edit->codigo->rule = "required";
//$edit->codigo->append($boton);
$edit->descrip = new inputField("Decripcion", "descrip");
$edit->descrip->maxlength = 40;
$edit->descrip->size = 41;
$edit->descrip->rule = "required";
$edit->descrip->mode = "autohide";
$edit->descrip->readonly = 1;
$edit->descrip->in = 'codigo';
$edit->costo = new inputField("Costo", "costo");
$edit->costo->size = 15;
$edit->costo->maxlength = 20;
$edit->costo->rule = "required";
$edit->costo->insertValue = '0.0';
$edit->costo->css_class = 'inputnum';
$edit->cantidad = new inputField("Cantidad", "cantidad");
$edit->cantidad->size = 10;
$edit->cantidad->insertValue = '0';
$edit->cantidad->maxlength = 15;
$edit->cantidad->rule = "required|callback_ccana";
$edit->cantidad->css_class = 'inputnum';
$edit->importe = new inputField("Importe", "importe");
$edit->importe->size = 15;
$edit->importe->maxlength = 20;
$edit->importe->rule = "required";
$edit->importe->insertValue = '0.0';
$edit->importe->css_class = 'inputnum';
$edit->flote = new DateonlyField("Fecha de lote", "flote", "d/m/Y");
$edit->flote->insertValue = date("Y-m-d");
$edit->flote->size = 11;
//***************************
// fin detalles
//***************************
//$edit->buttons("save", "undo", "delete", "back");
$edit->build_form();
$data['content'] = $edit->output;
$data["head"] = $this->rapyd->get_head();
$data['title'] = '<h1>Compras</h1>';
//$this->load->view('view_ventanas', $data);
$this->load->view('view_prueba', $data);
}