当前位置: 首页>>代码示例>>PHP>>正文


PHP barra_menu函数代码示例

本文整理汇总了PHP中barra_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP barra_menu函数的具体用法?PHP barra_menu怎么用?PHP barra_menu使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了barra_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dataedit


//.........这里部分代码省略.........
     $edit->precio->showformat = 'decimal';
     $ivas = $this->datasis->ivaplica();
     $edit->tasaiva = new dropdownField("IVA <#o#>", "tasaiva_<#i#>");
     $edit->tasaiva->option($ivas['tasa'], $ivas['tasa'] . '%');
     $edit->tasaiva->option($ivas['redutasa'], $ivas['redutasa'] . '%');
     $edit->tasaiva->option($ivas['sobretasa'], $ivas['sobretasa'] . '%');
     $edit->tasaiva->option('0', '0.00%');
     $edit->tasaiva->db_name = 'tasaiva';
     $edit->tasaiva->rule = 'positive';
     $edit->tasaiva->style = "30px";
     $edit->tasaiva->rel_id = 'gitser';
     $edit->tasaiva->onchange = "importe(<#i#>)";
     $edit->iva = new inputField("importe <#o#>", "iva_<#i#>");
     $edit->iva->db_name = 'iva';
     $edit->iva->css_class = 'inputnum';
     $edit->iva->rel_id = 'gitser';
     $edit->iva->size = 8;
     $edit->iva->rule = 'positive|callback_chretiva';
     $edit->iva->onkeyup = "valida(<#i#>)";
     $edit->iva->showformat = 'decimal';
     $edit->importe = new inputField("importe <#o#>", "importe_<#i#>");
     $edit->importe->db_name = 'importe';
     $edit->importe->css_class = 'inputnum';
     $edit->importe->rel_id = 'gitser';
     $edit->importe->size = 10;
     $edit->importe->onkeyup = "valida(<#i#>)";
     $edit->importe->showformat = 'decimal';
     $edit->departa = new dropdownField("Departamento <#o#>", "departa_<#i#>");
     $edit->departa->option('', 'Seleccionar');
     $edit->departa->options("SELECT codigo, CONCAT_WS('-',codigo,departam) AS label FROM dept ORDER BY codigo");
     $edit->departa->db_name = 'departa';
     $edit->departa->rule = 'required';
     $edit->departa->style = 'width:100px';
     $edit->departa->rel_id = 'gitser';
     $edit->departa->onchange = "gdeparta(this.value)";
     $edit->sucursal = new dropdownField("Sucursal <#o#>", "sucursal_<#i#>");
     //$edit->sucursal->option('','Seleccionar');
     $edit->sucursal->options("SELECT codigo,CONCAT(codigo,'-', sucursal) AS sucursal FROM sucu ORDER BY codigo");
     $edit->sucursal->db_name = 'sucursal';
     $edit->sucursal->rule = 'required';
     $edit->sucursal->style = 'width:100px';
     $edit->sucursal->rel_id = 'gitser';
     $edit->sucursal->onchange = "gsucursal(this.value)";
     //*****************************
     //Fin de campos para detalle
     //*****************************
     //*****************************
     //Campos para el detalle reten
     //****************************
     //$edit->itorigen = new autoUpdateField('origen','SCST','SCST');
     //$edit->itorigen->rel_id ='gereten';
     $edit->codigorete = new dropdownField('', 'codigorete_<#i#>');
     $edit->codigorete->option('', 'Seleccionar');
     $edit->codigorete->options('SELECT TRIM(codigo) AS codigo,TRIM(CONCAT_WS("-",codigo,activida)) AS activida FROM rete ORDER BY codigo');
     $edit->codigorete->db_name = 'codigorete';
     $edit->codigorete->rule = 'max_length[4]';
     $edit->codigorete->style = 'width: 350px';
     $edit->codigorete->rel_id = 'gereten';
     $edit->codigorete->onchange = 'post_codigoreteselec(<#i#>,this.value)';
     $edit->base = new inputField('base', 'base_<#i#>');
     $edit->base->db_name = 'base';
     $edit->base->rule = 'max_length[10]|numeric|positive';
     $edit->base->css_class = 'inputnum';
     $edit->base->size = 12;
     $edit->base->rel_id = 'gereten';
     $edit->base->maxlength = 10;
     $edit->base->onkeyup = 'importerete(<#i#>)';
     $edit->base->showformat = 'decimal';
     $edit->porcen = new inputField('porcen', 'porcen_<#i#>');
     $edit->porcen->db_name = 'porcen';
     $edit->porcen->rule = 'max_length[5]|numeric|positive';
     $edit->porcen->css_class = 'inputnum';
     $edit->porcen->size = 7;
     $edit->porcen->rel_id = 'gereten';
     $edit->porcen->readonly = true;
     $edit->porcen->maxlength = 5;
     $edit->porcen->showformat = 'decimal';
     $edit->monto = new inputField('monto', 'monto_<#i#>');
     $edit->monto->db_name = 'monto';
     $edit->monto->rule = 'max_length[10]|numeric|positive';
     $edit->monto->css_class = 'inputnum';
     $edit->monto->rel_id = 'gereten';
     $edit->monto->size = 12;
     $edit->monto->readonly = true;
     $edit->monto->maxlength = 8;
     $edit->monto->showformat = 'decimal';
     //*****************************
     //Fin de campos para detalle
     //*****************************
     $edit->buttons('save', 'undo', 'delete', 'back', 'add_rel');
     $edit->build();
     //echo $edit->_dataobject->db->last_query();
     $smenu['link'] = barra_menu('518');
     $conten['form'] =& $edit;
     $data['content'] = $this->load->view('view_gsercol', $conten, true);
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $data['title'] = heading('Registro de Gastos o Nota de D&eacute;bito');
     $data['head'] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('redmond/jquery-ui-1.8.1.custom.css') . $this->rapyd->get_head() . phpscript('nformat.js') . script('plugins/jquery.floatnumber.js');
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:101,代码来源:gsercol.php

示例2: dataedit


//.........这里部分代码省略.........
     $edit->total2->size = 8;
     $edit->multiple = new dropDownField("Factura Multiple", 'multiple');
     $edit->multiple->option('N', 'NO');
     $edit->itocompra = new inputField("(<#o#>) Descripci&oacute;n", "ocompra_<#i#>");
     $edit->itocompra->db_name = 'ocompra';
     $edit->itocompra->size = 15;
     $edit->itocompra->rel_id = 'itodirect';
     //$edit->itocompra->readonly =true;
     $edit->itocompra->type = 'inputhidden';
     $edit->itcodigoadm = new inputField("Estructura\tAdministrativa", "itcodigoadm_<#i#>");
     $edit->itcodigoadm->type = 'inputhidden';
     $edit->itcodigoadm->db_name = 'codigoadm';
     $edit->itcodigoadm->rel_id = 'itodirect';
     $edit->itcodigoadm->rule = 'required';
     $edit->itcodigoadm->autocomplete = false;
     $edit->itpartida = new inputField("(<#o#>) Partida", "partida_<#i#>");
     //$edit->itpartida->rule='|required';
     $edit->itpartida->type = 'inputhidden';
     $edit->itpartida->db_name = 'partida';
     $edit->itpartida->rel_id = 'itodirect';
     $edit->itpartida->autocomplete = false;
     //$edit->itpartida->readonly =true;
     $edit->itdenominacion = new inputField("(<#o#>) Descripci&oacute;n", "denominacion_<#i#>");
     $edit->itdenominacion->db_name = 'pdenominacion';
     $edit->itdenominacion->type = 'inputhidden';
     $edit->itdenominacion->rel_id = 'itodirect';
     $edit->itdenominacion->pointer = true;
     $edit->itdenominacion->readonly = true;
     $edit->itprecio = new inputField("(<#o#>) Precio", "precio_<#i#>");
     $edit->itprecio->css_class = 'inputnum';
     $edit->itprecio->db_name = 'precio';
     $edit->itprecio->rel_id = 'itodirect';
     $edit->itprecio->rule = 'callback_positivo';
     $edit->itprecio->onchange = 'cal_importe(<#i#>);';
     $edit->itprecio->size = 8;
     $edit->status = new dropdownField("Estado", "status");
     $edit->status->option("C", "Por Elaborar");
     $edit->status->option("C2", "Causado");
     $edit->status->option("C1", "Por Causar");
     $edit->status->option("C3", "Pagado");
     $edit->status->option("CA", "Anulada");
     $edit->status->style = "width:150px";
     $edit->status->mode = 'autohide';
     $status = $edit->get_from_dataobjetct('status');
     if ($status == 'C1') {
         $action = "javascript:window.location='" . site_url($this->url . 'actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_status", 'Causar', $action, "TR", "show");
         $action = "javascript:btn_anulaf('" . $edit->rapyd->uri->get_edited_id() . "')";
         if ($this->datasis->puede(156)) {
             $edit->button_status("btn_anular", 'Anular', $action, "TR", "show");
         }
         $edit->buttons("modify", "save", "delete");
     } elseif ($status == 'C2') {
         $action = "javascript:window.location='" . site_url('presupuesto/opago/modconc/odirect/modify/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_moconc", 'Modificar Concepto', $action, "TR", "show");
         //$action = "javascript:window.location='" .site_url($this->url.'reversar/'.$edit->rapyd->uri->get_edited_id()). "'";
         //$edit->button_status("btn_rever",'Reversar',$action,"TR","show");
         $action = "javascript:btn_anulaf('" . $edit->rapyd->uri->get_edited_id() . "')";
         if ($this->datasis->puede(156)) {
             $edit->button_status("btn_anular", 'Anular', $action, "TR", "show");
         }
     } elseif ($status == 'C3') {
         $multiple = $edit->get_from_dataobjetct('multiple');
         if ($multiple == "N") {
             $action = "javascript:window.location='" . site_url($this->url . 'camfac/dataedit/modify/' . $edit->rapyd->uri->get_edited_id()) . "'";
             $edit->button_status("btn_camfac", 'Modificar Factura', $action, "TR", "show");
         }
     } elseif ($status == "C") {
         $edit->buttons("modify", "save", "delete");
     } elseif ($status == "CA") {
         $edit->buttons("delete");
     } else {
         $edit->buttons("save");
     }
     $edit->buttons("undo", "back", "add_rel");
     $edit->build();
     //SELECT codigo,base1,tari1,pama1 FROM rete
     $query = $this->db->query('SELECT codigo,base1,tari1,pama1 FROM rete');
     $rt = array();
     foreach ($query->result_array() as $row) {
         $pivot = array('base1' => $row['base1'], 'tari1' => $row['tari1'], 'pama1' => $row['pama1']);
         $rt['_' . $row['codigo']] = $pivot;
     }
     $rete = json_encode($rt);
     $conten['rete'] = $rete;
     $ivaplica = $this->ivaplica2();
     $conten['ivar'] = $ivaplica['redutasa'];
     $conten['ivag'] = $ivaplica['tasa'];
     $conten['ivaa'] = $ivaplica['sobretasa'];
     $conten['imptimbre'] = $this->datasis->traevalor('IMPTIMBRE');
     $conten['impmunicipal'] = $this->datasis->traevalor('IMPMUNICIPAL');
     $smenu['link'] = barra_menu('129');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('view_opagoc', $conten, true);
     //$data['content'] = $edit->output;
     $data['title'] = "{$this->tits}";
     $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:opagocante20140630.php

示例3: dataedit

    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $mSCLId = array('tabla' => 'scli', 'columnas' => array('cliente' => 'Codigo Cliente', 'nombre' => 'Nombre', 'contacto' => 'Contacto', 'nomfis' => 'Nom. Fiscal'), 'filtro' => array('cliente' => 'Codigo Cliente', 'nombre' => 'Nombre'), 'retornar' => array('cliente' => 'cliente', 'nomfis' => 'nomfis'), 'titulo' => 'Buscar Cliente');
        $qformato = $this->qformato = $this->datasis->formato_cpla();
        $mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'C&oacute;digo', 'descrip' => 'Descripci&oacute;n'), 'filtro' => array('codigo' => 'C&oacute;digo', 'denominacion' => 'Denominaci&oacute;n'), 'retornar' => array('codigo' => 'cuenta'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"");
        $bsclid = $this->datasis->modbus($mSCLId);
        $bcpla = $this->datasis->modbus($mCPLA);
        $link8 = site_url('presupuesto/sprv/sugerir/');
        $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;odigo', 'nombre' => 'Nombre', 'rif' => 'Rif', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'C&oacute;digo', 'nombre' => 'Nombre', 'rif' => 'Rif'), 'retornar' => array('proveed' => 'cod_prov'), 'titulo' => 'Buscar Beneficiario');
        $bSPRV = $this->datasis->p_modbus($mSPRV, "proveed");
        $smenu['link'] = barra_menu('131');
        $consulrif = $this->datasis->traevalor('CONSULRIF');
        $consulsnc = $this->datasis->traevalor('CONSULSNC');
        $link2 = site_url('presupuesto/sprv/traesnc');
        $link = site_url('presupuesto/sprv/uproveed');
        $script = '
		$(function() {
			$("#tr_gr_desc").hide();
			$("#grupo").change(function(){grupo();}).change();
			$(".inputnum").numeric(".");
			$("#banco1").change(function () { acuenta(); }).change();
			$("#banco2").change(function () { acuenta(); }).change();
		});
		function grupo(){
			t=$("#grupo").val();			
			a=$("#grupo :selected").text();
			$("#gr_desc").val(a);
		}
		function acuenta(){
			for(i=1;i<=2;i++){
				vbanco=$("#banco"+i).val();
				if(vbanco.length>0){
					$("#tr_cuenta"+i).show();
				}else{
					$("#cuenta"+i).val("");
					$("#tr_cuenta"+i).hide();
				}
			}		
		}
		function anomfis(){
				vtiva=$("#tiva").val();
				if(vtiva=="C" || vtiva=="E" || vtiva=="R"){
					$("#tr_nomfis").show();
					$("#tr_riff").show();
				}else{
					$("#nomfis").val("");
					$("#rif").val("");
					$("#tr_nomfis").hide();
					$("#tr_rif").hide();
				}
		}
		
		function consulrif(){
				vrif=$("#rif").val();
				if(vrif.length==0){
					alert("Debe introducir primero un RIF");
				}else{
					vrif=vrif.toUpperCase();
					$("#rif").val(vrif);
					window.open("' . $consulrif . '"+"?p_rif="+vrif,"CONSULRIF","height=350,width=410");
				}
		}
		
		function consulsnc(){
				vrif=$("#rif").val();
				if(vrif.length==0){
					alert("Debe introducir primero un RIF");
				}else{
					vrif=vrif.toUpperCase();
					$("#rif").val(vrif);
					window.open("' . $consulsnc . '"+"p=1&rif="+vrif+"&search=RIF","CONSULSNC","height=350,width=1024");
				}
		}
		
		function ultimo(){
			$.ajax({
				url: "' . $link . '",
				success: function(msg){
				  alert( "El ultimo codigo ingresado fue: " + msg );
				}
			});
		}
		
		function sugerir(){
		
			$.ajax({
				url: "' . $link8 . '",
				success: function(msg){
					if(msg){
						$("#proveed").val(msg);
					}
					else{
						alert("No es posible generar otra sugerencia. Coloque el c&oacute;digo manualmente");
					}
				}
			});
		}
		
		function traesnc(){
//.........这里部分代码省略.........
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:sprv.php

示例4: dataedit


//.........这里部分代码省略.........
     if ($ueje !== false) {
         $edit->uadministra->options("SELECT codigo,nombre FROM uadministra WHERE codigoejec='{$ueje}' ORDER BY nombre");
     } else {
         $edit->uadministra->option("", "Seleccione una unidad ejecutora primero");
     }
     $edit->fondo = new dropdownField("F. Financiamiento", "fondo");
     $edit->fondo->rule = 'required';
     $edit->fondo->db_name = 'fondo';
     $edit->fondo->options("SELECT tipo,tipo a  FROM presupuesto WHERE tipo<>'' GROUP BY tipo ORDER BY tipo desc");
     $edit->fondo->style = "width:100px;";
     $edit->tdisp = new inputField("Total Disponibilidad", "tdisp");
     $edit->tdisp->size = 10;
     $edit->tdisp->readonly = true;
     $edit->tdisp->css_class = 'inputnum';
     //$edit->tdisp->mode     ="autohide";
     $edit->tsoli = new inputField("Total Solicitado", "tsoli");
     $edit->tsoli->size = 10;
     $edit->tsoli->readonly = true;
     $edit->tsoli->css_class = 'inputnum';
     //************************** FIN   ENCABEZADO********************************************************************
     //**************************INICIO DETALLE DE ASIGNACIONES  *****************************************************
     $edit->itcodigoadm = new inputField("Estructura\tAdministrativa", "itcodigoadm_<#i#>");
     $edit->itcodigoadm->db_name = 'codigoadm';
     $edit->itcodigoadm->rel_id = 'itcdisp';
     $edit->itcodigoadm->rule = 'required';
     $edit->itcodigoadm->size = 10;
     $edit->itcodigoadm->autocomplete = false;
     if ($status == 'O') {
         $edit->itcodigoadm->readonly = true;
     }
     //$edit->itcodigoadm->mode    ="autohide";
     $edit->itcodigopres = new inputField("(<#o#>) ", "itcodigopres_<#i#>");
     $edit->itcodigopres->rule = 'required|callback_itorden';
     $edit->itcodigopres->size = 15;
     $edit->itcodigopres->db_name = 'codigopres';
     $edit->itcodigopres->rel_id = 'itcdisp';
     $edit->itcodigopres->autocomplete = false;
     //$edit->itcodigopres->readonly =true;
     $edit->itcodigopres->append($btn);
     if ($status == 'O') {
         $edit->itcodigopres->readonly = true;
     }
     //$edit->itcodigopres->mode    ="autohide";
     //$edit->itfondo = new inputField("(<#o#>) Fondo","itfondo_<#i#>");
     //$edit->itfondo->rule   ='required';
     //$edit->itfondo->db_name='fondo';
     //$edit->itfondo->rel_id ='itcdisp';
     //$edit->itfondo->size     =10;
     //if($status=='O' )
     //$edit->itfondo->readonly = true;
     //$edit->itfondo->mode     ="autohide";
     $edit->itdenomi = new inputField("(<#o#>) Denominacion", "itdenomi_<#i#>");
     //$edit->itdenomi->rule   ='required';
     $edit->itdenomi->db_name = 'denomi';
     $edit->itdenomi->rel_id = 'itcdisp';
     $edit->itdenomi->pointer = true;
     $edit->itdenomi->size = 40;
     $edit->itdenomi->readonly = true;
     //$edit->itdenomi->mode     ="autohide";
     $edit->itdisp = new inputField("(<#o#>) Disponible", 'itdisp_<#i#>');
     $edit->itdisp->db_name = 'disp';
     $edit->itdisp->size = 10;
     $edit->itdisp->rel_id = 'itcdisp';
     $edit->itdisp->css_class = 'inputnum';
     $edit->itdisp->readonly = true;
     $edit->itsoli = new inputField("(<#o#>) Solicitado", 'itsoli_<#i#>');
     $edit->itsoli->db_name = 'soli';
     $edit->itsoli->size = 10;
     $edit->itsoli->rule = 'callback_positivo';
     $edit->itsoli->rel_id = 'itcdisp';
     $edit->itsoli->css_class = 'inputnum';
     $edit->itsoli->onchange = 'cal_soli();';
     if ($status == 'O') {
         $edit->itsoli->readonly = true;
     }
     //$edit->itmontoa->mode      ="autohide";
     //************************** FIN   DETALLE DE ORDENES DEPAGO*****************************************************
     $status = $edit->get_from_dataobjetct('status');
     if ($status == 'P') {
         $action = "javascript:window.location='" . site_url($this->url . 'cd_precomprometer/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_termina", 'Pre-Comprometer', $action, "TR", "show");
         $edit->buttons("add_rel", "modify", "save", "delete");
     } elseif ($status == 'C') {
         $action = "javascript:btn_anular('" . $edit->rapyd->uri->get_edited_id() . "')";
         $edit->button_status("btn_anula", 'Anular Pre-Compromiso', $action, "TR", "show");
         $action = "javascript:window.location='" . site_url($this->url . 'cd_finalizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_deshapartar", 'Finalizar Pre-Compromiso', $action, "TR", "show");
     }
     $edit->buttons("add", "add_rel", "save", "undo", "back");
     $edit->build();
     $smenu['link'] = barra_menu('304');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('view_cdisp', $conten, true);
     //$data['content'] = $edit->output;
     $data['title'] = $this->tits;
     $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
     //.script('plugins/jquery.autocomplete.js').style('jquery.autocomplete.css')
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:cdisp.php

示例5: dataedit


//.........这里部分代码省略.........
     $do->rel_one_to_many('itspre', 'itspre', array('numero' => 'numero'));
     $do->pointer('scli', 'scli.cliente=spre.cod_cli', 'scli.nombre as sclinombre', 'LEFT');
     $do->rel_pointer('itspre', 'sinv', 'itspre.codigo=sinv.codigo', 'sinv.descrip as sinvdescrip');
     $edit = new DataDetails("presupuestos", $do);
     //$edit->post_process("insert","_guarda_detalle");
     //$edit->post_process("update","_actualiza_detalle");
     //$edit->post_process("delete","_borra_detalle");
     //$edit->pre_process('insert','_pre_insert');
     $edit->back_url = site_url("ventas/presup/index");
     $edit->fecha = new DateonlyField("Fecha", "fecha", "d/m/Y");
     $edit->fecha->insertValue = date("Y-m-d");
     $edit->fecha->mode = "autohide";
     $edit->fecha->size = 10;
     $edit->vende = new dropdownField("Vendedor", "vd");
     $edit->vende->options("SELECT vendedor, CONCAT(vendedor,' ',nombre) nombre FROM vend ORDER BY vendedor");
     $edit->vende->size = 5;
     $edit->peso = new inputField("Peso", "peso");
     $edit->peso->size = 10;
     $edit->numero = new inputField("N&uacute;mero", "numero");
     $edit->numero->size = 10;
     $edit->numero->rule = "required";
     $edit->numero->mode = "autohide";
     $edit->numero->maxlength = 8;
     $edit->tipo = new inputField("Tipo", "tipo_doc");
     $edit->tipo->size = 5;
     $edit->iva = new inputField("IVA", "iva");
     $edit->iva->size = 20;
     $edit->iva->css_class = 'inputnum';
     $edit->subtotal = new inputField("Sub.Total", "totals");
     $edit->subtotal->size = 20;
     $edit->subtotal->css_class = 'inputnum';
     $edit->total = new inputField("Total", "totalg");
     $edit->total->size = 20;
     $edit->total->css_class = 'inputnum';
     $edit->inicial = new inputField("Inicial", "inicial");
     $edit->inicial->size = 20;
     $edit->inicial->css_class = 'inputnum';
     $edit->cliente = new inputField("Cliente", "cod_cli");
     $edit->cliente->size = 10;
     $edit->cliente->maxlength = 5;
     $edit->cliente->append($boton);
     $edit->nombre = new inputField("Nombre", "sclinombre");
     $edit->nombre->pointer = TRUE;
     $edit->nombre->size = 55;
     $edit->nombre->maxlength = 40;
     $edit->nombre->in = 'cliente';
     $edit->rifci = new inputField("RIF/CI", "rifci");
     $edit->rifci->size = 20;
     $edit->rifci->rule = "required";
     $edit->direc = new inputField("Direcci&oacute;n", "direc");
     $edit->direc->size = 55;
     $edit->direc->rule = "required";
     $edit->dire1 = new inputField(" ", "dire1");
     $edit->dire1->size = 55;
     $edit->condi1 = new inputField("Condici&oacute;n", "condi1");
     $edit->condi1->size = 55;
     $edit->condi2 = new inputField(" ", "condi2");
     $edit->condi2->size = 55;
     //Campos para el detalle
     $edit->codigo = new inputField("C&oacute;digo", "codigo<#i#>");
     $edit->codigo->size = 18;
     $edit->codigo->db_name = 'codigo';
     $edit->codigo->append($this->datasis->p_modbus($modbus, '<#i#>'));
     $edit->codigo->readonly = TRUE;
     $edit->codigo->rel_id = 'itspre';
     $edit->descripcion = new inputField("Descripci&oacute;n", "sinvdescrip<#i#>");
     $edit->descripcion->size = 30;
     $edit->descripcion->db_name = 'sinvdescrip';
     //$edit->descripcion->maxlength=12;
     $edit->descripcion->pointer = true;
     $edit->descripcion->rel_id = 'itspre';
     $edit->cantidad = new inputField("Cantidad", "cana<#i#>");
     $edit->cantidad->size = 10;
     $edit->cantidad->db_name = 'cana';
     $edit->cantidad->maxlength = 60;
     $edit->cantidad->css_class = 'inputnum';
     $edit->cantidad->rel_id = 'itspre';
     $edit->precio = new inputField("Precio", "preca<#i#>");
     $edit->precio->css_class = 'inputnum';
     $edit->precio->onchange = 'totalizar()';
     $edit->precio->size = 20;
     $edit->precio->db_name = 'preca';
     $edit->precio->rel_id = 'itspre';
     $edit->importe = new inputField2("Importe", "totaorg<#i#>");
     $edit->importe->db_name = 'totaorg';
     $edit->importe->size = 20;
     $edit->importe->css_class = 'inputnum';
     $edit->importe->rel_id = 'itspre';
     //fin de campos para detalle
     $edit->buttons("save", "undo", "delete", 'modify', "back", "add_rel");
     $edit->build();
     /*print_r($do->_pointer_data);
     		print_r($do->_rel_pointer_data);*/
     $smenu['link'] = barra_menu('104');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $data['content'] = $edit->output;
     $data["head"] = script("jquery.js") . $this->rapyd->get_head();
     $data['title'] = '<h1>Presupuesto</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:101,代码来源:presup.php

示例6: dataedit


//.........这里部分代码省略.........
     $edit->itexento->rel_id = 'itfac';
     $edit->itexento->css_class = "inputnum";
     if ($status == "B3") {
         $edit->itexento->mode = "autohide";
     }
     $edit->itivag = new inputField("(<#o#>) % IVA General", "ivag_<#i#>");
     $edit->itivag->size = 8;
     $edit->itivag->db_name = 'ivag';
     $edit->itivag->rel_id = 'itfac';
     $edit->itivag->onchange = 'cal_itivag(<#i#>);';
     $edit->itivag->css_class = "inputnum";
     if ($status == "B3") {
         $edit->itivag->mode = "autohide";
     }
     $edit->itivar = new inputField("(<#o#>) % IVA Reducido", "ivar_<#i#>");
     $edit->itivar->size = 8;
     $edit->itivar->db_name = 'ivar';
     $edit->itivar->rel_id = 'itfac';
     $edit->itivar->onchange = 'cal_itivar(<#i#>);';
     $edit->itivar->css_class = "inputnum";
     if ($status == "B3") {
         $edit->itivar->mode = "autohide";
     }
     $edit->itivaa = new inputField("(<#o#>) % IVA Adicional", "ivaa_<#i#>");
     $edit->itivaa->size = 8;
     $edit->itivaa->db_name = 'ivaa';
     $edit->itivaa->rel_id = 'itfac';
     $edit->itivaa->onchange = 'cal_itivaa(<#i#>);';
     $edit->itivaa->css_class = "inputnum";
     if ($status == "B3") {
         $edit->itivaa->mode = "autohide";
     }
     $edit->itreteiva = new inputField("(<#o#>) % IVA Adicional", "reteiva_<#i#>");
     $edit->itreteiva->size = 8;
     $edit->itreteiva->db_name = 'reteiva';
     $edit->itreteiva->rel_id = 'itfac';
     $edit->itreteiva->readonly = true;
     if ($status == "B3") {
         $edit->itreteiva->mode = "autohide";
     }
     $edit->ittotal = new inputField("(<#o#>) % IVA Adicional", "total_<#i#>");
     $edit->ittotal->size = 8;
     $edit->ittotal->db_name = 'total';
     $edit->ittotal->rel_id = 'itfac';
     $edit->ittotal->readonly = true;
     if ($status == "B3") {
         $edit->ittotal->mode = "autohide";
     }
     $edit->ittotal2 = new inputField("(<#o#>) % IVA Adicional", "total2_<#i#>");
     $edit->ittotal2->size = 8;
     $edit->ittotal2->db_name = 'total2';
     $edit->ittotal2->rel_id = 'itfac';
     $edit->ittotal2->readonly = true;
     if ($status == "B3") {
         $edit->ittotal2->mode = "autohide";
     }
     //fin relacion itfac
     if ($status == 'B1') {
         $action = "javascript:window.location='" . site_url($this->url . 'actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_status", 'Actualizar', $action, "TR", "show");
         $edit->buttons("modify", "save");
     } elseif ($status == 'B2') {
         $action = "javascript:window.location='" . site_url('presupuesto/common/pd_anular/' . $edit->rapyd->uri->get_edited_id()) . "'";
         if ($this->datasis->puede('1015')) {
             $edit->button_status("btn_anular", 'Anular', $action, "TR", "show");
         }
     } elseif ($status == 'B3') {
         $multiple = $edit->get_from_dataobjetct('multiple');
         if ($multiple == "N") {
             $action = "javascript:window.location='" . site_url($this->url . 'camfac/dataedit/modify/' . $edit->rapyd->uri->get_edited_id()) . "'";
             $edit->button_status("btn_camfac", 'Modificar Factura', $action, "TR", "show");
         }
     } else {
         $edit->buttons("save");
     }
     $edit->buttons("undo", "back", "add_rel");
     $edit->build();
     $query = $this->db->query('SELECT codigo,base1,tari1,pama1 FROM rete');
     $rt = array();
     foreach ($query->result_array() as $row) {
         $pivot = array('base1' => $row['base1'], 'tari1' => $row['tari1'], 'pama1' => $row['pama1']);
         $rt['_' . $row['codigo']] = $pivot;
     }
     $rete = json_encode($rt);
     $conten['rete'] = $rete;
     $ivaplica = $this->ivaplica2();
     $conten['status'] = $status;
     $conten['ivar'] = $ivaplica['redutasa'];
     $conten['ivag'] = $ivaplica['tasa'];
     $conten['ivaa'] = $ivaplica['sobretasa'];
     $conten['imptimbre'] = $this->datasis->traevalor('IMPTIMBRE');
     $conten['impmunicipal'] = $this->datasis->traevalor('IMPMUNICIPAL');
     $smenu['link'] = barra_menu('119');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('view_odirectmulti', $conten, true);
     $data['title'] = " {$this->tits} ";
     $data["head"] = $this->rapyd->get_head() . script('jquery.js') . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.json.min.js");
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:odirectmulti.php

示例7: dataedit


//.........这里部分代码省略.........
     }
     //$edit->reteiva->mode="autohide";
     $edit->reten = new inputField("Retencion de ISLR", 'reten');
     $edit->reten->css_class = 'inputnum';
     $edit->reten->size = 8;
     if ($status == 'P') {
         $edit->reten->readonly = true;
     }
     //$edit->reten->mode="autohide";
     $edit->total2 = new inputField("Total", 'total2');
     $edit->total2->css_class = 'inputnum';
     $edit->total2->size = 8;
     if ($status == 'P') {
         $edit->total2->readonly = true;
     }
     //$edit->total2->mode="autohide";
     $edit->itdescripcion = new textareaField("(<#o#>) Descripci&oacute;n", "descripcion_<#i#>");
     $edit->itdescripcion->db_name = 'descripcion';
     $edit->itdescripcion->cols = 30;
     $edit->itdescripcion->rows = 2;
     //$edit->itdescripcion->rule     = 'required';
     $edit->itdescripcion->rel_id = 'itotrabajo';
     //$edit->itdescripcion->mode="autohide";
     $edit->itunidad = new dropdownField("(<#o#>) Unidad", "unidad_<#i#>");
     $edit->itunidad->db_name = 'unidad';
     $edit->itunidad->rule = 'required';
     $edit->itunidad->rel_id = 'itotrabajo';
     $edit->itunidad->options("SELECT unidades AS id,unidades FROM unidad ORDER BY unidades");
     $edit->itunidad->style = "width:70px";
     //$edit->itunidad->mode="autohide";
     $edit->itcantidad = new inputField("(<#o#>) Cantidad", "cantidad_<#i#>");
     $edit->itcantidad->css_class = 'inputnum';
     $edit->itcantidad->db_name = 'cantidad';
     $edit->itcantidad->rel_id = 'itotrabajo';
     $edit->itcantidad->rule = 'numeric';
     $edit->itcantidad->onchange = 'cal_importe(<#i#>);';
     $edit->itcantidad->size = 4;
     //$edit->itcantidad->mode="autohide";
     $edit->itprecio = new inputField("(<#o#>) Precio", "precio_<#i#>");
     $edit->itprecio->css_class = 'inputnum';
     $edit->itprecio->db_name = 'precio';
     $edit->itprecio->rel_id = 'itotrabajo';
     $edit->itprecio->rule = 'callback_positivo';
     $edit->itprecio->onchange = 'cal_importe(<#i#>);';
     $edit->itprecio->size = 6;
     //$edit->itprecio->mode="autohide";
     $edit->itiva = new dropdownField("(<#o#>) IVA", "iva_<#i#>");
     $edit->itiva->db_name = 'iva';
     $edit->itiva->rel_id = 'itotrabajo';
     $edit->itiva->onchange = 'cal_importe(<#i#>);';
     $edit->itiva->options($this->_ivaplica());
     $edit->itiva->option("0", "0%");
     $edit->itiva->style = "width:80px";
     $edit->itimporte = new inputField("(<#o#>) Importe", "importe_<#i#>");
     $edit->itimporte->css_class = 'inputnum';
     $edit->itimporte->db_name = 'importe';
     $edit->itimporte->rel_id = 'itotrabajo';
     $edit->itimporte->rule = 'numeric';
     $edit->itimporte->onchange = 'cal_importep(<#i#>);';
     //$edit->itimporte->readonly =true;
     $edit->itimporte->size = 8;
     if ($status == 'P') {
         $edit->itimporte->readonly = true;
     }
     //$edit->itimporte->mode="autohide";
     $edit->redondear = new dropdownField("Redondear", "redondear");
     $edit->redondear->option("R2", "Sumar Redondear 2 Decimales");
     $edit->redondear->option("R0", "Sumar SIN Redondear 2 Decimales");
     //$edit->redondear->onchange = "cal_total();";
     if ($status == 'P') {
         $edit->buttons("modify");
         $edit->buttons("save");
         $action = "javascript:window.location='" . site_url('presupuesto/otrabajo/terminada/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_status", 'Marcar Como terminada', $action, "TR", "show");
         $action = "javascript:btn_anular('" . $edit->rapyd->uri->get_edited_id() . "')";
         $edit->button_status("btn_anular", 'Anular', $action, "TR", "show");
     } elseif ($status == 'C') {
         $action = "javascript:btn_noterminada('" . $edit->rapyd->uri->get_edited_id() . "')";
         $edit->button_status("btn_rever", 'Marcar como NO Terminada', $action, "TR", "show");
     } elseif ($status == 'A') {
         $edit->buttons("delete");
     } else {
         $edit->buttons("modify");
         $edit->buttons("save");
     }
     $edit->buttons("undo", "back", "add_rel", "add");
     $edit->build();
     $ivaplica = $this->ivaplica2();
     $conten['ivar'] = $ivaplica['redutasa'];
     $conten['ivag'] = $ivaplica['tasa'];
     $conten['ivaa'] = $ivaplica['sobretasa'];
     $conten['title2'] = $this->tits;
     $smenu['link'] = barra_menu('12A');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('view_otrabajo', $conten, true);
     $data['title'] = $this->tits;
     $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:otrabajo.php

示例8: dataedit


//.........这里部分代码省略.........
        $edit->p_cultivos->in = "cultivos";
        $edit->p_cultivos->size = 10;
        $edit->p_cultivos->maxlength = 4;
        $edit->p_cultivos->css_class = 'inputnum';
        $edit->pot_total = new inputField("Total potreros  ", "pot_total");
        $edit->pot_total->size = 10;
        $edit->pot_total->maxlength = 10;
        $edit->pot_total->css_class = 'inputnum';
        $edit->pot_ptotal = new inputField("Porcentaje", "pot_ptotal");
        $edit->pot_ptotal->in = "pot_total";
        $edit->pot_ptotal->size = 10;
        $edit->pot_ptotal->maxlength = 4;
        $edit->pot_ptotal->css_class = 'inputnum';
        $edit->rios = new inputField("Cursos de agua ( rios y quebradas )   ", "rios");
        $edit->rios->size = 50;
        $edit->rios->maxlength = 50;
        $edit->manantial = new inputField("Manantiales ", "manantial");
        $edit->manantial->size = 50;
        $edit->manantial->maxlength = 50;
        $edit->canales = new inputField("Canales y acequias  ", "canales");
        $edit->canales->size = 50;
        $edit->canales->maxlength = 50;
        $edit->embalse = new inputField("Embalses y lagunas", "embalse");
        $edit->embalse->size = 50;
        $edit->embalse->maxlength = 50;
        $edit->pozo = new inputField("Pozos y aljibes ", "pozo");
        $edit->pozo->size = 50;
        $edit->pozo->maxlength = 50;
        $edit->acued = new inputField("Acueductos ", "acued");
        $edit->acued->size = 50;
        $edit->acued->maxlength = 50;
        $edit->otro_agua = new textareaField("Otros recursos de agua", "otro_agua");
        $edit->otro_agua->rows = 2;
        $edit->otro_agua->cols = 50;
        $edit->l_cerca = new freeField("Cercas", "l_cerca", "");
        $edit->c_long = new inputField("Longitud", "c_long");
        $edit->c_long->size = 20;
        $edit->c_long->maxlength = 50;
        $edit->c_long->css_class = 'inputnum';
        $edit->c_estan = new inputField(" Estantes de ", "c_estan");
        $edit->c_estan->size = 50;
        $edit->c_estan->maxlength = 50;
        $edit->c_material = new inputField(" Material", "c_material");
        $edit->c_material->size = 50;
        $edit->c_material->maxlength = 50;
        $edit->l_vias = new freeField("Vias Interiores", "l_vias", "");
        $edit->v_interiores = new textareaField("Longitud y Especificaciones", "v_interiores");
        $edit->v_interiores->rows = 3;
        $edit->v_interiores->cols = 50;
        $edit->l_bien = new freeField("Otras", "l_bien", "en resumen. El detalle de los edificios se anotara en la HOJA DE TRABAJO Nº 1  y el de las instalaciones fijas en la HOJA DE TRABAJO Nº 3");
        $edit->otra_bien = new textareaField("Bienhechurias", "otra_bien");
        $edit->otra_bien->rows = 5;
        $edit->otra_bien->cols = 50;
        $edit->l_linderos = new freeField(" ", "l_linderos", "Linderos");
        $edit->linderos = new textareaField("8. LINDEROS", "linderos");
        $edit->linderos->rows = 2;
        $edit->linderos->cols = 50;
        $edit->estudio_legal = new textareaField("9.ESTUDIO LEGAL DE LA PROPIEDAD: (OBTENER DEL PROCURADOR DEL ESTADO O DEL SINDICO PROCU", "estudio_legal");
        $edit->estudio_legal->rows = 4;
        $edit->estudio_legal->cols = 50;
        $edit->l_valor = new freeField("Valor ", "l_valor", "con que figura la contabilidad");
        $edit->fecha_adq = new dateonlyField("Fecha Adquisici&oacute;n   ", "fecha_adq", "d-m-Y");
        $edit->fecha_adq->size = 10;
        $edit->fecha_adq->maxlength = 10;
        $edit->valor_adq = new inputField("Valor de adquisici&oacute;n   ", "valor_adq");
        $edit->valor_adq->size = 10;
        $edit->valor_adq->maxlength = 10;
        $edit->valor_adq->css_class = 'inputnum';
        $edit->mejoras = new textareaField("Mas adicionales y mejoras  ", "mejoras");
        $edit->mejoras->rows = 2;
        $edit->mejoras->cols = 50;
        $edit->fecha_m = new dateonlyField("Fecha Mejoras   ", "fecha_m", "d-m-Y");
        $edit->fecha_m->size = 10;
        $edit->fecha_m->maxlength = 10;
        $edit->valor_m = new inputField("Valor mejoras y adicionales   ", "valor_m");
        $edit->valor_m->size = 10;
        $edit->valor_m->maxlength = 10;
        $edit->valor_m->css_class = 'inputnum';
        $edit->valor_conta = new inputField("Valor Total   ", "valor_conta");
        $edit->valor_conta->size = 10;
        $edit->valor_conta->maxlength = 10;
        $edit->valor_conta->css_class = 'inputnum';
        $edit->avaluo = new textareaField("11.AVALUO DE LA COMISION ( PARA LOS TERRENOS SOLAMENTE )", "avaluo");
        $edit->avaluo->rows = 4;
        $edit->avaluo->cols = 50;
        $edit->planos = new textareaField("12. PLANOS, ESQUEMAS Y FOTOGRAFIAS: ( LOS QUE SE ACOMPAÑEN, CON MENSION DE LA OFICINA EN DONDE SE ENCUENTREN LOS RESTANTES)", "planos");
        $edit->planos->rows = 2;
        $edit->planos->cols = 50;
        $edit->realizado = new inputField("Preparado por", "preparado");
        $edit->realizado->size = 10;
        $edit->realizado->maxlength = 10;
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $smenu['link'] = barra_menu('112');
        $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
        $data['title'] = "Terreno";
        $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:bi_terreno.php

示例9: dataedit

    function dataedit()
    {
        $this->rapyd->load("dataedit");
        $mSCLId = array('tabla' => 'scli', 'columnas' => array('cliente' => 'C&oacute;digo Socio', 'nombre' => 'Nombre', 'cirepre' => 'Rif/Cedula', 'dire11' => 'Direcci&oacute;n'), 'filtro' => array('cliente' => 'C&oacute;digo Socio', 'nombre' => 'Nombre'), 'retornar' => array('cliente' => 'socio'), 'titulo' => 'Buscar Socio');
        $qformato = $this->qformato = $this->datasis->formato_cpla();
        $mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'C&oacute;digo', 'descrip' => 'Descripci&oacute;n'), 'filtro' => array('codigo' => 'C&oacute;digo', 'descrip' => 'Descripci&oacute;n'), 'retornar' => array('codigo' => 'cuenta'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"");
        $boton = $this->datasis->modbus($mSCLId);
        $bcpla = $this->datasis->modbus($mCPLA);
        $smenu['link'] = barra_menu('131');
        $consulrif = $this->datasis->traevalor('CONSULRIF');
        $script = '
		$(function() {
			$(".inputnum").numeric(".");
		});
		
		function anomfis(){
				vtiva=$("#tiva").val();
				if(vtiva=="C" || vtiva=="E" || vtiva=="R"){
					$("#tr_nomfis").show();
					$("#tr_riff").show();
				}else{
					$("#nomfis").val("");
					$("#rif").val("");
					$("#tr_nomfis").hide();
					$("#tr_rif").hide();
				}
		}
		
		function consulrif(){
				vrif=$("#rif").val();
				if(vrif.length==0){
					alert("Debe introducir primero un RIF");
				}else{
					vrif=vrif.toUpperCase();
					$("#rif").val(vrif);
					window.open("' . $consulrif . '"+"?p_rif="+vrif,"CONSULRIF","height=350,width=410");
				}
		}
		
		';
        $edit = new DataEdit("Proveedor ocacional", "provoca");
        $edit->back_url = site_url("finanzas/provoca/filteredgrid");
        $edit->script($script, 'create');
        $edit->script($script, 'modify');
        $edit->pre_process('delete', '_pre_del');
        $edit->post_process('insert', '_post_insert');
        $edit->post_process('update', '_post_update');
        $edit->post_process('delete', '_post_delete');
        $lriffis = '<a href="javascript:consulrif();" title="Consultar RIF en el SENIAT" onclick="">Consultar RIF en el SENIAT</a>';
        $edit->rif = new inputField('RIF', 'rif');
        $edit->rif->mode = 'autohide';
        $edit->rif->rule = 'strtoupper|required|callback_chrif';
        $edit->rif->append($lriffis);
        $edit->rif->maxlength = 10;
        $edit->rif->size = 14;
        $edit->nombre = new inputField('Nombre', 'nombre');
        $edit->nombre->rule = 'strtoupper|required';
        $edit->nombre->size = 80;
        $edit->nombre->maxlength = 80;
        $edit->fecha = new dateField('Fecha', 'fecha', 'd/m/Y');
        $edit->fecha->insertValue = date('Y-m-d');
        $edit->fecha->size = 10;
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $data['content'] = $edit->output;
        $data['title'] = '<h1>Proveedores Ocasionales</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);
    }
开发者ID:codethics,项目名称:proteoerp,代码行数:69,代码来源:provoca.php

示例10: dataedit

    function dataedit()
    {
        //$this->datasis->modulo_id(101,1);
        $this->rapyd->load('dataedit', 'dataobject');
        $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;odigo', 'nombre' => 'Nombre', 'rif' => 'Rif', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'C&oacute;digo', 'nombre' => 'Nombre', 'rif' => 'Rif'), 'retornar' => array('proveed' => 'cod_prov', 'nombre' => 'nombrep'), 'titulo' => 'Buscar Beneficiario');
        $bSPRV = $this->datasis->p_modbus($mSPRV, "proveed");
        $pers = array('tabla' => 'pers', 'columnas' => array('codigo' => 'Codigo', 'cedula' => 'Cedula', 'nombre' => 'Nombre', 'apellido' => 'Apellido'), 'filtro' => array('codigo' => 'C&oacute;digo', 'cedula' => 'Cedula'), 'retornar' => array('nombre' => 'solicitante'), 'titulo' => 'Buscar Personal');
        $bpers = $this->datasis->modbus($pers);
        $script = '
			function btn_anulaf(i){
				if(!confirm("Esta Seguro que desea Anular la Orden de Pago Directo"))
					return false;
				else
					window.location="' . site_url($this->url . 'anular') . '/"+i
			}
		
			$(".inputnum").numeric(".");
		';
        $do = new DataObject("ocomrapid");
        $do->pointer('sprv', 'sprv.proveed = ocomrapid.cod_prov', 'sprv.nombre as nombrep');
        $edit = new DataEdit($this->tits, $do);
        $edit->back_url = site_url($this->url . "filteredgrid");
        $edit->script($script, "create");
        $edit->script($script, "modify");
        $edit->script($script, "show");
        $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&uacute;mero", "numero");
        $edit->numero->mode = "autohide";
        $edit->numero->when = array('show');
        $edit->fecha = new dateonlyField("Fecha", "fecha");
        $edit->fecha->insertValue = date('Y-m-d');
        $edit->fecha->size = 12;
        $edit->fecha->rule = 'required';
        $edit->cod_prov = new inputField("Beneficiario", 'cod_prov');
        $edit->cod_prov->size = 6;
        $edit->cod_prov->rule = "required";
        $edit->cod_prov->append($bSPRV);
        //$edit->cod_prov->readonly=true;
        $edit->nombrep = new inputField("Nombre", 'nombrep');
        $edit->nombrep->size = 50;
        $edit->nombrep->readonly = true;
        $edit->nombrep->pointer = true;
        $edit->nombrep->in = "cod_prov";
        $edit->placa = new inputField("Placa", 'placa');
        $edit->placa->size = 20;
        $edit->solicitante = new inputField("Solicitante", 'solicitante');
        $edit->solicitante->size = 40;
        //$edit->solicitante->rule     = "required";
        $edit->solicitante->append($bpers);
        //$edit->litros = new inputField("Litros", 'litros');
        //$edit->litros->size     = 8;
        //$edit->litros->css_class='inputnum';
        $edit->monto = new inputField("Monto", 'monto');
        $edit->monto->size = 8;
        $edit->monto->css_class = 'inputnum';
        $edit->monto->rule = "required|callback_positivo";
        $edit->concepto = new textAreaField("Concepto", 'concepto');
        $edit->concepto->cols = 60;
        $edit->concepto->rows = 3;
        $status = $edit->_dataobject->get("status");
        if ($status == 'P') {
            $action = "javascript:btn_anulaf('" . $edit->rapyd->uri->get_edited_id() . "')";
            $edit->button_status("btn_status", 'Anular', $action, "TR", "show");
            $edit->buttons("modify");
        }
        $edit->buttons("save", "undo", "back", "add");
        $edit->build();
        $smenu['link'] = barra_menu('102');
        $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);
    }
开发者ID:enderochoa,项目名称:tortuga,代码行数:78,代码来源:ocomrapid.php

示例11: dataedit

 function dataedit()
 {
     //$this->datasis->modulo_id(101,1);
     $this->rapyd->load('dataobject', 'datadetails');
     $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;odigo', 'nombre' => 'Nombre', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'C&oacute;digo', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'cod_prov', 'nombre' => 'nomb_prov', 'nombre' => 'benefi'), 'titulo' => 'Buscar Beneficiario');
     $bSPRV = $this->datasis->p_modbus($mSPRV, "proveed");
     $modbus = array('tabla' => 'odirect', 'columnas' => array('numero' => 'N&uacute;mero', 'fecha' => 'fecha', 'tipo' => 'tipo'), 'filtro' => array('numero' => 'N&uacute;mero', 'fecha' => 'fecha', 'tipo' => 'tipo'), 'retornar' => array('numero' => 'orden_<#i#>', 'total' => 'monto_<#i#>'), 'p_uri' => array(4 => '<#i#>', 5 => '<#cod_prov#>'), 'where' => 'status = "F2" OR status = "B2" OR status = "R2" OR status = "G2" OR status = "I2" OR status = "S2" ', 'script' => array('cal_total(<#i#>)'), 'titulo' => 'Busqueda de Ordenes de Pago');
     $btn = $this->datasis->p_modbus($modbus, '<#i#>/<#cod_prov#>');
     $mBANC = array('tabla' => 'banc', 'columnas' => array('codbanc' => 'C&oacute;odigo', 'banco' => 'Banco', 'saldo' => 'Saldo'), 'filtro' => array('codbanc' => 'C&oacute;odigo', 'banco' => 'Banco', 'saldo' => 'Saldo'), 'retornar' => array('codbanc' => 'codbanc', 'banco' => 'nombanc'), 'where' => 'activo = "S"', 'titulo' => 'Buscar Bancos');
     $bBANC = $this->datasis->p_modbus($mBANC, "banc");
     $do = new DataObject("mbanc");
     $do->rel_one_to_many('itppro', 'itppro', array('id' => 'mbanc'));
     $edit = new DataDetails($this->tits, $do);
     $edit->back_url = site_url($this->url . "filteredgrid");
     $edit->set_rel_title('itppro', 'Rubro <#o#>');
     $edit->pre_process('insert', '_valida');
     $edit->pre_process('update', '_valida');
     //$edit->post_process('insert'  ,'_paiva');
     //$edit->post_process('update'  ,'_paiva');
     $edit->id = new inputField("N&uacute;mero", "id");
     $edit->id->mode = "autohide";
     $edit->id->when = array('show');
     $edit->fecha = new dateonlyField("Fecha", "fecha");
     $edit->fecha->insertValue = date('Y-m-d');
     $edit->fecha->size = 12;
     $edit->fecha->rule = 'required';
     $edit->tipo = new inputField("", "tipo");
     $edit->tipo->insertValue = "E";
     $edit->tipo->mode = "autohide";
     $edit->tipo->when = array('');
     $edit->cod_prov = new inputField("Beneficiario", 'cod_prov');
     $edit->cod_prov->size = 6;
     //$edit->cod_prov->rule     = "required";
     $edit->cod_prov->append($bSPRV);
     $edit->cod_prov->readonly = true;
     $edit->nomb_prov = new inputField("Nombre", 'nomb_prov');
     $edit->nomb_prov->db_name = ' ';
     $edit->nomb_prov->size = 50;
     $edit->nomb_prov->readonly = true;
     $edit->nomb_prov->in = "cod_prov";
     $edit->benefi = new inputField("Beneficiario", 'benefi');
     $edit->benefi->size = 50;
     $edit->benefi->maxlength = 50;
     $edit->benefi->rule = 'required';
     $edit->observa = new textAreaField("Observaciones", 'observa');
     $edit->observa->cols = 106;
     $edit->observa->rows = 3;
     $edit->codbanc = new inputField("Banco", 'codbanc');
     $edit->codbanc->size = 3;
     $edit->codbanc->rule = "required";
     $edit->codbanc->append($bBANC);
     $edit->codbanc->readonly = true;
     $edit->nombanc = new inputField("Nombre", "nombanc");
     $edit->nombanc->size = 30;
     $edit->nombanc->readonly = true;
     $edit->nombanc->db_name = " ";
     $edit->cheque = new inputField("Cheque", 'cheque');
     $edit->cheque->size = 20;
     $edit->cheque->rule = "required";
     $edit->monto = new inputField("Total", 'monto');
     $edit->monto->mode = 'autohide';
     $edit->monto->when = array('show');
     $edit->monto->size = 8;
     $edit->itorden = new inputField("(<#o#>) ", "orden_<#i#>");
     $edit->itorden->rule = 'callback_repetido|required|callback_itorden';
     $edit->itorden->size = 15;
     $edit->itorden->db_name = 'orden';
     $edit->itorden->rel_id = 'itppro';
     $edit->itorden->readonly = true;
     $edit->itorden->append('<img src="/tortuga/assets/default/images/system-search.png"  alt="Busqueda de Ordenes de Pago" title="Busqueda de Ordenes de Pago" border="0" onclick="modbusdepen(<#i#>)"/>');
     $edit->itmonto = new inputField("(<#o#>) Abonar", "monto_<#i#>");
     $edit->itmonto->db_name = 'monto';
     $edit->itmonto->rel_id = 'itppro';
     //$edit->itmonto->mode     = 'autohide';
     $edit->itmonto->when = array('show', 'modify');
     $edit->itmonto->size = 8;
     //	$edit->itmonto->readonly = true;
     $status = $edit->get_from_dataobjetct('status');
     if ($status == 'E1') {
         $action = "javascript:window.location='" . site_url($this->url . '/actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_status", 'Actualizar', $action, "TR", "show");
         $edit->buttons("modify", "delete", "save");
     } elseif ($status == 'E2') {
         $action = "javascript:window.location='" . site_url($this->url . '/reversar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_rever", 'Reversar', $action, "TR", "show");
     } else {
         $edit->buttons("save");
     }
     $edit->buttons("undo", "back", "add_rel");
     $edit->build();
     $smenu['link'] = barra_menu('208');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('view_ppro', $conten, true);
     //$data['content'] = $edit->output;
     $data['title'] = " {$this->tits} ";
     $data["head"] = $this->rapyd->get_head() . script('jquery.js') . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.json.min.js");
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:99,代码来源:ppro3.php

示例12: dataedit


//.........这里部分代码省略.........
     if ($this->datasis->puede(398)) {
         $edit->patente = new dropDownField('Posee patente', 'patente');
         $edit->patente->option('N', 'NO');
         $edit->patente->option('S', 'SI');
         $edit->patente->group = "Datos de Patente";
         $edit->nro = new inputField('Patente Numero', 'nro');
         $edit->nro->rule = 'max_length[10]';
         $edit->nro->size = 12;
         $edit->nro->maxlength = 10;
         $edit->nro->group = "Datos de Patente";
         $edit->p_tipo = new dropDownField('Tipo de Actividad', 'p_tipo');
         $edit->p_tipo->option("", "");
         $edit->p_tipo->option("Industrial", "Industrial");
         $edit->p_tipo->option("Comercial", "Comercial");
         $edit->p_tipo->option("Servicio", "Servicio");
         $edit->p_tipo->group = "Datos de Patente";
         $edit->objeto = new textAreaField('Objeto', 'objeto');
         $edit->objeto->rows = 2;
         $edit->objeto->cols = 40;
         $edit->objeto->group = "Datos de Patente";
         $edit->id_repre = new inputField('Representante', 'id_repre');
         $edit->id_repre->rule = 'max_length[11]';
         $edit->id_repre->size = 13;
         $edit->id_repre->maxlength = 11;
         $edit->id_repre->group = "Datos de Patente";
         $edit->id_repre->readonly = true;
         $edit->nombrep = new inputField('Archivo', 'nombrep');
         $edit->nombrep->size = 40;
         $edit->nombrep->readonly = true;
         $edit->nombrep->pointer = true;
         $edit->nombrep->in = 'id_repre';
         $edit->nombrep->append($button);
         $edit->nombrep->group = "Datos de Patente";
         $edit->archivo = new inputField('Archivo', 'archivo');
         $edit->archivo->rule = 'max_length[50]';
         $edit->archivo->size = 20;
         $edit->archivo->maxlength = 50;
         $edit->archivo->group = "Datos de Patente";
         $edit->id_sector = new dropDownField('Sector', 'id_sector');
         //$edit->id_sector->rule='required';
         $edit->id_sector->option("", "");
         $edit->id_sector->options("SELECT id,descrip FROM r_sector ORDER BY descrip");
         $edit->id_sector->group = "Datos de Patente";
         $edit->reg_nro = new inputField('Registro Numero', 'reg_nro');
         $edit->reg_nro->rule = 'max_length[10]';
         $edit->reg_nro->size = 12;
         $edit->reg_nro->maxlength = 10;
         $edit->reg_nro->group = "Datos de Registro";
         $edit->reg_tomo = new inputField('Registro Tomo', 'reg_tomo');
         $edit->reg_tomo->rule = 'max_length[10]';
         $edit->reg_tomo->size = 12;
         $edit->reg_tomo->maxlength = 10;
         $edit->reg_tomo->group = "Datos de Registro";
         $edit->reg_fecha = new dateOnlyField('Registro Fecha', 'reg_fecha');
         $edit->reg_fecha->rule = 'chfecha';
         $edit->reg_fecha->size = 10;
         $edit->reg_fecha->maxlength = 8;
         //$edit->reg_fecha->insertValue=date('Y-m-d');
         $edit->reg_fecha->group = "Datos de Registro";
     }
     $edit->itid_contribuit = new inputField('Contribuyente', 'itid_contribuit_<#i#>');
     $edit->itid_contribuit->rule = 'max_length[11]';
     $edit->itid_contribuit->size = 3;
     $edit->itid_contribuit->maxlength = 11;
     $edit->itid_contribuit->db_name = 'id_contribuit';
     $edit->itid_contribuit->rel_id = 'r_contribuit';
     $edit->itid_contribuit->type = 'inputhidden';
     $edit->itrifcipit = new inputField('Nombre', 'itrifcipit_<#i#>');
     $edit->itrifcipit->size = 20;
     //$edit->itrifcipit->readonly=true;
     $edit->itrifcipit->pointer = true;
     $edit->itrifcipit->rel_id = 'r_contribuit';
     $edit->itrifcipit->db_name = 'rifcipit';
     $edit->itrifcipit->append($buttonsocios);
     $edit->itnombrepit = new inputField('Nombre', 'itnombrepit_<#i#>');
     $edit->itnombrepit->size = 60;
     //$edit->itnombrepit->readonly=true;
     $edit->itnombrepit->pointer = true;
     $edit->itnombrepit->rel_id = 'r_contribuit';
     $edit->itnombrepit->db_name = 'nombrepit';
     //$edit->itnombrepit->type ='inputhidden';
     if ($this->datasis->puede(473)) {
         $edit->buttons('add', 'add_rel', 'save');
     }
     if ($this->datasis->puede(474)) {
         $edit->buttons('modify', 'save');
     }
     if ($this->datasis->puede(475)) {
         $edit->buttons('delete');
     }
     $edit->buttons('undo', 'back');
     $edit->build();
     $smenu['link'] = barra_menu('G13');
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $conten["form"] =& $edit;
     $data['content'] = $this->load->view('recaudacion/r_contribu', $conten, true);
     $data['title'] = $this->tits;
     $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');
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:r_contribu.php

示例13: dataedit


//.........这里部分代码省略.........
            $edit->{$nom}->option("M", "Malo");
            $edit->{$nom}->option("F", "Faltante");
            $edit->{$nom}->option("N", "No Posee");
            $edit->{$nom}->style = 'width:100px';
            //$edit->$nom->rule="required";
        }
        $edit->l_micas = new freeField("MICAS", "l_micas", $opt);
        $nombre = array("Cruce Delantero Derecho" => "cruce_dd", "Cruce Delantero Izquierdo" => "cruce_di", "Cruce Trasero Derecho" => "cruce_td", "Cruce Trasero Izquierdo" => "cruce_ti", "Silvin" => "silvin", "STOP Trasero" => "stop_t");
        foreach ($nombre as $val => $nom) {
            $edit->{$nom} = new dropdownField("{$val}", "{$nom}");
            $edit->{$nom}->option("B", "Bueno");
            $edit->{$nom}->option("R", "Regular");
            $edit->{$nom}->option("M", "Malo");
            $edit->{$nom}->option("F", "Faltante");
            $edit->{$nom}->option("N", "No Posee");
            $edit->{$nom}->style = 'width:100px';
            //$edit->$nom->rule="required";
        }
        $edit->l_tapice = new freeField("TAPICERIA", "l_tapice", $opt);
        $nombre = array("Cojin" => "cojin");
        foreach ($nombre as $val => $nom) {
            $edit->{$nom} = new dropdownField("{$val}", "{$nom}");
            $edit->{$nom}->option("B", "Bueno");
            $edit->{$nom}->option("R", "Regular");
            $edit->{$nom}->option("M", "Malo");
            $edit->{$nom}->option("F", "Faltante");
            $edit->{$nom}->option("N", "No Posee");
            $edit->{$nom}->style = 'width:100px';
            //$edit->$nom->rule="required";
        }
        $edit->l_vidrio = new freeField("VIDRIOS", "l_vidrio", $opt);
        $nombre = array("Retrovisor Derecho" => "retrovisor_d", "Retrovisor Izquierdo" => "retrovisor_i");
        foreach ($nombre as $val => $nom) {
            $edit->{$nom} = new dropdownField("{$val}", "{$nom}");
            $edit->{$nom}->option("B", "Bueno");
            $edit->{$nom}->option("R", "Regular");
            $edit->{$nom}->option("M", "Malo");
            $edit->{$nom}->option("F", "Faltante");
            $edit->{$nom}->option("N", "No Posee");
            $edit->{$nom}->style = 'width:100px';
            //$edit->$nom->rule="required";
        }
        $edit->l_luces = new freeField("LUCES", "l_luces", $opt);
        $nombre = array("Delantera Alta" => "luces_da", "Delantera Baja" => "luces_db", "Stop Trasero" => "luces_stop", "Cruce Delantero Derecho" => "luces_cruce_dd", "Cruce Delantero Izquierdo" => "luces_cruce_di", "Cruce Trasero Derecho" => "luces_cruce_td", "Cruce Trasero Izquierdo" => "luces_cruce_ti", "Estrobert" => "estrobert", "Freno" => "luces_freno");
        foreach ($nombre as $val => $nom) {
            $edit->{$nom} = new dropdownField("{$val}", "{$nom}");
            $edit->{$nom}->option("B", "Bueno");
            $edit->{$nom}->option("R", "Regular");
            $edit->{$nom}->option("M", "Malo");
            $edit->{$nom}->option("F", "Faltante");
            $edit->{$nom}->option("N", "No Posee");
            $edit->{$nom}->style = 'width:100px';
            //$edit->$nom->rule="required";
        }
        $edit->kilo = new inputField("Kilometraje", "kilo");
        $edit->kilo->size = 20;
        $edit->kilo->maxlength = 20;
        //$edit->kilo->rule="required";
        $edit->l_bateria = new freeField("BATERIA", "l_bateria", '');
        $edit->bat_marca = new inputField("Marca", "bat_marca");
        $edit->bat_marca->size = 50;
        $edit->bat_marca->maxlength = 50;
        //$edit->bat_marca->rule="required";
        $edit->bat_serial = new inputField("Serial", "bat_serial");
        $edit->bat_serial->size = 50;
        $edit->bat_serial->maxlength = 50;
        //$edit->bat_serial->rule="required";
        $edit->estado_vehi = new dropdownField("Estado De La Unidad Motorizada", "estado_moto");
        $edit->estado_vehi->option("OP", "Operativo");
        $edit->estado_vehi->option("IN", "Inoperativo");
        $edit->estado_vehi->style = 'width:150px';
        //$edit->estado_vehi->rule="required";
        $edit->observa = new textareaField("Observaci&oacute;n", "observa");
        $edit->observa->rows = 4;
        $edit->observa->cols = 50;
        $edit->inspector = new inputField("Inspector De La Unidad Vehicular", "inspector");
        $edit->inspector->size = 50;
        $edit->inspector->maxlength = 50;
        //$edit->inspector->rule="required";
        $edit->conductor = new inputField("Conductor De La Dependencia", "conductor");
        $edit->conductor->size = 50;
        $edit->conductor->maxlength = 50;
        //$edit->conductor->rule="required";
        $edit->jefe_uv = new inputField("Jefe De La Unidad Vehicular", "jefe_uv");
        $edit->jefe_uv->size = 50;
        $edit->jefe_uv->maxlength = 50;
        //$edit->jefe_uv->rule="required";
        $edit->jefe_depen = new inputField("Director o Jefe De La Dependencia", "jefe_depen");
        $edit->jefe_depen->size = 50;
        $edit->jefe_depen->maxlength = 50;
        //$edit->jefe_depen->rule="required";
        $edit->buttons("modify", "save", "undo", "delete", "back");
        $edit->build();
        $smenu['link'] = barra_menu('115');
        $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
        $data['content'] = $edit->output;
        $data['title'] = "Motos";
        $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head();
        $this->load->view('view_ventanas', $data);
    }
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:bi_moto.php

示例14: dataedit

 function dataedit()
 {
     $this->rapyd->load("dataedit");
     $mSCLId = array('tabla' => 'scli', 'columnas' => array('cliente' => 'C&oacute;digo Cliente', 'nombre' => 'Nombre', 'cirepre' => 'Rif/Cedula', 'dire11' => 'Direcci&oacute;n'), 'filtro' => array('cliente' => 'C&oacute;digo Cliente', 'nombre' => 'Nombre'), 'retornar' => array('cliente' => 'empresa', 'nombre' => 'nombre'), 'titulo' => 'Buscar Cliente');
     $boton = $this->datasis->modbus($mSCLId);
     $edit = new DataEdit("Agregar", "repotra");
     $edit->back_url = site_url("supervisor/repotra/filteredgrid");
     $edit->fecha = new DateonlyField("Fecha", "fecha");
     $edit->fecha->rule = "trim|strtoupper|required";
     $edit->fecha->size = 12;
     $edit->fecha->insertValue = date("Y-m-d");
     $edit->t1horae = new inputField("Hora Entrada", "t1horae");
     $edit->t1horae->maxlength = 8;
     $edit->t1horae->size = 10;
     //$edit->t1horae->rule='required';
     $edit->t1horae->append('hh:mm');
     $edit->t1horae->in = 't1tipoe';
     $edit->t1tipoe = new dropdownField("", "t1tipoe");
     $edit->t1tipoe->option("", "");
     $edit->t1tipoe->option("AM", "AM");
     $edit->t1tipoe->option("PM", "PM");
     $edit->t1tipoe->style = "width:70px";
     $edit->t1tipoe->append(" Turno 1");
     $edit->t1horas = new inputField("Hora Salida", "t1horas");
     $edit->t1horas->maxlength = 8;
     $edit->t1horas->size = 10;
     //$edit->t1horas->rule='required';
     //$edit->t1horas->rule='trim|callback_chhora';
     $edit->t1horas->append('hh:mm');
     $edit->t1horas->in = 't1tipos';
     $edit->t1tipos = new dropdownField("", "t1tipos");
     $edit->t1tipos->option("", "");
     $edit->t1tipos->option("AM", "AM");
     $edit->t1tipos->option("PM", "PM");
     $edit->t1tipos->style = "width:70px";
     $edit->t2horae = new inputField("Hora Entrada", "t2horae");
     $edit->t2horae->maxlength = 8;
     $edit->t2horae->size = 10;
     //$edit->t2horae->rule='required';
     $edit->t2horae->append('hh:mm');
     $edit->t2horae->in = 't2tipoe';
     $edit->t2tipoe = new dropdownField("", "t2tipoe");
     $edit->t2tipoe->option("", "");
     $edit->t2tipoe->option("AM", "AM");
     $edit->t2tipoe->option("PM", "PM");
     $edit->t2tipoe->style = "width:70px";
     $edit->t2tipoe->append(" Turno 2");
     $edit->t2horas = new inputField("Hora Salida", "t2horas");
     $edit->t2horas->maxlength = 8;
     $edit->t2horas->size = 10;
     //$edit->t2horas->rule='required';
     //$edit->horas->rule='trim|callback_chhora';
     $edit->t2horas->append('hh:mm');
     $edit->t2horas->in = 't2tipos';
     $edit->t2tipos = new dropdownField("", "t2tipos");
     $edit->t2tipos->option("", "");
     $edit->t2tipos->option("AM", "AM");
     $edit->t2tipos->option("PM", "PM");
     $edit->t2tipos->style = "width:70px";
     $edit->empresa = new inputField("Cliente", "empresa");
     $edit->empresa->rule = "trim|strtoupper|required";
     $edit->empresa->size = 12;
     $edit->empresa->maxlength = 60;
     $edit->empresa->append($boton);
     $edit->nombre = new inputField("Nombre", "nombre");
     $edit->nombre->rule = "trim|strtoupper|required";
     $edit->nombre->size = 60;
     $edit->nombre->maxlength = 50;
     $edit->tecnico1 = new inputField("Realizado por", "tecnico1");
     $edit->tecnico1->rule = "trim|strtoupper|required";
     $edit->tecnico1->size = 50;
     $edit->tecnico1->maxlength = 50;
     $edit->tecnico2 = new inputField("Realizado por", "tecnico2");
     $edit->tecnico2->rule = "trim|strtoupper";
     $edit->tecnico2->size = 50;
     $edit->tecnico2->maxlength = 50;
     $edit->tecnico3 = new inputField("Realizado por", "tecnico3");
     $edit->tecnico3->rule = "trim|strtoupper";
     $edit->tecnico3->size = 50;
     $edit->tecnico3->maxlength = 50;
     $edit->informe = new textareaField("Actividad", "informe");
     $edit->informe->cols = 80;
     $edit->informe->rows = 30;
     $edit->informe->rule = "trim|strtoupper|required";
     $edit->observa = new textareaField("Observaciones", "observa");
     $edit->observa->cols = 80;
     $edit->observa->rows = 3;
     $edit->observa->rule = "trim|strtoupper";
     $edit->cobrado = new dropdownField("Cobrado", "cobrado");
     $edit->cobrado->option("N", "N");
     $edit->cobrado->option("S", "S");
     $edit->cobrado->style = "width:70px";
     $edit->buttons("modify", "save", "undo", "delete", "back");
     $edit->build();
     $smenu['link'] = barra_menu('912');
     $data['content'] = $edit->output;
     $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true);
     $data['title'] = "Reporte de Trabajo";
     $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);
//.........这里部分代码省略.........
开发者ID:enderochoa,项目名称:tortuga,代码行数:101,代码来源:repotra.php

示例15: dataedit

 function dataedit()
 {
     //$this->datasis->modulo_id(119,1);
     $this->rapyd->load("dataform", "datagrid");
     $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;odigo', 'nombre' => 'Nombre', 'rif' => 'Rif', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'C&oacute;digo', 'nombre' => 'Nombre', 'rif' => 'Rif'), 'p_uri' => array(4 => '<#i#>'), 'retornar' => array('proveed' => 'codprov_<#i#>', 'nombre' => 'nombrep', 'reteiva' => 'reteiva_prov'), 'titulo' => 'Buscar Beneficiario');
     $bSPRV = $this->datasis->p_modbus($mSPRV, "<#i#>");
     $mOCOMPRA = array('tabla' => 'ocompra', 'columnas' => array('numero' => 'N&uacute;mero', 'tipo' => 'Tipo', 'uejecutora' => 'uejecutora', 'cod_prov' => 'Beneficiario'), 'filtro' => array('numero' => 'N&uacute;mero', 'tipo' => 'Tipo', 'uejecutora' => 'uejecutora', 'cod_prov' => 'Beneficiario'), 'retornar' => array('numero' => 'compra_<#i#>'), 'p_uri' => array(4 => '<#i#>', 5 => '<#cod_prov#>'), 'where' => 'cod_prov = <#cod_prov#> AND ( status = "T" OR status = "C" ) ', 'script' => array('debe(<#i#>)'), 'titulo' => 'Buscar Ordenes de Compra');
     $pOCOMPRA = $this->datasis->p_modbus($mOCOMPRA, '<#i#>/<#cod_prov#>');
     $form = new dataForm('presupuesto/presupcarga/carga');
     if ($ban == 0) {
         $form->msj = new freeField("", "tipò", "Cargo");
     }
     //$edit->pre_process('update'  ,'_valida');
     //$edit->pre_process('insert'  ,'_valida');
     ////$edit->post_process('insert'  ,'_post');
     ////$edit->post_process('update'  ,'_post');
     //$edit->post_process('insert','_post_insert');
     //$edit->post_process('update','_post_update');
     //$edit->post_process('delete','_post_delete');
     $edit->id = new inputField("N&uacute;mero", "id");
     $edit->id->mode = "autohide";
     $edit->id->when = array('show');
     $edit->cod_prov = new inputField("Beneficiario", 'cod_prov');
     $edit->cod_prov->size = 6;
     $edit->cod_prov->rule = "required";
     $edit->cod_prov->append($bSPRV);
     $edit->cod_prov->readonly = true;
     $edit->compra = new inputField("(<#o#>) ", "compra");
     $edit->compra->rule = 'callback_repetido|required|callback_itorden';
     $edit->compra->size = 15;
     $edit->compra->db_name = 'compra';
     $edit->compra->readonly = true;
     $edit->compra->append($pOCOMPRA);
     $status = $edit->get_from_dataobjetct('status');
     if ($status == 'B1') {
         $action = "javascript:window.location='" . site_url($this->url . 'actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'";
         $edit->button_status("btn_status", 'Actualizar', $action, "TR", "show");
         $edit->buttons("modify", "save");
     } elseif ($status == 'B2') {
         //$action = "javascript:window.location='" .site_url($this->url.'reversar/'.$edit->rapyd->uri->get_edited_id()). "'";
         //$edit->button_status("btn_rever",'Reversar',$action,"TR","show");
         $action = "javascript:window.location='" . site_url('presupuesto/common/pd_anular/' . $edit->rapyd->uri->get_edited_id()) . "'";
         if ($this->datasis->puede('1015')) {
             $edit->button_status("btn_anular", 'Anular', $action, "TR", "show");
         }
     } elseif ($status == 'B3') {
         $multiple = $edit->get_from_dataobjetct('multiple');
         if ($multiple == "N") {
             $action = "javascript:window.location='" . site_url($this->url . 'camfac/dataedit/modify/' . $edit->rapyd->uri->get_edited_id()) . "'";
             $edit->button_status("btn_camfac", 'Modificar Factura', $action, "TR", "show");
         }
     } else {
         $edit->buttons("save");
     }
     $edit->buttons("undo", "back", "add_rel");
     $edit->build();
     $smenu['link'] = barra_menu('119');
     //$data['smenu'] = $this->load->view('view_sub_menu', $smenu,true);
     //$conten["form"]  =&  $edit;
     //$data['content'] = $this->load->view('view_odirect', $conten,true);
     $data['content'] = $edit->output;
     $data['title'] = " {$this->tits} ";
     $data["head"] = $this->rapyd->get_head() . script('jquery.js') . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.json.min.js");
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:65,代码来源:pagoanti.php


注:本文中的barra_menu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。