コード例 #1
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            if (this.tvRegion.SelectedNode == null)
            {
                return;
            }
            var             region = this.tvRegion.SelectedNode.Tag as bi_t_region_info;
            frmRegionUpdate frm    = new frmRegionUpdate();
            var             item   = frm.Add(region.region_no.Equals("所有") ? "" : region.region_no, region.region_name);

            LoadItemCls();
        }
コード例 #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_region_info;
            var frm  = new frmRegionUpdate();

            item = frm.Change(item);

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