44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using KJD_Web.Model;
|
|
using KJD_Web.Utils;
|
|
using KJD_WebService.Model;
|
|
using KJD_WebService.Model.WxModel;
|
|
using NaiBa.Util.Extension;
|
|
using NaiBa.Util.Helper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace KJD_Web.Upload.Prod
|
|
{
|
|
public partial class WXProd : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
FileUpload1.Visible = false;
|
|
}
|
|
|
|
protected void btnSubmit_Click(object sender, EventArgs e)
|
|
{
|
|
Label1.Text = "";
|
|
Label2.Text = "";
|
|
|
|
string rst = getProd();
|
|
Label1.Text = rst;
|
|
Label2.Text = rst;
|
|
TextBox2.Text = "";
|
|
FileUpload1.Visible = false;
|
|
}
|
|
|
|
string getProd()
|
|
{
|
|
string prodStr = Encoding.UTF8.GetString(this.FileUpload1.FileBytes);
|
|
prodStr = TextBox2.Text.Trim();
|
|
return new BaseWxProd().getProd(prodStr);
|
|
}
|
|
}
|
|
} |