narsil/Tanshu.Accounts.Contracts/DisplayAttribute.cs
tanshu da929ad036 Breaking Change: Changed Kot/Voucher Table Name to Guid Foreign key
Breaking Change: Renamed Discontinued to IsActive and added NA field to products.
Cleanup: Removed not used attributes
Change: RoleConstants changed to simple string
Feature: Table Create/Edit/Reorder and Modifier Create/Edit Form
Feature: Bills now show the Tax name from the database and not a hack
2014-10-16 16:41:55 +05:30

19 lines
508 B
C#

using System;
namespace Tanshu.Accounts.Contracts
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class DisplayAttribute : Attribute
{
public DisplayAttribute(string name, bool showInChoices, int group)
{
Name = name;
ShowInChoices = showInChoices;
Group = group;
}
public string Name { get; set; }
public int Group { get; set; }
public bool ShowInChoices { get; set; }
}
}