示例#1
0
        public FolderManager2(HeaderControl hcCurrent, HeaderControl hcRevision)
        {
            hc[CURRENT.Value()]  = hcCurrent;
            hc[REVISION.Value()] = hcRevision;

            hc[CURRENT.Value()].FolderRoute.PathChange += OnCurrentPathChangeEvent;

            this.hcCurrent  = hcCurrent;
            this.hcRevision = hcRevision;

            hcCurrent.FolderRoute.PathChange += OnCurrentPathChangeEvent;

//			hcCurrent.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcCurrent.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcCurrent.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcCurrent.SetHistoryEventHandler(OnRevisionHistoryEvent);
//
//			hcRevision.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcRevision.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcRevision.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcRevision.SetHistoryEventHandler(OnRevisionHistoryEvent);

            ConfigSavedFolders();

            SavedFoldersDebugSupport.Instance.
            ConfigSavedFoldersDebugSupport(svfMgr[HISTORY.Value()], svfMgr[FAVORITES.Value()]);

            getPriorFolder();

            configHeader(this.hcCurrent);
            configHeader(this.hcRevision);
        }
示例#2
0
        public JsonResult addRevision(decimal carga, int estado, string motivo, decimal id_empresa)
        {
            string result = "";

            if (Session["Admon"] != null)
            {
                if (USUARIO.isRevisor(Convert.ToString(Session["Admon"])))
                {
                    string usuario = Session["Admon"].ToString();

                    result = REVISION.addRevision(carga, usuario, estado, motivo);

                    if (estado == 2)
                    {
                        armarEmailRechazo(id_empresa, motivo);
                    }
                }
            }
            return(Json(result));
        }