2025-03-27 15:05:14 +08:00

44 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuperMap.RealEstate.Finance.Storage.Business;
namespace SuperMap.RealEstate.Finance.Modules.SearchFinanceProinst
{
public partial class MainZJ : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
this.Master_TabSheet.Add("审批表单", "Print/PrintFinanceBillPageZJ.aspx" + this.Request.Url.Query);
string ExString = "ProInst_ID=" + Request["PROINST_ID"] + "&Passport_Guid=" + this.PassportInfo.Guid +
"&PopDialogPageName=F_R_GridPageEx1&PopDialogName=NowActInstPage";
this.Master_TabSheet.Add("流程审批", "/WorkFlow/Transact/Common/ProcessList.aspx?" + ExString);
//this.Master_TabSheet.Add("流程审批", "ApprovedList.aspx" + this.Request.Url.Query);
if (!string.IsNullOrEmpty(Request["PROINST_ID"]))
{
FINANCEPROINST _FINANCEPROINST = new FINANCEPROINST(Transaction);
_FINANCEPROINST.AddSearchParameter("PROINST_ID", Request["PROINST_ID"].ToDecrypt());
if (_FINANCEPROINST.Search())
{
if (new IMAGE(Transaction).GetCount("WHERE TABLE_NAME = 'T_FINANCEPROINST' AND TABLE_ID = " +
_FINANCEPROINST.FINANCEPROINST_ID) > 0)
{
this.Master_TabSheet.Add("票据信息", "Image/IMAGEPage.aspx" + this.Request.Url.Query);
}
if (new Storage.Business.ATTACHMENT(Transaction).GetCount(
"WHERE PROINST_ID = " + _FINANCEPROINST.FINANCEPROINST_ID) > 0)
{
this.Master_TabSheet.Add("附件信息", "ATTACHMENTPage.aspx?PROINST_ID=" +
_FINANCEPROINST.FINANCEPROINST_ID_Encrypt);
}
}
}
}
}
}