Exemplo n.º 1
0
 /// <summary>
 /// 添加或编辑
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static CompanyProductCategoryInfo Update(CompanyProductCategoryInfo model)
 {
     if (model.Id == 0)
     {
         //插入
         int id = CompanyProductCategoryManage.Insert(model);
         model.Id = id;
     }
     else
     {
         CompanyProductCategoryManage.Update(model);
     }
     return(model);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新产品数
 /// </summary>
 /// <param name="id"></param>
 /// <param name="companyId"></param>
 /// <param name="plus"></param>
 public static void UpdateProductCount(int id, int companyId, bool plus)
 {
     CompanyProductCategoryManage.UpdateProductCount(id, companyId, plus);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 /// <param name="companyId"></param>
 /// <returns></returns>
 public static bool Delete(int id, int companyId)
 {
     return(CompanyProductCategoryManage.Delete(id, companyId));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获得分类信息
 /// </summary>
 /// <param name="id"></param>
 /// <param name="companyId"></param>
 /// <returns></returns>
 public static CompanyProductCategoryInfo Get(int id, int companyId)
 {
     return(CompanyProductCategoryManage.Get(id, companyId));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 获得用户自定义分类
 /// </summary>
 /// <param name="companyId"></param>
 /// <returns></returns>
 public static List <CompanyProductCategoryInfo> GetCategoryList(int companyId)
 {
     return(CompanyProductCategoryManage.GetCategoryList(companyId));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 获得系统分类
 /// </summary>
 /// <returns></returns>
 public static List <CompanyProductCategoryInfo> GetSystemCategoryList()
 {
     return(CompanyProductCategoryManage.GetSystemCategoryList());
 }