Beispiel #1
0
        void EditData(WindowStatus status)
        {
            if (status != WindowStatus.Edit && status != WindowStatus.Copy)
            {
                return;
            }
            string title  = "编辑";
            string menuId = "UCBankAccountEdit";

            if (status == WindowStatus.Copy)
            {
                title  = "复制";
                menuId = "UCBankAccountCopy";
            }

            if (dgvBank.CurrentRow == null)
            {
                MessageBoxEx.Show(string.Format("请选择要{0}的数据!", title));
                return;
            }
            string id = ID;

            if (string.IsNullOrEmpty(id))
            {
                return;
            }

            UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(status, id, this);

            base.addUserControl(add, string.Format("银行账户-{0}", title), menuId + id, this.Tag.ToString(), this.Name);
        }
Beispiel #2
0
        void ViewData()
        {
            if (dgvBank.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择要预览的数据!");
                return;
            }
            string id = ID;

            if (string.IsNullOrEmpty(id))
            {
                return;
            }
            UCBankAccountAddOrEdit view = new UCBankAccountAddOrEdit(WindowStatus.View, id, this);

            base.addUserControl(view, "银行帐户-预览", "UCBankAccountView" + id, this.Tag.ToString(), this.Name);
        }
Beispiel #3
0
        void AddData()
        {
            UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(WindowStatus.Add, null, this);

            this.addUserControl(add, "银行账户-新建", "UCBankAccountAdd", this.Tag.ToString(), this.Name);
        }
 void ViewData()
 {
     if (dgvBank.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择要预览的数据!");
         return;
     }
     string id = ID;
     if (string.IsNullOrEmpty(id))
     {
         return;
     }
     UCBankAccountAddOrEdit view = new UCBankAccountAddOrEdit(WindowStatus.View, id, this);
     base.addUserControl(view, "银行帐户-预览", "UCBankAccountView" + id, this.Tag.ToString(), this.Name);
 }
        void EditData(WindowStatus status)
        {
            if (status != WindowStatus.Edit && status != WindowStatus.Copy)
            {
                return;
            }
            string title = "编辑";
            string menuId = "UCBankAccountEdit";
            if (status == WindowStatus.Copy)
            {
                title = "复制";
                menuId = "UCBankAccountCopy";
            }

            if (dgvBank.CurrentRow == null)
            {
                MessageBoxEx.Show(string.Format("请选择要{0}的数据!", title));
                return;
            }
            string id = ID;
            if (string.IsNullOrEmpty(id))
            {
                return;
            }

            UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(status, id, this);
            base.addUserControl(add, string.Format("银行账户-{0}", title), menuId + id, this.Tag.ToString(), this.Name);
        }
 void AddData()
 {
     UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(WindowStatus.Add, null, this);
     this.addUserControl(add,"银行账户-新建", "UCBankAccountAdd", this.Tag.ToString(), this.Name);
 }