This commit is contained in:
2022-07-01 23:36:58 +00:00
parent b87677b8dd
commit 453cb6a614
3 changed files with 160 additions and 7 deletions

View File

@@ -28,6 +28,8 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.objectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.objectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.customersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.customersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -41,7 +43,15 @@
this.unlinkedItemsOnlyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.unlinkedItemsOnlyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.autoLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.updateAyaNovaPricesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.updateAyaNovaPricesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.grid = new System.Windows.Forms.DataGridView();
this.AyaName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.QBName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.qbid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ayaid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mapSelectedItemsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.unmapSelectedItemsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// menuStrip1 // menuStrip1
@@ -50,7 +60,9 @@
this.objectToolStripMenuItem, this.objectToolStripMenuItem,
this.showToolStripMenuItem, this.showToolStripMenuItem,
this.autoLinkToolStripMenuItem, this.autoLinkToolStripMenuItem,
this.updateAyaNovaPricesToolStripMenuItem}); this.updateAyaNovaPricesToolStripMenuItem,
this.mapSelectedItemsToolStripMenuItem,
this.unmapSelectedItemsToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(800, 24); this.menuStrip1.Size = new System.Drawing.Size(800, 24);
@@ -72,32 +84,37 @@
// customersToolStripMenuItem // customersToolStripMenuItem
// //
this.customersToolStripMenuItem.Name = "customersToolStripMenuItem"; this.customersToolStripMenuItem.Name = "customersToolStripMenuItem";
this.customersToolStripMenuItem.Size = new System.Drawing.Size(139, 22); this.customersToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.customersToolStripMenuItem.Text = "&Customers"; this.customersToolStripMenuItem.Text = "&Customers";
this.customersToolStripMenuItem.Click += new System.EventHandler(this.customersToolStripMenuItem_Click);
// //
// serviceRatesToolStripMenuItem // serviceRatesToolStripMenuItem
// //
this.serviceRatesToolStripMenuItem.Name = "serviceRatesToolStripMenuItem"; this.serviceRatesToolStripMenuItem.Name = "serviceRatesToolStripMenuItem";
this.serviceRatesToolStripMenuItem.Size = new System.Drawing.Size(139, 22); this.serviceRatesToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.serviceRatesToolStripMenuItem.Text = "&Service rates"; this.serviceRatesToolStripMenuItem.Text = "&Service rates";
this.serviceRatesToolStripMenuItem.Click += new System.EventHandler(this.serviceRatesToolStripMenuItem_Click);
// //
// travelRatesToolStripMenuItem // travelRatesToolStripMenuItem
// //
this.travelRatesToolStripMenuItem.Name = "travelRatesToolStripMenuItem"; this.travelRatesToolStripMenuItem.Name = "travelRatesToolStripMenuItem";
this.travelRatesToolStripMenuItem.Size = new System.Drawing.Size(139, 22); this.travelRatesToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.travelRatesToolStripMenuItem.Text = "&Travel rates"; this.travelRatesToolStripMenuItem.Text = "&Travel rates";
this.travelRatesToolStripMenuItem.Click += new System.EventHandler(this.travelRatesToolStripMenuItem_Click);
// //
// partsToolStripMenuItem // partsToolStripMenuItem
// //
this.partsToolStripMenuItem.Name = "partsToolStripMenuItem"; this.partsToolStripMenuItem.Name = "partsToolStripMenuItem";
this.partsToolStripMenuItem.Size = new System.Drawing.Size(139, 22); this.partsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.partsToolStripMenuItem.Text = "&Parts"; this.partsToolStripMenuItem.Text = "&Parts";
this.partsToolStripMenuItem.Click += new System.EventHandler(this.partsToolStripMenuItem_Click);
// //
// vendorsToolStripMenuItem // vendorsToolStripMenuItem
// //
this.vendorsToolStripMenuItem.Name = "vendorsToolStripMenuItem"; this.vendorsToolStripMenuItem.Name = "vendorsToolStripMenuItem";
this.vendorsToolStripMenuItem.Size = new System.Drawing.Size(139, 22); this.vendorsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.vendorsToolStripMenuItem.Text = "&Vendors"; this.vendorsToolStripMenuItem.Text = "&Vendors";
this.vendorsToolStripMenuItem.Click += new System.EventHandler(this.vendorsToolStripMenuItem_Click);
// //
// showToolStripMenuItem // showToolStripMenuItem
// //
@@ -145,19 +162,101 @@
// //
this.updateAyaNovaPricesToolStripMenuItem.Name = "updateAyaNovaPricesToolStripMenuItem"; this.updateAyaNovaPricesToolStripMenuItem.Name = "updateAyaNovaPricesToolStripMenuItem";
this.updateAyaNovaPricesToolStripMenuItem.Size = new System.Drawing.Size(142, 20); this.updateAyaNovaPricesToolStripMenuItem.Size = new System.Drawing.Size(142, 20);
this.updateAyaNovaPricesToolStripMenuItem.Text = "&Update AyaNova prices"; this.updateAyaNovaPricesToolStripMenuItem.Text = "Update AyaNova &prices";
//
// grid
//
this.grid.AllowUserToAddRows = false;
this.grid.AllowUserToDeleteRows = false;
this.grid.AllowUserToResizeRows = false;
dataGridViewCellStyle17.BackColor = System.Drawing.Color.WhiteSmoke;
this.grid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.AyaName,
this.QBName,
this.qbid,
this.ayaid});
this.grid.Dock = System.Windows.Forms.DockStyle.Fill;
this.grid.EnableHeadersVisualStyles = false;
this.grid.Location = new System.Drawing.Point(0, 24);
this.grid.Name = "grid";
this.grid.ReadOnly = true;
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.Size = new System.Drawing.Size(800, 426);
this.grid.TabIndex = 4;
this.grid.Visible = false;
//
// AyaName
//
this.AyaName.DataPropertyName = "AyaName";
this.AyaName.HeaderText = "AyaNova name";
this.AyaName.Name = "AyaName";
this.AyaName.ReadOnly = true;
this.AyaName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// QBName
//
this.QBName.DataPropertyName = "QBname";
this.QBName.HeaderText = "QB Name";
this.QBName.Name = "QBName";
this.QBName.ReadOnly = true;
this.QBName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// qbid
//
this.qbid.DataPropertyName = "qbid";
this.qbid.HeaderText = "qbid";
this.qbid.Name = "qbid";
this.qbid.ReadOnly = true;
this.qbid.Visible = false;
//
// ayaid
//
this.ayaid.DataPropertyName = "ayid";
this.ayaid.HeaderText = "ayaid";
this.ayaid.Name = "ayaid";
this.ayaid.ReadOnly = true;
this.ayaid.Visible = false;
//
// mapSelectedItemsToolStripMenuItem
//
this.mapSelectedItemsToolStripMenuItem.Name = "mapSelectedItemsToolStripMenuItem";
this.mapSelectedItemsToolStripMenuItem.Size = new System.Drawing.Size(121, 20);
this.mapSelectedItemsToolStripMenuItem.Text = "&Map selected items";
this.mapSelectedItemsToolStripMenuItem.Visible = false;
this.mapSelectedItemsToolStripMenuItem.Click += new System.EventHandler(this.mapSelectedItemsToolStripMenuItem_Click);
//
// unmapSelectedItemsToolStripMenuItem
//
this.unmapSelectedItemsToolStripMenuItem.Name = "unmapSelectedItemsToolStripMenuItem";
this.unmapSelectedItemsToolStripMenuItem.Size = new System.Drawing.Size(136, 20);
this.unmapSelectedItemsToolStripMenuItem.Text = "&Unmap selected items";
this.unmapSelectedItemsToolStripMenuItem.Visible = false;
this.unmapSelectedItemsToolStripMenuItem.Click += new System.EventHandler(this.unmapSelectedItemsToolStripMenuItem_Click);
// //
// Map // Map
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.grid);
this.Controls.Add(this.menuStrip1); this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Name = "Map"; this.Name = "Map";
this.Text = "Map"; this.Text = "Map";
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -178,5 +277,12 @@
private System.Windows.Forms.ToolStripMenuItem unlinkedItemsOnlyToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem unlinkedItemsOnlyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoLinkToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem autoLinkToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem updateAyaNovaPricesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem updateAyaNovaPricesToolStripMenuItem;
private System.Windows.Forms.DataGridView grid;
private System.Windows.Forms.DataGridViewTextBoxColumn AyaName;
private System.Windows.Forms.DataGridViewTextBoxColumn QBName;
private System.Windows.Forms.DataGridViewTextBoxColumn qbid;
private System.Windows.Forms.DataGridViewTextBoxColumn ayaid;
private System.Windows.Forms.ToolStripMenuItem mapSelectedItemsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unmapSelectedItemsToolStripMenuItem;
} }
} }

View File

@@ -32,6 +32,41 @@ namespace AyaNovaQBI
} }
} }
private void mapSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void unmapSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void customersToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void serviceRatesToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void travelRatesToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void partsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void vendorsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
/* /*
* Simplified, no drag and drop just pick and choose with clicks * Simplified, no drag and drop just pick and choose with clicks
* A menu to select the ayanova object type which then populates the ayanova items grid of that type showing: * A menu to select the ayanova object type which then populates the ayanova items grid of that type showing:

View File

@@ -120,4 +120,16 @@
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="AyaName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="QBName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="qbid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ayaid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>