diff --git a/AyaNovaQBI/Map.Designer.cs b/AyaNovaQBI/Map.Designer.cs
index c67b3db..a75d38d 100644
--- a/AyaNovaQBI/Map.Designer.cs
+++ b/AyaNovaQBI/Map.Designer.cs
@@ -28,6 +28,8 @@
///
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.objectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.customersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -41,7 +43,15 @@
this.unlinkedItemsOnlyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoLinkToolStripMenuItem = 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();
+ ((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
this.SuspendLayout();
//
// menuStrip1
@@ -50,7 +60,9 @@
this.objectToolStripMenuItem,
this.showToolStripMenuItem,
this.autoLinkToolStripMenuItem,
- this.updateAyaNovaPricesToolStripMenuItem});
+ this.updateAyaNovaPricesToolStripMenuItem,
+ this.mapSelectedItemsToolStripMenuItem,
+ this.unmapSelectedItemsToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(800, 24);
@@ -72,32 +84,37 @@
// 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.Click += new System.EventHandler(this.customersToolStripMenuItem_Click);
//
// 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.Click += new System.EventHandler(this.serviceRatesToolStripMenuItem_Click);
//
// 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.Click += new System.EventHandler(this.travelRatesToolStripMenuItem_Click);
//
// 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.Click += new System.EventHandler(this.partsToolStripMenuItem_Click);
//
// 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.Click += new System.EventHandler(this.vendorsToolStripMenuItem_Click);
//
// showToolStripMenuItem
//
@@ -145,19 +162,101 @@
//
this.updateAyaNovaPricesToolStripMenuItem.Name = "updateAyaNovaPricesToolStripMenuItem";
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.grid);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "Map";
this.Text = "Map";
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -178,5 +277,12 @@
private System.Windows.Forms.ToolStripMenuItem unlinkedItemsOnlyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoLinkToolStripMenuItem;
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;
}
}
\ No newline at end of file
diff --git a/AyaNovaQBI/Map.cs b/AyaNovaQBI/Map.cs
index 109d665..20b7660 100644
--- a/AyaNovaQBI/Map.cs
+++ b/AyaNovaQBI/Map.cs
@@ -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
* A menu to select the ayanova object type which then populates the ayanova items grid of that type showing:
diff --git a/AyaNovaQBI/Map.resx b/AyaNovaQBI/Map.resx
index 0f6d8eb..99e0cb7 100644
--- a/AyaNovaQBI/Map.resx
+++ b/AyaNovaQBI/Map.resx
@@ -120,4 +120,16 @@
17, 17
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
\ No newline at end of file