Exemplo n.º 1
0
        //private int UserID
        //{
        //    get
        //    {
        //        return SessionHelpers.GetUser().ID;
        //    }
        //}
        /// <summary>
        /// to get roles easilly from helper
        /// </summary>
        //private string Roles
        //{
        //    get
        //    {
        //        return Helpers.SessionHelpers.GetRoles(HttpContext.Current.Session);
        //    }
        //}
        public List <Model.sp_ListOFPaymankarsProject_Result> SearchOnZirProje(string WhereParameter, int EntityTypeID)
        {
            WorkFlowSearchEngine _wfEngine = new WorkFlowSearchEngine();
            var data = _wfEngine.SearchByWorkflow <sp_ListOFPaymankarsProject_Result>(EntityTypeID, WhereParameter, AccessManagementService.Access.AccessControl.LoggedInUser.UserRoles, AccessManagementService.Access.AccessControl.LoggedInUser.ID);

            return(data);
        }
Exemplo n.º 2
0
        public List <Model.ViewZirProjeMoshtary> SearchOnZirProjeMoshtari(string WhereParameter, int EntityTypeID)
        {
            WorkFlowSearchEngine _wfEngine = new WorkFlowSearchEngine();

            if (!string.IsNullOrEmpty(WhereParameter))
            {
                if (WhereParameter.IndexOf(" and", 0, 4) <= 0)
                {
                    WhereParameter = WhereParameter.Insert(0, " and");
                }
            }
            var data = _wfEngine.SearchByWorkflow <ViewZirProjeMoshtary>(EntityTypeID, WhereParameter, AccessManagementService.Access.AccessControl.LoggedInUser.UserRoles, AccessManagementService.Access.AccessControl.LoggedInUser.ID);

            return(data);
        }