Exemple #1
0
        private void cmdMove_Click(object sender, System.EventArgs e)
        {
            UDS.Components.Department dept = new UDS.Components.Department();

            switch (dept.MoveDeparement(DeptID, Int32.Parse(lstDeparment.Items[lstDeparment.SelectedIndex].Value)))
            {
            case 0:
                Response.Write("<script laguage='javascript'>alert('移动到" + lstDeparment.Items[lstDeparment.SelectedIndex].Text + " 部门成功!');</script>");
                Response.Redirect("ListView.aspx?DeptID=" + DeptID + "&Refresh=1");
                break;

            case -1:
                Response.Write("<script laguage='javascript'>alert('不能移动到下级部门!');</script>");
                break;

            default:
                break;
            }
        }
Exemple #2
0
        private void cmdMove_Click(object sender, System.EventArgs e)
        {
            UDS.Components.Department dept = new UDS.Components.Department();

            switch(dept.MoveDeparement(DeptID,Int32.Parse(lstDeparment.Items[lstDeparment.SelectedIndex].Value)))
            {
                case 0:
                    Response.Write("<script laguage='javascript'>alert('�ƶ���" + lstDeparment.Items[lstDeparment.SelectedIndex].Text +" ���ųɹ���');</script>");
                    Response.Redirect("ListView.aspx?DeptID="+DeptID+"&Refresh=1");
                    break;
                case -1:
                    Response.Write("<script laguage='javascript'>alert('�����ƶ����¼����ţ�');</script>");
                    break;
                default:
                    break;
            }
        }