Ejemplo n.º 1
0
 /*
  * Method name: 
  *		saveNewUserGroupInFISGroup
  * 
  * Description: 
  *		save a new multi user group in FIS Report
  * 
  * Parameters: 
  *      string strGroupName(用户所输入的Group Name。不可与已有Group重名,不可为空)
  *      
  *		string type: 组的类型。(单用户组-1,Group-0)
  * 
  * Return Value: 
  *      new Group ID
  * 
  * Remark: 
  *		deserted
  * Example: 
  * 
  * Author: 
  *      itc204011
  * 
  * Date:
  *      2008-12
  */
 private string saveNewUserGroupInFISGroup(string strGroupName)
 {
     log.Debug("saveNewUserGroupInFISGroup");
     //string strEditorID = (string)HttpContext.Current.Session[AttributeNames.USER_ID];
     string strEditorID = (string)editorID.ToString();
     log.Debug("Current UserID(group editor ID) = " + strEditorID);
     AuthorityDao authDao = new AuthorityDao();
     string rtnSavedGroupID = authDao.saveNewUserGroupInFIS(strGroupName, strEditorID);
     if (rtnSavedGroupID.Equals(""))
     {
         ExceptionManager.Throw(ExceptionMsg.ERROR_SAME_GROUP_EXISTED + " -- " + strGroupName);
     }
     return rtnSavedGroupID;
 }
Ejemplo n.º 2
0
 /*
  * Description: 在RBPC4Net数据库中初始化7个基本权限:
  *		Constants.RBPC_PERMISSION_SYS_ACCOUNT_AUTHORITY
         Constants.RBPC_PERMISSION_SYS_DATA_SOURCE_SETTING
         Constants.RBPC_PERMISSION_SYS_PUBLISH
         Constants.RBPC_PERMISSION_REPORT_CREATE_EDIT
         Constants.RBPC_PERMISSION_REPORT_DELETE
         Constants.RBPC_PERMISSION_CHART_CREATE_EDIT
         Constants.RBPC_PERMISSION_CHART_DELETE
  * Parameters: 用户的工号
  * Return Value: (DataTable) dtUserOrDeptList
  */
 private DataTable initPrimaryPermissions()
 {
     AuthorityDao authDao = new AuthorityDao();
     return new DataTable();
 }
Ejemplo n.º 3
0
 /*
  * Method name: 
  *		saveSingleUserInFISGroup
  * 
  * Description: 
  *		save a single user group in FIS Report
  * 
  * Parameters: 
  *      string strGroupName(User name)
  *      
  *		string type: 组的类型。(单用户组-1,Group-0)
  * 
  * Return Value: 
  *      new Group ID
  * 
  * Remark: 
  * 
  * Example: 
  * 
  * Author: 
  *      itc98079
  * 
  * Date:
  *      2009-11
  */
 private string saveSingleUserInFISGroup(string strGroupName)
 {
     //string strEditorID = (string)HttpContext.Current.Session[AttributeNames.USER_ID];
     string strEditorID = editorID.ToString();
     log.Debug("Current UserID(group editor ID) = " + strEditorID);
     AuthorityDao authDao = new AuthorityDao();
     string rtnSavedGroupID = authDao.saveSingleUserRoleInFIS(strGroupName, strEditorID);
     if (rtnSavedGroupID.Equals(""))
     {
         ExceptionManager.Throw(strGroupName + ExceptionMsg.ERROR_GROUP_NAMES_HAVE_BEEN_USED);
     }
     return rtnSavedGroupID;
 }