public ActionResult AlterStaffInfoMethod()
        {
            //AlterEmployeeInfo(int staffId, string staffName,int personId, string tel, string userName, string passWord, string mailBox, int? processTypeId,List <int> authorityList, ref string errMsg
            try
            {
                var staffIdStr       = Request["staffId"];
                var staffName        = Request["staffName"];            //员工名称
                var tel              = Request["tel"];                  //员工电话
                var positionIdStr    = Request["positionId"];           //职位
                var userName         = Request["userName"];             //员工登录名
                var passWord         = Request["passWord"];             //员工登录密码
                var mailBox          = Request["mailBox"];              //员工邮箱
                var processTypeIdStr = Request["processTypeId"];        //员工所属加工类型Id
                //var compontProcessTypeIdStr = Request["compontProcessTypeId"];//员工所属加工类型Id
                var compontProcessTypeIdStr = Request["processTypeId"]; //员工所属加工类型Id
                //var limliStr = Request["limlt"];//该职位的权限ID集合
                int staffId       = -1;
                int positionId    = 0;
                int?processTypeId = null;
                if (processTypeIdStr != null && processTypeIdStr != "0")
                {
                    processTypeId = Convert.ToInt32(processTypeIdStr);
                }
                int?compontProcessTypeId = null;
                if (compontProcessTypeIdStr != null && compontProcessTypeIdStr != "0")
                {
                    compontProcessTypeId = Convert.ToInt32(compontProcessTypeIdStr);
                }
                // List<string> limltListStr = limliStr.Split(',').ToList();
                //List<int> limltList = new List<int>();
                //foreach (var item in limltListStr)
                //{
                //    int _int = -1;
                //    if (int.TryParse(item, out _int))
                //    {
                //        limltList.Add(_int);
                //    }
                //}
                string creatPersonIDsStr = Session["id"] == null ? "" : Session["id"].ToString();
                int    createPersonID    = -1;

                if (int.TryParse(positionIdStr, out positionId) && int.TryParse(staffIdStr, out staffId) && int.TryParse(creatPersonIDsStr.ToString(), out createPersonID))
                {
                    string errMsg = "";
                    if (EmployeeManage.AlterEmployeeInfo(staffId, positionId, staffName, createPersonID, tel, userName, passWord, mailBox, processTypeId, compontProcessTypeId, ref errMsg))
                    {
                        return(Content("ok"));
                    }
                    else
                    {
                        return(Content(errMsg));
                    }
                }
                else
                {
                    return(Content("请输入正确的Int数据类型!"));
                }
            }
            catch (Exception ex)
            {
                return(Content(ex.Message));
            }
        }