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");
|
2011-02-18 16:54:48 +00:00
|
|
|
|
public static RoleConstants MERGE_TABLE = new RoleConstants("Sales/MergeTable");
|
|
|
|
|
public static RoleConstants MOVE_TABLE = new RoleConstants("Sales/MoveTable");
|
|
|
|
|
public static RoleConstants MERGE_KOT = new RoleConstants("Sales/MergeKot");
|
|
|
|
|
public static RoleConstants MOVE_KOT = new RoleConstants("Sales/MoveKot");
|
2011-06-23 12:47:48 +00:00
|
|
|
|
public static RoleConstants OPEN_BILL = new RoleConstants("Sales/OpenBill");
|
2011-02-09 12:03:22 +00:00
|
|
|
|
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");
|
2011-08-28 12:17:15 +00:00
|
|
|
|
|
2011-12-05 09:41:02 +00:00
|
|
|
|
public static RoleConstants DISCOUNT_REPORT = new RoleConstants("Discount Report");
|
2011-08-28 12:17:15 +00:00
|
|
|
|
public static RoleConstants VOID_OR_REPRINTED_BILL_REPORT = new RoleConstants("Void or Reprinted Bill Report");
|
2011-06-23 12:47:48 +00:00
|
|
|
|
public static RoleConstants BILL_DETAILS = new RoleConstants("Sales/BillDetails");
|
2011-02-09 12:03:22 +00:00
|
|
|
|
public static RoleConstants SALE_ANALYSIS = new RoleConstants("Sales/SaleAnalysis");
|
|
|
|
|
public static RoleConstants SALE_DETAIL = new RoleConstants("Sales/SaleDetail");
|
2011-12-05 09:41:02 +00:00
|
|
|
|
public static RoleConstants ACCOUNTS_AUDIT = new RoleConstants("Accounts Audit");
|
2011-08-28 12:17:15 +00:00
|
|
|
|
|
2011-08-23 07:10:05 +00:00
|
|
|
|
public static RoleConstants SPLIT_BILL = new RoleConstants("Split Bill");
|
2011-02-09 12:03:22 +00:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|