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/App_Data/AuditProcess/FeeAudit.aspx.cs

56 lines
1.8 KiB
C#

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.EntityDA;
using DSWeb.Models;
using System.Collections.Generic;
namespace DSWeb.AuditProcess
{
public partial class FeeAudit : System.Web.UI.Page
{
private string strUserID;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["USERID"] != null)
{
strUserID = Session["USERID"].ToString();
}
if (strUserID != null)
{
IList<UserAttributeEntity> userAttributeEntities = new UserAttributeDA().GetUserAttributeValue(strUserID);
if (userAttributeEntities.Count > 0)
{
foreach (UserAttributeEntity userAttributeEntity in userAttributeEntities)
{
if (userAttributeEntity.AttributeName.ToLower() == "isFinancialStaff".ToLower())
{
if (userAttributeEntity.RefEntity.AttributeValue.ToLower().Equals("true"))
{
h_isfinancial.Value = "1";
}
}
else if (userAttributeEntity.AttributeName.ToLower() == "isOperator".ToLower())
{
if (userAttributeEntity.RefEntity.AttributeValue.ToLower().Equals("true"))
{
h_isoperator.Value = "1";
}
}
}
}
}
}
}
}