Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="uoInf"></param>
 public static void SetSessionUoInf(DocsPAWA.DocsPaWR.UOSmistamento[] uoInf)
 {
     if (System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] != null)
     {
         DocsPAWA.smistaDoc.SmistaDocManager docManager = (DocsPAWA.smistaDoc.SmistaDocManager)System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"];
         docManager.SetUOInferiori(uoInf);
         System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] = docManager;
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="uoApp"></param>
 public static void SetSessionUoApp(DocsPAWA.DocsPaWR.UOSmistamento uoApp)
 {
     if (System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] != null)
     {
         DocsPAWA.smistaDoc.SmistaDocManager docManager = (DocsPAWA.smistaDoc.SmistaDocManager)System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"];
         docManager.SetUOAppartenenza(uoApp);
         System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] = docManager;
     }
 }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="idDocumento"></param>
        /// <returns></returns>
        public static DocsPAWA.smistaDoc.SmistaDocManager GetSmistaDocManager(string idDocumento)
        {
            if (System.Web.HttpContext.Current.Session[SESSION_KEY] == null)
            {
                DocsPAWA.smistaDoc.SmistaDocManager retValue = new DocsPAWA.smistaDoc.SmistaDocManager(UserManager.getRuolo(), UserManager.getUtente(), UserManager.getInfoUtente(), idDocumento);
                System.Web.HttpContext.Current.Session.Add(SESSION_KEY, retValue);
            }

            return((DocsPAWA.smistaDoc.SmistaDocManager)System.Web.HttpContext.Current.Session[SESSION_KEY]);
        }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="docManager"></param>
 public static void SetSmistaDocManager(DocsPAWA.smistaDoc.SmistaDocManager docManager)
 {
     if (System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] == null)
     {
         System.Web.HttpContext.Current.Session.Add("SMISTA_DOC_MANAGER", docManager);
     }
     else
     {
         System.Web.HttpContext.Current.Session["SMISTA_DOC_MANAGER"] = docManager;
     }
 }