コード例 #1
0
$oTxtConcepto->readonly();
$oSelFamilia->set_value_to_select($oMtbPropuesta->get_code_familia());
$oSelFamilia->readonly();
$oSelSubfamilia->set_value_to_select($oMtbPropuesta->get_code_subfamilia());
$oSelSubfamilia->readonly();
$oSelProducto->set_value_to_select($oMtbPropuesta->get_code_articulo());
$oSelProducto->readonly();
$oNumberDto = new HelperText("detm_Dto", $oMtbPropuesta->get_dto(), "Dto");
$oNumberDto->readonly();
$oTxtValorOld = new HelperText("detm_Valor_Old", $oMtbPropuesta->get_valor_old(), "Dto Anterior");
$oTxtValorOld->readonly();
$oFechaSolicitud = new HelperDate("detm_FechaS", $oMtbPropuesta->get_fechas(), "Fec. Sol");
$oFechaSolicitud->readonly();
$oFechaRespuesta = new HelperDate("detm_FechaS", $oMtbPropuesta->get_fechar(), "Fec. Resp");
$oFechaRespuesta->readonly();
$oTxaDescripcion = new HelperTextArea("detm_Descripcion", $oMtbPropuesta->get_descripcion(), "Descripcion");
$oTxaDescripcion->readonly();
$oSelEstado->readonly();
$oSelEstado->set_value_to_select($oMtbPropuesta->get_estado());
//Las altas se hacen desde el listado de descuentos
//se utilizan otras vistas. Esta alta se podria utilizar en un futuro.
if ($isNew) {
    /*
        //Modulos externos
        if($isByAccount)
        {
    
            //No error, 1ra Vez
            if(empty($sErrorMessage))
            {
              
コード例 #2
0
$oEmail = new HelperText("det_Correo_E", $oClient->get_correo_e(), "Email");
$oEmail->set_type("tel");
$oTxtCifNif = new HelperText("det_Codigo_Sic", $oClient->get_codigo_sic(), "Cif/Nif");
$oTxtCifNif->set_js_onblur("is_cif_nif_valido(this);");
$oTxtNumCalle = new HelperText("detm_Numero_Calle", $oMtbCliente->get_numero_calle(), "Num. Calle");
$oTxtPoblacion = new HelperText("detm_Poblacion", $oMtbCliente->get_poblacion(), "Población");
$oTxtIban = new HelperText("detm_Iban", $oMtbCliente->get_iban(), "IBAN");
$oTxtCbango = new HelperText("detm_Cod_Banco", $oMtbCliente->get_cod_banco(), "C. Banco");
$oTxtDc = new HelperText("detm_DC", $oMtbCliente->get_dc(), "DC");
$oTxtNumCuenta = new HelperText("detm_Num_Cuenta", $oMtbCliente->get_num_cuenta(), "N. Cuenta");
$oTxtSucursal = new HelperText("detm_Sucursal", $oMtbCliente->get_sucursal(), "Sucursal");
$oTxtLimCredito = new HelperText("detm_Credito_Caution", $oMtbCliente->get_credito_caution(), "Lim. Credito");
$oTxtDto1 = new HelperText("detm_Descuento", $oMtbCliente->get_descuento(), "Dto. 1");
$oTxtDto2 = new HelperText("detm_Descuento2", $oMtbCliente->get_descuento2(), "Dto. 2");
$oTxtDtoPP = new HelperText("detm_Dto_ProntoPago", $oMtbCliente->get_dto_prontopago(), "Dto. P. Pago");
$oTxaObservaciones = new HelperTextArea("detm_Observaciones", $oMtbCliente->get_observaciones(), "Observ.");
$oTxaObservaciones->set_maxlength(255);
$oDateFechaAlta = new HelperDate("detm_Fecha_Alta", $oMtbCliente->get_fecha_alta(), "Fecha Alta");
$oDateFechaAlta->readonly(!$isNew);
if ($isNew) {
    $oDateFechaAlta->set_today();
}
$oSelEmpresa->set_value_to_select($oMtbCliente->get_empresa());
$oSelPais->set_value_to_select($oClient->get_pais());
$oRadInformacion->set_value_to_check($oMtbCliente->get_desea_informacion());
$oSelProvincia->set_value_to_select($oClient->get_provincia());
$oSelProvincia->set_js_onchange("oMtbAjax.load_codigospostales(this);");
//bug($oSelProvincia);
$oSelCp->set_value_to_select($oClient->get_cp());
$oSelFormaPago->set_value_to_select($oMtbCliente->get_forma_pago());
$oSelEstado->set_value_to_select($oMtbCliente->get_estado());
コード例 #3
0
$oSubmitButtons = new HelperSubmitButton();
$oSubmitButtons->display_delete(false);
$oTxtCodigo = new HelperText("det_Code", $oActivity->get_code(), "Código");
$oTxtCodigo->readonly();
$oTxtCodigo->set_keycode();
$oTxtCodigo->display(!$isNew);
$oDateFecha = new HelperDate("det_DateP", $oActivity->get_datep(), "Fecha");
$oDateFecha->required();
$oDateFecha->readonly(!$isNew);
$oDateFecha->set_today();
//Resultado
$oTxaResultado = new HelperTextArea("detm_Resultado", $oMtbActivity->get_resultado(), "Resultado");
//Interlocutores
$oTxaInterlocutores = new HelperTextArea("det_Notes", $oActivity->get_notes(), "Interlocutores");
//Interlocutores Next
$oTxaInterlocutoresNext = new HelperTextArea("det_Notas_Centralita", $oActivity->get_notas_centralita(), "Interlocutores");
//bug($oActivity); die;
//Configuración de objetos
if ($isNew) {
    //Modulos externos
    if ($isByAccount) {
        $sCodeAccount = $oActivity->oClient->get_code();
        $sPropietario = $oActivity->oClient->get_propietario();
        //No error, 1ra Vez
        if (empty($sErrorMessage)) {
            //Comercial
            $oSelUser->set_value_to_select($sPropietario);
            $oSelUser->required();
            $oSelUser->readonly();
            //Cliente
            $oSelClient->set_value_to_select($sCodeAccount);