InputProfilFirstFourActivity.kt 37.5 KB
package com.example.vip

import android.content.Intent
import android.content.Context
import android.content.SharedPreferences
import android.icu.lang.UCharacter.GraphemeClusterBreak.T
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.EditText
import kotlinx.android.synthetic.main.activity_input_profil_first_four.*
import kotlinx.android.synthetic.main.activity_input_profil_first_four.nextButton
import kotlinx.android.synthetic.main.activity_input_profil_first_four.previousButton
import kotlinx.android.synthetic.main.activity_input_profil_first_three.*

class InputProfilFirstFourActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_input_profil_first_four)

        previousButton.setOnClickListener {
            var intent = Intent(this, InputProfilFirstThreeActivity::class.java)
            startActivity(intent)
        }

        val doadapter = ArrayAdapter(this, android.R.layout.simple_spinner_item, listOf("서울특별시", "부산광역시", "대구광역시", "인천광역시","광주광역시","대전광역시","울산광역시","세종특별자치시","경기도","강원도","충청북도","충청남도","전라북도","전라남도","경상북도","경상남도","제주특별자치도"))
        doadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
        doSpinner.adapter = doadapter

        doSpinner.onItemSelectedListener = object: AdapterView.OnItemSelectedListener {
            override fun onNothingSelected(parent: AdapterView<*>?) {
            }
            override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) {
                // either one will work as well
                // val item = parent.getItemAtPosition(position) as String
                //val item = adapter.getItem(position)
                if(doSpinner.selectedItem.toString()=="서울특별시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("종로구","중구","용산구","성동구","광진구","동대문구","중랑구","성북구","강북구","도봉구","노원구","은평구","서대문구","마포구","양천구","강서구","구로구","금천구","영등포구","동작구","관악구","서초구","강남구","송파구","강동구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="부산광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("강서구","금정구","기장군","남구","동구","동래구","부산진구","북구","사상구","사하구","서구","수영구","연제구","영도구","중구","해운대구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="대구광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("남구","달서구","달성군","동구","북구","서구","수성구","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="인천광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("강화군","계양구","남구","남동구","동구","부평구","서구","연수구","옹진군","중구","미추홀구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="광주광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("광산구","남구","동구","북구","서구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="대전광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("대덕구","동구","서구","유성구","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="울산광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("남구","동구","북구","울주군","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="세종특별자치시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("해당 없음"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경기도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("가평군","고양시","과천시","광명시","광주시","구리시","군포시","김포시","남양주시","동두천시","부천시","성남시","수원시","시흥시","안산시","안성시","안양시","양주시","양평군","여주시","연천군","오산시","용인시","의왕시","의정부시","이천시","파주시","평택시","포천시","하남시","화성시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="강원도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("강릉시","고성군","동해시","삼척시","속초시","양구군","양양군","영월군","원주시","인제군","정선군","철원군","춘천시","태백시","평창군","홍천군","화천군","횡성군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="충청북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("괴산군","단양군","보은군","영동군","옥천군","음성군","제천시","증평군","진천군","청주시","충주시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="충청남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("계룡시","공주시","금산군","논산시","당진시","보령시","부여군","서산시","서천군","아산시","예산군","천안시","청양군","태안군","홍성군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="전라북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("고창군","군산시","김제시","남원시","무주군","부안군","순창군","완주군","익산시","임실군","장수군","전주시","정읍시","진안군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="전라남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("강진군","고흥군","곡성군","광양시","구례군","나주시","담양군","목포시","무안군","보성군","순천시","신안군","여수시","영광군","영암군","완도군","장성군","장흥군","진도군","함평군","해남군","화순군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경상북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("경산시","경주시","고령군","구미시","군위군","김천시","문경시","봉화군","상주시","성주군","안동시","영덕군","영양군","영주시","영천시","예천군","울릉군","울진군","의성군","청도군","청송군","칠곡군","포항시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경상남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("거제시","거창군","고성군","김해시","남해군","밀양시","사천시","산청군","양산시","의령군","진주시","창년군","창원시","통영시","하동군","함안군","함양군","합천군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else {
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("서귀포시","제주시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }
            }
        }

        val prof: SharedPreferences=getSharedPreferences("profdata", Context.MODE_PRIVATE)
        val editor: SharedPreferences.Editor=prof.edit()
        nextButton.setOnClickListener {
            if(doSpinner.selectedItem.toString()=="서울특별시"){            editor.putInt("c11_2",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="부산광역시"){            editor.putInt("c11_3",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="대구광역시"){            editor.putInt("c11_4",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="인천광역시"){            editor.putInt("c11_5",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="광주광역시"){            editor.putInt("c11_6",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="대전광역시"){            editor.putInt("c11_7",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="울산광역시"){            editor.putInt("c11_8",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="세종특별자치시"){            editor.putInt("c11_9",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="경기도"){            editor.putInt("c11_10",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="강원도"){            editor.putInt("c11_11",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="충청북도"){            editor.putInt("c11_12",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="충청남도"){            editor.putInt("c11_13",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="전라북도"){            editor.putInt("c11_14",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="전라남도"){            editor.putInt("c11_15",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="경상북도"){            editor.putInt("c11_16",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="경상남도"){            editor.putInt("c11_17",1); editor.commit()}
            if(doSpinner.selectedItem.toString()=="제주특별자치도"){            editor.putInt("c11_18",1); editor.commit()}

            if(gooSpinner.selectedItem=="종로구"){editor.putInt("c12_100",1); editor.commit()}
            if(gooSpinner.selectedItem=="중구"){editor.putInt("c12_101",1); editor.commit()}
            if(gooSpinner.selectedItem=="용산구"){editor.putInt("c12_102",1); editor.commit()}
            if(gooSpinner.selectedItem=="성동구"){editor.putInt("c12_103",1); editor.commit()}
            if(gooSpinner.selectedItem=="광진구"){editor.putInt("c12_104",1); editor.commit()}
            if(gooSpinner.selectedItem=="동대문구"){editor.putInt("c12_105",1); editor.commit()}
            if(gooSpinner.selectedItem=="중랑구"){editor.putInt("c12_106",1); editor.commit()}
            if(gooSpinner.selectedItem=="성북구"){editor.putInt("c12_107",1); editor.commit()}
            if(gooSpinner.selectedItem=="강북구"){editor.putInt("c12_108",1); editor.commit()}
            if(gooSpinner.selectedItem=="도봉구"){editor.putInt("c12_109",1); editor.commit()}
            if(gooSpinner.selectedItem=="노원구"){editor.putInt("c12_110",1); editor.commit()}
            if(gooSpinner.selectedItem=="은평구"){editor.putInt("c12_111",1); editor.commit()}
            if(gooSpinner.selectedItem=="서대문구"){editor.putInt("c12_112",1); editor.commit()}
            if(gooSpinner.selectedItem=="마포구"){editor.putInt("c12_113",1); editor.commit()}
            if(gooSpinner.selectedItem=="양천구"){editor.putInt("c12_114",1); editor.commit()}
            if(gooSpinner.selectedItem=="강서구"){editor.putInt("c12_115",1); editor.commit()}
            if(gooSpinner.selectedItem=="구로구"){editor.putInt("c12_116",1); editor.commit()}
            if(gooSpinner.selectedItem=="금천구"){editor.putInt("c12_117",1); editor.commit()}
            if(gooSpinner.selectedItem=="영등포구"){editor.putInt("c12_118",1); editor.commit()}
            if(gooSpinner.selectedItem=="동작구"){editor.putInt("c12_119",1); editor.commit()}
            if(gooSpinner.selectedItem=="관악구"){editor.putInt("c12_120",1); editor.commit()}
            if(gooSpinner.selectedItem=="서초구"){editor.putInt("c12_121",1); editor.commit()}
            if(gooSpinner.selectedItem=="강남구"){editor.putInt("c12_122",1); editor.commit()}
            if(gooSpinner.selectedItem=="송파구"){editor.putInt("c12_123",1); editor.commit()}
            if(gooSpinner.selectedItem=="강동구"){editor.putInt("c12_124",1); editor.commit()}
            if(gooSpinner.selectedItem=="서구"){editor.putInt("c12_125",1); editor.commit()}
            if(gooSpinner.selectedItem=="동구"){editor.putInt("c12_126",1); editor.commit()}
            if(gooSpinner.selectedItem=="영도구"){editor.putInt("c12_127",1); editor.commit()}
            if(gooSpinner.selectedItem=="부산진구"){editor.putInt("c12_128",1); editor.commit()}
            if(gooSpinner.selectedItem=="동래구"){editor.putInt("c12_129",1); editor.commit()}
            if(gooSpinner.selectedItem=="남구"){editor.putInt("c12_130",1); editor.commit()}
            if(gooSpinner.selectedItem=="북구"){editor.putInt("c12_131",1); editor.commit()}
            if(gooSpinner.selectedItem=="해운대구"){editor.putInt("c12_132",1); editor.commit()}
            if(gooSpinner.selectedItem=="사하구"){editor.putInt("c12_133",1); editor.commit()}
            if(gooSpinner.selectedItem=="금정구"){editor.putInt("c12_134",1); editor.commit()}
            if(gooSpinner.selectedItem=="연제구"){editor.putInt("c12_135",1); editor.commit()}
            if(gooSpinner.selectedItem=="수영구"){editor.putInt("c12_136",1); editor.commit()}
            if(gooSpinner.selectedItem=="사상구"){editor.putInt("c12_137",1); editor.commit()}
            if(gooSpinner.selectedItem=="기장군"){editor.putInt("c12_138",1); editor.commit()}
            if(gooSpinner.selectedItem=="수성구"){editor.putInt("c12_139",1); editor.commit()}
            if(gooSpinner.selectedItem=="달서구"){editor.putInt("c12_140",1); editor.commit()}
            if(gooSpinner.selectedItem=="달성군"){editor.putInt("c12_141",1); editor.commit()}
            if(gooSpinner.selectedItem=="중구영종출장소"){editor.putInt("c12_142",1); editor.commit()}
            if(gooSpinner.selectedItem=="중구용유출장소"){editor.putInt("c12_143",1); editor.commit()}
            if(gooSpinner.selectedItem=="미추홀구"){editor.putInt("c12_144",1); editor.commit()}
            if(gooSpinner.selectedItem=="연수구"){editor.putInt("c12_145",1); editor.commit()}
            if(gooSpinner.selectedItem=="남동구"){editor.putInt("c12_146",1); editor.commit()}
            if(gooSpinner.selectedItem=="부평구"){editor.putInt("c12_147",1); editor.commit()}
            if(gooSpinner.selectedItem=="계양구"){editor.putInt("c12_148",1); editor.commit()}
            if(gooSpinner.selectedItem=="서구검단출장"){editor.putInt("c12_149",1); editor.commit()}
            if(gooSpinner.selectedItem=="강화군"){editor.putInt("c12_150",1); editor.commit()}
            if(gooSpinner.selectedItem=="옹진군"){editor.putInt("c12_151",1); editor.commit()}
            if(gooSpinner.selectedItem=="광산구"){editor.putInt("c12_152",1); editor.commit()}
            if(gooSpinner.selectedItem=="유성구"){editor.putInt("c12_153",1); editor.commit()}
            if(gooSpinner.selectedItem=="대덕구"){editor.putInt("c12_154",1); editor.commit()}
            if(gooSpinner.selectedItem=="울주군"){editor.putInt("c12_155",1); editor.commit()}
            if(gooSpinner.selectedItem=="수원시"){editor.putInt("c12_156",1); editor.commit()}
            if(gooSpinner.selectedItem=="수원시 장안구"){editor.putInt("c12_157",1); editor.commit()}
            if(gooSpinner.selectedItem=="수원시 권선구"){editor.putInt("c12_158",1); editor.commit()}
            if(gooSpinner.selectedItem=="수원시 팔달구"){editor.putInt("c12_159",1); editor.commit()}
            if(gooSpinner.selectedItem=="수원시 영통구"){editor.putInt("c12_160",1); editor.commit()}
            if(gooSpinner.selectedItem=="성남시"){editor.putInt("c12_161",1); editor.commit()}
            if(gooSpinner.selectedItem=="성남시 수정구"){editor.putInt("c12_162",1); editor.commit()}
            if(gooSpinner.selectedItem=="성남시 중원구"){editor.putInt("c12_163",1); editor.commit()}
            if(gooSpinner.selectedItem=="성남시 분당구"){editor.putInt("c12_164",1); editor.commit()}
            if(gooSpinner.selectedItem=="의정부시"){editor.putInt("c12_165",1); editor.commit()}
            if(gooSpinner.selectedItem=="안양시"){editor.putInt("c12_166",1); editor.commit()}
            if(gooSpinner.selectedItem=="안양시 만안구"){editor.putInt("c12_167",1); editor.commit()}
            if(gooSpinner.selectedItem=="안양시 동안구"){editor.putInt("c12_168",1); editor.commit()}
            if(gooSpinner.selectedItem=="부천시"){editor.putInt("c12_169",1); editor.commit()}
            if(gooSpinner.selectedItem=="광명시"){editor.putInt("c12_170",1); editor.commit()}
            if(gooSpinner.selectedItem=="평택시"){editor.putInt("c12_171",1); editor.commit()}
            if(gooSpinner.selectedItem=="송탄출장소"){editor.putInt("c12_172",1); editor.commit()}
            if(gooSpinner.selectedItem=="안중출장소"){editor.putInt("c12_173",1); editor.commit()}
            if(gooSpinner.selectedItem=="동두천시"){editor.putInt("c12_174",1); editor.commit()}
            if(gooSpinner.selectedItem=="안산시"){editor.putInt("c12_175",1); editor.commit()}
            if(gooSpinner.selectedItem=="안산시 상록구"){editor.putInt("c12_176",1); editor.commit()}
            if(gooSpinner.selectedItem=="안산시 단원구"){editor.putInt("c12_177",1); editor.commit()}
            if(gooSpinner.selectedItem=="고양시"){editor.putInt("c12_178",1); editor.commit()}
            if(gooSpinner.selectedItem=="고양시 덕양구"){editor.putInt("c12_179",1); editor.commit()}
            if(gooSpinner.selectedItem=="고양시 일산동구"){editor.putInt("c12_180",1); editor.commit()}
            if(gooSpinner.selectedItem=="고양시 일산서구"){editor.putInt("c12_181",1); editor.commit()}
            if(gooSpinner.selectedItem=="과천시"){editor.putInt("c12_182",1); editor.commit()}
            if(gooSpinner.selectedItem=="구리시"){editor.putInt("c12_183",1); editor.commit()}
            if(gooSpinner.selectedItem=="남양주시"){editor.putInt("c12_184",1); editor.commit()}
            if(gooSpinner.selectedItem=="풍양출장소"){editor.putInt("c12_185",1); editor.commit()}
            if(gooSpinner.selectedItem=="오산시"){editor.putInt("c12_186",1); editor.commit()}
            if(gooSpinner.selectedItem=="시흥시"){editor.putInt("c12_187",1); editor.commit()}
            if(gooSpinner.selectedItem=="군포시"){editor.putInt("c12_188",1); editor.commit()}
            if(gooSpinner.selectedItem=="의왕시"){editor.putInt("c12_189",1); editor.commit()}
            if(gooSpinner.selectedItem=="하남시"){editor.putInt("c12_190",1); editor.commit()}
            if(gooSpinner.selectedItem=="용인시"){editor.putInt("c12_191",1); editor.commit()}
            if(gooSpinner.selectedItem=="용인시 처인구"){editor.putInt("c12_192",1); editor.commit()}
            if(gooSpinner.selectedItem=="용인시 기흥구"){editor.putInt("c12_193",1); editor.commit()}
            if(gooSpinner.selectedItem=="용인시 수지구"){editor.putInt("c12_194",1); editor.commit()}
            if(gooSpinner.selectedItem=="파주시"){editor.putInt("c12_195",1); editor.commit()}
            if(gooSpinner.selectedItem=="이천시"){editor.putInt("c12_196",1); editor.commit()}
            if(gooSpinner.selectedItem=="안성시"){editor.putInt("c12_197",1); editor.commit()}
            if(gooSpinner.selectedItem=="김포시"){editor.putInt("c12_198",1); editor.commit()}
            if(gooSpinner.selectedItem=="화성시"){editor.putInt("c12_199",1); editor.commit()}
            if(gooSpinner.selectedItem=="화성시동부출장소"){editor.putInt("c12_200",1); editor.commit()}
            if(gooSpinner.selectedItem=="화성시동탄출장소"){editor.putInt("c12_201",1); editor.commit()}
            if(gooSpinner.selectedItem=="광주시"){editor.putInt("c12_202",1); editor.commit()}
            if(gooSpinner.selectedItem=="양주시"){editor.putInt("c12_203",1); editor.commit()}
            if(gooSpinner.selectedItem=="포천시"){editor.putInt("c12_204",1); editor.commit()}
            if(gooSpinner.selectedItem=="여주시"){editor.putInt("c12_205",1); editor.commit()}
            if(gooSpinner.selectedItem=="연천군"){editor.putInt("c12_206",1); editor.commit()}
            if(gooSpinner.selectedItem=="가평군"){editor.putInt("c12_207",1); editor.commit()}
            if(gooSpinner.selectedItem=="양평군"){editor.putInt("c12_208",1); editor.commit()}
            if(gooSpinner.selectedItem=="춘천시"){editor.putInt("c12_209",1); editor.commit()}
            if(gooSpinner.selectedItem=="원주시"){editor.putInt("c12_210",1); editor.commit()}
            if(gooSpinner.selectedItem=="강릉시"){editor.putInt("c12_211",1); editor.commit()}
            if(gooSpinner.selectedItem=="동해시"){editor.putInt("c12_212",1); editor.commit()}
            if(gooSpinner.selectedItem=="태백시"){editor.putInt("c12_213",1); editor.commit()}
            if(gooSpinner.selectedItem=="속초시"){editor.putInt("c12_214",1); editor.commit()}
            if(gooSpinner.selectedItem=="삼척시"){editor.putInt("c12_215",1); editor.commit()}
            if(gooSpinner.selectedItem=="홍천군"){editor.putInt("c12_216",1); editor.commit()}
            if(gooSpinner.selectedItem=="횡성군"){editor.putInt("c12_217",1); editor.commit()}
            if(gooSpinner.selectedItem=="영월군"){editor.putInt("c12_218",1); editor.commit()}
            if(gooSpinner.selectedItem=="평창군"){editor.putInt("c12_219",1); editor.commit()}
            if(gooSpinner.selectedItem=="정선군"){editor.putInt("c12_220",1); editor.commit()}
            if(gooSpinner.selectedItem=="철원군"){editor.putInt("c12_221",1); editor.commit()}
            if(gooSpinner.selectedItem=="화천군"){editor.putInt("c12_222",1); editor.commit()}
            if(gooSpinner.selectedItem=="양구군"){editor.putInt("c12_223",1); editor.commit()}
            if(gooSpinner.selectedItem=="인제군"){editor.putInt("c12_224",1); editor.commit()}
            if(gooSpinner.selectedItem=="고성군"){editor.putInt("c12_225",1); editor.commit()}
            if(gooSpinner.selectedItem=="양양군"){editor.putInt("c12_226",1); editor.commit()}
            if(gooSpinner.selectedItem=="청주시"){editor.putInt("c12_227",1); editor.commit()}
            if(gooSpinner.selectedItem=="청주시 상당구"){editor.putInt("c12_228",1); editor.commit()}
            if(gooSpinner.selectedItem=="청주시 서원구"){editor.putInt("c12_229",1); editor.commit()}
            if(gooSpinner.selectedItem=="청주시 흥덕구"){editor.putInt("c12_230",1); editor.commit()}
            if(gooSpinner.selectedItem=="청주시 청원구"){editor.putInt("c12_231",1); editor.commit()}
            if(gooSpinner.selectedItem=="충주시"){editor.putInt("c12_232",1); editor.commit()}
            if(gooSpinner.selectedItem=="제천시"){editor.putInt("c12_233",1); editor.commit()}
            if(gooSpinner.selectedItem=="보은군"){editor.putInt("c12_234",1); editor.commit()}
            if(gooSpinner.selectedItem=="옥천군"){editor.putInt("c12_235",1); editor.commit()}
            if(gooSpinner.selectedItem=="영동군"){editor.putInt("c12_236",1); editor.commit()}
            if(gooSpinner.selectedItem=="증평군"){editor.putInt("c12_237",1); editor.commit()}
            if(gooSpinner.selectedItem=="진천군"){editor.putInt("c12_238",1); editor.commit()}
            if(gooSpinner.selectedItem=="괴산군"){editor.putInt("c12_239",1); editor.commit()}
            if(gooSpinner.selectedItem=="음성군"){editor.putInt("c12_240",1); editor.commit()}
            if(gooSpinner.selectedItem=="단양군"){editor.putInt("c12_241",1); editor.commit()}
            if(gooSpinner.selectedItem=="천안시"){editor.putInt("c12_242",1); editor.commit()}
            if(gooSpinner.selectedItem=="천안시 동남구"){editor.putInt("c12_243",1); editor.commit()}
            if(gooSpinner.selectedItem=="천안시 서북구"){editor.putInt("c12_244",1); editor.commit()}
            if(gooSpinner.selectedItem=="공주시"){editor.putInt("c12_245",1); editor.commit()}
            if(gooSpinner.selectedItem=="보령시"){editor.putInt("c12_246",1); editor.commit()}
            if(gooSpinner.selectedItem=="아산시"){editor.putInt("c12_247",1); editor.commit()}
            if(gooSpinner.selectedItem=="서산시"){editor.putInt("c12_248",1); editor.commit()}
            if(gooSpinner.selectedItem=="논산시"){editor.putInt("c12_249",1); editor.commit()}
            if(gooSpinner.selectedItem=="계룡시"){editor.putInt("c12_250",1); editor.commit()}
            if(gooSpinner.selectedItem=="당진시"){editor.putInt("c12_251",1); editor.commit()}
            if(gooSpinner.selectedItem=="금산군"){editor.putInt("c12_252",1); editor.commit()}
            if(gooSpinner.selectedItem=="부여군"){editor.putInt("c12_253",1); editor.commit()}
            if(gooSpinner.selectedItem=="서천군"){editor.putInt("c12_254",1); editor.commit()}
            if(gooSpinner.selectedItem=="청양군"){editor.putInt("c12_255",1); editor.commit()}
            if(gooSpinner.selectedItem=="홍성군"){editor.putInt("c12_256",1); editor.commit()}
            if(gooSpinner.selectedItem=="예산군"){editor.putInt("c12_257",1); editor.commit()}
            if(gooSpinner.selectedItem=="태안군"){editor.putInt("c12_258",1); editor.commit()}
            if(gooSpinner.selectedItem=="전주시"){editor.putInt("c12_259",1); editor.commit()}
            if(gooSpinner.selectedItem=="전주시 완산구"){editor.putInt("c12_260",1); editor.commit()}
            if(gooSpinner.selectedItem=="전주시 덕진구"){editor.putInt("c12_261",1); editor.commit()}
            if(gooSpinner.selectedItem=="전주시효자출"){editor.putInt("c12_262",1); editor.commit()}
            if(gooSpinner.selectedItem=="군산시"){editor.putInt("c12_263",1); editor.commit()}
            if(gooSpinner.selectedItem=="익산시"){editor.putInt("c12_264",1); editor.commit()}
            if(gooSpinner.selectedItem=="익산시함열출"){editor.putInt("c12_265",1); editor.commit()}
            if(gooSpinner.selectedItem=="정읍시"){editor.putInt("c12_266",1); editor.commit()}
            if(gooSpinner.selectedItem=="남원시"){editor.putInt("c12_267",1); editor.commit()}
            if(gooSpinner.selectedItem=="김제시"){editor.putInt("c12_268",1); editor.commit()}
            if(gooSpinner.selectedItem=="완주군"){editor.putInt("c12_269",1); editor.commit()}
            if(gooSpinner.selectedItem=="진안군"){editor.putInt("c12_270",1); editor.commit()}
            if(gooSpinner.selectedItem=="무주군"){editor.putInt("c12_271",1); editor.commit()}
            if(gooSpinner.selectedItem=="장수군"){editor.putInt("c12_272",1); editor.commit()}
            if(gooSpinner.selectedItem=="임실군"){editor.putInt("c12_273",1); editor.commit()}
            if(gooSpinner.selectedItem=="순창군"){editor.putInt("c12_274",1); editor.commit()}
            if(gooSpinner.selectedItem=="고창군"){editor.putInt("c12_275",1); editor.commit()}
            if(gooSpinner.selectedItem=="부안군"){editor.putInt("c12_276",1); editor.commit()}
            if(gooSpinner.selectedItem=="목포시"){editor.putInt("c12_277",1); editor.commit()}
            if(gooSpinner.selectedItem=="여수시"){editor.putInt("c12_278",1); editor.commit()}
            if(gooSpinner.selectedItem=="순천시"){editor.putInt("c12_279",1); editor.commit()}
            if(gooSpinner.selectedItem=="나주시"){editor.putInt("c12_280",1); editor.commit()}
            if(gooSpinner.selectedItem=="광양시"){editor.putInt("c12_281",1); editor.commit()}
            if(gooSpinner.selectedItem=="담양군"){editor.putInt("c12_282",1); editor.commit()}
            if(gooSpinner.selectedItem=="곡성군"){editor.putInt("c12_283",1); editor.commit()}
            if(gooSpinner.selectedItem=="구례군"){editor.putInt("c12_284",1); editor.commit()}
            if(gooSpinner.selectedItem=="고흥군"){editor.putInt("c12_285",1); editor.commit()}
            if(gooSpinner.selectedItem=="보성군"){editor.putInt("c12_286",1); editor.commit()}
            if(gooSpinner.selectedItem=="화순군"){editor.putInt("c12_287",1); editor.commit()}
            if(gooSpinner.selectedItem=="장흥군"){editor.putInt("c12_288",1); editor.commit()}
            if(gooSpinner.selectedItem=="강진군"){editor.putInt("c12_289",1); editor.commit()}
            if(gooSpinner.selectedItem=="해남군"){editor.putInt("c12_290",1); editor.commit()}
            if(gooSpinner.selectedItem=="영암군"){editor.putInt("c12_291",1); editor.commit()}
            if(gooSpinner.selectedItem=="무안군"){editor.putInt("c12_292",1); editor.commit()}
            if(gooSpinner.selectedItem=="함평군"){editor.putInt("c12_293",1); editor.commit()}
            if(gooSpinner.selectedItem=="영광군"){editor.putInt("c12_294",1); editor.commit()}
            if(gooSpinner.selectedItem=="장성군"){editor.putInt("c12_295",1); editor.commit()}
            if(gooSpinner.selectedItem=="완도군"){editor.putInt("c12_296",1); editor.commit()}
            if(gooSpinner.selectedItem=="진도군"){editor.putInt("c12_297",1); editor.commit()}
            if(gooSpinner.selectedItem=="신안군"){editor.putInt("c12_298",1); editor.commit()}
            if(gooSpinner.selectedItem=="포항시"){editor.putInt("c12_299",1); editor.commit()}
            if(gooSpinner.selectedItem=="포항시 남구"){editor.putInt("c12_300",1); editor.commit()}
            if(gooSpinner.selectedItem=="포항시 북구"){editor.putInt("c12_301",1); editor.commit()}
            if(gooSpinner.selectedItem=="경주시"){editor.putInt("c12_302",1); editor.commit()}
            if(gooSpinner.selectedItem=="김천시"){editor.putInt("c12_303",1); editor.commit()}
            if(gooSpinner.selectedItem=="안동시"){editor.putInt("c12_304",1); editor.commit()}
            if(gooSpinner.selectedItem=="구미시"){editor.putInt("c12_305",1); editor.commit()}
            if(gooSpinner.selectedItem=="영주시"){editor.putInt("c12_306",1); editor.commit()}
            if(gooSpinner.selectedItem=="영천시"){editor.putInt("c12_307",1); editor.commit()}
            if(gooSpinner.selectedItem=="상주시"){editor.putInt("c12_308",1); editor.commit()}
            if(gooSpinner.selectedItem=="문경시"){editor.putInt("c12_309",1); editor.commit()}
            if(gooSpinner.selectedItem=="경산시"){editor.putInt("c12_310",1); editor.commit()}
            if(gooSpinner.selectedItem=="군위군"){editor.putInt("c12_311",1); editor.commit()}
            if(gooSpinner.selectedItem=="의성군"){editor.putInt("c12_312",1); editor.commit()}
            if(gooSpinner.selectedItem=="청송군"){editor.putInt("c12_313",1); editor.commit()}
            if(gooSpinner.selectedItem=="영양군"){editor.putInt("c12_314",1); editor.commit()}
            if(gooSpinner.selectedItem=="영덕군"){editor.putInt("c12_315",1); editor.commit()}
            if(gooSpinner.selectedItem=="청도군"){editor.putInt("c12_316",1); editor.commit()}
            if(gooSpinner.selectedItem=="고령군"){editor.putInt("c12_317",1); editor.commit()}
            if(gooSpinner.selectedItem=="성주군"){editor.putInt("c12_318",1); editor.commit()}
            if(gooSpinner.selectedItem=="칠곡군"){editor.putInt("c12_319",1); editor.commit()}
            if(gooSpinner.selectedItem=="예천군"){editor.putInt("c12_320",1); editor.commit()}
            if(gooSpinner.selectedItem=="봉화군"){editor.putInt("c12_321",1); editor.commit()}
            if(gooSpinner.selectedItem=="울진군"){editor.putInt("c12_322",1); editor.commit()}
            if(gooSpinner.selectedItem=="울릉군"){editor.putInt("c12_323",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시"){editor.putInt("c12_324",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시 의창구"){editor.putInt("c12_325",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시 성산구"){editor.putInt("c12_326",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시 마산합포구"){editor.putInt("c12_327",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시 마산회원구"){editor.putInt("c12_328",1); editor.commit()}
            if(gooSpinner.selectedItem=="창원시 진해구"){editor.putInt("c12_329",1); editor.commit()}
            if(gooSpinner.selectedItem=="진주시"){editor.putInt("c12_330",1); editor.commit()}
            if(gooSpinner.selectedItem=="통영시"){editor.putInt("c12_331",1); editor.commit()}
            if(gooSpinner.selectedItem=="사천시"){editor.putInt("c12_332",1); editor.commit()}
            if(gooSpinner.selectedItem=="사천남양출장"){editor.putInt("c12_333",1); editor.commit()}
            if(gooSpinner.selectedItem=="김해시"){editor.putInt("c12_334",1); editor.commit()}
            if(gooSpinner.selectedItem=="장유출장소"){editor.putInt("c12_335",1); editor.commit()}
            if(gooSpinner.selectedItem=="밀양시"){editor.putInt("c12_336",1); editor.commit()}
            if(gooSpinner.selectedItem=="거제시"){editor.putInt("c12_337",1); editor.commit()}
            if(gooSpinner.selectedItem=="양산시"){editor.putInt("c12_338",1); editor.commit()}
            if(gooSpinner.selectedItem=="양산시웅상출장소"){editor.putInt("c12_339",1); editor.commit()}
            if(gooSpinner.selectedItem=="의령군"){editor.putInt("c12_340",1); editor.commit()}
            if(gooSpinner.selectedItem=="함안군"){editor.putInt("c12_341",1); editor.commit()}
            if(gooSpinner.selectedItem=="창녕군"){editor.putInt("c12_342",1); editor.commit()}
            if(gooSpinner.selectedItem=="남해군"){editor.putInt("c12_343",1); editor.commit()}
            if(gooSpinner.selectedItem=="하동군"){editor.putInt("c12_344",1); editor.commit()}
            if(gooSpinner.selectedItem=="산청군"){editor.putInt("c12_345",1); editor.commit()}
            if(gooSpinner.selectedItem=="함양군"){editor.putInt("c12_346",1); editor.commit()}
            if(gooSpinner.selectedItem=="거창군"){editor.putInt("c12_347",1); editor.commit()}
            if(gooSpinner.selectedItem=="합천군"){editor.putInt("c12_348",1); editor.commit()}
            if(gooSpinner.selectedItem=="제주시"){editor.putInt("c12_349",1); editor.commit()}
            if(gooSpinner.selectedItem=="서귀포시"){editor.putInt("c12_350",1); editor.commit()}

            var intent = Intent(this, InputProfilFirstFiveActivity::class.java)
            startActivity(intent)
        }
    }
}