private string Edit()
    {
        string  res = "更新失败!";
        DataSet ds  = SqlHelper.GetFiledNameAndComment("cost_sharing");

        string[] specils = new string[] { "Hospital", "Product", "Sales", "Supervisor", "Manager", "Director" };
        if (ds != null)
        {
            Dictionary <string, string> dict = new Dictionary <string, string>();
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                string field = row["field"].ToString();
                if (field == "Id")
                {
                    continue;
                }
                string value = "";
                if (specils.Contains(field))
                {
                    value = Request.Form[field.Substring(0, field.Length - 2)];
                    if (string.IsNullOrEmpty(value))
                    {
                        continue;
                    }
                    string[] strs = value.Split(',');
                    if (strs.Length != 2)
                    {
                        continue;
                    }
                    value = strs[1];
                }
                else if (field == "DepartmentId" || field == "SectorId")
                {
                    value = Request.Form[field.Substring(0, field.Length - 2)];
                    if (string.IsNullOrEmpty(value))
                    {
                        continue;
                    }
                }
                else
                {
                    value = Request.Form[field];
                    if (string.IsNullOrEmpty(value))
                    {
                        continue;
                    }
                }
                dict.Add(field, value);
            }
            string id = Request.Form["Id"];

            res = CostSharingInfoManage.UpdateInfos(VerifyDict(dict), id);
        }
        return(res);
    }