Exemplo n.º 1
0
 private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (e.Row != null)
     {
         DataGridViewRow  row     = this.dataGridView1.Rows[e.Row.Index - 1];
         IDrugTypeService service = ServiceContainer.GetService <IDrugTypeService>();
         row.Cells[0].Value = service.GetMaxID();
         row.Cells[1].Value = service.GetMaxCode();
     }
 }
Exemplo n.º 2
0
 public DepotController(IDrugTypeService drugTypeService, IDrugUnitService drugUnitService, IDepotService depotService)
 {
     _drugTypeService = drugTypeService;
     _drugUnitService = drugUnitService;
     _depotService    = depotService;
 }
 public DrugsController(IDrugService drugService, IDrugTypeService drugTypeService, IDrugInRoomService drugInRoomService)
 {
     _drugService       = drugService;
     _drugTypeService   = drugTypeService;
     _drugInRoomService = drugInRoomService;
 }
Exemplo n.º 4
0
 public DrugTypeController(IDrugTypeService drugTypeService)
 {
     _drugTypeService = drugTypeService;
 }