Ejemplo n.º 1
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }

            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var           dept = this.tvRegion.SelectedNode.Tag as bi_t_dept_info;
            frmDeptUpdate frm  = new frmDeptUpdate();

            frm.Add(dept.dept_no.Equals("所有") ? "" : dept.dept_no, dept.dept_name);

            LoadItemCls();
        }
Ejemplo n.º 2
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }

            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var item = this.tvRegion.SelectedNode.Tag as bi_t_dept_info;
            var frm  = new frmDeptUpdate();

            item = frm.Change(item);

            this.tvRegion.SelectedNode.Text = item.dept_name;
            this.tvRegion.SelectedNode.Tag  = item;
            this.tvRegion.Refresh();
        }