Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            viewPaymentType.DataSource = ItemAuthHandler.getPaymentType();
            viewPaymentType.DataBind();

            if (Session["userrole"].ToString() == "Administrator")
            {
                adminPvl.Style.Add("display", "inline");
            }
            else
            {
                adminPvl.Style.Add("display", "none");
            }
        }
Exemplo n.º 2
0
 public static List <PaymentType> getPaymentType()
 {
     return(ItemAuthHandler.getPaymentType());
 }