Ejemplo n.º 1
0
        static public void AddError(string _method, string _class, string _notes)
        {
            try
            {
                DataBaseAccess access = new DataBaseAccess();

                access.LoadProcedure("WEB.AddError");
                access.AddParameter("@class", _class);
                access.AddParameter("@method", _method);
                access.AddParameter("@notes", _notes);

                access.ExecuteProcedure();
            }
            catch (Exception)
            {
                SaveErrorFolder.AddError(_method, _class, _notes);
            }
        }
Ejemplo n.º 2
0
        static public DataTable LoginUser(string Login, string Password, string GUID)
        {
            try
            {
                DataBaseAccess access = new DataBaseAccess();

                access.LoadProcedure("WEB.LoginUser");
                access.AddParameter("@Login", Login);
                access.AddParameter("@Password", Password);
                access.AddParameter("@GUID", GUID);


                return(access.ExecuteProcedure());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 3
0
        static public DataTable AddTask(string GUID, int?UsrRealize, string Title, string Content, string Description)
        {
            try
            {
                DataBaseAccess access = new DataBaseAccess();

                access.LoadProcedure("WEB.AddTask");
                access.AddParameter("@GUID", GUID);
                access.AddParameter("@UsrRealize", UsrRealize);
                access.AddParameter("@Title", Title);
                access.AddParameter("@Content", Content);
                access.AddParameter("@Description", Description);

                return(access.ExecuteProcedure());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 4
0
        static public DataTable ClientTasksList(string GUID)
        {
            try
            {
                DataBaseAccess access = new DataBaseAccess();

                access.LoadProcedure("WEB.ClientTasksList");
                access.AddParameter("@GUID", GUID);

                return(access.ExecuteProcedure());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 5
0
        static public void LogoutUser(string GUID)
        {
            try
            {
                DataBaseAccess access = new DataBaseAccess();

                access.LoadProcedure("WEB.LogoutUser");
                access.AddParameter("@GUID", GUID);


                access.ExecuteProcedure();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }