Ejemplo n.º 1
0
        private void btnAddNote_Click(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection selectedVendorOrderLineItem = this.lvReceiving.SelectedItems;

            if (selectedVendorOrderLineItem.Count > 0)
            {
                //int vendorID = Convert.ToInt32(selectedVendor[0].SubItems[0].Text);
                //Vendor thisVendor = _myVendorManager.GetVendor(vendorID);
                //FrmVendorAddUpdate frm = new FrmVendorAddUpdate(_myAccessToken, thisVendor);
                //frm.ShowDialog();
                //findActiveSelection();

                var id        = Int32.Parse(txtVendorOrderID.Text);
                var vendorID  = Int32.Parse(txtVendorID.Text.ToString());
                var productID = Convert.ToInt32(selectedVendorOrderLineItem[0].SubItems[0].Text);
                var note      = selectedVendorOrderLineItem[0].SubItems[5].Text;


                _frmReceivingNotes = new frmReceivingNotes(id, productID, vendorID, note, _myAccessToken);
                _frmReceivingNotes.ShowDialog();
                populateListView();
            }
        }
Ejemplo n.º 2
0
        private void btnAddNote_Click(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection selectedVendorOrderLineItem = this.lvReceiving.SelectedItems;

                if (selectedVendorOrderLineItem.Count > 0)
            {
                //int vendorID = Convert.ToInt32(selectedVendor[0].SubItems[0].Text);
                //Vendor thisVendor = _myVendorManager.GetVendor(vendorID);
                //FrmVendorAddUpdate frm = new FrmVendorAddUpdate(_myAccessToken, thisVendor);
                //frm.ShowDialog();
                //findActiveSelection();

                var id = Int32.Parse(txtVendorOrderID.Text);
                var vendorID = Int32.Parse(txtVendorID.Text.ToString());
                var productID = Convert.ToInt32(selectedVendorOrderLineItem[0].SubItems[0].Text);
                var note = selectedVendorOrderLineItem[0].SubItems[5].Text;

                _frmReceivingNotes = new frmReceivingNotes(id, productID, vendorID, note, _myAccessToken);
                _frmReceivingNotes.ShowDialog();
                populateListView();
            }
        }