Beispiel #1
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            if (selectedGrid == 2 && customGridView2.SelectedCells.Count > 0)
            {
                Guid _rowID = new Guid(customGridView2.SelectedCells[0].OwningRow.Cells["subhRowID"].Value.ToString());
                GL.frmSubJournalUpdate ifrmChild = new GL.frmSubJournalUpdate(_rowID);
                ifrmChild.Caller = this;
                ifrmChild.ShowDialog();
            }

            if (selectedGrid == 3 && customGridView3.SelectedCells.Count > 0)
            {
                Guid _subhID = new Guid(customGridView3.SelectedCells[0].OwningRow.Cells["subdRowID"].Value.ToString());
                GL.frmSubJournalDetailUpdate ifrmChild = new GL.frmSubJournalDetailUpdate(_subhID);
                ifrmChild.Caller = this;
                ifrmChild.ShowDialog();
            }
        }
Beispiel #2
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            if (selectedGrid == 2 && customGridView1.SelectedCells.Count > 0)
            {
                Guid   _jdetailID = new Guid(customGridView1.SelectedCells[0].OwningRow.Cells["hRowID"].Value.ToString());
                string _jdRecID   = customGridView1.SelectedCells[0].OwningRow.Cells["hRecordID"].Value.ToString();
                GL.frmSubJournalUpdate ifrmChild = new GL.frmSubJournalUpdate(_jdetailID, _jdRecID);
                ifrmChild.Caller = this;
                ifrmChild.ShowDialog();
            }

            if (selectedGrid == 3 && customGridView2.SelectedCells.Count > 0)
            {
                Guid   _subhID    = new Guid(customGridView2.SelectedCells[0].OwningRow.Cells["subhRowID"].Value.ToString());
                string _subhRecID = customGridView2.SelectedCells[0].OwningRow.Cells["subhRecordID"].Value.ToString();
                string _partnerID = customGridView2.SelectedCells[0].OwningRow.Cells["subhPartnerID"].Value.ToString();
                GL.frmSubJournalDetailUpdate ifrmChild = new GL.frmSubJournalDetailUpdate(_subhID, _subhRecID, _partnerID);
                ifrmChild.Caller = this;
                ifrmChild.ShowDialog();
            }
        }