protected void bt_AddStaff_Click(object sender, EventArgs e)
    {
        if (select_Staff.SelectValue != "" && (int)ViewState["ClientID"] != 0)
        {
            string failed = "";
            foreach (string s in select_Staff.SelectValue.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
            {
                int staff = 0;
                if (int.TryParse(s, out staff) && staff > 0)
                {
                    CM_ClientBLL bll = new CM_ClientBLL((int)ViewState["ClientID"]);
                    if (bll.StaffInProperty_Add((int)ViewState["ClientID"], staff) == 0)
                    {
                        failed += new Org_StaffBLL(staff).Model.RealName + ",";
                    }
                    BindGrid();
                }
            }

            if (failed != "")
            {
                MessageBox.Show(this, "对不起," + failed + "员工已住宿在公司住房中!");
            }
        }
    }
    protected void bt_AddStaff_Click(object sender, EventArgs e)
    {
        if (select_Staff.SelectValue != "" && (int)ViewState["ClientID"] != 0)
        {
            string failed = "";
            foreach (string s in select_Staff.SelectValue.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
            {
                int staff = 0;
                if (int.TryParse(s, out staff) && staff > 0)
                {
                    CM_ClientBLL bll = new CM_ClientBLL((int)ViewState["ClientID"]);
                    if (bll.StaffInProperty_Add((int)ViewState["ClientID"], staff) == 0)
                    {
                        failed += new Org_StaffBLL(staff).Model.RealName + ",";
                    }
                    BindGrid();
                }
            }

            if (failed != "")
                MessageBox.Show(this, "对不起," + failed + "员工已住宿在公司住房中!");
        }
    }