protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string htmlFile = ""; string url = "http://www.topfo.com/"; string shopName = ""; int WorthPoint = 0; Tz888.BLL.GetDataList bll = new Tz888.BLL.GetDataList(); string strWhere = "OrderNo='" + orderNo + "'"; DataTable dt = bll.GetList("ShopCarVIW", "HtmlFile,SourceType,WorthPoint", "ShopCarID", 1, 1, 0, 1, strWhere); if (dt.Rows.Count > 0) { url = dt.Rows[0]["HtmlFile"].ToString().Trim(); WorthPoint = Convert.ToInt32(dt.Rows[0]["WorthPoint"].ToString().Trim()); } int money = WorthPoint * 100; QuickPaySample quick = new QuickPaySample(); if (money > 0 || orderNo != "") { quick.ProcessRequest(htmlFile, "中国招商投资网资源信息", orderNo, Convert.ToString(money), "cn001"); } }
protected void Button1_Click(object sender, EventArgs e) { string htmlFile = ""; string url = "http://www.topfo.com/"; string shopName = ""; int WorthPoint = 0; Tz888.BLL.GetDataList bll = new Tz888.BLL.GetDataList(); string strWhere = "OrderNo=1000005778"; DataTable dt = bll.GetList("ShopCarVIW", "HtmlFile,SourceType,WorthPoint", "ShopCarID", 1, 1, 0, 1, strWhere); if (dt.Rows.Count > 0) { htmlFile = url + dt.Rows[0]["HtmlFile"].ToString().Trim(); shopName = dt.Rows[0]["SourceType"].ToString().Trim(); WorthPoint = Convert.ToInt32(dt.Rows[0]["WorthPoint"].ToString().Trim()); } int money = WorthPoint * 100; QuickPaySample quick = new QuickPaySample(); quick.ProcessRequest(htmlFile, "中国招商投资网资源信息", "1000005778", Convert.ToString(money), "cn001"); //quick.ProcessRequest(); // string d = DateTime.Now.ToString("yyyyMMddHHmmss"); // Response.Write(d); }
protected void Button1_Click(object sender, EventArgs e) { //if (Session["valationNo"] != null && txtB_yz.Text.Trim().ToLower() == Session["valationNo"].ToString().ToLower()) //{ if (txtB_Name.Text.Trim() != "" && txtB_Name.Text.Trim() == txtB_ReName.Text.Trim()) { string htmlFile = ""; Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder(); Tz888.BLL.StrikeOrder dal = new Tz888.BLL.StrikeOrder(); model.PayTypeCode = "QuickPay"; model.LoginName = Page.User.Identity.Name; //充值人 model.StrikeLoginName = txtB_Name.Text.Trim(); //充值帐户 model.TotalCount = Convert.ToDouble(txtB_PayPoint.Text.Trim()); model.BuyType = "Pre-Paid"; //购买类型 model.remark = txtB_Name.Text.Trim() + "使用在线充值" + txtB_PayPoint.Text.Trim() + "元"; //备注 int orderno = dal.CreateStrikeOrder(model); if (orderno > 0) { int money = Convert.ToInt32(txtB_PayPoint.Text.Trim()); money = money * 100; QuickPaySample quick = new QuickPaySample(); if (money > 0 || orderno > 0) { quick.ProcessRequestList(htmlFile, "中国招商投资网资源信息", Convert.ToString(orderno), Convert.ToString(money), Page.User.Identity.Name); } } else { Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!"); } } else { Tz888.Common.MessageBox.Show(this.Page, "帐号不为空或者确认帐号不正确!"); return; } //} //else //{ // Tz888.Common.MessageBox.Show(this.Page, "验证码错误!"); // return; //} }