Fixed a bug that caused the ModifyRecord form to crash on load if the cursor was over the top left hand header cell. Set a timeout for the restore SQL statement to hopefully prevent a timeout exception from being thrown. Minor code clean up.
This commit is contained in:
@@ -512,8 +512,7 @@ namespace AdvertsingProfitControl
|
||||
var adSpecialIndex = -1;
|
||||
decimal totalSales = 0;
|
||||
decimal totalProfitReturn = 0;
|
||||
var projections = db.Projections.Where(x => x.WeekEndingDate.Id == dateRecord.Id).Select(x => x).OrderBy(x => x.RowPosition);
|
||||
|
||||
var projections = db.Projections.Where(x => x.WeekEndingDate.Id == dateRecord.Id).Select(x => x).OrderBy(x => x.RowPosition);
|
||||
foreach (var p in projections)
|
||||
{
|
||||
projectionsDataGridView.Rows.Add();
|
||||
|
||||
Reference in New Issue
Block a user