Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        private void PermissionsSet(System.Guid roleId)
        {
            string text = string.Empty;

            if (this.cbSummary.Checked)
            {
                text = text + 1000 + ",";
            }
            if (this.cbSiteContent.Checked)
            {
                text = text + 1001 + ",";
            }
            if (this.cbVotes.Checked)
            {
                text = text + 2009 + ",";
            }
            if (this.cbFriendlyLinks.Checked)
            {
                text = text + 2007 + ",";
            }
            if (this.cbManageThemes.Checked)
            {
                text = text + 2001 + ",";
            }
            if (this.cbManageHotKeywords.Checked)
            {
                text = text + 2008 + ",";
            }
            if (this.cbAfficheList.Checked)
            {
                text = text + 2002 + ",";
            }
            if (this.cbHelpCategories.Checked)
            {
                text = text + 2003 + ",";
            }
            if (this.cbHelpList.Checked)
            {
                text = text + 2004 + ",";
            }
            if (this.cbArticleCategories.Checked)
            {
                text = text + 2005 + ",";
            }
            if (this.cbArticleList.Checked)
            {
                text = text + 2006 + ",";
            }
            if (this.cbEmailSettings.Checked)
            {
                text = text + 1002 + ",";
            }
            if (this.cbSMSSettings.Checked)
            {
                text = text + 1003 + ",";
            }
            if (this.cbMessageTemplets.Checked)
            {
                text = text + 1008 + ",";
            }
            if (this.cbShippingTemplets.Checked)
            {
                text = text + 1006 + ",";
            }
            if (this.cbExpressComputerpes.Checked)
            {
                text = text + 1007 + ",";
            }
            if (this.cbPictureMange.Checked)
            {
                text = text + 1009 + ",";
            }
            if (this.cbDistributorGradesView.Checked)
            {
                text = text + 6001 + ",";
            }
            if (this.cbDistributorGradesAdd.Checked)
            {
                text = text + 6002 + ",";
            }
            if (this.cbDistributorGradesEdit.Checked)
            {
                text = text + 6003 + ",";
            }
            if (this.cbDistributorGradesDelete.Checked)
            {
                text = text + 6004 + ",";
            }
            if (this.cbDistributorsView.Checked)
            {
                text = text + 6005 + ",";
            }
            if (this.cbDistributorsEdit.Checked)
            {
                text = text + 6006 + ",";
            }
            if (this.cbDistributorsDelete.Checked)
            {
                text = text + 6007 + ",";
            }
            if (this.cbDistributorsRequests.Checked)
            {
                text = text + 6008 + ",";
            }
            if (this.cbDistributorsRequestInstruction.Checked)
            {
                text = text + 6009 + ",";
            }
            if (this.cbDistributorAccount.Checked)
            {
                text = text + 9004 + ",";
            }
            if (this.cbDistributorReCharge.Checked)
            {
                text = text + 9005 + ",";
            }
            if (this.cbDistributorBalanceDrawRequest.Checked)
            {
                text = text + 9006 + ",";
            }
            if (this.cbDistributionReport.Checked)
            {
                text = text + 10010 + ",";
            }
            if (this.cbPurchaseOrderStatistics.Checked)
            {
                text = text + 10011 + ",";
            }
            if (this.cbDistributionProductSaleRanking.Checked)
            {
                text = text + 100112 + ",";
            }
            if (this.cbDistributorAchievementsRanking.Checked)
            {
                text = text + 100113 + ",";
            }
            if (this.cbManageDistributorSites.Checked)
            {
                text = text + 6010 + ",";
            }
            if (this.cbDistributorSiteRequests.Checked)
            {
                text = text + 6011 + ",";
            }
            if (this.cbProductLinesView.Checked)
            {
                text = text + 3013 + ",";
            }
            if (this.cbAddProductLine.Checked)
            {
                text = text + 3014 + ",";
            }
            if (this.cbEditProductLine.Checked)
            {
                text = text + 3015 + ",";
            }
            if (this.cbDeleteProductLine.Checked)
            {
                text = text + 3016 + ",";
            }
            if (this.cbProductTypesView.Checked)
            {
                text = text + 3017 + ",";
            }
            if (this.cbProductTypesAdd.Checked)
            {
                text = text + 3018 + ",";
            }
            if (this.cbProductTypesEdit.Checked)
            {
                text = text + 3019 + ",";
            }
            if (this.cbProductTypesDelete.Checked)
            {
                text = text + 3020 + ",";
            }
            if (this.cbManageCategoriesView.Checked)
            {
                text = text + 3021 + ",";
            }
            if (this.cbManageCategoriesAdd.Checked)
            {
                text = text + 3022 + ",";
            }
            if (this.cbManageCategoriesEdit.Checked)
            {
                text = text + 3023 + ",";
            }
            if (this.cbManageCategoriesDelete.Checked)
            {
                text = text + 3024 + ",";
            }
            if (this.cbBrandCategories.Checked)
            {
                text = text + 3025 + ",";
            }
            if (this.cbManageProductsView.Checked)
            {
                text = text + 3001 + ",";
            }
            if (this.cbManageProductsAdd.Checked)
            {
                text = text + 3002 + ",";
            }
            if (this.cbManageProductsEdit.Checked)
            {
                text = text + 3003 + ",";
            }
            if (this.cbManageProductsDelete.Checked)
            {
                text = text + 3004 + ",";
            }
            if (this.cbInStock.Checked)
            {
                text = text + 3005 + ",";
            }
            if (this.cbManageProductsUp.Checked)
            {
                text = text + 3006 + ",";
            }
            if (this.cbManageProductsDown.Checked)
            {
                text = text + 3007 + ",";
            }
            if (this.cbPackProduct.Checked)
            {
                text = text + 3008 + ",";
            }
            if (this.cbUpPackProduct.Checked)
            {
                text = text + 3009 + ",";
            }
            if (this.cbProductUnclassified.Checked)
            {
                text = text + 3010 + ",";
            }
            if (this.cbProductBatchUpload.Checked)
            {
                text = text + 3012 + ",";
            }
            if (this.cbProductBatchExport.Checked)
            {
                text = text + 3026 + ",";
            }
            if (this.cbSubjectProducts.Checked)
            {
                text = text + 3011 + ",";
            }
            if (this.cbMakeProductsPack.Checked)
            {
                text = text + 6012 + ",";
            }
            if (this.ckTaobaoNote.Checked)
            {
                text = text + 6013 + ",";
            }
            if (this.cbDistributorSendedMsg.Checked)
            {
                text = text + 6014 + ",";
            }
            if (this.cbDistributorAcceptMsg.Checked)
            {
                text = text + 6015 + ",";
            }
            if (this.cbDistributorNewMsg.Checked)
            {
                text = text + 6016 + ",";
            }
            if (this.cbClientGroup.Checked)
            {
                text = text + 7007 + ",";
            }
            if (this.cbClientNew.Checked)
            {
                text = text + 7008 + ",";
            }
            if (this.cbClientSleep.Checked)
            {
                text = text + 7010 + ",";
            }
            if (this.cbClientActivy.Checked)
            {
                text = text + 7009 + ",";
            }
            if (this.cbMemberRanksView.Checked)
            {
                text = text + 5004 + ",";
            }
            if (this.cbMemberRanksAdd.Checked)
            {
                text = text + 5005 + ",";
            }
            if (this.cbMemberRanksEdit.Checked)
            {
                text = text + 5006 + ",";
            }
            if (this.cbMemberRanksDelete.Checked)
            {
                text = text + 5007 + ",";
            }
            if (this.cbManageMembersView.Checked)
            {
                text = text + 5001 + ",";
            }
            if (this.cbManageMembersEdit.Checked)
            {
                text = text + 5002 + ",";
            }
            if (this.cbManageMembersDelete.Checked)
            {
                text = text + 5003 + ",";
            }
            if (this.cbBalanceDrawRequest.Checked)
            {
                text = text + 9003 + ",";
            }
            if (this.cbAccountSummary.Checked)
            {
                text = text + 9001 + ",";
            }
            if (this.cbReCharge.Checked)
            {
                text = text + 9002 + ",";
            }
            if (this.cbBalanceDetailsStatistics.Checked)
            {
                text = text + 5010 + ",";
            }
            if (this.cbBalanceDrawRequestStatistics.Checked)
            {
                text = text + 5011 + ",";
            }
            if (this.cbMemberArealDistributionStatistics.Checked)
            {
                text = text + 10008 + ",";
            }
            if (this.cbUserIncreaseStatistics.Checked)
            {
                text = text + 10009 + ",";
            }
            if (this.cbMemberRanking.Checked)
            {
                text = text + 10007 + ",";
            }
            if (this.cbOpenIdServices.Checked)
            {
                text = text + 5008 + ",";
            }
            if (this.cbOpenIdSettings.Checked)
            {
                text = text + 5009 + ",";
            }
            if (this.cbManageOrderView.Checked)
            {
                text = text + 4001 + ",";
            }
            if (this.cbManageOrderDelete.Checked)
            {
                text = text + 4002 + ",";
            }
            if (this.cbManageOrderEdit.Checked)
            {
                text = text + 4003 + ",";
            }
            if (this.cbManageOrderConfirm.Checked)
            {
                text = text + 4004 + ",";
            }
            if (this.cbManageOrderSendedGoods.Checked)
            {
                text = text + 4005 + ",";
            }
            if (this.cbExpressPrint.Checked)
            {
                text = text + 4006 + ",";
            }
            if (this.cbExpressTemplates.Checked)
            {
                text = text + 4009 + ",";
            }
            if (this.cbShipper.Checked)
            {
                text = text + 4010 + ",";
            }
            if (this.cbPaymentModes.Checked)
            {
                text = text + 1004 + ",";
            }
            if (this.cbShippingModes.Checked)
            {
                text = text + 1005 + ",";
            }
            if (this.cbSaleTotalStatistics.Checked)
            {
                text = text + 10001 + ",";
            }
            if (this.cbUserOrderStatistics.Checked)
            {
                text = text + 10002 + ",";
            }
            if (this.cbSaleList.Checked)
            {
                text = text + 10003 + ",";
            }
            if (this.cbSaleTargetAnalyse.Checked)
            {
                text = text + 10004 + ",";
            }
            if (this.cbProductSaleRanking.Checked)
            {
                text = text + 10005 + ",";
            }
            if (this.cbProductSaleStatistics.Checked)
            {
                text = text + 10006 + ",";
            }
            if (this.cbOrderRefundApply.Checked)
            {
                text = text + 4012 + ",";
            }
            if (this.cbOrderReplaceApply.Checked)
            {
                text = text + 4013 + ",";
            }
            if (this.cbOrderReturnsApply.Checked)
            {
                text = text + 4014 + ",";
            }
            if (this.cbManagePurchaseOrderView.Checked)
            {
                text = text + 11001 + ",";
            }
            if (this.cbManagePurchaseOrderEdit.Checked)
            {
                text = text + 11002 + ",";
            }
            if (this.cbManagePurchaseOrderDelete.Checked)
            {
                text = text + 11003 + ",";
            }
            if (this.cbPurchaseOrderSendGoods.Checked)
            {
                text = text + 11004 + ",";
            }
            if (this.cbPurchaseOrderRemark.Checked)
            {
                text = text + 11006 + ",";
            }
            if (this.cbPurchaseOrderRefundApply.Checked)
            {
                text = text + 11007 + ",";
            }
            if (this.cbPurchaseOrderReturnsApply.Checked)
            {
                text = text + 11009 + ",";
            }
            if (this.cbPurchaseOrderReplaceApply.Checked)
            {
                text = text + 11008 + ",";
            }
            if (this.cbGifts.Checked)
            {
                text = text + 8001 + ",";
            }
            if (this.cbGroupBuy.Checked)
            {
                text = text + 8005 + ",";
            }
            if (this.cbCountDown.Checked)
            {
                text = text + 8006 + ",";
            }
            if (this.cbCoupons.Checked)
            {
                text = text + 8007 + ",";
            }
            if (this.cbProductPromotion.Checked)
            {
                text = text + 8002 + ",";
            }
            if (this.cbOrderPromotion.Checked)
            {
                text = text + 8003 + ",";
            }
            if (this.cbBundPromotion.Checked)
            {
                text = text + 8004 + ",";
            }
            if (this.cbProductConsultationsManage.Checked)
            {
                text = text + 7001 + ",";
            }
            if (this.cbProductReviewsManage.Checked)
            {
                text = text + 7002 + ",";
            }
            if (this.cbReceivedMessages.Checked)
            {
                text = text + 7003 + ",";
            }
            if (this.cbSendedMessages.Checked)
            {
                text = text + 7004 + ",";
            }
            if (this.cbSendMessage.Checked)
            {
                text = text + 7005 + ",";
            }
            if (this.cbManageLeaveComments.Checked)
            {
                text = text + 7006 + ",";
            }
            if (!string.IsNullOrEmpty(text))
            {
                text = text.Substring(0, text.LastIndexOf(","));
            }
            Hidistro.Membership.Core.RoleHelper.AddPrivilegeInRoles(roleId, text);
            ManagerHelper.ClearRolePrivilege(roleId);
        }
Example #5
0
        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);
        }
Example #6
0
 private void PermissionsSet(Guid roleId, string text)
 {
     RoleHelper.AddPrivilegeInRoles(roleId, text);
     ManagerHelper.ClearRolePrivilege(roleId);
 }