/// <summary> /// 添加工作组织{工作组织}对象(即:一条记录 /// </summary> public long Add(CfgGroup cfgGroup) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgGroupRepository(dbContext).Add(cfgGroup)); } }
/// <summary> /// 更新工作组织{工作组织}对象(即:一条记录 /// </summary> public int Update(CfgGroup cfgGroup) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgGroupRepository(dbContext).Update(cfgGroup)); } }
/// <summary> /// 更新工作组织{工作组织}对象(即:一条记录 /// </summary> public int Update(CfgGroup cfgGroup) { return Update<CfgGroup>(cfgGroup); }
/// <summary> /// 添加工作组织{工作组织}对象(即:一条记录 /// </summary> public long Add(CfgGroup cfgGroup) { return Add<CfgGroup>(cfgGroup); }
public static ICollection <CfgPerson> RetrieveAgentListfromAgentGroup(IConfService _confService, int tenantid, CfgGroup group) { ICollection <CfgPerson> person = null; CfgAgentGroup agentgroup = null; CfgAgentGroupQuery qagentgroup = new CfgAgentGroupQuery(_confService); try { qagentgroup.TenantDbid = tenantid; qagentgroup.Dbid = group.DBID; agentgroup = _confService .RetrieveObject <CfgAgentGroup>(qagentgroup); person = agentgroup.Agents; } catch (Exception ex) { log.Error("获取qagentgroup列表失败 " + ex.Message); } return(person); }