//获取支付方式中文名称 public string GetRealTypeName(object id) { if (id.ToString() == "") { return(""); } BLL.meth_pay mpBll = new BLL.meth_pay(); Model.meth_pay model = mpBll.GetModel(Convert.ToInt32(id.ToString())); return(model.meth_pay_name); }
//获得客人来源中文名称 protected string GetSourceTypeName(object id) { if (id.ToString() == "") { return(""); } BLL.meth_pay bllmp = new BLL.meth_pay(); Model.meth_pay model = bllmp.GetModel(Convert.ToInt32(id.ToString())); return(model.meth_pay_name); }
//获得支付方式 public string GetKffsName(string id) { try { Model.meth_pay model = fmzffs.GetModel(Convert.ToInt32(id.ToString())); return(model.meth_pay_name); } catch { return(""); } }
private void UpYaj() { BLL.meth_pay bllmp = new BLL.meth_pay(); int id = Convert.ToInt32(context.Request.QueryString["id"]); Model.meth_pay modelmp = bllmp.GetModel(id); if (modelmp.meth_is_ya) { modelmp.meth_is_ya = false; } else { modelmp.meth_is_ya = true; } if (!bllmp.Update(modelmp)) { context.Response.Write("err"); } }
private string GetMethPay(int id) { BLL.meth_pay bllmp = new BLL.meth_pay(); Model.meth_pay modelmp = bllmp.GetModel(id); return(modelmp.meth_pay_name); }