Exemple #1
0
 public override void New()
 {
     editData = new DM_WHBLB();
     ((DM_WHBLB)editData).PARENTID = this.ParentID;
     this.CurEditStatus            = EditorStatus.New;
     this.LoadData();
 }
Exemple #2
0
        private void treeView_menu_AfterSelect(object sender, TreeViewEventArgs e)
        {
            var whbl = (sender as TreeView).SelectedNode.Tag as DM_WHBLB;

            if (whbl != null)
            {
                Curwhbl = whbl;
                LoadWHBData(whbl.Id);
            }
        }
Exemple #3
0
        private void ModifyDM_WHBLB()
        {
            Curwhbl = this.treeView_menu.SelectedNode.Tag as DM_WHBLB;
            DM_WHBLBEDIT frm = new DM_WHBLBEDIT();

            frm.ShowInTaskbar = false;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ParentID      = (int)Curwhbl.PARENTID;
            frm.SetData(Curwhbl);
            frm.ShowDialog();
            this.LoadDM_WHBLB();
        }
Exemple #4
0
        private void NewDM_WHBLB()
        {
            var parenetmenu = this.treeView_menu.SelectedNode.Tag as DM_WHBLB;

            Curwhbl = new DM_WHBLB();
            int pid = -1;

            if (parenetmenu != null)
            {
                pid = Curwhbl.Id;
            }
            DM_WHBLBEDIT frm = new DM_WHBLBEDIT();

            frm.ShowInTaskbar = false;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ParentID      = pid;
            Curwhbl.PARENTID  = pid;
            frm.SetData(Curwhbl);
            frm.ShowDialog();
            this.LoadDM_WHBLB();
        }