Example #1
0
    public void SetStageSoldier()
    {
        if (MyHead.RoleTable == null)
        {
            return;
        }
        List <int> list = new List <int>();

        CmCarbon.GetAttackList(ref list);
        foreach (int DataID in  list)
        {
            SoldierInfo s = CmCarbon.GetSoldierInfo(LifeMCamp.ATTACK, DataID);
            if (s == null)
            {
                continue;
            }
            GameObject go = NDLoad.LoadWndItem("RoleViewItem", MyHead.RoleTable.transform);
            if (go != null)
            {
                RoleViewItem item = go.GetComponent <RoleViewItem>();
                if (item != null)
                {
                    item.SetRoleRewardItem(s);
                }
            }
        }
        MyHead.Rewardtable.enabled = true;
        MyHead.Rewardtable.Reposition();
    }
 /// <summary>
 /// Deletes the roles.
 /// </summary>
 /// <param name="roleViewItem">The role view item.</param>
 /// <returns>RoleViewItem[][].</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public RoleViewItem[] DeleteRoles(RoleViewItem[] roleViewItem)
 {
     return ManageAuthorizationAgentFactory
         .CreateManageAuthorizationAgent()
         .DeleteRoles(roleViewItem);
 }
 /// <summary>
 /// Deletes the roles for application function.
 /// </summary>
 /// <param name="applicationFunctionId">The application function identifier.</param>
 /// <param name="roles">The roles.</param>
 /// <returns>RoleViewItem[][].</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public RoleViewItem[] DeleteRolesForApplicationFunction(string applicationFunctionId, RoleViewItem[] roles)
 {
     return ManageAuthorizationAgentFactory
         .CreateManageAuthorizationAgent()
         .DeleteRolesForApplicationFunction(applicationFunctionId, roles);
 }
 /// <summary>
 /// Saves the roles.
 /// </summary>
 /// <param name="roleViewItems">The role view items.</param>
 /// <returns>RoleViewItem[][].</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public RoleViewItem[] SaveRoles(RoleViewItem[] roleViewItems)
 {
     return ManageAuthorizationAgentFactory
         .CreateManageAuthorizationAgent()
         .SaveRoles(roleViewItems);
 }
		public RoleViewItem[] DeleteRoles(RoleViewItem[] roleViewItem)		{
			return Pms.ManageAuthorization.Business.Factory.ManageAuthorizationProviderFactory
			                .CreateProvider(DataMode)
			                .DeleteRoles(roleViewItem);
		}