/// <summary> /// 获取客户联系人扩展字段信息(MyappId==2代表联系人扩展字段) 2014-08-29 14:58:50 By 唐有炜 /// </summary> /// <param name="compNum">公司编号</param> /// <returns>List<TFunExpand>.</returns> public List <TFunExpand> GetContactExpandFields(string compNum, int myappId) { //MyappId==2代表联系人扩展字段 var contactExpandFields = FunExpandDao.GetList(e => e.CompNum == compNum && e.MyappId == myappId); if (contactExpandFields.Count > 0) { LogHelper.Info("联系人扩展字段获取成功,共" + contactExpandFields.Count + "个字段。"); } else { LogHelper.Error("联系人扩展字段为空。"); } return(contactExpandFields); }
/// <summary> /// 获取客户扩展字段信息(MyappId==1代表客户扩展字段) 2014-08-29 14:58:50 By 唐有炜 /// </summary> /// <param name="compNum">公司编号</param> /// <param name="myAppId">模块id</param> /// <returns>客户模块扩展字段列表</returns> public List <TFunExpand> GetCustomerExpandFields(string compNum, int myAppId) { var customerExpandFields = FunExpandDao.GetList( e => (e.CompNum == compNum || e.ExpIsSys == 1) && e.MyappId == myAppId && e.ExpIsShow == 1) .OrderBy(e => e.ExpOrder) .ToList(); if (customerExpandFields.Count() > 0) { LogHelper.Info("客户扩展字段获取成功,共" + customerExpandFields.Count + "个字段。"); } else { LogHelper.Error("客户扩展字段为空。"); } return(customerExpandFields); }