public int insertCoreDetailPrescription(DetailPrescriptionDTO newDelPrescription) { int flagInsert = new DETAIL_PRESCRIPTIONTableAdapter().insertDelPrescriptionQuery( newDelPrescription.IdPrescription, newDelPrescription.IdMedicine, newDelPrescription.Number, newDelPrescription.UseHelp, newDelPrescription.Price ); return(flagInsert); }
public int updateCoreDetailPrescription(DetailPrescriptionDTO originalDelPrescription) { int flagUpdate = new DETAIL_PRESCRIPTIONTableAdapter().updateDelPrescriptionQuery( originalDelPrescription.IdPrescription, originalDelPrescription.IdMedicine, originalDelPrescription.Number, originalDelPrescription.UseHelp, originalDelPrescription.Price, originalDelPrescription.IdDetailPrescription ); return(flagUpdate); }
public int insertDelPrescription( string idPrescription, string idMedicine, string number, string useHelp, string price) { DetailPrescriptionDTO currentDelPrescriptionDatarow = new DetailPrescriptionDTO(); currentDelPrescriptionDatarow.IdPrescription = Convert.ToInt32(idPrescription); currentDelPrescriptionDatarow.IdMedicine = Convert.ToInt32(idMedicine); currentDelPrescriptionDatarow.Number = Convert.ToInt32(number); currentDelPrescriptionDatarow.UseHelp = Convert.ToString(useHelp); currentDelPrescriptionDatarow.Price = Convert.ToDecimal(price); return(delPrescriptionDal.insertCoreDetailPrescription(currentDelPrescriptionDatarow)); }