Beispiel #1
0
 public void FillRunningOrdersGrid(GridView gv, bool display)
 {
     if (!string.IsNullOrEmpty(Show_ID))
     {
         Guid?show_Final_Class_ID = null;
         if (!string.IsNullOrEmpty(Show_Final_Class_ID) && Show_Final_Class_ID != new Guid().ToString())
         {
             show_Final_Class_ID = new Guid(Show_Final_Class_ID);
         }
         Guid        show_ID  = new Guid(Show_ID);
         List <Guid> showList = new List <Guid>();
         showList.Add(show_ID);
         LinkedShows        ls     = new LinkedShows(_connString);
         List <LinkedShows> lsList = ls.GetLinked_ShowsByParent_ID(show_ID);
         if (lsList != null && lsList.Count > 0)
         {
             foreach (LinkedShows linkedShow in lsList)
             {
                 showList.Add(linkedShow.Child_Show_ID);
             }
         }
         RunningOrders.SetDay1Show_ID(_connString, showList);
         List <OwnersDogsClassesDrawn> oDCDList = OwnersDogsClassesDrawn.GetOwnersDogsClassesDrawnListData(_connString, show_ID, show_Final_Class_ID, display);
         if (display)
         {
             gv.DataSource = oDCDList;
             gv.DataBind();
         }
         else
         {
             OwnersDogsClassesDrawnList = oDCDList;
         }
     }
 }
Beispiel #2
0
        public void FillRunningOrdersGrid(DataGridView gv, bool display)
        {
            List <Guid> showList = new List <Guid>();

            showList.Add(_showID);
            LinkedShows        ls     = new LinkedShows(_connString);
            List <LinkedShows> lsList = ls.GetLinked_ShowsByParent_ID(_showID);

            if (lsList != null && lsList.Count > 0)
            {
                foreach (LinkedShows linkedShow in lsList)
                {
                    showList.Add(linkedShow.Child_Show_ID);
                }
            }
            RunningOrders.SetDay1Show_ID(_connString, showList);
            List <OwnersDogsClassesDrawn> oDCDList = OwnersDogsClassesDrawn.GetOwnersDogsClassesDrawnListData(_connString, _showID, _showClassID, display);

            gv.DataSource = oDCDList;
            //gv.Columns[0].Visible = false;
            //gv.Columns[5].Visible = false;
            gv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }