protected void Page_Load(object sender, EventArgs e)
 {
     rc = new ReportController();
     //List<String> categories = rc.getAllStationeryCategories();
     //foreach (var c in categories)
     //    categoryDropDownList.Items.Add(c);
     //categoryDropDownList.DataBind();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     rc = new ReportController();
     List<String> departmentNames = rc.getAllDepartmentNames();
     foreach (var departmentName in departmentNames)
         departmentDropDownList.Items.Add(departmentName);
     departmentDropDownList.DataBind();
     //Dictionary<string, Dictionary<string, int>> reportDict=rc.getAllDisbursementsByDates(new string[]{"12/2013","10/2010","4/2011"});
     //Dictionary<string, Dictionary<string, int>> reportNameDict=rc.getAllDisbursementsByNameAndDates("Pen Blu", new string[] { "12/2013", "10/2010", "4/2011" });
     //monthListBox.Text=de
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            rc = new ReportController();
            User user = (User)Session["user"];
            if (user == null) {
                return;
            }

            else{
                departmentName = rc.getDepartmentNameByUsedID(user.id);
            }

            /*
            List<String> departmentNames = rc.getAllDepartmentNames();
            foreach (var departmentName in departmentNames)
                departmentDropDownList.Items.Add(departmentName);
            departmentDropDownList.DataBind();
             * */
            //Dictionary<string, Dictionary<string, int>> reportDict=rc.getAllDisbursementsByDates(new string[]{"12/2013","10/2010","4/2011"});
            //Dictionary<string, Dictionary<string, int>> reportNameDict=rc.getAllDisbursementsByNameAndDates("Pen Blu", new string[] { "12/2013", "10/2010", "4/2011" });
            //monthListBox.Text=de
        }