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.
DS7HYRD/DSWeb/Settlements/RecvSettleApplicationEdit.a...

66 lines
2.8 KiB
C#

9 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;
using DSWeb.Models;
using DSWeb.EntityDA;
using System.Text;
namespace DSWeb.Settlements
{
public partial class RecvSettleApplicationEdit : System.Web.UI.Page
{
private string strPaySettlementAppID;//收费申请GID
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] != null)
{
strPaySettlementAppID = Request.QueryString["id"].ToString();
h_paysettleappid.Value = strPaySettlementAppID;
}
if (strPaySettlementAppID != null)
{
GetPaySettlementApplicationInfo(strPaySettlementAppID);
}
}
private void GetPaySettlementApplicationInfo(string tempPaySettlementAppID)
{
ChFeeRecvApplicationEntity ChFeeRecvApplicationEntity = new ChFeeRecvApplicationDA().GetModel(tempPaySettlementAppID);
if (ChFeeRecvApplicationEntity.GID != null)
{
this.txt_billno.Value = ChFeeRecvApplicationEntity.BILLNO.ToString().Trim();
this.h_billno.Value = ChFeeRecvApplicationEntity.BILLNO.ToString().Trim();
this.h_customer.Value = ChFeeRecvApplicationEntity.CUSTOMERNAME.ToString().Trim();
this.h_settletype.Value = ChFeeRecvApplicationEntity.SETTLETYPE.ToString().Trim();
this.txt_invoicetitle.Value = ChFeeRecvApplicationEntity.INVOICETITLE.ToString().Trim();
UserEntity userEntity = new UserEntity();
UserDA userDA = new UserDA();
userEntity = userDA.GetUserSignByID(ChFeeRecvApplicationEntity.APPLICANT);
if (userEntity.Gid != null)
{
this.txt_applyuser.Value = userEntity.ShowName.ToString().Trim();
}
this.txt_applytime.Value = ChFeeRecvApplicationEntity.APPLYTIME.ToString().Trim();
this.txt_remark.Value = ChFeeRecvApplicationEntity.REMARK.ToString().Trim();
this.txt_rmb.Value = ChFeeRecvApplicationEntity.AMOUNTRMB.ToString().Trim();
this.txt_usd.Value = ChFeeRecvApplicationEntity.AMOUNTUSD.ToString().Trim();
this.txt_payabletime.Value = ChFeeRecvApplicationEntity.RECVTIME == DateTime.MinValue ? "" : ChFeeRecvApplicationEntity.RECVTIME.ToString().Trim();
this.txtINVOICENUMREMARK.Text = ChFeeRecvApplicationEntity.INVOICENUMREMARK == null ? "" : ChFeeRecvApplicationEntity.INVOICENUMREMARK.ToString().Trim();//发票号备注
}
}
}
}