本文整理汇总了C#中disaster.Select方法的典型用法代码示例。如果您正苦于以下问题:C# disaster.Select方法的具体用法?C# disaster.Select怎么用?C# disaster.Select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类disaster
的用法示例。
在下文中一共展示了disaster.Select方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ddlDisaster_SelectedIndexChanged
//display the disaster on screen
protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
disaster disaster = new disaster();
GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
disaster = disaster.Select(Convert.ToInt32(ddlDisaster.SelectedItem.Value));
nLat = disaster.disaster_north_latitude;
nLong = disaster.disaster_north_longitude;
sLat = disaster.disaster_south_latitude;
sLong = disaster.disaster_south_longitude;
eLat = disaster.disaster_east_latitude;
eLong = disaster.disaster_east_longitude;
wLat = disaster.disaster_west_latitude;
wLong = disaster.disaster_west_longitude;
Alert_Type_TextBox.Text = "Disaster Related: " + Convert.ToString(disaster.disaster_name);
Page page = HttpContext.Current.Handler as Page;
ScriptManager.RegisterStartupScript(page, page.GetType(),
"plotPoly", "plotPoly();", true);
}
catch { }
}
示例2: loadDisaster
//load the found disaster into the dropdown list box
protected void loadDisaster()
{
disaster currentDisaster = new disaster();
{
try
{
DataTable dtlw = currentDisaster.Select("1=1");
ddlDisaster.Items.Clear();
ddlDisaster.Items.Add("");
if (dtlw.Rows.Count > 0)
{
for (int i = 0; i < dtlw.Rows.Count; i++)
{
ddlDisaster.Items.Add(new ListItem(dtlw.Rows[i]["disaster_name"].ToString(), dtlw.Rows[i]["disaster_id"].ToString()));
}
}
else
{
ddlDisaster.Items.Add("No Disasters");
}
}
catch
{
}
}
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:33,代码来源:Master_Location.aspx.cs
示例3: ddlDisaster_SelectedIndexChanged
//display the disaster on screen (data and poly points)
protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
Page page = HttpContext.Current.Handler as Page;
ScriptManager.RegisterStartupScript(page, page.GetType(),
"plotPoly", "plotPoly();", true);
disaster disaster = new disaster();
GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
disaster = disaster.Select(GlobalVariables.DisasterID);
txtDisasterName.Text = disaster.disaster_name.ToString();
txtDisasterType.Text = disaster.disaster_type.ToString();
txtNorthLat.Text = disaster.disaster_north_latitude.ToString();
txtNorthLong.Text = disaster.disaster_north_longitude.ToString();
txtSouthLat.Text = disaster.disaster_south_latitude.ToString();
txtSouthLong.Text = disaster.disaster_south_longitude.ToString();
txtEastLat.Text = disaster.disaster_east_latitude.ToString();
txtEastLong.Text = disaster.disaster_east_longitude.ToString();
txtWestLat.Text = disaster.disaster_west_latitude.ToString();
txtWestLong.Text = disaster.disaster_west_longitude.ToString();
}
catch { }
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:25,代码来源:Master_Location.aspx.cs
示例4: ddlDisaster_SelectedIndexChanged
//display the disaster on screen
protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
disaster disaster = new disaster();
GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
disaster = disaster.Select(Convert.ToInt32(ddlDisaster.SelectedItem.Value));
nLat = disaster.disaster_north_latitude;
nLong = disaster.disaster_north_longitude;
sLat = disaster.disaster_south_latitude;
sLong = disaster.disaster_south_longitude;
eLat = disaster.disaster_east_latitude;
eLong = disaster.disaster_east_longitude;
wLat = disaster.disaster_west_latitude;
wLong = disaster.disaster_west_longitude;
Page.ClientScript.RegisterStartupScript(this.GetType(), "plotPoly", "plotPoly()", true);
}
catch { }
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:25,代码来源:Create_Obstruction.aspx.cs