예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    PanelFormDetails.Visible = false;
                    Session["lastPositionNo"] = 1;
                    Session["branchID"] = 1;
                    lblParentText.Visible = false;
                    lblParentValue.Visible = false;
                    _objNodeListController = new NodeListController();
                    _objNodeListController.PopulateRootLevel(_connectionString, treeNodeList);
                    GetAllFormURL();
                    btnSave.Visible = false;
                    btnCancelAddNew.Visible = false;
                    btnUpdate.Visible = false;
                    btnCancelEdit.Visible = false;
                    PanelFormDetails.Height = 50;

                }

            }
            catch (Exception msgException)
            {

                clsTopMostMessageBox.Show(msgException.Message);
            }

        }
예제 #2
0
        protected void btnCancelEdit_Click(object sender, EventArgs e)
        {
            try
            {
                btnUpdate.Visible = false;
                btnCancelEdit.Visible = false;
                ClearControl();
                _objNodeListController = new NodeListController();
                _objNodeListController.PopulateRootLevel(_connectionString, treeNodeList);
                treeNodeList.ExpandAll();

            }
            catch (Exception msgException)
            {

                clsTopMostMessageBox.Show(msgException.Message);
            }
        }
예제 #3
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                AddValuesOfNode();
                treeNodeList.Nodes.Clear();
                _objNodeListController = new NodeListController();
                _objNodeListController.PopulateRootLevel(_connectionString, treeNodeList);
                ClearControl();
                clsTopMostMessageBox.Show(clsMessages.GProcessSuccess);
                treeNodeList.ExpandAll();

            }
            catch (Exception msgException)
            {

                clsTopMostMessageBox.Show(msgException.Message);
            }
        }