Added dirty flags to the comments, cost analysis, weekly sales and taxable, as well as formatting, validation and auto summing for the latter two. The Tag properties of the check boxes for the dirty flags will contain the IDs.

This commit is contained in:
2016-12-02 18:45:31 -06:00
parent 1907ce1702
commit 8dcc290aef
11 changed files with 473 additions and 127 deletions
+53 -16
View File
@@ -61,7 +61,7 @@
this.perfectGrossProfitLabel = new System.Windows.Forms.Label();
this.grossProfitTotalSales = new System.Windows.Forms.Label();
this.grossProfitLessCostOfSales = new System.Windows.Forms.Label();
this.taxableGroupBox = new System.Windows.Forms.GroupBox();
this.costAnalysisGroupBox = new System.Windows.Forms.GroupBox();
this.usePreRenderedFilesCheckbox = new System.Windows.Forms.CheckBox();
this.dateSelectorPanel = new System.Windows.Forms.Panel();
this.printPreviewButton = new System.Windows.Forms.Button();
@@ -81,13 +81,15 @@
this.suppliersDataGridView = new System.Windows.Forms.DataGridView();
this.WeeklySalesTabPage = new System.Windows.Forms.TabPage();
this.weeklySalesDataGridView = new System.Windows.Forms.DataGridView();
this.taxableTabPage = new System.Windows.Forms.TabPage();
this.taxableDataGridView = new System.Windows.Forms.DataGridView();
this.mainTableLayoutPanel.SuspendLayout();
this.mainMenu.SuspendLayout();
this.commentMainTableLayoutPanel.SuspendLayout();
this.commentMainGroupBox.SuspendLayout();
this.profitAnalysisMainGroupBox.SuspendLayout();
this.grossProfitGroupBox.SuspendLayout();
this.taxableGroupBox.SuspendLayout();
this.costAnalysisGroupBox.SuspendLayout();
this.dateSelectorPanel.SuspendLayout();
this.mainViewTabControl.SuspendLayout();
this.projectionTab.SuspendLayout();
@@ -101,6 +103,8 @@
((System.ComponentModel.ISupportInitialize)(this.suppliersDataGridView)).BeginInit();
this.WeeklySalesTabPage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.weeklySalesDataGridView)).BeginInit();
this.taxableTabPage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.taxableDataGridView)).BeginInit();
this.SuspendLayout();
//
// mainTableLayoutPanel
@@ -246,7 +250,7 @@
this.commentMainTableLayoutPanel.Controls.Add(this.commentMainGroupBox, 0, 0);
this.commentMainTableLayoutPanel.Controls.Add(this.profitAnalysisMainGroupBox, 1, 0);
this.commentMainTableLayoutPanel.Controls.Add(this.grossProfitGroupBox, 2, 0);
this.commentMainTableLayoutPanel.Controls.Add(this.taxableGroupBox, 3, 0);
this.commentMainTableLayoutPanel.Controls.Add(this.costAnalysisGroupBox, 3, 0);
this.commentMainTableLayoutPanel.Controls.Add(this.dateSelectorPanel, 2, 1);
this.commentMainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.commentMainTableLayoutPanel.Location = new System.Drawing.Point(5, 600);
@@ -440,16 +444,16 @@
this.grossProfitLessCostOfSales.TabIndex = 1;
this.grossProfitLessCostOfSales.Text = "Less Cost of Sales: ";
//
// taxableGroupBox
// costAnalysisGroupBox
//
this.taxableGroupBox.Controls.Add(this.usePreRenderedFilesCheckbox);
this.taxableGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.taxableGroupBox.Location = new System.Drawing.Point(1277, 3);
this.taxableGroupBox.Name = "taxableGroupBox";
this.taxableGroupBox.Size = new System.Drawing.Size(444, 222);
this.taxableGroupBox.TabIndex = 3;
this.taxableGroupBox.TabStop = false;
this.taxableGroupBox.Text = "Taxable";
this.costAnalysisGroupBox.Controls.Add(this.usePreRenderedFilesCheckbox);
this.costAnalysisGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.costAnalysisGroupBox.Location = new System.Drawing.Point(1277, 3);
this.costAnalysisGroupBox.Name = "costAnalysisGroupBox";
this.costAnalysisGroupBox.Size = new System.Drawing.Size(444, 222);
this.costAnalysisGroupBox.TabIndex = 3;
this.costAnalysisGroupBox.TabStop = false;
this.costAnalysisGroupBox.Text = "Cost Analysis";
//
// usePreRenderedFilesCheckbox
//
@@ -460,6 +464,7 @@
this.usePreRenderedFilesCheckbox.TabIndex = 5;
this.usePreRenderedFilesCheckbox.Text = "Use Pre-rendered Files";
this.usePreRenderedFilesCheckbox.UseVisualStyleBackColor = true;
this.usePreRenderedFilesCheckbox.Visible = false;
//
// dateSelectorPanel
//
@@ -483,6 +488,7 @@
this.printPreviewButton.TabIndex = 4;
this.printPreviewButton.Text = "Print Preview";
this.printPreviewButton.UseVisualStyleBackColor = true;
this.printPreviewButton.Visible = false;
this.printPreviewButton.Click += new System.EventHandler(this.DisplayPrintPreview);
//
// yearComboBox
@@ -528,6 +534,7 @@
this.mainViewTabControl.Controls.Add(this.actualSalesTab);
this.mainViewTabControl.Controls.Add(this.suppliersTabPage);
this.mainViewTabControl.Controls.Add(this.WeeklySalesTabPage);
this.mainViewTabControl.Controls.Add(this.taxableTabPage);
this.mainViewTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainViewTabControl.Location = new System.Drawing.Point(5, 47);
this.mainViewTabControl.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
@@ -701,9 +708,35 @@
this.weeklySalesDataGridView.Size = new System.Drawing.Size(1706, 492);
this.weeklySalesDataGridView.TabIndex = 0;
//
// taxableTabPage
//
this.taxableTabPage.Controls.Add(this.taxableDataGridView);
this.taxableTabPage.Location = new System.Drawing.Point(4, 33);
this.taxableTabPage.Name = "taxableTabPage";
this.taxableTabPage.Padding = new System.Windows.Forms.Padding(3);
this.taxableTabPage.Size = new System.Drawing.Size(1716, 504);
this.taxableTabPage.TabIndex = 5;
this.taxableTabPage.Text = "Taxable";
this.taxableTabPage.UseVisualStyleBackColor = true;
//
// taxableDataGridView
//
this.taxableDataGridView.AllowUserToAddRows = false;
this.taxableDataGridView.AllowUserToDeleteRows = false;
this.taxableDataGridView.AllowUserToResizeRows = false;
this.taxableDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.taxableDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.taxableDataGridView.Location = new System.Drawing.Point(3, 3);
this.taxableDataGridView.Name = "taxableDataGridView";
this.taxableDataGridView.ReadOnly = true;
this.taxableDataGridView.RowTemplate.Height = 31;
this.taxableDataGridView.Size = new System.Drawing.Size(1710, 498);
this.taxableDataGridView.TabIndex = 0;
//
// FrmMain
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoScaleDimensions = new System.Drawing.SizeF(168F, 168F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(1734, 892);
this.Controls.Add(this.mainTableLayoutPanel);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@@ -724,8 +757,8 @@
this.profitAnalysisMainGroupBox.PerformLayout();
this.grossProfitGroupBox.ResumeLayout(false);
this.grossProfitGroupBox.PerformLayout();
this.taxableGroupBox.ResumeLayout(false);
this.taxableGroupBox.PerformLayout();
this.costAnalysisGroupBox.ResumeLayout(false);
this.costAnalysisGroupBox.PerformLayout();
this.dateSelectorPanel.ResumeLayout(false);
this.dateSelectorPanel.PerformLayout();
this.mainViewTabControl.ResumeLayout(false);
@@ -740,6 +773,8 @@
((System.ComponentModel.ISupportInitialize)(this.suppliersDataGridView)).EndInit();
this.WeeklySalesTabPage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.weeklySalesDataGridView)).EndInit();
this.taxableTabPage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.taxableDataGridView)).EndInit();
this.ResumeLayout(false);
}
@@ -774,7 +809,7 @@
private System.Windows.Forms.DataGridView weeklySalesDataGridView;
private System.Windows.Forms.ToolStripMenuItem helpMainMenu;
private System.Windows.Forms.ToolStripMenuItem showHideConsoleHelpMainMenu;
private System.Windows.Forms.GroupBox taxableGroupBox;
private System.Windows.Forms.GroupBox costAnalysisGroupBox;
private System.Windows.Forms.Label grossProfitEstimatedWeeklyDeptmartmentExpenseLabel;
private System.Windows.Forms.Label perfectGrossProfitLabel;
private System.Windows.Forms.Label grossProfitDollarGrossProfitLabel;
@@ -798,6 +833,8 @@
private System.Windows.Forms.CheckBox usePreRenderedFilesCheckbox;
private System.Windows.Forms.ToolStripMenuItem newFormTestToolStripMenuItem;
private System.Windows.Forms.LinkLabel shrinkLinkLabel;
private System.Windows.Forms.TabPage taxableTabPage;
private System.Windows.Forms.DataGridView taxableDataGridView;
}
}