123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.MembershipManage
- {
- public partial class MemberDataSetSmallForm : LYFZ.Software.UI.MembershipManage.MemberDataSetSmallForm
- {
- public MemberDataSetSmallForm()
- {
- }
- int IntWidth = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
- Form frm = null;
- /// <summary>
- /// 窗体加载事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void MemberDataSetSmallForm_Load(object sender, EventArgs e)
- {
- this.Location = new Point(200, 110);
- List<Control> hideControl = new List<Control>();
- hideControl.Add(btnServiceContentSet);
- hideControl.Add(btnPackageServiceSet);
- //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
- bool b = LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(
- VersionControl.VersionFunctionEnum.会员管理服务卡会员, hideControl, null, null);
- hideControl = new List<Control>();
- hideControl.Add(btnPhotographerConferenceSet);
- //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
- b = LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(
- VersionControl.VersionFunctionEnum.会员管理摄友会会员, hideControl, null, null);
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_BaseSet))
- { this.btnUpgradeSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PointsSet))
- { this.btnPointsSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_CashBackProportionSet))
- { this.btnCashBackSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_RechargeTypeSet))
- { this.btnRechargeType.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_GradeSet))
- { this.btnGradeSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_ServiceContentSet))
- { this.btnServiceContentSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PackageServiceSet))
- { this.btnPackageServiceSet.Enabled = false; }
- if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PhotographerConferenceSet))
- { this.btnPhotographerConferenceSet.Enabled = false; }
- }
- /// <summary>
- /// 首页
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnHomePage_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- }
- /// <summary>
- /// 会员升级设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnUpgradeSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SuperSmallForm.MemberCardUpgradeSetSuperSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 积分设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnPointsSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SuperSmallForm.PointsSetSuperSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 返现比例设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnCashBackSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SetSmallForm.DataSetCashBackSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 服务内容设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnServiceContentSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SetSmallForm.DataSetServiceContentSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 套系服务设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnPackageServiceSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SetSmallForm.DataSetServicePackageContentSetSetSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 会员等级设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnGradeSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SuperSmallForm.MemberCardGradeSetSuperSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 会员充值类型设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnRechargeType_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SuperSmallForm.MemberCardRechargeTypeSetSuperSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- /// <summary>
- /// 新摄会类型设置
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void btnPhotographerConferenceSet_Click(object sender, EventArgs e)
- {
- if (this.frm != null)
- { this.frm.Close(); }
- frm = new SuperSmallForm.PhotographerConferenceSuperSmallForm();
- frm.Height = this.Height;
- frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
- frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
- frm.Show();
- }
- }
- }
|