zoukankan      html  css  js  c++  java
  • 根据条件删除

            /// <summary>
            /// 删除检测项目
            /// </summary>
            private void DelPBItem()
            {
                string msg = "0";
                string id = Request.Form["ipt_biotestplanheaderid"];
                string pbItemCode = Request.Form["ipt_pbitemcode"];
                if (!string.IsNullOrEmpty(id))
                {
                    string strWhere = "BioTestPlanHeaderID=" + id + "AND PBItemCode=" + pbItemCode;                 
                    DataSet ds = bioTestPlanBodyBll.GetList(strWhere);
                    int count = ds.Tables[0].Rows.Count;
                    for (int i = 0; i < count; i++)
                    {
                        int reviewid = Convert.ToInt32(ds.Tables[0].Rows[i]["BioTestPlanBodyID"].ToString());
                        bioTestPlanBodyBll.Delete(reviewid);
                    }
                    //if (bioTestPlanBodyBll.DeleteList(id))
                    // {
                    msg = "操作成功";
                    //}
                }
                WebCommon.WriteMsg(msg);
            }

  • 相关阅读:
    jetty插件配置
    连接Oracle时ORA-12541 TNS 无监听程序
    查看表结构
    判断时间差,返回1或2或3
    template_共享模板
    template_showpost
    template_homepage
    tensorflow解决Fizz Buzz 的问题
    神经网络——项目二CNN手写数字识别
    神经网络——项目一 手写数字识别
  • 原文地址:https://www.cnblogs.com/IT1517/p/4956040.html
Copyright © 2011-2022 走看看