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


PHP cliente::get方法代码示例

本文整理汇总了PHP中cliente::get方法的典型用法代码示例。如果您正苦于以下问题:PHP cliente::get方法的具体用法?PHP cliente::get怎么用?PHP cliente::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cliente的用法示例。


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

示例1: private_core

 protected function private_core()
 {
     $this->share_extensions();
     $this->servicio = new servicio_cliente();
     $this->agente = new agente();
     $this->serie = new serie();
     $this->estados = new estado_servicio();
     // cargamos las opciones del calendario
     $fsvar = new fs_var();
     $this->servicios_setup = $fsvar->array_get(array('servicios_mostrar_fechainicio' => 0, 'cal_inicio' => "09:00", 'cal_fin' => "20:00", 'cal_intervalo' => "30"), FALSE);
     if (isset($_REQUEST['buscar_cliente'])) {
         $this->buscar_cliente();
     }
     if (isset($_REQUEST['codagente']) or isset($_REQUEST['codcliente']) or isset($_REQUEST['estado'])) {
         if (isset($_REQUEST['codcliente'])) {
             if ($_REQUEST['codcliente'] != '') {
                 $cli0 = new cliente();
                 $this->cliente = $cli0->get($_REQUEST['codcliente']);
                 $this->codcliente = $_REQUEST['codcliente'];
             }
             if (isset($_REQUEST['codagente'])) {
                 $this->codagente = $_REQUEST['codagente'];
             }
             if (isset($_REQUEST['estado'])) {
                 $this->estado = $_REQUEST['estado'];
             }
         }
     }
 }
开发者ID:pcrednet,项目名称:servicios,代码行数:29,代码来源:ventas_servicios_calendario.php

示例2: process

 protected function process()
 {
     $this->offset = 0;
     $this->agente = new agente();
     $this->tarifas = new tarifas_clientes();
     $this->share_extension();
     /// ¿El usuario tiene permiso para eliminar en esta página?
     $this->allow_delete = $this->user->allow_delete_on(__CLASS__);
     if (isset($_GET['codcliente'])) {
         //Primero seleccionamos cliente
         $cliente = new cliente();
         $this->cliente = $cliente->get($_GET['codcliente']);
         //Ahora buscamos un articulo
         if (isset($_REQUEST['buscar_articulo'])) {
             /// desactivamos la plantilla HTML
             $this->template = FALSE;
             $json = array();
             $articulo = new articulo();
             $this->articulos = $articulo->search($_REQUEST['buscar_articulo']);
             foreach ($this->articulos as $art) {
                 $json[] = array('value' => $art->descripcion, 'data' => $art->referencia);
             }
             header('Content-Type: application/json');
             echo json_encode(array('query' => $_REQUEST['buscar_articulo'], 'suggestions' => $json));
         } else {
             if (isset($_POST['tarifa_pvp'])) {
                 $this->nueva_tarifa();
                 //Luego Seleccionamos las tarifas mas recientes de los articulos para este cliente
                 $this->tarifas_select = $this->tarifas->get_tarifas_cliente_select($_GET['codcliente']);
                 //Por ultimo seleccinamos todas las tarias de precios para este cliente
                 $this->tarifas_all = $this->tarifas->get_tarifas_cliente($_GET['codcliente']);
                 //Para eliminar
             } else {
                 if (isset($_GET['delete_tarifa'])) {
                     $tarifa = $this->tarifas->get($_GET['delete_tarifa']);
                     if ($tarifa) {
                         if ($tarifa->delete()) {
                             $this->new_message('Tarifa eliminada correctamente.');
                         } else {
                             $this->new_error_msg('Imposible eliminar la tarifa.');
                         }
                     } else {
                         $this->new_error_msg('Tarifa no encontrada.');
                     }
                     //Luego Seleccionamos las tarifas mas recientes de los articulos para este cliente
                     $this->tarifas_select = $this->tarifas->get_tarifas_cliente_select($_GET['codcliente']);
                     //Por ultimo seleccinamos todas las tarias de precios para este cliente
                     $this->tarifas_all = $this->tarifas->get_tarifas_cliente($_GET['codcliente']);
                 } else {
                     //Luego Seleccionamos las tarifas mas recientes de los articulos para este cliente
                     $this->tarifas_select = $this->tarifas->get_tarifas_cliente_select($_GET['codcliente']);
                     //Por ultimo seleccinamos todas las tarias de precios para este cliente
                     $this->tarifas_all = $this->tarifas->get_tarifas_cliente($_GET['codcliente']);
                 }
             }
         }
     } else {
         $this->new_error_msg('Imposible enseñar tarifas, cliente no seleccionado.');
     }
 }
开发者ID:shawe,项目名称:tarifas_cliente,代码行数:60,代码来源:tarifas_cliente.php

示例3: private_core

 protected function private_core()
 {
     $this->cliente = FALSE;
     $this->logo = FALSE;
     if (file_exists('tmp/' . FS_TMP_NAME . 'logo.png')) {
         $this->logo = 'tmp/' . FS_TMP_NAME . 'logo.png';
     } else {
         if (file_exists('tmp/' . FS_TMP_NAME . 'logo.jpg')) {
             $this->logo = 'tmp/' . FS_TMP_NAME . 'logo.jpg';
         }
     }
     $this->template = FALSE;
     if (isset($_REQUEST['id'])) {
         $recibo0 = new recibo_cliente();
         $this->recibo = $recibo0->get($_REQUEST['id']);
         if ($this->recibo) {
             $cliente = new cliente();
             $this->cliente = $cliente->get($this->recibo->codcliente);
             $fact0 = new factura_cliente();
             $this->factura = $fact0->get($this->recibo->idfactura);
             $this->generar_pdf_recibo();
         } else {
             echo 'ERROR - Recibo no encontrado.';
         }
     } else {
         $this->share_extensions();
     }
 }
开发者ID:desalort,项目名称:FSAutoventas,代码行数:28,代码来源:imprimir_recibo.php

示例4: private_core

 protected function private_core()
 {
     $this->share_extensions();
     /// obtenemos los datos de configuración de impresión
     $this->impresion = array('print_ref' => '1', 'print_dto' => '1', 'print_alb' => '0', 'print_formapago' => '1');
     $fsvar = new fs_var();
     $this->impresion = $fsvar->array_get($this->impresion, FALSE);
     $this->factura = FALSE;
     if (isset($_GET['id'])) {
         $factura = new factura_cliente();
         $this->factura = $factura->get($_GET['id']);
     }
     if (isset($_GET['abreviatura'])) {
         $traduccion = new traduccion_fac_det();
         $this->traduccion = $traduccion->get($_GET['abreviatura']);
     } else {
         $traduccion = new traduccion_fac_det();
         $this->traduccion = $traduccion->get('es_ES');
     }
     if ($this->factura) {
         $cliente = new cliente();
         $this->cliente = $cliente->get($this->factura->codcliente);
         if (isset($_POST['email'])) {
             $this->enviar_email('factura', $_REQUEST['tipo']);
         } else {
             $filename = 'factura_' . $this->factura->codigo . '.pdf';
             $this->generar_pdf(FALSE, $filename);
         }
     } else {
         $this->new_error_msg("¡Factura de cliente no encontrada!");
     }
 }
开发者ID:eltictacdicta,项目名称:factura_detallada,代码行数:32,代码来源:factura_detallada.php

示例5: private_core

 protected function private_core()
 {
     //cargamos configuración de servicios
     $fsvar = new fs_var();
     $this->servicios_setup = $fsvar->array_get(array('servicios_diasfin' => 10, 'servicios_material' => 0, 'servicios_mostrar_material' => 0, 'servicios_material_estado' => 0, 'servicios_mostrar_material_estado' => 0, 'servicios_accesorios' => 0, 'servicios_mostrar_accesorios' => 0, 'servicios_descripcion' => 0, 'servicios_mostrar_descripcion' => 0, 'servicios_solucion' => 0, 'servicios_mostrar_solucion' => 0, 'servicios_fechafin' => 0, 'servicios_mostrar_fechafin' => 0, 'servicios_fechainicio' => 0, 'servicios_mostrar_fechainicio' => 0, 'servicios_mostrar_garantia' => 0, 'servicios_garantia' => 0, 'servicios_condiciones' => "Condiciones del deposito:\nLos presupuestos realizados tienen una" . " validez de 15 días.\nUna vez avisado al cliente para que recoja el producto este dispondrá" . " de un plazo máximo de 2 meses para recogerlo, de no ser así y no haber aviso por parte del" . " cliente se empezará a cobrar 1 euro al día por gastos de almacenaje.\nLos accesorios y" . " productos externos al equipo no especificados en este documento no podrán ser reclamados en" . " caso de disconformidad con el técnico."), FALSE);
     /*Cargamos traduccion*/
     $this->st = $fsvar->array_get(array('st_servicio' => "Servicio", 'st_servicios' => "Servicios", 'st_material' => "Material", 'st_material_estado' => "Estado del material entregado", 'st_accesorios' => "Accesorios que entrega", 'st_descripcion' => "Descripción de la averia", 'st_solucion' => "Solución"), FALSE);
     $this->cliente = FALSE;
     $this->impuesto = new impuesto();
     $this->servicio = FALSE;
     /// obtenemos los datos de configuración de impresión
     $this->impresion = array('print_ref' => '1', 'print_dto' => '1', 'print_alb' => '0');
     $fsvar = new fs_var();
     $this->impresion = $fsvar->array_get($this->impresion, FALSE);
     if (isset($_REQUEST['id'])) {
         $serv = new servicio_cliente();
         $this->servicio = $serv->get($_REQUEST['id']);
         if ($this->servicio) {
             $cliente = new cliente();
             $this->cliente = $cliente->get($this->servicio->codcliente);
         }
         if (isset($_POST['email'])) {
             $this->enviar_email('servicio');
         } else {
             $this->generar_pdf_servicio();
         }
     }
     $this->share_extensions();
 }
开发者ID:Apvilchez,项目名称:servicios,代码行数:29,代码来源:imprimir_servicio.php

示例6: private_core

 protected function private_core()
 {
     $this->share_extension();
     $this->cliente = FALSE;
     $this->desde = Date('01-01-Y');
     $this->hasta = Date('t-m-Y');
     $this->resultados = FALSE;
     $this->serie = new serie();
     if (isset($_REQUEST['buscar_cliente'])) {
         $this->buscar_cliente();
     } else {
         if (isset($_REQUEST['codcliente'])) {
             $cli0 = new cliente();
             $this->cliente = $cli0->get($_REQUEST['codcliente']);
             if (isset($_REQUEST['codserie'])) {
                 $this->codserie = $_REQUEST['codserie'];
             }
             if (isset($_REQUEST['desde'])) {
                 $this->desde = $_REQUEST['desde'];
             }
             if (isset($_REQUEST['hasta'])) {
                 $this->hasta = $_REQUEST['hasta'];
             }
             if ($this->cliente) {
                 $this->resultados = $this->buscar_pedidos();
                 if (isset($_POST['cantidad_0'])) {
                     $this->agrupar_pedidos();
                     $this->resultados = FALSE;
                 }
             }
         }
     }
 }
开发者ID:desalort,项目名称:FSAutoventas,代码行数:33,代码来源:ventas_agrupar_pedidos.php

示例7: process

 protected function process()
 {
     $this->show_fs_toolbar = FALSE;
     $this->cliente = FALSE;
     $this->pedido = FALSE;
     $this->presupuesto = FALSE;
     if (isset($_REQUEST['pedido']) and isset($_REQUEST['id'])) {
         $ped = new pedido_cliente();
         $this->pedido = $ped->get($_REQUEST['id']);
         if ($this->pedido) {
             $cliente = new cliente();
             $this->cliente = $cliente->get($this->pedido->codcliente);
         }
         if (isset($_POST['email'])) {
             $this->enviar_email('pedio');
         } else {
             $this->generar_pdf_pedido();
         }
     } else {
         if (isset($_REQUEST['presupuesto']) and isset($_REQUEST['id'])) {
             $pres = new presupuesto_cliente();
             $this->presupuesto = $pres->get($_REQUEST['id']);
             if ($this->presupuesto) {
                 $cliente = new cliente();
                 $this->cliente = $cliente->get($this->presupuesto->codcliente);
             }
             if (isset($_POST['email'])) {
                 $this->enviar_email('presupuesto');
             } else {
                 $this->generar_pdf_presupuesto();
             }
         }
     }
     $this->share_extensions();
 }
开发者ID:BGCX067,项目名称:facturascripts-svn-to-git,代码行数:35,代码来源:imprimir_presu_pedi.php

示例8: private_core

 protected function private_core()
 {
     $this->share_extension();
     /// cargamos la configuración de servicios
     $fsvar = new fs_var();
     $this->setup = $fsvar->array_get(array('servicios_diasfin' => 10, 'servicios_material' => 0, 'servicios_mostrar_material' => 0, 'servicios_material_estado' => 0, 'servicios_mostrar_material_estado' => 0, 'servicios_accesorios' => 0, 'servicios_mostrar_accesorios' => 0, 'servicios_descripcion' => 0, 'servicios_mostrar_descripcion' => 0, 'servicios_solucion' => 0, 'servicios_mostrar_solucion' => 0, 'servicios_fechafin' => 0, 'servicios_mostrar_fechafin' => 0, 'servicios_fechainicio' => 0, 'servicios_mostrar_fechainicio' => 0, 'servicios_mostrar_garantia' => 0, 'servicios_garantia' => 0, 'servicios_condiciones' => "Condiciones del deposito:\nLos presupuestos realizados tienen una" . " validez de 15 días.\nUna vez avisado al cliente para que recoja el producto este dispondrá" . " de un plazo máximo de 2 meses para recogerlo, de no ser así y no haber aviso por parte del" . " cliente se empezará a cobrar 1 euro al día por gastos de almacenaje.\nLos accesorios y" . " productos externos al equipo no especificados en este documento no podrán ser reclamados en" . " caso de disconformidad con el técnico.", 'st_servicio' => "Servicio", 'st_servicios' => "Servicios", 'st_material' => "Material", 'st_material_estado' => "Estado del material entregado", 'st_accesorios' => "Accesorios que entrega", 'st_descripcion' => "Descripción de la averia", 'st_solucion' => "Solución", 'st_fechainicio' => "Fecha de Inicio", 'st_fechafin' => "Fecha de finalización", 'st_garantía' => "Garantía"), FALSE);
     /// cargamos el servicios
     $this->servicio = FALSE;
     if (isset($_GET['id'])) {
         $serv0 = new servicio_cliente();
         $this->servicio = $serv0->get($_GET['id']);
     }
     $term0 = new terminal_caja();
     $this->terminales = $term0->all();
     $this->terminal = FALSE;
     if (isset($_GET['terminal'])) {
         $this->terminal = $term0->get($_GET['terminal']);
     }
     if ($this->servicio and $this->terminal) {
         $cli0 = new cliente();
         $this->cliente = $cli0->get($this->servicio->codcliente);
         $numt = $this->terminal->num_tickets;
         while ($numt > 0) {
             $this->imprimir();
             $this->terminal->save();
             $numt--;
         }
     }
 }
开发者ID:pcrednet,项目名称:servicios,代码行数:29,代码来源:imprimir_servicio_ticket.php

示例9: process

 protected function process()
 {
     $albaran = new albaran_cliente();
     /// desactivamos la barra de botones
     $this->show_fs_toolbar = FALSE;
     $this->offset = 0;
     if (isset($_GET['offset'])) {
         $this->offset = intval($_GET['offset']);
     }
     /// Usamos una cookie para recordar si el usuario quiere ver los pendientes
     $this->pendientes = isset($_COOKIE['ventas_alb_ptes']);
     if (isset($_GET['ptefactura'])) {
         $this->pendientes = $_GET['ptefactura'] == 'TRUE';
         if ($this->pendientes) {
             setcookie('ventas_alb_ptes', 'TRUE', time() + FS_COOKIES_EXPIRE);
         } else {
             setcookie('ventas_alb_ptes', FALSE, time() - FS_COOKIES_EXPIRE);
         }
     }
     if (isset($_POST['buscar_lineas'])) {
         $this->buscar_lineas();
     } else {
         if (isset($_GET['codagente'])) {
             $this->template = 'extension/ventas_albaranes_agente';
             $agente = new agente();
             $this->agente = $agente->get($_GET['codagente']);
             $this->resultados = $albaran->all_from_agente($_GET['codagente'], $this->offset);
         } else {
             if (isset($_GET['codcliente'])) {
                 $this->template = 'extension/ventas_albaranes_cliente';
                 $cliente = new cliente();
                 $this->cliente = $cliente->get($_GET['codcliente']);
                 $this->resultados = $albaran->all_from_cliente($_GET['codcliente'], $this->offset);
             } else {
                 if (isset($_GET['ref'])) {
                     $this->template = 'extension/ventas_albaranes_articulo';
                     $articulo = new articulo();
                     $this->articulo = $articulo->get($_GET['ref']);
                     $linea = new linea_albaran_cliente();
                     $this->resultados = $linea->all_from_articulo($_GET['ref'], $this->offset);
                 } else {
                     $this->share_extension();
                     if (isset($_POST['delete'])) {
                         $this->delete_albaran();
                     }
                     if ($this->query) {
                         $this->resultados = $albaran->search($this->query, $this->offset);
                     } else {
                         if ($this->pendientes) {
                             $this->resultados = $albaran->all_ptefactura($this->offset);
                         } else {
                             $this->resultados = $albaran->all($this->offset);
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:BGCX067,项目名称:facturascripts-svn-to-git,代码行数:59,代码来源:ventas_albaranes.php

示例10: process

 protected function process()
 {
     $this->factura = new factura_cliente();
     $this->huecos = array();
     $this->offset = 0;
     if (isset($_GET['offset'])) {
         $this->offset = intval($_GET['offset']);
     }
     if (isset($_POST['buscar_lineas'])) {
         $this->buscar_lineas();
     } else {
         if (isset($_GET['codagente'])) {
             $this->template = 'extension/ventas_facturas_agente';
             $agente = new agente();
             $this->agente = $agente->get($_GET['codagente']);
             $this->resultados = $this->factura->all_from_agente($_GET['codagente'], $this->offset);
         } else {
             if (isset($_GET['codcliente'])) {
                 $this->template = 'extension/ventas_facturas_cliente';
                 $cliente = new cliente();
                 $this->cliente = $cliente->get($_GET['codcliente']);
                 $this->resultados = $this->factura->all_from_cliente($_GET['codcliente'], $this->offset);
             } else {
                 if (isset($_GET['ref'])) {
                     $this->template = 'extension/ventas_facturas_articulo';
                     $articulo = new articulo();
                     $this->articulo = $articulo->get($_GET['ref']);
                     $linea = new linea_factura_cliente();
                     $this->resultados = $linea->all_from_articulo($_GET['ref'], $this->offset);
                 } else {
                     $this->share_extension();
                     $this->huecos = $this->factura->huecos();
                     if (isset($_GET['delete'])) {
                         $fact = $this->factura->get($_GET['delete']);
                         if ($fact) {
                             if ($fact->delete()) {
                                 $this->new_message("Factura eliminada correctamente.");
                             } else {
                                 $this->new_error_msg("¡Imposible eliminar la factura!");
                             }
                         } else {
                             $this->new_error_msg("¡Factura no encontrada!");
                         }
                     }
                     if ($this->query != '') {
                         $this->resultados = $this->factura->search($this->query, $this->offset);
                     } else {
                         if (isset($_GET['sinpagar'])) {
                             $this->resultados = $this->factura->all_sin_pagar($this->offset);
                         } else {
                             $this->resultados = $this->factura->all($this->offset);
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:ramikat,项目名称:ERPSISFS,代码行数:58,代码来源:ventas_facturas.php

示例11: process

 protected function process()
 {
     $pedido = new pedido_cliente();
     $this->offset = 0;
     if (isset($_GET['offset'])) {
         $this->offset = intval($_GET['offset']);
     }
     $this->mostrar = 'todos';
     if (isset($_GET['mostrar'])) {
         $this->mostrar = $_GET['mostrar'];
     }
     if (isset($_POST['buscar_lineas'])) {
         $this->buscar_lineas();
     } else {
         if (isset($_GET['codagente'])) {
             $this->template = 'extension/ventas_pedidos_agente';
             $agente = new agente();
             $this->agente = $agente->get($_GET['codagente']);
             $this->resultados = $pedido->all_from_agente($_GET['codagente'], $this->offset);
         } else {
             if (isset($_GET['codcliente'])) {
                 $this->template = 'extension/ventas_pedidos_cliente';
                 $cliente = new cliente();
                 $this->cliente = $cliente->get($_GET['codcliente']);
                 $this->resultados = $pedido->all_from_cliente($_GET['codcliente'], $this->offset);
             } else {
                 if (isset($_GET['ref'])) {
                     $this->template = 'extension/ventas_pedidos_articulo';
                     $articulo = new articulo();
                     $this->articulo = $articulo->get($_GET['ref']);
                     $linea = new linea_pedido_cliente();
                     $this->resultados = $linea->all_from_articulo($_GET['ref'], $this->offset);
                 } else {
                     $this->share_extension();
                     if (isset($_POST['delete'])) {
                         $this->delete_pedido();
                     }
                     if ($this->query) {
                         $this->resultados = $pedido->search($this->query, $this->offset);
                     } else {
                         if ($this->mostrar == 'pendientes') {
                             $this->resultados = $pedido->all_ptealbaran($this->offset);
                         } else {
                             if ($this->mostrar == 'rechazados') {
                                 $this->resultados = $pedido->all_rechazados($this->offset);
                             } else {
                                 /// ejecutamos el proceso del cron para pedidos.
                                 $pedido->cron_job();
                                 $this->resultados = $pedido->all($this->offset);
                             }
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:ramikat,项目名称:ERPSISFS,代码行数:57,代码来源:ventas_pedidos.php

示例12: process

 protected function process()
 {
     $pedido = new pedido_cliente();
     /// desactivamos la barra de botones
     $this->show_fs_toolbar = FALSE;
     $this->offset = 0;
     if (isset($_GET['offset'])) {
         $this->offset = intval($_GET['offset']);
     }
     if (isset($_POST['buscar_lineas'])) {
         $this->buscar_lineas();
     } else {
         if (isset($_GET['codagente'])) {
             $this->template = 'extension/ventas_pedidos_agente';
             $agente = new agente();
             $this->agente = $agente->get($_GET['codagente']);
             $this->resultados = $pedido->all_from_agente($_GET['codagente'], $this->offset);
         } else {
             if (isset($_GET['codcliente'])) {
                 $this->template = 'extension/ventas_pedidos_cliente';
                 $cliente = new cliente();
                 $this->cliente = $cliente->get($_GET['codcliente']);
                 $this->resultados = $pedido->all_from_cliente($_GET['codcliente'], $this->offset);
             } else {
                 if (isset($_GET['ref'])) {
                     $this->template = 'extension/ventas_pedidos_articulo';
                     $articulo = new articulo();
                     $this->articulo = $articulo->get($_GET['ref']);
                     $linea = new linea_pedido_cliente();
                     $this->resultados = $linea->all_from_articulo($_GET['ref'], $this->offset);
                 } else {
                     $this->share_extension();
                     if (isset($_POST['delete'])) {
                         $this->delete_pedido();
                     }
                     if ($this->query) {
                         $this->resultados = $pedido->search($this->query, $this->offset);
                     } else {
                         if (isset($_GET['pendientes'])) {
                             $this->resultados = $pedido->all_ptealbaran($this->offset);
                         } else {
                             if (isset($_GET['rechazados'])) {
                                 $this->resultados = $pedido->all_rechazados($this->offset);
                             } else {
                                 $this->resultados = $pedido->all($this->offset);
                             }
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:BGCX067,项目名称:facturascripts-svn-to-git,代码行数:53,代码来源:ventas_pedidos.php

示例13: private_core

 protected function private_core()
 {
     $this->albaran = new albaran_cliente();
     $this->cliente = FALSE;
     $this->codserie = NULL;
     $this->ejercicio = new ejercicio();
     $this->forma_pago = new forma_pago();
     $this->serie = new serie();
     $this->neto = 0;
     $this->total = 0;
     $this->desde = Date('01-01-Y');
     $this->hasta = Date('t-m-Y');
     $this->observaciones = '';
     if (isset($_REQUEST['buscar_cliente'])) {
         $this->buscar_cliente();
     } else {
         if (isset($_POST['idalbaran'])) {
             $this->cliente = new cliente();
             $this->agrupar();
         } else {
             if (isset($_REQUEST['codcliente'])) {
                 $cli0 = new cliente();
                 $this->cliente = $cli0->get($_REQUEST['codcliente']);
                 if (isset($_REQUEST['codserie'])) {
                     $this->codserie = $_REQUEST['codserie'];
                 }
                 if (isset($_REQUEST['desde'])) {
                     $this->desde = $_REQUEST['desde'];
                 }
                 if (isset($_REQUEST['hasta'])) {
                     $this->hasta = $_REQUEST['hasta'];
                 }
                 if (isset($_REQUEST['observaciones'])) {
                     $this->observaciones = $_REQUEST['observaciones'];
                 }
                 if ($this->cliente) {
                     $this->resultados = $this->albaran->search_from_cliente($this->cliente->codcliente, $this->desde, $this->hasta, $this->codserie, $this->observaciones);
                     if ($this->resultados) {
                         foreach ($this->resultados as $alb) {
                             $this->neto += $alb->neto;
                             $this->total += $alb->total;
                         }
                     } else {
                         $this->new_message("Sin resultados.");
                     }
                 }
             } else {
                 $this->share_extensions();
             }
         }
     }
 }
开发者ID:vicenteserra,项目名称:facturacion_base,代码行数:52,代码来源:ventas_agrupar_albaranes.php

示例14: private_core

 protected function private_core()
 {
     $this->share_extension();
     $this->documentos = array();
     if (isset($_GET['folder']) and isset($_GET['cod'])) {
         //Primero cargamos el proveedor o cliente segun sea
         if ($_GET['folder'] == 'proveedor') {
             $proveedor = new proveedor();
             $this->proveedor = $proveedor->get($_GET['cod']);
             $this->cod = $_GET['cod'];
         } else {
             $cliente = new cliente();
             $this->cliente = $cliente->get($_GET['cod']);
             $this->cod = $_GET['cod'];
         }
         //Luego si no existen documentos crea directorios
         if (!file_exists('tmp/' . FS_TMP_NAME . 'documentos_procli')) {
             mkdir('tmp/' . FS_TMP_NAME . 'documentos_procli');
         }
         if (!file_exists('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder'])) {
             mkdir('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder']);
         }
         //PAra subir archivos
         if (isset($_POST['upload'])) {
             if (is_uploaded_file($_FILES['fdocumento']['tmp_name'])) {
                 if (!file_exists('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder'] . '/' . $this->cod)) {
                     mkdir('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder'] . '/' . $this->cod);
                 }
                 copy($_FILES['fdocumento']['tmp_name'], "tmp/" . FS_TMP_NAME . "documentos_procli/" . $_GET['folder'] . '/' . $this->cod . '/' . $_FILES['fdocumento']['name']);
                 $this->new_message('Documentos añadido correctamente.');
             }
         } else {
             if (isset($_GET['delete'])) {
                 if (file_exists('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder'] . '/' . $this->cod . '/' . $_GET['delete'])) {
                     if (unlink('tmp/' . FS_TMP_NAME . 'documentos_procli/' . $_GET['folder'] . '/' . $this->cod . '/' . $_GET['delete'])) {
                         $this->new_message('Archivo ' . $_GET['delete'] . ' eliminado correctamente.');
                     } else {
                         $this->new_error_msg('Error al eliminar el archivo ' . $_GET['delete'] . '.');
                     }
                 } else {
                     $this->new_error_msg('Archivo no encontrado.');
                 }
             }
         }
         //Si no finalmente enseñamos todos los documentos para este cliente o proveedor
         $this->documentos = $this->get_documentos();
     }
 }
开发者ID:desalort,项目名称:FSAutoventas,代码行数:48,代码来源:documentos_procli.php

示例15: process

 protected function process()
 {
     $this->share_extensions();
     $this->factura = FALSE;
     if (isset($_GET['id'])) {
         $factura = new factura_cliente();
         $this->factura = $factura->get($_GET['id']);
     }
     if ($this->factura) {
         $cliente = new cliente();
         $this->cliente = $cliente->get($this->factura->codcliente);
         $this->generar_pdf();
     } else {
         $this->new_error_msg("¡Factura de cliente no encontrada!");
     }
 }
开发者ID:ramikat,项目名称:ERPSISFS,代码行数:16,代码来源:factura_detallada.php


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