Finished validation code for the cost analysis, weekly sales and taxable. Fixed a bug with the update flag not being set if an ID number was set. Wrote comment and weekly sales database writing functions; untested.

This commit is contained in:
2016-12-02 23:12:05 -06:00
parent 8dcc290aef
commit 6813bbb341
7 changed files with 315 additions and 25 deletions
+50 -11
View File
@@ -105,8 +105,11 @@
this.isTaxableDirtyCheckBox = new System.Windows.Forms.CheckBox();
this.isCostAnalysisDirtyCheckBox = new System.Windows.Forms.CheckBox();
this.clearFormFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.idButton = new System.Windows.Forms.Button();
this.generateCommentIdButton = new System.Windows.Forms.Button();
this.reminderLabel = new System.Windows.Forms.Label();
this.generateWeeklySalesIdButton = new System.Windows.Forms.Button();
this.generateTaxableIdButton = new System.Windows.Forms.Button();
this.generateCostAnalysisIdButton = new System.Windows.Forms.Button();
this.commentsGroupBox.SuspendLayout();
this.mainTabControl.SuspendLayout();
this.projectionTabPage.SuspendLayout();
@@ -857,8 +860,11 @@
//
// debugPanel
//
this.debugPanel.Controls.Add(this.generateCostAnalysisIdButton);
this.debugPanel.Controls.Add(this.generateTaxableIdButton);
this.debugPanel.Controls.Add(this.generateWeeklySalesIdButton);
this.debugPanel.Controls.Add(this.reminderLabel);
this.debugPanel.Controls.Add(this.idButton);
this.debugPanel.Controls.Add(this.generateCommentIdButton);
this.debugPanel.Controls.Add(this.isCostAnalysisDirtyCheckBox);
this.debugPanel.Controls.Add(this.isTaxableDirtyCheckBox);
this.debugPanel.Controls.Add(this.isWeeklySalesDirtyCheckBox);
@@ -915,15 +921,15 @@
this.clearFormFileMainMenu.Size = new System.Drawing.Size(240, 34);
this.clearFormFileMainMenu.Text = "&Clear Form";
//
// idButton
// generateCommentIdButton
//
this.idButton.Location = new System.Drawing.Point(54, 283);
this.idButton.Name = "idButton";
this.idButton.Size = new System.Drawing.Size(286, 62);
this.idButton.TabIndex = 4;
this.idButton.Text = "Create / Clear Comments ID";
this.idButton.UseVisualStyleBackColor = true;
this.idButton.Click += new System.EventHandler(this.idButton_Click);
this.generateCommentIdButton.Location = new System.Drawing.Point(54, 283);
this.generateCommentIdButton.Name = "generateCommentIdButton";
this.generateCommentIdButton.Size = new System.Drawing.Size(286, 62);
this.generateCommentIdButton.TabIndex = 4;
this.generateCommentIdButton.Text = "Create / Clear Comments ID";
this.generateCommentIdButton.UseVisualStyleBackColor = true;
this.generateCommentIdButton.Click += new System.EventHandler(this.idButton_Click);
//
// reminderLabel
//
@@ -934,6 +940,36 @@
this.reminderLabel.TabIndex = 5;
this.reminderLabel.Text = "These checkboxes Tag properties hold the ID for their respective elements.";
//
// generateWeeklySalesIdButton
//
this.generateWeeklySalesIdButton.Location = new System.Drawing.Point(346, 283);
this.generateWeeklySalesIdButton.Name = "generateWeeklySalesIdButton";
this.generateWeeklySalesIdButton.Size = new System.Drawing.Size(286, 62);
this.generateWeeklySalesIdButton.TabIndex = 6;
this.generateWeeklySalesIdButton.Text = "Create / Clear Weekly Sales ID";
this.generateWeeklySalesIdButton.UseVisualStyleBackColor = true;
this.generateWeeklySalesIdButton.Click += new System.EventHandler(this.generateWeeklySalesIdButton_Click);
//
// generateTaxableIdButton
//
this.generateTaxableIdButton.Location = new System.Drawing.Point(638, 283);
this.generateTaxableIdButton.Name = "generateTaxableIdButton";
this.generateTaxableIdButton.Size = new System.Drawing.Size(286, 62);
this.generateTaxableIdButton.TabIndex = 7;
this.generateTaxableIdButton.Text = "Create / Clear Taxable ID";
this.generateTaxableIdButton.UseVisualStyleBackColor = true;
this.generateTaxableIdButton.Click += new System.EventHandler(this.generateTaxableIdButton_Click);
//
// generateCostAnalysisIdButton
//
this.generateCostAnalysisIdButton.Location = new System.Drawing.Point(931, 283);
this.generateCostAnalysisIdButton.Name = "generateCostAnalysisIdButton";
this.generateCostAnalysisIdButton.Size = new System.Drawing.Size(299, 62);
this.generateCostAnalysisIdButton.TabIndex = 8;
this.generateCostAnalysisIdButton.Text = "Create / Clear Cost Analysis ID";
this.generateCostAnalysisIdButton.UseVisualStyleBackColor = true;
this.generateCostAnalysisIdButton.Click += new System.EventHandler(this.generateCostAnalysisIdButton_Click);
//
// NewAddRecord
//
this.AutoScaleDimensions = new System.Drawing.SizeF(168F, 168F);
@@ -1060,7 +1096,10 @@
private System.Windows.Forms.CheckBox isTaxableDirtyCheckBox;
private System.Windows.Forms.CheckBox isWeeklySalesDirtyCheckBox;
private System.Windows.Forms.CheckBox isCommentDirtyCheckBox;
private System.Windows.Forms.Button idButton;
private System.Windows.Forms.Button generateCommentIdButton;
private System.Windows.Forms.Label reminderLabel;
private System.Windows.Forms.Button generateCostAnalysisIdButton;
private System.Windows.Forms.Button generateTaxableIdButton;
private System.Windows.Forms.Button generateWeeklySalesIdButton;
}
}