narsil/Tanshu.Accounts.Contracts/RolesConstants.cs
unknown d8ecec8bb6 Added inverse Attribute to ProductGroup.
BillInventory Renamed.
Refactored Bill to be more usable.
Added Bill Detail Report.
Added Open Bill and Bill Details Roles.
Zero Rate Products have Yellow background Color.
Refactored UserBI, FoodTableBI, ModifierBI, PrintLocationBI, ProductBI, ProductGroupBI, TaxBI, UserBI,
Cached the Products List.
Product and Product Group Form Working.
2011-06-23 18:17:48 +05:30

55 lines
2.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tanshu.Accounts.Contracts
{
public sealed class RoleConstants
{
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 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");
public static RoleConstants OPEN_BILL = new RoleConstants("Sales/OpenBill");
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 BILL_DETAILS = new RoleConstants("Sales/BillDetails");
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");
public static RoleConstants PRODUCTS = new RoleConstants("Master/Products");
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");
}
}