SMAHA04090_공단단체예약접수.xfdl 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA04090" position="absolute 0 0 1196 810" titletext="단체예약접수" oninit="SMAHA04090_oninit" onload="SMAHA04090_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab position="absolute 0 27 1195 784" id="switch1" anchor="all">
  8. <Tabpages>
  9. <Tabpage text="공단건진" id="case_gnrl">
  10. <Layouts>
  11. <Layout width="1195" height="730">
  12. <Shape position="absolute 0 48 1195 54" linetype="horizontal" id="line8" class="line_3" anchor="left top right"/>
  13. <Button position="absolute 233 27 298 49" id="button3" class="btn2" text="일괄적용" onclick="switch1_case_gnrl_button3_onclick"/>
  14. <Static text="공단일괄 예약/접수" position="absolute 0 6 151 28" id="caption2" class="tit_2"/>
  15. <Button position="absolute 1041 0 1118 22" id="btn_upload" class="btn2" text="파일업로드" anchor="top right" onclick="switch1_case_gnrl_btn_upload_onclick"/>
  16. <Radio position="absolute 82 28 225 48" id="rdo_healexamplacecd" columncount="-1" rowcount="-1" innerdataset="@ds_init_baseinfo_healexamplacelst_S600" datacolumn="cdnm" codecolumn="cdid"/>
  17. <Static text="장소구분" position="absolute 0 27 78 49" align="align:center middle;" id="caption47" class="cell_1"/>
  18. <Shape position="absolute 0 22 1195 28" linetype="horizontal" id="line17" class="line_10" anchor="left top right"/>
  19. <Grid position="absolute 0 52 1195 725" id="grd_cupload" binddataset="ds_main_uploadlst_item" autoenter="select" cellsizingtype="col" anchor="all" onexpanddown="switch1_case_gnrl_grd_cupload_onexpanddown">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="23"/>
  24. <Column size="24"/>
  25. <Column size="50"/>
  26. <Column size="80"/>
  27. <Column size="70"/>
  28. <Column size="70"/>
  29. <Column size="90"/>
  30. <Column size="150"/>
  31. <Column size="110"/>
  32. <Column size="110"/>
  33. <Column size="35"/>
  34. <Column size="35"/>
  35. <Column size="250"/>
  36. <Column size="200"/>
  37. <Column size="200"/>
  38. <Column size="80"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="24" band="head"/>
  53. <Row size="24"/>
  54. </Rows>
  55. <Band id="head">
  56. <Cell/>
  57. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  58. <Cell col="2" text="선택"/>
  59. <Cell col="3" text="성명"/>
  60. <Cell col="4" text="주민번호"/>
  61. <Cell col="5" text="주민번호"/>
  62. <Cell col="6" text="건진일"/>
  63. <Cell col="7" text="이메일주소"/>
  64. <Cell col="8" text="전화번호"/>
  65. <Cell col="9" text="핸드폰"/>
  66. <Cell col="10" colspan="2" text="우편번호" taborder="undefined"/>
  67. <Cell col="12" text="주 소"/>
  68. <Cell col="13" text="패키지"/>
  69. <Cell col="14" text="추가검사"/>
  70. <Cell col="15" text="건진장소"/>
  71. <Cell col="16" text="패키지명"/>
  72. <Cell col="17" text="추가검사명"/>
  73. <Cell col="18" text="sex"/>
  74. <Cell col="19" text="brthdd"/>
  75. <Cell col="20" text="age"/>
  76. <Cell col="21" text="forgneryn"/>
  77. <Cell col="22" text="emailid"/>
  78. <Cell col="23" text="emailtype"/>
  79. <Cell col="24" text="statflag"/>
  80. <Cell col="25" text="healexamflag"/>
  81. <Cell col="26" text="healexamdetlflag"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell celltype="head" expr="currow+1"/>
  85. <Cell col="1" colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0" taborder="undefined"/>
  86. <Cell col="3" text="bind:hngnm"/>
  87. <Cell col="4" displaytype="text" edittype="text" text="bind:rrgstno1" enable="false"/>
  88. <Cell col="5" displaytype="text" edittype="text" text="bind:rrgstno2" enable="false"/>
  89. <Cell col="6" displaytype="date" edittype="date" text="bind:hopedd" calendardisplaynulltype="nulltext"/>
  90. <Cell col="7" displaytype="text" edittype="text" text="bind:email" enable="false"/>
  91. <Cell col="8" displaytype="text" edittype="text" text="bind:telno" enable="false"/>
  92. <Cell col="9" displaytype="text" edittype="text" text="bind:mpphon" enable="false"/>
  93. <Cell col="10" displaytype="text" edittype="text" text="bind:zipcd11" enable="false"/>
  94. <Cell col="11" displaytype="text" edittype="text" text="bind:zipcd12" enable="false"/>
  95. <Cell col="12" text="bind:detladdr1" enable="false"/>
  96. <Cell col="13" displaytype="text" edittype="text" text="bind:pkgcd" expandshow="show"/>
  97. <Cell col="14" displaytype="text" edittype="text" text="bind:testcd" expandshow="show"/>
  98. <Cell col="15" displaytype="combo" edittype="combo" text="bind:healexamplacecd" combodataset="ds_init_baseinfo_healexamplacelst_S600" combocodecol="cdid" combodatacol="cdnm"/>
  99. <Cell col="16" text="bind:pkgnm"/>
  100. <Cell col="17" text="bind:testnm"/>
  101. <Cell col="18" text="bind:sex"/>
  102. <Cell col="19" text="bind:brthdd"/>
  103. <Cell col="20" text="bind:age"/>
  104. <Cell col="21" text="bind:forgneryn"/>
  105. <Cell col="22" text="bind:emailid"/>
  106. <Cell col="23" text="bind:emailtype"/>
  107. <Cell col="24" text="bind:statflag"/>
  108. <Cell col="25" text="bind:healexamflag"/>
  109. <Cell col="26" text="bind:healexamdetlflag"/>
  110. </Band>
  111. </Format>
  112. </Formats>
  113. </Grid>
  114. <Button position="absolute 1120 0 1195 22" id="btn_chkdata" class="btn2" text="데이터확인" anchor="top right" onclick="switch1_case_gnrl_btn_chkdata_onclick"/>
  115. </Layout>
  116. </Layouts>
  117. </Tabpage>
  118. <Tabpage text="특수건진" id="case_spcl">
  119. <Layouts>
  120. <Layout>
  121. <Button position="absolute 1120 0 1195 22" id="button1" class="btn2" text="파일업로드" onclick="switch1_case_spcl_button1_onclick" anchor="top right"/>
  122. <Static text="특수일괄 예약/접수" position="absolute 0 6 151 28" id="caption1" class="tit_2"/>
  123. <Shape position="absolute 0 22 1195 28" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  124. <Shape position="absolute 0 48 1195 54" linetype="horizontal" id="line2" class="line_3" anchor="left top right"/>
  125. <Button position="absolute 427 27 491 49" id="button4" class="btn2" text="일괄적용" onclick="switch1_case_spcl_button4_onclick"/>
  126. <Radio position="absolute 77 28 220 48" id="rdo_spclhealexamplace" columncount="-1" rowcount="-1" innerdataset="@ds_init_baseinfo_healexamplacelst_S600" datacolumn="cdnm" codecolumn="cdid"/>
  127. <Static text="장소구분" position="absolute 0 27 73 49" align="align:center middle;" id="caption3" class="cell_1"/>
  128. <Grid position="absolute 0 52 1195 725" id="grd_supload" binddataset="ds_main_uploadspcllst_item" anchor="all" autoenter="select" cellsizingtype="col" onexpanddown="switch1_case_spcl_grd_supload_onexpanddown">
  129. <Formats>
  130. <Format id="default">
  131. <Columns>
  132. <Column size="27"/>
  133. <Column size="21"/>
  134. <Column size="50"/>
  135. <Column size="80"/>
  136. <Column size="100"/>
  137. <Column size="100"/>
  138. <Column size="100"/>
  139. <Column size="100"/>
  140. <Column size="100"/>
  141. <Column size="100"/>
  142. <Column size="100"/>
  143. <Column size="100"/>
  144. <Column size="100"/>
  145. <Column size="100"/>
  146. <Column size="100"/>
  147. <Column size="100"/>
  148. <Column size="100"/>
  149. <Column size="100"/>
  150. <Column size="100"/>
  151. <Column size="100"/>
  152. <Column size="100"/>
  153. <Column size="100"/>
  154. <Column size="100"/>
  155. <Column size="100"/>
  156. <Column size="100"/>
  157. <Column size="100"/>
  158. <Column size="100"/>
  159. <Column size="100"/>
  160. <Column size="100"/>
  161. <Column size="100"/>
  162. <Column size="100"/>
  163. <Column size="100"/>
  164. <Column size="100"/>
  165. <Column size="100"/>
  166. <Column size="100"/>
  167. <Column size="100"/>
  168. <Column size="100"/>
  169. <Column size="100"/>
  170. <Column size="100"/>
  171. <Column size="100"/>
  172. <Column size="100"/>
  173. <Column size="100"/>
  174. <Column size="100"/>
  175. <Column size="100"/>
  176. <Column size="100"/>
  177. <Column size="100"/>
  178. <Column size="100"/>
  179. <Column size="100"/>
  180. <Column size="100"/>
  181. <Column size="0"/>
  182. <Column size="0"/>
  183. <Column size="0"/>
  184. <Column size="0"/>
  185. <Column size="0"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. </Columns>
  191. <Rows>
  192. <Row size="24" band="head"/>
  193. <Row size="24"/>
  194. </Rows>
  195. <Band id="head">
  196. <Cell/>
  197. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  198. <Cell col="2" text="선택"/>
  199. <Cell col="3" text="사업장코드"/>
  200. <Cell col="4" text="예약일자"/>
  201. <Cell col="5" text="차트번호"/>
  202. <Cell col="6" text="성명"/>
  203. <Cell col="7" text="주민번호"/>
  204. <Cell col="8" text="사원번호"/>
  205. <Cell col="9" text="증번호"/>
  206. <Cell col="10" text="부서명"/>
  207. <Cell col="11" text="입사일자"/>
  208. <Cell col="12" text="전입일자"/>
  209. <Cell col="13" text="직종"/>
  210. <Cell col="14" text="작업공정코드"/>
  211. <Cell col="15" text="작업공정명"/>
  212. <Cell col="16" text="일반/생애"/>
  213. <Cell col="17" text="청구구분"/>
  214. <Cell col="18" text="특수구분"/>
  215. <Cell col="19" text="유해인자1"/>
  216. <Cell col="20" text="유해인자2"/>
  217. <Cell col="21" text="유해인자3"/>
  218. <Cell col="22" text="유해인자4"/>
  219. <Cell col="23" text="유해인자5"/>
  220. <Cell col="24" text="유해인자6"/>
  221. <Cell col="25" text="유해인자7"/>
  222. <Cell col="26" text="유해인자8"/>
  223. <Cell col="27" text="유해인자9"/>
  224. <Cell col="28" text="유해인자10"/>
  225. <Cell col="29" text="유해인자11"/>
  226. <Cell col="30" text="유해인자12"/>
  227. <Cell col="31" text="유해인자13"/>
  228. <Cell col="32" text="유해인자14"/>
  229. <Cell col="33" text="유해인자15"/>
  230. <Cell col="34" text="유해인자16"/>
  231. <Cell col="35" text="유해인자17"/>
  232. <Cell col="36" text="유해인자18"/>
  233. <Cell col="37" text="유해인자19"/>
  234. <Cell col="38" text="유해인자20"/>
  235. <Cell col="39" text="추가검사"/>
  236. <Cell col="40" text="추가청구구분"/>
  237. <Cell col="41" text="간이패키지"/>
  238. <Cell col="42" text="간이청구구분"/>
  239. <Cell col="43" text="장소구분"/>
  240. <Cell col="44" text="출장/내원구분"/>
  241. <Cell col="45" text="공단(생애전환기)"/>
  242. <Cell col="46" text="공단청구구분"/>
  243. <Cell col="47" text="비고"/>
  244. <Cell col="48" text="1/2차"/>
  245. <Cell col="49" text="sex"/>
  246. <Cell col="50" text="brthdd"/>
  247. <Cell col="51" text="age"/>
  248. <Cell col="52" text="forgneryn"/>
  249. <Cell col="53" text="statflag"/>
  250. <Cell col="54" text="gnrlpkgcd"/>
  251. <Cell col="55" text="acptcd"/>
  252. <Cell col="56" text="healexamflag"/>
  253. <Cell col="57" text="healexamdetlflag"/>
  254. </Band>
  255. <Band id="body">
  256. <Cell celltype="head" expr="currow+1"/>
  257. <Cell col="1" colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0" taborder="undefined"/>
  258. <Cell col="3" text="bind:cmpycd"/>
  259. <Cell col="4" displaytype="date" edittype="date" text="bind:hopedd" calendardisplaynulltype="nulltext" enable="false"/>
  260. <Cell col="5" text="bind:chartno"/>
  261. <Cell col="6" text="bind:hngnm"/>
  262. <Cell col="7" text="bind:rrgstno"/>
  263. <Cell col="8" text="bind:clntempid"/>
  264. <Cell col="9" text="bind:acpt_insuid"/>
  265. <Cell col="10" text="bind:deptnm"/>
  266. <Cell col="11" displaytype="date" edittype="date" text="bind:entcodd" calendardisplaynulltype="nulltext" enable="false"/>
  267. <Cell col="12" displaytype="date" edittype="date" text="bind:junibdd" calendardisplaynulltype="nulltext" enable="false"/>
  268. <Cell col="13" displaytype="combo" edittype="combo" text="bind:jobkindcd" combodataset="ds_init_baseinfo_jobkindlst_G108" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  269. <Cell col="14" displaytype="text" edittype="text" text="bind:workproccd" expandshow="show"/>
  270. <Cell col="15" text="bind:workprocnm"/>
  271. <Cell col="16" displaytype="combo" text="bind:gnrlflag" combodataset="ds_init_baseinfo_autopkglst_G110" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  272. <Cell col="17" displaytype="combo" text="bind:gnrluncocd" combodataset="ds_init_baseinfo_pamcdlst_uncocdlst" combocodecol="cd" combodatacol="nm" enable="false"/>
  273. <Cell col="18" displaytype="combo" text="bind:spclhealexamflag" combodataset="ds_init_baseinfo_spclflaglst_G111" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  274. <Cell col="19" displaytype="text" edittype="text" text="bind:spclpkg1" expandshow="show"/>
  275. <Cell col="20" displaytype="text" edittype="text" text="bind:spclpkg2" expandshow="show"/>
  276. <Cell col="21" displaytype="text" edittype="text" text="bind:spclpkg3" expandshow="show"/>
  277. <Cell col="22" displaytype="text" edittype="text" text="bind:spclpkg4" expandshow="show"/>
  278. <Cell col="23" displaytype="text" edittype="text" text="bind:spclpkg5" expandshow="show"/>
  279. <Cell col="24" displaytype="text" edittype="text" text="bind:spclpkg6" expandshow="show"/>
  280. <Cell col="25" displaytype="text" edittype="text" text="bind:spclpkg7" expandshow="show"/>
  281. <Cell col="26" displaytype="text" edittype="text" text="bind:spclpkg8" expandshow="show"/>
  282. <Cell col="27" displaytype="text" edittype="text" text="bind:spclpkg9" expandshow="show"/>
  283. <Cell col="28" displaytype="text" edittype="text" text="bind:spclpkg10" expandshow="show"/>
  284. <Cell col="29" displaytype="text" edittype="text" text="bind:spclpkg11" expandshow="show"/>
  285. <Cell col="30" displaytype="text" edittype="text" text="bind:spclpkg12" expandshow="show"/>
  286. <Cell col="31" displaytype="text" edittype="text" text="bind:spclpkg13" expandshow="show"/>
  287. <Cell col="32" displaytype="text" edittype="text" text="bind:spclpkg14" expandshow="show"/>
  288. <Cell col="33" displaytype="text" edittype="text" text="bind:spclpkg15" expandshow="show"/>
  289. <Cell col="34" displaytype="text" edittype="text" text="bind:spclpkg16" expandshow="show"/>
  290. <Cell col="35" displaytype="text" edittype="text" text="bind:spclpkg17" expandshow="show"/>
  291. <Cell col="36" displaytype="text" edittype="text" text="bind:spclpkg18" expandshow="show"/>
  292. <Cell col="37" displaytype="text" edittype="text" text="bind:spclpkg19" expandshow="show"/>
  293. <Cell col="38" displaytype="text" edittype="text" text="bind:spclpkg20" expandshow="show"/>
  294. <Cell col="39" displaytype="text" edittype="text" text="bind:addtest" expandshow="show"/>
  295. <Cell col="40" displaytype="combo" text="bind:adduncocd" combodataset="ds_init_baseinfo_pamcdlst_uncocdlst" combocodecol="cd" combodatacol="nm" enable="false"/>
  296. <Cell col="41" displaytype="text" edittype="text" text="bind:simppkgcd" expandshow="show"/>
  297. <Cell col="42" displaytype="combo" text="bind:simpuncocd" combodataset="ds_init_baseinfo_pamcdlst_uncocdlst" combocodecol="cd" combodatacol="nm" enable="false"/>
  298. <Cell col="43" displaytype="combo" edittype="combo" text="bind:healexamplacecd" combodataset="ds_init_baseinfo_healexamplacelst_S600" combocodecol="cdid" combodatacol="cdnm"/>
  299. <Cell col="44" displaytype="combo" text="bind:plceflag" combodataset="ds_init_baseinfo_plceflag_A0110" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  300. <Cell col="45" displaytype="text" edittype="text" text="bind:lifeconvpkgcd" expandshow="show"/>
  301. <Cell col="46" displaytype="combo" text="bind:lifeconvuncocd" combodataset="ds_init_baseinfo_pamcdlst_uncocdlst" combocodecol="cd" combodatacol="nm" enable="false"/>
  302. <Cell col="47" text="bind:remcnts"/>
  303. <Cell col="48" displaytype="combo" edittype="combo" text="bind:dgflag" combodataset="ds_cmb_dgflag" combocodecol="value" combodatacol="label"/>
  304. <Cell col="49" text="bind:sex"/>
  305. <Cell col="50" text="bind:brthdd"/>
  306. <Cell col="51" text="bind:age"/>
  307. <Cell col="52" text="bind:forgneryn"/>
  308. <Cell col="53" text="bind:statflag"/>
  309. <Cell col="54" text="bind:gnrlpkgcd"/>
  310. <Cell col="55" text="bind:acptcd"/>
  311. <Cell col="56" text="bind:healexamflag"/>
  312. <Cell col="57" text="bind:healexamdetlflag"/>
  313. </Band>
  314. </Format>
  315. </Formats>
  316. </Grid>
  317. <Button position="absolute 1053 0 1117 22" id="button2" class="btn2" text="물질확인" onclick="switch1_case_spcl_button2_onclick" anchor="top right"/>
  318. <Static text="출장/내원구분" position="absolute 223 27 313 49" align="align:center middle;" id="caption4" class="cell_1"/>
  319. <Combo position="absolute 317 29 422 48" id="combo1" innerdataset="@ds_init_baseinfo_plceflag_A0110" datacolumn="cdnm" codecolumn="cdid"/>
  320. <Button position="absolute 964 0 1050 22" id="button15" class="btn2" text="주민번호체크" onclick="switch1_case_spcl_button15_onclick" anchor="top right"/>
  321. </Layout>
  322. </Layouts>
  323. </Tabpage>
  324. <Tabpage text="증번호" id="case_insu">
  325. <Layouts>
  326. <Layout>
  327. <Div id="grp_sea" anchor="left top right" taborder="1" class="div_SA2" position="absolute 0 0 1195 40"/>
  328. <Static text="증번호등록" position="absolute 0 48 151 69" id="caption8" class="tit_2"/>
  329. <Shape position="absolute 0 64 1195 70" linetype="horizontal" id="line3" class="line_10" anchor="left top right"/>
  330. <Grid position="absolute 0 69 1195 725" id="grd_iupload" binddataset="ds_main_uploadinsulst_item" anchor="all" cellsizingtype="col" selecttype="multirow">
  331. <Formats>
  332. <Format id="default">
  333. <Columns>
  334. <Column size="23"/>
  335. <Column size="150"/>
  336. <Column size="150"/>
  337. <Column size="150"/>
  338. </Columns>
  339. <Rows>
  340. <Row size="24" band="head"/>
  341. <Row size="24"/>
  342. </Rows>
  343. <Band id="head">
  344. <Cell/>
  345. <Cell col="1" colspan="2" text="주민번호" taborder="undefined"/>
  346. <Cell col="3" text="증번호"/>
  347. </Band>
  348. <Band id="body">
  349. <Cell celltype="head"/>
  350. <Cell col="1" displaytype="text" style="background:EXPR(background_rrgstno1);background2:EXPR(background_rrgstno2);" text="bind:rrgstno1" enable="false"/>
  351. <Cell col="2" displaytype="text" style="background:EXPR(back_rrgstno2);background2:EXPR(back_rrgstno2);" text="bind:rrgstno2" enable="false"/>
  352. <Cell col="3" displaytype="text" edittype="text" text="bind:insuid"/>
  353. </Band>
  354. </Format>
  355. </Formats>
  356. </Grid>
  357. <Button position="absolute 1042 42 1117 64" id="button6" class="btn2" text="파일업로드" anchor="top right" onclick="switch1_case_insu_button6_onclick"/>
  358. <Button position="absolute 930 42 983 64" id="button7" class="btn2" text="행추가" anchor="top right" onclick="switch1_case_insu_button7_onclick"/>
  359. <Button position="absolute 986 42 1039 64" id="button9" class="btn2" text="행삭제" anchor="top right" onclick="switch1_case_insu_button9_onclick"/>
  360. <Button position="absolute 1122 9 1178 31" id="btn_acptlst" class="btn1" text="조회" anchor="top right" onclick="switch1_case_insu_btn_acptlst_onclick"/>
  361. <Shape position="absolute 1103 10 1109 32" linetype="vertical" id="line29" anchor="top right"/>
  362. <Edit position="absolute 95 10 195 29" id="input1" autoselect="true" autoskip="true"/>
  363. <Edit position="absolute 205 10 305 29" id="input2" autoselect="true" autoskip="true"/>
  364. <Edit position="absolute 412 9 522 28" id="input3" autoselect="true" autoskip="true"/>
  365. <Static text="주민번호 :" position="absolute 5 12 91 29" id="caption49" class="search_name"/>
  366. <Static text="증번호 :" position="absolute 335 12 421 29" id="caption9" class="search_name"/>
  367. <Button position="absolute 1120 42 1195 64" id="button10" class="btn2" text="데이터확인" anchor="top right" onclick="switch1_case_insu_button10_onclick"/>
  368. </Layout>
  369. </Layouts>
  370. </Tabpage>
  371. <Tabpage text="내려받기" id="case_down">
  372. <Layouts>
  373. <Layout>
  374. <Div id="grp_sea" anchor="left top right" taborder="13" class="div_SA2" position="absolute 0 0 1195 40"/>
  375. <Edit position="absolute 537 10 677 29" id="opt_cmpynm" enable="false"/>
  376. <Button position="absolute 518 10 534 26" id="btn_srchcmpy" class="icon_search" text="" onclick="switch1_case_down_btn_srchcmpy_onclick"/>
  377. <Edit position="absolute 409 10 513 29" id="ipt_cmpycd" class="input_default" taborder="12" autoselect="true" autoskip="true" onkeyup="switch1_case_down_ipt_cmpycd_onkeyup"/>
  378. <Static text="건진일자 :" position="absolute 6 12 92 29" id="caption5" class="search_name"/>
  379. <Static text="사업체 :" position="absolute 331 12 417 29" id="caption7" class="search_name"/>
  380. <Calendar position="absolute 93 9 193 28" id="ipt_srchfromdd" class="input_essential" autoselect="true" autoskip="true"/>
  381. <Static text="~" position="absolute 197 10 209 27" id="caption50" class="search_n_b"/>
  382. <Calendar position="absolute 213 9 313 28" id="ipt_srchtodd" class="input_essential" autoselect="true" autoskip="true" onchanged="switch1_case_down_ipt_srchtodd_onchanged"/>
  383. <Button position="absolute 1123 10 1179 32" id="button12" class="btn1" text="조회" anchor="top right" onclick="switch1_case_down_button12_onclick"/>
  384. <Shape position="absolute 1109 10 1115 32" linetype="vertical" id="line4" anchor="top right"/>
  385. <Button position="absolute 1115 42 1195 64" id="button13" class="btn7" text="엑셀저장" anchor="top right" onclick="switch1_case_down_button13_onclick"/>
  386. <Grid position="absolute 0 69 1195 725" id="grd_spcldownlst" binddataset="ds_main_downloadlst_item" autoenter="select" cellsizingtype="both" anchor="all" onrbuttondown="switch1_case_down_grd_spcldownlst_onrbuttondown" selecttype="multirow" extendsizetype="row" autosizingtype="row" cellclickbound="cell">
  387. <Formats>
  388. <Format id="default">
  389. <Columns>
  390. <Column size="22"/>
  391. <Column size="26"/>
  392. <Column size="29"/>
  393. <Column size="80"/>
  394. <Column size="100"/>
  395. <Column size="100"/>
  396. <Column size="100"/>
  397. <Column size="100"/>
  398. <Column size="100"/>
  399. <Column size="100"/>
  400. <Column size="100"/>
  401. <Column size="100"/>
  402. <Column size="100"/>
  403. <Column size="100"/>
  404. <Column size="100"/>
  405. <Column size="100"/>
  406. <Column size="100"/>
  407. <Column size="100"/>
  408. <Column size="100"/>
  409. <Column size="100"/>
  410. <Column size="100"/>
  411. <Column size="100"/>
  412. <Column size="100"/>
  413. <Column size="100"/>
  414. <Column size="100"/>
  415. <Column size="100"/>
  416. <Column size="100"/>
  417. <Column size="100"/>
  418. <Column size="100"/>
  419. <Column size="100"/>
  420. <Column size="100"/>
  421. <Column size="100"/>
  422. <Column size="100"/>
  423. <Column size="100"/>
  424. <Column size="100"/>
  425. <Column size="100"/>
  426. <Column size="100"/>
  427. <Column size="100"/>
  428. <Column size="100"/>
  429. <Column size="100"/>
  430. <Column size="100"/>
  431. <Column size="100"/>
  432. <Column size="100"/>
  433. <Column size="100"/>
  434. <Column size="100"/>
  435. <Column size="0"/>
  436. <Column size="0"/>
  437. <Column size="0"/>
  438. </Columns>
  439. <Rows>
  440. <Row size="24" band="head"/>
  441. <Row size="24"/>
  442. </Rows>
  443. <Band id="head">
  444. <Cell/>
  445. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  446. <Cell col="2" text="선택"/>
  447. <Cell col="3" text="사업장코드"/>
  448. <Cell col="4" text="예약일자"/>
  449. <Cell col="5" text="차트번호"/>
  450. <Cell col="6" text="성명"/>
  451. <Cell col="7" text="주민번호"/>
  452. <Cell col="8" text="사원번호"/>
  453. <Cell col="9" text="증번호"/>
  454. <Cell col="10" text="부서명"/>
  455. <Cell col="11" text="입사일자"/>
  456. <Cell col="12" text="전입일자"/>
  457. <Cell col="13" text="직종"/>
  458. <Cell col="14" text="작업공정코드"/>
  459. <Cell col="15" text="작업공정명"/>
  460. <Cell col="16" text="일반/생애"/>
  461. <Cell col="17" text="청구구분"/>
  462. <Cell col="18" text="특수구분"/>
  463. <Cell col="19" text="유해인자1"/>
  464. <Cell col="20" text="유해인자2"/>
  465. <Cell col="21" text="유해인자3"/>
  466. <Cell col="22" text="유해인자4"/>
  467. <Cell col="23" text="유해인자5"/>
  468. <Cell col="24" text="유해인자6"/>
  469. <Cell col="25" text="유해인자7"/>
  470. <Cell col="26" text="유해인자8"/>
  471. <Cell col="27" text="유해인자9"/>
  472. <Cell col="28" text="유해인자10"/>
  473. <Cell col="29" text="유해인자11"/>
  474. <Cell col="30" text="유해인자12"/>
  475. <Cell col="31" text="유해인자13"/>
  476. <Cell col="32" text="유해인자14"/>
  477. <Cell col="33" text="유해인자15"/>
  478. <Cell col="34" text="유해인자16"/>
  479. <Cell col="35" text="유해인자17"/>
  480. <Cell col="36" text="유해인자18"/>
  481. <Cell col="37" text="유해인자19"/>
  482. <Cell col="38" text="유해인자20"/>
  483. <Cell col="39" text="추가검사"/>
  484. <Cell col="40" text="추가청구구분"/>
  485. <Cell col="41" text="간이패키지"/>
  486. <Cell col="42" text="간이청구구분"/>
  487. <Cell col="43" text=" 등록번호"/>
  488. <Cell col="44" text="검진일"/>
  489. <Cell col="45" text="유해인자목록"/>
  490. <Cell col="46" text="유해인자별검사"/>
  491. <Cell col="47" text="사업체명"/>
  492. </Band>
  493. <Band id="body">
  494. <Cell celltype="head" expr="currow+1"/>
  495. <Cell col="1" colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0" taborder="undefined"/>
  496. <Cell col="3" text="bind:cmpycd"/>
  497. <Cell col="4" displaytype="date" edittype="date" text="bind:hopedd" calendardisplaynulltype="nulltext" enable="false"/>
  498. <Cell col="5" text="bind:chartno"/>
  499. <Cell col="6" text="bind:hngnm"/>
  500. <Cell col="7" text="bind:rrgstno"/>
  501. <Cell col="8" text="bind:clntempid"/>
  502. <Cell col="9" text="bind:insuid"/>
  503. <Cell col="10" text="bind:clntdeptnm"/>
  504. <Cell col="11" displaytype="date" edittype="date" text="bind:entcodd" calendardisplaynulltype="nulltext" enable="false"/>
  505. <Cell col="12" displaytype="date" edittype="date" text="bind:junibdd" calendardisplaynulltype="nulltext" enable="false"/>
  506. <Cell col="13" edittype="none" text="bind:jobkindnm" enable="false"/>
  507. <Cell col="14" edittype="none" text="bind:workproccd"/>
  508. <Cell col="15" text="bind:workprocnm"/>
  509. <Cell col="16" edittype="none" style="align:left middle;padding:3 3 3 3;" text="bind:gnrlpkg" wordwrap="word" autosizerow="limitmin" enable="false"/>
  510. <Cell col="17" edittype="none" style="align:left middle;padding:3 3 3 3;" text="bind:gnrluncocd" wordwrap="word" autosizerow="limitmin" enable="false"/>
  511. <Cell col="18" edittype="none" text="bind:spclhealexamflag" enable="false"/>
  512. <Cell col="19" edittype="none" text="bind:spclpkg1"/>
  513. <Cell col="20" edittype="none" text="bind:spclpkg2"/>
  514. <Cell col="21" edittype="none" text="bind:spclpkg3"/>
  515. <Cell col="22" edittype="none" text="bind:spclpkg4"/>
  516. <Cell col="23" edittype="none" text="bind:spclpkg5"/>
  517. <Cell col="24" edittype="none" text="bind:spclpkg6"/>
  518. <Cell col="25" edittype="none" text="bind:spclpkg7"/>
  519. <Cell col="26" edittype="none" text="bind:spclpkg8"/>
  520. <Cell col="27" edittype="none" text="bind:spclpkg9"/>
  521. <Cell col="28" edittype="none" text="bind:spclpkg10"/>
  522. <Cell col="29" edittype="none" text="bind:spclpkg11"/>
  523. <Cell col="30" edittype="none" text="bind:spclpkg12"/>
  524. <Cell col="31" edittype="none" text="bind:spclpkg13"/>
  525. <Cell col="32" edittype="none" text="bind:spclpkg14"/>
  526. <Cell col="33" edittype="none" text="bind:spclpkg15"/>
  527. <Cell col="34" edittype="none" text="bind:spclpkg16"/>
  528. <Cell col="35" edittype="none" text="bind:spclpkg17"/>
  529. <Cell col="36" edittype="none" text="bind:spclpkg18"/>
  530. <Cell col="37" edittype="none" text="bind:spclpkg19"/>
  531. <Cell col="38" edittype="none" text="bind:spclpkg20"/>
  532. <Cell col="39" edittype="none" text="bind:addtest"/>
  533. <Cell col="40" edittype="none" text="bind:adduncocd" enable="false"/>
  534. <Cell col="41" edittype="none" text="bind:simppkg"/>
  535. <Cell col="42" edittype="none" text="bind:simpuncocd" enable="false"/>
  536. <Cell col="43" edittype="none" text="bind:pid"/>
  537. <Cell col="44" displaytype="date" edittype="date" text="bind:acptdd" calendardisplaynulltype="nulltext" enable="false"/>
  538. <Cell col="45" text="bind:spclpkg"/>
  539. <Cell col="46" text="bind:spclpkgcmt"/>
  540. <Cell col="47" text="bind:cmpynm"/>
  541. </Band>
  542. </Format>
  543. </Formats>
  544. </Grid>
  545. <Static text="특수일괄 예약/접수" position="absolute 0 48 151 69" id="caption10" class="tit_2"/>
  546. <Shape position="absolute 0 64 1195 70" linetype="horizontal" id="line5" class="line_10" anchor="left top right"/>
  547. <Static text="부서명 :" position="absolute 701 12 787 29" id="caption11" class="search_name"/>
  548. <Edit position="absolute 776 10 946 29" id="input4" autoselect="true" autoskip="true" onkeyup="switch1_case_down_input4_onkeyup"/>
  549. </Layout>
  550. </Layouts>
  551. </Tabpage>
  552. </Tabpages>
  553. </Tab>
  554. <Static id="caption6" text="일괄예약/접수" class="tit_1" position="absolute 0 0 159 25"/>
  555. <Button id="button14" taborder="1" text="검진개인표" class="btn6" position="absolute 0 783 92 805" anchor="left bottom" onclick="button14_onclick"/>
  556. <Button id="button33" taborder="2" text="초기화" class="btn4" position="absolute 1045 783 1113 805" anchor="right bottom" onclick="button33_onclick"/>
  557. <Button id="button8" taborder="3" text="등록처리" class="btn4" position="absolute 1115 783 1195 805" anchor="right bottom" onclick="button8_onclick"/>
  558. <PopupMenu id="pmn_menu1" position="absolute 1237 100 1308 145" innerdataset="@ds_init_popupmenu_grid_item" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu1_onmenuclick"/>
  559. </Layout>
  560. </Layouts>
  561. <Objects>
  562. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  563. <ColumnInfo>
  564. <Column id="srchhealexamflag" type="STRING" size="256"/>
  565. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  566. <Column id="srchhealexamplacecd" type="STRING" size="256"/>
  567. <Column id="srchhealexamplacecd2" type="STRING" size="256"/>
  568. <Column id="srchspclcmpycd" type="STRING" size="256"/>
  569. <Column id="srchspclcmpynm" type="STRING" size="256"/>
  570. <Column id="srchspclbizoffccd" type="STRING" size="256"/>
  571. <Column id="srchspcldeptcd" type="STRING" size="256"/>
  572. <Column id="srchrrgstno1" type="STRING" size="256"/>
  573. <Column id="srchrrgstno2" type="STRING" size="256"/>
  574. <Column id="srchinsuid" type="STRING" size="256"/>
  575. <Column id="srchinstcd" type="STRING" size="256"/>
  576. <Column id="srchplceflag" type="STRING" size="256"/>
  577. <Column id="srchrrgstnogrd1" type="STRING" size="256"/>
  578. <Column id="srchrrgstnogrd2" type="STRING" size="256"/>
  579. </ColumnInfo>
  580. <Rows>
  581. <Row>
  582. <Col id="srchhealexamflag"/>
  583. <Col id="srchhealexamdetlflag"/>
  584. <Col id="srchhealexamplacecd"/>
  585. <Col id="srchhealexamplacecd2"/>
  586. <Col id="srchspclcmpycd"/>
  587. <Col id="srchspclcmpynm"/>
  588. <Col id="srchspclbizoffccd"/>
  589. <Col id="srchspcldeptcd"/>
  590. <Col id="srchrrgstno1"/>
  591. <Col id="srchrrgstno2"/>
  592. <Col id="srchinsuid"/>
  593. <Col id="srchinstcd"/>
  594. <Col id="srchplceflag"/>
  595. </Row>
  596. </Rows>
  597. </Dataset>
  598. <Dataset id="ds_init_baseinfo_healexamplacelst_S600" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  599. <Dataset id="ds_main_uploadlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_uploadlst_item_oncolumnchanged">
  600. <ColumnInfo>
  601. <Column id="chk" type="STRING" size="256"/>
  602. <Column id="hngnm" type="STRING" size="256"/>
  603. <Column id="rrgstno1" type="STRING" size="256"/>
  604. <Column id="rrgstno2" type="STRING" size="256"/>
  605. <Column id="hopedd" type="STRING" size="256"/>
  606. <Column id="email" type="STRING" size="256"/>
  607. <Column id="telno" type="STRING" size="256"/>
  608. <Column id="mpphon" type="STRING" size="256"/>
  609. <Column id="zipcd11" type="STRING" size="256"/>
  610. <Column id="zipcd12" type="STRING" size="256"/>
  611. <Column id="detladdr1" type="STRING" size="256"/>
  612. <Column id="pkgcd" type="STRING" size="256"/>
  613. <Column id="testcd" type="STRING" size="256"/>
  614. <Column id="healexamplacecd" type="STRING" size="256"/>
  615. <Column id="pkgnm" type="STRING" size="256"/>
  616. <Column id="testnm" type="STRING" size="256"/>
  617. <Column id="sex" type="STRING" size="256"/>
  618. <Column id="brthdd" type="STRING" size="256"/>
  619. <Column id="age" type="STRING" size="256"/>
  620. <Column id="forgneryn" type="STRING" size="256"/>
  621. <Column id="emailid" type="STRING" size="256"/>
  622. <Column id="emailtype" type="STRING" size="256"/>
  623. <Column id="statflag" type="STRING" size="256"/>
  624. <Column id="healexamflag" type="STRING" size="256"/>
  625. <Column id="healexamdetlflag" type="STRING" size="256"/>
  626. </ColumnInfo>
  627. </Dataset>
  628. <Dataset id="ds_init_baseinfo_plceflag_A0110" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  629. <Dataset id="ds_main_uploadspcllst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_uploadspcllst_item_oncolumnchanged"/>
  630. <Dataset id="ds_main_uploadinsulst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  631. <ColumnInfo>
  632. <Column id="rrgstno1" type="STRING" size="256"/>
  633. <Column id="rrgstno2" type="STRING" size="256"/>
  634. <Column id="insuid" type="STRING" size="256"/>
  635. </ColumnInfo>
  636. </Dataset>
  637. <Dataset id="ds_send_download" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  638. <ColumnInfo>
  639. <Column id="srchfromdd" type="STRING" size="256"/>
  640. <Column id="srchtodd" type="STRING" size="256"/>
  641. <Column id="srchcmpycd" type="STRING" size="256"/>
  642. <Column id="srchcmpynm" type="STRING" size="256"/>
  643. <Column id="srchdeptnm" type="STRING" size="256"/>
  644. </ColumnInfo>
  645. <Rows>
  646. <Row>
  647. <Col id="srchfromdd"/>
  648. <Col id="srchtodd"/>
  649. <Col id="srchcmpycd"/>
  650. <Col id="srchcmpynm"/>
  651. <Col id="srchdeptnm"/>
  652. </Row>
  653. </Rows>
  654. </Dataset>
  655. <Dataset id="ds_main_downloadlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_downloadlst_item_oncolumnchanged">
  656. <ColumnInfo>
  657. <Column id="chk" type="STRING" size="256" sumtext="사업체코드"/>
  658. <Column id="cmpycd" type="STRING" size="256" sumtext="사업체코드"/>
  659. <Column id="hopedd" type="STRING" size="256" sumtext="예약일자"/>
  660. <Column id="chartno" type="STRING" size="256" sumtext="차크번호"/>
  661. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  662. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  663. <Column id="clntempid" type="STRING" size="256" sumtext="사원번호"/>
  664. <Column id="insuid" type="STRING" size="256" sumtext="증번호"/>
  665. <Column id="clntdeptnm" type="STRING" size="256" sumtext="부서명"/>
  666. <Column id="entcodd" type="STRING" size="256" sumtext="입사일자"/>
  667. <Column id="junibdd" type="STRING" size="256" sumtext="전입일자"/>
  668. <Column id="jobkindnm" type="STRING" size="256" sumtext="직업코드"/>
  669. <Column id="workproccd" type="STRING" size="256" sumtext="작업공정코드"/>
  670. <Column id="workprocnm" type="STRING" size="256" sumtext="작업공정명"/>
  671. <Column id="gnrlpkg" type="STRING" size="256" sumtext="일반구분"/>
  672. <Column id="gnrluncocd" type="STRING" size="256" sumtext="일반청구구분"/>
  673. <Column id="spclhealexamflag" type="STRING" size="256" sumtext="특검구분"/>
  674. <Column id="spclpkg1" type="STRING" size="256" sumtext="특검패키지1"/>
  675. <Column id="spclpkg2" type="STRING" size="256" sumtext="특검패키지2"/>
  676. <Column id="spclpkg3" type="STRING" size="256" sumtext="특검패키지3"/>
  677. <Column id="spclpkg4" type="STRING" size="256" sumtext="특검패키지4"/>
  678. <Column id="spclpkg5" type="STRING" size="256" sumtext="특검패키지5"/>
  679. <Column id="spclpkg6" type="STRING" size="256" sumtext="특검패키지6"/>
  680. <Column id="spclpkg7" type="STRING" size="256" sumtext="특검패키지7"/>
  681. <Column id="spclpkg8" type="STRING" size="256" sumtext="특검패키지8"/>
  682. <Column id="spclpkg9" type="STRING" size="256" sumtext="특검패키지9"/>
  683. <Column id="spclpkg10" type="STRING" size="256" sumtext="특검패키지10"/>
  684. <Column id="spclpkg11" type="STRING" size="256" sumtext="특검패키지11"/>
  685. <Column id="spclpkg12" type="STRING" size="256" sumtext="특검패키지12"/>
  686. <Column id="spclpkg13" type="STRING" size="256" sumtext="특검패키지13"/>
  687. <Column id="spclpkg14" type="STRING" size="256" sumtext="특검패키지14"/>
  688. <Column id="spclpkg15" type="STRING" size="256" sumtext="특검패키지15"/>
  689. <Column id="spclpkg16" type="STRING" size="256" sumtext="특검패키지16"/>
  690. <Column id="spclpkg17" type="STRING" size="256" sumtext="특검패키지17"/>
  691. <Column id="spclpkg18" type="STRING" size="256" sumtext="특검패키지18"/>
  692. <Column id="spclpkg19" type="STRING" size="256" sumtext="특검패키지19"/>
  693. <Column id="spclpkg20" type="STRING" size="256" sumtext="특검패키지20"/>
  694. <Column id="addtest" type="STRING" size="256" sumtext="추가검사"/>
  695. <Column id="adduncocd" type="STRING" size="256" sumtext="청구구분"/>
  696. <Column id="simppkg" type="STRING" size="256" sumtext="기본패키지코드"/>
  697. <Column id="simpuncocd" type="STRING" size="256" sumtext="기본청구구분"/>
  698. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  699. <Column id="acptdd" type="STRING" size="256" sumtext="접수일자"/>
  700. <Column id="spclpkg" type="STRING" size="256" sumtext="특검패키지목록"/>
  701. <Column id="spclpkgcmt" type="STRING" size="256" sumtext="특검패키지비고"/>
  702. <Column id="cmpynm" type="STRING" size="256" sumtext="사업체명"/>
  703. </ColumnInfo>
  704. </Dataset>
  705. <Dataset id="ds_init_baseinfo_pamcdlst_uncocdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  706. <ColumnInfo>
  707. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  708. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  709. <Column id="cmpyrate" type="INT" size="256" sumtext="단체부담율"/>
  710. <Column id="insurate" type="INT" size="256" sumtext="공단부담율"/>
  711. <Column id="cntrrate" type="INT" size="256" sumtext="보건소부담률"/>
  712. <Column id="ownrate" type="INT" size="256" sumtext="개인부담율"/>
  713. </ColumnInfo>
  714. </Dataset>
  715. <Dataset id="ds_init_pkginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  716. <ColumnInfo>
  717. <Column id="srchhealexamflag" type="STRING" size="256" sumtext="건진구분"/>
  718. <Column id="srchhealexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  719. <Column id="srchpkgcondflag" type="STRING" size="256" sumtext="조회구분"/>
  720. <Column id="srchpkgcond" type="STRING" size="256" sumtext="조회조건"/>
  721. </ColumnInfo>
  722. </Dataset>
  723. <Dataset id="ds_init_baseinfo_jobkindlst_G108" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  724. <Dataset id="ds_cmb_dgflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  725. <ColumnInfo>
  726. <Column id="label" type="STRING" size="256"/>
  727. <Column id="value" type="STRING" size="256"/>
  728. </ColumnInfo>
  729. <Rows>
  730. <Row>
  731. <Col id="label">1차</Col>
  732. <Col id="value">1</Col>
  733. </Row>
  734. <Row>
  735. <Col id="label">2차</Col>
  736. <Col id="value">2</Col>
  737. </Row>
  738. </Rows>
  739. </Dataset>
  740. <Dataset id="ds_init_baseinfo_spclflaglst_G111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  741. <Dataset id="ds_init_baseinfo_autopkglst_G110" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  742. <Dataset id="ds_hidden_pkglst_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  743. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  744. <ColumnInfo>
  745. <Column id="okflag" type="STRING" size="256"/>
  746. </ColumnInfo>
  747. <Rows>
  748. <Row/>
  749. </Rows>
  750. </Dataset>
  751. <Dataset id="ds_hidden_pkglst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  752. <Dataset id="ds_hidden_testlst_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  753. <Dataset id="ds_hidden_testlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  754. <Dataset id="ds_hidden_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  755. <Dataset id="ds_tmp_testcount_testcount" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  756. <Dataset id="ds_tmp_uploadinsulst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  757. <ColumnInfo>
  758. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  759. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  760. <Column id="insuid" type="STRING" size="256" sumtext="증번호"/>
  761. </ColumnInfo>
  762. </Dataset>
  763. <Dataset id="ds_send_srch_insurrgstno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  764. <Dataset id="ds_hidden_duprrgstnolst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  765. <Dataset id="ds_hidden_duprrgstnolst_insu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  766. <ColumnInfo>
  767. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  768. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  769. </ColumnInfo>
  770. </Dataset>
  771. <Dataset id="ds_hidde_pkglst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  772. <Dataset id="ds_tmp_rrgstinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  773. <ColumnInfo>
  774. <Column id="rrgstcnt" type="STRING" size="256" sumtext="주민번호1"/>
  775. </ColumnInfo>
  776. </Dataset>
  777. <Dataset id="ds_main_pkginfo_pkglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  778. <Dataset id="ds_init_popupmenu_grid_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  779. <ColumnInfo>
  780. <Column id="label" type="STRING" size="256"/>
  781. <Column id="func" type="STRING" size="256"/>
  782. <Column id="level" type="STRING" size="256"/>
  783. </ColumnInfo>
  784. <Rows>
  785. <Row>
  786. <Col id="label">선택</Col>
  787. <Col id="func">fSetCheck</Col>
  788. </Row>
  789. <Row>
  790. <Col id="label">선택취소</Col>
  791. <Col id="func">fSetCnclCheck</Col>
  792. </Row>
  793. </Rows>
  794. </Dataset>
  795. <Dataset id="ds_main_printinfo_spcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  796. <Dataset id="ds_init_baseinfo_healexamflag_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  797. <Dataset id="ds_init_baseinfo_healexamdetlflag_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  798. <Dataset id="ds_init_baseinfo_acptcd_G112" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  799. </Objects>
  800. <Bind>
  801. <BindItem id="item0" compid="switch1.case_insu.input1" propid="value" datasetid="ds_send" columnid="srchrrgstno1"/>
  802. <BindItem id="item1" compid="switch1.case_insu.input2" propid="value" datasetid="ds_send" columnid="srchrrgstno2"/>
  803. <BindItem id="item2" compid="switch1.case_insu.input3" propid="value" datasetid="ds_send" columnid="srchinsuid"/>
  804. <BindItem id="item3" compid="switch1.case_down.ipt_srchfromdd" propid="value" datasetid="ds_send_download" columnid="srchfromdd"/>
  805. <BindItem id="item4" compid="switch1.case_down.ipt_srchtodd" propid="value" datasetid="ds_send_download" columnid="srchtodd"/>
  806. <BindItem id="item5" compid="switch1.case_down.ipt_cmpycd" propid="value" datasetid="ds_send_download" columnid="srchcmpycd"/>
  807. <BindItem id="item6" compid="switch1.case_down.opt_cmpynm" propid="value" datasetid="ds_send_download" columnid="srchcmpynm"/>
  808. <BindItem id="item7" compid="switch1.case_down.input4" propid="value" datasetid="ds_send_download" columnid="srchdeptnm"/>
  809. <BindItem id="item8" compid="switch1.case_spcl.rdo_spclhealexamplace" propid="value" datasetid="ds_send" columnid="srchhealexamplacecd2"/>
  810. <BindItem id="item9" compid="switch1.case_spcl.combo1" propid="value" datasetid="ds_send" columnid=""/>
  811. <BindItem id="item10" compid="switch1.case_gnrl.rdo_healexamplacecd" propid="value" datasetid="ds_send"/>
  812. </Bind>
  813. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  814. * System Name :
  815. * Job Name :
  816. * Creator :
  817. * Make Date : 2015-11-13
  818. * Description :
  819. *---------------------------------------------------------------------------------------
  820. * Modify Date Modifier Modify Description
  821. *---------------------------------------------------------------------------------------
  822. * 2015-11-13 Live Converter TF->XP
  823. *
  824. *---------------------------------------------------------------------------------------
  825. ****************************************************************************************/
  826. include "com_commonxp::comm_main.xjs";
  827. include "ast_healexamxp::AHA001.xjs";
  828. include "ast_healthexambasexp::healcombolist.xjs";
  829. include "ast_healthexamrsrvacptxp::AHA.xjs";
  830. var arErrorCode = new HashArray();
  831. var m_vHealexamflag = "";
  832. var m_vHealexamdetlflag = "";
  833. function SMAHA04090_oninit(obj:Form, e:InitEventInfo)
  834. {
  835. frmf_initForm(obj);
  836. }
  837. function SMAHA04090_onload(obj:Form, e:LoadEventInfo)
  838. {
  839. grdf_initGrid(switch1.case_down.grd_spcldownlst);
  840. grdf_initGrid(switch1.case_gnrl.grd_cupload);
  841. grdf_initGrid(switch1.case_insu.grd_iupload);
  842. grdf_setRowTypeIcon(switch1.case_insu.grd_iupload, 0);
  843. grdf_initGrid(switch1.case_spcl.grd_supload);
  844. var sFlag = frmf_getMenuParam();
  845. if(!utlf_isNull(sFlag))
  846. {
  847. m_vHealexamflag = String(sFlag).substr(0,1);
  848. m_vHealexamdetlflag = String(sFlag).substr(0,3);
  849. }
  850. fGetBaseInfo();
  851. fInit();
  852. }
  853. function fGetBaseInfo()
  854. {
  855. var arrParam = [{dsNm: "ds_init_baseinfo_healexamflag_A0068", cdGrpId: "A0068"}
  856. ,{dsNm: "ds_init_baseinfo_healexamdetlflag_A0070", cdGrpId: "A0070"}
  857. ,{dsNm: "ds_init_baseinfo_plceflag_A0110", cdGrpId: "A0110"}]
  858. appf_getCodeList(arrParam);
  859. var arrParam = [{dsNm: "ds_init_baseinfo_healexamplacelst_S600", cdGrpId: "S600"}
  860. , {dsNm: "ds_init_baseinfo_jobkindlst_G108", cdGrpId: "G108"}
  861. , {dsNm: "ds_init_baseinfo_spclflaglst_G111", cdGrpId: "G111"}];
  862. healGetCodeList(arrParam);
  863. for(var i = 0; i < ds_init_baseinfo_healexamplacelst_S600.rowcount; i++)
  864. {
  865. if(utlf_isNull(ds_init_baseinfo_healexamplacelst_S600.getColumn(0, "cdid")))
  866. {
  867. ds_init_baseinfo_healexamplacelst_S600.deleteRow(i);
  868. }
  869. }
  870. var arrParam = [{dsNm: "ds_init_baseinfo_autopkglst_G110", cdGrpId: "G110"}
  871. , {dsNm: "ds_init_baseinfo_acptcd_G112", cdGrpId: "G112"}];
  872. healGetCodeListSubmit(arrParam);
  873. ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd") );
  874. var oParam = {};
  875. oParam.id = "TRAHA00104";
  876. oParam.service = "healexambaseapp.ComCode";
  877. oParam.method = "reqGetDiscCdList";
  878. oParam.inds = "req=ds_send";
  879. oParam.outds = "ds_=disccdlst ds_init_baseinfo_pamcdlst_uncocdlst=uncocdlst ds_=cncruncocdlst ds_=calclst";
  880. oParam.async = false;
  881. //oParam.callback = "cf_TRAHA00104";
  882. tranf_submit(oParam);
  883. dsf_makeValue(ds_init_pkginfo, "srchhealexamflag", "string", "G");
  884. dsf_makeValue(ds_init_pkginfo, "srchhealexamdetlflag", "string", "G03");
  885. var oParam = {};
  886. oParam.id = "TRAHA04042";
  887. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  888. oParam.method = "reqGetTotalPkgList";
  889. oParam.inds = "req=ds_init_pkginfo";
  890. oParam.outds = "ds_main_pkginfo_pkglst_item=item";
  891. oParam.async = false;
  892. //oParam.callback = "cf_TRAHA04042";
  893. tranf_submit(oParam);
  894. switch1.case_gnrl.rdo_healexamplacecd.innerdataset = "ds_init_baseinfo_healexamplacelst_S600";
  895. switch1.case_gnrl.rdo_healexamplacecd.datacolumn = "cdnm";
  896. switch1.case_gnrl.rdo_healexamplacecd.codecolumn = "cdid";
  897. switch1.case_spcl.rdo_spclhealexamplace.innerdataset = "ds_init_baseinfo_healexamplacelst_S600";
  898. switch1.case_spcl.rdo_spclhealexamplace.datacolumn = "cdnm";
  899. switch1.case_spcl.rdo_spclhealexamplace.codecolumn = "cdid";
  900. }
  901. function fInit()
  902. {
  903. ds_send_download.setColumn(0, "srchfromdd" , utlf_getCurrentDate());
  904. ds_send_download.setColumn(0, "srchtodd" , utlf_getCurrentDate());
  905. switch1.tabindex = 0;
  906. ds_send.setColumn(0, "srchhealexamflag" , m_vHealexamflag);
  907. ds_send.setColumn(0, "srchhealexamdetlflag" , m_vHealexamdetlflag);
  908. switch1.case_gnrl.grd_cupload.setCellProperty("head", 1, "text", 0);
  909. switch1.case_spcl.grd_supload.setCellProperty("head", 1, "text", 0);
  910. switch1.case_down.grd_spcldownlst.setCellProperty("head", 1, "text", 0);
  911. switch1.case_gnrl.rdo_healexamplacecd.index = 0;
  912. switch1.case_spcl.rdo_spclhealexamplace.index = 0;
  913. }
  914. function switch1_case_gnrl_button3_onclick(obj:Button, e:ClickEventInfo)
  915. {
  916. for(var i = 0; i < ds_main_uploadlst_item.rowcount; i++)
  917. {
  918. ds_main_uploadlst_item.setColumn(i, "healexamplacecd", ds_send.getColumn(0, "srchhealexamplacecd"));
  919. }
  920. }
  921. function ds_main_uploadlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  922. {
  923. if(e.columnid == "chk")
  924. {
  925. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  926. }
  927. }
  928. function switch1_case_gnrl_grd_cupload_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  929. {
  930. var col = e.cell;
  931. var row = e.row;
  932. if(col == obj.getBindCellIndex("Body","pkgcd"))
  933. {
  934. if(utlf_isNull(ds_send.getColumn(0, "srchhealexamdetlflag")))
  935. {
  936. sysf_messageBox("건진구분 정보를", "C001");
  937. return;
  938. }
  939. ds_hidden_pkglst_list.clearData();
  940. var rgstno = ds_main_uploadlst_item.getColumn(row, "rrgstno1") + ds_main_uploadlst_item.getColumn(row, "rrgstno2");
  941. fGetPkgCd("SMAHA00300", "P", "Y","nm" , "",ds_send.getColumn(0, "srchhealexamdetlflag") , fGetRrgstNo(rgstno,"S"), "ds_hidden_pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
  942. if(ds_temp.getColumn(0, "okflag") == "ok")
  943. {
  944. fSetPkg(grd_cupload, "ds_hidden_pkglst_list");
  945. }
  946. }
  947. else if( col == grd_cupload.colRef("testcd"))
  948. {
  949. if(utlf_isNull(ds_send.getColumn(0, "srchhealexamdetlflag")))
  950. {
  951. sysf_messageBox("건진구분 정보를", "C001");
  952. return;
  953. }
  954. ds_hidden_testlst_list.clearData();
  955. var rgstno = ds_main_uploadlst_item.getColumn(row, "rrgstno1") + ds_main_uploadlst_item.getColumn(row, "rrgstno2");
  956. fGetPkgCd("SMAHA00300", "A", "Y","nm" , "",ds_send.getColumn(0, "srchhealexamdetlflag") , fGetRrgstNo(rgstno,"S"), "ds_hidden_testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
  957. if(ds_temp.getColumn(0, "okflag") == "ok")
  958. {
  959. fSetAddTest(grd_cupload , "ds_hidden_testlst_list");
  960. }
  961. }
  962. }
  963. function fGetRrgstNo(vRstno,vMode)
  964. {
  965. var rstno = String(vRstno).replace("-","");
  966. var sex = rstno.substr(6,1);
  967. var YY = "";
  968. if(vMode == "S")
  969. {
  970. if(sex == "2" || sex == "4" || sex == "6" || sex == "8")
  971. {
  972. return "F";
  973. }
  974. else if(sex == "1" || sex == "3" || sex == "5" || sex == "7")
  975. {
  976. return "M";
  977. }
  978. }
  979. else if(vMode == "A")
  980. {
  981. if(sex == "1" || sex == "2" || sex == "5" || sex == "6")
  982. {
  983. YY = "19"
  984. }
  985. else if(sex == "3" || sex == "4" || sex == "7" || sex == "8")
  986. {
  987. YY = "20"
  988. }
  989. var toYear = getNewDate().getFullYear();
  990. var bornday = YY + rstno.substr(0,2);
  991. return parseInt(toYear) - parseInt(bornday);
  992. }
  993. else if(vMode == "B")
  994. {
  995. if(sex == "1" || sex == "2" || sex == "5" || sex == "6")
  996. {
  997. YY = "19"
  998. }
  999. else if(sex == "3" || sex == "4" || sex == "7" || sex == "8")
  1000. {
  1001. YY = "20"
  1002. }
  1003. return YY + rstno.substr(0,6);
  1004. }
  1005. else if(vMode == "F")
  1006. {
  1007. var forgnerYN = "N";
  1008. if(sex == "5" || sex == "6" || sex == "7" || sex == "8")
  1009. {
  1010. forgnerYN = "Y";
  1011. }
  1012. return forgnerYN;
  1013. }
  1014. }
  1015. function fCheckDup(testList , desTestCd)
  1016. {
  1017. var sTestCd = String(testList).split(",");
  1018. var chk = false;
  1019. for(var j=0; j < sTestCd.length; j++)
  1020. {
  1021. var srcTestCd = sTestCd[j];
  1022. if(srcTestCd == desTestCd)
  1023. {
  1024. chk = true;
  1025. }
  1026. }
  1027. return chk;
  1028. }
  1029. function fSetPkg(vGrd , vNodeSet)
  1030. {
  1031. if(utlf_isNull(vGrd)) return;
  1032. if(utlf_isNull(vNodeSet)) return;
  1033. var nodeList = eval(vNodeSet);
  1034. var pkgcdList = this.objects[vGrd.binddataset].getColumn(this.objects[vGrd.binddataset].rowposition, "pkgcd");
  1035. var pkgnmList = this.objects[vGrd.binddataset].getColumn(this.objects[vGrd.binddataset].rowposition, "pkgnm");
  1036. for(var i = 0; i < nodeList.rowcount; i++)
  1037. {
  1038. var pkgcd = nodeList.getColumn(i, "pkgcd");
  1039. var pkgnm = nodeList.getColumn(i, "pkgnm");
  1040. if(!utlf_isNull(pkgcdList))
  1041. {
  1042. if ( fCheckDup(pkgcdList , pkgcd) )
  1043. {
  1044. if( sysf_messageBox("중복되는 패키지코드[" + pkgcd + " - " + pkgnm +"] 를 추가 ", "S001") != 6 )
  1045. {
  1046. continue ;
  1047. }
  1048. }
  1049. }
  1050. if(!utlf_isNull(pkgcdList))
  1051. {
  1052. pkgcdList += "," + pkgcd ;
  1053. pkgnmList += "," + pkgnm ;
  1054. }
  1055. else
  1056. {
  1057. pkgcdList += pkgcd != "" && nodeList.rowcount > i ? "," + pkgcd : pkgcd;
  1058. pkgnmList += pkgnm != "" && nodeList.rowcount > i ?"," + pkgnm : pkgnm;
  1059. }
  1060. }
  1061. this.objects[vGrd.binddataset].setColumn(this.objects[vGrd.binddataset].rowposition, "pkgcd", pkgcdList);
  1062. this.objects[vGrd.binddataset].setColumn(this.objects[vGrd.binddataset].rowposition, "pkgnm", pkgnmList);
  1063. }
  1064. function fSetAddTest(vGrd , vNodeSet)
  1065. {
  1066. if(utlf_isNull(vGrd)) return;
  1067. if(utlf_isNull(vNodeSet)) return;
  1068. var nodeList = eval(vNodeSet);
  1069. var testcdList = this.objects[vGrd.binddataset].getColumn(this.objects[vGrd.binddataset].rowposition, "testcd");
  1070. var testnmList = this.objects[vGrd.binddataset].getColumn(this.objects[vGrd.binddataset].rowposition, "testnm");
  1071. for(var i = 0; i < nodeList.rowcount; i++)
  1072. {
  1073. var testcd = nodeList.getColumn(i, "testcd");
  1074. var testnm = nodeList.getColumn(i, "testnm");
  1075. var groupflag = nodeList.getColumn(i, "grupflag");
  1076. if(!utlf_isNull(testcdList))
  1077. {
  1078. if ( fCheckDup(testcdList , testcd) )
  1079. {
  1080. if( sysf_messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 )
  1081. {
  1082. continue ;
  1083. }
  1084. }
  1085. }
  1086. var pkgCd = this.objects[vGrd.binddataset].getColumn(this.objects[vGrd.binddataset].rowposition, "pkgcd");
  1087. if(!utlf_isNull(pkgCd))
  1088. {
  1089. ds_hidden_send.clearData();
  1090. dsf_makeValue(ds_hidden_send, "pkgcd", "string" , testcd);
  1091. dsf_makeValue(ds_hidden_send, "grupflag", "string" , grupflag);
  1092. dsf_makeValue(ds_hidden_send, "srchpkgcd", "string" , pkgCd);
  1093. dsf_makeValue(ds_hidden_send, "healexamflag", "string" , ds_send.getColumn(0, "srchhealexamflag"));
  1094. dsf_makeValue(ds_hidden_send, "cmpycd", "string" , "");
  1095. dsf_makeValue(ds_hidden_send, "conseq", "string" , "");
  1096. dsf_makeValue(ds_hidden_send, "conhistseq", "string" , "");
  1097. var oParam = {};
  1098. oParam.id = "TRAHA00013";
  1099. oParam.service = "healexamrsrvacptapp.RsrvAcpt";
  1100. oParam.method = "reqTestDuplex";
  1101. oParam.inds = "req=ds_hidden_send";
  1102. oParam.outds = "ds_tmp_testcount_testcount=testcount";
  1103. oParam.async = false;
  1104. //oParam.callback = "cf_TRAHA00013";
  1105. tranf_submit(oParam);
  1106. var dupTestnm = ds_tmp_testcount_testcount.getColumn(0, "testnm")
  1107. if(!utlf_isNull(dupTestnm))
  1108. {
  1109. if( sysf_messageBox("패키지의 [" + testnm + "]검사와 중복됩니다. 추가 ", "S001") != 6 )
  1110. {
  1111. continue ;
  1112. }
  1113. }
  1114. }
  1115. if(!utlf_isNull(testcdList))
  1116. {
  1117. testcdList += "," + testcd ;
  1118. testnmList += "," + testnm ;
  1119. }
  1120. else
  1121. {
  1122. testcdList += testcd != "" && nodeList.rowcount > i ? "," + testcd : testcd;
  1123. testnmList += testnm != "" &&nodeList.rowcount > i ? "," + testnm : testnm;
  1124. }
  1125. }
  1126. this.objects[vGrd.binddataset].setColumn(this.objects[vGrd.binddataset].rowposition, "testcd", testcdList);
  1127. this.objects[vGrd.binddataset].setColumn(this.objects[vGrd.binddataset].rowposition, "testnm", testnmList);
  1128. }
  1129. function ds_main_uploadspcllst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1130. {
  1131. if(e.columnid == "chk")
  1132. {
  1133. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1134. }
  1135. }
  1136. function switch1_case_spcl_button4_onclick(obj:Button, e:ClickEventInfo)
  1137. {
  1138. for(var i = 0; i < ds_main_uploadspcllst_item.rowcount; i++)
  1139. {
  1140. ds_main_uploadspcllst_item.setColumn(i, "healexamplacecd", ds_send.getColumn(0, "srchhealexamplacecd2"));
  1141. ds_main_uploadspcllst_item.setColumn(i, "plceflag", ds_send.getColumn(0, "srchplceflag"));
  1142. }
  1143. }
  1144. function switch1_case_gnrl_btn_upload_onclick(obj:Button, e:ClickEventInfo)
  1145. {
  1146. fFileUpload();
  1147. }
  1148. function fFileUpload()
  1149. {
  1150. if(switch1.tabindex == 0)
  1151. {
  1152. grdf_ImportExcel("ds_main_uploadlst_item", 2, switch1.case_gnrl.grd_cupload, 0);
  1153. }
  1154. else if(switch1.tabindex == 1)
  1155. {
  1156. grdf_ImportExcel("ds_main_uploadspcllst_item", 2, switch1.case_spcl.grd_supload, 0);
  1157. var cnt = ds_main_uploadspcllst_item.rowcount;
  1158. ds_send.setColumn(0, "srchrrgstno1" , "");
  1159. ds_send.setColumn(0, "srchrrgstno2" , "");
  1160. ds_send.setColumn(0, "srchinsuid" , "");
  1161. var oParam = {};
  1162. oParam.id = "TRAHA04092";
  1163. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  1164. oParam.method = "reqGetGroupInsuIdList";
  1165. oParam.inds = "req=ds_send";
  1166. oParam.outds = "ds_tmp_uploadinsulst_item=item";
  1167. oParam.async = false;
  1168. //oParam.callback = "cf_TRAHA04092";
  1169. tranf_submit(oParam);
  1170. for(var i = 0; i < cnt; i++)
  1171. {
  1172. ds_main_uploadspcllst_item.setColumn(i, "rrgstno", String(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")).replace(/-/g,""));
  1173. var rrgstno1 = String(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")).substr(0,6);
  1174. var rrgstno2 = String(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")).substr(6,7);
  1175. var node = ds_tmp_uploadinsulst_item.findRowExpr("rrgstno1 =='" + rrgstno1+ "' && rrgstno2 =='" + rrgstno2 +"'");
  1176. if(node > 0)
  1177. {
  1178. if(utlf_isNull(ds_main_uploadspcllst_item.getColumn(i, "acpt_insuid")))
  1179. {
  1180. ds_main_uploadspcllst_item.setColumn(i, "acpt_insuid", ds_tmp_uploadinsulst_item.getColumn(node, "insuid"));
  1181. }
  1182. }
  1183. ds_main_uploadspcllst_item.updatecontrol = false;
  1184. ds_main_uploadspcllst_item.setRowType(i, "i");
  1185. ds_main_uploadspcllst_item.updatecontrol = true;
  1186. }
  1187. }
  1188. else if(switch1.tabindex == 2)
  1189. {
  1190. ds_main_uploadinsulst_item.clearData();
  1191. grdf_ImportExcel("ds_main_uploadinsulst_item", 2, switch1.case_insu.grd_iupload, 0);
  1192. var cnt = ds_main_uploadinsulst_item.rowcount;
  1193. ds_send_srch_insurrgstno.copyData(grdf_getGridUpdateData(switch1.case_insu.grd_iupload), true);
  1194. var rrgstCnt = 0;
  1195. var oParam = {};
  1196. oParam.id = "TRAHA04091";
  1197. oParam.service = "healthexamrsrvacptapp.GnrlRsrvAcpt";
  1198. oParam.method = "reqGetGroupRsrvAcptDupRrgstnoList";
  1199. oParam.inds = "req=ds_main_uploadinsulst_item insu=ds_send_srch_insurrgstno";
  1200. oParam.outds = "ds_hidden_duprrgstnolst_item=item ds_hidden_duprrgstnolst_insu=insu";
  1201. oParam.async = false;
  1202. oParam.callback = "cf_TRAHA04091";
  1203. tranf_submit(oParam);
  1204. if(arErrorCode.pop("TRAHA04091") > -1)
  1205. {
  1206. rrgstCnt = ds_hidden_duprrgstnolst_insu.rowcount;
  1207. for(var j = 0; j < ds_main_uploadinsulst_item.rowcount; j++)
  1208. {
  1209. var srchrrgstno1 = ds_main_uploadinsulst_item.getColumn(j, "rrgstno1");
  1210. var srchrrgstno2 = ds_main_uploadinsulst_item.getColumn(j, "rrgstno2");
  1211. for(var k = 0; k < rrgstCnt ; k++)
  1212. {
  1213. var desrrgstno1 = ds_hidden_duprrgstnolst_insu.getColumn(k, "rrgstno1");
  1214. var desrrgstno2 = ds_hidden_duprrgstnolst_insu.getColumn(k, "rrgstno2");
  1215. if(srchrrgstno1 == desrrgstno1 && srchrrgstno2 == desrrgstno2)
  1216. {
  1217. ds_main_uploadinsulst_item.updatecontrol = false;
  1218. dsf_makeValue(ds_main_uploadinsulst_item, "background_rrgstno1", "string", "#f7a08b", j);
  1219. dsf_makeValue(ds_main_uploadinsulst_item, "background_rrgstno2", "string", "#f7a08b", j);
  1220. ds_main_uploadinsulst_item.updatecontrol = true;
  1221. }
  1222. }
  1223. }
  1224. }
  1225. if(rrgstCnt > 0)
  1226. {
  1227. sysf_messageBox("["+ rrgstCnt +"]건이 이미 등록된 주민번호 ","I009");
  1228. }
  1229. }
  1230. }
  1231. function switch1_case_gnrl_btn_chkdata_onclick(obj:Button, e:ClickEventInfo)
  1232. {
  1233. var chkCnt = 0;
  1234. var dupRrgstCnt = 0;
  1235. switch1.case_gnrl.grd_cupload.setCellProperty("Body", switch1.case_gnrl.grd_cupload.getBindCellIndex("Body", "pname"), "edittype", "none");
  1236. chkCnt = fChkData(switch1.case_gnrl.grd_cupload);
  1237. dupRrgstCnt = fChkDupRrgstno(grd_cupload);
  1238. sysf_messageBox("데이터 확인이 처리되었습니다.\n주민번호 중복[" + dupRrgstCnt + "]건과 \n" + "["+ chkCnt +"]건의 오류항목이 ","E005");
  1239. }
  1240. function fDispGrd(vGrd,vMode,vRow,vCol)
  1241. {
  1242. if(vMode == "E")
  1243. {
  1244. if(!utlf_isNull(vCol))
  1245. {
  1246. dsf_makeValue(this.objects[vGrd.binddataset], "background_"+vCol, "string", "#f7a08b", vRow);
  1247. dsf_makeValue(this.objects[vGrd.binddataset], "edittype_"+vCol, "string", "normal", vRow);
  1248. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "background", "expr:background_"+vCol);
  1249. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "background2", "expr:background_"+vCol);
  1250. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "edittype", "expr:edittype_"+vCol);
  1251. }
  1252. else
  1253. {
  1254. dsf_makeValue(this.objects[vGrd.binddataset], "background_"+vCol, "string", "#f7a08b", vRow);
  1255. dsf_makeValue(this.objects[vGrd.binddataset], "edittype_"+vCol, "string", "none", vRow);
  1256. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "background", "expr:background_"+vCol);
  1257. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "background2", "expr:background_"+vCol);
  1258. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", vCol), "edittype", "expr:edittype_"+vCol);
  1259. }
  1260. }
  1261. }
  1262. function fChkData(vGrd)
  1263. {
  1264. var nodeSet = this.objects[vGrd.binddataset];
  1265. var chkCnt = 0;
  1266. for(var i = 0; i < nodeSet.rowcount; i++ )
  1267. {
  1268. var rrgstno1 = utlf_transNullToEmpty(nodeSet.getColumn(i, "rrgstno1"));
  1269. var rrgstno2 = utlf_transNullToEmpty(nodeSet.getColumn(i, "rrgstno2"));
  1270. if(!utlf_isRsrNo(String(rrgstno1 + rrgstno2)))
  1271. {
  1272. var ret1 = fChkValue(rrgstno1,"R1")
  1273. var ret2 = fChkValue(rrgstno2,"R2")
  1274. if(!ret1)
  1275. {
  1276. fDispGrd(vGrd,"E",i, "rrgstno1");
  1277. chkCnt++;
  1278. }
  1279. if(!ret2)
  1280. {
  1281. fDispGrd(vGrd,"E",i, "rrgstno2");
  1282. chkCnt++;
  1283. }
  1284. if(ret1 == true && ret2 == true)
  1285. {
  1286. fDispGrd(vGrd,"E",i, "rrgstno1");
  1287. fDispGrd(vGrd,"E",i, "rrgstno2");
  1288. chkCnt++;
  1289. }
  1290. }
  1291. var zip1 = nodeSet.getColumn(i, "zipcd11");
  1292. if(!fChkValue(zip1,"Z1"))
  1293. {
  1294. fDispGrd(vGrd,"E",i,"zipcd11");
  1295. chkCnt++;
  1296. }
  1297. var zip2 = nodeSet.getColumn(i, "zipcd12");
  1298. if(!fChkValue(zip2,"Z2"))
  1299. {
  1300. fDispGrd(vGrd,"E",i,"zipcd12");
  1301. chkCnt++;
  1302. }
  1303. var telno = nodeSet.getColumn(i, "telno");
  1304. if(!fChkValue(telno,"T","-"))
  1305. {
  1306. fDispGrd(vGrd,"E",i,"telno");
  1307. chkCnt++;
  1308. }
  1309. var mpno = nodeSet.getColumn(i, "mpphon");
  1310. if(!fChkValue(mpno,"M","-"))
  1311. {
  1312. fDispGrd(vGrd,"E",i,"mpphon");
  1313. chkCnt++;
  1314. }
  1315. var hopedd = String(nodeSet.getColumn(i , "hopedd")).replace(/-/g,"");
  1316. if(!fChkValue(hopedd,"D",""))
  1317. {
  1318. fDispGrd(vGrd,"E",i,"hopedd");
  1319. chkCnt++;
  1320. }
  1321. var email = nodeSet.getColumn(i , "email");
  1322. if(!fChkValue(email,"E"))
  1323. {
  1324. fDispGrd(vGrd,"E",i,"email");
  1325. chkCnt++;
  1326. }
  1327. }
  1328. return chkCnt;
  1329. }
  1330. function fChkDupRrgstno(vGrd)
  1331. {
  1332. var vGrid_Node = this.objects[vGrd.binddataset]
  1333. vGrid_Node.applyChange();
  1334. for(var i = 0; i < vGrid_Node.rowcount; i++)
  1335. {
  1336. if(vGrid_Node.getColumn(i, "chk") == "Y" )
  1337. {
  1338. vGrid_Node.updatacontrol = false;
  1339. vGrid_Node.setRowType(i, "i");
  1340. vGrid_Node.updatecontrol = true;
  1341. }
  1342. }
  1343. dsf_createDs("ds_send_srch_rrgstno");
  1344. ds_send_srch_rrgstno.copyData(grdf_getGridUpdateData(vGrd));
  1345. var oParam = {};
  1346. oParam.id = "TRAHA04091";
  1347. oParam.service = "healthexamrsrvacptapp.GnrlRsrvAcpt";
  1348. oParam.method = "reqGetGroupRsrvAcptDupRrgstnoList";
  1349. oParam.inds = "req=ds_send_srch_rrgstno insu=ds_send_srch_rrgstno";
  1350. oParam.outds = "ds_hidden_duprrgstnolst_item=item ds_hidden_duprrgstnolst_insu=insu";
  1351. oParam.async = false;
  1352. oParam.callback = "cf_TRAHA04091";
  1353. tranf_submit(oParam);
  1354. if(arErrorCode.pop("TRAHA04091") > -1)
  1355. {
  1356. var rrgstCnt = ds_hidden_duprrgstnolst_item.rowcount;
  1357. for(var j = 0; j < vGrid_Node.rowcount; j++)
  1358. {
  1359. var srchrrgstno1 = vGrid_Node.getColumn(j ,"rrgstno1");
  1360. var srchrrgstno2 = vGrid_Node.getColumn(j ,"rrgstno2");
  1361. for(var k = 0; k < rrgstCnt ; k++)
  1362. {
  1363. var desrrgstno1 = ds_hidden_duprrgstnolst_item.getColumn(k, "rrgstno1");
  1364. var desrrgstno2 = ds_hidden_duprrgstnolst_item.getColumn(k, "rrgstno2");
  1365. if(srchrrgstno1 == desrrgstno1 && srchrrgstno2 == desrrgstno2)
  1366. {
  1367. vGrid_Node.setColumn(j, "chk", "N");
  1368. dsf_makeValue(vGrid_Node, "background_hngnm", "string", "#f7a08b", j);
  1369. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", "hngnm"),"background", "expr:background_hngnm")
  1370. vGrd.setCellProperty("Body", vGrd.getBindCellIndex("Body", "hngnm"),"background2", "expr:background_hngnm")
  1371. }
  1372. }
  1373. }
  1374. }
  1375. return rrgstCnt;
  1376. }
  1377. function cf_TRAHA04091(sSvcId, nErrorCode, sErrorMsg)
  1378. {
  1379. arErrorCode.push(sSvcId, nErrorCode);
  1380. if(nErrorCode < 0) return;
  1381. }
  1382. function fChkValue(vChkValue,vMode,vDel)
  1383. {
  1384. var ret = false;
  1385. var regExp = "";
  1386. if(typeof(vDel) == "undefined" || utlf_isNull(vDel))
  1387. {
  1388. vDel = "";
  1389. }
  1390. if(vMode == "R1")
  1391. {
  1392. regExp = "/[0-9]{2}[01]{1}[0-9]{1}[0123]{1}[0-9]{1}$/g";
  1393. }
  1394. else if(vMode == "R2")
  1395. {
  1396. regExp = "/[12345678]{1}[0-9]{6}$/g";
  1397. }
  1398. else if(vMode == "Z1")
  1399. {
  1400. regExp = "/^[0-9]{3}$/g";
  1401. }
  1402. else if(vMode == "Z2")
  1403. {
  1404. regExp = "/^[0-9]{3}$/g";
  1405. }
  1406. else if(vMode == "D")
  1407. {
  1408. regExp = "/[0-9]{4}" + vDel + "[01]{1}[0-9]{1}" + vDel + "[0123]{1}[0-9]{1}/g";
  1409. }
  1410. else if(vMode == "E")
  1411. {
  1412. regExp = "/[_0-9a-zA-Z]+([-+.0-9a-zA-Z_]+)*@[_0-9a-zA-Z]+([-+.0-9a-zA-Z_]+)*.[a-zA-Z]{2,4}$/g";
  1413. }
  1414. else if(vMode == "T")
  1415. {
  1416. regExp = "/(02|0[3-9]{1}[0-9]{1})" + vDel + "[1-9]{1}[0-9]{2,3}" + vDel + "[0-9]{4}$/g";
  1417. }
  1418. else if(vMode == "M")
  1419. {
  1420. regExp = "/01[016789]" + vDel + "[1-9]{1}[0-9]{2,3}" + vDel + "[0-9]{4}$/g";
  1421. }
  1422. if(utlf_isNull(vChkValue))
  1423. {
  1424. return true;
  1425. }
  1426. else
  1427. {
  1428. return ret = eval(regExp).test(vChkValue);
  1429. }
  1430. }
  1431. function switch1_case_spcl_grd_supload_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1432. {
  1433. var col = e.cell;
  1434. var row = e.row;
  1435. if(col >= obj.getBindCellIndex("Body", "spclpkg1") && obj.getBindCellIndex("Body", "spclpkg20") >= col)
  1436. {
  1437. ds_hidden_pkglst.clearData();
  1438. var rgstno = ds_main_uploadspcllst_item.getColumn(row, "rrgstno1") + ds_main_uploadspcllst_item.getColumn(row, "rrgstno2");
  1439. fGetPkgCd("SMAHA00300", "P", "N","nm" , ds_main_uploadspcllst_item.getColumn(row,col) ,"G03" , fGetRrgstNo(rgstno,"S"), "ds_hidden_pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
  1440. ds_main_uploadspcllst_item.setColumn(row,col, utlf_isNull(ds_hidden_pkglst.getColumn(0, "pkgcd")) ? ds_main_uploadspcllst_item.getColumn(row,col) : ds_hidden_pkglst.getColumn(0, "pkgcd"));
  1441. }
  1442. else if( col == obj.getBindCellIndex("Body","addtest"))
  1443. {
  1444. ds_hidden_testlst_list.clearData();
  1445. var rgstno = ds_main_uploadspcllst_item.getColumn(row, "rrgstno1") + ds_main_uploadspcllst_item.getColumn(row, "rrgstno2");
  1446. fGetPkgCd("SMAHA00300", "A", "Y","nm" , "","G03" , fGetRrgstNo(rgstno,"S"), "ds_hidden_testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
  1447. var nodeList = ds_hidden_testlst_list;
  1448. var testcdList = ds_main_uploadspcllst_item.getColumn(ds_main_uploadspcllst_item.rowposition, "addtest");
  1449. for(var i = 0; i < nodeList.rowcount; i++)
  1450. {
  1451. var testcd = ds_hidden_testlst_list.getColumn(i, "testcd");
  1452. var testnm = ds_hidden_testlst_list.getColumn(i, "testnm");
  1453. var groupflag = ds_hidden_testlst_list.getColumn(i, "groupflag");
  1454. if(!utlf_isNull(testcdList))
  1455. {
  1456. if( fCheckDup(testcdList , testcd))
  1457. {
  1458. if( sysf_messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 )
  1459. {
  1460. continue ;
  1461. }
  1462. }
  1463. }
  1464. if(!utlf_isNull(testcdList))
  1465. {
  1466. testcdList += "," + testcd ;
  1467. }
  1468. else
  1469. {
  1470. testcdList += testcd != "" && nodeList.length>i ? "," + testcd : testcd;
  1471. }
  1472. }
  1473. ds_main_uploadspcllst_item.setColumn(ds_main_uploadspcllst_item.rowposition, "addtest", testcdList);
  1474. }
  1475. else if( col == obj.getBindCellIndex("Body", "lifeconvpkgcd"))
  1476. {
  1477. ds_hidden_testlst_list.clearData();
  1478. var rgstno = ds_main_uploadspcllst_item.getColumn(row, "rrgstno1") + ds_main_uploadspcllst_item.getColumn(row, "rrgstno2"); // 주민번호
  1479. fGetPkgCd("SMAHA00300", "A", "Y","nm" , "","G08" , fGetRrgstNo(rgstno,"S"), "ds_hidden_testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
  1480. var nodeList = ds_hidden_testlst_list;
  1481. var testcdList = ds_main_uploadspcllst_item.getColumn(ds_main_uploadspcllst_item.rowposition, "lifeconvpkgcd");
  1482. for(var i = 0; i < nodeList.rowcount; i++)
  1483. {
  1484. var testcd = ds_hidden_testlst_list.getColumn(i, "testcd");
  1485. var testnm = ds_hidden_testlst_list.getColumn(i, "testnm");
  1486. var groupflag = ds_hidden_testlst_list.getColumn(i, "groupflag");
  1487. if(!utlf_isNull(testcdList))
  1488. {
  1489. if ( fCheckDup(testcdList , testcd) )
  1490. {
  1491. if( sysf_messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 )
  1492. {
  1493. continue ;
  1494. }
  1495. }
  1496. }
  1497. if(!utlf_isNull(testcdList))
  1498. {
  1499. testcdList += "," + testcd ;
  1500. }
  1501. else
  1502. {
  1503. testcdList += testcd != "" && nodeList.length>i ? "," + testcd : testcd;
  1504. }
  1505. }
  1506. ds_main_uploadspcllst_item.setColumn(ds_main_uploadspcllst_item.rowposition, "lifeconvpkgcd", testcdList);
  1507. }
  1508. else if( col == obj.getBindCellIndex("Body","workproccd"))
  1509. {
  1510. fGetCommonCode("N","G105",ds_main_uploadspcllst_item.getColumn(row , "workproccd"),"", ds_main_uploadspcllst_item.getColumn(row, "workproccd"), ds_main_uploadspcllst_item.getColumn(row, "workprocnm"));
  1511. }
  1512. else if(col == obj.getBindCellIndex("Body", "simppkgcd"))
  1513. {
  1514. ds_hidden_pkglst.clearData();
  1515. var rgstno = ds_main_uploadspcllst_item.getColumn(row, "rrgstno1") + ds_main_uploadspcllst_item.getColumn(row, "rrgstno2");
  1516. fGetPkgCd("SMAHA00300", "P", "N","nm" , ds_main_uploadspcllst_item.getColumn(row,col) ,"G11" , fGetRrgstNo(rgstno,"S"), "ds_hidden_pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
  1517. ds_main_uploadspcllst_item.setColumn(row,col, utlf_isNull(ds_hidden_pkglst.getColumn(0, "pkgcd")) ? ds_main_uploadspcllst_item.getColumn(row,col) : ds_hidde_pkglst.getColumn(0, "pkgcd"));
  1518. }
  1519. }
  1520. function switch1_case_spcl_button15_onclick(obj:Button, e:ClickEventInfo)
  1521. {
  1522. var chkCnt = 0;
  1523. for(var i = 0; i < ds_main_uploadspcllst_item.rowcount; i++)
  1524. {
  1525. if(!utlf_isRsrNo(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")))
  1526. {
  1527. dsf_makeValue(ds_main_uploadspcllst_item, "background_rrgstno", "string", "#f7a08b", i);
  1528. chkCnt++;
  1529. }
  1530. switch1.case_spcl.grd_supload.setCellProperty("Body", switch1.case_spcl.grd_supload.getBindCellIndex("Body", "rrgstno"), "background", "expr:background_rrgstno");
  1531. switch1.case_spcl.grd_supload.setCellProperty("Body", switch1.case_spcl.grd_supload.getBindCellIndex("Body", "rrgstno"), "background2", "expr:background_rrgstno");
  1532. var rrgstno1 = String(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")).substr(0,6);
  1533. var rrgstno2 = String(ds_main_uploadspcllst_item.getColumn(i, "rrgstno")).substr(6,7);
  1534. var hngnm = ds_main_uploadspcllst_item.getColumn(i, "hngnm");
  1535. ds_send.setColumn(0, "srchrrgstnogrd1",rrgstno1);
  1536. ds_send.setColumn(0, "srchrrgstnogrd2",rrgstno2);
  1537. var oParam = {};
  1538. oParam.id = "TRAHA04094";
  1539. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  1540. oParam.method = "reqGetPatRrgstnoDuplist";
  1541. oParam.inds = "req=ds_send";
  1542. oParam.outds = "ds_tmp_rrgstinfo_item=item";
  1543. oParam.async = false;
  1544. oParam.callback = "cf_TRAHA04094";
  1545. tranf_submit(oParam);
  1546. if(arErrorCode.pop("TRAHA04094") > -1)
  1547. {
  1548. var rrgstcnt = parseInt(ds_tmp_rrgstinfo_item.getColumn(0, "rrgstcnt"));
  1549. if(rrgstcnt > 1)
  1550. {
  1551. sysf_messageBox("[" + hngnm + "]님의 주민번호가 [" + rrgstcnt + "]건 있습니다.","I007");
  1552. return;
  1553. }
  1554. }
  1555. }
  1556. sysf_messageBox("[" + chkCnt + "]건의 주민번호가","E016");
  1557. }
  1558. function cf_TRAHA04094(sSvcId, nErrorCode, sErrorMsg)
  1559. {
  1560. arErrorCode.push(sSvcId, nErrorCode);
  1561. if(nErrorCode < 0) return;
  1562. }
  1563. function switch1_case_spcl_button2_onclick(obj:Button, e:ClickEventInfo)
  1564. {
  1565. var pkgNodeList = ds_main_pkginfo_pkglst_item;
  1566. for(var i = 0; i < ds_main_uploadspcllst_item.rowcount; i++)
  1567. {
  1568. for(var j = switch1.case_spcl.grd_supload.getBindCellIndex("Body", "spclpkg1"); j <= switch1.case_spcl.grd_supload.getBindCellIndex("Body", "spclpkg20"); j++)
  1569. {
  1570. var srchPkgnm = ds_main_uploadspcllst_item.getColumn(i , j);
  1571. if(utlf_isNull(srchPkgnm)) continue;
  1572. for(var x = 0; x < pkgNodeList.rowcount; x++)
  1573. {
  1574. var desPkgnm = pkgNodeList.getColumn(x, "pkgnm");
  1575. if(srchPkgnm == desPkgnm)
  1576. {
  1577. ds_main_uploadspcllst_item.setColumn(i, j, pkgNodeList.getColumn(x, "pkgcd"));
  1578. break;
  1579. }
  1580. }
  1581. }
  1582. }
  1583. }
  1584. function switch1_case_spcl_button1_onclick(obj:Button, e:ClickEventInfo)
  1585. {
  1586. fFileUpload();
  1587. }
  1588. function switch1_case_insu_btn_acptlst_onclick(obj:Button, e:ClickEventInfo)
  1589. {
  1590. ds_main_uploadinsulst_item.clearData();
  1591. var oParam = {};
  1592. oParam.id = "TRAHA04092";
  1593. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  1594. oParam.method = "reqGetGroupInsuIdList";
  1595. oParam.inds = "req=ds_send";
  1596. oParam.outds = "ds_tmp_uploadinsulst_item=item";
  1597. oParam.async = false;
  1598. oParam.callback = "cf_TRAHA04092";
  1599. tranf_submit(oParam);
  1600. if(arErrorCode.pop("TRAHA04092") > -1)
  1601. {
  1602. ds_main_uploadinsulst_item.copyData(ds_tmp_uploadinsulst_item);
  1603. }
  1604. }
  1605. function cf_TRAHA04092(sSvcId, nErrorCode, sErrorMsg)
  1606. {
  1607. arErrorCode.push(sSvcId, nErrorCode);
  1608. if(nErrorCode < 0) return;
  1609. }
  1610. function switch1_case_insu_button7_onclick(obj:Button, e:ClickEventInfo)
  1611. {
  1612. ds_main_uploadinsulst_item.addRow();
  1613. }
  1614. function switch1_case_insu_button9_onclick(obj:Button, e:ClickEventInfo)
  1615. {
  1616. var rows = grdf_getSelectedRows(switch1.case_insu.grd_iupload);
  1617. for(var i = rows.length; i >= 0; i--)
  1618. {
  1619. var m_row = rows[i];
  1620. if(ds_main_uploadinsulst_item.getRowType(m_row) == 2)
  1621. {
  1622. ds_main_uploadinsulst_item.deleteRow(m_row);
  1623. }
  1624. else
  1625. {
  1626. ds_main_uploadinsulst_item.updatecontrol = false;
  1627. ds_main_uploadinsulst_item.setRowType(m_row, "d");
  1628. ds_main_uploadinsulst_item.updatecontrol = true;
  1629. }
  1630. }
  1631. }
  1632. function switch1_case_insu_button6_onclick(obj:Button, e:ClickEventInfo)
  1633. {
  1634. fFileUpload();
  1635. }
  1636. function switch1_case_insu_button10_onclick(obj:Button, e:ClickEventInfo)
  1637. {
  1638. var chkCnt = 0;
  1639. for(var i = 0; i < ds_main_uploadinsulst_item.rowcount; i++)
  1640. {
  1641. var rrgstno1 = ds_main_uploadinsulst_item.getColumn(i, "rrgstno1");
  1642. var rrgstno2 = ds_main_uploadinsulst_item.getColumn(i, "rrgstno2");
  1643. if(!utlf_isRsrNo(String(rrgstno1+rrgstno2)))
  1644. {
  1645. var ret1 = fChkValue(rrgstno1,"R1")
  1646. var ret2 = fChkValue(rrgstno2,"R2")
  1647. if(!ret1)
  1648. {
  1649. fDispGrd(switch1.case_insu.grd_iupload,"E",i,"rrgstno1");
  1650. chkCnt++;
  1651. }
  1652. if(!ret2)
  1653. {
  1654. fDispGrd(switch1.case_insu.grd_iupload,"E",i,"rrgstno2");
  1655. chkCnt++;
  1656. }
  1657. if(ret1 == true && ret2 == true)
  1658. {
  1659. fDispGrd(switch1.case_insu.grd_iupload,"E",i,"rrgstno1");
  1660. fDispGrd(switch1.case_insu.grd_iupload,"E",i,"rrgstno2");
  1661. chkCnt++;
  1662. }
  1663. }
  1664. }
  1665. sysf_messageBox("데이터 확인이 처리되었습니다.\n" + "["+ chkCnt +"]건의 주민번호가 ","E016");
  1666. }
  1667. function switch1_case_down_ipt_srchtodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  1668. {
  1669. switch1.case_insu.btn_acptlst.click();
  1670. }
  1671. function switch1_case_down_ipt_cmpycd_onkeyup(obj:Edit, e:KeyEventInfo)
  1672. {
  1673. if(e.keycode == 13)
  1674. {
  1675. obj.updateToDataset();
  1676. switch1.case_down.btn_srchcmpy.click();
  1677. }
  1678. }
  1679. function switch1_case_down_btn_srchcmpy_onclick(obj:Button, e:ClickEventInfo)
  1680. {
  1681. fGetComnCd("SMAHA01500", "09" , "nm", switch1.case_down.ipt_cmpycd.value, switch1.case_down.ipt_cmpycd, switch1.case_down.opt_cmpynm);
  1682. }
  1683. function switch1_case_down_input4_onkeyup(obj:Edit, e:KeyEventInfo)
  1684. {
  1685. if(e.keycode == 13)
  1686. {
  1687. obj.updateToDataset();
  1688. switch1.case_down.button12.click();
  1689. }
  1690. }
  1691. function switch1_case_down_button12_onclick(obj:Button, e:ClickEventInfo)
  1692. {
  1693. fGetSpclDownList();
  1694. }
  1695. function fGetSpclDownList()
  1696. {
  1697. var healexamflag = ds_send.getColumn(0, "srchhealexamflag");
  1698. var healexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  1699. dsf_makeValue(ds_send_download,"srchhealexamflag","string", healexamflag);
  1700. dsf_makeValue(ds_send_download,"srchhealexamdetlflag","string", healexamdetlflag);
  1701. var oParam = {};
  1702. oParam.id = "TRAHA04093";
  1703. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  1704. oParam.method = "reqGetSpclExcelDownList";
  1705. oParam.inds = "req=ds_send_download";
  1706. oParam.outds = "ds_main_downloadlst_item=item";
  1707. oParam.async = false;
  1708. //oParam.callback = "cf_TRAHA04093";
  1709. tranf_submit(oParam);
  1710. ds_main_downloadlst_item.updatecontrol = false;
  1711. dsf_setFixVal(ds_main_downloadlst_item, "chk:N");
  1712. ds_main_downloadlst_item.updatecontrol = true;
  1713. }
  1714. function ds_main_downloadlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1715. {
  1716. if(e.columnid == "chk")
  1717. {
  1718. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1719. }
  1720. }
  1721. function switch1_case_down_button13_onclick(obj:Button, e:ClickEventInfo)
  1722. {
  1723. grdf_exportExcel(switch1.case_down.grd_spcldownlst, "excel", "sheet1", "true", "", "");
  1724. }
  1725. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  1726. {
  1727. eval(e.id +"();");
  1728. }
  1729. function switch1_case_down_grd_spcldownlst_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1730. {
  1731. pmn_menu1.trackPopup(e.screenX,e.screenY);
  1732. }
  1733. function fSetCheck()
  1734. {
  1735. var rows = grdf_getSelectedRows(switch1.case_down.grd_spcldownlst);
  1736. for(var i = 0; i < rows.length; i++)
  1737. {
  1738. var m_row = rows[i];
  1739. ds_main_downloadlst_item.setColumn(m_row, "chk", "Y");
  1740. }
  1741. }
  1742. function fSetCnclCheck()
  1743. {
  1744. var rows = grdf_getSelectedRows(switch1.case_down.grd_spcldownlst);
  1745. for(var i = 0; i < rows.length; i++)
  1746. {
  1747. var m_row = rows[i];
  1748. ds_main_downloadlst_item.setColumn(m_row, "chk", "N");
  1749. }
  1750. }
  1751. function button14_onclick(obj:Button, e:ClickEventInfo)
  1752. {
  1753. if(switch1.tabindex == 3)
  1754. {
  1755. fPrintSpclSeq();
  1756. }
  1757. }
  1758. function fPrintSpclSeq()
  1759. {
  1760. if(ds_main_downloadlst_item.getCaseCount("chk == 'Y'") == 0)
  1761. {
  1762. sysf_messageBox("출력할 건진자가" , "I004");
  1763. return;
  1764. }
  1765. ds_main_printinfo_spcl.clearData();
  1766. for(var i = 0; i < ds_main_downloadlst_item.rowcount; i++)
  1767. {
  1768. if(ds_main_downloadlst_item.getColumn(i, "chk") == "Y")
  1769. {
  1770. var addRow = ds_main_printinfo_spcl.addRow();
  1771. dsf_makeValue(ds_main_printinfo_spcl, "chartno","string", ds_main_downloadlst_item.getColumn(i , "chartno"), addRow);
  1772. dsf_makeValue(ds_main_printinfo_spcl, "cmpynm","string", ds_main_downloadlst_item.getColumn(i , "cmpynm"), addRow);
  1773. dsf_makeValue(ds_main_printinfo_spcl, "deptnm","string", ds_main_downloadlst_item.getColumn(i , "clntdeptnm"), addRow);
  1774. dsf_makeValue(ds_main_printinfo_spcl, "clntempid","string", ds_main_downloadlst_item.getColumn(i , "clntempid"), addRow);
  1775. dsf_makeValue(ds_main_printinfo_spcl, "pid","string", ds_main_downloadlst_item.getColumn(i , "pid"), addRow);
  1776. dsf_makeValue(ds_main_printinfo_spcl, "hngnm","string", ds_main_downloadlst_item.getColumn(i , "hngnm"), addRow);
  1777. dsf_makeValue(ds_main_printinfo_spcl, "rrgstno","string", ds_main_downloadlst_item.getColumn(i , "rrgstno"), addRow);
  1778. dsf_makeValue(ds_main_printinfo_spcl, "spclpkg","string", ds_main_downloadlst_item.getColumn(i , "spclpkg"), addRow);
  1779. dsf_makeValue(ds_main_printinfo_spcl, "spclpkgcmt","string", ds_main_downloadlst_item.getColumn(i , "spclpkgcmt"), addRow);
  1780. var objDOM = rptf_createDOM();
  1781. rptf_setNodeListToDOM(objDOM, "/root/main/printinfo/spcl", ds_main_printinfo_spcl);
  1782. var objParam = new Object();
  1783. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1784. var option = "directprint=1;print=1;printdialog=0;";
  1785. rptf_exeReportPreview30(["RPAHA04090"],[objParam], option);
  1786. }
  1787. }
  1788. }
  1789. function button33_onclick(obj:Button, e:ClickEventInfo)
  1790. {
  1791. ds_main_uploadinsulst_item.clearData();
  1792. ds_main_uploadlst_item.clearData();
  1793. ds_main_uploadspcllst_item.clearData();
  1794. }
  1795. function button8_onclick(obj:Button, e:ClickEventInfo)
  1796. {
  1797. if(sysf_messageBox("예약처리를","Q004") == "6")
  1798. {
  1799. if(switch1.tabindex == 0)
  1800. {
  1801. fSaveGroupRsrvAcpt();
  1802. }
  1803. else if(switch1.tabindex == 1)
  1804. {
  1805. fSaveGroupSpclRsrvAcpt();
  1806. }
  1807. else if(switch1.tabindex == 2)
  1808. {
  1809. fSaveGroupInsuInfo();
  1810. }
  1811. }
  1812. }
  1813. function fSaveGroupRsrvAcpt()
  1814. {
  1815. var hopeDDCnt = 0;
  1816. var pkgCnt = 0;
  1817. var healexamplaceCnt = 0;
  1818. for(var i = 0; i < ds_main_uploadlst_item.rowcount; i++)
  1819. {
  1820. if(ds_main_uploadlst_item.getColumn(i, "chk") == "Y")
  1821. {
  1822. if(utlf_isNull(ds_main_uploadlst_item.getColumn(i, "hopedd")))
  1823. {
  1824. hopeDDCnt++;
  1825. }
  1826. if(utlf_isNull(ds_main_uploadlst_item.getColumn(i, "pkgcd")))
  1827. {
  1828. pkgCnt++;
  1829. }
  1830. if(utlf_isNull(ds_main_uploadlst_item.getColumn(i, "healexamplacecd")))
  1831. {
  1832. healexamplaceCnt++;
  1833. }
  1834. }
  1835. }
  1836. var healexamflag = ds_send.getColumn(0, "srchhealexamflag");
  1837. var healexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  1838. if(utlf_isNull(healexamflag) || ds_init_baseinfo_healexamflag_A0068.getCaseCount("cdid =='" + healexamflag + "'") < 1)
  1839. {
  1840. sysf_messageBox("건진구분 정보를", "I007");
  1841. return;
  1842. }
  1843. if(utlf_isNull(healexamdetlflag) || ds_init_baseinfo_healexamdetlflag_A0070.getCaseCount("cdid =='" + healexamdetlflag + "'") < 1)
  1844. {
  1845. sysf_messageBox("건진상세구분 정보를", "I007");
  1846. return;
  1847. }
  1848. if(hopeDDCnt > 0)
  1849. {
  1850. sysf_messageBox("건진일을 모두 ", "C001");
  1851. return;
  1852. }
  1853. if(pkgCnt > 0)
  1854. {
  1855. sysf_messageBox("패키지코드를 모두 ", "C001");
  1856. return;
  1857. }
  1858. if(healexamplaceCnt > 0)
  1859. {
  1860. sysf_messageBox("건진장소 구분을 모두 ", "C001");
  1861. return;
  1862. }
  1863. //초기화
  1864. var rsrvCnt = 0;
  1865. var healexamflag = ds_send.getColumn(0, "srchhealexamflag");
  1866. var healexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  1867. ds_main_uploadlst_item.applyChange();
  1868. for (var i = 0; i < ds_main_uploadlst_item.rowcount; i++)
  1869. {
  1870. if(ds_main_uploadlst_item.getColumn(i, "chk") == "Y" )
  1871. {
  1872. var rrgstno = ds_main_uploadlst_item.getColumn(i , "rrgstno1") + ds_main_uploadlst_item.getColumn(i , "rrgstno2");
  1873. var email = String(ds_main_uploadlst_item.getColumn(i, "email")).split("@");
  1874. ds_main_uploadlst_item.updatecontrol = false;
  1875. ds_main_uploadlst_item.setRowType(i, "i");
  1876. ds_main_uploadlst_item.setColumn(i, "sex", fGetRrgstNo(rrgstno,"S"));
  1877. ds_main_uploadlst_item.setColumn(i, "brthdd", fGetRrgstNo(rrgstno,"B"));
  1878. ds_main_uploadlst_item.setColumn(i, "age", fGetRrgstNo(rrgstno,"A"));
  1879. ds_main_uploadlst_item.setColumn(i, "forgeryn", fGetRrgstNo(rrgstno,"F"));
  1880. ds_main_uploadlst_item.setColumn(i, "statflag", "A");
  1881. ds_main_uploadlst_item.setColumn(i, "emailid", email[0]);
  1882. ds_main_uploadlst_item.setColumn(i, "emailtype", email[1]);
  1883. ds_main_uploadlst_item.setColumn(i, "healexamflag", healexamflag);
  1884. ds_main_uploadlst_item.setColumn(i, "healexamdetlflag", healexamdetlflag);
  1885. ds_main_uploadlst_item.updatecontrol = true;
  1886. }
  1887. }
  1888. var saveGroup = grdf_getGridUpdateData(switch1.case_gnrl.grd_cupload);
  1889. if(saveGroup.rowcount != 0)
  1890. {
  1891. dsf_createDs("ds_send_save_gnrlgroup");
  1892. ds_send_save_gnrlgroup.copyData(saveGroup);
  1893. var oParam = {};
  1894. oParam.id = "TXAHA00101";
  1895. oParam.service = "healthexamrsrvacptapp.GnrlRsrvAcpt";
  1896. oParam.method = "reqExeGnrlGroupRsrvAcpt";
  1897. oParam.inds = "req=ds_send_save_gnrlgroup";
  1898. oParam.outds = "ds_=save";
  1899. oParam.async = false;
  1900. oParam.callback = "cf_TXAHA00101";
  1901. tranf_submit(oParam);
  1902. if(arErrorCode.pop("TXAHA00101") > -1)
  1903. {
  1904. sysf_messageBox("예약처리가","I002");
  1905. return;
  1906. }
  1907. }
  1908. else
  1909. {
  1910. sysf_messageBox("저장할 내역이 " , "E014");
  1911. return;
  1912. }
  1913. }
  1914. function cf_TXAHA00101(sSvcId, nErrorCode, sErrorMsg)
  1915. {
  1916. arErrorCode.push(sSvcId, nErrorCode);
  1917. if(nErrorCode < 0) return;
  1918. }
  1919. function fSaveGroupSpclRsrvAcpt()
  1920. {
  1921. var hopeDDCnt = 0;
  1922. var plceCnt = 0;
  1923. var healexamplaceCnt = 0;
  1924. for(var i = 0; i < ds_main_uploadspcllst_item.rowcount; i++)
  1925. {
  1926. if(ds_main_uploadspcllst_item.getColumn(i, "chk") == "Y" )
  1927. {
  1928. var plceFlag = ds_main_uploadspcllst_item.getColumn(i, "plceflag");
  1929. var healexamplcecd = ds_main_uploadspcllst_item.getColumn(i, "healexamplacecd");
  1930. if(utlf_isNull(ds_main_uploadspcllst_item.getColumn(i, "hopedd")))
  1931. {
  1932. hopeDDCnt++;
  1933. }
  1934. if( utlf_isNull(healexamplcecd) || ds_init_baseinfo_healexamplacelst_S600.lookup("cdid =='" + healexamplcecd + "'") < 1)
  1935. {
  1936. healexamplaceCnt++;
  1937. }
  1938. if(utlf_isNull(plceFlag) || ds_init_baseinfo_plceflag_A0110.findRow("cdid =='" + plceFlag + "'") < 1)
  1939. {
  1940. plceCnt++;
  1941. }
  1942. }
  1943. }
  1944. var healexamflag = ds_send.getColumn(0, "srchhealexamflag");
  1945. var healexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  1946. if(utlf_isNull(healexamflag) || ds_init_baseinfo_healexamflag_A0068.findRow("cdid =='" + healexamflag + "'") < 1)
  1947. {
  1948. sysf_messageBox("건진구분 정보를", "I007");
  1949. return;
  1950. }
  1951. if(utlf_isNull(healexamdetlflag) || ds_init_baseinfo_healexamflag_A0068.findRow("cdid =='" + healexamdetlflag + "'") < 1)
  1952. {
  1953. sysf_messageBox("건진상세구분 정보를", "I007");
  1954. return;
  1955. }
  1956. if(hopeDDCnt > 0)
  1957. {
  1958. sysf_messageBox("건진일을", "I007");
  1959. return;
  1960. }
  1961. if(healexamplaceCnt > 0)
  1962. {
  1963. sysf_messageBox("건진장소 구분을 ", "I007");
  1964. return;
  1965. }
  1966. if(plceCnt > 0)
  1967. {
  1968. sysf_messageBox("출장/내원 구분을", "I007");
  1969. return;
  1970. }
  1971. var rsrvCnt = 0;
  1972. var healexamflag = ds_send.getColumn(0, "srchhealexamflag");
  1973. var healexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  1974. ds_main_uploadspcllst_item.applyChange();
  1975. for(var i = 0; i < ds_main_uploadspcllst_item.rowcount; i++)
  1976. {
  1977. if(ds_main_uploadspcllst_item.getColumn(i, "chk") == "Y" )
  1978. {
  1979. ds_main_uploadspcllst_item.updatecontrol = false;
  1980. ds_main_uploadspcllst_item.setRowType(i, "i");
  1981. var rrgstno = ds_main_uploadspcllst_item.getColumn(i, "rrgstno");
  1982. ds_main_uploadspcllst_item.setColumn(i, "sex", fGetRrgstNo(rrgstno,"S"));
  1983. ds_main_uploadspcllst_item.setColumn(i, "brthdd", fGetRrgstNo(rrgstno,"B"));
  1984. ds_main_uploadspcllst_item.setColumn(i, "age", fGetRrgstNo(rrgstno,"A"));
  1985. ds_main_uploadspcllst_item.setColumn(i, "forgeryn", fGetRrgstNo(rrgstno,"F"));
  1986. ds_main_uploadspcllst_item.setColumn(i, "statflag", "A");
  1987. ds_main_uploadspcllst_item.setColumn(i, "healexamflag", healexamflag);
  1988. ds_main_uploadspcllst_item.setColumn(i, "healexamdetlflag", healexamdetlflag);
  1989. ds_main_uploadspcllst_item.setColumn(i, "gnrlpkgcd", ds_init_baseinfo_autopkglst_G110.lookup("cdid", ds_main_uploadspcllst_item.getColumn(i, "gnrlflag"), "cmt"));
  1990. ds_main_uploadspcllst_item.setColumn(i, "acptcd", ds_init_baseinfo_acptcd_G112.lookup("cdid", "01", "cmt"));
  1991. }
  1992. }
  1993. var saveGroup = grdf_getGridUpdateData(switch1.case_spcl.grd_supload);
  1994. if(saveGroup.rowcount != 0)
  1995. {
  1996. dsf_createDs("ds_send_save_spclgroup")
  1997. ds_send_save_spclgroup.copyData(saveGroup);
  1998. var oParam = {};
  1999. oParam.id = "TXAHA04092";
  2000. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  2001. oParam.method = "reqExeGroupSpclRsrvSave";
  2002. oParam.inds = "req=ds_send_save_spclgroup";
  2003. oParam.outds = "ds_=save";
  2004. oParam.async = false;
  2005. oParam.callback = "cf_TXAHA04092";
  2006. tranf_submit(oParam);
  2007. }
  2008. else
  2009. {
  2010. sysf_messageBox("저장할 내역이 " , "E014");
  2011. return;
  2012. }
  2013. }
  2014. function cf_TXAHA04092(sSvcId, nErrorCode, sErrorMsg)
  2015. {
  2016. if(nErrorCode < 0) return;
  2017. else
  2018. {
  2019. sysf_messageBox("예약처리가","I002");
  2020. return;
  2021. }
  2022. }
  2023. function fSaveGroupInsuInfo()
  2024. {
  2025. var rrgstnoCnt1 = 0;
  2026. var rrgstnoCnt2 = 0;
  2027. var insuidCnt = 0;
  2028. for(var i = 0; i < ds_main_uploadinsulst_item.rowcount; i++)
  2029. {
  2030. if(utlf_isNull(ds_main_uploadinsulst_item.getColumn(i, "rrgstno1")))
  2031. {
  2032. rrgstnoCnt1++;
  2033. }
  2034. if(utlf_isNull(ds_main_uploadinsulst_item.getColumn(i, "rrgstno2")))
  2035. {
  2036. rrgstnoCnt2++;
  2037. }
  2038. if(utlf_isNull(ds_main_uploadinsulst_item.getColumn(i, "insuid")))
  2039. {
  2040. insuidCnt++;
  2041. }
  2042. }
  2043. if(rrgstnoCnt1 > 0)
  2044. {
  2045. sysf_messageBox("주민번호 앞번호를", "C001");
  2046. return;
  2047. }
  2048. if(rrgstnoCnt2 > 0)
  2049. {
  2050. sysf_messageBox("주민번호 뒷번호를", "C001");
  2051. return;
  2052. }
  2053. if(insuidCnt > 0)
  2054. {
  2055. sysf_messageBox("증번호", "C001");
  2056. return;
  2057. }
  2058. var saveGroup = grdf_getGridUpdateData(grd_iupload);
  2059. if(saveGroup.rowcount != 0)
  2060. {
  2061. dsf_createDs("ds_send_save_insugroup")
  2062. grdf_setStatusColumn(saveGroup, "m");
  2063. ds_send_save_insugroup.copyData(saveGroup, true);
  2064. var oParam = {};
  2065. oParam.id = "TXAHA04092";
  2066. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  2067. oParam.method = "reqExeGroupInsuSave";
  2068. oParam.inds = "req=ds_send_save_insugroup";
  2069. oParam.outds = "ds_=save";
  2070. oParam.async = false;
  2071. oParam.callback = "cf_TXAHA04092";
  2072. tranf_submit(oParam);
  2073. if(arErrorCode.pop("TXAHA04092") > -1)
  2074. {
  2075. ds_main_uploadinsulst_item.clearData();
  2076. var oParam = {};
  2077. oParam.id = "TRAHA04092";
  2078. oParam.service = "healthexamrsrvacptapp.TotalRsrvAcpt";
  2079. oParam.method = "reqGetGroupInsuIdList";
  2080. oParam.inds = "req=ds_send";
  2081. oParam.outds = "ds_tmp_uploadinsulst_item=item";
  2082. oParam.async = false;
  2083. oParam.callback = "cf_TRAHA04092";
  2084. tranf_submit(oParam);
  2085. if(arErrorCode.pop("TRAHA04092") > -1)
  2086. {
  2087. ds_main_uploadinsulst_item.copyData(ds_tmp_uploadinsulst_item);
  2088. }
  2089. sysf_messageBox("등록처리가","I002");
  2090. return;
  2091. }
  2092. }
  2093. else
  2094. {
  2095. sysf_messageBox("저장할 내역이 " , "E014");
  2096. return;
  2097. }
  2098. }
  2099. function cf_TXAHA04092(sSvcId, nErrorCode, sErrorMsg)
  2100. {
  2101. arErrorCode.push(sSvcId, nErrorCode);
  2102. if(nErrorCode < 0) return;
  2103. }]]></Script>
  2104. </Form>
  2105. </FDL>