SMPMC06700_산재후유증상관리.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC06700" position="absolute 0 0 1005 797" titletext="산재후유증상관리" onload="SMPMC06700_onload" oninit="SMPMC06700_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="산재후유증상관리" class="tit_1" position="absolute 0 0 151 24"/>
  8. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 24 1000 64">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="후유진단코드:" class="search_name" position="absolute 7 12 114 29"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 906 6 912 31"/>
  13. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 925 9 981 31" onclick="group2_btn_search_onclick"/>
  14. <Static id="caption3" text="코드형태:" class="search_name" position="absolute 194 11 278 28"/>
  15. <Static id="caption4" text="시작일자:" class="search_name" position="absolute 339 12 421 29"/>
  16. <Edit id="ipt_pid" taborder="7" class="input_s_essential" position="absolute 108 10 177 29" autoselect="true" onkeydown="group2_ipt_pid_onkeydown"/>
  17. <Calendar id="input37" taborder="8" class="input_default" position="absolute 409 10 494 29"/>
  18. <Static id="caption14" text="종료일자:" class="search_name" position="absolute 511 12 593 29"/>
  19. <Calendar id="input1" taborder="9" class="input_default" position="absolute 581 10 666 29"/>
  20. <CheckBox id="bool1" taborder="10" value="N" truevalue="Y" falsevalue="N" position="absolute 695 9 710 29"/>
  21. <Static id="caption5" text="이력포함" position="absolute 716 13 771 28"/>
  22. <Combo id="combo1" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 267 10 317 29">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn"/>
  26. <Column id="datacolumn"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn">-</Col>
  31. <Col id="datacolumn">전체</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">M</Col>
  35. <Col id="datacolumn">상위형</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">S</Col>
  39. <Col id="datacolumn">하위형</Col>
  40. </Row>
  41. </Rows>
  42. </Dataset>
  43. </Combo>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Static id="caption1" text="산재후유증상진단리스트" class="tit_2" position="absolute 0 327 169 344"/>
  48. <Shape id="line1" class="line_1" position="absolute 0 343 1000 349" style="strokepen:3 solid #33bbbbff;"/>
  49. <Grid id="grd_permanentsymp" class="datagrid2" taborder="2" binddataset="ds_main_permanentsymplist_permanentsymp" useinputpanel="false" position="absolute 0 348 1000 763" autoenter="select" cellsizingtype="col" oncellclick="grd_permanentsymp_oncellclick">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="24"/>
  54. <Column size="67"/>
  55. <Column size="98"/>
  56. <Column size="42"/>
  57. <Column size="85"/>
  58. <Column size="85"/>
  59. <Column size="40"/>
  60. <Column size="70"/>
  61. <Column size="70"/>
  62. <Column size="70"/>
  63. <Column size="70"/>
  64. <Column size="70"/>
  65. <Column size="70"/>
  66. <Column size="70"/>
  67. <Column size="70"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="31" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell/>
  75. <Cell col="1" text="후유증상&#10;진단코드"/>
  76. <Cell col="2" text="후유증상&#10;진단명"/>
  77. <Cell col="3" text="코드&#10;형태"/>
  78. <Cell col="4" text="시작일자"/>
  79. <Cell col="5" text="종료일자"/>
  80. <Cell col="6" text="종료&#10;여부"/>
  81. <Cell col="7" text="관리범위"/>
  82. <Cell col="8" text="적용대상"/>
  83. <Cell col="9" text="관리내용"/>
  84. <Cell col="10" text="참고사항"/>
  85. <Cell col="11" text="최초&#10;등록일시"/>
  86. <Cell col="12" text="최초등록자"/>
  87. <Cell col="13" text="최종&#10;수정일시"/>
  88. <Cell col="14" text="최종수정자"/>
  89. </Band>
  90. <Band id="body">
  91. <Cell celltype="head"/>
  92. <Cell col="1" style="align:left middle;" text="bind:psdiagcd" enable="false"/>
  93. <Cell col="2" style="align:left top;padding:3 0 0 3;" text="bind:psdiagnm" enable="false"/>
  94. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:cdtypeflag" combodataset="ds_cmb_cdtypeflag" combocodecol="value" combodatacol="label" enable="false"/>
  95. <Cell col="4" displaytype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="nulltext" enable="false"/>
  96. <Cell col="5" displaytype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="nulltext" enable="false"/>
  97. <Cell col="6" displaytype="combo" style="align:center middle;" text="bind:endyn" combodataset="ds_cmb_endyn" combocodecol="value" combodatacol="label" enable="false"/>
  98. <Cell col="7" style="align:left middle;padding:3 0 0 3;" text="bind:mngtscop" enable="false"/>
  99. <Cell col="8" style="align:left middle;padding:3 0 0 3;" text="bind:apptrgt" enable="false"/>
  100. <Cell col="9" style="align:left middle;padding:3 0 0 3;" text="bind:mngtcnts" enable="false"/>
  101. <Cell col="10" style="align:left middle;padding:3 0 0 3;" text="bind:comments" enable="false"/>
  102. <Cell col="11" displaytype="date" style="align:left middle;padding:3 0 0 3;" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" enable="false"/>
  103. <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstrid" enable="false"/>
  104. <Cell col="13" displaytype="date" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" enable="false"/>
  105. <Cell col="14" style="align:left middle;padding:0 0 0 3;" text="bind:lastupdtrid" enable="false"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Button id="btn_insicmt1" taborder="3" text="행추가" class="btn2" position="absolute 810 324 863 343" onclick="btn_insicmt1_onclick"/>
  111. <Button id="btn_saveicmt" taborder="4" text="저 장" class="btn5" position="absolute 923 70 998 89" onclick="btn_saveicmt_onclick"/>
  112. <Button id="btn_insicmt2" taborder="5" text="행삽입" class="btn2" position="absolute 756 324 809 343" onclick="btn_insicmt2_onclick"/>
  113. <Button id="btn_delicmt" taborder="6" text="행삭제" class="btn5" position="absolute 864 324 917 343" onclick="btn_delicmt_onclick"/>
  114. <Button id="btn_excelicmt" taborder="7" text="엑셀저장" class="btn7" position="absolute 918 324 998 343" onclick="btn_excelicmt_onclick"/>
  115. <Combo id="cbo_insukind1" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 937 95 996 114">
  116. <Dataset id="innerdataset">
  117. <ColumnInfo>
  118. <Column id="codecolumn"/>
  119. <Column id="datacolumn"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="codecolumn">M</Col>
  124. <Col id="datacolumn">상위형</Col>
  125. </Row>
  126. <Row>
  127. <Col id="codecolumn">S</Col>
  128. <Col id="datacolumn">하위형</Col>
  129. </Row>
  130. </Rows>
  131. </Dataset>
  132. </Combo>
  133. <Shape id="line12" class="line_3" position="absolute 0 313 1000 319"/>
  134. <Static id="caption12" text="코드형태" class="cell_1" position="absolute 875 94 935 117"/>
  135. <Shape id="line16" class="line_1" position="absolute 0 89 1000 95" style="strokepen:3 solid #33bbbbff;"/>
  136. <TextArea id="textarea1" taborder="9" class="input_essential" position="absolute 91 120 995 166" maxlength="166" wordwrap="word" style="padding:2 5 2 8;"/>
  137. <Static id="caption7" text="관리범위" class="cell_1" position="absolute 0 120 90 167"/>
  138. <Shape id="line4" class="line_2" position="absolute 0 116 1000 122"/>
  139. <Static id="caption9" text="후유증산진단명" class="cell_1" position="absolute 205 94 301 117"/>
  140. <Edit id="input3" taborder="10" class="input_essential" position="absolute 302 96 874 115" maxlength="66" autoselect="true"/>
  141. <Edit id="ipt_psdiagcd" taborder="11" class="input_essential" position="absolute 92 96 202 115"/>
  142. <Static id="caption11" text="후유진단코드" class="cell_1" position="absolute 0 94 90 117"/>
  143. <Shape id="line2" class="line_2" position="absolute 0 166 1000 172"/>
  144. <TextArea id="textarea2" taborder="12" class="input_essential" position="absolute 91 170 995 211" maxlength="333" autoselect="true" wordwrap="word" style="padding:2 5 2 8;"/>
  145. <Static id="caption8" text="적용대상" class="cell_1" position="absolute 0 170 90 211"/>
  146. <Shape id="line3" class="line_2" position="absolute 0 210 1000 216"/>
  147. <TextArea id="textarea3" taborder="13" class="input_essential" position="absolute 91 214 995 292" maxlength="1000" autoselect="true" wordwrap="word" style="padding:2 5 2 8;"/>
  148. <Static id="caption10" text="관리내용" class="cell_1" position="absolute 0 214 90 292"/>
  149. <Static id="caption13" text="산재후유증상진단" class="tit_2" position="absolute 0 73 160 89"/>
  150. <Shape id="line5" class="line_2" position="absolute 0 291 1000 297"/>
  151. <Edit id="input2" taborder="14" position="absolute 92 295 995 314" autoselect="true" maxlength="333"/>
  152. <Static id="caption15" text="참고사항" class="cell_1" position="absolute 0 295 91 314"/>
  153. <Shape id="line32" class="line_6" position="absolute 0 766 999 772"/>
  154. <Button id="button1" taborder="15" text="초기화" class="btn4" position="absolute 816 770 884 792" onclick="button1_onclick"/>
  155. <Button id="btn_confirm" taborder="16" text="확인" class="btn4" position="absolute 885 770 941 792" onclick="btn_confirm_onclick"/>
  156. <Button id="btn_cancel" taborder="17" text="취소" class="btn4" position="absolute 942 770 998 792" onclick="btn_cancel_onclick"/>
  157. </Layout>
  158. </Layouts>
  159. <Objects>
  160. <Dataset id="ds_send_perref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  161. <ColumnInfo>
  162. <Column id="psdiagcd" type="STRING" size="256"/>
  163. <Column id="cdtypeflag" type="STRING" size="256"/>
  164. <Column id="fromdd" type="STRING" size="256"/>
  165. <Column id="todd" type="STRING" size="256"/>
  166. <Column id="history" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="psdiagcd"/>
  171. <Col id="cdtypeflag"/>
  172. <Col id="fromdd"/>
  173. <Col id="todd"/>
  174. <Col id="history"/>
  175. </Row>
  176. </Rows>
  177. </Dataset>
  178. <Dataset id="ds_main_uptpermanentsymp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="psdiagcd" type="STRING" size="256"/>
  181. <Column id="psdiagnm" type="STRING" size="256"/>
  182. <Column id="cdtypeflag" type="STRING" size="256"/>
  183. <Column id="mngtscop" type="STRING" size="256"/>
  184. <Column id="apptrgt" type="STRING" size="256"/>
  185. <Column id="mngtcnts" type="STRING" size="256"/>
  186. <Column id="comments" type="STRING" size="256"/>
  187. </ColumnInfo>
  188. <Rows>
  189. <Row>
  190. <Col id="psdiagcd"/>
  191. <Col id="psdiagnm"/>
  192. <Col id="cdtypeflag"/>
  193. <Col id="mngtscop"/>
  194. <Col id="apptrgt"/>
  195. <Col id="mngtcnts"/>
  196. <Col id="comments"/>
  197. </Row>
  198. </Rows>
  199. </Dataset>
  200. <Dataset id="ds_main_permanentsymplist_permanentsymp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="psdiagcd" type="STRING" size="256" sumtext="후유증상진단코드"/>
  203. <Column id="psdiagnm" type="STRING" size="256" sumtext="후유증상진단명"/>
  204. <Column id="cdtypeflag" type="STRING" size="256" sumtext="코드구분"/>
  205. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  206. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  207. <Column id="endyn" type="STRING" size="256" sumtext="종료여부"/>
  208. <Column id="mngtscop" type="STRING" size="256" sumtext="관리범위"/>
  209. <Column id="apptrgt" type="STRING" size="256" sumtext="적용대상"/>
  210. <Column id="mngtcnts" type="STRING" size="256" sumtext="관리내용"/>
  211. <Column id="comments" type="STRING" size="256" sumtext="참고사항"/>
  212. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일"/>
  213. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  214. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일"/>
  215. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  216. </ColumnInfo>
  217. </Dataset>
  218. <Dataset id="ds_cmb_cdtypeflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="label" type="STRING" size="256"/>
  221. <Column id="value" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. <Rows>
  224. <Row>
  225. <Col id="label">상위형</Col>
  226. <Col id="value">M</Col>
  227. </Row>
  228. <Row>
  229. <Col id="label">하위형</Col>
  230. <Col id="value">S</Col>
  231. </Row>
  232. </Rows>
  233. </Dataset>
  234. <Dataset id="ds_cmb_endyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="label" type="STRING" size="256"/>
  237. <Column id="value" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row>
  241. <Col id="label">Y</Col>
  242. <Col id="value">Y</Col>
  243. </Row>
  244. <Row>
  245. <Col id="label">N</Col>
  246. <Col id="value">N</Col>
  247. </Row>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_send_setlist_setinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. <Dataset id="ds_hidden_setcheckrow" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="row" type="STRING" size="256"/>
  254. <Column id="status" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="row"/>
  259. <Col id="status"/>
  260. </Row>
  261. </Rows>
  262. </Dataset>
  263. </Objects>
  264. <Bind>
  265. <BindItem id="item7" compid="cbo_insukind1" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="cdtypeflag"/>
  266. <BindItem id="item8" compid="textarea1" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="mngtscop"/>
  267. <BindItem id="item6" compid="input3" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="psdiagnm"/>
  268. <BindItem id="item5" compid="ipt_psdiagcd" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="psdiagcd"/>
  269. <BindItem id="item9" compid="textarea2" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="apptrgt"/>
  270. <BindItem id="item10" compid="textarea3" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="mngtcnts"/>
  271. <BindItem id="item0" compid="group2.combo1" propid="value" datasetid="ds_send_perref" columnid="cdtypeflag"/>
  272. <BindItem id="item1" compid="group2.ipt_pid" propid="value" datasetid="ds_send_perref" columnid="psdiagcd"/>
  273. <BindItem id="item2" compid="group2.input37" propid="value" datasetid="ds_send_perref" columnid="fromdd"/>
  274. <BindItem id="item3" compid="group2.input1" propid="value" datasetid="ds_send_perref" columnid="todd"/>
  275. <BindItem id="item4" compid="group2.bool1" propid="value" datasetid="ds_send_perref" columnid=""/>
  276. <BindItem id="item11" compid="input2" propid="value" datasetid="ds_main_uptpermanentsymp" columnid=""/>
  277. </Bind>
  278. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  279. * System Name :
  280. * Job Name :
  281. * Creator :
  282. * Make Date : 2016-05-24
  283. * Description :
  284. *---------------------------------------------------------------------------------------
  285. * Modify Date Modifier Modify Description
  286. *---------------------------------------------------------------------------------------
  287. * 2016-05-24 Live Converter TF->XP
  288. *
  289. *---------------------------------------------------------------------------------------
  290. ****************************************************************************************/
  291. include "com_commonxp::comm_main.xjs"
  292. include "com_basiccodexp::ZBC001.xjs"
  293. include "com_zipcodexp::ZBP001.xjs"
  294. include "pam_pamcomnxp::PAM.xjs"
  295. var arErrorCode = new HashArray();
  296. function SMPMC06700_oninit(obj:Form, e:InitEventInfo)
  297. {
  298. frmf_initForm(obj);
  299. }
  300. function SMPMC06700_onload(obj:Form, e:LoadEventInfo)
  301. {
  302. grdf_initGrid(grd_permanentsymp);
  303. grdf_setRowTypeIcon(grd_permanentsymp, 0);
  304. var arrParam1 = [{ dsNm: "ds_init_P0028list_P0028", cdGrpId: "P0028"}];
  305. appf_getCodeList(arrParam1);
  306. fInitialize();
  307. }
  308. function fInitialize()
  309. {
  310. ds_send_perref.clearData();
  311. ds_send_perref.addRow();
  312. ds_send_perref.setColumn(0, "cdtypeflag","-");
  313. ds_send_perref.setColumn(0, "history","N");
  314. ds_main_uptpermanentsymp.clearData();
  315. ds_main_uptpermanentsymp.addRow();
  316. //초기화시리스트 공백 row를 삭제한다.
  317. ds_main_permanentsymplist_permanentsymp.clearData();
  318. }
  319. function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  320. {
  321. if(e.keycode == 13)
  322. {
  323. obj.updateToDataset();
  324. group2.btn_search.click();
  325. }
  326. }
  327. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. var psdiagcd = ds_send_perref.getColumn(0, "psdiagcd");
  330. var cdtypeflag = ds_send_perref.getColumn(0, "cdtypeflag");
  331. var fromdd = ds_send_perref.getColumn(0, "fromdd");
  332. var todd = ds_send_perref.getColumn(0, "todd");
  333. var history = ds_send_perref.getColumn(0, "history");
  334. if(utlf_isNull(psdiagcd) && utlf_isNull(cdtypeflag) && utlf_isNull(fromdd) && utlf_isNull(todd) && utlf_isNull(history))
  335. {
  336. sysf_messageBox("전체조회","I009");
  337. fSearch();
  338. }
  339. else
  340. {
  341. fSearch();
  342. }
  343. }
  344. function fSearch()
  345. {
  346. var oParam = {};
  347. oParam.id = "TRPMC06701";
  348. oParam.service = "patinfomngtapp.IndusPat";
  349. oParam.method = "reqGetPermanentSympInfo";
  350. oParam.inds = "req=ds_send_perref";
  351. oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
  352. oParam.async = false;
  353. //oParam.callback = "cf_TRPMC06701";
  354. tranf_submit(oParam);
  355. }
  356. function btn_saveicmt_onclick(obj:Button, e:ClickEventInfo)
  357. {
  358. ipt_psdiagcd.enable = true;
  359. var row = ds_main_permanentsymplist_permanentsymp.rowposition;
  360. var status = ds_main_permanentsymplist_permanentsymp.getRowType(row);
  361. var currentdate = utlf_getCurrentDate();
  362. var psdiagcd = ds_main_uptpermanentsymp.getColumn(0, "psdiagcd");
  363. var psdiagnm = ds_main_uptpermanentsymp.getColumn(0, "psdiagnm");
  364. var cdtypeflag = ds_main_uptpermanentsymp.getColumn(0, "cdtypeflag");
  365. var mngtscop = ds_main_uptpermanentsymp.getColumn(0, "mngtscop");
  366. var apptrgt = ds_main_uptpermanentsymp.getColumn(0, "apptrgt");
  367. var mngtcnts = ds_main_uptpermanentsymp.getColumn(0, "mngtcnts");
  368. var comments = ds_main_uptpermanentsymp.getColumn(0, "comments");
  369. if(utlf_isNull(psdiagcd) && utlf_isNull(psdiagnm) && utlf_isNull(cdtypeflag) && utlf_isNull(mngtscop) && utlf_isNull(apptrgt) && utlf_isNull(mngtcnts) && utlf_isNull(comments))
  370. {
  371. alert("입력/수정할 data를 확인해주세요");
  372. }
  373. if(status == 2)
  374. {
  375. ds_main_permanentsymplist_permanentsymp.setColumn(row, "fromdd", currentdate);
  376. ds_main_permanentsymplist_permanentsymp.setColumn(row, "todd", "99991231");
  377. ds_main_permanentsymplist_permanentsymp.setColumn(row, "endyn", "N");
  378. }
  379. else if(status == 1)
  380. {
  381. var listpsdiagcd = ds_main_permanentsymplist_permanentsymp.getColumn(ds_main_permanentsymplist_permanentsymp.rowposition, "psdiagcd")
  382. if(utlf_isNull(listpsdiagcd) && listpsdiagcd == "" && listpsdiagcd ==" ")
  383. {
  384. }
  385. else
  386. {
  387. ds_main_permanentsymplist_permanentsymp.updatecontrol = false;
  388. ds_main_permanentsymplist_permanentsymp.setRowType(row, "u");
  389. ds_main_permanentsymplist_permanentsymp.updatecontrol = true;
  390. }
  391. }
  392. ds_main_permanentsymplist_permanentsymp.setColumn(row, "psdiagcd", psdiagcd);
  393. ds_main_permanentsymplist_permanentsymp.setColumn(row, "psdiagnm", psdiagnm);
  394. ds_main_permanentsymplist_permanentsymp.setColumn(row, "cdtypeflag", cdtypeflag);
  395. ds_main_permanentsymplist_permanentsymp.setColumn(row, "mngtscop", mngtscop);
  396. ds_main_permanentsymplist_permanentsymp.setColumn(row, "apptrgt", apptrgt);
  397. ds_main_permanentsymplist_permanentsymp.setColumn(row, "mngtcnts", mngtcnts);
  398. ds_main_permanentsymplist_permanentsymp.setColumn(row, "comments", comments);
  399. var updategrid = grdf_getGridUpdateData(grd_permanentsymp);
  400. grdf_setStatusColumn(updategrid, "status");
  401. ds_send_setlist_setinfo.copyData(updategrid, true);
  402. var oParam = {};
  403. oParam.id = "TXPMC06701";
  404. oParam.service = "patinfomngtapp.IndusPat";
  405. oParam.method = "reqSetPermanentSympInfo";
  406. oParam.inds = "setinfo=ds_send_setlist_setinfo";
  407. oParam.outds = "";
  408. oParam.async = false;
  409. oParam.callback = "cf_TXPMC06701";
  410. tranf_submit(oParam);
  411. if(arErrorCode.pop("TXPMC06701") > -1)
  412. {
  413. fInitialize();
  414. ds_send_perref.setColumn(0, "psdiagcd",psdiagcd);
  415. var oParam = {};
  416. oParam.id = "TRPMC06701";
  417. oParam.service = "patinfomngtapp.IndusPat";
  418. oParam.method = "reqGetPermanentSympInfo";
  419. oParam.inds = "req=ds_send_perref";
  420. oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
  421. oParam.async = false;
  422. //oParam.callback = "cf_TRPMC06701";
  423. tranf_submit(oParam);
  424. }
  425. //grd_permanentsymp.selectionMode = "";
  426. }
  427. function cf_TXPMC06701(sSvcId, nErrorCode, sErrorMsg)
  428. {
  429. arErrorCode.push(sSvcId, nErrorCode);
  430. }
  431. function fBaseSet()
  432. {
  433. ds_main_uptpermanentsymp.setColumn(0, "psdiagcd","");
  434. ds_main_uptpermanentsymp.setColumn(0, "psdiagnm","-");
  435. ds_main_uptpermanentsymp.setColumn(0, "cdtypeflag","M");
  436. ds_main_uptpermanentsymp.setColumn(0, "mngtscop","-");
  437. ds_main_uptpermanentsymp.setColumn(0, "apptrgt","-");
  438. ds_main_uptpermanentsymp.setColumn(0, "mngtcnts","-");
  439. ds_main_uptpermanentsymp.setColumn(0, "comments","-");
  440. }
  441. function btn_insicmt2_onclick(obj:Button, e:ClickEventInfo)
  442. {
  443. ipt_psdiagcd.enable = true;
  444. //초기 row값
  445. var orgrow = ds_main_permanentsymplist_permanentsymp.insertRow(ds_main_permanentsymplist_permanentsymp.rowposition+1);
  446. ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
  447. ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
  448. ipt_psdiagcd.setFocus();
  449. fBaseSet();
  450. }
  451. function btn_insicmt1_onclick(obj:Button, e:ClickEventInfo)
  452. {
  453. ipt_psdiagcd.enable = true;
  454. //초기 row값
  455. var orgrow = ds_main_permanentsymplist_permanentsymp.addRow();
  456. ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
  457. ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
  458. ipt_psdiagcd.setFocus();
  459. fBaseSet();
  460. }
  461. function btn_delicmt_onclick(obj:Button, e:ClickEventInfo)
  462. {
  463. if(sysf_messageBox("선택하신 후유증상진단코드를 ","Q001") == 6)
  464. {
  465. var cur_row = ds_main_permanentsymplist_permanentsymp.rowposition;
  466. if(ds_main_permanentsymplist_permanentsymp.getRowType(cur_row) != 2)
  467. {
  468. ds_main_permanentsymplist_permanentsymp.updatecontrol = false;
  469. ds_main_permanentsymplist_permanentsymp.setRowType(cur_row, "d");
  470. ds_main_permanentsymplist_permanentsymp.updatecontrol = true;
  471. var updategrid = grdf_getGridUpdateData(grd_permanentsymp);
  472. grdf_setStatusColumn(updategrid, "status");
  473. ds_send_setlist_setinfo.copyData(updategrid, true);
  474. var oParam = {};
  475. oParam.id = "TXPMC06701";
  476. oParam.service = "patinfomngtapp.IndusPat";
  477. oParam.method = "reqSetPermanentSympInfo";
  478. oParam.inds = "setinfo=ds_send_setlist_setinfo";
  479. oParam.outds = "";
  480. oParam.async = false;
  481. oParam.callback = "cf_TXPMC06701";
  482. tranf_submit(oParam);
  483. if(arErrorCode.pop("TXPMC06701") > -1)
  484. {
  485. var oParam = {};
  486. oParam.id = "TRPMC06701";
  487. oParam.service = "patinfomngtapp.IndusPat";
  488. oParam.method = "reqGetPermanentSympInfo";
  489. oParam.inds = "req=ds_send_perref";
  490. oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
  491. oParam.async = false;
  492. //oParam.callback = "cf_TRPMC06701";
  493. tranf_submit(oParam);
  494. }
  495. }
  496. else
  497. {
  498. ds_main_permanentsymplist_permanentsymp.deleteRow(cur_row);
  499. }
  500. }
  501. else
  502. {
  503. sysf_messageBox("삭제작업을 취소 ","I001")
  504. }
  505. }
  506. function btn_excelicmt_onclick(obj:Button, e:ClickEventInfo)
  507. {
  508. grdf_exportExcel(grd_pmchicmt, "excel", "grd_pmchicmt", true, "", 'user', true);
  509. }
  510. function grd_permanentsymp_oncellclick(obj:Grid, e:GridClickEventInfo)
  511. {
  512. ipt_psdiagcd.enable = false;
  513. //초기 row값
  514. var orgrow = ds_main_permanentsymplist_permanentsymp.rowposition;
  515. ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
  516. ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
  517. ds_main_uptpermanentsymp.setColumn(0, "psdiagcd", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "psdiagcd"));
  518. ds_main_uptpermanentsymp.setColumn(0, "psdiagnm", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "psdiagnm"));
  519. ds_main_uptpermanentsymp.setColumn(0, "cdtypeflag", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "cdtypeflag"));
  520. ds_main_uptpermanentsymp.setColumn(0, "mngtscop", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "mngtscop"));
  521. ds_main_uptpermanentsymp.setColumn(0, "apptrgt", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "apptrgt"));
  522. ds_main_uptpermanentsymp.setColumn(0, "mngtcnts", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "mngtcnts"));
  523. ds_main_uptpermanentsymp.setColumn(0, "comments", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "comments"));
  524. }
  525. function button1_onclick(obj:Button, e:ClickEventInfo)
  526. {
  527. fInitialize();
  528. }
  529. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  530. {
  531. if ( frmf_checkOpener() )
  532. {
  533. // row = grd_vippatappinfo.row;
  534. // opener.model.makeNode("/root/main/popupendflag");
  535. // opener.model.setValue("/root/main/popupendflag", "cancel");
  536. //
  537. // if( row > 0 )
  538. // {
  539. // if( getNodesetCount("/root/main/vippatbaseinfo/vippatbaseinfolist") > 0 )
  540. // {
  541. // opener.model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", grd_vippatappinfo.getNode( row ));
  542. // opener.model.makeNode("/root/main/popupendflag");
  543. // opener.model.setValue("/root/main/popupendflag", "ok");
  544. // }
  545. // }
  546. // else
  547. // {
  548. // sysf_messageBox("행이 정확히 선택되지", "E007");
  549. // }
  550. }
  551. else
  552. {
  553. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  554. }
  555. this.close();
  556. }
  557. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  558. {
  559. var receiveref = eval("opener.ds_main");
  560. opener.dsf_makeValue(receiveref, "popupendflag", "string", "cancel", 0);
  561. this.close();
  562. }
  563. ]]></Script>
  564. </Form>
  565. </FDL>