Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString[SystemConstants.CategoryID] != null)
                {
                    int categoryID = Convert.ToInt32(Request.QueryString[SystemConstants.CategoryID]);


                    var dac = new AdministrationDAC();

                    AdministrationEDSC.CategoryDTRow dr = null;

                    if (categoryID != 0)
                    {
                        dr = dac.RetrieveCategory(categoryID);

                        CategoriesSetupUC1.Mode = SystemConstants.FormMode.Edit;
                    }
                    else
                    {
                        dr = new AdministrationEDSC.CategoryDTDataTable().NewCategoryDTRow();
                        CategoriesSetupUC1.Mode = SystemConstants.FormMode.New;
                    }

                    CategoriesSetupUC1.SetData(dr);
                }
                CheckSignIn();
            }
        }