コード例 #1
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }

            var frm = new frmBranchUpdate();

            frm.code = this.tv.SelectedNode == null ? "" : this.tv.SelectedNode.Tag.ToString();
            frm.ShowDialog();
            LoadTv();
        }
コード例 #2
0
        private void tsbUpload_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "14"))
            {
                return;
            }

            DataRow dr = this.dgvBranch.CurrentRow();

            if (dr == null)
            {
                return;
            }
            var b   = DB.ReflectionHelper.DataRowToModel <bi_t_branch_info>(dr);
            var frm = new frmBranchUpdate();

            frm.branch = b;
            frm.ShowDialog();
            LoadTv();
        }