/// <summary> /// 修改品PM息 /// </summary> /// <param name="entity"></param> /// <returns></returns> public virtual ProductManagerInfo UpdateProductManagerInfo(ProductManagerInfo entity) { if (entity != null) { CheckProductManagerProcessor.CheckProductManagerInfoSysNo(entity.SysNo); } CheckProductManagerProcessor.CheckProductManagerInfo(entity); if (entity.Status == PMStatus.DeActive) { ObjectFactory <ProductLineProcessor> .Instance.DeleteByPMUserSysNo(entity.UserInfo.SysNo.Value); } return(_productManagerDA.UpdateProductManagerInfo(entity)); }
/// <summary> /// 根据SysNo获取PM信息 /// </summary> /// <param name="productManagerInfoSysNo"></param> /// <returns></returns> public virtual ProductManagerInfo GetProductManagerInfoBySysNo(int productManagerInfoSysNo) { CheckProductManagerProcessor.CheckProductManagerInfoSysNo(productManagerInfoSysNo); return(_productManagerDA.GetProductManagerInfoBySysNo(productManagerInfoSysNo)); }