using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Model { public partial class Product { /// /// 获取额定参数 /// public object GetRatedParas() { object obj = null; switch (this.Catalog) { case IStation.Product.Catalog_JiBeng: { obj = JsonHelper.Json2Object(this.RatedParas); } break; case IStation.Product.Catalog_Beng: { obj = JsonHelper.Json2Object(this.RatedParas); } break; case IStation.Product.Catalog_DianJi: { obj = JsonHelper.Json2Object(this.RatedParas); } break; default:break; } return obj; } /// /// 转化为属性参数 /// public static string ToPropsParas(Dictionary dict) { return JsonHelper.Object2Json(dict); } /// /// 获取属性参数 /// public static Dictionary GetPropsParas(string props_paras) { var dict = JsonHelper.Json2Object>(props_paras); if (dict == null) dict = new Dictionary(); return dict; } } }