Fixed a bug where the row row would get reported as the last row processed in all the database insert and update methods. Fixed a bug where the NewRow would get set as dirty if an ad special row was renamed with no members in it. Sales table compression and database methods tested and working.
This commit is contained in:
+31
-34
@@ -126,11 +126,11 @@
|
||||
//
|
||||
this.commentsGroupBox.Controls.Add(this.commentsTextBox);
|
||||
this.commentsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.commentsGroupBox.Location = new System.Drawing.Point(423, 594);
|
||||
this.commentsGroupBox.Location = new System.Drawing.Point(473, 594);
|
||||
this.commentsGroupBox.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.commentsGroupBox.Name = "commentsGroupBox";
|
||||
this.commentsGroupBox.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.commentsGroupBox.Size = new System.Drawing.Size(411, 223);
|
||||
this.commentsGroupBox.Size = new System.Drawing.Size(461, 223);
|
||||
this.commentsGroupBox.TabIndex = 2;
|
||||
this.commentsGroupBox.TabStop = false;
|
||||
this.commentsGroupBox.Text = "Comments";
|
||||
@@ -142,7 +142,7 @@
|
||||
this.commentsTextBox.MaxLength = 256;
|
||||
this.commentsTextBox.Multiline = true;
|
||||
this.commentsTextBox.Name = "commentsTextBox";
|
||||
this.commentsTextBox.Size = new System.Drawing.Size(403, 193);
|
||||
this.commentsTextBox.Size = new System.Drawing.Size(453, 193);
|
||||
this.commentsTextBox.TabIndex = 4;
|
||||
//
|
||||
// mainTabControl
|
||||
@@ -158,7 +158,7 @@
|
||||
this.mainTabControl.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.mainTabControl.Name = "mainTabControl";
|
||||
this.mainTabControl.SelectedIndex = 0;
|
||||
this.mainTabControl.Size = new System.Drawing.Size(1668, 547);
|
||||
this.mainTabControl.Size = new System.Drawing.Size(1868, 547);
|
||||
this.mainTabControl.TabIndex = 1;
|
||||
this.mainTabControl.TabStop = false;
|
||||
//
|
||||
@@ -168,7 +168,7 @@
|
||||
this.projectionTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.projectionTabPage.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.projectionTabPage.Name = "projectionTabPage";
|
||||
this.projectionTabPage.Size = new System.Drawing.Size(1660, 510);
|
||||
this.projectionTabPage.Size = new System.Drawing.Size(1860, 510);
|
||||
this.projectionTabPage.TabIndex = 0;
|
||||
this.projectionTabPage.Text = "Projected Sales";
|
||||
this.projectionTabPage.UseVisualStyleBackColor = true;
|
||||
@@ -186,7 +186,7 @@
|
||||
this.projectionsDataGridView.MultiSelect = false;
|
||||
this.projectionsDataGridView.Name = "projectionsDataGridView";
|
||||
this.projectionsDataGridView.RowTemplate.Height = 28;
|
||||
this.projectionsDataGridView.Size = new System.Drawing.Size(1660, 510);
|
||||
this.projectionsDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.projectionsDataGridView.TabIndex = 2;
|
||||
//
|
||||
// inventoryTabPage
|
||||
@@ -195,7 +195,7 @@
|
||||
this.inventoryTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.inventoryTabPage.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.inventoryTabPage.Name = "inventoryTabPage";
|
||||
this.inventoryTabPage.Size = new System.Drawing.Size(1660, 510);
|
||||
this.inventoryTabPage.Size = new System.Drawing.Size(1860, 510);
|
||||
this.inventoryTabPage.TabIndex = 1;
|
||||
this.inventoryTabPage.Text = "Inventory";
|
||||
this.inventoryTabPage.UseVisualStyleBackColor = true;
|
||||
@@ -213,7 +213,7 @@
|
||||
this.inventoryDataGridView.MultiSelect = false;
|
||||
this.inventoryDataGridView.Name = "inventoryDataGridView";
|
||||
this.inventoryDataGridView.RowTemplate.Height = 28;
|
||||
this.inventoryDataGridView.Size = new System.Drawing.Size(1660, 510);
|
||||
this.inventoryDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.inventoryDataGridView.TabIndex = 1;
|
||||
//
|
||||
// actualSalesTabPage
|
||||
@@ -222,7 +222,7 @@
|
||||
this.actualSalesTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.actualSalesTabPage.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.actualSalesTabPage.Name = "actualSalesTabPage";
|
||||
this.actualSalesTabPage.Size = new System.Drawing.Size(1660, 510);
|
||||
this.actualSalesTabPage.Size = new System.Drawing.Size(1860, 510);
|
||||
this.actualSalesTabPage.TabIndex = 2;
|
||||
this.actualSalesTabPage.Text = "Actual Sales";
|
||||
this.actualSalesTabPage.UseVisualStyleBackColor = true;
|
||||
@@ -240,7 +240,7 @@
|
||||
this.actualSalesDataGridView.MultiSelect = false;
|
||||
this.actualSalesDataGridView.Name = "actualSalesDataGridView";
|
||||
this.actualSalesDataGridView.RowTemplate.Height = 28;
|
||||
this.actualSalesDataGridView.Size = new System.Drawing.Size(1660, 510);
|
||||
this.actualSalesDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.actualSalesDataGridView.TabIndex = 1;
|
||||
//
|
||||
// invoicesTabPage
|
||||
@@ -249,7 +249,7 @@
|
||||
this.invoicesTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.invoicesTabPage.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.invoicesTabPage.Name = "invoicesTabPage";
|
||||
this.invoicesTabPage.Size = new System.Drawing.Size(1660, 510);
|
||||
this.invoicesTabPage.Size = new System.Drawing.Size(1860, 510);
|
||||
this.invoicesTabPage.TabIndex = 3;
|
||||
this.invoicesTabPage.Text = "Invoices";
|
||||
this.invoicesTabPage.UseVisualStyleBackColor = true;
|
||||
@@ -267,7 +267,7 @@
|
||||
this.invoicesDataGridView.MultiSelect = false;
|
||||
this.invoicesDataGridView.Name = "invoicesDataGridView";
|
||||
this.invoicesDataGridView.RowTemplate.Height = 28;
|
||||
this.invoicesDataGridView.Size = new System.Drawing.Size(1660, 510);
|
||||
this.invoicesDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.invoicesDataGridView.TabIndex = 1;
|
||||
//
|
||||
// debugTabPage
|
||||
@@ -275,7 +275,7 @@
|
||||
this.debugTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.debugTabPage.Name = "debugTabPage";
|
||||
this.debugTabPage.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.debugTabPage.Size = new System.Drawing.Size(1660, 510);
|
||||
this.debugTabPage.Size = new System.Drawing.Size(1860, 510);
|
||||
this.debugTabPage.TabIndex = 4;
|
||||
this.debugTabPage.Text = "DEBUG";
|
||||
this.debugTabPage.UseVisualStyleBackColor = true;
|
||||
@@ -290,7 +290,7 @@
|
||||
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainMenuStrip.Name = "mainMenuStrip";
|
||||
this.mainMenuStrip.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2);
|
||||
this.mainMenuStrip.Size = new System.Drawing.Size(1676, 35);
|
||||
this.mainMenuStrip.Size = new System.Drawing.Size(1876, 35);
|
||||
this.mainMenuStrip.TabIndex = 0;
|
||||
this.mainMenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
@@ -347,7 +347,7 @@
|
||||
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F));
|
||||
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
|
||||
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F));
|
||||
this.mainLayoutPanel.Size = new System.Drawing.Size(1676, 961);
|
||||
this.mainLayoutPanel.Size = new System.Drawing.Size(1876, 961);
|
||||
this.mainLayoutPanel.TabIndex = 0;
|
||||
//
|
||||
// costAnalysisGroupBox
|
||||
@@ -361,9 +361,9 @@
|
||||
this.costAnalysisGroupBox.Controls.Add(this.salaryDollarsLabel);
|
||||
this.costAnalysisGroupBox.Controls.Add(this.suppliesLabel);
|
||||
this.costAnalysisGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.costAnalysisGroupBox.Location = new System.Drawing.Point(1260, 593);
|
||||
this.costAnalysisGroupBox.Location = new System.Drawing.Point(1410, 593);
|
||||
this.costAnalysisGroupBox.Name = "costAnalysisGroupBox";
|
||||
this.costAnalysisGroupBox.Size = new System.Drawing.Size(413, 225);
|
||||
this.costAnalysisGroupBox.Size = new System.Drawing.Size(463, 225);
|
||||
this.costAnalysisGroupBox.TabIndex = 6;
|
||||
this.costAnalysisGroupBox.TabStop = false;
|
||||
this.costAnalysisGroupBox.Text = "Cost Analysis";
|
||||
@@ -437,14 +437,14 @@
|
||||
this.tabControl1.Controls.Add(this.weeklySalesTabPage);
|
||||
this.tabControl1.Controls.Add(this.taxableTabPage);
|
||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl1.Location = new System.Drawing.Point(838, 590);
|
||||
this.tabControl1.Location = new System.Drawing.Point(938, 590);
|
||||
this.tabControl1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabControl1.Multiline = true;
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.Padding = new System.Drawing.Point(0, 0);
|
||||
this.mainLayoutPanel.SetRowSpan(this.tabControl1, 2);
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(419, 371);
|
||||
this.tabControl1.Size = new System.Drawing.Size(469, 371);
|
||||
this.tabControl1.TabIndex = 5;
|
||||
//
|
||||
// weeklySalesTabPage
|
||||
@@ -469,7 +469,7 @@
|
||||
this.weeklySalesTabPage.Location = new System.Drawing.Point(4, 33);
|
||||
this.weeklySalesTabPage.Name = "weeklySalesTabPage";
|
||||
this.weeklySalesTabPage.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.weeklySalesTabPage.Size = new System.Drawing.Size(411, 334);
|
||||
this.weeklySalesTabPage.Size = new System.Drawing.Size(461, 334);
|
||||
this.weeklySalesTabPage.TabIndex = 0;
|
||||
this.weeklySalesTabPage.Text = "Weekly Sales";
|
||||
//
|
||||
@@ -623,7 +623,7 @@
|
||||
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(411, 334);
|
||||
this.taxableTabPage.Size = new System.Drawing.Size(461, 334);
|
||||
this.taxableTabPage.TabIndex = 1;
|
||||
this.taxableTabPage.Text = "Taxable";
|
||||
//
|
||||
@@ -763,10 +763,10 @@
|
||||
this.dateGroupBox.Location = new System.Drawing.Point(3, 593);
|
||||
this.dateGroupBox.Name = "dateGroupBox";
|
||||
this.mainLayoutPanel.SetRowSpan(this.dateGroupBox, 2);
|
||||
this.dateGroupBox.Size = new System.Drawing.Size(413, 365);
|
||||
this.dateGroupBox.Size = new System.Drawing.Size(463, 365);
|
||||
this.dateGroupBox.TabIndex = 24;
|
||||
this.dateGroupBox.TabStop = false;
|
||||
this.dateGroupBox.Text = "Week Ending Date (MM/DD/YYYY)";
|
||||
this.dateGroupBox.Text = "Week Ending Date";
|
||||
//
|
||||
// monthCalendarInstructionsLabel
|
||||
//
|
||||
@@ -796,9 +796,9 @@
|
||||
this.dateTimeMaskedTextBoxPanel.Controls.Add(this.weekEndingMaskedTextBox);
|
||||
this.dateTimeMaskedTextBoxPanel.Controls.Add(this.weekEndingMaskedTextBoxInstructionLabel);
|
||||
this.dateTimeMaskedTextBoxPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dateTimeMaskedTextBoxPanel.Location = new System.Drawing.Point(422, 824);
|
||||
this.dateTimeMaskedTextBoxPanel.Location = new System.Drawing.Point(472, 824);
|
||||
this.dateTimeMaskedTextBoxPanel.Name = "dateTimeMaskedTextBoxPanel";
|
||||
this.dateTimeMaskedTextBoxPanel.Size = new System.Drawing.Size(413, 134);
|
||||
this.dateTimeMaskedTextBoxPanel.Size = new System.Drawing.Size(463, 134);
|
||||
this.dateTimeMaskedTextBoxPanel.TabIndex = 1;
|
||||
//
|
||||
// errorLabel
|
||||
@@ -836,9 +836,9 @@
|
||||
this.informationPanel.Controls.Add(this.informationLabel);
|
||||
this.informationPanel.Controls.Add(this.addRecordButton);
|
||||
this.informationPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.informationPanel.Location = new System.Drawing.Point(1260, 824);
|
||||
this.informationPanel.Location = new System.Drawing.Point(1410, 824);
|
||||
this.informationPanel.Name = "informationPanel";
|
||||
this.informationPanel.Size = new System.Drawing.Size(413, 134);
|
||||
this.informationPanel.Size = new System.Drawing.Size(463, 134);
|
||||
this.informationPanel.TabIndex = 25;
|
||||
//
|
||||
// informationLabel
|
||||
@@ -853,7 +853,7 @@
|
||||
// addRecordButton
|
||||
//
|
||||
this.addRecordButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.addRecordButton.Location = new System.Drawing.Point(237, 84);
|
||||
this.addRecordButton.Location = new System.Drawing.Point(287, 84);
|
||||
this.addRecordButton.Name = "addRecordButton";
|
||||
this.addRecordButton.Size = new System.Drawing.Size(167, 41);
|
||||
this.addRecordButton.TabIndex = 26;
|
||||
@@ -863,17 +863,14 @@
|
||||
//
|
||||
// NewAddRecord
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(168F, 168F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.ClientSize = new System.Drawing.Size(1676, 961);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1876, 961);
|
||||
this.Controls.Add(this.mainLayoutPanel);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.mainMenuStrip;
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(1900, 1025);
|
||||
this.MinimumSize = new System.Drawing.Size(1700, 1025);
|
||||
this.MinimumSize = new System.Drawing.Size(1000, 1000);
|
||||
this.Name = "NewAddRecord";
|
||||
this.Text = "Add New Record";
|
||||
this.commentsGroupBox.ResumeLayout(false);
|
||||
|
||||
Reference in New Issue
Block a user