SPASI01900_선천성매독표본감시결과신고.xfdl 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASI01900" position="absolute 0 0 747 267" titletext="선천성매독표본감시결과신고" oninit="model1_oninit" onload="SPASI01900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_btn" taborder="24" text="Div00" position="absolute 2 239 747 261">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_save" taborder="0" text="저장" onclick="btn_save_onclick" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 558 0 614 22" anchor="default"/>
  11. <Button id="btn_cncl" taborder="1" text="삭제" onclick="btn_cncl_onclick" onlbuttonup="btn_cncl_onlbuttonup" class="btn4" position="absolute 617 0 673 22" anchor="default"/>
  12. <Button id="btn_init" taborder="2" text="초기화" onclick="btn_init_onclick" onlbuttonup="btn_init_onlbuttonup" class="btn4" position="absolute 676 0 744 22" anchor="default"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Div id="grp_main" taborder="43" text="Div00" position="absolute -4 25 746 234">
  17. <Layouts>
  18. <Layout>
  19. <Static id="Static07" class="sta_DA_box" position="absolute 4 0 750 209" anchor="default"/>
  20. <Edit id="input6" taborder="8" imemode="hangul" class="input_default" visible="false" position="absolute 707 124 742 144" anchor="default"/>
  21. <Static id="cap_diagdd" text="진단일" class="cell_1" position="absolute 394 28 449 52" style="align:center middle;" anchor="default"/>
  22. <Edit id="input5" taborder="9" imemode="hangul" class="input_default" visible="false" position="absolute 670 124 705 144" anchor="default"/>
  23. <Edit id="input4" taborder="10" imemode="hangul" class="input_default" visible="false" position="absolute 633 124 668 144" anchor="default"/>
  24. <Edit id="input3" taborder="11" imemode="hangul" class="input_default" visible="false" position="absolute 593 124 628 144" anchor="default"/>
  25. <Edit id="input2" taborder="12" imemode="hangul" class="input_default" visible="false" position="absolute 553 124 588 144" anchor="default"/>
  26. <Edit id="input1" taborder="13" imemode="hangul" class="input_default" visible="false" position="absolute 514 124 549 144" anchor="default"/>
  27. <Edit id="ipt_diagmthdetc" taborder="14" imemode="hangul" class="input_default" position="absolute 86 185 746 205" anchor="default"/>
  28. <Radio id="rdo_diagmthd" taborder="7" columncount="1" rowcount="0" innerdataset="@ds_init_A0136" codecolumn="cdid" datacolumn="cdnm" position="absolute 86 53 743 183" anchor="default" onitemchanged="grp_main_rdo_diagmthd_onitemchanged"/>
  29. <Edit id="ipt_procernm" taborder="6" imemode="hangul" class="input_default" position="absolute 635 30 746 50" anchor="default"/>
  30. <Calendar id="ipt_diagdd" taborder="5" class="input_essential" position="absolute 452 30 562 50" style="align:left middle;" anchor="default" ontextchanged="grp_main_ipt_diagdd_ontextchanged" dateformat="yyyy-MM-dd " value="null"/>
  31. <Edit id="opt_rgstno2" taborder="4" readonly="true" position="absolute 204 30 304 50" anchor="default"/>
  32. <Edit id="opt_rgstno1" taborder="3" readonly="true" position="absolute 86 30 186 50" anchor="default"/>
  33. <Edit id="opt_age" taborder="2" readonly="true" position="absolute 635 5 746 25" mask="####-##-##" anchor="default"/>
  34. <Edit id="opt_sex" taborder="1" readonly="true" position="absolute 452 5 562 25" style="align:center middle;" anchor="default"/>
  35. <Edit id="opt_nm" taborder="0" readonly="true" position="absolute 86 5 390 25" anchor="default"/>
  36. <Edit id="ipt_ioflag" taborder="15" imemode="hangul" class="input_default" visible="false" position="absolute 475 124 510 144" anchor="default"/>
  37. <Edit id="ipt_pid" taborder="16" imemode="hangul" class="input_default" visible="false" position="absolute 396 124 431 144" anchor="default"/>
  38. <Edit id="ipt_indd" taborder="17" imemode="hangul" class="input_default" visible="false" position="absolute 436 124 471 144" anchor="default"/>
  39. <Static id="caption4" text="진단방법" class="cell_1" position="absolute 4 53 83 208" style="align:center middle;" anchor="default"/>
  40. <Static id="caption3" text="생년월일" class="cell_1" position="absolute 565 3 632 27" style="align:center middle;" anchor="default"/>
  41. <Static id="caption14" text="보호자성명" class="cell_1" position="absolute 565 28 632 52" style="align:center middle;" anchor="default" wordwrap="none"/>
  42. <Static id="caption2" text="성명" class="cell_1" position="absolute 4 3 83 27" style="align:center middle;" anchor="default"/>
  43. <Static id="caption1" text="주민등록번호" class="cell_1" position="absolute 4 28 83 52" style="align:center middle;" anchor="default" wordwrap="none"/>
  44. <Static id="caption13" text="-" class="search_no_b" position="absolute 187 30 203 47" style="align:center;" anchor="default"/>
  45. <Static id="caption10" text="성별" class="cell_1" position="absolute 394 3 449 27" style="align:center middle;" anchor="default"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. <Static id="caption6" text="선천성매독표본감시결과신고" class="tit_1" position="absolute 0 0 220 25"/>
  50. </Layout>
  51. </Layouts>
  52. <Objects>
  53. <Dataset id="ds_init_A0136" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="cdnm" type="STRING" size="256"/>
  56. <Column id="cdid" type="STRING" size="256"/>
  57. <Column id="cdgrupid" type="STRING" size="256"/>
  58. <Column id="bizflag" type="STRING" size="256"/>
  59. </ColumnInfo>
  60. </Dataset>
  61. <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  62. <Dataset id="ds_cngntlsyphsmmrsltreptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  63. <Column id="state" type="STRING" size="256"/>
  64. <Column id="reptflag" type="STRING" size="256"/>
  65. <Column id="psnflag" type="STRING" size="256"/>
  66. <Column id="patnm" type="STRING" size="256"/>
  67. <Column id="sexflag" type="STRING" size="256"/>
  68. <Column id="age" type="STRING" size="256"/>
  69. <Column id="rgstno" type="STRING" size="256"/>
  70. <Column id="rgstno2" type="STRING" size="256"/>
  71. <Column id="diagdd" type="STRING" size="256"/>
  72. <Column id="procernm" type="STRING" size="256"/>
  73. <Column id="diagmthd" type="STRING" size="256"/>
  74. <Column id="diagmthdcnts" type="STRING" size="256"/>
  75. <Column id="pid" type="STRING" size="256"/>
  76. <Column id="indd" type="STRING" size="256"/>
  77. <Column id="wrtedt" type="STRING" size="256"/>
  78. <Column id="instcd" type="STRING" size="256"/>
  79. <Column id="seqno" type="STRING" size="256"/>
  80. <Column id="lglydiscd" type="STRING" size="256"/>
  81. <Column id="cretno" type="STRING" size="256"/>
  82. <Column id="orddd" type="STRING" size="256"/>
  83. <Column id="orddeptcd" type="STRING" size="256"/>
  84. <Column id="brthdd" type="STRING" size="256"/>
  85. <Column id="lasthistyn" type="STRING" size="256"/>
  86. <ColumnInfo>
  87. <Column id="state" type="STRING" size="256"/>
  88. <Column id="reptflag" type="STRING" size="256"/>
  89. <Column id="psnflag" type="STRING" size="256"/>
  90. <Column id="patnm" type="STRING" size="256"/>
  91. <Column id="sexflag" type="STRING" size="256"/>
  92. <Column id="age" type="STRING" size="256"/>
  93. <Column id="rgstno" type="STRING" size="256"/>
  94. <Column id="rgstno2" type="STRING" size="256"/>
  95. <Column id="diagdd" type="STRING" size="256"/>
  96. <Column id="procernm" type="STRING" size="256"/>
  97. <Column id="diagmthd" type="STRING" size="256"/>
  98. <Column id="diagmthdcnts" type="STRING" size="256"/>
  99. <Column id="pid" type="STRING" size="256"/>
  100. <Column id="indd" type="STRING" size="256"/>
  101. <Column id="wrtedt" type="STRING" size="256"/>
  102. <Column id="instcd" type="STRING" size="256"/>
  103. <Column id="seqno" type="STRING" size="256"/>
  104. <Column id="lglydiscd" type="STRING" size="256"/>
  105. <Column id="cretno" type="STRING" size="256"/>
  106. <Column id="orddd" type="STRING" size="256"/>
  107. <Column id="orddeptcd" type="STRING" size="256"/>
  108. <Column id="brthdd" type="STRING" size="256"/>
  109. <Column id="lasthistyn" type="STRING" size="256"/>
  110. </ColumnInfo>
  111. <Rows>
  112. <Row>
  113. <Col id="diagmthd">01</Col>
  114. <Col id="lasthistyn">Y</Col>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. <Dataset id="ds_temp_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="orddeptcd"/>
  121. <Column id="cnclyn"/>
  122. <Column id="state"/>
  123. <Column id="seqno"/>
  124. <Column id="psnflag"/>
  125. <Column id="patnm"/>
  126. <Column id="sexflag"/>
  127. <Column id="age"/>
  128. <Column id="job"/>
  129. <Column id="jobcd"/>
  130. <Column id="rgstno"/>
  131. <Column id="rgstno2"/>
  132. <Column id="procernm"/>
  133. <Column id="zipcd1"/>
  134. <Column id="zipcd2"/>
  135. <Column id="cntcaddr1"/>
  136. <Column id="tel"/>
  137. <Column id="residncflag"/>
  138. <Column id="idflag"/>
  139. <Column id="wrtedt"/>
  140. <Column id="pid"/>
  141. <Column id="indd"/>
  142. <Column id="indd"/>
  143. <Column id="cretno"/>
  144. <Column id="lglydiscd"/>
  145. <Column id="grup4lglydisnewsymp"/>
  146. <Column id="apntlglydisnm"/>
  147. <Column id="attackdd"/>
  148. <Column id="diagdd"/>
  149. <Column id="dethyn"/>
  150. <Column id="dethresn"/>
  151. <Column id="patflag"/>
  152. <Column id="cnfmsnwtestrslt"/>
  153. <Column id="estminfcpath"/>
  154. <Column id="estminfcarea"/>
  155. <Column id="estminfcareanaticd"/>
  156. <Column id="estminfcareastayterm"/>
  157. <Column id="estminfcareastaytermday"/>
  158. <Column id="chgrept"/>
  159. <Column id="chgzipcd1"/>
  160. <Column id="chgzipcd2"/>
  161. <Column id="chgzipcdseq"/>
  162. <Column id="chgreptaddr"/>
  163. <Column id="chgreptaddrdtl"/>
  164. <Column id="updtreptcnts"/>
  165. <Column id="reptflag"/>
  166. <Column id="naticd"/>
  167. <Column id="ecntrydd"/>
  168. <Column id="pastcureflag"/>
  169. <Column id="cureterm"/>
  170. <Column id="pastcurecnt"/>
  171. <Column id="bisiziflag"/>
  172. <Column id="bisiziinocmthd"/>
  173. <Column id="sputumdm"/>
  174. <Column id="sputumby"/>
  175. <Column id="sputumodm"/>
  176. <Column id="sputumoby"/>
  177. <Column id="tisstestlag"/>
  178. <Column id="etctestflag"/>
  179. <Column id="rayrsltflag"/>
  180. <Column id="tooberrsltsize"/>
  181. <Column id="solidsize"/>
  182. <Column id="curefromdd"/>
  183. <Column id="diagcd"/>
  184. <Column id="diagnm"/>
  185. <Column id="curedrugcd"/>
  186. <Column id="curedrugcdetc"/>
  187. <Column id="curetodd"/>
  188. <Column id="curersltflag"/>
  189. <Column id="curersltetc"/>
  190. <Column id="preinochstflag"/>
  191. <Column id="diagmthd"/>
  192. <Column id="diagmthdetc"/>
  193. <Column id="symp"/>
  194. <Column id="stayterm"/>
  195. <Column id="staytermday"/>
  196. <Column id="estminfcareacd"/>
  197. <Column id="dethflag"/>
  198. <Column id="lglydiscnts"/>
  199. <Column id="brwavetestflag"/>
  200. <Column id="brwavetestcnts"/>
  201. <Column id="raytestflag"/>
  202. <Column id="raytestcnts"/>
  203. <Column id="crbrfldtestflag"/>
  204. <Column id="crbrfldtestcnts"/>
  205. <Column id="prnpagenetestflag"/>
  206. <Column id="testpartcd"/>
  207. <Column id="testpartremcnts"/>
  208. <Column id="testmthdcd"/>
  209. <Column id="plaqflagcd"/>
  210. <Column id="codonnm"/>
  211. <Column id="codonflag"/>
  212. <Column id="codonflag2"/>
  213. <Column id="codoncnts"/>
  214. <Column id="patflag2"/>
  215. <Column id="dngrcascd"/>
  216. <Column id="dngrcasremcnts"/>
  217. <Column id="infcnts"/>
  218. <Column id="matrno"/>
  219. <Column id="fstdiagdd"/>
  220. <Column id="cnfmtestinstnm"/>
  221. <Column id="cnfmtestinstcd"/>
  222. <Column id="dethcascd"/>
  223. <Column id="dethdd"/>
  224. <Column id="spckindcd"/>
  225. <Column id="sympremcnts"/>
  226. <Column id="estminfcpathremcnts"/>
  227. <Column id="tmpcol1"/>
  228. <Column id="tmpcol2"/>
  229. <Column id="tmpcol21"/>
  230. <Column id="tmpcol22"/>
  231. <Column id="tmpcol23"/>
  232. <Column id="tmpcol3"/>
  233. <Column id="etcnts1"/>
  234. <Column id="etcnts2"/>
  235. <Column id="etcnts3"/>
  236. <Column id="lglykindcd"/>
  237. <Column id="relyn"/>
  238. <Column id="testrslt1"/>
  239. <Column id="testrslt2"/>
  240. <Column id="brthdd"/>
  241. <Column id="tmpcol1"/>
  242. <Column id="tmpcol2"/>
  243. <Column id="tmpcol3"/>
  244. <Column id="symp"/>
  245. <Column id="sympremcnts"/>
  246. <Column id="estminfcpath"/>
  247. <Column id="estminfcareacd"/>
  248. <Column id="estminfcareanaticd"/>
  249. <Column id="stayterm"/>
  250. <Column id="staytermday"/>
  251. <Column id="tisstestlag"/>
  252. <Column id="etcnts1"/>
  253. <Column id="etcnts2"/>
  254. <Column id="etcnts3"/>
  255. <Column id="crbrfldtestcnts"/>
  256. <Column id="testcnts1"/>
  257. <Column id="testcnts2"/>
  258. <Column id="testcnts3"/>
  259. <Column id="testcnts4"/>
  260. <Column id="testcnts5"/>
  261. <Column id="testcnts6"/>
  262. <Column id="lasthistyn"/>
  263. <Column id="infcfocus"/>
  264. <Column id="infcfocusetc"/>
  265. <Column id="antimicsentest"/>
  266. <Column id="antimicsentest_1"/>
  267. <Column id="antimicsentest_2"/>
  268. <Column id="antimicsentest_3"/>
  269. <Column id="antimicsentest_4"/>
  270. <Column id="antimicsentest_5"/>
  271. <Column id="antimicsentest1"/>
  272. <Column id="antimicsentest1_1"/>
  273. <Column id="antimicsentest1_2"/>
  274. <Column id="antimicsentest1_3"/>
  275. <Column id="antimicsentest2"/>
  276. <Column id="antimicsentest2_1"/>
  277. <Column id="antimicsentest2_2"/>
  278. <Column id="antimicsentestetc"/>
  279. <Column id="spckindetc"/>
  280. <Column id="spccolldd"/>
  281. <Column id="spcbcno"/>
  282. <Column id="spcsepdd"/>
  283. <Column id="spimipenemval1"/>
  284. <Column id="spimipenemval2"/>
  285. <Column id="spmeropenemval1"/>
  286. <Column id="spmeropenemval2"/>
  287. <Column id="spertapenemval1"/>
  288. <Column id="spertapenemval2"/>
  289. <Column id="spetcnm"/>
  290. <Column id="spetcnmval1"/>
  291. <Column id="spetcnmval2"/>
  292. <Column id="micimipenemval1"/>
  293. <Column id="micimipenemval2"/>
  294. <Column id="micmeropenemval1"/>
  295. <Column id="micmeropenemval2"/>
  296. <Column id="micertapenemval1"/>
  297. <Column id="micertapenemval2"/>
  298. <Column id="micetcnm"/>
  299. <Column id="micetcnmval1"/>
  300. <Column id="micetcnmval2"/>
  301. <Column id="crebreakenzyme"/>
  302. <Column id="crebreakenzymeetc"/>
  303. <Column id="cresepavirus"/>
  304. <Column id="cresepavirusetc"/>
  305. </ColumnInfo>
  306. </Dataset>
  307. <Dataset id="ds_temp_reptdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  308. <ColumnInfo>
  309. <Column id="reptdt" type="STRING" size="256"/>
  310. <Column id="reptyn" type="STRING" size="256"/>
  311. <Column id="chgyn" type="STRING" size="256"/>
  312. <Column id="prt_reptdt" type="STRING" size="256"/>
  313. </ColumnInfo>
  314. </Dataset>
  315. <Dataset id="ds_temp_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  316. </Objects>
  317. <Bind>
  318. <BindItem id="item3" compid="grp_main.opt_rgstno1" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="rgstno"/>
  319. <BindItem id="item2" compid="grp_main.opt_age" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="brthdd"/>
  320. <BindItem id="item1" compid="grp_main.opt_sex" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="sexflag"/>
  321. <BindItem id="item0" compid="grp_main.opt_nm" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="patnm"/>
  322. <BindItem id="item4" compid="grp_main.opt_rgstno2" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="rgstno2"/>
  323. <BindItem id="item5" compid="grp_main.ipt_diagdd" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagdd"/>
  324. <BindItem id="item6" compid="grp_main.ipt_procernm" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="procernm"/>
  325. <BindItem id="item7" compid="grp_main.rdo_diagmthd" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagmthd"/>
  326. <BindItem id="item8" compid="grp_main.ipt_diagmthdetc" propid="value" datasetid="ds_cngntlsyphsmmrsltreptlist" columnid="diagmthdcnts"/>
  327. </Bind>
  328. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  329. * System Name :
  330. * Job Name :
  331. * Creator :
  332. * Make Date : 2015-05-27
  333. * Description :
  334. *---------------------------------------------------------------------------------------
  335. * Modify Date Modifier Modify Description
  336. *---------------------------------------------------------------------------------------
  337. * 2015-05-27 Live Converter TF->XP
  338. *
  339. *---------------------------------------------------------------------------------------
  340. ****************************************************************************************/
  341. //=======================================================================================
  342. // xjs Include
  343. //---------------------------------------------------------------------------------------
  344. include "com_commonxp::comm_main.xjs";
  345. include "com_basiccodexp::ZBC001.xjs";
  346. include "com_commodulexp::SMZFS00501.xjs";
  347. //=======================================================================================
  348. // Global Form Variable
  349. //---------------------------------------------------------------------------------------
  350. var strRegtdt = "";
  351. var Curstate;
  352. //=======================================================================================
  353. // Function
  354. //---------------------------------------------------------------------------------------
  355. /****************************************************************************************
  356. * Argument :
  357. *
  358. * Description : 초기화 함수
  359. ****************************************************************************************/
  360. function fInit() {
  361. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","");
  362. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno","");
  363. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt","");
  364. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagdd","");
  365. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"procernm","");
  366. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthd","");
  367. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthdcnts","");
  368. grp_main.ipt_diagmthdetc.enable = false;
  369. }
  370. /****************************************************************************************
  371. * Argument :
  372. *
  373. * Description : 화면 셋팅//신고대상자조회화면에서 state="S" 일 때, 입력가능여부 처리
  374. ****************************************************************************************/
  375. function fChgReptDisable(result){
  376. if( frmf_isPopup() ){
  377. var strState = this.getOwnerFrame().LEGALINFECT_state;
  378. var menuParam = this.getOwnerFrame().LEGALINFECT_menuparam;
  379. }else {
  380. var strState = "I";
  381. }
  382. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  383. var chkWrtedt = ds_temp_reptdtinfo.getColumn(0,"reptdt");
  384. var chkReptdt = ds_temp_reptdtinfo.getColumn(0,"prt_reptdt");
  385. if(!utlf_isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  386. if(!utlf_isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
  387. if(!utlf_isNull(chkWrtedt) && chkWrtedt != "99991231" && !utlf_isNull(chkReptdt) && chkReptdt == "99991231" && utlf_isNull(strState)){
  388. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  389. }
  390. //(end) 수정 상태 셋팅 끝
  391. //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
  392. if (opener.frmf_getParameter("PrcpLglyDis") != null && opener.frmf_getParameter("PrcpLglyDis") == "PrcpLglyDis" ) strState = "I";
  393. if(frmf_isPopup() && strState == "U" ){
  394. //@@
  395. if(result == "6"){
  396. grp_main.enable = true;
  397. grp_btn.btn_save.enable = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  398. grp_btn.btn_init.enable = true; //추가 2009.11.13 JJE
  399. grp_btn.btn_cncl.enable = false;
  400. fInit();
  401. }else{
  402. grp_main.enable = false;
  403. grp_btn.btn_save.enable = false;
  404. grp_btn.btn_init.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  405. grp_btn.btn_cncl.enable = true; //추가 2009.11.13 JJE
  406. }
  407. return;
  408. }else if(frmf_isPopup() && strState == "S" ){
  409. if(menuParam != "" && !utlf_isNull(menuParam)){
  410. //진료메뉴에서 호출시.
  411. if( this.getOwnerFrame().LEGALINFECT_DisabledChk =="Y"){ //삭제된 신고서
  412. grp_main.enable = false;
  413. grp_btn.btn_save.enable = false;
  414. grp_btn.btn_init.enable = false;
  415. grp_btn.btn_cncl.enable = false;
  416. }else{
  417. grp_main.enable = true;
  418. grp_btn.btn_save.enable = true;
  419. grp_btn.btn_init.enable = true;
  420. grp_btn.btn_cncl.enable = true;
  421. }
  422. }else{
  423. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  424. if( this.getOwnerFrame().LEGALINFECT_LglyDeptChk == "N"){
  425. grp_btn.btn_cncl.enable=false;
  426. }else{
  427. grp_btn.btn_cncl.enable=true;
  428. }
  429. grp_main.enable = false;
  430. //grp_btn.disabled = true;
  431. grp_btn.btn_save.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  432. grp_btn.btn_init.enable = false; //추가 2009.11.13 JJE
  433. }
  434. return;
  435. }else {
  436. if(result == "6"){ //수정모드, 신고대상자조회에서 오픈모드가 아닐 경우... ex:최초..
  437. grp_main.enable = true;
  438. grp_btn.btn_save.enable = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  439. grp_btn.btn_init.enable = true; //추가 2009.11.13 JJE
  440. grp_btn.btn_cncl.enable = false;
  441. fInit();
  442. }else{
  443. grp_main.enable = false;
  444. grp_btn.btn_save.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  445. grp_btn.btn_init.enable = false; //추가 2009.11.13 JJE
  446. grp_btn.btn_cncl.enable = true;
  447. }
  448. return;
  449. }
  450. if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid"))){
  451. grp_main.enable = false;
  452. grp_btn.enable = false;
  453. }
  454. }
  455. /****************************************************************************************
  456. * Argument :
  457. *
  458. * Description : 기신고서가 있는지 check
  459. ****************************************************************************************/
  460. function fChkReptYN() {
  461. var diagList = ds_temp_diagcdlist.rowcount;
  462. var diagcd = "";
  463. var statcd = "";
  464. var status = "";
  465. if(diagList > 0 ) {
  466. for(var i=0 ; i< diagList; i++) {
  467. status = ds_temp_diagcdlist.getColumn(i,"status");
  468. if(status == "I" || status == "U" || status == "-") {
  469. diagcd += ds_temp_diagcdlist.getColumn(i,"diagcd").substr(0,4) + "▦";
  470. statcd += ds_temp_diagcdlist.getColumn(i,"status") + "▦";
  471. }
  472. }
  473. }
  474. if(diagcd != "") {
  475. //??
  476. // model.removeNodeset("/root/send/reqdata");
  477. // model.makeValue("/root/send/reqdata/diagcd", diagcd);
  478. // model.makeValue("/root/send/reqdata/status", statcd);
  479. // model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist/pid"));
  480. // model.makeValue("/root/send/reqdata/reptflag", "04");
  481. }
  482. }
  483. //=======================================================================================
  484. // Transaction Callback
  485. //---------------------------------------------------------------------------------------
  486. /****************************************************************************************
  487. * Argument : 01. strSvcID
  488. * 02. nErrorCode
  489. * 03. strErrorMsg
  490. * Description : cbf_TXASI01901 콜백함수
  491. ****************************************************************************************/
  492. // function cbf_TXASI01901_02(strSvcID, nErrorCode, strErrorMsg){
  493. // //에러 처리
  494. // if(nErrorCode == 0){
  495. // var sInDsName = dsf_createDsRow("in_ds_search"
  496. // , [{col: "pid", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")}
  497. // , {col: "reptflag", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"reptflag")}
  498. // ]);
  499. // //ds_grid_grd_limantibiouspatref.clearData();
  500. // tranf_submit({
  501. // id: "TRASI01502"
  502. // , service: "infcmngtapp.LglyDisMngt"
  503. // , method: "reqGetReptdtInfo"
  504. // , inds : "req="+sInDsName
  505. // , outds: "ds_temp_reptdtinfo=reptdtinfo"
  506. // , callback: "cbf_TRASI01502_2"
  507. // , async: false
  508. // });
  509. // }
  510. // }
  511. /****************************************************************************************
  512. * Argument : 01. strSvcID
  513. * 02. nErrorCode
  514. * 03. strErrorMsg
  515. * Description : cbf_TRASI01502_2 콜백함수
  516. ****************************************************************************************/
  517. function cbf_TXASI01901_02(strSvcID, nErrorCode, strErrorMsg){
  518. //에러 처리
  519. if(nErrorCode == 0){
  520. //if( utlf_isNull(ds_temp_reptdtinfo.getColumn(0,"reptdt")) ){
  521. sysf_messageBox("삭제" ,"I001");
  522. //}
  523. }
  524. }
  525. /****************************************************************************************
  526. * Argument : 01. strSvcID
  527. * 02. nErrorCode
  528. * 03. strErrorMsg
  529. * Description : cbf_TRASI01501 콜백함수
  530. ****************************************************************************************/
  531. function cbf_TRASI01501(strSvcID, nErrorCode, strErrorMsg){
  532. if(nErrorCode == 0){
  533. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"patnm",ds_temp_info.getColumn(0,"patnm"));
  534. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"sexflag",ds_temp_info.getColumn(0,"sexflag"));
  535. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"age",ds_temp_info.getColumn(0,"age"));
  536. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"rgstno",ds_temp_info.getColumn(0,"rgstno"));
  537. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"rgstno2",ds_temp_info.getColumn(0,"rgstno2"));
  538. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagdd",ds_temp_info.getColumn(0,"diagdd"));
  539. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"procernm",ds_temp_info.getColumn(0,"procernm"));
  540. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthd",ds_temp_info.getColumn(0,"diagmthd"));
  541. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"diagmthdcnts",ds_temp_info.getColumn(0,"diagmthdetc"));
  542. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"brthdd",ds_temp_info.getColumn(0,"brthdd"));
  543. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt",ds_temp_info.getColumn(0,"wrtedt"));
  544. }
  545. }
  546. /****************************************************************************************
  547. * Argument : 01. strSvcID
  548. * 02. nErrorCode
  549. * 03. strErrorMsg
  550. * Description : cbf_TRASI01502 콜백함수
  551. ****************************************************************************************/
  552. function cbf_TRASI01502(strSvcID, nErrorCode, strErrorMsg){
  553. if(nErrorCode == 0){
  554. strRegtdt = ds_temp_reptdtinfo.getColumn(0,"reptdt");
  555. }
  556. }
  557. /****************************************************************************************
  558. * Argument : 01. strSvcID
  559. * 02. nErrorCode
  560. * 03. strErrorMsg
  561. * Description : cbf_TXASI01901_2 콜백함수
  562. ****************************************************************************************/
  563. function cbf_TXASI01901(strSvcID, nErrorCode, strErrorMsg){
  564. //에러 처리
  565. if(nErrorCode == 0){
  566. //model.copyNode("/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist", "/root/main/getlglydisinfo/info");
  567. if(Curstate == "I"){
  568. sysf_messageBox("저장되었습니다","I");
  569. }else if (Curstate == "U"){
  570. sysf_messageBox("수정되었습니다.","I");
  571. }
  572. this.close();
  573. }
  574. }
  575. //=======================================================================================
  576. // Event
  577. //---------------------------------------------------------------------------------------
  578. /****************************************************************************************
  579. * Components :
  580. * Components ID : SPASI01900
  581. * Event : onload
  582. * Argument : 01.obj : Object Event has occurred
  583. * : 02.e : Event Object
  584. * Description :
  585. ****************************************************************************************/
  586. function SPASI01900_onload(obj:Form, e:LoadEventInfo)
  587. {
  588. frmf_initForm(obj); // 화면공통
  589. // 공통코드를 조회한다.
  590. appf_getCodeList([{dsNm: "ds_init_A0136", cdGrpId: "A0136"}
  591. ], true);
  592. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptflag","04");
  593. var pid = "";
  594. var iDate = new Date();
  595. var strYearCal = "";
  596. var pamInfoCvs = sysf_getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  597. if(frmf_isPopup() && !utlf_isNull(this.getOwnerFrame().LEGALINFECT_pid)){
  598. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid", this.getOwnerFrame().LEGALINFECT_pid );
  599. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd", this.getOwnerFrame().LEGALINFECT_indd );
  600. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag", this.getOwnerFrame().LEGALINFECT_psnflag );
  601. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", this.getOwnerFrame().objLEGALINFECT_wrtedt );
  602. }else if( !utlf_isNull(pamInfoCvs) ){ //cvs가 ""이 아닌 경우에만 처리함.
  603. ds_temp_paminfo.loadCSV(pamInfoCvs);
  604. var ioflag = ds_temp_paminfo.getColumn(0,"ioflag");
  605. if(ioflag == "I" || ioflag == "E"){
  606. pid = ds_temp_paminfo.getColumn(0,"pid");
  607. indd = ds_temp_paminfo.getColumn(0,"indd");
  608. cretno = ds_temp_paminfo.getColumn(0,"cretno");
  609. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid",pid);
  610. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd",indd);
  611. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"cretno",cretno);
  612. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag",ioflag);
  613. }else if(ioflag == "O"){
  614. pid = ds_temp_paminfo.getColumn(0,"pid");
  615. orddd = ds_temp_paminfo.getColumn(0,"orddd");
  616. cretno = ds_temp_paminfo.getColumn(0,"cretno");
  617. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"pid",pid);
  618. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"indd",orddd);
  619. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"cretno",cretno);
  620. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"psnflag",ioflag);
  621. }
  622. }
  623. if( !utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")) ){
  624. //@@
  625. tranf_submit({
  626. id: "TRASI01501"
  627. , service: "infcmngtapp.LglyDisMngt"
  628. , method: "reqGetLglyDisPatInfo"
  629. , inds : "req=ds_cngntlsyphsmmrsltreptlist"
  630. , outds: "ds_temp_info=info"
  631. , callback: "cbf_TRASI01501"
  632. , async: false
  633. });
  634. //@@
  635. var result = 1;
  636. if(!utlf_isNull(opener.frmf_getParameter("PrcpLglyDis"))){
  637. //처방에서 호출한 경우 상병체크하여 초기화
  638. fInit();
  639. result=6;
  640. }
  641. if(frmf_isPopup() && ( this.getOwnerFrame().LEGALINFECT_state == "U" || this.getOwnerFrame().LEGALINFECT_state == "S" || !utlf_isNull(opener.frmf_getParameter("PrcpLglyDis")) )){
  642. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state",this.getOwnerFrame().LEGALINFECT_state);
  643. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt",this.getOwnerFrame().LEGALINFECT_wrtedt);
  644. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno",this.getOwnerFrame().LEGALINFECT_seqno);
  645. ds_temp_reptdtinfo.addRow(0);
  646. ds_temp_reptdtinfo.setColumn(0,"reptdt", this.getOwnerFrame().LEGALINFECT_reptdt );
  647. ds_temp_reptdtinfo.setColumn(0,"reptyn", this.getOwnerFrame().LEGALINFECT_reptyn );
  648. ds_temp_reptdtinfo.setColumn(0,"chgyn", this.getOwnerFrame().LEGALINFECT_chgyn );
  649. ds_temp_reptdtinfo.setColumn(0,"prt_reptdt", this.getOwnerFrame().LEGALINFECT_prt_reptdt );
  650. }else if(frmf_isPopup() && ( this.getOwnerFrame().LEGALINFECT_state != "U" || utlf_isNull( opener.frmf_getParameter("PrcpLglyDis") )) ){
  651. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", this.getOwnerFrame().LEGALINFECT_state );
  652. strRegtdt = "";
  653. var sInDsName = dsf_createDsRow("in_ds_search"
  654. , [{col: "pid", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"pid")}
  655. , {col: "reptflag", val: ds_cngntlsyphsmmrsltreptlist.getColumn(0,"reptflag")}
  656. ]);
  657. //ds_grid_grd_limantibiouspatref.clearData();
  658. tranf_submit({
  659. id: "TRASI01502"
  660. , service: "infcmngtapp.LglyDisMngt"
  661. , method: "reqGetReptdtInfo"
  662. , inds : "req="+sInDsName
  663. , outds: "ds_temp_reptdtinfo=reptdtinfo"
  664. , callback: "cbf_TRASI01502"
  665. , async: false
  666. });
  667. if( !utlf_isNull(strRegtdt) ){
  668. var today = utlf_getCurrentDate();
  669. var temp = utlf_str2Date(utlf_getCurrentDate()).getAddDate(-1, "Y");
  670. strYearCal = utlf_getRemoveFormatter(utlf_date2Str(temp));
  671. }
  672. if( ds_temp_reptdtinfo.getColumn(0,"reptyn") != "" && ds_temp_reptdtinfo.getColumn(0,"reptyn") != null ){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
  673. //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  674. //@@재호출 메시지 내용 변경
  675. //result = messageBox("신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt+ "입니다. \n \n수정", "S001");
  676. result = sysf_messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  677. + "선천성매독 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
  678. //model.close();
  679. //return;
  680. } else { //신고 내용이 없다면
  681. result=6;
  682. }
  683. if( ds_temp_reptdtinfo.getColumn(0,"chgyn") == 'Y' ){
  684. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","U");
  685. fChkReptYN();
  686. // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  687. // model.close();
  688. // return;
  689. // }
  690. }
  691. }
  692. fChgReptDisable(result);
  693. }else{
  694. grp_btn.enable = false;
  695. }
  696. grp_main.ipt_diagmthdetc.enable = false;
  697. grp_main.ipt_diagdd.setFocus();
  698. }
  699. //
  700. // /****************************************************************************************
  701. // * Components : Button
  702. // * Components ID : btn_save
  703. // * Event : onclick
  704. // * Argument : 01.obj : Button
  705. // * : 02.e : ClickEventInfo
  706. // * Description : 신고를 저장하거나 수정한다.
  707. // ****************************************************************************************/
  708. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  709. {
  710. if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"diagdd")) ){
  711. sysf_messageBox("진단일은","I003");
  712. return;
  713. }
  714. if((ds_cngntlsyphsmmrsltreptlist.getColumn(0,"diagmthd")=="")){
  715. sysf_messageBox("진단방법은 ","I003");
  716. return;
  717. }
  718. //var a = model.getValue("/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist/wrtedt");
  719. //alert(a);
  720. if( utlf_isNull(ds_cngntlsyphsmmrsltreptlist.getColumn(0,"wrtedt")) ){
  721. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", utlf_getCurrentDate() +""+ utlf_getCurrentTime());
  722. ds_cngntlsyphsmmrsltreptlist.addColumn("reptdt","string");
  723. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptdt",utlf_getCurrentDate() +""+ utlf_getCurrentTime());
  724. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", "I");
  725. } else {
  726. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state", "U");
  727. }
  728. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"orddeptcd", ds_temp_paminfo.getColumn(0,"orddeptcd"));
  729. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"orddeptcd", "04");
  730. //model.copyNode("/root/send/savedata", "/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist");
  731. //@@
  732. Curstate = ds_cngntlsyphsmmrsltreptlist.getColumn(0,"state");
  733. tranf_submit({
  734. id: "TXASI01901"
  735. , service: "infcmngtapp.LglyDisMngt"
  736. , method: "reqExeCngntlSyphSmMRsltReptList"
  737. , inds : "req=ds_cngntlsyphsmmrsltreptlist"
  738. , outds: "ds_temp_reptdtinfo=info"
  739. , callback: "cbf_TXASI01901"
  740. , async: false
  741. });
  742. }
  743. /****************************************************************************************
  744. * Components : Button
  745. * Components ID : btn_init
  746. * Event : onclick
  747. * Argument : 01.obj : Button
  748. * : 02.e : ClickEventInfo
  749. * Description : 초기화 시킨다
  750. ****************************************************************************************/
  751. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  752. {
  753. fInit();
  754. }
  755. /****************************************************************************************
  756. * Components : Button
  757. * Components ID : btn_cncl
  758. * Event : onclick
  759. * Argument : 01.obj : Button
  760. * : 02.e : ClickEventInfo
  761. * Description : 기존에 신고된 것을 삭제한다.
  762. ****************************************************************************************/
  763. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  764. {
  765. var prt_reptdt = ds_temp_reptdtinfo.getColumn(0,"prt_reptdt");
  766. if(prt_reptdt.toString().substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  767. sysf_messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  768. return;
  769. }
  770. var result = sysf_messageBox("","Q001"); //삭제하시겠습니까?
  771. if (result == "7"){
  772. sysf_messageBox("삭제가 취소되었습니다","I");
  773. return;
  774. }else{
  775. ds_temp_reptdtinfo.addRow(0);
  776. ds_temp_reptdtinfo.setColumn(0,"reptdt", this.getOwnerFrame().LEGALINFECT_reptdt );
  777. ds_temp_reptdtinfo.setColumn(0,"reptyn", this.getOwnerFrame().LEGALINFECT_reptyn );
  778. ds_temp_reptdtinfo.setColumn(0,"chgyn", this.getOwnerFrame().LEGALINFECT_chgyn );
  779. ds_temp_reptdtinfo.setColumn(0,"prt_reptdt", this.getOwnerFrame().LEGALINFECT_prt_reptdt );
  780. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"state","D");
  781. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"wrtedt", ds_temp_info.getColumn(0,"wrtedt"));
  782. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"seqno", ds_temp_info.getColumn(0,"seqno"));
  783. ds_cngntlsyphsmmrsltreptlist.setColumn(0,"reptflag", ds_temp_info.getColumn(0,"reptflag"));
  784. //model.copyNode("/root/send/savedata","/root/main/cngntlsyphsmmrsltreptinfo/cngntlsyphsmmrsltreptlist");
  785. tranf_submit({
  786. id: "TXASI01901"
  787. , service: "infcmngtapp.LglyDisMngt"
  788. , method: "reqExeCngntlSyphSmMRsltReptList"
  789. , inds : "req=ds_cngntlsyphsmmrsltreptlist"
  790. , outds: "ds_temp_reptdtinfo=info"
  791. , callback: "cbf_TXASI01901_02"
  792. , async: false
  793. });
  794. this.close();
  795. }
  796. }
  797. /****************************************************************************************
  798. * Components : Button
  799. * Components ID : rdo_diagmthd
  800. * Event : onitemchanged
  801. * Argument : 01.obj : Radio
  802. * : 02.e : ItemChangeEventInfo
  803. * Description : 기타를 누르면 input창이 활성화된다.
  804. ****************************************************************************************/
  805. function grp_main_rdo_diagmthd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  806. {
  807. if( obj.value == 99 ){
  808. grp_main.ipt_diagmthdetc.enable = true;
  809. }
  810. }
  811. /****************************************************************************************
  812. * Components : Button
  813. * Components ID : rdo_diagmthd
  814. * Event : onitemchanged
  815. * Argument : 01.obj : Radio
  816. * : 02.e : ItemChangeEventInfo
  817. * Description : 날짜를 다 입력하면 자동적으로 다음 컴포넌트로 넘어간다
  818. ****************************************************************************************/
  819. function grp_main_ipt_diagdd_ontextchanged(obj:Calendar, e:TextChangedEventInfo)
  820. {
  821. var pos = obj.getCaretPos();
  822. if(pos == 10)
  823. {
  824. var nextComponent = getNextComponent(obj);
  825. nextComponent.setFocus();
  826. }
  827. }
  828. /****************************************************************************************
  829. * Components : Button
  830. * Components ID : Button00
  831. * Event : onclick
  832. * Argument : 01.obj : Button
  833. * : 02.e : ClickEventInfo
  834. * Description : 화면을 닫는다.
  835. ****************************************************************************************/
  836. function Button00_onclick(obj:Button, e:ClickEventInfo)
  837. {
  838. this.close();
  839. }
  840. ]]></Script>
  841. </Form>
  842. </FDL>