/// <summary> /// 增加代理子帐号 /// By xzz 2010-11-26 /// </summary> /// <param name="agent"></param> /// <returns></returns> public Agent AddAgentSubAccount(Agent agent) { int id = agentService.AddAgentSubAccount(agent.UserName, agent.Password, agent.Status, agent.RoleId, agent.RoleName, agent.SubAccount, agent.AgentID, agent.AgentUserName, agent.AgentRoleName, agent.AgentRoleID, agent.RegistrationTime, agent.UpUserName, agent.UpUserID, agent.UpRoleId, agent.UpRoleName); agent.ID = id; return(agent); }