コード例 #1
0
        void EditData(WindowStatus status)
        {
            if (status != WindowStatus.Edit && status != WindowStatus.Copy)
            {
                return;
            }
            string title  = "编辑";
            string menuId = "UCCashierAccountEdit";

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

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

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

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

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

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

            UCCashierAccountAdd view = new UCCashierAccountAdd(WindowStatus.View, id, this);

            base.addUserControl(view, "出纳账户-预览", "UCCashierAccountView" + id, this.Tag.ToString(), this.Name);
        }
コード例 #3
0
        void EditData(WindowStatus status)
        {
            if (status != WindowStatus.Edit && status != WindowStatus.Copy)
            {
                return;
            }
            string title = "编辑";
            string menuId = "UCCashierAccountEdit";
            if (status == WindowStatus.Copy)
            {
                title = "复制";
                menuId = "UCCashierAccountCopy";
            }

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

            UCCashierAccountAdd add = new UCCashierAccountAdd(status, id, this);
            base.addUserControl(add, string.Format("出纳账户-{0}", title), menuId + id, this.Tag.ToString(), this.Name);
        }
コード例 #4
0
 void AddData()
 {
     UCCashierAccountAdd add = new UCCashierAccountAdd(WindowStatus.Add, null, this);
     this.addUserControl(add, "出纳账户-新建", "UCCashierAccountAdd", this.Tag.ToString(), this.Name);
 }
コード例 #5
0
        void ViewData()
        {
            if (dgvRecord.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择要预览的数据!");
                return;
            }
            string id = ID;
            if (string.IsNullOrEmpty(id))
            {
                return;
            }

            UCCashierAccountAdd view = new UCCashierAccountAdd(WindowStatus.View, id, this);
            base.addUserControl(view, "出纳账户-预览", "UCCashierAccountView" + id, this.Tag.ToString(), this.Name);
        }
コード例 #6
0
        void AddData()
        {
            UCCashierAccountAdd add = new UCCashierAccountAdd(WindowStatus.Add, null, this);

            this.addUserControl(add, "出纳账户-新建", "UCCashierAccountAdd", this.Tag.ToString(), this.Name);
        }