コード例 #1
0
ファイル: Model1.Designer.cs プロジェクト: sametson/Test
 /// <summary>
 /// Create a new HamStok object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="tarih">Initial value of the Tarih property.</param>
 /// <param name="irsaliyeNo">Initial value of the IrsaliyeNo property.</param>
 /// <param name="aciklama">Initial value of the Aciklama property.</param>
 /// <param name="isAktif">Initial value of the IsAktif property.</param>
 public static HamStok CreateHamStok(global::System.Int32 id, global::System.DateTime tarih, global::System.String irsaliyeNo, global::System.String aciklama, global::System.Boolean isAktif)
 {
     HamStok hamStok = new HamStok();
     hamStok.Id = id;
     hamStok.Tarih = tarih;
     hamStok.IrsaliyeNo = irsaliyeNo;
     hamStok.Aciklama = aciklama;
     hamStok.IsAktif = isAktif;
     return hamStok;
 }
コード例 #2
0
ファイル: Model1.Designer.cs プロジェクト: sametson/Test
 /// <summary>
 /// Deprecated Method for adding a new object to the HamStok EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHamStok(HamStok hamStok)
 {
     base.AddObject("HamStok", hamStok);
 }
コード例 #3
0
ファイル: HamStok.cs プロジェクト: sametson/Test
        private void gridView2_RowClick(object sender, RowClickEventArgs e)
        {
            int hamStokId = Convert.ToInt32(gridView2.GetFocusedRowCellValue("Id"));

            seciliHamStok = new Stok.Services.HamStok().GetbyId(hamStokId);
            txtAciklama.Text = seciliHamStok.Aciklama;
            txtIrsaliyeNo.Text = seciliHamStok.IrsaliyeNo;
            dtTarih.EditValue = seciliHamStok.Tarih;
            GridHamStokDetayDoldur();
        }