private void PermissionsSet(int roleId) { string str = string.Empty; if (this.cbSummary.Checked) { str = str + 1000 + ","; } if (this.cbSiteContent.Checked) { str = str + 1001 + ","; } if (this.cbVotes.Checked) { str = str + 2009 + ","; } if (this.cbShippingTemplets.Checked) { str = str + 1006 + ","; } if (this.cbExpressComputerpes.Checked) { str = str + 1007 + ","; } if (this.cbPictureMange.Checked) { str = str + 1009 + ","; } if (this.cbProductTypesView.Checked) { str = str + 3017 + ","; } if (this.cbProductTypesAdd.Checked) { str = str + 3018 + ","; } if (this.cbProductTypesEdit.Checked) { str = str + 3019 + ","; } if (this.cbProductTypesDelete.Checked) { str = str + 3020 + ","; } if (this.cbManageCategoriesView.Checked) { str = str + 3021 + ","; } if (this.cbManageCategoriesAdd.Checked) { str = str + 3022 + ","; } if (this.cbManageCategoriesEdit.Checked) { str = str + 3023 + ","; } if (this.cbManageCategoriesDelete.Checked) { str = str + 3024 + ","; } if (this.cbBrandCategories.Checked) { str = str + 3025 + ","; } if (this.cbManageProductsView.Checked) { str = str + 3001 + ","; } if (this.cbManageProductsAdd.Checked) { str = str + 3002 + ","; } if (this.cbManageProductsEdit.Checked) { str = str + 3003 + ","; } if (this.cbManageProductsDelete.Checked) { str = str + 3004 + ","; } if (this.cbInStock.Checked) { str = str + 3005 + ","; } if (this.cbManageProductsUp.Checked) { str = str + 3006 + ","; } if (this.cbManageProductsDown.Checked) { str = str + 3007 + ","; } if (this.cbProductUnclassified.Checked) { str = str + 3010 + ","; } if (this.cbProductBatchUpload.Checked) { str = str + 3012 + ","; } if (this.cbProductBatchExport.Checked) { str = str + 3026 + ","; } if (this.cbSubjectProducts.Checked) { str = str + 3011 + ","; } if (this.cbClientGroup.Checked) { str = str + 7007 + ","; } if (this.cbClientNew.Checked) { str = str + 7008 + ","; } if (this.cbClientSleep.Checked) { str = str + 7010 + ","; } if (this.cbClientActivy.Checked) { str = str + 7009 + ","; } if (this.cbMemberRanksView.Checked) { str = str + 5004 + ","; } if (this.cbMemberRanksAdd.Checked) { str = str + 5005 + ","; } if (this.cbMemberRanksEdit.Checked) { str = str + 5006 + ","; } if (this.cbMemberRanksDelete.Checked) { str = str + 5007 + ","; } if (this.cbManageMembersView.Checked) { str = str + 5001 + ","; } if (this.cbManageMembersEdit.Checked) { str = str + 5002 + ","; } if (this.cbManageMembersDelete.Checked) { str = str + 5003 + ","; } if (this.cbMemberArealDistributionStatistics.Checked) { str = str + 10008 + ","; } if (this.cbUserIncreaseStatistics.Checked) { str = str + 10009 + ","; } if (this.cbMemberRanking.Checked) { str = str + 10007 + ","; } if (this.cbManageOrderView.Checked) { str = str + 4001 + ","; } if (this.cbManageOrderDelete.Checked) { str = str + 4002 + ","; } if (this.cbManageOrderEdit.Checked) { str = str + 4003 + ","; } if (this.cbManageOrderConfirm.Checked) { str = str + 4004 + ","; } if (this.cbManageOrderSendedGoods.Checked) { str = str + 4005 + ","; } if (this.cbExpressPrint.Checked) { str = str + 4006 + ","; } if (this.cbExpressTemplates.Checked) { str = str + 4009 + ","; } if (this.cbShipper.Checked) { str = str + 4010 + ","; } if (this.cbPaymentModes.Checked) { str = str + 1004 + ","; } if (this.cbShippingModes.Checked) { str = str + 1005 + ","; } if (this.cbSaleTotalStatistics.Checked) { str = str + 10001 + ","; } if (this.cbUserOrderStatistics.Checked) { str = str + 10002 + ","; } if (this.cbSaleList.Checked) { str = str + 10003 + ","; } if (this.cbSaleTargetAnalyse.Checked) { str = str + 10004 + ","; } if (this.cbProductSaleRanking.Checked) { str = str + 10005 + ","; } if (this.cbProductSaleStatistics.Checked) { str = str + 10006 + ","; } if (this.cbOrderRefundApply.Checked) { str = str + 4012 + ","; } if (this.cbOrderReplaceApply.Checked) { str = str + 4013 + ","; } if (this.cbOrderReturnsApply.Checked) { str = str + 4014 + ","; } if (this.cbGifts.Checked) { str = str + 8001 + ","; } if (this.cbGroupBuy.Checked) { str = str + 8005 + ","; } if (this.cbCountDown.Checked) { str = str + 8006 + ","; } if (this.cbCoupons.Checked) { str = str + 8007 + ","; } if (this.cbProductPromotion.Checked) { str = str + 8002 + ","; } if (this.cbOrderPromotion.Checked) { str = str + 8003 + ","; } if (!string.IsNullOrEmpty(str)) { str = str.Substring(0, str.LastIndexOf(",")); } ManagerHelper.AddPrivilegeInRoles(roleId, str); ManagerHelper.ClearRolePrivilege(roleId); }
private void PermissionsSet(int roleId) { string str = string.Empty; if (this.cbSummary.Checked) { str = str + 0x3e8 + ","; } if (this.cbSiteContent.Checked) { str = str + 0x3e9 + ","; } if (this.cbVotes.Checked) { str = str + 0x7d9 + ","; } if (this.cbShippingTemplets.Checked) { str = str + 0x3ee + ","; } if (this.cbExpressComputerpes.Checked) { str = str + 0x3ef + ","; } if (this.cbPictureMange.Checked) { str = str + 0x3f1 + ","; } if (this.cbProductTypesView.Checked) { str = str + 0xbc9 + ","; } if (this.cbProductTypesAdd.Checked) { str = str + 0xbca + ","; } if (this.cbProductTypesEdit.Checked) { str = str + 0xbcb + ","; } if (this.cbProductTypesDelete.Checked) { str = str + 0xbcc + ","; } if (this.cbManageCategoriesView.Checked) { str = str + 0xbcd + ","; } if (this.cbManageCategoriesAdd.Checked) { str = str + 0xbce + ","; } if (this.cbManageCategoriesEdit.Checked) { str = str + 0xbcf + ","; } if (this.cbManageCategoriesDelete.Checked) { str = str + 0xbd0 + ","; } if (this.cbBrandCategories.Checked) { str = str + 0xbd1 + ","; } if (this.cbManageProductsView.Checked) { str = str + 0xbb9 + ","; } if (this.cbManageProductsAdd.Checked) { str = str + 0xbba + ","; } if (this.cbManageProductsEdit.Checked) { str = str + 0xbbb + ","; } if (this.cbManageProductsDelete.Checked) { str = str + 0xbbc + ","; } if (this.cbInStock.Checked) { str = str + 0xbbd + ","; } if (this.cbManageProductsUp.Checked) { str = str + 0xbbe + ","; } if (this.cbManageProductsDown.Checked) { str = str + 0xbbf + ","; } if (this.cbProductUnclassified.Checked) { str = str + 0xbc2 + ","; } if (this.cbProductBatchUpload.Checked) { str = str + 0xbc4 + ","; } if (this.cbProductBatchExport.Checked) { str = str + 0xbd2 + ","; } if (this.cbSubjectProducts.Checked) { str = str + 0xbc3 + ","; } if (this.cbClientGroup.Checked) { str = str + 0x1b5f + ","; } if (this.cbClientNew.Checked) { str = str + 0x1b60 + ","; } if (this.cbClientSleep.Checked) { str = str + 0x1b62 + ","; } if (this.cbClientActivy.Checked) { str = str + 0x1b61 + ","; } if (this.cbMemberRanksView.Checked) { str = str + 0x138c + ","; } if (this.cbMemberRanksAdd.Checked) { str = str + 0x138d + ","; } if (this.cbMemberRanksEdit.Checked) { str = str + 0x138e + ","; } if (this.cbMemberRanksDelete.Checked) { str = str + 0x138f + ","; } if (this.cbManageMembersView.Checked) { str = str + 0x1389 + ","; } if (this.cbManageMembersEdit.Checked) { str = str + 0x138a + ","; } if (this.cbManageMembersDelete.Checked) { str = str + 0x138b + ","; } if (this.cbMemberArealDistributionStatistics.Checked) { str = str + 0x2718 + ","; } if (this.cbUserIncreaseStatistics.Checked) { str = str + 0x2719 + ","; } if (this.cbMemberRanking.Checked) { str = str + 0x2717 + ","; } if (this.cbManageOrderView.Checked) { str = str + 0xfa1 + ","; } if (this.cbManageOrderDelete.Checked) { str = str + 0xfa2 + ","; } if (this.cbManageOrderEdit.Checked) { str = str + 0xfa3 + ","; } if (this.cbManageOrderConfirm.Checked) { str = str + 0xfa4 + ","; } if (this.cbManageOrderSendedGoods.Checked) { str = str + 0xfa5 + ","; } if (this.cbExpressPrint.Checked) { str = str + 0xfa6 + ","; } if (this.cbExpressTemplates.Checked) { str = str + 0xfa9 + ","; } if (this.cbShipper.Checked) { str = str + 0xfaa + ","; } if (this.cbPaymentModes.Checked) { str = str + 0x3ec + ","; } if (this.cbShippingModes.Checked) { str = str + 0x3ed + ","; } if (this.cbSaleTotalStatistics.Checked) { str = str + 0x2711 + ","; } if (this.cbUserOrderStatistics.Checked) { str = str + 0x2712 + ","; } if (this.cbSaleList.Checked) { str = str + 0x2713 + ","; } if (this.cbSaleTargetAnalyse.Checked) { str = str + 0x2714 + ","; } if (this.cbProductSaleRanking.Checked) { str = str + 0x2715 + ","; } if (this.cbProductSaleStatistics.Checked) { str = str + 0x2716 + ","; } if (this.cbOrderRefundApply.Checked) { str = str + 0xfac + ","; } if (this.cbOrderReplaceApply.Checked) { str = str + 0xfad + ","; } if (this.cbOrderReturnsApply.Checked) { str = str + 0xfae + ","; } if (this.cbGifts.Checked) { str = str + 0x1f41 + ","; } if (this.cbGroupBuy.Checked) { str = str + 0x1f45 + ","; } if (this.cbCountDown.Checked) { str = str + 0x1f46 + ","; } if (this.cbCoupons.Checked) { str = str + 0x1f47 + ","; } if (this.cbProductPromotion.Checked) { str = str + 0x1f42 + ","; } if (this.cbOrderPromotion.Checked) { str = str + 0x1f43 + ","; } if (!string.IsNullOrEmpty(str)) { str = str.Substring(0, str.LastIndexOf(",")); } ManagerHelper.AddPrivilegeInRoles(roleId, str); ManagerHelper.ClearRolePrivilege(roleId); }