private void PermissionsSet(Guid roleId) { string str = string.Empty; if (cbSummary.Checked) { str = str + 0x3e8 + ","; } if (cbSiteContent.Checked) { str = str + 0x3e9 + ","; } if (cbVotes.Checked) { str = str + 0x3ed + ","; } if (cbFriendlyLinks.Checked) { str = str + 0x3eb + ","; } if (cbManageThemes.Checked) { str = str + 0x3ea + ","; } if (cbManageHotKeywords.Checked) { str = str + 0x3ec + ","; } if (cbAfficheList.Checked) { str = str + 0x3f2 + ","; } if (cbHelpCategories.Checked) { str = str + 0x3f3 + ","; } if (cbHelpList.Checked) { str = str + 0x3f4 + ","; } if (cbArticleCategories.Checked) { str = str + 0x3f5 + ","; } if (cbArticleList.Checked) { str = str + 0x3f6 + ","; } if (cbEmailSettings.Checked) { str = str + 0x3fc + ","; } if (cbSMSSettings.Checked) { str = str + 0x3fd + ","; } if (cbMessageTemplets.Checked) { str = str + 0x3fe + ","; } if (cbDistributorGradesView.Checked) { str = str + 0x7d1 + ","; } if (cbDistributorGradesAdd.Checked) { str = str + 0x7d2 + ","; } if (cbDistributorGradesEdit.Checked) { str = str + 0x7d3 + ","; } if (cbDistributorGradesDelete.Checked) { str = str + 0x7d4 + ","; } if (cbDistributorsView.Checked) { str = str + 0x7d5 + ","; } if (cbDistributorsEdit.Checked) { str = str + 0x7d6 + ","; } if (cbDistributorsDelete.Checked) { str = str + 0x7d7 + ","; } if (cbDistributorsRequests.Checked) { str = str + 0x7d8 + ","; } if (cbDistributorsRequestInstruction.Checked) { str = str + 0x7d9 + ","; } if (cbPurchaseOrdersView.Checked) { str = str + 0x7da + ","; } if (cbPurchaseOrdersEdit.Checked) { str = str + 0x7dc + ","; } if (cbPurchaseOrdersDelete.Checked) { str = str + 0x7db + ","; } if (cbPurchaseOrdersSendGoods.Checked) { str = str + 0x7dd + ","; } if (cbPurchaseOrdersRefund.Checked) { str = str + 0x7de + ","; } if (cbPurchaseOrdersRemark.Checked) { str = str + 0x7df + ","; } if (cbDistributorAccount.Checked) { str = str + 0x7e4 + ","; } if (cbDistributorReCharge.Checked) { str = str + 0x7e5 + ","; } if (cbDistributorBalanceDrawRequest.Checked) { str = str + 0x7e6 + ","; } if (cbDistributionReport.Checked) { str = str + 0x7ee + ","; } if (cbPurchaseOrderStatistics.Checked) { str = str + 0x7ef + ","; } if (cbDistributionProductSaleRanking.Checked) { str = str + 0x7f0 + ","; } if (cbDistributorAchievementsRanking.Checked) { str = str + 0x7f2 + ","; } if (cbManageDistributorSites.Checked) { str = str + 0x7f3 + ","; } if (cbDistributorSiteRequests.Checked) { str = str + 0x7f4 + ","; } if (cbProductLinesView.Checked) { str = str + 0xbb9 + ","; } if (cbAddProductLine.Checked) { str = str + 0xbba + ","; } if (cbEditProductLine.Checked) { str = str + 0xbbb + ","; } if (cbDeleteProductLine.Checked) { str = str + 0xbbc + ","; } if (cbProductTypesView.Checked) { str = str + 0xbbd + ","; } if (cbProductTypesAdd.Checked) { str = str + 0xbbe + ","; } if (cbProductTypesEdit.Checked) { str = str + 0xbbf + ","; } if (cbProductTypesDelete.Checked) { str = str + 0xbc0 + ","; } if (cbManageCategoriesView.Checked) { str = str + 0xbc1 + ","; } if (cbManageCategoriesAdd.Checked) { str = str + 0xbc2 + ","; } if (cbManageCategoriesEdit.Checked) { str = str + 0xbc3 + ","; } if (cbManageCategoriesDelete.Checked) { str = str + 0xbc4 + ","; } if (cbBrandCategories.Checked) { str = str + 0xbc5 + ","; } if (cbManageProductsView.Checked) { str = str + 0xbcd + ","; } if (cbManageProductsAdd.Checked) { str = str + 0xbce + ","; } if (cbManageProductsEdit.Checked) { str = str + 0xbcf + ","; } if (cbManageProductsDelete.Checked) { str = str + 0xbd0 + ","; } if (cbInStock.Checked) { str = str + 0xbd8 + ","; } if (cbManageProductsUp.Checked) { str = str + 0xbd2 + ","; } if (cbManageProductsDown.Checked) { str = str + 0xbd1 + ","; } if (cbPackProduct.Checked) { str = str + 0xbd3 + ","; } if (cbUpPackProduct.Checked) { str = str + 0xbd4 + ","; } if (cbProductUnclassified.Checked) { str = str + 0xbcc + ","; } if (cbProductBatchUpload.Checked) { str = str + 0xbd6 + ","; } if (cbSubjectProducts.Checked) { str = str + 0xbd5 + ","; } if (cbMakeProductsPack.Checked) { str = str + 0xbd7 + ","; } if (cbMemberRanksView.Checked) { str = str + 0xfa1 + ","; } if (cbMemberRanksAdd.Checked) { str = str + 0xfa2 + ","; } if (cbMemberRanksEdit.Checked) { str = str + 0xfa3 + ","; } if (cbMemberRanksDelete.Checked) { str = str + 0xfa4 + ","; } if (cbManageMembersView.Checked) { str = str + 0xfa5 + ","; } if (cbManageMembersEdit.Checked) { str = str + 0xfa6 + ","; } if (cbManageMembersDelete.Checked) { str = str + 0xfa7 + ","; } if (cbBalanceDrawRequest.Checked) { str = str + 0xfab + ","; } if (cbAccountSummary.Checked) { str = str + 0xfaa + ","; } if (cbReCharge.Checked) { str = str + 0xfac + ","; } if (cbBalanceDetailsStatistics.Checked) { str = str + 0xfb0 + ","; } if (cbBalanceDrawRequestStatistics.Checked) { str = str + 0xfb1 + ","; } if (cbMemberArealDistributionStatistics.Checked) { str = str + 0xfae + ","; } if (cbUserIncreaseStatistics.Checked) { str = str + 0xfaf + ","; } if (cbMemberRanking.Checked) { str = str + 0xfad + ","; } if (cbOpenIdServices.Checked) { str = str + 0xfb2 + ","; } if (cbOpenIdSettings.Checked) { str = str + 0xfb3 + ","; } if (cbManageOrderView.Checked) { str = str + 0x1389 + ","; } if (cbManageOrderDelete.Checked) { str = str + 0x138b + ","; } if (cbManageOrderEdit.Checked) { str = str + 0x138a + ","; } if (cbManageOrderConfirm.Checked) { str = str + 0x138c + ","; } if (cbManageOrderSendedGoods.Checked) { str = str + 0x138d + ","; } if (cbExpressPrint.Checked) { str = str + 0x1397 + ","; } if (cbManageOrderRefund.Checked) { str = str + 0x138e + ","; } if (cbManageOrderRemark.Checked) { str = str + 0x138f + ","; } if (cbExpressTemplates.Checked) { str = str + 0x1396 + ","; } if (cbShipper.Checked) { str = str + 0x1395 + ","; } if (cbOrderLookupLists.Checked) { str = str + 0x1392 + ","; } if (cbPaymentModes.Checked) { str = str + 0x1393 + ","; } if (cbShippingModes.Checked) { str = str + 0x1394 + ","; } if (cbSaleTotalStatistics.Checked) { str = str + 0x139c + ","; } if (cbUserOrderStatistics.Checked) { str = str + 0x139d + ","; } if (cbSaleList.Checked) { str = str + 0x139e + ","; } if (cbSaleTargetAnalyse.Checked) { str = str + 0x139f + ","; } if (cbProductSaleRanking.Checked) { str = str + 0x13a0 + ","; } if (cbProductSaleStatistics.Checked) { str = str + 0x13a1 + ","; } if (cbGifts.Checked) { str = str + 0x1771 + ","; } if (cbPromoteSales.Checked) { str = str + 0x1772 + ","; } if (cbGroupBuy.Checked) { str = str + 0x1774 + ","; } if (cbCountDown.Checked) { str = str + 0x1775 + ","; } if (cbCoupons.Checked) { str = str + 0x1773 + ","; } if (cbProductConsultationsManage.Checked) { str = str + 0x1b59 + ","; } if (cbProductReviewsManage.Checked) { str = str + 0x1b5a + ","; } if (cbReceivedMessages.Checked) { str = str + 0x1b5b + ","; } if (cbSendedMessages.Checked) { str = str + 0x1b5c + ","; } if (cbSendMessage.Checked) { str = str + 0x1b5d + ","; } if (cbManageLeaveComments.Checked) { str = str + 0x1b5e + ","; } if (!string.IsNullOrEmpty(str)) { str = str.Substring(0, str.LastIndexOf(",")); } RoleHelper.AddPrivilegeInRoles(roleId, str); ManagerHelper.ClearRolePrivilege(roleId); }
private void PermissionsSet(Guid 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.cbFriendlyLinks.Checked) { str = str + 0x7d7 + ","; } if (this.cbManageThemes.Checked) { str = str + 0x7d1 + ","; } if (this.cbManageHotKeywords.Checked) { str = str + 0x7d8 + ","; } if (this.cbAfficheList.Checked) { str = str + 0x7d2 + ","; } if (this.cbHelpCategories.Checked) { str = str + 0x7d3 + ","; } if (this.cbHelpList.Checked) { str = str + 0x7d4 + ","; } if (this.cbArticleCategories.Checked) { str = str + 0x7d5 + ","; } if (this.cbArticleList.Checked) { str = str + 0x7d6 + ","; } if (this.cbEmailSettings.Checked) { str = str + 0x3ea + ","; } if (this.cbSMSSettings.Checked) { str = str + 0x3eb + ","; } if (this.cbMessageTemplets.Checked) { str = str + 0x3f0 + ","; } if (this.cbShippingTemplets.Checked) { str = str + 0x3ee + ","; } if (this.cbExpressComputerpes.Checked) { str = str + 0x3ef + ","; } if (this.cbPictureMange.Checked) { str = str + 0x3f1 + ","; } if (this.cbDistributorGradesView.Checked) { str = str + 0x1771 + ","; } if (this.cbDistributorGradesAdd.Checked) { str = str + 0x1772 + ","; } if (this.cbDistributorGradesEdit.Checked) { str = str + 0x1773 + ","; } if (this.cbDistributorGradesDelete.Checked) { str = str + 0x1774 + ","; } if (this.cbDistributorsView.Checked) { str = str + 0x1775 + ","; } if (this.cbDistributorsEdit.Checked) { str = str + 0x1776 + ","; } if (this.cbDistributorsDelete.Checked) { str = str + 0x1777 + ","; } if (this.cbDistributorsRequests.Checked) { str = str + 0x1778 + ","; } if (this.cbDistributorsRequestInstruction.Checked) { str = str + 0x1779 + ","; } if (this.cbDistributorAccount.Checked) { str = str + 0x232c + ","; } if (this.cbDistributorReCharge.Checked) { str = str + 0x232d + ","; } if (this.cbDistributorBalanceDrawRequest.Checked) { str = str + 0x232e + ","; } if (this.cbDistributionReport.Checked) { str = str + 0x271a + ","; } if (this.cbPurchaseOrderStatistics.Checked) { str = str + 0x271b + ","; } if (this.cbDistributionProductSaleRanking.Checked) { str = str + 0x18710 + ","; } if (this.cbDistributorAchievementsRanking.Checked) { str = str + 0x18711 + ","; } if (this.cbManageDistributorSites.Checked) { str = str + 0x177a + ","; } if (this.cbDistributorSiteRequests.Checked) { str = str + 0x177b + ","; } if (this.cbProductLinesView.Checked) { str = str + 0xbc5 + ","; } if (this.cbAddProductLine.Checked) { str = str + 0xbc6 + ","; } if (this.cbEditProductLine.Checked) { str = str + 0xbc7 + ","; } if (this.cbDeleteProductLine.Checked) { str = str + 0xbc8 + ","; } 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.cbPackProduct.Checked) { str = str + 0xbc0 + ","; } if (this.cbUpPackProduct.Checked) { str = str + 0xbc1 + ","; } 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.cbMakeProductsPack.Checked) { str = str + 0x177c + ","; } if (this.ckTaobaoNote.Checked) { str = str + 0x177d + ","; } if (this.cbDistributorSendedMsg.Checked) { str = str + 0x177e + ","; } if (this.cbDistributorAcceptMsg.Checked) { str = str + 0x177f + ","; } if (this.cbDistributorNewMsg.Checked) { str = str + 0x1780 + ","; } 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.cbBalanceDrawRequest.Checked) { str = str + 0x232b + ","; } if (this.cbAccountSummary.Checked) { str = str + 0x2329 + ","; } if (this.cbReCharge.Checked) { str = str + 0x232a + ","; } if (this.cbBalanceDetailsStatistics.Checked) { str = str + 0x1392 + ","; } if (this.cbBalanceDrawRequestStatistics.Checked) { str = str + 0x1393 + ","; } if (this.cbMemberArealDistributionStatistics.Checked) { str = str + 0x2718 + ","; } if (this.cbUserIncreaseStatistics.Checked) { str = str + 0x2719 + ","; } if (this.cbMemberRanking.Checked) { str = str + 0x2717 + ","; } if (this.cbOpenIdServices.Checked) { str = str + 0x1390 + ","; } if (this.cbOpenIdSettings.Checked) { str = str + 0x1391 + ","; } 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.cbManagePurchaseOrderView.Checked) { str = str + 0x2af9 + ","; } if (this.cbManagePurchaseOrderEdit.Checked) { str = str + 0x2afa + ","; } if (this.cbManagePurchaseOrderDelete.Checked) { str = str + 0x2afb + ","; } if (this.cbPurchaseOrderSendGoods.Checked) { str = str + 0x2afc + ","; } if (this.cbPurchaseOrderRemark.Checked) { str = str + 0x2afe + ","; } if (this.cbPurchaseOrderRefundApply.Checked) { str = str + 0x2aff + ","; } if (this.cbPurchaseOrderReturnsApply.Checked) { str = str + 0x2b01 + ","; } if (this.cbPurchaseOrderReplaceApply.Checked) { str = str + 0x2b00 + ","; } 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 (this.cbBundPromotion.Checked) { str = str + 0x1f44 + ","; } if (this.cbProductConsultationsManage.Checked) { str = str + 0x1b59 + ","; } if (this.cbProductReviewsManage.Checked) { str = str + 0x1b5a + ","; } if (this.cbReceivedMessages.Checked) { str = str + 0x1b5b + ","; } if (this.cbSendedMessages.Checked) { str = str + 0x1b5c + ","; } if (this.cbSendMessage.Checked) { str = str + 0x1b5d + ","; } if (this.cbManageLeaveComments.Checked) { str = str + 0x1b5e + ","; } if (!string.IsNullOrEmpty(str)) { str = str.Substring(0, str.LastIndexOf(",")); } RoleHelper.AddPrivilegeInRoles(roleId, str); ManagerHelper.ClearRolePrivilege(roleId); }
private void PermissionsSet(Guid roleId, string text) { RoleHelper.AddPrivilegeInRoles(roleId, text); ManagerHelper.ClearRolePrivilege(roleId); }