protected void oldTrack_Click(object sender, EventArgs e) { if (datevalidate()) { if (chkPlotLBS.Checked) { Timer1.Enabled = false; autoRefresh.Checked = false; updatePanelControlPanel.Update(); DataSet ds = new System.Data.DataSet(); cls_Reports obj_report = new cls_Reports(); obj_report.carrierId = Convert.ToInt32(txtVehName.SelectedItem.Value); obj_report.dateStart = dateFrom.SelectedDate.ToString(); obj_report.dateEnd = dateTo.SelectedDate.ToString(); // DateTime dt = (DateTime)dateFrom.SelectedDate; ds = obj_report.fn_TrackcarrierWithLBS(obj_report, (DateTime)dateFrom.SelectedDate, (DateTime)dateTo.SelectedDate); plotTrack(ds); plotLBS(ds); UpdatePanelReplayMap.Update(); } else { Timer1.Enabled = false; autoRefresh.Checked = false; updatePanelControlPanel.Update(); DataSet ds = new System.Data.DataSet(); cls_Reports obj_report = new cls_Reports(); obj_report.carrierId = Convert.ToInt32(txtVehName.SelectedItem.Value); obj_report.dateStart = dateFrom.SelectedDate.ToString(); obj_report.dateEnd = dateTo.SelectedDate.ToString(); ds = obj_report.fn_Trackcarrier(obj_report); plotTrack(ds); UpdatePanelReplayMap.Update(); } } }
protected void oldTrack_Click(object sender, EventArgs e) { if (datevalidate()) { System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanel9, UpdatePanel9.GetType(), "clearMarkers", "clearMarkers();", true); if (chkPlotLBS.Checked) { Timer1.Enabled = false; autoRefresh.Checked = false; updatePanelControlPanel.Update(); DataSet ds = new System.Data.DataSet(); cls_Reports obj_report = new cls_Reports(); obj_report.carrierId = Convert.ToInt32(txtVehName.SelectedItem.Value); obj_report.dateStart = dateFrom.SelectedDate.ToString(); obj_report.dateEnd = dateTo.SelectedDate.ToString(); // DateTime dt = (DateTime)dateFrom.SelectedDate; ds = obj_report.fn_TrackcarrierWithLBS(obj_report, (DateTime)dateFrom.SelectedDate, (DateTime)dateTo.SelectedDate); plotTrack(ds); plotLBS(ds); } else { Timer1.Enabled = false; autoRefresh.Checked = false; updatePanelControlPanel.Update(); DataSet ds = new System.Data.DataSet(); cls_Reports obj_report = new cls_Reports(); obj_report.carrierId = Convert.ToInt32(txtVehName.SelectedItem.Value); obj_report.dateStart = dateFrom.SelectedDate.ToString(); obj_report.dateEnd = dateTo.SelectedDate.ToString(); ds = obj_report.fn_Trackcarrier(obj_report); plotTrack(ds); } } }