/// <summary> /// 修改品PM组信息 /// </summary> /// <param name="entity"></param> /// <returns></returns> public virtual ProductManagerGroupInfo UpdateProductManagerGroupInfo(ProductManagerGroupInfo entity) { if (entity != null) { CheckProductManagerProcessor.CheckProductManagerrGroupInfoSysNo(entity.SysNo); } CheckProductManagerProcessor.CheckProductManagerrGroupInfo(entity); return(_productManagerGroupDA.UpdateProductManagerGroupInfo(entity)); }
/// <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> /// 创建PM信息 /// </summary> /// <param name="entity"></param> /// <returns></returns> public virtual ProductManagerInfo CreateProductManagerInfo(ProductManagerInfo entity) { CheckProductManagerProcessor.CheckProductManagerInfo(entity); return(_productManagerDA.CreateProductManagerInfo(entity)); }
/// <summary> /// 根据SysNo获取PM信息 /// </summary> /// <param name="productManagerInfoSysNo"></param> /// <returns></returns> public virtual ProductManagerInfo GetProductManagerInfoBySysNo(int productManagerInfoSysNo) { CheckProductManagerProcessor.CheckProductManagerInfoSysNo(productManagerInfoSysNo); return(_productManagerDA.GetProductManagerInfoBySysNo(productManagerInfoSysNo)); }
/// <summary> /// 根据userSysNo获取PM组信息 /// </summary> /// <param name="userSysNo"></param> /// <returns></returns> public virtual ProductManagerGroupInfo GetPMListByUserSysNo(int userSysNo) { CheckProductManagerProcessor.CheckUserSysNo(userSysNo); return(_productManagerGroupDA.GetPMListByUserSysNo(userSysNo)); }