Added support for color coding the DataGridViews' header cells based on row state (saved, pending edit, row error) and finished writing the last database writer function for cost analysis.
This commit is contained in:
Binary file not shown.
@@ -289,6 +289,7 @@ namespace AdvertsingProfitControl
|
||||
InvoiceNote = 6,
|
||||
IsDirty = 7
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// TODO: Push into a stand alone object.
|
||||
/// </summary>
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="AdItemCollectionModel.cs" />
|
||||
<Compile Include="AdvertisingProfitControlTableHelper.cs" />
|
||||
<Compile Include="ApplicationColors.cs" />
|
||||
<Compile Include="DbWriterStatus.cs" />
|
||||
<Compile Include="TextFormat.cs" />
|
||||
<Compile Include="APCDatabaseWriter.cs" />
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AdvertsingProfitControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the colors to be used for the rows on the DataGridViews based on their state.
|
||||
/// </summary>
|
||||
public static class ApplicationColors
|
||||
{
|
||||
public static Color EditingSaved = Color.ForestGreen;
|
||||
public static Color PendingEdit = Color.Yellow;
|
||||
public static Color RowError = Color.Red;
|
||||
public static Color HeaderRow = Color.LightGray;
|
||||
public static Color MemberRow = Color.LightBlue;
|
||||
}
|
||||
}
|
||||
@@ -532,21 +532,15 @@ namespace AdvertsingProfitControl
|
||||
{
|
||||
Connection = oleDbConnection
|
||||
};
|
||||
OleDbTransaction oleDbTransaction = null;
|
||||
try
|
||||
{
|
||||
oleDbConnection.Open();
|
||||
oleDbTransaction = oleDbConnection.BeginTransaction();
|
||||
oleDbCommand.Transaction = oleDbTransaction;
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
oleDbCommand.CommandText = "INSERT INTO Comment (Comment, FK_DateID) VALUES (?, ?)";
|
||||
oleDbCommand.Parameters.AddWithValue("Comment", comments);
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//If the execute non query didn't throw an exception then we're good to go.
|
||||
oleDbTransaction.Commit();
|
||||
//Now grab the ID number of the comment that was just added.
|
||||
oleDbCommand.CommandText = "SELECT ID FROM Comment WHERE FK_DateID = ?";
|
||||
oleDbCommand.Parameters.Clear();
|
||||
@@ -564,8 +558,6 @@ namespace AdvertsingProfitControl
|
||||
oleDbCommand.Parameters.AddWithValue("Comment", comments);
|
||||
oleDbCommand.Parameters.AddWithValue("ID", id);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//If the execute non query didn't throw an exception then we're good to go.
|
||||
oleDbTransaction.Commit();
|
||||
}
|
||||
}
|
||||
catch (OleDbException e)
|
||||
@@ -573,7 +565,6 @@ namespace AdvertsingProfitControl
|
||||
status.SetStatus(WritingOperationStatus.Failed);
|
||||
_logConsole.WriteToLog(FrmLogConsole.Level.Error, "Failed to process the comment(s): " + e.Message);
|
||||
status.SetErrorMessage("Failed to update or insert comments into the database.");
|
||||
oleDbTransaction?.Rollback();
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -590,12 +581,9 @@ namespace AdvertsingProfitControl
|
||||
{
|
||||
Connection = oleDbConnection
|
||||
};
|
||||
OleDbTransaction oleDbTransaction = null;
|
||||
try
|
||||
{
|
||||
oleDbConnection.Open();
|
||||
oleDbTransaction = oleDbConnection.BeginTransaction();
|
||||
oleDbCommand.Transaction = oleDbTransaction;
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
@@ -610,8 +598,6 @@ namespace AdvertsingProfitControl
|
||||
oleDbCommand.Parameters.AddWithValue("TotalSales", weeklySales[7]);
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//If the execute non query didn't throw an exception then we're good to go.
|
||||
oleDbTransaction.Commit();
|
||||
//Now grab the ID number of the comment that was just added.
|
||||
oleDbCommand.CommandText = "SELECT ID FROM WeeklySales WHERE FK_DateID = ?";
|
||||
oleDbCommand.Parameters.Clear();
|
||||
@@ -636,8 +622,6 @@ namespace AdvertsingProfitControl
|
||||
oleDbCommand.Parameters.AddWithValue("TotalSales", weeklySales[7]);
|
||||
oleDbCommand.Parameters.AddWithValue("ID", id);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//If the execute non query didn't throw an exception then we're good to go.
|
||||
oleDbTransaction.Commit();
|
||||
}
|
||||
}
|
||||
catch (OleDbException e)
|
||||
@@ -645,7 +629,126 @@ namespace AdvertsingProfitControl
|
||||
status.SetStatus(WritingOperationStatus.Failed);
|
||||
_logConsole.WriteToLog(FrmLogConsole.Level.Error, "Failed to process the weekly sales: " + e.Message);
|
||||
status.SetErrorMessage("Failed to update or insert weekly sales into the database.");
|
||||
oleDbTransaction?.Rollback();
|
||||
}
|
||||
finally
|
||||
{
|
||||
oleDbConnection.Close();
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
public DbWriterStatus ProcessTaxable(double[] taxable, int dateId, string connectionString, int id = 0)
|
||||
{
|
||||
var status = new DbWriterStatus();
|
||||
var oleDbConnection = new OleDbConnection(connectionString);
|
||||
var oleDbCommand = new OleDbCommand
|
||||
{
|
||||
Connection = oleDbConnection
|
||||
};
|
||||
try
|
||||
{
|
||||
oleDbConnection.Open();
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
oleDbCommand.CommandText = "INSERT INTO Taxable (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Total, FK_DateID) VALUES (?,?,?,?,?,?,?,?,?)";
|
||||
oleDbCommand.Parameters.AddWithValue("Sunday", taxable[0]);
|
||||
oleDbCommand.Parameters.AddWithValue("Monday", taxable[1]);
|
||||
oleDbCommand.Parameters.AddWithValue("Tuesday", taxable[2]);
|
||||
oleDbCommand.Parameters.AddWithValue("Wednesday", taxable[3]);
|
||||
oleDbCommand.Parameters.AddWithValue("Thursday", taxable[4]);
|
||||
oleDbCommand.Parameters.AddWithValue("Friday", taxable[5]);
|
||||
oleDbCommand.Parameters.AddWithValue("Saturday", taxable[6]);
|
||||
oleDbCommand.Parameters.AddWithValue("TotalSales", taxable[7]);
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//Now grab the ID number of the comment that was just added.
|
||||
oleDbCommand.CommandText = "SELECT ID FROM Taxable WHERE FK_DateID = ?";
|
||||
oleDbCommand.Parameters.Clear();
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
//Now read the ID number and add it to the collection with a default key.
|
||||
var reader = oleDbCommand.ExecuteReader();
|
||||
while (reader != null && reader.Read())
|
||||
{
|
||||
status.AddRowId(0, int.Parse(reader[0].ToString()));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
oleDbCommand.CommandText = "UPDATE Taxable SET Sunday = ?, Monday = ?, Tuesday = ?, Wednesday = ?, Thursday = ?, Friday = ?, Saturday = ?, Total = ? WHERE ID = ?";
|
||||
oleDbCommand.Parameters.AddWithValue("Sunday", taxable[0]);
|
||||
oleDbCommand.Parameters.AddWithValue("Monday", taxable[1]);
|
||||
oleDbCommand.Parameters.AddWithValue("Tuesday", taxable[2]);
|
||||
oleDbCommand.Parameters.AddWithValue("Wednesday", taxable[3]);
|
||||
oleDbCommand.Parameters.AddWithValue("Thursday", taxable[4]);
|
||||
oleDbCommand.Parameters.AddWithValue("Friday", taxable[5]);
|
||||
oleDbCommand.Parameters.AddWithValue("Saturday", taxable[6]);
|
||||
oleDbCommand.Parameters.AddWithValue("TotalSales", taxable[7]);
|
||||
oleDbCommand.Parameters.AddWithValue("ID", id);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
}
|
||||
}
|
||||
catch (OleDbException e)
|
||||
{
|
||||
status.SetStatus(WritingOperationStatus.Failed);
|
||||
_logConsole.WriteToLog(FrmLogConsole.Level.Error, "Failed to process the taxable: " + e.Message);
|
||||
status.SetErrorMessage("Failed to update or insert taxable into the database.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
oleDbConnection.Close();
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
public DbWriterStatus ProcessCostAnalysis(double[] costAnalysis, int dateId, string connectionString, int id = 0)
|
||||
{
|
||||
var status = new DbWriterStatus();
|
||||
var oleDbConnection = new OleDbConnection(connectionString);
|
||||
var oleDbCommand = new OleDbCommand
|
||||
{
|
||||
Connection = oleDbConnection
|
||||
};
|
||||
try
|
||||
{
|
||||
oleDbConnection.Open();
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
oleDbCommand.CommandText = "INSERT INTO CostOfSalesAnalysis (SalesPerManHour, SalaryPercentage, SalaryDollars, Supplies, FK_dateID) VALUES (?,?,?,?,?)";
|
||||
oleDbCommand.Parameters.AddWithValue("SalesPerManHour", costAnalysis[0]);
|
||||
oleDbCommand.Parameters.AddWithValue("SalaryPercentage", costAnalysis[1]);
|
||||
oleDbCommand.Parameters.AddWithValue("SalaryDollars", costAnalysis[2]);
|
||||
oleDbCommand.Parameters.AddWithValue("Supplies", costAnalysis[3]);
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
//Now grab the ID number of the comment that was just added.
|
||||
oleDbCommand.CommandText = "SELECT ID FROM Taxable WHERE FK_DateID = ?";
|
||||
oleDbCommand.Parameters.Clear();
|
||||
oleDbCommand.Parameters.AddWithValue("DateID", dateId);
|
||||
//Now read the ID number and add it to the collection with a default key.
|
||||
var reader = oleDbCommand.ExecuteReader();
|
||||
while (reader != null && reader.Read())
|
||||
{
|
||||
status.AddRowId(0, int.Parse(reader[0].ToString()));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
oleDbCommand.CommandText = "UPDATE CostOfSalesAnalysis SET SalesPerManHour = ?, SalaryPercentage = ?, SalaryDollars = ?, Supplies = ? WHERE ID = ?";
|
||||
oleDbCommand.Parameters.AddWithValue("SalesPerManHour", costAnalysis[0]);
|
||||
oleDbCommand.Parameters.AddWithValue("SalaryPercentage", costAnalysis[1]);
|
||||
oleDbCommand.Parameters.AddWithValue("SalaryDollars", costAnalysis[2]);
|
||||
oleDbCommand.Parameters.AddWithValue("Supplies", costAnalysis[3]);
|
||||
oleDbCommand.Parameters.AddWithValue("ID", id);
|
||||
oleDbCommand.ExecuteNonQuery();
|
||||
}
|
||||
}
|
||||
catch (OleDbException e)
|
||||
{
|
||||
status.SetStatus(WritingOperationStatus.Failed);
|
||||
_logConsole.WriteToLog(FrmLogConsole.Level.Error, "Failed to process the taxable: " + e.Message);
|
||||
status.SetErrorMessage("Failed to update or insert taxable into the database.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -30,11 +30,11 @@ namespace AdvertsingProfitControl
|
||||
/// Adds a row to the Rows Dictionary that keeps track of what rows have been
|
||||
/// added to the database including their IDs.
|
||||
/// </summary>
|
||||
/// <param name="key">The index of the row that was added to the database.</param>
|
||||
/// <param name="rowIndex">The index of the row that was added to the database.</param>
|
||||
/// <param name="rowIdNumber">The ID number of the row as represented in the database.</param>
|
||||
public void AddRowId(int key, int rowIdNumber)
|
||||
public void AddRowId(int rowIndex, int rowIdNumber)
|
||||
{
|
||||
_rowIds.Add(key, rowIdNumber);
|
||||
_rowIds.Add(rowIndex, rowIdNumber);
|
||||
}
|
||||
/// <summary>
|
||||
/// Removes a row from the Rows collection.
|
||||
|
||||
+136
-127
@@ -41,8 +41,19 @@
|
||||
this.invoicesTabPage = new System.Windows.Forms.TabPage();
|
||||
this.invoicesDataGridView = new System.Windows.Forms.DataGridView();
|
||||
this.debugTabPage = new System.Windows.Forms.TabPage();
|
||||
this.debugPanel = new System.Windows.Forms.Panel();
|
||||
this.generateCostAnalysisIdButton = new System.Windows.Forms.Button();
|
||||
this.generateTaxableIdButton = new System.Windows.Forms.Button();
|
||||
this.generateWeeklySalesIdButton = new System.Windows.Forms.Button();
|
||||
this.reminderLabel = new System.Windows.Forms.Label();
|
||||
this.generateCommentIdButton = new System.Windows.Forms.Button();
|
||||
this.isCostAnalysisDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isTaxableDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isWeeklySalesDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isCommentDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.FileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.clearFormFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.costAnalysisGroupBox = new System.Windows.Forms.GroupBox();
|
||||
@@ -99,17 +110,6 @@
|
||||
this.informationPanel = new System.Windows.Forms.Panel();
|
||||
this.informationLabel = new System.Windows.Forms.Label();
|
||||
this.addRecordButton = new System.Windows.Forms.Button();
|
||||
this.debugPanel = new System.Windows.Forms.Panel();
|
||||
this.isCommentDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isWeeklySalesDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isTaxableDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.isCostAnalysisDirtyCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.clearFormFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
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();
|
||||
@@ -121,6 +121,7 @@
|
||||
this.invoicesTabPage.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.invoicesDataGridView)).BeginInit();
|
||||
this.debugTabPage.SuspendLayout();
|
||||
this.debugPanel.SuspendLayout();
|
||||
this.mainMenuStrip.SuspendLayout();
|
||||
this.mainLayoutPanel.SuspendLayout();
|
||||
this.costAnalysisGroupBox.SuspendLayout();
|
||||
@@ -130,11 +131,11 @@
|
||||
this.dateGroupBox.SuspendLayout();
|
||||
this.dateTimeMaskedTextBoxPanel.SuspendLayout();
|
||||
this.informationPanel.SuspendLayout();
|
||||
this.debugPanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// commentsGroupBox
|
||||
//
|
||||
this.commentsGroupBox.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.commentsGroupBox.Controls.Add(this.commentsTextBox);
|
||||
this.commentsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.commentsGroupBox.Location = new System.Drawing.Point(473, 594);
|
||||
@@ -192,10 +193,12 @@
|
||||
this.projectionsDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
|
||||
this.projectionsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.projectionsDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.projectionsDataGridView.EnableHeadersVisualStyles = false;
|
||||
this.projectionsDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.projectionsDataGridView.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.projectionsDataGridView.MultiSelect = false;
|
||||
this.projectionsDataGridView.Name = "projectionsDataGridView";
|
||||
this.projectionsDataGridView.RowHeadersWidth = 70;
|
||||
this.projectionsDataGridView.RowTemplate.Height = 28;
|
||||
this.projectionsDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.projectionsDataGridView.TabIndex = 2;
|
||||
@@ -219,10 +222,12 @@
|
||||
this.inventoryDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
|
||||
this.inventoryDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.inventoryDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.inventoryDataGridView.EnableHeadersVisualStyles = false;
|
||||
this.inventoryDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.inventoryDataGridView.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.inventoryDataGridView.MultiSelect = false;
|
||||
this.inventoryDataGridView.Name = "inventoryDataGridView";
|
||||
this.inventoryDataGridView.RowHeadersWidth = 70;
|
||||
this.inventoryDataGridView.RowTemplate.Height = 28;
|
||||
this.inventoryDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.inventoryDataGridView.TabIndex = 1;
|
||||
@@ -246,10 +251,12 @@
|
||||
this.actualSalesDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
|
||||
this.actualSalesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.actualSalesDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.actualSalesDataGridView.EnableHeadersVisualStyles = false;
|
||||
this.actualSalesDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.actualSalesDataGridView.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.actualSalesDataGridView.MultiSelect = false;
|
||||
this.actualSalesDataGridView.Name = "actualSalesDataGridView";
|
||||
this.actualSalesDataGridView.RowHeadersWidth = 70;
|
||||
this.actualSalesDataGridView.RowTemplate.Height = 28;
|
||||
this.actualSalesDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.actualSalesDataGridView.TabIndex = 1;
|
||||
@@ -273,10 +280,12 @@
|
||||
this.invoicesDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
|
||||
this.invoicesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.invoicesDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.invoicesDataGridView.EnableHeadersVisualStyles = false;
|
||||
this.invoicesDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.invoicesDataGridView.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.invoicesDataGridView.MultiSelect = false;
|
||||
this.invoicesDataGridView.Name = "invoicesDataGridView";
|
||||
this.invoicesDataGridView.RowHeadersWidth = 70;
|
||||
this.invoicesDataGridView.RowTemplate.Height = 28;
|
||||
this.invoicesDataGridView.Size = new System.Drawing.Size(1860, 510);
|
||||
this.invoicesDataGridView.TabIndex = 1;
|
||||
@@ -292,6 +301,112 @@
|
||||
this.debugTabPage.Text = "DEBUG";
|
||||
this.debugTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// 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.generateCommentIdButton);
|
||||
this.debugPanel.Controls.Add(this.isCostAnalysisDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isTaxableDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isWeeklySalesDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isCommentDirtyCheckBox);
|
||||
this.debugPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.debugPanel.Location = new System.Drawing.Point(3, 3);
|
||||
this.debugPanel.Name = "debugPanel";
|
||||
this.debugPanel.Size = new System.Drawing.Size(1854, 504);
|
||||
this.debugPanel.TabIndex = 0;
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// reminderLabel
|
||||
//
|
||||
this.reminderLabel.AutoSize = true;
|
||||
this.reminderLabel.Location = new System.Drawing.Point(82, 94);
|
||||
this.reminderLabel.Name = "reminderLabel";
|
||||
this.reminderLabel.Size = new System.Drawing.Size(659, 25);
|
||||
this.reminderLabel.TabIndex = 5;
|
||||
this.reminderLabel.Text = "These checkboxes Tag properties hold the ID for their respective elements.";
|
||||
//
|
||||
// generateCommentIdButton
|
||||
//
|
||||
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);
|
||||
//
|
||||
// isCostAnalysisDirtyCheckBox
|
||||
//
|
||||
this.isCostAnalysisDirtyCheckBox.AutoSize = true;
|
||||
this.isCostAnalysisDirtyCheckBox.Location = new System.Drawing.Point(87, 227);
|
||||
this.isCostAnalysisDirtyCheckBox.Name = "isCostAnalysisDirtyCheckBox";
|
||||
this.isCostAnalysisDirtyCheckBox.Size = new System.Drawing.Size(207, 29);
|
||||
this.isCostAnalysisDirtyCheckBox.TabIndex = 3;
|
||||
this.isCostAnalysisDirtyCheckBox.Text = "IsCostAnalysisDirty";
|
||||
this.isCostAnalysisDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isTaxableDirtyCheckBox
|
||||
//
|
||||
this.isTaxableDirtyCheckBox.AutoSize = true;
|
||||
this.isTaxableDirtyCheckBox.Location = new System.Drawing.Point(87, 192);
|
||||
this.isTaxableDirtyCheckBox.Name = "isTaxableDirtyCheckBox";
|
||||
this.isTaxableDirtyCheckBox.Size = new System.Drawing.Size(163, 29);
|
||||
this.isTaxableDirtyCheckBox.TabIndex = 2;
|
||||
this.isTaxableDirtyCheckBox.Text = "IsTaxableDirty";
|
||||
this.isTaxableDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isWeeklySalesDirtyCheckBox
|
||||
//
|
||||
this.isWeeklySalesDirtyCheckBox.AutoSize = true;
|
||||
this.isWeeklySalesDirtyCheckBox.Location = new System.Drawing.Point(87, 157);
|
||||
this.isWeeklySalesDirtyCheckBox.Name = "isWeeklySalesDirtyCheckBox";
|
||||
this.isWeeklySalesDirtyCheckBox.Size = new System.Drawing.Size(208, 29);
|
||||
this.isWeeklySalesDirtyCheckBox.TabIndex = 1;
|
||||
this.isWeeklySalesDirtyCheckBox.Text = "IsWeeklySalesDirty";
|
||||
this.isWeeklySalesDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isCommentDirtyCheckBox
|
||||
//
|
||||
this.isCommentDirtyCheckBox.AutoSize = true;
|
||||
this.isCommentDirtyCheckBox.Location = new System.Drawing.Point(87, 122);
|
||||
this.isCommentDirtyCheckBox.Name = "isCommentDirtyCheckBox";
|
||||
this.isCommentDirtyCheckBox.Size = new System.Drawing.Size(177, 29);
|
||||
this.isCommentDirtyCheckBox.TabIndex = 0;
|
||||
this.isCommentDirtyCheckBox.Text = "IsCommentDirty";
|
||||
this.isCommentDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// mainMenuStrip
|
||||
//
|
||||
this.mainLayoutPanel.SetColumnSpan(this.mainMenuStrip, 4);
|
||||
@@ -314,10 +429,16 @@
|
||||
this.FileMainMenu.Size = new System.Drawing.Size(56, 31);
|
||||
this.FileMainMenu.Text = "&File";
|
||||
//
|
||||
// clearFormFileMainMenu
|
||||
//
|
||||
this.clearFormFileMainMenu.Name = "clearFormFileMainMenu";
|
||||
this.clearFormFileMainMenu.Size = new System.Drawing.Size(205, 34);
|
||||
this.clearFormFileMainMenu.Text = "&Clear Form";
|
||||
//
|
||||
// exitFileMainMenu
|
||||
//
|
||||
this.exitFileMainMenu.Name = "exitFileMainMenu";
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(240, 34);
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(205, 34);
|
||||
this.exitFileMainMenu.Text = "E&xit";
|
||||
//
|
||||
// mainLayoutPanel
|
||||
@@ -858,118 +979,6 @@
|
||||
this.addRecordButton.UseVisualStyleBackColor = true;
|
||||
this.addRecordButton.Click += new System.EventHandler(this.AddRecordsButtonClick);
|
||||
//
|
||||
// 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.generateCommentIdButton);
|
||||
this.debugPanel.Controls.Add(this.isCostAnalysisDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isTaxableDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isWeeklySalesDirtyCheckBox);
|
||||
this.debugPanel.Controls.Add(this.isCommentDirtyCheckBox);
|
||||
this.debugPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.debugPanel.Location = new System.Drawing.Point(3, 3);
|
||||
this.debugPanel.Name = "debugPanel";
|
||||
this.debugPanel.Size = new System.Drawing.Size(1854, 504);
|
||||
this.debugPanel.TabIndex = 0;
|
||||
//
|
||||
// isCommentDirtyCheckBox
|
||||
//
|
||||
this.isCommentDirtyCheckBox.AutoSize = true;
|
||||
this.isCommentDirtyCheckBox.Location = new System.Drawing.Point(87, 122);
|
||||
this.isCommentDirtyCheckBox.Name = "isCommentDirtyCheckBox";
|
||||
this.isCommentDirtyCheckBox.Size = new System.Drawing.Size(177, 29);
|
||||
this.isCommentDirtyCheckBox.TabIndex = 0;
|
||||
this.isCommentDirtyCheckBox.Text = "IsCommentDirty";
|
||||
this.isCommentDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isWeeklySalesDirtyCheckBox
|
||||
//
|
||||
this.isWeeklySalesDirtyCheckBox.AutoSize = true;
|
||||
this.isWeeklySalesDirtyCheckBox.Location = new System.Drawing.Point(87, 157);
|
||||
this.isWeeklySalesDirtyCheckBox.Name = "isWeeklySalesDirtyCheckBox";
|
||||
this.isWeeklySalesDirtyCheckBox.Size = new System.Drawing.Size(208, 29);
|
||||
this.isWeeklySalesDirtyCheckBox.TabIndex = 1;
|
||||
this.isWeeklySalesDirtyCheckBox.Text = "IsWeeklySalesDirty";
|
||||
this.isWeeklySalesDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isTaxableDirtyCheckBox
|
||||
//
|
||||
this.isTaxableDirtyCheckBox.AutoSize = true;
|
||||
this.isTaxableDirtyCheckBox.Location = new System.Drawing.Point(87, 192);
|
||||
this.isTaxableDirtyCheckBox.Name = "isTaxableDirtyCheckBox";
|
||||
this.isTaxableDirtyCheckBox.Size = new System.Drawing.Size(163, 29);
|
||||
this.isTaxableDirtyCheckBox.TabIndex = 2;
|
||||
this.isTaxableDirtyCheckBox.Text = "IsTaxableDirty";
|
||||
this.isTaxableDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// isCostAnalysisDirtyCheckBox
|
||||
//
|
||||
this.isCostAnalysisDirtyCheckBox.AutoSize = true;
|
||||
this.isCostAnalysisDirtyCheckBox.Location = new System.Drawing.Point(87, 227);
|
||||
this.isCostAnalysisDirtyCheckBox.Name = "isCostAnalysisDirtyCheckBox";
|
||||
this.isCostAnalysisDirtyCheckBox.Size = new System.Drawing.Size(207, 29);
|
||||
this.isCostAnalysisDirtyCheckBox.TabIndex = 3;
|
||||
this.isCostAnalysisDirtyCheckBox.Text = "IsCostAnalysisDirty";
|
||||
this.isCostAnalysisDirtyCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// clearFormFileMainMenu
|
||||
//
|
||||
this.clearFormFileMainMenu.Name = "clearFormFileMainMenu";
|
||||
this.clearFormFileMainMenu.Size = new System.Drawing.Size(240, 34);
|
||||
this.clearFormFileMainMenu.Text = "&Clear Form";
|
||||
//
|
||||
// generateCommentIdButton
|
||||
//
|
||||
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
|
||||
//
|
||||
this.reminderLabel.AutoSize = true;
|
||||
this.reminderLabel.Location = new System.Drawing.Point(82, 94);
|
||||
this.reminderLabel.Name = "reminderLabel";
|
||||
this.reminderLabel.Size = new System.Drawing.Size(659, 25);
|
||||
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);
|
||||
@@ -995,6 +1004,8 @@
|
||||
this.invoicesTabPage.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.invoicesDataGridView)).EndInit();
|
||||
this.debugTabPage.ResumeLayout(false);
|
||||
this.debugPanel.ResumeLayout(false);
|
||||
this.debugPanel.PerformLayout();
|
||||
this.mainMenuStrip.ResumeLayout(false);
|
||||
this.mainMenuStrip.PerformLayout();
|
||||
this.mainLayoutPanel.ResumeLayout(false);
|
||||
@@ -1012,8 +1023,6 @@
|
||||
this.dateTimeMaskedTextBoxPanel.PerformLayout();
|
||||
this.informationPanel.ResumeLayout(false);
|
||||
this.informationPanel.PerformLayout();
|
||||
this.debugPanel.ResumeLayout(false);
|
||||
this.debugPanel.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -120,9 +120,6 @@
|
||||
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>sJa3N/qFPRThckha4aReaPFLpwQDio7tNBSSDURtnBk=</dsig:DigestValue>
|
||||
<dsig:DigestValue>OlX6CvX02QUSDXImEM6f2HKdWzzRripa5ZZRa0lenPo=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
@@ -43,14 +43,14 @@
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="AdvertsingProfitControl.exe" size="3538944">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="AdvertsingProfitControl.exe" size="3543552">
|
||||
<assemblyIdentity name="AdvertsingProfitControl" version="0.9.5.2" language="neutral" processorArchitecture="amd64" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>KJrIBRsbaX/71nFWLgdvuorK6BWoYWZ05mGNqVbM0Y0=</dsig:DigestValue>
|
||||
<dsig:DigestValue>4TfzARAAxdb/PYNmotwSF5x29OfcgoIH9QiACmt25T0=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
@@ -84,7 +84,7 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>dX2Dundhh4161Q3VUoRkM0RkUhpDPmRvgqyLNfiU3Nk=</dsig:DigestValue>
|
||||
<dsig:DigestValue>OTOg6k+3pem3uA+Xpy/Nu0Ifwo+hXeYq3hn83njXnT4=</dsig:DigestValue>
|
||||
</hash>
|
||||
</file>
|
||||
<file name="Stretched Logo Collection.ico" size="370070">
|
||||
|
||||
Reference in New Issue
Block a user