MemberDataSetSmallForm.cs 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LYFZ.Software.MainBusiness.MembershipManage
  10. {
  11. public partial class MemberDataSetSmallForm : LYFZ.Software.UI.MembershipManage.MemberDataSetSmallForm
  12. {
  13. public MemberDataSetSmallForm()
  14. {
  15. }
  16. int IntWidth = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
  17. Form frm = null;
  18. /// <summary>
  19. /// 窗体加载事件
  20. /// </summary>
  21. /// <param name="sender"></param>
  22. /// <param name="e"></param>
  23. protected override void MemberDataSetSmallForm_Load(object sender, EventArgs e)
  24. {
  25. this.Location = new Point(200, 110);
  26. List<Control> hideControl = new List<Control>();
  27. hideControl.Add(btnServiceContentSet);
  28. hideControl.Add(btnPackageServiceSet);
  29. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  30. bool b = LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(
  31. VersionControl.VersionFunctionEnum.会员管理服务卡会员, hideControl, null, null);
  32. hideControl = new List<Control>();
  33. hideControl.Add(btnPhotographerConferenceSet);
  34. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  35. b = LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(
  36. VersionControl.VersionFunctionEnum.会员管理摄友会会员, hideControl, null, null);
  37. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_BaseSet))
  38. { this.btnUpgradeSet.Enabled = false; }
  39. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PointsSet))
  40. { this.btnPointsSet.Enabled = false; }
  41. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_CashBackProportionSet))
  42. { this.btnCashBackSet.Enabled = false; }
  43. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_RechargeTypeSet))
  44. { this.btnRechargeType.Enabled = false; }
  45. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_GradeSet))
  46. { this.btnGradeSet.Enabled = false; }
  47. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_ServiceContentSet))
  48. { this.btnServiceContentSet.Enabled = false; }
  49. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PackageServiceSet))
  50. { this.btnPackageServiceSet.Enabled = false; }
  51. if (!LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.MemberManage, LYFZ.CustomAttributes.OperatingAuthority.Member_ParameterSet_PhotographerConferenceSet))
  52. { this.btnPhotographerConferenceSet.Enabled = false; }
  53. }
  54. /// <summary>
  55. /// 首页
  56. /// </summary>
  57. /// <param name="sender"></param>
  58. /// <param name="e"></param>
  59. protected override void btnHomePage_Click(object sender, EventArgs e)
  60. {
  61. if (this.frm != null)
  62. { this.frm.Close(); }
  63. }
  64. /// <summary>
  65. /// 会员升级设置
  66. /// </summary>
  67. /// <param name="sender"></param>
  68. /// <param name="e"></param>
  69. protected override void btnUpgradeSet_Click(object sender, EventArgs e)
  70. {
  71. if (this.frm != null)
  72. { this.frm.Close(); }
  73. frm = new SuperSmallForm.MemberCardUpgradeSetSuperSmallForm();
  74. frm.Height = this.Height;
  75. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  76. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  77. frm.Show();
  78. }
  79. /// <summary>
  80. /// 积分设置
  81. /// </summary>
  82. /// <param name="sender"></param>
  83. /// <param name="e"></param>
  84. protected override void btnPointsSet_Click(object sender, EventArgs e)
  85. {
  86. if (this.frm != null)
  87. { this.frm.Close(); }
  88. frm = new SuperSmallForm.PointsSetSuperSmallForm();
  89. frm.Height = this.Height;
  90. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  91. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  92. frm.Show();
  93. }
  94. /// <summary>
  95. /// 返现比例设置
  96. /// </summary>
  97. /// <param name="sender"></param>
  98. /// <param name="e"></param>
  99. protected override void btnCashBackSet_Click(object sender, EventArgs e)
  100. {
  101. if (this.frm != null)
  102. { this.frm.Close(); }
  103. frm = new SetSmallForm.DataSetCashBackSmallForm();
  104. frm.Height = this.Height;
  105. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  106. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  107. frm.Show();
  108. }
  109. /// <summary>
  110. /// 服务内容设置
  111. /// </summary>
  112. /// <param name="sender"></param>
  113. /// <param name="e"></param>
  114. protected override void btnServiceContentSet_Click(object sender, EventArgs e)
  115. {
  116. if (this.frm != null)
  117. { this.frm.Close(); }
  118. frm = new SetSmallForm.DataSetServiceContentSmallForm();
  119. frm.Height = this.Height;
  120. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  121. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  122. frm.Show();
  123. }
  124. /// <summary>
  125. /// 套系服务设置
  126. /// </summary>
  127. /// <param name="sender"></param>
  128. /// <param name="e"></param>
  129. protected override void btnPackageServiceSet_Click(object sender, EventArgs e)
  130. {
  131. if (this.frm != null)
  132. { this.frm.Close(); }
  133. frm = new SetSmallForm.DataSetServicePackageContentSetSetSmallForm();
  134. frm.Height = this.Height;
  135. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  136. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  137. frm.Show();
  138. }
  139. /// <summary>
  140. /// 会员等级设置
  141. /// </summary>
  142. /// <param name="sender"></param>
  143. /// <param name="e"></param>
  144. protected override void btnGradeSet_Click(object sender, EventArgs e)
  145. {
  146. if (this.frm != null)
  147. { this.frm.Close(); }
  148. frm = new SuperSmallForm.MemberCardGradeSetSuperSmallForm();
  149. frm.Height = this.Height;
  150. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  151. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  152. frm.Show();
  153. }
  154. /// <summary>
  155. /// 会员充值类型设置
  156. /// </summary>
  157. /// <param name="sender"></param>
  158. /// <param name="e"></param>
  159. protected override void btnRechargeType_Click(object sender, EventArgs e)
  160. {
  161. if (this.frm != null)
  162. { this.frm.Close(); }
  163. frm = new SuperSmallForm.MemberCardRechargeTypeSetSuperSmallForm();
  164. frm.Height = this.Height;
  165. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  166. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  167. frm.Show();
  168. }
  169. /// <summary>
  170. /// 新摄会类型设置
  171. /// </summary>
  172. /// <param name="sender"></param>
  173. /// <param name="e"></param>
  174. protected override void btnPhotographerConferenceSet_Click(object sender, EventArgs e)
  175. {
  176. if (this.frm != null)
  177. { this.frm.Close(); }
  178. frm = new SuperSmallForm.PhotographerConferenceSuperSmallForm();
  179. frm.Height = this.Height;
  180. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  181. frm.Location = new Point(this.Location.X + this.Width + 1, this.Location.Y);
  182. frm.Show();
  183. }
  184. }
  185. }