public bool EditDrugBatch(DrugBatch drugBatch) { DrugBatch ret = DrugBatchRepository.GetInstance().Update(drugBatch); if (ret != null) { return(true); } else { return(false); } }
public List <DrugBatch> getPharmacyDrugBatch(string DrugPk) { lock (this) { ClsObject PatientEncounter = new ClsObject(); ClsUtility.Init_Hashtable(); ClsUtility.AddParameters("@DrugPk", SqlDbType.Int, DrugPk); DataTable theDT = (DataTable)PatientEncounter.ReturnObject(ClsUtility.theParams, "sp_getPharmacyBatch", ClsUtility.ObjectEnum.DataTable); List <DrugBatch> list = new List <DrugBatch>(); for (int i = 0; i < theDT.Rows.Count; i++) { DrugBatch drg = new DrugBatch(); drg.id = theDT.Rows[i]["id"].ToString(); drg.batch = theDT.Rows[i]["Name"].ToString(); list.Add(drg); } return(list); } }
public bool EditDrugBatch(DrugBatch drugBatch) { return(iDrugService.EditDrugBatch(drugBatch)); }
public bool DeleteDrugBatch(DrugBatch drugBatch) { return(iDrugService.DeleteDrugBatch(drugBatch)); }
public DrugBatch AddDrugBatch(DrugBatch drugBatch) { return(iDrugService.AddDrugBatch(drugBatch)); }
public DrugIncrementerViewModel(Drug drug, ILogWriter logWriter) { _logWriter = logWriter; batch = new DrugBatch(drug); }
public DrugIncrementerViewModel() { batch = new DrugBatch(); }
public bool DeleteDrugBatch(DrugBatch drugBatch) { return(DrugBatchRepository.GetInstance().Delete(drugBatch.DrugId)); }
public DrugBatch AddDrugBatch(DrugBatch drugBatch) { return(DrugBatchRepository.GetInstance().Create(drugBatch)); }