//获取支付方式中文名称
 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);
 }
Esempio n. 2
0
        //获得客人来源中文名称

        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);
        }
Esempio n. 3
0
        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");
            }
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 private void Bind()
 {
     BLL.meth_pay bllmp = new BLL.meth_pay();
     rep1.DataSource = bllmp.GetList("meth_pay_name!='协议单位'");
     rep1.DataBind();
 }