Пример #1
0
 private void BindGrid()
 {
     try
     {
         grdTypeFilm.DataSource = TypeFilmService.TypeFilm_GetByAll();
         grdTypeFilm.DataBind();
     }
     catch (Exception ex)
     {
         WebMsgBox.Show(ex.Message);
     }
 }
Пример #2
0
        private void LoadFilterTypeFilmDropDownList()
        {
            ddlFilterypeFilm.Items.Clear();
            ddlFilterypeFilm.Items.Add(new ListItem(" -- View all -- ", ""));
            var dt = new DataTable();

            dt = TypeFilmService.TypeFilm_GetByAll();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ddlFilterypeFilm.Items.Add(new ListItem(Common.StringClass.ShowNameLevel(dt.Rows[i]["NameT"].ToString(), "0"), dt.Rows[i]["TypId"].ToString()));
            }
            ddlFilterypeFilm.DataBind();
        }
Пример #3
0
        private void ViewTypeFilm()
        {
            ddlTypId_Update.Items.Clear();
            ddlTypId_Update.Items.Add(new ListItem("=== Choose TypeFilm ===", "0"));
            var dt = new DataTable();

            dt = TypeFilmService.TypeFilm_GetByAll();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ddlTypId_Update.Items.Add(new ListItem(Common.StringClass.ShowNameLevel(dt.Rows[i]["NameT"].ToString(), ""), dt.Rows[i]["TypId"].ToString()));
            }
            ddlTypId_Update.DataBind();
            dt.Rows.Clear();
        }
Пример #4
0
 private void LoadFilterNewsNameAutocomplete()
 {
     try
     {
         string strName = "";
         var    dt      = new DataTable();
         dt = TypeFilmService.TypeFilm_GetByAll();
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             strName += dt.Rows[i]["NameT"].ToString() + "|";
         }
         ListTypeFilm = Common.StringClass.Check(strName) && strName.Substring(strName.Length - 1).Contains("|")
                        ? strName.Substring(0, strName.Length - 1)
                        : strName;
     }
     catch (Exception ex)
     {
         WebMsgBox.Show(ex.Message);
     }
 }