Ejemplo n.º 1
0
        /// <summary>
        /// 添加
        /// </summary>
        void UCMemberParaManage_AddEvent(object sender, EventArgs e)
        {
            UCMemberParaAddOrEdit uc = new UCMemberParaAddOrEdit(this.Name);

            uc.windowStatus      = WindowStatus.Add;
            uc.RefreshDataStart -= new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
            uc.RefreshDataStart += new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
            base.addUserControl(uc, "会员参数设置-新增", "MemberPara", this.Tag.ToString(), this.Name);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 编辑
        /// </summary>
        void UCMemberParaManage_EditEvent(object sender, EventArgs e)
        {
            if (dgvRecord.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            string id = dgvRecord.CurrentRow.Cells[this.columnId.Name].Value.ToString();  //会员参数设置ID
            UCMemberParaAddOrEdit uc = new UCMemberParaAddOrEdit(this.Name);

            uc.windowStatus      = WindowStatus.Edit;
            uc.id                = id;
            uc.RefreshDataStart -= new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
            uc.RefreshDataStart += new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);

            base.addUserControl(uc, "会员参数设置-编辑", "MemberParaEdit" + id, this.Tag.ToString(), this.Name);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加
 /// </summary>
 void UCMemberParaManage_AddEvent(object sender, EventArgs e)
 {
     UCMemberParaAddOrEdit uc = new UCMemberParaAddOrEdit(this.Name);
     uc.wStatus = WindowStatus.Add;
     uc.RefreshDataStart -= new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
     uc.RefreshDataStart += new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
     base.addUserControl(uc, "会员参数设置-新增", "MemberPara", this.Tag.ToString(), this.Name);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 编辑
        /// </summary>
        void UCMemberParaManage_EditEvent(object sender, EventArgs e)
        {
            if (dgvRecord.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            string id = dgvRecord.CurrentRow.Cells[this.columnId.Name].Value.ToString();  //会员参数设置ID
            UCMemberParaAddOrEdit uc = new UCMemberParaAddOrEdit(this.Name);
            uc.wStatus = WindowStatus.Edit;
            uc.id = id;
            uc.RefreshDataStart -= new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);
            uc.RefreshDataStart += new UCMemberParaAddOrEdit.RefreshData(this.BindPageData);

            base.addUserControl(uc, "会员参数设置-编辑", "MemberParaEdit" + id, this.Tag.ToString(), this.Name);
        }