Beispiel #1
0
    protected void btnClearRunningOrders_Click(object sender, EventArgs e)
    {
        MembershipUser userInfo = Membership.GetUser();
        Guid           user_ID  = (Guid)userInfo.ProviderUserKey;

        RunningOrders.ClearRunningOrders(_connString, Show_ID, user_ID);
    }
Beispiel #2
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 #3
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;
        }
Beispiel #4
0
 private void btnAllocateRunningOrders_Click(object sender, EventArgs e)
 {
     RunningOrders.AllocateRunningOrders(_connString, _showID.ToString(), _userID);
 }