protected void btn_Delete_Click(object sender, EventArgs e)
 {
     Org_PositionBLL _bll = new Org_PositionBLL(int.Parse(lbl_ID.Text));
     if (_bll.Delete() < 0)
     {
         lbl_AlertInfo.Text = "该职务包含下级职务,请勿删除";
         return;
     }
     lbl_AlertInfo.Text = "";
     Response.Redirect("PositionManage.aspx");
 }
Esempio n. 2
0
    protected void btn_Delete_Click(object sender, EventArgs e)
    {
        Org_PositionBLL _bll = new Org_PositionBLL(int.Parse(lbl_ID.Text));

        if (_bll.Delete() < 0)
        {
            lbl_AlertInfo.Text = "该职务包含下级职务,请勿删除";
            return;
        }
        lbl_AlertInfo.Text = "";
        Response.Redirect("PositionManage.aspx");
    }