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.Collections.Generic; namespace DSWeb.Shipping { public partial class FeeDelete : System.Web.UI.Page { private string strFeeID;//费用GID private string strUserID;//操作人GID private string stroplb;//业务类别 protected void Page_Load(object sender, EventArgs e) { if (Session["USERID"] != null) { strUserID = Session["USERID"].ToString(); } if (Request.QueryString["id"] != null) { // strFeeID = Request.QueryString["id"].ToString().Trim(); } if (Request.QueryString["oplb"] != null) { stroplb = Request.QueryString["oplb"].ToString(); } } protected void btn_save_Click(object sender, EventArgs e) { string strSeason = this.txt_reason.Value.Trim(); FeeDA feeDA = new FeeDA(); FeeEntity feeEntity = feeDA.GetFeeByID(strFeeID); IList feeModifyEntities = new List(); FeeModifyEntity feeModifyDelEntity = new FeeModifyEntity(); if (feeEntity != null) { if (feeEntity.GID != null) { feeModifyDelEntity.GID = Guid.NewGuid().ToString(); feeModifyDelEntity.FeeID = feeEntity.GID; feeModifyDelEntity.FeeName = feeEntity.FeeName; feeModifyDelEntity.Type = feeEntity.FeeType; feeModifyDelEntity.ApplyType = 3; feeModifyDelEntity.Reason = strSeason; feeModifyDelEntity.BSNO = feeEntity.BSNO; feeModifyDelEntity.CustomerName = feeEntity.CustomerName; feeModifyDelEntity.Unit = feeEntity.Unit; feeModifyDelEntity.UnitPrice = feeEntity.UnitPrice; feeModifyDelEntity.Quantity = feeEntity.Quantity; feeModifyDelEntity.Amount = feeEntity.Amount; feeModifyDelEntity.Currency = feeEntity.Currency; feeModifyDelEntity.FRT = feeEntity.FeeFrt; feeModifyDelEntity.CommissionRate = feeEntity.CommissionRate; feeModifyDelEntity.ExchangeRate = feeEntity.ExchangeRate; feeModifyDelEntity.IsAdvancePay = feeEntity.IsAdvancePay; feeModifyDelEntity.ApplyUser = strUserID; feeModifyDelEntity.ApplyStatus = 1; feeModifyDelEntity.Remark = feeEntity.Remark; //将申请删除费用写入表(ch_fee_modify),修改(ch_fee.feestatus),返回操作结果 FeeModifyDA feeModifyDA = new FeeModifyDA(); int iResult = feeModifyDA.InsertApplyModifyForDelete(feeModifyDelEntity); if (iResult == 1) { Response.Write(""); Response.Write(""); } } else { Response.Write(""); return; } } else { Response.Write(""); return; } } protected void btn_cancel_Click(object sender, EventArgs e) { Response.Write(""); } } }