/// <summary> /// 获取子订单费用 /// </summary> /// <param name="sonId"></param> /// <returns></returns> public decimal GetSonOrderMoney(int sonId) { BLL.SonOrder bllSonorder = new BLL.SonOrder(); BLL.Paper bllPaper = new BLL.Paper(); BLL.OrdeTechnology bllTechnology = new BLL.OrdeTechnology(); decimal money = 0; Model.SonOrder modelOrder = bllSonorder.GetModel(sonId); Model.Paper modelPaper = bllPaper.GetModel(int.Parse(modelOrder.PaperId.ToString())); DataSet ds = bllTechnology.GetList("SonOrderId=" + sonId); foreach (DataRow item in ds.Tables[0].Rows) { money += decimal.Parse(item["Price"].ToString()); } money += modelOrder.DifferencePrice; money += modelPaper.Price; return(money); }
/// <summary> /// 获取纸张名称 /// </summary> /// <returns></returns> public string GetPaperName(int pid) { BLL.Paper bllPaper = new BLL.Paper(); Model.Paper model = bllPaper.GetModel(pid); if (string.IsNullOrEmpty(model.NameInfo)) { return("--"); } else { return(model.NameInfo); } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; BLL.Paper bll = new BLL.Paper(); string strAccount = context.Request["param"].ToString(); JsonData data = new JsonData(); if (bll.GetRecordCount("NumId='" + strAccount + "'") > 0) { data["status"] = "n"; data["info"] = "纸张编号已存在!"; } else { data["status"] = "y"; } context.Response.Write(data.ToJson()); }