示例#1
0
 private void Btn_UserCZ_Click(object sender, EventArgs e)
 {
     if (this.Txt_CZID.Text == "")
     {
         CommFunc.PublicMessageAll("输入会员账号不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_CZID.Focus();
     }
     else if (this.Txt_CZPW.Text == "")
     {
         CommFunc.PublicMessageAll("输入充值密码不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_CZPW.Focus();
     }
     else
     {
         string text      = this.Txt_CZID.Text;
         string password  = this.Txt_CZPW.Text;
         string pUsedTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         string localIP   = CommFunc.GetLocalIP();
         string xHintStr  = SQLData.CZUser(text, password, AppInfo.Account.AppName, pUsedTime, localIP);
         if (!xHintStr.Contains("【错误】-"))
         {
             CommFunc.PublicMessageAll(xHintStr, false, MessageBoxIcon.Asterisk, "");
         }
         else
         {
             CommFunc.PublicMessageAll(xHintStr.Replace("【错误】-", ""), true, MessageBoxIcon.Asterisk, "");
         }
     }
 }