Exemple #1
0
    //AUTHOR : TAN WEN SONG
    protected void Page_Load(object sender, EventArgs e)
    {
        Employee user = (Employee)Session["emp"];

        if (user != null)
        {
            try
            {
                gvForStationeryCatalogue.DataSource = EFBroker_Item.GetCatalogueList();
            }
            catch (Exception sql)
            {
                Response.Redirect(LoginController.ErrorPageURI);
            }
            if (!IsPostBack)
            {
                gvForStationeryCatalogue.DataBind();
                DisplayClickableURL();
            }
        }
        else
        {
            Utility.logout();
        }
    }
Exemple #2
0
 public static List <Item> GetCatalogueList()
 {
     return(EFBroker_Item.GetCatalogueList());
 }