Пример #1
0
 private void ShowByPhoneNumber()
 {
     string phonenumber = phone.Text.Trim();
     DataTable dt = new ReciveMsgBLL().getCodeExchangeByPhoneNumber(phonenumber);
     if (dt != null&&dt.Rows.Count>0)
     {
         gvCode.DataSource = dt;
         gvCode.DataBind();
         labphone.Text = "";
     }
     else
     {
         labphone.Text = "手机号不存在";
     }
 }
Пример #2
0
 private void ShowByCode()
 {
     string codestr = code.Text.Trim();
     DataTable dt = new ReciveMsgBLL().getCodeExchangeByCode(codestr);
     if (dt != null&&dt.Rows.Count>0)
     {
         gvCode.DataSource = dt;
         gvCode.DataBind();
         labcode.Text = "";
     }
     else
     {
         labcode.Text = "兑换码不存在";
     }
 }
Пример #3
0
 private List<string> ReciveMsg(string phonenumber, string codes, Hashtable HtCustomer, Hashtable HtCode)
 {
     Maticsoft.BLL.ReciveMsgBLL bll = new Maticsoft.BLL.ReciveMsgBLL();
     List<string> msg = bll.ReciveMsg(phonenumber, codes, HtCustomer, HtCode);
     return msg;
 }
Пример #4
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     string phone = StringPlus.ToDBC(phonenumber.Text.Trim()).ToUpper();
     Maticsoft.BLL.ReciveMsgBLL bll = new Maticsoft.BLL.ReciveMsgBLL();
     string msg = bll.GetExchangeMsg(phone,  HtCustomer, HtCode);
     Show();
 }
Пример #5
0
 private string GetExchangeMsg(string phonenumber, Hashtable HtCustomer, Hashtable HtCode)
 {
     Maticsoft.BLL.ReciveMsgBLL bll = new Maticsoft.BLL.ReciveMsgBLL();
     string msg = bll.GetExchangeMsg(phonenumber, HtCustomer, HtCode);
     return msg;
 }