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


PHP getSucursal函数代码示例

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


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

示例1: jsShowGrupos

function jsShowGrupos($nombre_del_grupo)
{
    settype($nombre_del_grupo, "string");
    $rst = "";
    if ($nombre_del_grupo) {
        $nombre_del_grupo = substr($nombre_del_grupo, 0, 6);
        /**
         * 							Sql
         */
        $sql_grupos = "SELECT \r\n\t`socios_grupossolidarios`.`idsocios_grupossolidarios`  AS 'numero',\r\n\t`socios_grupossolidarios`.`nombre_gruposolidario`          \r\n\tAS `nombre`,\r\n\t`socios_grupossolidarios`.`colonia_gruposolidario`         \r\n\tAS `colonia`,\r\n\t`socios_grupossolidarios`.`representante_nombrecompleto`   \r\n\tAS `representante`\r\n\t\r\n\t\t\tFROM socios_grupossolidarios \r\n\t\t\tWHERE nombre_gruposolidario LIKE '%{$nombre_del_grupo}%'\r\n\t\t\t\t\tAND sucursal = '" . getSucursal() . "'\r\n\t\t\tLIMIT 0,10";
        $ctb = new cTabla($sql_grupos);
        $ctb->setEventKey("setGrupo");
        $ctb->setWidth();
        $rst = $ctb->Show();
    }
    return $rst;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:17,代码来源:frmsgrupos.php

示例2: addProforma

 /**
  * Generar una Prepoliza de perfil
  * @param integer 	$recibo		Numero de Recibo
  * @param integer 	$tipo_mvto	Tipo de Operacion
  * @param float 	$monto		Monto de la Operacion
  * @param integer	$socio		Numero de Socio
  * @param integer 	$docto		Numero de documento
  * @param integer 	$operacion	Tipo de Operacion Contable CARGO/ABONO
  * @param integer 	$usuario	Usuario de la Operacion
  */
 function addProforma($recibo, $tipo_mvto, $monto, $socio, $docto, $operacion = 1, $usuario = false, $banco = false)
 {
     if (MODULO_CONTABILIDAD_ACTIVADO == true) {
         $usuario = setNoMenorQueCero($usuario);
         $usuario = $usuario <= 0 ? getUsuarioActual() : $usuario;
         $sucursal = getSucursal();
         $banco = setNoMenorQueCero($banco);
         if ($monto != 0) {
             $sqlI = "INSERT INTO contable_polizas_proforma\n\t\t\t\t(numero_de_recibo, tipo_de_mvto, monto, socio, documento, contable_operacion, idusuario, sucursal, banco)\n\t\t\t\tVALUES({$recibo}, {$tipo_mvto}, {$monto}, {$socio}, {$docto}, '{$operacion}', {$usuario}, '{$sucursal}', {$banco})";
             my_query($sqlI);
         }
     }
     return "OK\tPROFORMA\t{$socio}\t{$docto}\t{$recibo}\t{$tipo_mvto}\t{$monto}\r\n";
 }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:24,代码来源:core.contable.inc.php

示例3: parametro

$idregimenmatrimonial = parametro("idregimenmatrimonial", DEFAULT_REGIMEN_CONYUGAL);
$idtipoidentificacion = parametro("idtipoidentificacion", DEFAULT_TIPO_IDENTIFICACION);
$idnumerodocumento = parametro("idnumerodocumento");
$idemail = parametro("idemail", "", MQL_RAW);
$idtelefono = parametro("idtelefono", 0, MQL_INT);
$idcurp = parametro("idcurp");
$idrfc = parametro("idrfc");
$idclavefiel = parametro("idclavefiel");
$idrazonnofiel = parametro("idrazonnofiel");
$idobservaciones = parametro("idobservaciones");
$idcajalocal = parametro("idcajalocal", $xLoc->getCajaLocal(), MQL_INT);
$iddependientes = parametro("iddependientes", 0, MQL_INT);
$eacp = EACP_CLAVE;
$razonSocial = parametro("idrazonsocial");
$descuento = parametro("iddescuento", 0, MQL_FLOAT);
$sucursal = parametro("idsucursal", getSucursal(), MQL_RAW);
$xSuc = new cSucursal($sucursal);
$xSuc->init();
$gruposolidario = parametro("idgrupo", DEFAULT_GRUPO, MQL_INT);
$gruposolidario = setNoMenorQueCero($gruposolidario) <= 0 ? DEFAULT_GRUPO : $gruposolidario;
$empresa = parametro("empresa", FALLBACK_CLAVE_EMPRESA, MQL_INT);
$empresa = parametro("iddependencia", $empresa, MQL_INT);
$empresa = parametro("idempresa", $empresa, MQL_INT);
$empresa = parametro("idcodigodeempresas", $empresa, MQL_INT);
$empresa = setNoMenorQueCero($empresa) <= 0 ? FALLBACK_CLAVE_EMPRESA : $empresa;
$calle = parametro("idnombreacceso");
$representante_legal = parametro("idsocio2", false, MQL_INT);
$ingresos = parametro("idingresos", 0, MQL_FLOAT);
$idactividad = parametro("idactividad", FALLBACK_ACTIVIDAD_ECONOMICA);
$nombreempresa = parametro("idrazonsocialtrabajo", "");
$espep = parametro("espep", false, MQL_BOOL);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:registro-personas.frm.php

示例4: unlink

 $completePath = $prePath . $usrFiles[$i]['name'];
 if (file_exists($completePath) == true) {
     unlink($completePath);
     echo "<p class='aviso'> SE ELIMINO EL ARCHIVO " . $usrFiles[$i]['name'] . "</p>";
 }
 if (move_uploaded_file($usrFiles[$i]['tmp_name'], $completePath)) {
     //echo "<p class='aviso'> SE GUARDO EXITOSAMENTE EL ARCHIVO " . $usrFiles[$i]['name'] . "</p>";
 } else {
     //echo "<p class='aviso'> SE FALLO AL GUARDAR " . $usrFiles[$i]['name'] . "</p>";
 }
 //analizar el Archivo
 $gestor = @fopen($completePath, "r");
 $iReg = 0;
 $cT = new cTipos();
 //inicializa el LOG del proceso
 $aliasFil = getSucursal() . "-carga-batch-de-inversiones-" . fechasys();
 $xLog = new cFileLog($aliasFil, true);
 if ($gestor) {
     while (!feof($gestor)) {
         $bufer = fgets($gestor, 4096);
         //$bufer			= stream_get_line($gestor, "\r\n");
         if (!isset($bufer)) {
             $msg .= "{$iReg}\t\tERROR\tLa Linea({$iReg}) no se leyo({$bufer})\r\n";
         } else {
             $bufer = trim($bufer);
             $datos = explode(",", $bufer, 6);
             $socio = $cT->cInt($datos[0]);
             $importe = $cT->cFloat($datos[1]);
             $fechaApertura = $cT->cFecha($datos[2]);
             $plazo = $cT->cInt($datos[3]);
             $tasa = $cT->cFloat($datos[4]);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:inversiones.upload.frm.php

示例5: execute

 function execute($socio, $tipo)
 {
     if (isset($this->mFile)) {
         //Mover los Archivos
         $destFile = PATH_TMP . $this->mFile['name'];
         $imgFile = "";
         $onProcess = true;
         if (move_uploaded_file($this->mFile['tmp_name'], $destFile)) {
             $md5FIl = md5_file($destFile);
             switch ($this->mFile["type"]) {
                 case "image/png":
                     $imgFile = imagecreatefrompng($destFile);
                     break;
                 case "image/jpeg":
                     $imgFile = imagecreatefromjpeg($destFile);
                     break;
                 case "image/gif":
                     $imgFile = imagecreatefromgif($destFile);
                     break;
                 default:
                     $onProcess = false;
                     $this->mMsg .= "<br /> EL TIPO DE ARCHIVO (" . $this->mFile["type"] . ") NO ES EL CORRECTO";
                     break;
             }
             if ($onProcess == true) {
                 ob_start();
                 $txt = "[" . date("Ydm H:i:s") . "] " . EACP_NAME;
                 imagettftext($imgFile, 9, 0, 10, 10, 20, "../fonts/arial.ttf", $txt);
                 imagepng($imgFile);
                 //Resize image
                 $png = ob_get_contents();
                 ob_end_clean();
                 $png = str_replace('##', '##', mysql_escape_string($png));
                 $user = $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"];
                 $eacp = EACP_CLAVE;
                 $sucursal = getSucursal();
                 $date = fechasys();
                 //Elimina las firmas anteriores
                 $sqldel = "DELETE FROM socios_firmas WHERE numero_de_cuenta={$cuenta}\n\t\t\t\t\tAND tipo={$tipo}";
                 my_query($sqldel);
                 $rsUQ = "INSERT INTO socios_firmas\n\t\t\t\t\t\t\t\t\t(numero_de_socio, tipo, \n\t\t\t\t\t\t\t\t\tfirma, md5_src, idusuario, sucursal, fecha_carga, eacp) \n    \t\t\t\t\t\t\t\tVALUES\n    \t\t\t\t\t\t\t\t({$socio}, {$tipo}, \"{$png}\", '{$md5FIl}', {$user}, '{$sucursal}', '{$date}', '{$eacp}')";
                 $rsM = my_query($rsUQ);
                 if ($rsM["stat"] == false) {
                     $this->mMsg .= "<br /> ERROR AL GUARDAR EL ARCHIVO EN LA DB, EL SISTEMA DEVOLVIO: " . $rsM["error"];
                 } else {
                     $this->mMsg .= "<br /> PROCESO EXITOSO";
                 }
             } else {
                 $this->mMsg .= "<br /> EL PROCESO NO SE LLEVO A CABO";
             }
             //Elimina el Archivo
             unlink($destFile);
         } else {
             //no se Movio
             $this->mMsg .= "<br /> NO SE CARGO EL ARCHIVO " . $this->mFile["name"] . "(" . $this->mFile["error"] . ")";
         }
     } else {
         $this->mMsg .= "<br /> NO EXISTE EL ARCHIVO ";
     }
 }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:60,代码来源:frmcaptacionfirmas.php

示例6: getSucursal

	
	$tiempoead 		= $fm->tentregaad+$mashoras;
	$tiempoocurre 	= $fm->tentrega+$mashoras;
	
	//$x = "http://www.pmmentuempresa.com/axfbt5asd/cotizar.php?tipopaquete=Paquete&desde=2&hasta=2&largo=150&alto=214&ancho=122&cantidad=50&peso=50";
	
	/*if($cantidad!="" && $cantidad!="0" && $cantidad>1){
		$peso = $peso*$cantidad;
	}*/
	
	if($volumen > $peso){
		$peso = $volumen;
	}
	
	$nombreorigen	= getSucursal($idorigen,$l);
	$nombredestino	= getSucursal($iddestino,$l);
	$nombredorigen 	= getDestinos($iddorigen,$l);
	$nombreddestino	= getDestinos($idddestino,$l);
	
	$s = "select catalogotiempodeentregas.*, hour(current_time) as tiempo 
	from catalogotiempodeentregas where idorigen = $idorigen and iddestino = $iddestino";
	$rm = mysql_query($s,$l) or die($s);
	$fm = mysql_fetch_object($rm);
	
	$horasparamensaje = array(0,12,14,16,8,9,10,11,13,15,17);
	
	if($fm->incrementartiempo==1){
		$s = "select if(current_time>'".$horasparamensaje[$fm->siocurre]."',1,0) as validacion";
		$rpr = mysql_query($s,$l) or die($s);
		$fpr = mysql_fetch_object($rpr);
		if($fpr->validacion=="1"){
开发者ID:sigmadesarrollo,项目名称:logisoft,代码行数:30,代码来源:cotizarImprimir.php

示例7: str_replace

    $filename = str_replace("rpt", "", $filename);
    $filename = str_replace("-", "", $filename);
    $filename = "{$filename}-" . date("YmdHi") . "-from-" . $iduser . ".xls";
    header("Content-type: application/x-msdownload");
    header("Content-Disposition: attachment; filename={$filename}");
    header("Pragma: no-cache");
    header("Expires: 0");
}
//array que determina el genero (sexo) de la persona
$arrGenero = array(99 => "D", 1 => "H", 2 => "M");
$arrECivil = array(2 => "01", 3 => "03", 6 => "04", 1 => "05", 4 => "06", 5 => "99", 99 => "99");
$arrRegMat = array("BIENES_SEPARADOS" => 2, "SOCIEDAD_CONYUGAL" => 3, "NINGUNO" => 9);
$arrELaboral = array(10 => "01", 11 => "01", 12 => "01", 13 => "01", 20 => "01", 40 => "02", 50 => "02", 99 => "99");
$tr = "";
//TODO: validar por sucursal
$sql = "\n\tSELECT\n\t\t*\n\tFROM\n\t\t`socios_general` `socios_general`\n\tWHERE\n\t\t\t/* `socios_general`.`sucursal`\t= '" . getSucursal() . "'\n\t\t\tAND */\n\t\t\t(`socios_general`.`personalidad_juridica` = 1\n\t\t\tOR\n\t\t\t`socios_general`.`personalidad_juridica` = 3\n\t\t\tOR\n\t\t\t`socios_general`.`personalidad_juridica` = 4\n\t\t\tOR\n\t\t\t`socios_general`.`personalidad_juridica` = 9\n\t\t\tOR\n\t\t\t`socios_general`.`personalidad_juridica` = 99)\n\t\t\t/* AND\n\t\t\t(`socios_general`.`estatusactual` != 20)*/\n\tORDER BY\n\t\t`socios_general`.`fechaalta` DESC\n";
$rs = mysql_query($sql, cnnGeneral());
while ($rw = mysql_fetch_array($rs)) {
    $socio = $rw["codigo"];
    //  $ife                            = $rw["documento_de_identificacion"]
    $nombre = $rw["nombrecompleto"];
    $apellidopaterno = $rw["apellidopaterno"];
    $apellidomaterno = $rw["apellidomaterno"];
    $genero = $arrGenero[$rw["genero"]];
    $sucursal = $rw["sucursal"];
    $fecha_de_alta = $rw["fechaalta"];
    $estado_civil = $arrECivil[$rw["estadocivil"]];
    $regimen_matrimonial = $arrRegMat[$rw["regimen_conyugal"]];
    $fecha_nacimiento = $rw["fechanacimiento"];
    $rfc = $rw["rfc"];
    $curp = $rw["curp"];
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:tcb-personas-fisicas.php

示例8: fechasys

</head>
	<link href="<?php 
echo CSS_GENERAL_FILE;
?>
" rel="stylesheet" type="text/css">
	<script   src="../js/jsrsClient.js"></script>
<body>
<fieldset>
<legend>Linea de Credito Autorizada</legend>
<?php 
$idsocio = $_POST["idsocio"];
$montolinea = $_POST["montolinea"];
$observaciones = $_POST["observaciones"];
$numerohipoteca = $_POST["numerohipoteca"];
$montohipoteca = $_POST["montohipoteca"];
$fechavenc = $_POST["elanno0"] . "-" . $_POST["elmes0"] . "-" . $_POST["eldia0"];
$fechaalta = fechasys();
$eacp = EACP_CLAVE;
$sucursal = getSucursal();
$estado = 1;
// VIGENTE
$sqllcf = "numero_socio, monto_linea, observaciones, numerohipoteca, monto_hipoteca, \r\n\t\t\t\t\tfecha_de_vencimiento, fecha_de_alta, estado, idusuario, sucursal, eacp";
$sqllcv = "{$idsocio}, {$montolinea}, '{$observaciones}', '{$numerohipoteca}', {$montolinea}, \r\n\t\t\t\t'{$fechavenc}', '{$fechaalta}', {$estado}, {$iduser}, '{$sucursal}', '{$eacp}'";
$sqllc = "INSERT INTO creditos_lineas({$sqllcf}) VALUES ({$sqllcv})";
my_query($sqllc);
echo "<p class='aviso'>la Linea de Credito ha Sido Agregada como Autorizada, de esta fecha en adelante, el Socio <b>" . getNombreSocio($idsocio) . "</b>\r\n\tsera tomado en cuenta para Ministrarse Creditos por un monto no mayor a {$montolinea}; por lo que se tendra que respetar dicha cantidad.</p> \r\n\t<input type='button' name='btnprint' value='IMPRIMIR AUTORIZACION'>\r\n\t";
?>
</fieldset>
</body>
</html>
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:30,代码来源:clscreditoslineas.php

示例9: jsaSetSucursal

function jsaSetSucursal($sucursal)
{
    getSucursal($sucursal);
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:4,代码来源:inicio.php

示例10: str_replace

</table>
<?php 
} else {
    $filename = $_SERVER['SCRIPT_NAME'];
    $filename = str_replace(".php", "", $filename);
    $filename = str_replace("rpt", "", $filename);
    $filename = str_replace("-", "", $filename);
    $filename = "{$filename}-" . date("YmdHi") . "-from-" . $iduser . ".xls";
    header("Content-type: application/x-msdownload");
    header("Content-Disposition: attachment; filename={$filename}");
    header("Pragma: no-cache");
    header("Expires: 0");
}
echo "<table width='100%' >\n\t<tr>\n\t\t<th>Socio</th>\n\t\t<th>Credito</th>\n\t\t<th>Producto</th>\n\t\t<th>Sucursal</th>\n\t\t<th>fecha de ministracion</th>\n\t\t<th>fecha de vencimiento</th>\n\t\t<th>fecha de ultimo pago</th>\n\t\t<th>tasa normal</th>\n\t\t<th>tasa moratorio</th>\n\t\t<th>numero de pagos</th>\n\t\t<th>periocidad de pago</th>\n\t\t<th>unidad de medida</th>\n\t\t<th>importe prestado</th>\n\t\t<th>saldo actual</th>\n\t\t<th>importe de la proxima cuota</th>\n\t\t<th>cuenta eje</th>\n\t\t<th>cuenta de garantia liquida</th>\n\t\t<th>capital pagado</th>\n\t\t<th>interes normal pagado</th>\n\t\t<th>iva interes normal pagado</th>\n\t\t<th>interes moratorio pagado</th>\n\t\t<th>iva interes moratorio pagado</th>\n\t\t<th>multas pagadas</th>\n\t\t<th>iva multas pagadas</th>\n\t\t<th>comision apertura pagadas</th>\n\t\t<th>gastos de investigacion pagados</th>\n\t\t<th>monto de la garantia liquida</th>\n\t</tr>";
$tr = "";
$sql = "\nSELECT\n\t*\nFROM\n\t`creditos_solicitud` `creditos_solicitud`\nWHERE saldo_actual > " . TOLERANCIA_SALDOS . "\n\t/* AND\n\tsucursal\t= '" . getSucursal() . "' */\n\tAND\n\testatus_actual != 50\n/* LIMIT 0,100 */\n";
$rs = mysql_query($sql, cnnGeneral());
while ($rw = mysql_fetch_array($rs)) {
    $socio = $rw["numero_socio"];
    $credito = $rw["numero_solicitud"];
    $producto = $rw["tipo_convenio"];
    $sucursal = $rw["sucursal"];
    $fechamin = $rw["fecha_ministracion"];
    $fechavenc = $rw["fecha_vencimiento"];
    $tasa_normal = $rw["tasa_interes"];
    $tasa_moratorio = $rw["tasa_moratorio"];
    $pagos = $rw["pagos_autorizados"];
    $periocidad = $rw["periocidad_de_pago"];
    $monto = $rw["monto_autorizado"];
    $saldo = $rw["saldo_actual"];
    $fecha_ultimo_mvto = $rw["fecha_ultimo_mvto"];
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:tcb-prestamos.php

示例11: setExport

 function setExport($FechaInicial = false, $FechaFinal = false)
 {
     $wByFi = $FechaInicial == false ? "" : " WHERE fecha_de_alta>='{$FechaInicial}' ";
     $wByFf = $FechaFinal == false ? "" : " AND fecha_de_alta<='{$FechaFinal}' ";
     $sucursal = getSucursal();
     $arrTipos = array("AD" => "A", "AA" => "B", "PD" => "C", "PA" => "D", "CD" => "E", "CA" => "F", "RD" => "G", "RA" => "H", "OD" => "K", "OA" => "L", "ED" => "I", "EA" => "J");
     //safe => Compaq
     $arrMayor = array("3" => "1", "4" => "2", "1" => "3", "2" => "4");
     //3 safe mayor
     $WriteText = "F  00000000000000\r\n";
     //cuenta de flujo de efectivo
     $sql = "SELECT numero, equivalencia, nombre, tipo, ctamayor, afectable, centro_de_costo, fecha_de_alta, digitoagrupador \r\n    \t\t\tFROM contable_catalogo {$wByFi} {$wByFf} \r\n    \t\t\tORDER BY numero\r\n    \t\t\t";
     $rs = mysql_query($sql, cnnGeneral());
     if (!$rs) {
         //Codigo de Control de Error
         saveError(2, $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"], "Depurar :" . mysql_error() . "|||Numero: " . mysql_errno() . "|||Instruccion SQL: \n " . $sql);
     }
     //$WriteText	.= "$sql\r\n";
     while ($rw = mysql_fetch_array($rs)) {
         //XXX: Si el titulo asignar 0 a superior
         //$WriteText	.= "C ";
         //CompAQi
         $WriteText .= "C  ";
         //$WriteText	.= substr(str_pad($rw["numero"], 20, " ", STR_PAD_RIGHT), 0, 20);
         $WriteText .= substr(str_pad($rw["numero"], 30, " ", STR_PAD_RIGHT), 0, 30);
         $WriteText .= " ";
         $WriteText .= substr(str_pad(trim($rw["nombre"]), 50, " ", STR_PAD_RIGHT), 0, 50);
         $WriteText .= " ";
         $WriteText .= substr(str_pad("", 50, " ", STR_PAD_RIGHT), 0, 50);
         $WriteText .= " ";
         //cuenta superior, mod a 30. compaqi
         //$WriteText	.= substr(str_pad( cuenta_superior( $rw["numero"] ), 20, " ", STR_PAD_RIGHT), 0, 20);
         $WriteText .= $rw["ctamayor"] == 1 ? substr(str_pad(cuenta_superior("0"), 30, " ", STR_PAD_RIGHT), 0, 30) : substr(str_pad(cuenta_superior($rw["numero"]), 30, " ", STR_PAD_RIGHT), 0, 30);
         $WriteText .= " ";
         $WriteText .= $arrTipos[$rw["tipo"]];
         $WriteText .= " ";
         $WriteText .= "0 ";
         //Baja
         $WriteText .= $arrMayor[$rw["ctamayor"]];
         $WriteText .= " ";
         $WriteText .= "0 ";
         $WriteText .= date("Ymd", strtotime($rw["fecha_de_alta"]));
         $WriteText .= " ";
         //Actualizacion ContPAQi
         $WriteText .= "81 ";
         //Sistema de Origen
         $WriteText .= "   1 ";
         //Moneda
         $WriteText .= "   0 ";
         //Digito Agrupador
         $WriteText .= "0    ";
         //Segmento de Negocio
         $WriteText .= "0 ";
         //Mvto.Segmento de Negocio
         $WriteText .= "\r\n";
         //$WriteText	.= "01 01 0000 000\r\n";
     }
     $nombre = "{$sucursal}-catalogo-contable-" . date("Ymd", strtotime(fechasys())) . "-" . rand(0, 1000) . "";
     $xFile = new cFileLog($nombre);
     $xFile->setWrite($WriteText);
     $xFile->setClose();
     return $xFile->getLinkDownload($nombre);
 }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:63,代码来源:core.contable.utils.inc.php

示例12: switch

     //Elimina el Archivo
     //unlink(PATH_TMP . $aliasFils . ".txt");
     //Abre Otro, lo crea si no existe
     $URIFil = @fopen(PATH_TMP . $aliasFils . ".txt", "a+");
 }
 switch ($step) {
     case 1:
         $msg .= "===================================== INICIANDO EL RESPALDO DE {$BkpSucursal} =============================\r\n";
         $FechaDeCorte = $_POST["cFechaDeCorte"];
         //Fecha Inicial de Corte
         $LstFolio = $_POST["cLastFolio"];
         //Ultimo Folio de Recibo
         $msg .= date("H:i:s") . "\tLa Fecha de Corte es {$FechaDeCorte}\r\n";
         //$msg				.= "\tLa Fecha de Corte es $FechaDeCorte";
         //step one: Socios a sus sucursales
         $xSuc = new cSucursal(getSucursal());
         $msg .= $xSuc->setValidar();
         $xCL = new cCajaLocal(getCajaLocal());
         $msg .= $xCL->setValidar();
         //step two: Folios al Maximo
         $msg .= setFoliosAlMaximo();
         //Step_tree: Elimina los archivos en el tmp Backups
         $xop = new cUtileriasParaOperaciones();
         //Genera un Recibo por los Mvtos Huerfanos de Recibo en Operaciones
         $msg .= $xop->setGenerarRecibosGlobales();
         //Elimina Recibos Duplicados
         $msg .= $xop->setEliminarRecibosDuplicados();
         $sql_ttmp = "DELETE FROM general_tmp";
         my_query($sql_ttmp);
         $msg .= "\tSe eliminan Registros Temporales\r\n";
         echo "\n\t\t\t\t<ol>\n\t\t\t\t\t<li>Se Actualizaron los Folios</li>\n\t\t\t\t\t<li>Se Actualizo el DEFAULT Socio para Operaciones que no tienen socio</li>\n\t\t\t\t\t<li>Se Actualizaron los Socios a su sucursal</li>\n\t\t\t\t\t<li>Se Actualizo el usuario ROOT para Operaciones que no tienen propietario</li>\n\t\t\t\t\t<li>Se Agrego el Recibo x para Mvtos Huerfanos</li>\n\t\t\t\t\t<li>Se Purgaron Recibos Duplicados</li>\n\t\t\t\t<li>Se Actualizo la sucursal de Creditos por usuario propietario</li>\n\t\t\t\t<li>Se Actualizo la sucursal de las Cuentas de Captacion por Usuario Propietario</li>\n\t\t\t\t<li>Se Actualizo la Sucursal de las Operaciones y recibos por Usuario Propietario</li>\n\t\t\t\t<li>La fecha de purga es a partir de {$FechaDeCorte}</li>\t\t\t\t\t\n\t\t\t\t</lo>\n\t\t\t\t<br />\n\t\t\t\t<a href=\"./sucursal.backup_offline.frm.php?a=1&s=2&f={$FechaDeCorte}&n={$LstFolio}\" target=\"_self\">Siguiente</a>\n\t\t\t";
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:sucursal.backup_offline.frm.php

示例13: date

if (isset($convenio) and $convenio != "todas") {
    $es_por_convenio = " AND creditos_solicitud.tipo_convenio = {$convenio} ";
}
if ($fecha_inicial && $fecha_final) {
    $rango_de_fechas = " AND creditos_solicitud.fecha_ministracion<='{$fecha_final}' ";
}
if (MODO_DEBUG == true) {
    $aliasFils = "log-de-informe_mesual-al-" . date("Y-m-d");
    //Elimina el Archivo
    unlink(PATH_TMP . $aliasFils . ".txt");
    //Abre Otro, lo crea si no existe
    $URIFil = fopen(PATH_TMP . $aliasFils . ".txt", "a+");
}
$msg = "============\t\t\t\tINFORME MENSUAL DE CREDITOS \r\n";
$msg .= "============\t\t\t\tCREADOR\t\t{$oficial} \r\n";
$msg .= "============\t\t\t\tSUCURSAL\t\t" . getSucursal() . " \r\n";
$input = $_GET["out"];
if (!$input) {
    $input = "default";
}
/**
 *	Arrrays de Datos Complementarios
 */
$VFigura = array(1 => "FISICA", 2 => "MORAL", 3 => "COPROPIEDAD", 99 => "DESCONOCIDO");
$VClasificacion = array(1 => "COMERCIAL", 2 => "VIVIENDA", 3 => "CONSUMO", 99 => "DESCONOCIDO");
$VPeriocidad = array(7 => "PAGO PARCIAL DE CAPITAL E INTER&Eacute;S", 15 => "PAGO PARCIAL DE CAPITAL E INTER&Eacute;S", 30 => "PAGO PARCIAL DE CAPITAL E INTER&Eacute;S", 60 => "PAGO PARCIAL DE CAPITAL E INTER&Eacute;S", 90 => "PAGO PARCIAL DE CAPITAL E INTER&Eacute;S", 360 => "CAPITAL E INTER&Eacute;S AL VENCIMIENTO");
/**
 * Estatus del Credito para Efectos del Reporte
 */
$VEstatus = array(10 => "VIGENTE", 20 => "VENCIDA", 30 => "VIGENTE", 60 => "VIGENTE", 50 => "VENCIDA");
/**
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:rpt_cedula_informe_mensual_dinamico.php

示例14: unlink

 $completePath = $prePath . $usrFiles[$i]['name'];
 if (file_exists($completePath) == true) {
     unlink($completePath);
     echo "<p class='aviso'> SE ELIMINO EL ARCHIVO " . $usrFiles[$i]['name'] . "</p>";
 }
 if (move_uploaded_file($usrFiles[$i]['tmp_name'], $completePath)) {
     //echo "<p class='aviso'> SE GUARDO EXITOSAMENTE EL ARCHIVO " . $usrFiles[$i]['name'] . "</p>";
 } else {
     //echo "<p class='aviso'> SE FALLO AL GUARDAR " . $usrFiles[$i]['name'] . "</p>";
 }
 //analizar el Archivo
 $gestor = @fopen($completePath, "r");
 $iReg = 0;
 $cT = new cTipos();
 //inicializa el LOG del proceso
 $aliasFil = getSucursal() . "-carga-batch-de-vista-" . fechasys();
 $xLog = new cFileLog($aliasFil, true);
 if ($gestor) {
     while (!feof($gestor)) {
         $bufer = fgets($gestor, 4096);
         //$bufer			= stream_get_line($gestor, "\r\n");
         if (!isset($bufer)) {
             $msg .= "{$iReg}\t\tERROR\tLa Linea({$iReg}) no se leyo({$bufer})\r\n";
         } else {
             $bufer = trim($bufer);
             $datos = explode(",", $bufer, 6);
             //numero de socio //[numero de cuenta] //[FechaDeApertura] //[clave de producto] //saldo //[observaciones]
             $socio = $cT->cInt($datos[0]);
             $NumCuenta = $cT->cInt($datos[1]);
             $fechaApertura = $cT->cFecha($datos[2]);
             $Producto = $cT->cInt($datos[3]);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:vista.upload.frm.php

示例15: cFileLog

                     $xRel->dependiente(1);
                     $xRel->domicilio_completo("");
                     $xRel->eacp(EACP_CLAVE);
                     $xRel->estatus(10);
                     $xRel->fecha_alta(fechasys());
                     $xRel->fecha_nacimiento($xSoc->getFechaDeNacimiento());
                     $xRel->idsocios_relaciones($xRel->query()->getLastID());
                     $xRel->idusuario(getUsuarioActual());
                     $xRel->monto_relacionado(0);
                     $xRel->nombres($nombre);
                     $xRel->numero_socio($idrelacion);
                     $xRel->observaciones("");
                     $xRel->ocupacion($tipo);
                     $xRel->porcentaje_relacionado(100);
                     $xRel->socio_relacionado($id);
                     $xRel->sucursal(getSucursal());
                     $xRel->telefono_movil(0);
                     $xRel->telefono_residencia(0);
                     $xRel->tipo_relacion($eq[$tipo]);
                     $xRel->query()->insert()->save();
                 }
                 break;
         }
         //end swicth
     }
 }
 $msg .= $xFil->getMessages();
 if (MODO_DEBUG == true) {
     $xFl = new cFileLog();
     $xFl->setWrite($msg);
     $xFl->setClose();
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:sdn.upload.frm.php


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