Ejemplo n.º 1
0
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string month  = GridView1.Rows[e.RowIndex].Cells[2].Text;
            string deptId = GridView1.Rows[e.RowIndex].Cells[3].Text;

            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            busiq = new BusiComm.BusiQuery(strcons);

            if (!busiq.DeleteKPI(month, deptId))
            {
                this.Popup("删除指标失败,请重试!");
            }
            else
            {
                Button1_Click(null, null);
            }
        }