public void StokHareketiKaydet() { DynamicTryCatch.TryCatchLogla(() => { dtoStokHareket = new StokHareketleriDto(); dtoStokHareket.FisNo = txtFisNumarasi.Text; dtoStokHareket.Miktar = FormHelpers.TextNullCheck(txtMiktar.Text) ? Convert.ToInt32(txtMiktar.Text) : -1; dtoStokHareket.HareketDurumId = Convert.ToInt32(lookUpDurum.EditValue) > 0 ? Convert.ToInt32(lookUpDurum.EditValue) : -1; dtoStokHareket.KayitTarihi = dtpKayitTarihi.DateTime; dtoStokHareket.KullaniciId = kullaniciId; dtoStokHareket.StokKartId = Convert.ToInt32(lookUpUrun.EditValue) > 0 ? Convert.ToInt32(lookUpUrun.EditValue) : -1; dtoStokHareket.AktifMi = true; }, MethodBase.GetCurrentMethod().Name); StokHareketleriBll stokHareketleri = new StokHareketleriBll(); CudEnums enums = stokHareketleri.StokHareketiEkle(dtoStokHareket); if (enums == CudEnums.IslemBasarili) { FormHelpers.ClearTextboxes(this.Controls); dtpKayitTarihi.DateTime = DateTime.Now; } FormHelpers.ShowMessage(enums); }
private void StokHareketleriDuzenle() { dtoStokHareket = new StokHareketleriDto() { AktifMi = true, HareketId = viewStokHareket.HareketId }; dtoStokHareket.FisNo = txtFisNumarasi.Text; dtoStokHareket.Miktar = FormHelpers.TextNullCheck(txtMiktar.Text) ? Convert.ToInt32(txtMiktar.Text) : -1; dtoStokHareket.HareketDurumId = Convert.ToInt32(lookUpDurum.EditValue) > 0 ? Convert.ToInt32(lookUpDurum.EditValue) : -1; dtoStokHareket.KayitTarihi = dtpKayitTarihi.DateTime; dtoStokHareket.KullaniciId = kullaniciId; dtoStokHareket.StokKartId = Convert.ToInt32(lookUpUrun.EditValue) > 0 ? Convert.ToInt32(lookUpUrun.EditValue) : -1; StokHareketleriBll stokHareketleriBLL = new StokHareketleriBll(); CudEnums enums = stokHareketleriBLL.StokHareketiGuncelle(dtoStokHareket); if (enums == CudEnums.IslemBasarili) { FormHelpers.ClearTextboxes(this.Controls); dtpKayitTarihi.DateTime = DateTime.Now; } FormHelpers.ShowMessage(enums); }
public frmStokHareketleri(int _kullaniciId) { InitializeComponent(); bllStokHareketleri = new StokHareketleriBll(); StokHareketleriniGetir(); kullaniciId = _kullaniciId; }