private void btnKaydet_Click(object sender, EventArgs e)
        {
            if (gridView1.IsEditing)
            {
                gridView1.CloseEditor();
            }

            if (gridView1.FocusedRowModified)
            {
                gridView1.UpdateCurrentRow();
            }

            if (string.IsNullOrEmpty(txtUretilenStokKodu.Text))
            {
                MessageBox.Show("Üretilecek Stok Seçilmedi");
                return;
            }

            Ver();
            TrGenel = SqlConnections.GetBaglanti().BeginTransaction();
            Uretim.Kaydet(SqlConnections.GetBaglanti(), TrGenel, Uretim.BasitUretimID);
            UretimDetay.Kaydet(SqlConnections.GetBaglanti(), TrGenel, Uretim.BasitUretimID);

            clsTablolar.Stok.csStokHr UretilenStok = new clsTablolar.Stok.csStokHr();
            UretilenStok.AhandaKolaycaBasitUretimdetaydanStokHrEEkledik(SqlConnections.GetBaglanti(), TrGenel, Uretim.BasitUretimID);

            TrGenel.Commit();
        }
        private void frmStokHrGirisi_Load(object sender, EventArgs e)
        {
            TrGenel = SqlConnections.GetBaglanti().BeginTransaction();

            Hareket = new clsTablolar.Stok.csStokHr(SqlConnections.GetBaglanti(), TrGenel, _StokHrID);
        }