$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());
$oSelVendedor->readonly(!$isNew);
$oSelVendedor->set_js_onchange("oMtbAjax.load_manager(this);");
$oSelManager->readonly();
//MOSTRAR CONTROLES EN PANTALLA
$oSubmitButtons->show_top_div();
    $oActivity = new ModelActivities(null, null);
}
if (!isset($oMtbActivity)) {
    $oMtbActivity = new ModelMtbActivities($oActivity);
}
//bug($oActivity->oClient); die;
$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)) {