Пример #1
0
        private void tsbAddChid_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            if (this.tvItemCls.SelectedNode == null)
            {
                return;
            }
            var item_cls         = this.tvItemCls.SelectedNode.Tag as bi_t_item_cls;
            frmItemClsUpdate frm = new frmItemClsUpdate();

            frm.Add(item_cls.item_clsno.Equals("所有") ? "" : item_cls.item_clsno, item_cls.item_clsname);

            LoadItemCls();
        }
Пример #2
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }
            if (this.tvItemCls.SelectedNode == null)
            {
                return;
            }
            var item = this.tvItemCls.SelectedNode.Tag as bi_t_item_cls;
            var frm  = new frmItemClsUpdate();

            item = frm.Change(item);

            this.tvItemCls.SelectedNode.Text = item.item_clsname;
            this.tvItemCls.SelectedNode.Tag  = item;
            this.tvItemCls.Refresh();
        }