Feature: Added a Tax Management form and a beer consumption report.

Chore: Fixed some Form_Load function names as they were copied from old forms and were not neat.
Feature: Management BI Improved and should be pretty much solid by now.
This commit is contained in:
tanshu
2016-07-04 11:51:39 +05:30
parent 09a8b546cf
commit 5e64209b76
41 changed files with 1360 additions and 56 deletions

View File

@ -34,7 +34,7 @@ namespace Tanshu.Accounts.Management
bwExcel.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bwExcel_RunWorkerCompleted);
}
private void Sale_Analysis_Form_Load(object sender, EventArgs e)
private void ManagementForm_Load(object sender, EventArgs e)
{
dtpStart.Value = DateTime.Today;
dtpFinish.Value = DateTime.Today;
@ -179,6 +179,13 @@ namespace Tanshu.Accounts.Management
e.Cancel = true;
return;
}
bi.IncreaseLiqIfLess(item.Sale.Where(x=>x.IsLiq).ToList(), startDate, finishDate);
bwGo.ReportProgress(++count, "Sale Done");
if (bwGo.CancellationPending == true)
{
e.Cancel = true;
return;
}
bi.SaveChanges();
}
bwGo.ReportProgress(++count, "Cleanup done");

View File

@ -133,7 +133,7 @@
this.Name = "ManagementForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Sale Analysis Form";
this.Load += new System.EventHandler(this.Sale_Analysis_Form_Load);
this.Load += new System.EventHandler(this.ManagementForm_Load);
this.ResumeLayout(false);
this.PerformLayout();