Пример #1
0
        private void LoadDrivers()
        {
            int      controlAreaId     = 2;
            string   trafficAreas      = "24";
            DateTime startDate         = new DateTime(2005, 12, 02, 00, 00, 00);
            DateTime endDate           = new DateTime(2006, 02, 03, 23, 59, 59);
            bool     onlyShowAvailable = false;

            using (Facade.IResource facResource = new Facade.Resource())
                m_data = facResource.GetDepotCodeResources(controlAreaId, trafficAreas, startDate, endDate, onlyShowAvailable,
                                                           Orchestrator.Globals.Configuration.DriverRequestHoursAhead);

            ((ComponentArt.Web.UI.Grid)NavBar.Items[0].Items[0].FindControl("dgDrivers")).DataSource = m_data.Tables[0];
            ((ComponentArt.Web.UI.Grid)NavBar.Items[0].Items[0].FindControl("dgDrivers")).DataBind();
            //ComponentArt.Web.UI.NavBarItem ni = NavBar1.FindItemById("i_Drivers");
            //((ComponentArt.Web.UI.Grid)ni.Items[0].FindControl("dgDrivers")).DataSource= m_data.Tables[0];
            //((ComponentArt.Web.UI.Grid)ni.Items[0].FindControl("dgDrivers")).DataBind();
        }