예제 #1
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);
     }
 }
예제 #2
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);
     }
 }