Exemplo n.º 1
0
 public DataTable LoadPharcuticalsTable()
 {
     dalObj = new PharmacuticlesDAL();
     return dalObj.LoadPharmacuticlesTable();
 }
Exemplo n.º 2
0
 public void DeletePharmacuticles(PharmacuticlesInfo obj)
 {
     dalObj = new PharmacuticlesDAL();
     dalObj.DeletePharmacuticles(obj);
 }
Exemplo n.º 3
0
 public void SavePharmacuticles(PharmacuticlesInfo obj)
 {
     dalObj = new PharmacuticlesDAL();
     dalObj.SavePharmacuticles(obj);
 }
Exemplo n.º 4
0
 public void UpdatePharmacuticles(PharmacuticlesInfo obj)
 {
     dalObj = new PharmacuticlesDAL();
     dalObj.UpdatePharmacuticles(obj);
 }
Exemplo n.º 5
0
 private void FillTxtField(PurchaseInfo purchaseInfo)
 {
     txtID.Text = purchaseInfo.PurchaseId;
     String pharmaName = new PharmacuticlesDAL().GetPharmaName(purchaseInfo.SupplierId);
     String medicineName = new MedicineDAL().GetMedicineName(purchaseInfo.MedicineId);
     cmbSupplierId.SelectedIndex = cmbSupplierId.FindStringExact(pharmaName);
     cmbMedicineID.SelectedIndex = cmbMedicineID.FindStringExact(medicineName);
     txtPurchaseQty.Text = purchaseInfo.Quantity.ToString();
     txtPrice.Text = purchaseInfo.Price.ToString();
 }