This commit is contained in:
2022-07-07 17:57:32 +00:00
parent 914e52f61e
commit 67b4a6716a
21 changed files with 38 additions and 66 deletions

View File

@@ -28,10 +28,10 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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();
@@ -209,17 +209,17 @@
this.gridAya.AllowUserToAddRows = false; this.gridAya.AllowUserToAddRows = false;
this.gridAya.AllowUserToDeleteRows = false; this.gridAya.AllowUserToDeleteRows = false;
this.gridAya.AllowUserToResizeRows = false; this.gridAya.AllowUserToResizeRows = false;
dataGridViewCellStyle13.BackColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.gridAya.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.gridAya.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.gridAya.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gridAya.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridAya.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.gridAya.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.AyaName, this.AyaName,
@@ -232,7 +232,6 @@
this.gridAya.ReadOnly = true; this.gridAya.ReadOnly = true;
this.gridAya.Size = new System.Drawing.Size(338, 510); this.gridAya.Size = new System.Drawing.Size(338, 510);
this.gridAya.TabIndex = 4; this.gridAya.TabIndex = 4;
this.gridAya.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridAya_CellClick);
this.gridAya.SelectionChanged += new System.EventHandler(this.gridAya_SelectionChanged); this.gridAya.SelectionChanged += new System.EventHandler(this.gridAya_SelectionChanged);
// //
// AyaName // AyaName
@@ -266,17 +265,17 @@
this.gridQB.AllowUserToAddRows = false; this.gridQB.AllowUserToAddRows = false;
this.gridQB.AllowUserToDeleteRows = false; this.gridQB.AllowUserToDeleteRows = false;
this.gridQB.AllowUserToResizeRows = false; this.gridQB.AllowUserToResizeRows = false;
dataGridViewCellStyle15.BackColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle15; this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.gridQB.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.gridQB.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16; this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.gridQB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gridQB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridQB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.gridQB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn1,
@@ -289,7 +288,6 @@
this.gridQB.ReadOnly = true; this.gridQB.ReadOnly = true;
this.gridQB.Size = new System.Drawing.Size(381, 510); this.gridQB.Size = new System.Drawing.Size(381, 510);
this.gridQB.TabIndex = 5; this.gridQB.TabIndex = 5;
this.gridQB.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gridQB_CellClick);
this.gridQB.SelectionChanged += new System.EventHandler(this.gridQB_SelectionChanged); this.gridQB.SelectionChanged += new System.EventHandler(this.gridQB_SelectionChanged);
// //
// dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1

View File

@@ -891,7 +891,7 @@ namespace AyaNovaQBI
handleCheckOfObjectTypeMenuItem(sender, e); handleCheckOfObjectTypeMenuItem(sender, e);
if (_Type == AyaType.Customer) return; if (_Type == AyaType.Customer) return;
_Type = AyaType.Customer; _Type = AyaType.Customer;
this.Text = "Map / Import - Customers"; this.Text = "Customers";
updateSelectedItemsToolStripMenuItem.Visible = true; updateSelectedItemsToolStripMenuItem.Visible = true;
Initialize(); Initialize();
} }
@@ -901,7 +901,7 @@ namespace AyaNovaQBI
handleCheckOfObjectTypeMenuItem(sender, e); handleCheckOfObjectTypeMenuItem(sender, e);
if (_Type == AyaType.ServiceRate) return; if (_Type == AyaType.ServiceRate) return;
_Type = AyaType.ServiceRate; _Type = AyaType.ServiceRate;
this.Text = "Map / Import - Service rates"; this.Text = "Service rates";
updateSelectedItemsToolStripMenuItem.Visible = false; updateSelectedItemsToolStripMenuItem.Visible = false;
Initialize(); Initialize();
} }
@@ -911,7 +911,7 @@ namespace AyaNovaQBI
handleCheckOfObjectTypeMenuItem(sender, e); handleCheckOfObjectTypeMenuItem(sender, e);
if (_Type == AyaType.TravelRate) return; if (_Type == AyaType.TravelRate) return;
_Type = AyaType.TravelRate; _Type = AyaType.TravelRate;
this.Text = "Map / Import - Travel rates"; this.Text = "Travel rates";
updateSelectedItemsToolStripMenuItem.Visible = false; updateSelectedItemsToolStripMenuItem.Visible = false;
Initialize(); Initialize();
} }
@@ -921,7 +921,7 @@ namespace AyaNovaQBI
handleCheckOfObjectTypeMenuItem(sender, e); handleCheckOfObjectTypeMenuItem(sender, e);
if (_Type == AyaType.Part) return; if (_Type == AyaType.Part) return;
_Type = AyaType.Part; _Type = AyaType.Part;
this.Text = "Map / Import - Parts"; this.Text = "Parts";
updateSelectedItemsToolStripMenuItem.Visible = true; updateSelectedItemsToolStripMenuItem.Visible = true;
Initialize(); Initialize();
if (!util.QBIntegration.Items.Any(z => z.AType == AyaType.Vendor)) if (!util.QBIntegration.Items.Any(z => z.AType == AyaType.Vendor))
@@ -942,7 +942,7 @@ namespace AyaNovaQBI
handleCheckOfObjectTypeMenuItem(sender, e); handleCheckOfObjectTypeMenuItem(sender, e);
if (_Type == AyaType.Vendor) return; if (_Type == AyaType.Vendor) return;
_Type = AyaType.Vendor; _Type = AyaType.Vendor;
this.Text = "Map / Import - Vendors"; this.Text = "Vendors";
updateSelectedItemsToolStripMenuItem.Visible = true; updateSelectedItemsToolStripMenuItem.Visible = true;
Initialize(); Initialize();
} }
@@ -963,17 +963,7 @@ namespace AyaNovaQBI
} }
private void gridAya_CellClick(object sender, DataGridViewCellEventArgs e)
{
}
private void gridQB_CellClick(object sender, DataGridViewCellEventArgs e)
{
}
private void gridQB_SelectionChanged(object sender, EventArgs e) private void gridQB_SelectionChanged(object sender, EventArgs e)
{ {
@@ -997,29 +987,13 @@ namespace AyaNovaQBI
#endregion utility stuff #endregion utility stuff
private async void updateSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e) private async void updateSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
{ {
//Parts in v7 default update would do price / cost both ways in addition to the part description and other fields
// however the user could go to map and select to *only* update the prices in AyaNova from QB but not the other fields
//for v8 going to simplify this to update all by default still for selected items or optionally pick "Price and cost only"
//Parts either grid separate checkbox "update Price and cost only" which does that otherwise does price/cost and other fields both ways
//customers either grid offer to update the opposite
//vendors either grid offer to update the opposite, this is new functionality
//Rates are not offered - same as v7
if (gridAya.SelectedRows.Count == 0 && gridQB.SelectedRows.Count == 0) return; if (gridAya.SelectedRows.Count == 0 && gridQB.SelectedRows.Count == 0) return;
bool IsAyaGrid = false; bool IsAyaGrid = false;
IsAyaGrid = gridAya.SelectedRows.Count > 0; IsAyaGrid = gridAya.SelectedRows.Count > 0;

View File

@@ -87,6 +87,7 @@
this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "MapApproveUpdateSelectedItems"; this.Name = "MapApproveUpdateSelectedItems";
this.ShowInTaskbar = false;
this.Text = "Update selected items?"; this.Text = "Update selected items?";
this.Load += new System.EventHandler(this.MapApproveUpdateSelectedItems_Load); this.Load += new System.EventHandler(this.MapApproveUpdateSelectedItems_Load);
this.ResumeLayout(false); this.ResumeLayout(false);

View File

@@ -47,7 +47,7 @@
this.edServerUrl.Location = new System.Drawing.Point(12, 46); this.edServerUrl.Location = new System.Drawing.Point(12, 46);
this.edServerUrl.Name = "edServerUrl"; this.edServerUrl.Name = "edServerUrl";
this.edServerUrl.Size = new System.Drawing.Size(590, 20); this.edServerUrl.Size = new System.Drawing.Size(590, 20);
this.edServerUrl.TabIndex = 0; this.edServerUrl.TabIndex = 3;
// //
// label1 // label1
// //
@@ -73,14 +73,14 @@
this.edUserName.Location = new System.Drawing.Point(52, 137); this.edUserName.Location = new System.Drawing.Point(52, 137);
this.edUserName.Name = "edUserName"; this.edUserName.Name = "edUserName";
this.edUserName.Size = new System.Drawing.Size(550, 20); this.edUserName.Size = new System.Drawing.Size(550, 20);
this.edUserName.TabIndex = 3; this.edUserName.TabIndex = 0;
// //
// edPassword // edPassword
// //
this.edPassword.Location = new System.Drawing.Point(52, 200); this.edPassword.Location = new System.Drawing.Point(52, 200);
this.edPassword.Name = "edPassword"; this.edPassword.Name = "edPassword";
this.edPassword.Size = new System.Drawing.Size(550, 20); this.edPassword.Size = new System.Drawing.Size(550, 20);
this.edPassword.TabIndex = 4; this.edPassword.TabIndex = 1;
// //
// pictureBox2 // pictureBox2
// //
@@ -107,7 +107,7 @@
this.btnLogin.Location = new System.Drawing.Point(527, 262); this.btnLogin.Location = new System.Drawing.Point(527, 262);
this.btnLogin.Name = "btnLogin"; this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new System.Drawing.Size(75, 23); this.btnLogin.Size = new System.Drawing.Size(75, 23);
this.btnLogin.TabIndex = 9; this.btnLogin.TabIndex = 2;
this.btnLogin.Text = "Login"; this.btnLogin.Text = "Login";
this.btnLogin.UseVisualStyleBackColor = true; this.btnLogin.UseVisualStyleBackColor = true;
this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
@@ -130,7 +130,6 @@
this.AutoSize = true; this.AutoSize = true;
this.CancelButton = this.btnCancel; this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(614, 321); this.ClientSize = new System.Drawing.Size(614, 321);
this.ControlBox = false;
this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnLogin); this.Controls.Add(this.btnLogin);
this.Controls.Add(this.pictureBox2); this.Controls.Add(this.pictureBox2);
@@ -140,10 +139,11 @@
this.Controls.Add(this.btnTest); this.Controls.Add(this.btnTest);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.edServerUrl); this.Controls.Add(this.edServerUrl);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "auth"; this.Name = "auth";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "AyaNova login"; this.Text = "QBI login to AyaNova ";
this.Load += new System.EventHandler(this.auth_Load); this.Load += new System.EventHandler(this.auth_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();

View File

@@ -1,7 +1,6 @@
TODO: TODO:
Screenshots before expires!!!! Screenshots before expires!!!!
REFRESH / UPDATE was previously done in v7 plugin in clients, parts grids etc, now needs to be added into qbi itself, maybe in the link form and then also need to rename the link form in the UI
as it's doing a *lot* of stuff, maybe just "Linking and updating", "Linked objects"?
Test persisted form settings for server url (ONCE POSTED NEW BUILD OF AYANOVA TO TEST SERVER) Test persisted form settings for server url (ONCE POSTED NEW BUILD OF AYANOVA TO TEST SERVER)
Docs should not refer to autoclose anymore, it's status driven now Docs should not refer to autoclose anymore, it's status driven now
DOCS UI use "Link" and do not use "map" anywhere DOCS UI use "Link" and do not use "map" anywhere

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
docs/docs/img/link-sync.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB