2011-01-06 07:17:00 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Contracts
|
|
|
|
|
{
|
2011-02-09 12:03:22 +00:00
|
|
|
|
public sealed class RoleConstants
|
2011-01-06 07:17:00 +00:00
|
|
|
|
{
|
2011-02-09 12:03:22 +00:00
|
|
|
|
private readonly string role;
|
|
|
|
|
private RoleConstants(string role)
|
|
|
|
|
{
|
|
|
|
|
this.role = role;
|
|
|
|
|
}
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return role;
|
|
|
|
|
}
|
|
|
|
|
public string Role
|
|
|
|
|
{
|
|
|
|
|
get { return role; }
|
|
|
|
|
}
|
|
|
|
|
public static RoleConstants ADJUST_ADVANCE = new RoleConstants("Sales/AdjustAdvance");
|
|
|
|
|
public static RoleConstants RECEIVE_ADVANCE = new RoleConstants("Sales/ReceiveAdvance");
|
|
|
|
|
public static RoleConstants CHANGE_RATE = new RoleConstants("Sales/ChangeRate");
|
|
|
|
|
public static RoleConstants CASHIER_CHECKOUT = new RoleConstants("Sales/CashierCheckout");
|
|
|
|
|
public static RoleConstants CUSTOMERS = new RoleConstants("Sales/Customers");
|
|
|
|
|
public static RoleConstants DISCOUNT = new RoleConstants("Sales/Discount");
|
|
|
|
|
public static RoleConstants EDIT_PRINTED_BILL = new RoleConstants("Sales/EditBill");
|
|
|
|
|
public static RoleConstants EDIT_PRINTED_PRODUCT = new RoleConstants("Sales/EditPrintedProduct");
|
|
|
|
|
public static RoleConstants PRINT_BILL = new RoleConstants("Sales/PrintBill");
|
|
|
|
|
public static RoleConstants PRINT_KOT = new RoleConstants("Sales/PrintKOT");
|
|
|
|
|
public static RoleConstants SALES = new RoleConstants("Sales/SalesBill");
|
|
|
|
|
public static RoleConstants SALE_ANALYSIS = new RoleConstants("Sales/SaleAnalysis");
|
|
|
|
|
public static RoleConstants SALE_DETAIL = new RoleConstants("Sales/SaleDetail");
|
|
|
|
|
public static RoleConstants VOID_BILL = new RoleConstants("Sales/VoidPrintedBill");
|
|
|
|
|
public static RoleConstants ZERO_RATE = new RoleConstants("Sales/ZeroRate");
|
|
|
|
|
public static RoleConstants SETTLE_BILL = new RoleConstants("Sales/SettleBill");
|
2011-01-10 19:49:11 +00:00
|
|
|
|
|
2011-02-09 12:03:22 +00:00
|
|
|
|
public static RoleConstants PRODUCTS = new RoleConstants("Master/Products");
|
2011-01-10 19:49:11 +00:00
|
|
|
|
|
2011-02-09 12:03:22 +00:00
|
|
|
|
public static RoleConstants SECURITY_MANAGE_USERS = new RoleConstants("Security/ManageUsers");
|
|
|
|
|
public static RoleConstants SECURITY_MANAGE_ROLES = new RoleConstants("Security/ManageRoles");
|
|
|
|
|
public static RoleConstants LOG_VIEW = new RoleConstants("Log/View");
|
|
|
|
|
public static RoleConstants MASTER_OWNER = new RoleConstants("Master/Owner");
|
2011-01-10 19:49:11 +00:00
|
|
|
|
|
2011-01-06 07:17:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|