Exemple #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (this.txtorgcode.Text.Length <= 0)
            {
                MessageBox.Show(this, "关联机构编码不可以为空!");
            }

            UserLogin ul = new UserLogin();

            int res = ul.AddUserOrgCodeList(txtusers.Text.Trim(), txtorgcode.Text.Trim());

            if (res == -1)
            {
                MessageBox.Show(this, "已关联当前机构编码");
            }
            else
            {
                MessageBox.Show(this, "关联添加成功");
                txtorgcode.Text = "";
            }
        }