コード例 #1
0
        private void kurFarkiFaturaEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = afbGridView;

            // AFB_INS_KURFARKI (curAfbID, topKurFarkiTL, FtrTrh, FtrNo, Usr)
            // Tur BS/AS disinda olamaz.
            if (!view.IsDataRow(view.FocusedRowHandle))
            {
                return;
            }


            // Simdilik aktif degil
            //if (!Program.MF.EntryCheck("AFB.FaturaKurFarkiInsXF", false))
            //    return;

            string tur = afbGridView.GetFocusedRowCellValue(colTUR).ToString();

            if (tur == "BS" || tur == "AA")
            {
                int afbID = (int)view.GetFocusedRowCellValue(colAFBID);
                FaturaKurFarkiInsXF frm = new FaturaKurFarkiInsXF();
                frm.refAfbID = afbID;
                frm.ShowDialog();

                FaturaXF ftr = new FaturaXF();
                ftr.AFBid = frm.newAfbID;
                ftr.ShowDialog();
                ftr.Dispose();
            }
        }
コード例 #2
0
        private void kurFarkiFaturasiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = afbGridView;

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

            FaturaXF ftr = new FaturaXF();

            ftr.RefAfbID = (int)view.GetFocusedRowCellValue(colAFBID);
            ftr.ShowDialog();
            ftr.Dispose();
        }
コード例 #3
0
        private void refFaturaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = afbGridView;

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

            if (view.GetFocusedRowCellValue(colREFAFBID) != DBNull.Value)
            {
                FaturaXF ftr = new FaturaXF();
                ftr.AFBid = (int)view.GetFocusedRowCellValue(colREFAFBID);
                ftr.ShowDialog();
                ftr.Dispose();
            }
        }