diff --git a/AdminPoll/Ajax/AjaxExit.asp b/AdminPoll/Ajax/AjaxExit.asp index b8fb6b7..d59a7f1 100644 --- a/AdminPoll/Ajax/AjaxExit.asp +++ b/AdminPoll/Ajax/AjaxExit.asp @@ -10,32 +10,32 @@ Dim flag select case gubun -case "List" - - DBConnect() - - SQL = "" - SQL = SQL&" select a.*, case isnull(b.Status,'') when '1' then '진행중' when '11' then '수정가능' when '10' then '완료' else '미진행' end as status from [No.6].krc_survey.dbo.Dat_2002020_B_exit a "&VbCrlf - SQL = SQL&" left join [No.6].krc_survey.dbo.Dat_2002020_B b on a.id=case when CHARINDEX('_', b.IDKey)<>0 then LEFT(b.IDKey, CHARINDEX('_', b.IDKey)-1) end where a.flag='1' "&VbCrlf - 'response.write SQL - Objdb.Open SQL,DBConn,3,1,1 - If not objdb.eof Then - while not objdb.eof - response.write ""&VbCrlf - response.write " "&objdb("Q1")&""&VbCrlf - response.write " "&objdb("cluster_nm")&""&VbCrlf - response.write " "&objdb("Q4")&""&VbCrlf - response.write " "&objdb("Q3")&""&VbCrlf - response.write " "&objdb("Q10")&""&VbCrlf - response.write " "&objdb("pre_name")&""&VbCrlf - response.write " "&objdb("pre_phone")&""&VbCrlf - response.write " "&objdb("status")&""&VbCrlf - response.write ""&VbCrlf - objdb.movenext - wend - End If - - DBClose() +'case "List" +' +' DBConnect() +' +' SQL = "" +' SQL = SQL&" select a.*, case isnull(b.Status,'') when '1' then '진행중' when '11' then '수정가능' when '10' then '완료' else '미진행' end as status from [No.6].krc_survey.dbo.Dat_2002020_B_exit a "&VbCrlf +' SQL = SQL&" left join [No.6].krc_survey.dbo.Dat_2002020_B b on a.id=case when CHARINDEX('_', b.IDKey)<>0 then LEFT(b.IDKey, CHARINDEX('_', b.IDKey)-1) end where a.flag='1' "&VbCrlf +' 'response.write SQL +' Objdb.Open SQL,DBConn,3,1,1 +' If not objdb.eof Then +' while not objdb.eof +' response.write ""&VbCrlf +' response.write " "&objdb("Q1")&""&VbCrlf +' response.write " "&objdb("cluster_nm")&""&VbCrlf +' response.write " "&objdb("Q4")&""&VbCrlf +' response.write " "&objdb("Q3")&""&VbCrlf +' response.write " "&objdb("Q10")&""&VbCrlf +' response.write " "&objdb("pre_name")&""&VbCrlf +' response.write " "&objdb("pre_phone")&""&VbCrlf +' response.write " "&objdb("status")&""&VbCrlf +' response.write ""&VbCrlf +' objdb.movenext +' wend +' End If +' +' DBClose() case "json_list" DBConnect() @@ -43,11 +43,11 @@ case "json_list" SQL = "" SQL = SQL & " SELECT e_subarea_cd " & VbCrlf SQL = SQL & " ,e_subarea_nm " & VbCrlf - SQL = SQL & " ,e_exit_cd " & VbCrlf + 'SQL = SQL & " ,e_exit_cd " & VbCrlf SQL = SQL & " ,e_full_it " & VbCrlf - SQL = SQL & " ,e_it " & VbCrlf - SQL = SQL & " ,ex_cd " & VbCrlf - SQL = SQL & " ,cluster " & VbCrlf + '' SQL = SQL & " ,e_it " & VbCrlf + 'SQL = SQL & " ,ex_cd " & VbCrlf + 'SQL = SQL & " ,cluster " & VbCrlf SQL = SQL & " ,e_exit_nm " & VbCrlf SQL = SQL & " ,e_full_nm " & VbCrlf SQL = SQL & " ,e_full_ad " & VbCrlf diff --git a/Recruit/Ajax/AjaxSelect.asp b/Recruit/Ajax/AjaxSelect.asp index 41f26ed..d2d88c2 100644 --- a/Recruit/Ajax/AjaxSelect.asp +++ b/Recruit/Ajax/AjaxSelect.asp @@ -59,7 +59,11 @@ case "code" SQL = " select gubun, r_cd, r_nm, Flag from exitpoll.dbo.R_code where Flag = '1' and gubun = '" & sel_code & "' " if sel_code = "district" Then - SQL = SQL & " and left(r_cd,2) = '" & Request("area_cd") & "' " + if LEN(Request("area_cd")) > 2 then + SQL = SQL & " and len(r_cd) > 4 and left(r_cd,4) = '" & Request("area_cd") & "' " + else + SQL = SQL & " and len(r_cd) < 5 and left(r_cd,2) = '" & Request("area_cd") & "' " + end if End If Objdb.Open SQL,DBConn,3,1,1 if not Objdb.eof Then diff --git a/Recruit/main/ExitInfo.asp b/Recruit/main/ExitInfo.asp index e77ea5e..0a0e6ba 100644 --- a/Recruit/main/ExitInfo.asp +++ b/Recruit/main/ExitInfo.asp @@ -9,7 +9,7 @@ SQL = "" SQL = SQL&" SELECT 'P' + D.VALUE + 'H' + CONVERT(varchar, Q.IDKEY) AS pcode " SQL = SQL&" FROM exitpoll.dbo.POLL_EXP_LOGIN Q CROSS APPLY STRING_SPLIT(MATCHING,',') AS D " SQL = SQL&" inner join kon.dbo.DATA DA on Q.PKEY = DA.PKEY and DA.IDKEY = 'P' + D.VALUE + 'H' + CONVERT(varchar, Q.IDKEY) " -SQL = SQL&" WHERE Q.PKEY = '2504025_A' AND D.VALUE = '"&Exit_cd&"' and DA.status = '10' " +SQL = SQL&" WHERE Q.PKEY = '2604001_A' AND D.VALUE = '"&Exit_cd&"' and DA.status = '10' " Objdb.Open SQL,DBConn,3,1,1 If not Objdb.eof then %>