Exemple #1
0
        public bool GuardarDB(in_transferencia_Info info, ref decimal _idTransferencia)
        {
            try
            {
                Boolean resTran = false;

                if (oData_Transferencia.GuardarDB(info, ref _idTransferencia))
                {
                    resTran = true;

                    if (info.IdEstadoAprobacion_cat == "APRO")
                    {
                        Generar_inventario(info, ref _idTransferencia);
                    }
                }
                return(resTran);
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "GuardarTransferecia", ex.Message), ex)
                      {
                          EntityType = typeof(in_transferencia_bus)
                      };
            }
        }