SPASI03500_인플루엔자신고서.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASI03500" position="absolute 0 0 775 185" titletext="인플루엔자 표본검시 신고" onload="SPASI03500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 756 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="인플루엔자 표본검사 신고서" position="absolute 0 0 230 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 23 755 140" id="grp_main" scrollbars="none" class="div_DA_box">
  15. <Layouts>
  16. <Layout>
  17. <Static text="성별" position="absolute 393 5 448 28" align="align:center middle;" id="caption10" class="cell_1"/>
  18. <Shape position="absolute 0 111 755 117" linetype="horizontal" id="line56" class="line_3"/>
  19. <Static text="-" position="absolute 187 28 199 45" id="caption13" class="search_no_b"/>
  20. <Static text="주민등록번호" position="absolute 0 29 84 52" align="align:center middle;" id="caption1" class="cell_1" wordwrap="none"/>
  21. <Static text="성명" position="absolute 0 5 84 28" align="align:center middle;" id="caption2" class="cell_1"/>
  22. <Static text="나이" position="absolute 564 5 631 28" align="align:center middle;" id="caption11" class="cell_1"/>
  23. <Static text="검체종류" position="absolute 0 53 84 76" align="align:center middle;" id="caption7" class="cell_1"/>
  24. <Static text="당해 연도&#13;&#10;백신접종력" position="absolute 0 77 84 114" align="align:center middle;" id="caption8" class="cell_1"/>
  25. <Shape position="absolute 0 24 755 30" linetype="horizontal" id="line4" class="line_3"/>
  26. <Shape position="absolute 0 48 755 54" linetype="horizontal" id="line3" class="line_3"/>
  27. <Shape position="absolute 0 0 755 6" linetype="vertical" id="line37" class="line_1"/>
  28. <Shape position="absolute 0 0 755 1" linetype="vertical" id="line2" class="line_1"/>
  29. <Static text="세" position="absolute 733 7 748 27" align="align:center middle;" id="caption4"/>
  30. <Shape position="absolute 0 72 755 78" linetype="horizontal" id="line1" class="line_3"/>
  31. <Edit readonly="true" position="absolute 87 6 390 25" id="opt_nm"/>
  32. <Edit position="absolute 594 85 629 104" id="ipt_ioflag" class="input_default" visible="false"/>
  33. <Edit position="absolute 555 85 590 104" id="ipt_indd" class="input_default" visible="false"/>
  34. <Edit position="absolute 515 85 550 104" id="ipt_pid" class="input_default" visible="false"/>
  35. <Edit readonly="true" position="absolute 451 6 561 25" id="opt_sex"/>
  36. <Edit readonly="true" position="absolute 634 6 731 25" id="opt_age"/>
  37. <Edit readonly="true" position="absolute 87 30 182 49" id="opt_rgstno1"/>
  38. <Edit readonly="true" position="absolute 199 30 299 49" id="opt_rgstno2"/>
  39. <Calendar position="absolute 451 30 561 49" id="ipt_diagdd" class="input_essential"/>
  40. <Radio position="absolute 82 51 502 76" id="rdo_diagnm" columncount="4" innerdataset="@ds_init_A0628" datacolumn="cdnm" codecolumn="cdid"/>
  41. <Edit position="absolute 633 85 668 104" id="input1" class="input_default" visible="false"/>
  42. <Edit position="absolute 670 85 705 104" id="input2" class="input_default" visible="false"/>
  43. <Edit position="absolute 707 85 742 104" id="input3" class="input_default" visible="false"/>
  44. <Edit position="absolute 525 55 560 74" id="input4" class="input_default" visible="false"/>
  45. <Edit position="absolute 565 55 600 74" id="input5" class="input_default" visible="false"/>
  46. <Static text="진단일" position="absolute 393 29 448 52" align="align:center middle;" id="cap_diagdd" class="cell_1"/>
  47. <Edit position="absolute 680 55 715 74" id="input6" class="input_default" visible="false"/>
  48. <Radio position="absolute 90 83 407 108" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn">
  49. <Dataset id="innerdataset">
  50. <ColumnInfo>
  51. <Column id="codecolumn"/>
  52. <Column id="datacolumn"/>
  53. </ColumnInfo>
  54. <Rows>
  55. <Row>
  56. <Col id="codecolumn">Y</Col>
  57. <Col id="datacolumn">유</Col>
  58. </Row>
  59. <Row>
  60. <Col id="codecolumn">N</Col>
  61. <Col id="datacolumn">무</Col>
  62. </Row>
  63. <Row>
  64. <Col id="codecolumn">X</Col>
  65. <Col id="datacolumn">모름</Col>
  66. </Row>
  67. </Rows>
  68. </Dataset>
  69. </Radio>
  70. </Layout>
  71. </Layouts>
  72. </Div>
  73. <Div position="absolute 0 142 755 169" id="grp_btn" scrollbars="autoboth">
  74. <Layouts>
  75. <Layout>
  76. <Button position="absolute 567 2 623 24" id="btn_save" class="btn4" text="저장" onclick="grp_btn_btn_save_onclick"/>
  77. <Button position="absolute 684 2 752 24" id="btn_init" class="btn4" text="초기화" onclick="grp_btn_btn_init_onclick"/>
  78. </Layout>
  79. </Layouts>
  80. </Div>
  81. <Button position="absolute 625 144 681 166" id="btn_cncl" class="btn4" text="삭제" onclick="btn_cncl_onclick"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_init_A0628" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="cdnm" type="STRING"/>
  88. <Column id="cdid" type="STRING"/>
  89. </ColumnInfo>
  90. </Dataset>
  91. <Dataset id="ds_infcsmmrsltreptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="state" type="STRING" size="256"/>
  94. <Column id="reptflag" type="STRING" size="256"/>
  95. <Column id="psnflag" type="STRING" size="256"/>
  96. <Column id="patnm" type="STRING" size="256"/>
  97. <Column id="sexflag" type="STRING" size="256"/>
  98. <Column id="age" type="STRING" size="256"/>
  99. <Column id="rgstno" type="STRING" size="256"/>
  100. <Column id="rgstno2" type="STRING" size="256"/>
  101. <Column id="diagdd" type="STRING" size="256"/>
  102. <Column id="spckindcd" type="STRING" size="256"/>
  103. <Column id="preinochstflag" type="STRING" size="256"/>
  104. <Column id="pid" type="STRING" size="256"/>
  105. <Column id="wrtedt" type="STRING" size="256"/>
  106. <Column id="instcd" type="STRING" size="256"/>
  107. <Column id="seqno" type="STRING" size="256"/>
  108. <Column id="cretno" type="STRING" size="256"/>
  109. <Column id="orddd" type="STRING" size="256"/>
  110. <Column id="indd" type="STRING" size="256"/>
  111. <Column id="orddeptcd" type="STRING" size="256"/>
  112. <Column id="lasthistyn" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="state"/>
  117. <Col id="reptflag"/>
  118. <Col id="psnflag"/>
  119. <Col id="patnm"/>
  120. <Col id="sexflag"/>
  121. <Col id="age"/>
  122. <Col id="rgstno"/>
  123. <Col id="rgstno2"/>
  124. <Col id="diagdd"/>
  125. <Col id="spckindcd"/>
  126. <Col id="preinochstflag"/>
  127. <Col id="pid"/>
  128. <Col id="wrtedt"/>
  129. <Col id="instcd"/>
  130. <Col id="seqno"/>
  131. <Col id="cretno"/>
  132. <Col id="orddd"/>
  133. <Col id="indd"/>
  134. <Col id="orddeptcd"/>
  135. <Col id="lasthistyn">Y</Col>
  136. </Row>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_data_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_getlglydisinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  141. </Objects>
  142. <Bind>
  143. <BindItem id="item0" compid="grp_main.opt_nm" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="patnm"/>
  144. <BindItem id="item1" compid="grp_main.opt_sex" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="sexflag"/>
  145. <BindItem id="item2" compid="grp_main.opt_age" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="age"/>
  146. <BindItem id="item3" compid="grp_main.opt_rgstno1" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="rgstno"/>
  147. <BindItem id="item4" compid="grp_main.opt_rgstno2" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="rgstno2"/>
  148. <BindItem id="item5" compid="grp_main.ipt_diagdd" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="diagdd"/>
  149. <BindItem id="item6" compid="grp_main.rdo_diagnm" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="spckindcd"/>
  150. <BindItem id="item7" compid="grp_main.input4" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="cretno"/>
  151. <BindItem id="item8" compid="grp_main.input5" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="orddd"/>
  152. <BindItem id="item9" compid="grp_main.input6" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="orddeptcd"/>
  153. <BindItem id="item10" compid="grp_main.radio1" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="preinochstflag"/>
  154. <BindItem id="item11" compid="grp_main.ipt_pid" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="pid"/>
  155. <BindItem id="item12" compid="grp_main.ipt_indd" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="indd"/>
  156. <BindItem id="item13" compid="grp_main.ipt_ioflag" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="psnflag"/>
  157. <BindItem id="item14" compid="grp_main.input1" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="wrtedt"/>
  158. <BindItem id="item15" compid="grp_main.input2" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="instcd"/>
  159. <BindItem id="item16" compid="grp_main.input3" propid="value" datasetid="ds_infcsmmrsltreptlist" columnid="seqno"/>
  160. </Bind>
  161. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  162. * System Name :
  163. * Job Name :
  164. * Creator :
  165. * Make Date : 2015-06-04
  166. * Description :
  167. *---------------------------------------------------------------------------------------
  168. * Modify Date Modifier Modify Description
  169. *---------------------------------------------------------------------------------------
  170. * 2015-06-04 Live Converter TF->XP
  171. *
  172. *---------------------------------------------------------------------------------------
  173. ****************************************************************************************/
  174. include "com_commonxp::comm_main.xjs";
  175. var arErrorCode = new HashArray();
  176. function fInit() {
  177. ds_infcsmmrsltreptlist.setColumn(0,"state", "");
  178. ds_infcsmmrsltreptlist.setColumn(0,"wrtedt", "");
  179. ds_infcsmmrsltreptlist.setColumn(0,"seqno", "");
  180. grp_main.ipt_diagdd.value = "";
  181. grp_main.rdo_diagnm.value = "";
  182. ds_infcsmmrsltreptlist.setColumn(0,"preinochstflag", "");
  183. }
  184. //신고대상자조회화면에서 state="S" 일 때, 입력가능여부 처리
  185. //function fChgReptDisable(){
  186. function fChgReptDisable(result){
  187. if( frmf_isPopup() ){
  188. var strState = opener.frmf_getParameter("state");
  189. var menuParam = opener.frmf_getParameter("menuparam");
  190. }else {
  191. var strState = "I";
  192. }
  193. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  194. var chkWrtedt = ds_reptdtinfo.getColumn("reptdt");
  195. var chkReptdt = ds_reptdtinfo.getColumn("prt_reptdt");
  196. if(!utlf_isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  197. if(!utlf_isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
  198. if(!utlf_isNull(chkWrtedt) && chkWrtedt != "99991231" && !utlf_isNull(chkReptdt) && chkReptdt == "99991231" && utlf_isNull(strState)){
  199. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  200. }
  201. //(end) 수정 상태 셋팅 끝
  202. //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
  203. if (opener.frmf_getParameter("PrcpLglyDis") != null && opener.frmf_getParameter("PrcpLglyDis") == "PrcpLglyDis" ) strState = "I";
  204. if(frmf_isPopup() && strState == "U" ){
  205. if(result == "6"){
  206. grp_main.enable = true;
  207. grp_btn.btn_save.enable = true;
  208. grp_btn.btn_init.enable = true;
  209. grp_btn.btn_cncl.enable= false;
  210. fInit();
  211. }else{
  212. grp_main.enable = false;
  213. grp_btn.btn_save.enable = false;
  214. grp_btn.btn_init.enable = false;
  215. grp_btn.btn_cncl.enable= true;
  216. }
  217. return;
  218. }else if(frmf_isPopup() && strState == "S" ){
  219. if(!utlf_isNull(menuParam)){
  220. //진료메뉴에서 호출시.
  221. if(opener.frmf_getParameter("DisabledChk")=="Y"){ //삭제된 신고서
  222. grp_main.enable = false;
  223. grp_btn.btn_save.enable = false;
  224. grp_btn.btn_init.enable = false;
  225. grp_btn.btn_cncl.enable= false;
  226. }else{
  227. grp_main.enable = true;
  228. grp_btn.btn_save.enable = true;
  229. grp_btn.btn_init.enable = true;
  230. grp_btn.btn_cncl.enable= true;
  231. }
  232. }else{
  233. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  234. if(opener.frmf_.getParameter("LglyDeptChk")=="N"){
  235. grp_btn.btn_cncl.enable= false;
  236. }else{
  237. grp_btn.btn_cncl.enable= true;
  238. }
  239. grp_main.enable = false;
  240. grp_btn.btn_save.enable = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  241. grp_btn.btn_init.enable = false; //추가 2009.11.13 JJE
  242. }
  243. return;
  244. }else {
  245. if(result == "6"){
  246. grp_main.enable = true;
  247. grp_btn.btn_save.enable = true;
  248. grp_btn.btn_init.enable = true;
  249. grp_btn.btn_cncl.enable= false;
  250. fInit();
  251. }else{
  252. grp_main.enable = false;
  253. grp_btn.btn_save.enable = false;
  254. grp_btn.btn_init.enable = false;
  255. grp_btn.btn_cncl.enable= true;
  256. }
  257. return;
  258. }
  259. if( utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"pid"))){
  260. grp_main.enable = false;
  261. grp_btn.enable = false;
  262. }
  263. }
  264. function SPASI03500_onload(obj:Form, e:LoadEventInfo)
  265. {
  266. frmf_initForm(obj);
  267. appf_getCodeList([{dsNm: "ds_init_A0628" , cdGrpId: "A0628", sorField: ""}],
  268. false , false, "");
  269. ds_infcsmmrsltreptlist.setColumn(0,"reptflag", "07");
  270. var pid = "";
  271. var strRegtdt = "";
  272. var iDate = new Date();
  273. var strYearCal = "";
  274. var pamInfoCvs = sysf_getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  275. if(!utlf_isNull(pamInfoCvs)){ //cvs가 ""이 아닌 경우에만 처리함.
  276. ds_data_paminfo.loadCSV(pamInfoCVS);
  277. var ioflag = ds_data_paminfo.getColumn(0,"ioflag");
  278. if(ioflag == "I" || ioflag == "E"){
  279. pid = ds_data_paminfo.getColumn(0, "pid");
  280. indd = ds_data_paminfo.getColumn(0, "indd");
  281. cretno = ds_data_paminfo.getColumn(0, "cretno");
  282. ds_infcsmmrsltreptlist.setColumn(0, "pid", pid);
  283. ds_infcsmmrsltreptlist.setColumn(0, "indd", indd);
  284. ds_infcsmmrsltreptlist.setColumn(0, "cretno", cretno);
  285. ds_infcsmmrsltreptlist.setColumn(0, "psnflag", ioflag);
  286. }else if(ioflag == "O"){
  287. pid = ds_data_paminfo.getColumn(0, "pid");
  288. orddd = ds_data_paminfo.getColumn(0, "orddd");
  289. cretno = ds_data_paminfo.getColumn(0, "cretno");
  290. ds_infcsmmrsltreptlist.setColumn(0, "pid", pid);
  291. ds_infcsmmrsltreptlist.setColumn(0, "indd", orddd);
  292. ds_infcsmmrsltreptlist.setColumn(0, "cretno", cretno);
  293. ds_infcsmmrsltreptlist.setColumn(0, "psnflag", ioflag);
  294. }
  295. }else if(frmf_isPopup()){
  296. ds_infcsmmrsltreptlist.setColumn(0, "pid", opener.frmf_getParameter("pid"));
  297. ds_infcsmmrsltreptlist.setColumn(0, "indd", opener.frmf_getParameter("indd"));
  298. ds_infcsmmrsltreptlist.setColumn(0, "psnflag", opener.frmf_getParameter("psnflag"));
  299. ds_infcsmmrsltreptlist.setColumn(0, "wrtedt", opener.frmf_getParameter("wrtedt"));
  300. }
  301. if(!utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"pid"))){
  302. var oParam = {};
  303. oParam.id = "TRASI01501";
  304. oParam.service = "infcmngtapp.LglyDisMngt";
  305. oParam.method = "reqGetLglyDisPatInfo";
  306. oParam.inds = "req=ds_infcsmmrsltreptlist";
  307. oParam.outds = "ds_getlglydisinfo=info";
  308. oParam.async = false;
  309. oParam.callback = "cf_TRASI01501";
  310. tranf_submit(oParam);
  311. if(arErrorCode.pop("TRASI01501") > -1){
  312. ds_infcsmmrsltreptlist.copyData(ds_getlglydisinfo);
  313. }
  314. //@@
  315. var result = 1;
  316. if(!utlf_isNull(opener.frmf_getParameter("PrcpLglyDis"))){
  317. //처방에서 호출한 경우 상병체크하여 초기화
  318. fInit();
  319. result=6;
  320. }
  321. if(frmf_isPopup() && (opener.frmf_getParameter("state") == "U" || opener.frmf_getParameter("state") == "S" || !utlf_isNull(opener.frmf_getParameter("PrcpLglyDis")) )){
  322. ds_infcsmmrsltreptlist.setColumn(0, "state", opener.frmf_getParameter("state"));
  323. ds_infcsmmrsltreptlist.setColumn(0, "wrtedt", opener.frmf_getParameter("wrtedt"));
  324. ds_infcsmmrsltreptlist.setColumn(0, "seqno", opener.frmf_getParameter("seqno"));
  325. dsf_createDsRow("ds_reptdtinfo",
  326. [{col:"reptdt" , type:"string", size:256, val:opener.frmf_getParameter("reptdt")},
  327. {col:"reptyn" , type:"string", size:256, val:opener.frmf_getParameter("reptyn")},
  328. {col:"chgyn" , type:"string", size:256, val:opener.frmf_getParameter("chgyn")},
  329. {col:"prt_reptdt" , type:"string", size:256, val:opener.frmf_getParameter( "prt_reptdt")}
  330. ]);
  331. }else if(frmf_isPopup() && (opener.frmf_getParameter("state") != "U" || utlf_isNull(opener.frmf_getParameter("PrcpLglyDis"))) ){
  332. ds_infcsmmrsltreptlist.setColumn(0, "state", opener.frmf_getParameter("state"));
  333. dsf_createDsRow("ds_send_reqdata",
  334. [{col:"pid" , type:"string", size:256, val:ds_infcsmmrsltreptlist.getColumn(0,"pid")},
  335. {col:"reptflag" , type:"string", size:256, val:ds_infcsmmrsltreptlist.getColumn(0,"reptflag")}
  336. ]);
  337. strRegtdt = "";
  338. dsf_createDs("ds_reptdtinfo");
  339. var oParam = {};
  340. oParam.id = "TRASI01502";
  341. oParam.service = "infcmngtapp.LglyDisMngt";
  342. oParam.method = "reqGetReptdtInfo";
  343. oParam.inds = "req=ds_send_reqdata";
  344. oParam.outds = "ds_reptdtinfo=reptdtinfo";
  345. oParam.async = false;
  346. oParam.callback = "cf_TRASI01502";
  347. tranf_submit(oParam);
  348. if (arErrorCode.pop("TRASI01502") > -1){
  349. strRegtdt = ds_reptdtinfo.getColumn(0,"reptdt");
  350. }
  351. if( !utlf_isNull(strRegtdt) ){
  352. strYearCal = (iDate.getAddDate(-1, "Y")).getDateFormat();
  353. }
  354. if( !utlf_isNull(ds_reptdtinfo.getColumn(0,"reptyn"))){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
  355. result = sysf_messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  356. + "인플루엔자 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
  357. } else { //신고 내용이 없다면
  358. result=6;
  359. }
  360. }
  361. fChgReptDisable(result);
  362. }else{
  363. grp_btn.enable = false;
  364. }
  365. }
  366. function cf_TRASI01501(sSvcId, nErrorCode, sErrorMsg) {
  367. arErrorCode.push(sSvcId, nErrorCode);
  368. }
  369. function cf_TRASI01502(sSvcId, nErrorCode, sErrorMsg) {
  370. arErrorCode.push(sSvcId, nErrorCode);
  371. }
  372. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
  373. {
  374. dsf_makeValue(ds_infcsmmrsltreptlist,"reptflag","string", "07");
  375. dsf_makeValue(ds_infcsmmrsltreptlist,"lglydiscd","string", "603");
  376. if( !frmf_isRequiredControls("ipt_diagdd") ){
  377. return;
  378. }
  379. if(utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"diagdd")) ){
  380. sysf_messageBox("진단일은 ","I003");
  381. return;
  382. }
  383. if(utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"spckindcd"))){
  384. sysf_messageBox("전염병명은","I003");
  385. return;
  386. }
  387. if(utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"preinochstflag"))){
  388. sysf_messageBox("예방접종내력은","I003");
  389. return;
  390. }
  391. if(utlf_isNull(ds_infcsmmrsltreptlist.getColumn(0,"wrtedt"))){
  392. ds_infcsmmrsltreptlist.setColumn(0,"state", "I");
  393. ds_infcsmmrsltreptlist.setColumn(0,"wrtedt", utlf_getCurrentDate() +""+ utlf_getCurrentTime());
  394. } else {
  395. ds_infcsmmrsltreptlist.setColumn(0,"state", "U");
  396. }
  397. ds_infcsmmrsltreptlist.setColumn(0,"orddeptcd", ds_data_paminfo.getColumn(0,"orddeptcd"));
  398. //@@
  399. var Curstate = ds_infcsmmrsltreptlist.getColumn(0,"state")
  400. var oParam = {};
  401. oParam.id = "TXASI03401";
  402. oParam.service = "infcmngtapp.LglyDisMngt";
  403. oParam.method = "reqExeSpclLglyDisRec";
  404. oParam.inds = "req=ds_infcsmmrsltreptlist";
  405. oParam.outds = "ds_getlglydisinfo=info";
  406. oParam.async = false;
  407. oParam.callback = "cf_TXASI03401";
  408. tranf_submit(oParam);
  409. if(arErrorCode.pop("TXASI03401") > -1) {
  410. ds_infcsmmrsltreptlist.copyData(ds_getlglydisinfo);
  411. //@@
  412. if(Curstate == "I"){
  413. sysf_messageBox("저장되었습니다","I");
  414. }else if (Curstate == "U"){
  415. sysf_messageBox("수정되었습니다.","I");
  416. }
  417. this.close();
  418. }
  419. }
  420. function cf_TXASI03401(sSvcId, nErrorCode, sErrorMsg) {
  421. arErrorCode.push(sSvcId, nErrorCode);
  422. }
  423. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
  424. {
  425. fInit();
  426. }
  427. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  428. {
  429. if(ds_reptdtinfo.getColumn(0, "prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  430. sysf_messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  431. return;
  432. }
  433. var result = sysf_messageBox("","Q001"); //삭제하시겠습니까?
  434. if (result == "7"){
  435. sysf_messageBox("삭제가 취소되었습니다","I");
  436. return;
  437. }
  438. dsf_makeValue(ds_reptdtinfo,"reptdt", "string",opener.frmf_getParameter("reptdt")); //추가 (2009.11.13 JJE)
  439. dsf_makeValue(ds_reptdtinfo,"reptyn", "string",opener.frmf_getParameter("reptyn")); //추가 (2009.11.13 JJE)
  440. dsf_makeValue(ds_reptdtinfo,"chgyn", "string",opener.frmf_getParameter("chgyn")); //추가 (2009.11.13 JJE)
  441. dsf_makeValue(ds_reptdtinfo,"prt_reptdt", "string",opener.frmf_getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  442. ds_infcsmmrsltreptlist.setColumn(0,"state", "D");
  443. var oParam = {};
  444. oParam.id = "TXASI03401";
  445. oParam.service = "infcmngtapp.LglyDisMngt";
  446. oParam.method = "reqExeSpclLglyDisRec";
  447. oParam.inds = "req=ds_infcsmmrsltreptlist";
  448. oParam.outds = "ds_getlglydisinfo=info";
  449. oParam.async = false;
  450. oParam.callback = "cf_TXASI03401";
  451. tranf_submit(oParam);
  452. if(arErrorCode.pop("TXASI03401") > -1){
  453. ds_infcsmmrsltreptlist.copyData(ds_getlglydisinfo);
  454. dsf_createDsRow("ds_send_reqdata",
  455. [{col:"pid" , type:"string", size:256, val:ds_infcsmmrsltreptlist.getColumn(0,"pid")},
  456. {col:"reptflag" , type:"string", size:256, val:ds_infcsmmrsltreptlist.getColumn(0,"reptflag")}
  457. ]);
  458. dsf_createDs("ds_reptdtinfo");
  459. var oParam = {};
  460. oParam.id = "TRASI01502";
  461. oParam.service = "infcmngtapp.LglyDisMngt";
  462. oParam.method = "reqGetReptdtInfo";
  463. oParam.inds = "req=ds_send_reqdata";
  464. oParam.outds = "ds_reptdtinfo=reptdtinfo";
  465. oParam.async = false;
  466. oParam.callback = "cf_TRASI01502";
  467. tranf_submit(oParam);
  468. if(arErrorCode.pop("TRASI01502") > -1){
  469. if( utlf_isNull(ds_reptdtinfo.getColumn(0,"reptdt")) ){
  470. sysf_messageBox("삭제" ,"I001");
  471. this.close();
  472. }
  473. }
  474. }
  475. }
  476. ]]></Script>
  477. </Form>
  478. </FDL>