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.
DS7/DSWeb/cheque/ChCheckInfoRepeal.aspx.cs

85 lines
2.7 KiB
C#

3 years ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Text;
using DSWeb.DataAccess;
using System.Data.SqlClient;
using DSWeb.Models;
using DSWeb.EntityDA;
using System.Web.Script.Serialization;
using JsonHelper;
using DSWeb.Log;
namespace DSWeb.Shipping
{
public partial class ChCheckInfoRepeal : System.Web.UI.Page
{
ChFeeChequeDA ChFeeChequeDA = new ChFeeChequeDA();
ChFeeChequeEntity ChFeeChequeEntity = new ChFeeChequeEntity();
T_ALL_DA T_ALL_DA = new T_ALL_DA();
public string strUserID;//用户GID
protected void Page_Load(object sender, EventArgs e)
{
if (Session["USERID"] != null)
{
strUserID = Session["USERID"].ToString().Trim();
}
else
{
Server.Transfer("~/Error/FriendError.aspx");
return;
//strUserID = "";
}
//
if (!IsPostBack)
{
if (Request.QueryString["GID"] != null)
{
ViewState["GID"] = Request.QueryString["GID"].ToString();
}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("<script>window.close();</script>");
return;
}
protected void Button1_Click(object sender, EventArgs e)
{
if (ViewState["GID"] != null)
{
ChFeeChequeEntity = ChFeeChequeDA.GetID(ViewState["GID"].ToString().Trim());
if (ChFeeChequeEntity.GID != null)
{
T_ALL_DA T_ALL_DA = new T_ALL_DA();
string strCHEQUENO = T_ALL_DA.GetStrSQL("CHEQUENO", "select CHEQUENO from ch_fee_cheque where GID='" + ViewState["GID"].ToString().Trim() + "'");
int iii = ChFeeChequeDA.RepealInfo(ViewState["GID"].ToString().Trim(), tbDELETECAUSE.Text.Trim(), strUserID.Trim(), strCHEQUENO);
if (iii == 1)
{
Response.Write("<script>window.opener.location.reload();window.close();</script>");
return;
}
else
{
Response.Write("<script>alert('出错,请重新操作!');history.back();</script>");
return;
}
}
}
}
}
}