Пример #1
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int refId = (int)gridView1.GetFocusedRowCellValue(colUSTID);

            Jurnal.jrnXF frm = new Jurnal.jrnXF();
            frm.RefTbl = "UST";
            frm.RefID  = refId;
            frm.ShowDialog();
            frm.Dispose();
        }
Пример #2
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int PK = (int)prtGridView.GetFocusedRowCellValue(colPRTID);

            Jurnal.jrnXF frm = new Jurnal.jrnXF();
            frm.RefTbl = "PRT";
            frm.RefID  = PK;
            frm.ShowDialog();
            frm.Dispose();
        }
Пример #3
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = avbGridView;

            if (view.DataRowCount > 0 && view.IsDataRow(view.FocusedRowHandle))
            {
                int          PK  = (int)view.GetFocusedRowCellValue(colAVBID);
                Jurnal.jrnXF frm = new Jurnal.jrnXF();
                frm.RefTbl = "AVB";
                frm.RefID  = PK;
                frm.ShowDialog();
                frm.Dispose();
            }
        }
Пример #4
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!tafGridView.IsDataRow(tafGridView.FocusedRowHandle))
            {
                return;
            }

            int PK = (int)tafGridView.GetFocusedRowCellValue(colTAFID);

            Jurnal.jrnXF frm = new Jurnal.jrnXF();
            frm.RefTbl = "TAF";
            frm.RefID  = PK;
            frm.ShowDialog();
            frm.Dispose();
        }
Пример #5
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = frkGridView;

            if (!view.IsDataRow(view.FocusedRowHandle))
            {
                return;
            }

            Jurnal.jrnXF frm = new Jurnal.jrnXF();

            frm.RefTbl = "FRK";
            frm.RefID  = (int)view.GetFocusedRowCellValue(colFRKID);;

            frm.ShowDialog();
            frm.Dispose();
        }
Пример #6
0
        private void journalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int refId;

            /* // Merkezi/HQ varsa onun altinda topla
             * if (frtGridView.GetFocusedRowCellValue(colHDQID) == DBNull.Value)
             *  refId = (int)frtGridView.GetFocusedRowCellValue(colFRTID);
             * else
             *  refId = (int)frtGridView.GetFocusedRowCellValue(colHDQID);
             */

            refId = (int)frtGridView.GetFocusedRowCellValue(colFRTID);

            Jurnal.jrnXF frm = new Jurnal.jrnXF();
            frm.RefTbl = "FRT";
            frm.RefID  = refId;
            frm.ShowDialog();
            frm.Dispose();
        }
Пример #7
0
        private void jurnalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (tstGridView.DataRowCount == 0)
            {
                return;
            }
            if (!tstGridView.IsDataRow(tstGridView.FocusedRowHandle))
            {
                return;
            }

            int refId = (int)tstGridView.GetFocusedRowCellValue(colTSTIDt);

            Jurnal.jrnXF frm = new Jurnal.jrnXF();
            frm.RefTbl = "TST";
            frm.RefID  = refId;
            frm.ShowDialog();
            frm.Dispose();
        }