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 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"; } } } } } } } }