Ejemplo n.º 1
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public AttrInfo InsertAttr(AttrInfo info)
 {
     return _attrMapper.Create(info) as AttrInfo;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public int UpdateAttt(AttrInfo info)
 {
     return _attrMapper.Update(info);
 }
Ejemplo n.º 3
0
        private void GetEditForm(AttrInfo info)
        {
            //FormItem<int> cateIdItem = new FormItem<int>("cateList", "请选择分类", 1, int.MaxValue);
            FormItem<string> attrItem = new FormItem<string>("attr", "属性名称", 0, 100);
            //FormItem<int> typeItem = new FormItem<int>("type", "属性类型", 0, 4);
            //FormItem<int> isMustItem = new FormItem<int>("isMust", "是否必须", 0, 1);
            //FormItem<int> isSaleItem = new FormItem<int>("isSale", "是否销售属性", 0, 1);
            FormItem<int> statusItem = new FormItem<int>("status", "状态", 0, 99999);

            //info.CateId = cateIdItem.GetFormValue(ErrorMsg);
            info.Attr = attrItem.GetFormValue(ErrorMsg);
            //info.Type = typeItem.GetFormValue(ErrorMsg);
            //info.IsMust = isMustItem.GetFormValue(ErrorMsg);
            //info.IsSale = isSaleItem.GetFormValue(ErrorMsg);
            info.Status = statusItem.GetFormValue(ErrorMsg);
        }