public void Delete(Forwarder FORWARDER) { using (DbManager db = new DbManager()) { Accessor.Query.Delete(db, FORWARDER); } }
public void Save(Forwarder Forwader) { using (DbManager db = new DbManager()) { if (Forwader.RecordNumber > 0) { Accessor.Query.Update(db, Forwader); } else { Accessor.Query.Insert(db, Forwader); } } }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { FORWARDER = PreviousPage.FORWARDER; hfForwarderRecordNumber.Value = FORWARDER.RecordNumber.ToString(); fForwarder1.ForwarderAddress = FORWARDER.ForwarderAddress; fForwarder1.ForwarderContact = FORWARDER.ForwarderContact; fForwarder1.ForwarderName = FORWARDER.ForwarderName; txtSearch.Focus(); } txtSearch.Focus(); }
protected void btnAddCustomer_Click(object sender, EventArgs e) { Image imgRecordNumber = (Image)gvForwarders.SelectedRow.FindControl("imgRecordNumber"); FORWARDER = FM.GetForwarderByKey(long.Parse(imgRecordNumber.AlternateText)); }