Exemplo n.º 1
0
 public void BindRpt()
 {
     MaintenanceClassRepository repository = new MaintenanceClassRepository();
     IList<MaintenanceClass> maintenanceClasses = repository.GetMuchBySpecialty(
         Request.QueryString["specialtyId"]);
     rptClass.DataSource = maintenanceClasses;
     rptClass.DataBind();
 }
Exemplo n.º 2
0
 protected void BindClass()
 {
     MaintenanceClassRepository repository = new MaintenanceClassRepository();
     IList<MaintenanceClass> maitenanceClasses = repository.GetMuchBySpecialty(Request.QueryString["s"]);
     foreach (MaintenanceClass maintenanceClass in maitenanceClasses)
     {
         ddlClass.Items.Add(new ListItem(maintenanceClass.equipmentClassName, maintenanceClass.Id.ToString()));
     }
 }