Пример #1
0
        public string GetChargeManByWorkingTeamIdWithComboboxFormat(int workingTeamId)
        {
            DataTable dt = StaffService.GetChargeManByWorkingTeamId(workingTeamId);

            if (dt.Rows.Count == 0)
            {
                return("");
            }
            return("{\"ID\":\"" + dt.Rows[0]["ID"].ToString() + "\", \"Name\":\"" + dt.Rows[0]["Name"].ToString() + "\"}");
        }