示例#1
0
        /// <summary>
        /// Reperimento utente della sessione corrente
        /// </summary>
        /// <returns></returns>
        public string GetDbUserSession()
        {
            string userSession = string.Empty;

            using (Database.SqlServer.Database db = new DocsPaDbManagement.Database.SqlServer.Database())
            {
                db.ExecuteScalar(out userSession, "SELECT SESSION_USER");
            }

            return(userSession);
        }
示例#2
0
        /// <summary>
        /// gestione della SYSTEMKEY (vedi Hummingbird) per inserire il valore della system_id in PEOPLE e GROUPS
        /// </summary>
        /// <returns>ultimo id</returns>
        public string GetSystemKeyHumm()
        {
            string retValue = null;

            switch (System.Configuration.ConfigurationManager.AppSettings["documentale"].ToString())
            {
            case "HUMMINGBIRD":
                DocsPaDbManagement.Database.SqlServer.Database db = new DocsPaDbManagement.Database.SqlServer.Database();
                retValue = db.GetNextSystemId();
                break;

            case "ETNOTEAM":
            case "FILENET":
            case "PITRE":
            case "CDC":
            case "DOCUMENTUM":
            case "GFD":
                retValue = "";
                break;
            }

            return(retValue);
        }