public TblDemirbasScannerPoco silDemirbasScanner(int id) { TblDemirbasScannerPoco demirbasScanner = new TblDemirbasScannerPoco(); DataTable dataTable = new DataTable(); _TblDemirbasScannerDAO.deleteDemirbasScaner(Convert.ToInt32(id)); return(demirbasScanner); }
private void btnSil_Click(object sender, EventArgs e) { TblDemirbasScannerPoco DemirbasScanner = new TblDemirbasScannerPoco(); DemirbasScanner = _TblDemirbasScannerBLL.silDemirbasScanner(Convert.ToInt32(txtID.Text)); MessageBox.Show("Silme Isleminiz Tamamlanmistir..."); Listele(); }
private void btnGuncelle_Click(object sender, EventArgs e) { TblDemirbasScannerPoco DemirbasScanner = new TblDemirbasScannerPoco(); DemirbasScanner = _TblDemirbasScannerBLL.guncelleDemirbasScanner(Convert.ToInt32(txtID.Text), txtModel.Text, txtTip.Text, txtReferansNo.Text, txtDepartman.Text, txtKullanici.Text, txtYeniScannerVerilisTarihi.Text); MessageBox.Show("Guncelleme Isleminiz Tamamlanmistir..."); Listele(); }
public TblDemirbasScannerPoco guncelleDemirbasScanner(int id, string model, string tip, string referansno, string departman, string kullanici, string yeniscannerverilistarihi) { TblDemirbasScannerPoco demirbasScanner = new TblDemirbasScannerPoco(); DataTable dataTable = new DataTable(); _TblDemirbasScannerDAO.updateDemirbasScanner(id, model, tip, referansno, departman, kullanici, yeniscannerverilistarihi); foreach (DataRow dr in dataTable.Rows) { dr["model"] = demirbasScanner.model; dr["tip"] = demirbasScanner.tip; dr["referansno"] = demirbasScanner.referansno; dr["departman"] = demirbasScanner.departman; dr["kullanici"] = demirbasScanner.kullanici; dr["yeniscannerverilistarihi"] = demirbasScanner.yeniscannerverilistarihi; } return(demirbasScanner); }