예제 #1
0
 /// <summary>
 /// 创建套餐模板 - 大包/定制模板关系构造器
 /// </summary>
 /// <param name="decorationPackId">套餐模板Id</param>
 /// <param name="balePackId">大包/定制模板Id</param>
 /// <param name="balePackType">大包/定制模板类型</param>
 public DecorationPack_BalePack(Guid decorationPackId, Guid balePackId, BalePackType balePackType)
     : this()
 {
     this.DecorationPackId = decorationPackId;
     this.BalePackId       = balePackId;
     this.BalePackType     = balePackType;
 }
예제 #2
0
 /// <summary>
 /// 创建套餐构造器
 /// </summary>
 /// <param name="packName">套餐名称</param>
 /// <param name="packType">套餐类型</param>
 /// <param name="creater">操作人名称</param>
 /// <param name="createrId">操作人Id</param>
 public BalePack(string packName, BalePackType packType, string creater, Guid createrId)
     : this()
 {
     base.Name         = packName;
     this.BalePackType = packType;
     this.Creater      = creater;
     this.CreaterId    = createrId;
     this.InitKeywords();
 }
예제 #3
0
 /// <summary>
 /// 验证套餐名称是否重复
 /// </summary>
 /// <param name="packId">套餐Id</param>
 /// <param name="packName">套餐名称</param>
 /// <param name="type">套餐类型</param>
 /// <returns></returns>
 public bool ExistsPackName(Guid?packId, string packName, BalePackType type)
 {
     return(base.Exists(s => (packId == null || s.Id != packId) && s.Name == packName && s.BalePackType == type && !s.IsClone));
 }