260521_02_ENH: 사전답사 pkey 변경 및 투표소 코드 관련된 정리
This commit is contained in:
@@ -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 "<tr>"&VbCrlf
|
||||
response.write " <td>"&objdb("Q1")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("cluster_nm")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("Q4")&"<input type='hidden' name='E_No' value='"&objdb("ID")&"'/></td>"&VbCrlf
|
||||
response.write " <td>"&objdb("Q3")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("Q10")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("pre_name")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("pre_phone")&"</td>"&VbCrlf
|
||||
response.write " <td>"&objdb("status")&"</td>"&VbCrlf
|
||||
response.write "</tr>"&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 "<tr>"&VbCrlf
|
||||
' response.write " <td>"&objdb("Q1")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("cluster_nm")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("Q4")&"<input type='hidden' name='E_No' value='"&objdb("ID")&"'/></td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("Q3")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("Q10")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("pre_name")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("pre_phone")&"</td>"&VbCrlf
|
||||
' response.write " <td>"&objdb("status")&"</td>"&VbCrlf
|
||||
' response.write "</tr>"&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
|
||||
|
||||
Reference in New Issue
Block a user