public string protitle(string ProID, string Protype, string unit) { string str = ""; if (ProID != "") { if (!string.IsNullOrEmpty(Protype)) { string[] type = Protype.Split(new char[] { ',' }); str = ConvertJson.IsCx(type[0], type[1], type[2], type[3], unit); if (!Util.IsEmpty(type[0])) { if (type[0] == "0")//特价促销 { str = "特价商品"; } else if (type[0] == "1")//商品促销 { if (type[1] == "3") { //商品促销满送 str = "满" + decimal.Parse(string.Format("{0:N2}", Convert.ToDecimal(type[3]).ToString("#,##" + Digits))) + unit + " ,获赠商品(" + decimal.Parse(string.Format("{0:N2}", Convert.ToDecimal(type[2]).ToString("#,##" + Digits))) + ")" + unit; } else if (type[1] == "4")//商品促销打折 { str = "在原订货价基础上打" + (Convert.ToDecimal(type[3]) / 10).ToString("N") + "折"; } } } } } if (!string.IsNullOrEmpty(str)) { str = "<i class=\"\">促销:</i>" + str + ""; } return(str); }