Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        void AddData()
        {
            UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(WindowStatus.Add, null, this);

            this.addUserControl(add, "银行账户-新建", "UCBankAccountAdd", this.Tag.ToString(), this.Name);
        }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
 void AddData()
 {
     UCBankAccountAddOrEdit add = new UCBankAccountAddOrEdit(WindowStatus.Add, null, this);
     this.addUserControl(add,"银行账户-新建", "UCBankAccountAdd", this.Tag.ToString(), this.Name);
 }