This commit is contained in:
@@ -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)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user