| | |
| | | if (bean.RouterType == 1) |
| | | { |
| | | str1 += "<td rowspan=\"1\"><span class='label label-primary'>通道</span>"; |
| | | str1 += string.Format("<div>移动:{0}</div><div>电信:{1}</div><div>联通:{2}</div>", (object)this.GetOpName(bean.CmOpId), (object)this.GetOpName(bean.CtOpId), (object)this.GetOpName(bean.CuOpId)); |
| | | str1 += string.Format("<div style='margin-top:10px;'>移动:{0}</div><div>电信:{1}</div><div>联通:{2}</div>", (object)this.GetOpName(bean.CmOpId), (object)this.GetOpName(bean.CtOpId), (object)this.GetOpName(bean.CuOpId)); |
| | | } |
| | | else if (bean.RouterType == 3) |
| | | { |
| | | str1 += "<td rowspan=\"1\"><span class='label label-success'>通道组</span>"; |
| | | str1 += string.Format("<div>移动:{0}</div><div>电信:{1}</div><div>联通:{2}</div>", (object)this.GetGroupName(bean.CmGroupid), (object)this.GetGroupName(bean.CtGroupid), (object)this.GetGroupName(bean.CuGroupid)); |
| | | str1 += string.Format("<div style='margin-top:10px;'>移动:{0}</div><div>电信:{1}</div><div>联通:{2}</div>", (object)this.GetGroupName(bean.CmGroupid), (object)this.GetGroupName(bean.CtGroupid), (object)this.GetGroupName(bean.CuGroupid)); |
| | | } |
| | | else |
| | | { |
| | |
| | | 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 (id == parentId) |
| | | { |
| | | throw new ArgumentException("父级分类id不能选当前类别!请重新选择"); |
| | | } |
| | | |
| | | |
| | | 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", ""); |