protected void ListboxFleet_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        DataSet   ds = generateArrayIndex();
        DataTable dt = new DataTable();

        dt            = ds.Tables[0];
        dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns[0] };
        dt.Merge(ds.Tables[1]);
    }
    protected void ListboxFleet_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        DataSet ds = generateArrayIndex();

        if (!liveFollow.Checked)
        {
            MapLaod(ds);
        }
        DataTable dt = new DataTable();

        dt            = ds.Tables[0];
        dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns[0] };
        dt.Merge(ds.Tables[1]);
        //RadGrid1.DataSource = dt;
        //RadGrid1.Rebind();
    }
    protected void car_listbox_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        DataSet   ds = generateArrayIndex();
        DataTable dt = new DataTable();

        dt            = ds.Tables[0];
        dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns[0] };
        dt.Merge(ds.Tables[1]);

        // //ClientScript.RegisterArrayDeclaration("latitudeArr", "'22.0'");
        //// Page.ClientScript.RegisterStartupScript(Page.GetType(), "MyKey", "placeMarker('" + 20 + "', '" + latitude + "', '" + 74.0 + "', '" + 50 + "', '" + 15 + "');", true);
        // //System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanelCarListBox, UpdatePanelCarListBox.GetType(), "MyKey", "initialize('" + 1 + "');", true);
        // //System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanelCarListBox, UpdatePanelCarListBox.GetType(), "MyKey1", "initialize('" + 2 + "');", true);
        // //System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanelCarListBox, UpdatePanelCarListBox.GetType(), "MyKey2", "initialize('" + 3 + "');", true);
        // //System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanelCarListBox, UpdatePanelCarListBox.GetType(), "MyKey3", "initialize('" + 4 + "');", true);
        // System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanelCarListBox, UpdatePanelCarListBox.GetType(), "drop", "drop('"+1+"');", true);
        plotMaps(dt);
    }
Beispiel #4
0
        protected void JobCorrespondenceSelection_OnItemCheck(Object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
        {
            InitializeJobDescriptionGrid();

            System.Data.DataTable jobDescriptionTable = (System.Data.DataTable)JobDescriptionGrid.DataSource;


            Client.Core.Reference.Correspondence selectedCorrespondence = MercuryApplication.CorrespondenceGet(Convert.ToInt64(e.Item.Value), true);

            if (selectedCorrespondence != null)
            {
                foreach (Client.Core.Reference.CorrespondenceContent currentContent in selectedCorrespondence.Content.Values)
                {
                    jobDescriptionTable.Rows.Add(

                        selectedCorrespondence.Id,

                        selectedCorrespondence.Name,

                        currentContent.Id,

                        currentContent.ReportNameRaw,

                        String.Empty,

                        String.Empty,

                        String.Empty,

                        String.Empty

                        );
                }
            }


            JobDescriptionGrid.Rebind();

            return;
        }
        protected void car_listbox_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
        {
            DataTable dt = generateArrayIndex();

            ViewState["dataTableCarriers"] = dt;
        }