SMMNR02400_중증도및위험사정분류도구관리.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR02400" position="absolute 0 0 1201 794" titletext="중증도 및 위험 사정 분류도구 관리" oninit="SMMNR02400_oninit" onload="SMMNR02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="중증도 및 위험사정 분류도구 관리" class="tit_1" position="absolute 0 0 320 25"/>
  8. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="종 류 :" class="search_name" position="absolute 11 11 82 28"/>
  12. <Radio id="rdo_recflag" taborder="1" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 85 11 335 30" onitemchanged="grp_sea_rdo_recflag_onitemchanged">
  13. <Dataset id="innerdataset">
  14. <ColumnInfo>
  15. <Column id="codecolumn"/>
  16. <Column id="datacolumn"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="codecolumn">1</Col>
  21. <Col id="datacolumn">중증도</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">2</Col>
  25. <Col id="datacolumn">낙상 위험사정</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">3</Col>
  29. <Col id="datacolumn">욕창 위험사정</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Radio>
  34. <Static id="caption3" text="분 류 :" class="search_name" position="absolute 361 11 433 28"/>
  35. <Combo id="cmb_clsflag1" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 427 10 536 29">
  36. <Dataset id="innerdataset">
  37. <ColumnInfo>
  38. <Column id="codecolumn"/>
  39. <Column id="datacolumn"/>
  40. </ColumnInfo>
  41. <Rows>
  42. <Row>
  43. <Col id="codecolumn">1</Col>
  44. <Col id="datacolumn">일반병동</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">2</Col>
  48. <Col id="datacolumn">신생아 ICU</Col>
  49. </Row>
  50. <Row>
  51. <Col id="codecolumn">3</Col>
  52. <Col id="datacolumn">혈액투석</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">4</Col>
  56. <Col id="datacolumn">중환자실</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">5</Col>
  60. <Col id="datacolumn">정신과병동</Col>
  61. </Row>
  62. </Rows>
  63. </Dataset>
  64. </Combo>
  65. <Combo id="cmb_clsflag2" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 427 10 536 29" onitemchanged="grp_sea_cmb_clsflag2_onitemchanged">
  66. <Dataset id="innerdataset">
  67. <ColumnInfo>
  68. <Column id="codecolumn"/>
  69. <Column id="datacolumn"/>
  70. </ColumnInfo>
  71. <Rows>
  72. <Row>
  73. <Col id="codecolumn">1</Col>
  74. <Col id="datacolumn">Humpty Dumpty Scale</Col>
  75. </Row>
  76. <Row>
  77. <Col id="codecolumn">2</Col>
  78. <Col id="datacolumn">Morse Scale</Col>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. </Combo>
  83. <Static id="caption4" text="기 준 일 :" class="search_name" position="absolute 559 11 645 28"/>
  84. <Calendar id="input5" taborder="4" class="input_search" position="absolute 627 10 728 29" autoselect="true" autoskip="true" onchanged="grp_sea_input5_onchanged"/>
  85. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 732 9 738 31" anchor="top right"/>
  86. <Button id="button1" taborder="5" text="조회" class="btn1" position="absolute 740 9 796 31" anchor="top right" onclick="grp_sea_button1_onclick"/>
  87. <Button id="button2" taborder="6" text="1차분류추가" class="btn4" position="absolute 799 9 903 31" anchor="top right" onclick="grp_sea_button2_onclick"/>
  88. <Button id="button7" taborder="7" text="2차분류추가" class="btn4" position="absolute 906 9 1010 31" anchor="top right" onclick="grp_sea_button7_onclick"/>
  89. <Button id="button8" taborder="8" text="펼침" class="btn4" position="absolute 1013 9 1069 31" anchor="top right" onclick="grp_sea_button8_onclick"/>
  90. <Button id="button9" taborder="9" text="닫침" class="btn4" position="absolute 1072 9 1128 31" anchor="top right" onclick="grp_sea_button9_onclick"/>
  91. <Button id="button10" taborder="10" text="저장" class="btn4" position="absolute 1131 9 1187 31" anchor="top right" onclick="grp_sea_button10_onclick"/>
  92. </Layout>
  93. </Layouts>
  94. </Div>
  95. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 78 1195 84" anchor="left top right"/>
  96. <Grid id="grd_detlgrup" taborder="2" binddataset="ds_main_detlgrup_detlgruplist" useinputpanel="false" position="absolute 0 83 1195 791" autoenter="select" autofittype="col" cellsizingtype="both" anchor="all" treeusecheckbox="false" treeuseimage="false" treeinitstatus="expand,all" autosizingtype="row" extendsizetype="row" oncellclick="grd_detlgrup_oncellclick" selecttype="row" cantreestatuschange="grd_detlgrup_cantreestatuschange">
  97. <Formats>
  98. <Format id="default">
  99. <Columns>
  100. <Column size="29"/>
  101. <Column size="0"/>
  102. <Column size="67"/>
  103. <Column size="300"/>
  104. <Column size="292"/>
  105. <Column size="42"/>
  106. <Column size="55"/>
  107. <Column size="55"/>
  108. <Column size="55"/>
  109. <Column size="55"/>
  110. <Column size="62"/>
  111. <Column size="80"/>
  112. <Column size="80"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. </Columns>
  123. <Rows>
  124. <Row size="24" band="head"/>
  125. <Row size="24"/>
  126. </Rows>
  127. <Band id="head">
  128. <Cell/>
  129. <Cell col="1" text="상태"/>
  130. <Cell col="2" text="분류코드"/>
  131. <Cell col="3" text="분류도구명"/>
  132. <Cell col="4" text="설명"/>
  133. <Cell col="5" text="점수"/>
  134. <Cell col="6" text="확인Y/N"/>
  135. <Cell col="7" text="횟수Y/N"/>
  136. <Cell col="8" text="서술Y/N"/>
  137. <Cell col="9" text="필수입력"/>
  138. <Cell col="10" text="정렬순서"/>
  139. <Cell col="11" text="시작일자"/>
  140. <Cell col="12" text="종료일자"/>
  141. <Cell col="13" text="영문이름"/>
  142. <Cell col="14" text="용도설명"/>
  143. <Cell col="15" text="부서코드"/>
  144. <Cell col="16" text="정렬"/>
  145. <Cell col="17" text="상위코드"/>
  146. <Cell col="18" text="종료일자"/>
  147. <Cell col="19" text="depth"/>
  148. <Cell col="20" text="grupflag"/>
  149. <Cell col="21" text="분류구분"/>
  150. </Band>
  151. <Band id="body">
  152. <Cell celltype="head" expr="currow+1"/>
  153. <Cell col="1" text="bind:stat" enable="false"/>
  154. <Cell col="2" text="bind:clstlcd" enable="false"/>
  155. <Cell col="3" displaytype="tree" edittype="expr:getRowType(currow) == 2 ? 'text' : 'tree'" style="padding:3 3 3 3;" text="bind:hngnm" expr="expr:String(hngnm).replace('\r\n', ' ')" wordwrap="word" treestartlevel="1" treelevel="bind:depth" autosizerow="limitmin" enable="false"/>
  156. <Cell col="4" displaytype="text" edittype="text" style="padding:3 3 3 3;" text="bind:desccnts" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  157. <Cell col="5" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center middle;" text="bind:basepnt" editautoselect="true" enable="false"/>
  158. <Cell col="6" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:cnfmyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label" enable="false"/>
  159. <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:timsinptyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
  160. <Cell col="8" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:cmtinptyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
  161. <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:inptchkflag" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
  162. <Cell col="10" displaytype="text" edittype="text" style="align:center middle;" text="bind:sortseq"/>
  163. <Cell col="11" displaytype="date" edittype="date" text="bind:fromdd" editautoselect="true" calendardisplaynulltype="nulltext" enable="false"/>
  164. <Cell col="12" displaytype="date" edittype="date" text="bind:todd" editautoselect="true" calendardisplaynulltype="nulltext"/>
  165. <Cell col="13" text="bind:engnm"/>
  166. <Cell col="14" text="bind:desccnts"/>
  167. <Cell col="15" text="bind:deptcd"/>
  168. <Cell col="16" text="bind:refseq"/>
  169. <Cell col="17" text="bind:supcd"/>
  170. <Cell col="18" text="bind:depth"/>
  171. <Cell col="19" text="bind:grupflag"/>
  172. <Cell col="20" text="bind:clsflag"/>
  173. <Cell col="21" text="bind:recflag"/>
  174. </Band>
  175. </Format>
  176. </Formats>
  177. </Grid>
  178. </Layout>
  179. </Layouts>
  180. <Objects>
  181. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="clsflag" type="STRING" size="256"/>
  184. <Column id="recflag" type="STRING" size="256"/>
  185. <Column id="prestdt" type="STRING" size="256"/>
  186. <Column id="lrggrupcd" type="STRING" size="256"/>
  187. <Column id="todd" type="STRING" size="256"/>
  188. </ColumnInfo>
  189. <Rows>
  190. <Row>
  191. <Col id="clsflag"/>
  192. <Col id="recflag">1</Col>
  193. <Col id="prestdt"/>
  194. </Row>
  195. </Rows>
  196. </Dataset>
  197. <Dataset id="ds_main_detlgrup_detlgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlgrup_detlgruplist_oncolumnchanged">
  198. <ColumnInfo>
  199. <Column id="stat" type="STRING" size="256" sumtext="저장속성"/>
  200. <Column id="clstlcd" type="STRING" size="256" sumtext="그룹코드"/>
  201. <Column id="hngnm" type="STRING" size="256" sumtext="한글명"/>
  202. <Column id="engnm" type="STRING" size="256" sumtext="영문명"/>
  203. <Column id="desccnts" type="STRING" size="256" sumtext="설명내용"/>
  204. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  205. <Column id="refseq" type="STRING" size="256" sumtext="정렬"/>
  206. <Column id="supcd" type="STRING" size="256" sumtext="상위코드"/>
  207. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  208. <Column id="depth" type="STRING" size="256" sumtext="트리순서"/>
  209. <Column id="grupflag" type="STRING" size="256" sumtext="그룹구분"/>
  210. <Column id="clsflag" type="STRING" size="256" sumtext="분류구분"/>
  211. <Column id="recflag" type="STRING" size="256" sumtext="기록구분"/>
  212. <Column id="cnfmyn" type="STRING" size="256" sumtext="확인여부"/>
  213. <Column id="timsinptyn" type="STRING" size="256" sumtext="횟수입력여부"/>
  214. <Column id="cmtinptyn" type="STRING" size="256" sumtext="서술입력여부"/>
  215. <Column id="inptchkflag" type="STRING" size="256" sumtext="필수입력여부"/>
  216. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  217. <Column id="sortseq" type="STRING" size="256" sumtext="정렬순서"/>
  218. <Column id="basepnt" type="STRING" size="256" sumtext="점수"/>
  219. </ColumnInfo>
  220. </Dataset>
  221. <Dataset id="ds_cmb_cnfmyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="label" type="STRING" size="256"/>
  224. <Column id="value" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row>
  228. <Col id="label">Y</Col>
  229. <Col id="value">Y</Col>
  230. </Row>
  231. <Row>
  232. <Col id="label">N</Col>
  233. <Col id="value">N</Col>
  234. </Row>
  235. </Rows>
  236. </Dataset>
  237. <Dataset id="ds_hidden_main_detlgrup_detlgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  238. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  239. <Dataset id="ds_send_detlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  240. </Objects>
  241. <Bind>
  242. <BindItem id="item0" compid="grp_sea.input5" propid="value" datasetid="ds_main_cond" columnid="prestdt"/>
  243. <BindItem id="item1" compid="grp_sea.cmb_clsflag2" propid="value" datasetid="ds_main_cond" columnid="clsflag"/>
  244. <BindItem id="item2" compid="grp_sea.cmb_clsflag1" propid="value" datasetid="ds_main_cond" columnid="clsflag"/>
  245. <BindItem id="item3" compid="grp_sea.rdo_recflag" propid="value" datasetid="ds_main_cond" columnid="recflag"/>
  246. </Bind>
  247. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  248. * System Name :
  249. * Job Name :
  250. * Creator :
  251. * Make Date : 2015-11-13
  252. * Description :
  253. *---------------------------------------------------------------------------------------
  254. * Modify Date Modifier Modify Description
  255. *---------------------------------------------------------------------------------------
  256. * 2015-11-13 Live Converter TF->XP
  257. *
  258. *---------------------------------------------------------------------------------------
  259. ****************************************************************************************/
  260. include "com_commonxp::comm_main.xjs";
  261. include "emr_carerecxp::SerDiag.xjs";
  262. function SMMNR02400_oninit(obj:Form, e:InitEventInfo)
  263. {
  264. frmf_initForm(obj);
  265. }
  266. function SMMNR02400_onload(obj:Form, e:LoadEventInfo)
  267. {
  268. grdf_initGrid(grd_detlgrup);
  269. grdf_setToolTipBind(grd_detlgrup)
  270. grp_sea.rdo_recflag.value = "1";
  271. fShowSearchCombo(grp_sea.rdo_recflag.value, 'grp_sea.caption3', 'grp_sea.cmb_clsflag1', 'grp_sea.cmb_clsflag2');
  272. fSearch();
  273. }
  274. function fSearch()
  275. {
  276. var iRow = ds_main_detlgrup_detlgruplist.rowposition;
  277. var clsflag = ds_main_cond.getColumn(0, "clsflag");
  278. var recflag = ds_main_cond.getColumn(0, "recflag");
  279. var prestdt = ds_main_cond.getColumn(0, "prestdt");
  280. if(utlf_isNull(clsflag) || clsflag == '')
  281. {
  282. clsflag = '1';
  283. }
  284. if(utlf_isNull(recflag) || recflag == '')
  285. {
  286. recflag = '1';
  287. }
  288. if(utlf_isNull(prestdt) || prestdt == '')
  289. {
  290. prestdt = utlf_getCurrentDate();
  291. }
  292. if(recflag == '2')
  293. {
  294. if(clsflag != '1' && clsflag != '2')
  295. {
  296. clsflag = '1';
  297. }
  298. }
  299. else if(recflag == '3')
  300. {
  301. clsflag = '1';
  302. }
  303. dsf_makeValue(ds_main_cond, "clsflag", "String", clsflag);
  304. dsf_makeValue(ds_main_cond, "recflag", "String", recflag);
  305. dsf_makeValue(ds_main_cond, "prestdt", "String", prestdt);
  306. dsf_makeValue(ds_main_cond, "supcd", "String", "00000000");
  307. var oParam = {};
  308. oParam.id = "TRMNR02404";
  309. oParam.service = "carerecapp.AsesRec";
  310. oParam.method = "reqGetDetlGrupList";
  311. oParam.inds = "refCond=ds_main_cond";
  312. oParam.outds = "ds_main_detlgrup_detlgruplist=detlgruplist";
  313. oParam.async = false;
  314. oParam.callback = "cf_TRMNR02404";
  315. tranf_submit(oParam);
  316. ds_main_detlgrup_detlgruplist.rowposition = 0;
  317. }
  318. function cf_TRMNR02404(sSvcId, nErrorCode, sErrorMsg)
  319. {
  320. if(nErrorCode < 0) return;
  321. else
  322. {
  323. ds_hidden_main_detlgrup_detlgruplist.copyData(ds_main_detlgrup_detlgruplist);
  324. }
  325. }
  326. function grd_detlgrup_oncellclick(obj:Grid, e:GridClickEventInfo)
  327. {
  328. var iRow = ds_main_detlgrup_detlgruplist.rowposition;
  329. if(grd_detlgrup.userdata == 1)
  330. {
  331. grd_detlgrup.userdata = 0;
  332. return;
  333. }
  334. var row = grd_detlgrup.getTreeRow(iRow);
  335. if(grd_detlgrup.getTreeStatus(row) == 0)
  336. {
  337. grd_detlgrup.setTreeStatus(row, true);
  338. }
  339. else if(grd_detlgrup.getTreeStatus(row) == 1)
  340. {
  341. grd_detlgrup.setTreeStatus(row, false);
  342. }
  343. grd_detlgrup.userdata = 0;
  344. countTree = 0;
  345. }
  346. function grp_sea_rdo_recflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  347. {
  348. fShowSearchCombo(obj.value, 'grp_sea.caption3', 'grp_sea.cmb_clsflag1', 'grp_sea.cmb_clsflag2');
  349. fSearch();
  350. }
  351. function grp_sea_cmb_clsflag2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  352. {
  353. fSearch();
  354. }
  355. function grp_sea_input5_onchanged(obj:Calendar, e:ChangeEventInfo)
  356. {
  357. fSearch();
  358. }
  359. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  360. {
  361. fSearch();
  362. }
  363. function grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  364. {
  365. fAddRowLevelOne();
  366. }
  367. function fAddRowLevelOne()
  368. {
  369. fSetAddRowValues('1');
  370. }
  371. function fSetAddRowValues(levelFlag)
  372. {
  373. var clsflag, recflag, depth, clstlcd ;
  374. var curRow = ds_main_detlgrup_detlgruplist.rowposition;
  375. if(levelFlag == '1')
  376. {
  377. clsflag = ds_main_cond.getColumn(0, "clsflag");
  378. recflag = ds_main_cond.getColumn(0, "recflag");
  379. depth = '1';
  380. clstlcd = '00000000';
  381. curRow = ds_main_detlgrup_detlgruplist.addRow();
  382. }
  383. else if(levelFlag == '2')
  384. {
  385. clstlcd = ds_main_detlgrup_detlgruplist.getColumn(curRow, "clstlcd");
  386. clsflag = ds_main_detlgrup_detlgruplist.getColumn(curRow, "clsflag");
  387. recflag = ds_main_detlgrup_detlgruplist.getColumn(curRow, "recflag");
  388. depth = Number(ds_main_detlgrup_detlgruplist.getColumn(curRow, "depth")) + 1;
  389. curRow = ds_main_detlgrup_detlgruplist.insertRow(curRow+1);
  390. }
  391. ds_main_detlgrup_detlgruplist.setColumn(curRow , "hngnm", "");
  392. ds_main_detlgrup_detlgruplist.setColumn(curRow , "stat", "i");
  393. ds_main_detlgrup_detlgruplist.setColumn(curRow , "basepnt", "0");
  394. ds_main_detlgrup_detlgruplist.setColumn(curRow , "cnfmyn", "Y");
  395. ds_main_detlgrup_detlgruplist.setColumn(curRow , "timsinptyn", "N");
  396. ds_main_detlgrup_detlgruplist.setColumn(curRow , "cmtinptyn", "Y");
  397. ds_main_detlgrup_detlgruplist.setColumn(curRow , "inptchkflag", "Y");
  398. ds_main_detlgrup_detlgruplist.setColumn(curRow , "sortseq", "0");
  399. ds_main_detlgrup_detlgruplist.setColumn(curRow , "fromdd", utlf_getCurrentDate());
  400. ds_main_detlgrup_detlgruplist.setColumn(curRow , "todd", "99991231");
  401. ds_main_detlgrup_detlgruplist.setColumn(curRow , "recflag", recflag);
  402. ds_main_detlgrup_detlgruplist.setColumn(curRow , "clsflag", clsflag);
  403. ds_main_detlgrup_detlgruplist.setColumn(curRow , "supcd", clstlcd);
  404. ds_main_detlgrup_detlgruplist.setColumn(curRow , "depth", depth);
  405. return curRow;
  406. }
  407. function ds_main_detlgrup_detlgruplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  408. {
  409. var curRow = e.row;
  410. if(obj.getColumn(curRow, "stat") != "i")
  411. {
  412. obj.setColumn(curRow , "stat", "u");
  413. }
  414. }
  415. function grp_sea_button7_onclick(obj:Button, e:ClickEventInfo)
  416. {
  417. fAddRowLevelTwo();
  418. }
  419. function fAddRowLevelTwo()
  420. {
  421. var iRow = ds_main_detlgrup_detlgruplist.rowposition;
  422. var supcd = ds_main_detlgrup_detlgruplist.getColumn(iRow, "supcd");
  423. var clstlcd = ds_main_detlgrup_detlgruplist.getColumn(iRow, "clstlcd");
  424. if(utlf_isNull(clstlcd))
  425. {
  426. clstlcd = "";
  427. }
  428. if(iRow < 0 || supcd != "00000000" || (supcd == '00000000' && utlf_isNull(clstlcd)))
  429. {
  430. sysf_messageBox("1차 분류항목을 선택하지 않아 2차분류를 추가", "E001");
  431. return;
  432. }
  433. var curRow = fSetAddRowValues('2');
  434. }
  435. function grp_sea_button8_onclick(obj:Button, e:ClickEventInfo)
  436. {
  437. fOpenGroup();
  438. }
  439. function fOpenGroup()
  440. {
  441. grd_detlgrup.treeinitstatus = "expand,all";
  442. }
  443. function grp_sea_button9_onclick(obj:Button, e:ClickEventInfo)
  444. {
  445. grd_detlgrup.treeinitstatus = "collapse,all";
  446. }
  447. function grp_sea_button10_onclick(obj:Button, e:ClickEventInfo)
  448. {
  449. fSave();
  450. }
  451. function fIsValid()
  452. {
  453. var saveyn = 0 ;
  454. var sRowCnt = ds_main_detlgrup_detlgruplist.rowcount;
  455. if(sRowCnt < 0)
  456. {
  457. return false;
  458. }
  459. var fromdd, todd;
  460. for(var i = 0; i < sRowCnt; i++)
  461. {
  462. fromdd = parseInt(ds_main_detlgrup_detlgruplist.getColumn(i, "fromdd"));
  463. todd = parseInt(ds_main_detlgrup_detlgruplist.getColumn(i, "todd"));
  464. if(utlf_isNull(ds_main_detlgrup_detlgruplist.getColumn(i, "hngnm")))
  465. {
  466. sysf_messageBox(parseInt(i+1)+ "번째의 분류도구명을","C001");
  467. return false;
  468. }
  469. if(fromdd > todd)
  470. {
  471. sysf_messageBox(parseInt(i+1) + "번째의 시작일자를 종료일자보다 이후날짜로 입력","E001");
  472. return false;
  473. }
  474. if(ds_main_detlgrup_detlgruplist.getColumn(i, "stat") != "-")
  475. {
  476. saveyn = 1 ;
  477. }
  478. }
  479. if(saveyn <= 0 )
  480. {
  481. return false;
  482. }
  483. return true;
  484. }
  485. function fSave()
  486. {
  487. if(fIsValid())
  488. {
  489. var update = grdf_getGridUpdateData(grd_detlgrup, "i")
  490. ds_send_detlgrup.copyData(update);
  491. dsf_makeValue(ds_send, "lrggrupcd", "string" , ds_main_cond.getColumn(0, "lrggrupcd"));
  492. dsf_makeValue(ds_send, "clsflag", "string" , ds_main_cond.getColumn(0, "clsflag"));
  493. dsf_makeValue(ds_send, "recflag", "string" , ds_main_cond.getColumn(0, "recflag"));
  494. dsf_makeValue(ds_send, "todd2", "string" , ds_main_cond.getColumn(0, "todd"));
  495. var oParam = {};
  496. oParam.id = "TXMNR02402";
  497. oParam.service = "carerecapp.AsesRec";
  498. oParam.method = "reqExeDetlGrupInfo";
  499. oParam.inds = "detlgrup=ds_main_detlgrup_detlgruplist";
  500. oParam.outds = "";
  501. oParam.async = false;
  502. oParam.callback = "cf_TXMNR02402";
  503. tranf_submit(oParam);
  504. ds_main_detlgrup_detlgruplist.rowposition = 0;
  505. }
  506. }
  507. function cf_TXMNR02402(sSvcId, nErrorCode, sErrorMsg)
  508. {
  509. if(nErrorCode < 0) return;
  510. else
  511. {
  512. ds_hidden_main_detlgrup_detlgruplist.copyData(ds_main_detlgrup_detlgruplist);
  513. fSearch();
  514. }
  515. }
  516. function grd_detlgrup_cantreestatuschange(obj:Grid, e:GridTreeStatusEventInfo)
  517. {
  518. obj.userdata = 1;
  519. }
  520. ]]></Script>
  521. </Form>
  522. </FDL>