Example #1
0
        protected void Delete_OnClick(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();
            ExtendBLL.Standard stan = new ExtendBLL.Standard();
            ds = stan.GetSelfInfoByTitleID(int.Parse(TitleDDL.SelectedValue), LabDDL.SelectedValue, int.Parse(DateDDL.SelectedValue));
            string strWhere="1=0";

            for(int i=0;i<ds.Tables[0].Rows.Count;i++)
            {
                strWhere+=" or EID="+int.Parse(ds.Tables[0].Rows[i]["EID"].ToString());
            }
            try
            {
                stan.DeleteEva(strWhere);
                Page.ClientScript.RegisterClientScriptBlock(GetType(), "", "<script type='text/javascript'>alert('删除成功!')</script>");
                DateDropDownList(int.Parse(TitleDDL.SelectedValue), int.Parse(LabDDL.SelectedValue));
                if (DateDDL.SelectedValue != "")
                {
                    EvalTitleGV_DataBind(int.Parse(TitleDDL.SelectedValue),LabDDL.SelectedValue, int.Parse(DateDDL.SelectedValue));
                }
                else
                {
                    EvalResultGridView.DataSource = "";
                    EvalResultGridView.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 //根据主题ID获取评估标准信息
 protected DataSet GetStandardByTitleID(int TitleID, string strLabID,int EvTimeID)
 {
     ExtendBLL.Standard stan = new ExtendBLL.Standard();
     DataSet ds = new DataSet();
     try
     {
         ds = stan.GetSelfInfoByTitleID(TitleID, strLabID,EvTimeID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return ds;
 }