예제 #1
0
        /// <summary>
        /// GAVL SE AGREGA NUEVO PROCEDIMIENTO PARA ACTUALIZAR CLIENTE DE IQUITOS 
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public bool ActualizarDireccionTelefonoPeru(ClienteInfo item)
        {
            bool okTrans = false;
            //bool resultado = false;
            moduleperu = new Application.Enterprise.Data.ValidaClienteIquitos(); //GAVL VALIDACION DE INSERCION PARA PERU IQUITOS
            try
            {
                okTrans = module.ActualizarDireccionTelefono(item);
                //if (okTrans)
                //{
                //    resultado = moduleperu.ActualizarDireccionTelefonoIquito(item);
                //    if (resultado)
                //    {
                //        okTrans = resultado;
                //    }   
                //}
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(string.Format("NIVI Error: {0} , NameSpace: {1}, Clase: {2}, Metodo: {3} ", ex.Message, MethodBase.GetCurrentMethod().DeclaringType.Namespace, MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name));

                return false;
            }
            return okTrans;
        }
예제 #2
0
        /// <summary>
        /// Realiza la actualizacion de una empresaria en Peru.
        /// </summary>
        /// <param name="item"></param>
        public bool UpdateClientePeru(ClienteInfo item)
        {
            bool oktrans = false;
            // bool resultado = false;
            moduleperu = new Application.Enterprise.Data.ValidaClienteIquitos(); //GAVL VALIDACION DE INSERCION PARA PERU IQUITOS
            try
            {
                oktrans = module.UpdateClientePeru(item);
                //INICIO GAVL ACTUALIZACION DE EMPRESARIAS IQUITOS
                //if (oktrans)
                //{
                //    resultado = moduleperu.UpdateClientePeruIquitos(item);
                //    if (resultado)
                //    {
                //        oktrans = resultado;
                //    }
                //}
                //FIN GAVL
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(string.Format("NIVI Error: {0} , NameSpace: {1}, Clase: {2}, Metodo: {3} ", ex.Message, MethodBase.GetCurrentMethod().DeclaringType.Namespace, MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name));

                return false;
            }
            return oktrans;
        }
예제 #3
0
        /// <summary>
        /// Realiza el registro de una empresaria de peru.
        /// </summary>
        /// <param name="item"></param>
        public bool RegistrarEmpresariaPeru(ClienteInfo item)
        {
            bool okTrans = false;
            bool resultado = false;


            moduleperu = new Application.Enterprise.Data.ValidaClienteIquitos(); //GAVL VALIDACION DE INSERCION PARA PERU IQUITOS
            try
            {
                okTrans = module.RegistrarEmpresariaPeru(item);

                //INICIO GAVL REGITRO DE EMPRESARIAS IQUITOS
                if (okTrans)
                {
                    resultado = moduleperu.ValidaClientesIquitos(item.Vendedor.ToString(), item.Zona.ToString(), item.CodCiudad.ToString(), item.Nit.ToString());

                    if (resultado)
                    {
                        okTrans = moduleperu.RegistrarEmpresariaPeru(item.Nit, item.Usuario);

                    }
                }
                //FIN GAVL 
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(string.Format("NIVI Error: {0} , NameSpace: {1}, Clase: {2}, Metodo: {3} ", ex.Message, MethodBase.GetCurrentMethod().DeclaringType.Namespace, MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name));
            }

            return okTrans;
        }