Exemplo n.º 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 = "手机号不存在";
     }
 }
Exemplo n.º 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 = "兑换码不存在";
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }