This commit is contained in:
2022-07-03 20:06:06 +00:00
parent 7c32e9767e
commit a86fb4838b
3 changed files with 25 additions and 14 deletions

View File

@@ -89,30 +89,24 @@ namespace AyaNovaQBI
s.Dispose();
var selectedAyaNovaIds = new List<long>();
StringBuilder selectedAyaNovaNames = new StringBuilder();
foreach (DataGridViewRow r in gridAya.SelectedRows)
{
selectedAyaNovaNames.AppendLine(r.Cells[1].Value.ToString());
selectedAyaNovaNames.AppendLine(r.Cells[0].Value.ToString());
selectedAyaNovaIds.Add((long)r.Cells[1].Value);
}
//todo: here we need to update the linking (and save right away or wait??)
//#################################
//LINKING
LinkAyaObjectToQBConfirm d = new LinkAyaObjectToQBConfirm();
d.QBItem = QBItemName;
d.AyaItems = selectedAyaNovaNames.ToString();
if (d.ShowDialog() != DialogResult.OK) return;
////
//// QBNameID q=(QBNameID)moveData.Rows[0];
//// if(MessageBox.Show(
//// "Link the AyaNova object(s): " + q.Name + "\r\n" +
//// "to the QuickBooks object: " + + "\r\n\r\n" +
//// "Are you sure?","Link QuickBooks object",MessageBoxButtons.YesNo,MessageBoxIcon.Question)
//// ==DialogResult.No) return;
if (d.ShowDialog() != DialogResult.OK)
return;
////ok, link away...
//foreach (object o in moveData.Rows)
//{