Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 根据SysNo获取PM信息
 /// </summary>
 /// <param name="productManagerInfoSysNo"></param>
 /// <returns></returns>
 public virtual ProductManagerInfo GetProductManagerInfoBySysNo(int productManagerInfoSysNo)
 {
     CheckProductManagerProcessor.CheckProductManagerInfoSysNo(productManagerInfoSysNo);
     return(_productManagerDA.GetProductManagerInfoBySysNo(productManagerInfoSysNo));
 }