protected void Page_Load(object sender, EventArgs e)
        {
            int category_id;
            if (int.TryParse(Request.QueryString["id"], out category_id))
            {
                category_id = Convert.ToInt16(Request.QueryString["id"].ToString());
                if (category_id < 1)
                {
                    Response.Redirect("~/StoreClerk/CategoryList.aspx");
                }

                if (!Page.IsPostBack)
                {
                    StationeryController categoryController = new StationeryController();
                    StationeryCategory category = categoryController.actionGetStationeryCategoryByID(category_id);

                    ui_id_hiddenfield.Value = category.id.ToString();
                    ui_catname_textbox.Text = category.category_name;

                    ui_content_title_label.Text = category.category_name;
                }
            }
            else
            {

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                StationeryController stationeryController = new StationeryController();

                List<Supplier> suppliers = new SupplierController().actionGetSuppliers();

                int stationery_id;

                if (int.TryParse(Request.QueryString["id"], out stationery_id))
                {
                    stationery_id = Convert.ToInt16(Request.QueryString["id"].ToString());
                    if (stationery_id < 1)
                    {
                        Response.Redirect("~/m/DepartmentEmplyoee/Stationeries.aspx");
                    }

                    if (!Page.IsPostBack)
                    {
                        Stationery stationery = stationeryController.actionGetStationeryByID(stationery_id);
                        StationeryCategory category = stationeryController.actionGetStationeryCategoryByID(stationery.category);
                        ui_stationery_name.Text = stationery.stationery_name;
                        ui_category.Text = category.category_name;
                        ui_id_hidden.Value = stationery.id.ToString();
                        ui_uom.Text = stationery.unit_of_measure;
                        ui_price.Text = stationery.price.ToString();
                        ui_total.Text = stationery.price.ToString();
                        ui_price_hidden_forjscalculation.Value = stationery.price.ToString();
                    }
                }
                else
                {

                }
            }
        }