コード例 #1
0
        /// <summary>
        /// Calls [usp_selectAll_TabSecurityFunction_General_Permissions_by_SecurityGroup]
        /// </summary>
        public static List <TabSecurityFuncion> GetListGeneralPermissionsByTabSecurityGroup(System.Int32?securityGroupId)
        {
            List <TabSecurityFunctionDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.TabSecurityFunction.GetListGeneralPermissionsByTabSecurityGroup(securityGroupId);

            if (lstDetails == null)
            {
                return(new List <TabSecurityFuncion>());
            }
            else
            {
                List <TabSecurityFuncion> lst = new List <TabSecurityFuncion>();
                foreach (TabSecurityFunctionDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.TabSecurityFuncion obj = new Rebound.GlobalTrader.BLL.TabSecurityFuncion();
                    obj.TabSecurityFunctionId = objDetails.TabSecurityFunctionId;
                    obj.TabFunctionName       = objDetails.TabFunctionName;
                    obj.MyTab           = objDetails.MyTab;
                    obj.TeamTab         = objDetails.TeamTab;
                    obj.DivisionTab     = objDetails.DivisionTab;
                    obj.CompanyTab      = objDetails.CompanyTab;
                    obj.SiteSectionName = objDetails.SiteSectionName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
 /// <summary>
 /// usp_select_TabSecurityFunction_CompanyPermission_by_Login
 /// </summary>
 /// <param name="pageId1"></param>
 /// <param name="pageId2"></param>
 /// <param name="loginId"></param>
 /// <returns></returns>
 public static TabSecurityFuncion GetVisibleCompanyTabSecurityList(System.Int32?pageId1, System.Int32?pageId2, System.Int32?loginId)
 {
     Rebound.GlobalTrader.DAL.TabSecurityFunctionDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.TabSecurityFunction.GetVisibleCompanyTabSecurityList(pageId1, pageId2, loginId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         TabSecurityFuncion obj = new TabSecurityFuncion();
         obj.MyTab       = objDetails.MyTab;
         obj.TeamTab     = objDetails.TeamTab;
         obj.DivisionTab = objDetails.DivisionTab;
         obj.CompanyTab  = objDetails.CompanyTab;
         objDetails      = null;
         return(obj);
     }
 }
コード例 #3
0
 /// <summary>
 /// GetByGroupAndFunction
 /// Calls [usp_select_TabSecurityGroupSecurityFunctionPermission_by_Group_and_Function]
 /// </summary>
 public static TabSecurityFuncion GetByGroupAndFunction(System.Int32?securityGroupNo, System.Int32?tabSecurityFunctionNo)
 {
     Rebound.GlobalTrader.DAL.TabSecurityFunctionDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.TabSecurityFunction.GetByGroupAndFunction(securityGroupNo, tabSecurityFunctionNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         TabSecurityFuncion obj = new TabSecurityFuncion();
         obj.TabSecurityGroupSecurityFunctionPermissionId = objDetails.TabSecurityGroupSecurityFunctionPermissionId;
         obj.SecurityGroupNo       = objDetails.SecurityGroupNo;
         obj.TabSecurityFunctionId = objDetails.TabSecurityFunctionId;
         obj.MyTab       = objDetails.MyTab;
         obj.TeamTab     = objDetails.TeamTab;
         obj.DivisionTab = objDetails.DivisionTab;
         obj.CompanyTab  = objDetails.CompanyTab;
         obj.UpdatedBy   = objDetails.UpdatedBy;
         obj.DLUP        = objDetails.DLUP;
         objDetails      = null;
         return(obj);
     }
 }