Beispiel #1
0
 public DataSet GetStepsByUserId(ContextInfo contextInfo, string userid)
 {
     contextInfo.Action = MES_ActionType.Query;
     RoleStepBll bll = new RoleStepBll(contextInfo);
     bll.CallAccessControl();
     DataSet rs = bll.GetStepsByUserId(userid);
     GC.Collect();
     return rs;
 }
Beispiel #2
0
 public string GetFuncByUser(ContextInfo contextInfo)
 {
     string step = "";
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         RoleStepBll bll = new RoleStepBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.GetStepsByUserId(contextInfo.CurrentUser);
         GC.Collect();
         foreach (DataRow row in rs.Tables[0].Rows)
         {
             if (step.Length == 0)
             {
                 step = row["funcid"].ToString();
             }
             else
             {
                 step = step + "|" + row["funcid"];
             }
         }
         return step;
     }
     catch (Exception ex)
     {
         return "*";
     }
 }
Beispiel #3
0
 public List<tsecrolestep> GetRoleStepList(ContextInfo contextInfo, List<MESParameterInfo> lstParameters)
 {
     contextInfo.Action = MES_ActionType.Query;
     RoleStepBll bll = new RoleStepBll(contextInfo);
     bll.CallAccessControl();
     List<tsecrolestep> rs = bll.GetSelectedObjects<tsecrolestep>(lstParameters);
     GC.Collect();
     return rs;
 }