public TblDemirbasServerPoco guncelleDemirbasServer(int id, string departman, string serveradi, string ip, string marka, string model, string cpu, string memory, string disc, string aygitcdrw, string sistemreferansno, string ekranreferans, string sistemyazilimi) { TblDemirbasServerPoco demirbasServer = new TblDemirbasServerPoco(); DataTable dataTable = new DataTable(); _TblDemirbasServerDAO.updateDemirbasServer(id, departman, serveradi, ip, marka, model, cpu, memory, disc, aygitcdrw, sistemreferansno, ekranreferans, sistemyazilimi); foreach (DataRow dr in dataTable.Rows) { dr["departman"] = demirbasServer.departman; dr["serveradi"] = demirbasServer.serveradi; dr["ip"] = demirbasServer.ip; dr["marka"] = demirbasServer.marka; dr["model"] = demirbasServer.model; dr["cpu"] = demirbasServer.cpu; dr["memory"] = demirbasServer.memory; dr["disc"] = demirbasServer.disc; dr["aygitcdrw"] = demirbasServer.aygitcdrw; dr["sistemreferansno"] = demirbasServer.sistemreferansno; dr["ekranreferans"] = demirbasServer.ekranreferans; dr["sistemyazilimi"] = demirbasServer.sistemyazilimi; } return(demirbasServer); }
public TblDemirbasServerPoco silDemirbasServer(int id) { TblDemirbasServerPoco demirbasServer = new TblDemirbasServerPoco(); DataTable dataTable = new DataTable(); _TblDemirbasServerDAO.deleteDemirbasServer(Convert.ToInt32(id)); return(demirbasServer); }
private void btnSil_Click(object sender, EventArgs e) { TblDemirbasServerPoco DemirbasServer = new TblDemirbasServerPoco(); DemirbasServer = _TblDemirbasServerBLL.silDemirbasServer(Convert.ToInt32(txtID.Text)); MessageBox.Show("Silme Isleminiz Tamamlanmistir..."); Listele(); }
private void btnGuncelle_Click(object sender, EventArgs e) { TblDemirbasServerPoco DemirbasServer = new TblDemirbasServerPoco(); DemirbasServer = _TblDemirbasServerBLL.guncelleDemirbasServer(Convert.ToInt32(txtID.Text), txtDepartman.Text, txtServerAdi.Text, txtIp.Text, txtMarka.Text, txtModel.Text, txtCpu.Text, txtMemory.Text, txtDisc.Text, txtAygitCdRw.Text, txtSistemReferansNo.Text, txtEkranReferans.Text, txtSistemYazilimi.Text); MessageBox.Show("Guncelleme Isleminiz Tamamlanmistir..."); Listele(); }