You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
D7QUANTAI/DSWeb/Settlements/RecvApplicationSettlement.a...

60 lines
1.8 KiB
C#

10 months ago
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace DSWeb.Settlements
{
public partial class RecvApplicationSettlement : System.Web.UI.Page
{
private string strModuleName;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["mod"] != null)
{
strModuleName = Request.QueryString["mod"].ToString();
this.h_mod.Value = strModuleName;
}
if (h_enter.Value.Trim() != "")
{
MergePayApplication();
}
}
private void MergePayApplication()
{
string strMerge = "";
if (h_merge.Value.Trim() != "")
{
strMerge = h_merge.Value.Trim();
string[] splitStr = strMerge.Split(new char[] { ',' });
DataTable mergeTable = new DataTable();
mergeTable.Columns.Add("PAYAPPID");
for(int i=0;i<splitStr.Length;i++)
{
DataRow newRow = mergeTable.NewRow();
newRow["PAYAPPID"] = splitStr[i];
mergeTable.Rows.Add(newRow);
}
string strMergeCacheName = Guid.NewGuid().ToString();
//缓存合并收费申请GID
Session[strMergeCacheName] = mergeTable;
h_mergecachename.Value = strMergeCacheName;
Page.ClientScript.RegisterStartupScript(this.GetType(), "key1", "<script>redirectSettle(2,'" + strMergeCacheName + "')</script>");
}
}
}
}