コード例 #1
0
ファイル: ucStokKart.cs プロジェクト: ismsrky/MaviElmasOtoSis
 private void GridViewStokKart_Click(object sender, EventArgs e)
 {
     GridViewStokKart.OptionsSelection.EnableAppearanceFocusedRow = true;
     if (GridViewStokKart.GetFocusedDataRow() != null && !Focusta)
     {
         Focus_Kart();
     }
     _Focusta = false;
 }
コード例 #2
0
ファイル: ucStokKart.cs プロジェクト: ismsrky/MaviElmasOtoSis
        void Focus_Kart()
        {
            if (_Yukleme || GridViewStokKart.GetFocusedDataRow() == null)
            {
                return;
            }

            ucStokKartDetay1.Yukle_Kart(Convert.ToInt32(GridViewStokKart.GetFocusedRowCellValue("KartID")));
        }
コード例 #3
0
 void Sec()
 {
     if (GridViewStokKart.RowCount == 0 || GridViewStokKart.GetFocusedDataRow() == null)
     {
         _Secilen_KalemAdi  = null;
         _Secilen_KartID    = 0;
         _Secilen_ParcaNo   = null;
         _Secilen_BarkodNo  = null;
         _Secilen_StokGrup  = null;
         _Secilen_StokBirim = null;
         this.DialogResult  = DialogResult.Abort;
     }
     else
     {
         _Secilen_KalemAdi  = GridViewStokKart.GetFocusedDataRow()["KalemAdi"].ToString();
         _Secilen_KartID    = Convert.ToInt32(GridViewStokKart.GetFocusedDataRow()["KartID"]);
         _Secilen_ParcaNo   = GridViewStokKart.GetFocusedDataRow()["ParcaNo"].ToString();
         _Secilen_BarkodNo  = GridViewStokKart.GetFocusedDataRow()["BarkodNo"].ToString();
         _Secilen_StokGrup  = GridViewStokKart.GetFocusedDataRow()["StokGrup"].ToString();;
         _Secilen_StokBirim = GridViewStokKart.GetFocusedDataRow()["StokBirim"].ToString();;
         this.DialogResult  = DialogResult.OK;
     }
 }