void insertMedical() { string name = txtName.Text; Medical medical = new Medical(name); dbController.insertMedical(medical); }
public bool insertMedical(Medical medical) { if (medicalMapper.insertMedical(medical)) { OnInsertEntity(new EntityArgs(medical)); return(true); } return(false); }
void updateMedical() { medical = new Medical() { Name = txtName.Text, }; dbController.updateMedical(origMedical, medical); }
public bool insertMedicalTransaction(Invoice transaction, Medical medical, int qty, decimal subtotal) { if (medicalTransactionMapper.insertMedicalTransaction(transaction, medical, qty, subtotal)) { OnInsertEntity(new EntityArgs(transaction)); return(true); } return(false); }
public bool updateMedical(Medical oldMedical, Medical newMedical) { if (medicalMapper.updateMedical(oldMedical, newMedical)) { OnUpdateEntity(new EntityArgs(newMedical)); return(true); } return(false); }
public bool updateMedical(Medical oldMedical, Medical newMedical) { if (oldMedical.Name == newMedical.Name) return false; string condition = string.Format(" medical_name = '{0}'", oldMedical.Name); string medical_name = string.Format(" medical_name = '{0}'", newMedical.Name); return update( updateSet(condition, medical_name) ); }
public bool updateMedical(Medical oldMedical, Medical newMedical) { if (oldMedical.Name == newMedical.Name) { return(false); } string condition = string.Format(" medical_name = '{0}'", oldMedical.Name); string medical_name = string.Format(" medical_name = '{0}'", newMedical.Name); return(update( updateSet(condition, medical_name) )); }
void mappedServiceToFields(Service service) { if (service is GPP) { origGPP = service as GPP; origGrooming = dbController.groomingMapper.getGroomingFromId(origGPP.grooming_id); txtName.Text = origGrooming.Name; txtPrice.Text = origGPP.price.ToString(); cbSize.Text = origGPP.petsize.ToString(); } else if (service is Medical) { origMedical = service as Medical; txtName.Text = origMedical.Name; rbMedical.Checked = true; txtPrice.Clear(); } }
public bool insertMedicalTransaction(Invoice transaction, Medical medical, int qty, decimal subtotal) { if (medicalTransactionMapper.insertMedicalTransaction(transaction, medical, qty, subtotal)) { OnInsertEntity(new EntityArgs(transaction)); return true; } return false; }
public bool insertMedical(Medical medical) { if(medicalMapper.insertMedical(medical)){ OnInsertEntity(new EntityArgs(medical)); return true; } return false; }
public bool insertMedicalTransaction(Invoice transaction, Medical medical, int qty, decimal subtotal) { return create( insertValues(medical.Id, qty, subtotal, transaction.InvoiceId) ); }
public bool insertMedical(Medical medical) { return(create(insertValues("null", medical.Name))); }
public bool insertMedical(Medical medical) { return create(insertValues("null", medical.Name)); }
public bool insertMedicalTransaction(Invoice transaction, Medical medical, int qty, decimal subtotal) { return(create( insertValues(medical.Id, qty, subtotal, transaction.InvoiceId) )); }
Medical getMedical() { Medical medical = dbController.medicalMapper.getMedicalFromName(cbService.Text); return(medical); }
public bool updateMedical(Medical oldMedical, Medical newMedical) { if (medicalMapper.updateMedical(oldMedical, newMedical)) { OnUpdateEntity(new EntityArgs(newMedical)); return true; } return false; }