Esempio n. 1
0
        public DataSet ReporteInventarioSW(string SWE_Id, string SWG_Id, string SW_Descripcion, string SW_Version, string SWEx_NoParte, string SWEx_Llave, string SWEx_Ubicacion, string SWEx_Observaciones, string SWEx_EnExistencia, bool IncluirEstadisticas)
        {
            DLSoftware Reporte      = new DLSoftware();
            bool?      EnExistencia = null;

            SWEx_EnExistencia = SWEx_EnExistencia.Trim();

            if (SWE_Id.Trim() == "")
            {
                SWE_Id = null;
            }

            if (SWG_Id.Trim() == "")
            {
                SWG_Id = null;
            }

            if (SW_Descripcion.Trim() == "")
            {
                SW_Descripcion = null;
            }

            if (SW_Version.Trim() == "")
            {
                SW_Version = null;
            }

            if (SWEx_NoParte.Trim() == "")
            {
                SWEx_NoParte = null;
            }

            if (SWEx_Llave.Trim() == "")
            {
                SWEx_Llave = null;
            }

            if (SWEx_Ubicacion.Trim() == "")
            {
                SWEx_Ubicacion = null;
            }

            if (SWEx_Observaciones.Trim() == "")
            {
                SWEx_Observaciones = null;
            }

            if (SWEx_EnExistencia == "NO")
            {
                EnExistencia = false;
            }
            else if (SWEx_EnExistencia == "SI")
            {
                EnExistencia = true;
            }

            return(Reporte.InventarioSW(SWE_Id, SWG_Id, SW_Descripcion, SW_Version, SWEx_NoParte, SWEx_Llave, SWEx_Ubicacion, SWEx_Observaciones, EnExistencia, IncluirEstadisticas));
        }