This commit is contained in:
49
AyaNovaQBI/Map.Designer.cs
generated
49
AyaNovaQBI/Map.Designer.cs
generated
@@ -28,10 +28,10 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = 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();
|
||||
@@ -201,17 +201,17 @@
|
||||
this.gridAya.AllowUserToAddRows = false;
|
||||
this.gridAya.AllowUserToDeleteRows = false;
|
||||
this.gridAya.AllowUserToResizeRows = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.gridAya.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.gridAya.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gridAya.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.gridAya.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.gridAya.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.AyaName,
|
||||
@@ -258,17 +258,17 @@
|
||||
this.gridQB.AllowUserToAddRows = false;
|
||||
this.gridQB.AllowUserToDeleteRows = false;
|
||||
this.gridQB.AllowUserToResizeRows = false;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle11.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.gridQB.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.gridQB.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
|
||||
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gridQB.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.gridQB.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.gridQB.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
@@ -356,6 +356,7 @@
|
||||
this.updateSelectedItemsToolStripMenuItem.Name = "updateSelectedItemsToolStripMenuItem";
|
||||
this.updateSelectedItemsToolStripMenuItem.Size = new System.Drawing.Size(135, 20);
|
||||
this.updateSelectedItemsToolStripMenuItem.Text = "&Update selected items";
|
||||
this.updateSelectedItemsToolStripMenuItem.Visible = false;
|
||||
this.updateSelectedItemsToolStripMenuItem.Click += new System.EventHandler(this.updateSelectedItemsToolStripMenuItem_Click);
|
||||
//
|
||||
// Map
|
||||
|
||||
@@ -841,6 +841,7 @@ namespace AyaNovaQBI
|
||||
if (_Type == AyaType.Customer) return;
|
||||
_Type = AyaType.Customer;
|
||||
this.Text = "Map / Import - Customers";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -850,6 +851,7 @@ namespace AyaNovaQBI
|
||||
if (_Type == AyaType.ServiceRate) return;
|
||||
_Type = AyaType.ServiceRate;
|
||||
this.Text = "Map / Import - Service rates";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = false;
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -859,6 +861,7 @@ namespace AyaNovaQBI
|
||||
if (_Type == AyaType.TravelRate) return;
|
||||
_Type = AyaType.TravelRate;
|
||||
this.Text = "Map / Import - Travel rates";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = false;
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -868,6 +871,7 @@ namespace AyaNovaQBI
|
||||
if (_Type == AyaType.Part) return;
|
||||
_Type = AyaType.Part;
|
||||
this.Text = "Map / Import - Parts";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
if (!util.QBIntegration.Items.Any(z => z.AType == AyaType.Vendor))
|
||||
{
|
||||
@@ -888,6 +892,7 @@ namespace AyaNovaQBI
|
||||
if (_Type == AyaType.Vendor) return;
|
||||
_Type = AyaType.Vendor;
|
||||
this.Text = "Map / Import - Vendors";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -960,7 +965,40 @@ namespace AyaNovaQBI
|
||||
|
||||
//vendors either grid offer to update the opposite, this is new functionality
|
||||
|
||||
//Rates are not offered
|
||||
}
|
||||
}
|
||||
}
|
||||
//Rates are not offered - same as v7
|
||||
|
||||
if (gridAya.SelectedRows.Count == 0 && gridQB.SelectedRows.Count == 0) return;
|
||||
bool IsAyaGrid = false;
|
||||
IsAyaGrid = gridAya.SelectedRows.Count > 0;
|
||||
|
||||
string sFrom = IsAyaGrid ? "QuickBooks" : "AyaNova";
|
||||
string sTo = IsAyaGrid ? "AyaNova" : "QuickBooks";
|
||||
|
||||
MapApproveUpdateSelectedItems s = new MapApproveUpdateSelectedItems();
|
||||
|
||||
string sType = "";
|
||||
switch (_Type)
|
||||
{
|
||||
|
||||
case AyaType.Customer:
|
||||
sType = "Customers";
|
||||
break;
|
||||
case AyaType.Vendor:
|
||||
sType = "Vendors";
|
||||
break;
|
||||
case AyaType.Part:
|
||||
sType = "Parts";
|
||||
s.ShowUpdatePriceCostOnlyCheckBox = true;
|
||||
break;
|
||||
}
|
||||
|
||||
s.UpdateMessage = $"Update selected {sTo} {sType} from {sFrom} ";
|
||||
|
||||
if (s.ShowDialog() == DialogResult.Cancel)
|
||||
return;
|
||||
|
||||
MessageBox.Show("STUB: UPDATE SELECTED ITEMS");
|
||||
|
||||
}//eof
|
||||
}//eoc
|
||||
}//eons
|
||||
|
||||
@@ -17,14 +17,14 @@ namespace AyaNovaQBI
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
bool ShowUpdatePriceCostOnlyCheckBox { get; set; } = false;
|
||||
public bool ShowUpdatePriceCostOnlyCheckBox { get; set; } = false;
|
||||
|
||||
bool PriceOnly { get
|
||||
public bool PriceOnly { get
|
||||
{
|
||||
return ckUpdatePriceCostOnly.Checked;
|
||||
}
|
||||
}
|
||||
string UpdateMessage { get; set; }
|
||||
public string UpdateMessage { get; set; }
|
||||
|
||||
private void MapApproveUpdateSelectedItems_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user