本文整理汇总了C#中disaster类的典型用法代码示例。如果您正苦于以下问题:C# disaster类的具体用法?C# disaster怎么用?C# disaster使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
disaster类属于命名空间,在下文中一共展示了disaster类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
disaster disaster = new disaster();
GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
}
catch { }
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:9,代码来源:Obstruction_Insert.aspx.cs
示例4: Delete_disaster_select
public disaster Delete_disaster_select(int ID)
{
disaster = disaster.Select(ID);
Delete_disaster_id_txt_lbl.Text = Convert.ToString(disaster.disaster_id);
Delete_disaster_name_txt_lbl.Text = Convert.ToString(disaster.disaster_name);
Delete_disaster_type_txt_lbl.Text = Convert.ToString(disaster.disaster_type);
Delete_disaster_start_date_txt_lbl.Text = Convert.ToString(disaster.disaster_start_date);
Delete_disaster_end_date_txt_lbl.Text = Convert.ToString(disaster.disaster_end_date);
Delete_disaster_north_latitude_txt_lbl.Text = Convert.ToString(disaster.disaster_north_latitude);
Delete_disaster_north_longitude_txt_lbl.Text = Convert.ToString(disaster.disaster_north_longitude);
Delete_disaster_south_latitude_txt_lbl.Text = Convert.ToString(disaster.disaster_south_latitude);
Delete_disaster_south_longitude_txt_lbl.Text = Convert.ToString(disaster.disaster_south_longitude);
Delete_disaster_east_latitude_txt_lbl.Text = Convert.ToString(disaster.disaster_east_latitude);
Delete_disaster_east_longitude_txt_lbl.Text = Convert.ToString(disaster.disaster_east_longitude);
Delete_disaster_west_latitude_txt_lbl.Text = Convert.ToString(disaster.disaster_west_latitude);
Delete_disaster_west_longitude_txt_lbl.Text = Convert.ToString(disaster.disaster_west_longitude);
return disaster;
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:18,代码来源:disaster_Screen.aspx.cs
示例5: 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
示例6: disaster_update
public disaster disaster_update(int ID)
{
disaster = disaster.Select(ID);
disaster.disaster_id = Convert.ToInt32(Update_disaster_id_txt.Text);
disaster.disaster_name = Update_disaster_name_txt.Text;
disaster.disaster_type = Update_disaster_type_txt.Text;
disaster.disaster_start_date = Convert.ToDateTime(Update_disaster_start_date_txt.Text);
disaster.disaster_end_date = Convert.ToDateTime(Update_disaster_end_date_txt.Text);
disaster.disaster_north_latitude = Convert.ToDecimal(Update_disaster_north_latitude_txt.Text);
disaster.disaster_north_longitude = Convert.ToDecimal(Update_disaster_north_longitude_txt.Text);
disaster.disaster_south_latitude = Convert.ToDecimal(Update_disaster_south_latitude_txt.Text);
disaster.disaster_south_longitude = Convert.ToDecimal(Update_disaster_south_longitude_txt.Text);
disaster.disaster_east_latitude = Convert.ToDecimal(Update_disaster_east_latitude_txt.Text);
disaster.disaster_east_longitude = Convert.ToDecimal(Update_disaster_east_longitude_txt.Text);
disaster.disaster_west_latitude = Convert.ToDecimal(Update_disaster_west_latitude_txt.Text);
disaster.disaster_west_longitude = Convert.ToDecimal(Update_disaster_west_longitude_txt.Text);
disaster.Update(disaster);
Insert_disaster_GridView.DataBind();
Update_disaster_GridView.DataBind();
Delete_disaster_GridView.DataBind();
return disaster;
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:22,代码来源:disaster_Screen.aspx.cs
示例7: disaster_insert
public disaster disaster_insert()
{
disaster.disaster_name = Insert_disaster_name_txt.Text;
disaster.disaster_type = Insert_disaster_type_txt.Text;
disaster.disaster_start_date = Convert.ToDateTime(Insert_disaster_start_date_txt.Text);
disaster.disaster_end_date = Convert.ToDateTime(Insert_disaster_end_date_txt.Text);
disaster.disaster_north_latitude = Convert.ToDecimal(Insert_disaster_north_latitude_txt.Text);
disaster.disaster_north_longitude = Convert.ToDecimal(Insert_disaster_north_longitude_txt.Text);
disaster.disaster_south_latitude = Convert.ToDecimal(Insert_disaster_south_latitude_txt.Text);
disaster.disaster_south_longitude = Convert.ToDecimal(Insert_disaster_south_longitude_txt.Text);
disaster.disaster_east_latitude = Convert.ToDecimal(Insert_disaster_east_latitude_txt.Text);
disaster.disaster_east_longitude = Convert.ToDecimal(Insert_disaster_east_longitude_txt.Text);
disaster.disaster_west_latitude = Convert.ToDecimal(Insert_disaster_west_latitude_txt.Text);
disaster.disaster_west_longitude = Convert.ToDecimal(Insert_disaster_west_longitude_txt.Text);
disaster = disaster.Insert(disaster);
Insert_disaster_GridView.DataBind();
Update_disaster_GridView.DataBind();
Delete_disaster_GridView.DataBind();
return disaster;
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:20,代码来源:disaster_Screen.aspx.cs
示例8: Update_Select_Record
protected void Update_Select_Record(object sender, EventArgs e)
{
disaster = Update_disaster_select(Convert.ToInt32(Update_disaster_GridView.SelectedValue));
}
示例9: UPDATE
protected void UPDATE(object sender, EventArgs e)
{
disaster = disaster_update(Convert.ToInt32(Update_disaster_GridView.SelectedValue));
}
示例10: Insert_Select_Record
protected void Insert_Select_Record(object sender, EventArgs e)
{
disaster = Insert_disaster_select(Convert.ToInt32(Insert_disaster_GridView.SelectedValue));
}
示例11: INSERT
protected void INSERT(object sender, EventArgs e)
{
disaster = disaster_insert();
}
示例12: 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