private void BindDrop()
        {
            dpdAlarmlevel.DataSource=  new AlarmLevelSetDA().selectAllData();
              dpdAlarmlevel.DataTextField = "LevelName";
              dpdAlarmlevel.DataValueField = "Priority";
              dpdAlarmlevel.DataBind();

              DataTable dt = new AlarmGroupsDA().SelectAllDate();
              foreach (DataRow dr in dt.Rows)
              {
              ListItem li = new ListItem();
              li.Value = dr["AlarmGroupsID"].ToString();
              li.Text = dr["GroupName"].ToString();
              cbAlertGroup.Items.Add(li);
              }

               dt = new DisarmTimeDA().selectAllDate();
              foreach (DataRow dr in dt.Rows)
              {
              ListItem li = new ListItem();
              li.Value = dr["DisarmID"].ToString();
              li.Text = dr["DisarmName"].ToString();
              cbDisarmid.Items.Add(li);
              }
        }
        private void LoadData()
        {
            try
            {
                           DisarmTimeOR m_Disa = new DisarmTimeDA().selectARowDate(Request.QueryString["id"]);
            txtDisarmname.Text = m_Disa.Disarmname;//撤防名称
            txtDisarmstarttime.Text = m_Disa.Disarmstarttime;//撤防开始时间
            txtDisarmendtime.Text = m_Disa.Disarmendtime;//撤防结束时间

            }
            catch (Exception e)
            {
                Alert(e);
            }
        }