| | |
| | | int price = 0; |
| | | int givingNum = 0; |
| | | |
| | | string parentId = context.GetString("parentId", ""); |
| | | string path = ""; |
| | | if (string.IsNullOrEmpty(parentId) ) |
| | | { |
| | | path = "0"; |
| | | } |
| | | else |
| | | { |
| | | GwProduct newProduct = _Dao.Get(parentId); |
| | | if(newProduct!=null) |
| | | { |
| | | path = newProduct.Path=="" ? "0" : newProduct.Path + "," + newProduct.Id ; |
| | | } |
| | | else |
| | | { |
| | | path = "0"; |
| | | } |
| | | |
| | | } |
| | | |
| | | string info = "" ; |
| | | if (classes == -1) { |
| | | throw new ArgumentException("请选择类别!"); |
| | |
| | | if (string.IsNullOrEmpty(name)) |
| | | { |
| | | throw new ArgumentException(info + "名称不能为空!"); |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(parentId)) |
| | | { |
| | | throw new ArgumentException("所属产品类别不能为空!"); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | string parentId = context.GetString("parentId", "0"); |
| | | string path = ""; |
| | | if (parentId.Equals("0")) |
| | | { |
| | | path = "0"; |
| | | } |
| | | else |
| | | { |
| | | GwProduct newProduct = _Dao.Get(parentId); |
| | | if(newProduct!=null) |
| | | { |
| | | path = newProduct.Path=="" ? "0" : newProduct.Path + "," + newProduct.Id ; |
| | | } |
| | | else |
| | | { |
| | | path = "0"; |
| | | } |
| | | |
| | | } |
| | | int isEnable = context.GetInt("isEnable", 0); |
| | | |
| | | //int price = context.GetInt("price", 0); |
| | |
| | | int price = 0; |
| | | int givingNum = 0; |
| | | |
| | | string parentId = context.GetString("parentId", ""); |
| | | string path = ""; |
| | | if (string.IsNullOrEmpty(parentId) ) |
| | | { |
| | | path = "0"; |
| | | } |
| | | else |
| | | { |
| | | GwProduct newProduct = _Dao.Get(parentId); |
| | | if(newProduct!=null) |
| | | { |
| | | path = newProduct.Path=="" ? "0" : newProduct.Path + "," + newProduct.Id ; |
| | | } |
| | | else |
| | | { |
| | | path = "0"; |
| | | } |
| | | |
| | | } |
| | | |
| | | string info = "" ; |
| | | if (classes == -1) { |
| | | throw new ArgumentException("请选择类别!"); |
| | |
| | | if (string.IsNullOrEmpty(name)) |
| | | { |
| | | throw new ArgumentException(info + "名称不能为空!"); |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(parentId)) |
| | | { |
| | | throw new ArgumentException("所属产品类别不能为空!"); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | string parentId = context.GetString("parentId", "0"); |
| | | string path = ""; |
| | | if (parentId.Equals("0")) |
| | | { |
| | | path = "0"; |
| | | } |
| | | else |
| | | { |
| | | GwProduct newProduct = _Dao.Get(parentId); |
| | | if(newProduct!=null) |
| | | { |
| | | path = newProduct.Path=="" ? "0" : newProduct.Path + "," + newProduct.Id ; |
| | | } |
| | | else |
| | | { |
| | | path = "0"; |
| | | } |
| | | |
| | | } |
| | | int isEnable = context.GetInt("isEnable", 0); |
| | | |
| | | string remark = context.GetString("remark", ""); |