Ejemplo n.º 1
0
        private void referansKaydiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = avbGridView;

            if (view.DataRowCount > 0 && view.IsDataRow(view.FocusedRowHandle))
            {
                object refTO = view.GetFocusedRowCellValue(colREFTO);
                if (refTO != DBNull.Value)
                {
                    object refID = view.GetFocusedRowCellValue(colREFID);
                    if (refTO.ToString() == "F")
                    {
                        FaturaDetayXF frm = new FaturaDetayXF((int)refID, false);
                        frm.ShowDialog();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void faturaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = gridView1;

            if (!view.IsDataRow(view.FocusedRowHandle) || view.GetFocusedRowCellDisplayText(colREFTO) != "F")
            {
                return;
            }

            //Account.FaturaXF frm = new Account.FaturaXF();
            //frm.AFBid = (int)view.GetFocusedRowCellValue(colREFID);

            int           AFBid = (int)view.GetFocusedRowCellValue(colREFID);
            FaturaDetayXF frm   = new FaturaDetayXF(AFBid, false);

            frm.ShowDialog();
            frm.Dispose();
        }
Ejemplo n.º 3
0
        private void faturaDetaylariToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Validate();// Save();

            //dynamic inf = new ExpandoObject();
            //inf._ = "Fatura Başlık Bilgileri";
            //inf.ID = afbGridView.GetFocusedRowCellDisplayText(colAFBID);
            //inf.FtrTrh = afbGridView.GetFocusedRowCellDisplayText(colFTRTRH);
            //inf.ÖdmVde = afbGridView.GetFocusedRowCellDisplayText(colODMVDE);
            //inf.Dvz = afbGridView.GetFocusedRowCellDisplayText(colBDVZ);
            //inf.Kur = afbGridView.GetFocusedRowCellDisplayText(colBKUR);
            //inf.Tut = afbGridView.GetFocusedRowCellDisplayText(colBTUTBRT);

            int           afbID = (int)afbGridView.GetFocusedRowCellValue(colAFBID);
            FaturaDetayXF frm   = new FaturaDetayXF(afbID, false);

            frm.ShowDialog();

            // Refresh
            this.afbTableAdapter.Fill(this.accountDataSet.AFB, string.Format("AFBid = {0}", afbID), Program.USR); //Refresh
            //string qry = string.Format("afbID = {0}", frm.afbRow.AFBID);
            //this.afbTableAdapter.Fill(this.accountDataSet.AFB_REC_SEL, qry);
        }