예제 #1
0
 private void BindStanze()
 {
     if (Request.QueryString["idbl"] != null)
     {
         Servizi _Servizi    = new Servizi();
         string  idPiano     = Request.QueryString["idpiano"];
         string  idEdificio  = Request.QueryString["idbl"];
         string  descrizione = Request.QueryString["descrizione"].Trim();
         DataSet ds          = _Servizi.GetStanzeBuilding(int.Parse(idEdificio), int.Parse(idPiano), descrizione);
         MyDataGrid1.DataSource = ds;
         elementiTrovati        = Convert.ToString(ds.Tables[0].Rows.Count);
         MyDataGrid1.DataBind();
     }
 }
예제 #2
0
 private void BindEqstd()
 {
     if (Request.QueryString["idbl"] != null)
     {
         Servizi _Servizi = new Servizi();
         DataSet ds       = _Servizi.GetAllEQSTD(
             Convert.ToInt32(Request.QueryString["idbl"]),
             Convert.ToInt32(Request.QueryString["idpiano"]),
             Convert.ToInt32(Request.QueryString["IdServizio"]),
             Request.QueryString["descrizione"].Trim());
         MyDataGrid1.DataSource = ds;
         elementiTrovati        = Convert.ToString(ds.Tables[0].Rows.Count);
         MyDataGrid1.DataBind();
     }
 }