Beispiel #1
0
 private void BindEvts()
 {
     if (ViewState["MemIdTemp"] != null)
     {
         TemplateDetailPageManager ObjTemplateDetailPageManager = new TemplateDetailPageManager();
         //recupera il template
         TemplateDTO ObjTemplateDTO;
         ObjTemplateDTO = ObjTemplateDetailPageManager.GetTemplate(Convert.ToInt32(ViewState["MemIdTemp"].ToString()));
         string CboAbilitato = "";
         if (ObjTemplateDTO.enabled.ToString() == "NO")
         {
             CboAbilitato = "False";
         }
         else
         {
             CboAbilitato = "True";
         }
         Utility.SetDropByValue(CboEnable, CboAbilitato);
         TxtTemplatesName.Text = ObjTemplateDTO.description;
         //Recupera gli eventi del template
         List <EventoDTO> LstEvtDto = ObjTemplateDetailPageManager.GetTemplateEvents(ObjTemplateDTO.id);
         //List<Evento> Lst = ObjEvtDto.modelEvents.ToList();
         RptSelEvt.DataSource = LstEvtDto;
         RptSelEvt.DataBind();
     }
 }
Beispiel #2
0
        //protected void BtnClose_Click(object sender, EventArgs e)
        //{
        //    DivError.Attributes.Add("Class", "ParentDivDeleting Disattivato");

        //}

        #endregion



        #region routine private alla pagina

        private void BindBrotherEvts()
        {
            TrackManagement2PageManager ObjTrackManagement2PageManager = new TrackManagement2PageManager();
            //arrivato qui-----------------------------
            //startDate=2018-08-01&endDate=2018-08-31&
            //EventoDTO ObjEvtDto = ObjTrackManagement2PageManager.GetEvento(Convert.ToInt32(Request.QueryString["bankReportEntryId"].ToString()));
            //List<EventoDTO> LstEvtDto = new List<EventoDTO>();
            //LstEvtDto.Add(ObjEvtDto);
            List <EventoDTO> LstEvtDto = new List <EventoDTO>();

            LstEvtDto = ObjTrackManagement2PageManager.GetEventi(Convert.ToDateTime("1000-01-01"), Convert.ToDateTime("3000-01-01"), false, Convert.ToInt32(Request.QueryString["bankReportEntryId"].ToString()));


            RptSelEvt.DataSource = LstEvtDto;
            RptSelEvt.DataBind();


            ////Finally, set the datasource of the repeater
            //Repeater1.DataSource = pgitems;
            //Repeater1.DataBind();
        }