示例#1
0
 /// <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));
 }
示例#2
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));
 }
示例#3
0
 /// <summary>
 /// 创建PM信息
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public virtual ProductManagerInfo CreateProductManagerInfo(ProductManagerInfo entity)
 {
     CheckProductManagerProcessor.CheckProductManagerInfo(entity);
     return(_productManagerDA.CreateProductManagerInfo(entity));
 }
示例#4
0
 /// <summary>
 /// 根据SysNo获取PM信息
 /// </summary>
 /// <param name="productManagerInfoSysNo"></param>
 /// <returns></returns>
 public virtual ProductManagerInfo GetProductManagerInfoBySysNo(int productManagerInfoSysNo)
 {
     CheckProductManagerProcessor.CheckProductManagerInfoSysNo(productManagerInfoSysNo);
     return(_productManagerDA.GetProductManagerInfoBySysNo(productManagerInfoSysNo));
 }
示例#5
0
 /// <summary>
 /// 根据userSysNo获取PM组信息
 /// </summary>
 /// <param name="userSysNo"></param>
 /// <returns></returns>
 public virtual ProductManagerGroupInfo GetPMListByUserSysNo(int userSysNo)
 {
     CheckProductManagerProcessor.CheckUserSysNo(userSysNo);
     return(_productManagerGroupDA.GetPMListByUserSysNo(userSysNo));
 }