• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# disaster类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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 { }
        }
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:29,代码来源:Send_Alert.aspx.cs


示例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));
 }
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:4,代码来源:disaster_Screen.aspx.cs


示例9: UPDATE

 protected void UPDATE(object sender, EventArgs e)
 {
     disaster = disaster_update(Convert.ToInt32(Update_disaster_GridView.SelectedValue));
 }
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:4,代码来源:disaster_Screen.aspx.cs


示例10: Insert_Select_Record

 protected void Insert_Select_Record(object sender, EventArgs e)
 {
     disaster = Insert_disaster_select(Convert.ToInt32(Insert_disaster_GridView.SelectedValue));
 }
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:4,代码来源:disaster_Screen.aspx.cs


示例11: INSERT

 protected void INSERT(object sender, EventArgs e)
 {
     disaster = disaster_insert();
 }
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:4,代码来源:disaster_Screen.aspx.cs


示例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



注:本文中的disaster类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# dnTorque类代码示例发布时间:2022-05-24
下一篇:
C# direction类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap