Beispiel #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //查询条件
            string UnitID = "";
            string SeqID  = "";
            string KpiID  = "";
            string ECID   = "";

            //机组信息
            if (ddl_UnitID.Value != "ALL")
            {
                UnitID = ddl_UnitID.Value;
            }

            //设备信息
            if (ddl_SeqID.Value != "ALL")
            {
                SeqID = ddl_SeqID.Value;
            }

            //指标信息
            if (ddl_KpiID.Value != "ALL")
            {
                KpiID = ddl_KpiID.Value;
            }

            //周期集信息
            //if (ddl_CycleID.Value != "ALL")
            //{
            //    CycleID = ddl_CycleID.Value;
            //}

            //实时指标信息
            if (ddl_ECID.Value != "ALL")
            {
                ECID = ddl_ECID.Value;
            }


            //设备信息
            if (ECTagDal.DeleteECTagForCondition(UnitID, SeqID, KpiID, ECID))
            {
                MessageBox.popupClientMessage(this.Page, "删除成功", "call();");

                BindEC();
            }
        }