Numpad User Control and Login Changes

This commit is contained in:
unknown
2011-01-06 12:47:00 +05:30
parent 232a62f8ca
commit e32e9f9e74
47 changed files with 1536 additions and 714 deletions

View File

@ -20,7 +20,7 @@ namespace Tanshu.Accounts.PointOfSale
private void btnGo_Click(object sender, EventArgs e)
{
if (!Thread.CurrentPrincipal.IsInRole("Security/CreateUser"))
if (!Thread.CurrentPrincipal.IsInRole("Master/Owner"))
return;
dtpFrom.Value = Convert.ToDateTime(string.Format("{0:dd-MMM-yyyy} 00:00:00", dtpFrom.Value));
dtpTo.Value = Convert.ToDateTime(string.Format("{0:dd-MMM-yyyy} 23:59:59", dtpTo.Value));

View File

@ -71,7 +71,7 @@ namespace Tanshu.Accounts.PointOfSale
{
DateTime startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
DateTime finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
Tanshu.Accounts.Print.Thermal.PrintSale(det, startDate, finishDate);
Tanshu.Accounts.Print.Thermal.PrintSale(Session.printer(), Session.User.Name, det, startDate, finishDate);
}
}
}