SMMNR04200_Item그룹관리.xfdl 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR04200" position="absolute 0 0 1201 742" titletext="간호기록항목Group관리" oninit="SMMNR04200_oninit" onload="SMMNR04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 614 26 1192 86" align="align:center top;" id="grp_sea" class="div_SA2" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 506 20 562 42" id="btn_search" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  11. <Static text="조회조건 :" position="absolute 7 9 99 26" id="caption2" class="search_name" anchor="default"/>
  12. <Radio position="absolute 101 8 516 28" id="rdo_cathflag" class="radio_search" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" rowcount="-1" onitemchanged="grp_sea_rdo_cathflag_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">%</Col>
  21. <Col id="datacolumn">전체</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">A</Col>
  25. <Col id="datacolumn">임상관찰</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">B</Col>
  29. <Col id="datacolumn">Intake</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">C</Col>
  33. <Col id="datacolumn">Output</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">D</Col>
  37. <Col id="datacolumn">삽관</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">G</Col>
  41. <Col id="datacolumn">기구</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">E</Col>
  45. <Col id="datacolumn">간호수행</Col>
  46. </Row>
  47. </Rows>
  48. </Dataset>
  49. </Radio>
  50. <Combo position="absolute 101 32 213 51" id="cmb_itemflag" class="combo_default" innerdataset="@ds_main_clsinfo_clslist" datacolumn="itemnm" codecolumn="itemcd" anchor="default"/>
  51. <Static text="분 류 :" position="absolute 7 33 93 50" id="caption5" class="search_name" anchor="default"/>
  52. <Static text="직접검색 :" position="absolute 251 33 337 50" id="caption1" class="search_name" anchor="default"/>
  53. <Edit position="absolute 346 32 464 51" id="ipt_itemnm" class="input_default" anchor="default" style="border:1 solid #3366ffff ;" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_itemnm_onkeyup"/>
  54. </Layout>
  55. </Layouts>
  56. </Div>
  57. <Grid position="absolute 300 60 605 729" id="grd_srchdtlitem" binddataset="ds_main_itemdtlinfo_itemdtllist" autoenter="select" anchor="left top bottom" autosizingtype="row" cellsizingtype="both" cellsizebandtype="allband" selecttype="multirow" extendsizetype="both">
  58. <Formats>
  59. <Format id="default">
  60. <Columns>
  61. <Column size="26"/>
  62. <Column size="85"/>
  63. <Column size="44"/>
  64. <Column size="137"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="70"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell/>
  81. <Cell col="1" text="분류"/>
  82. <Cell col="2" text="상태"/>
  83. <Cell col="3" text="Item명"/>
  84. <Cell col="4" text="trgtflag"/>
  85. <Cell col="5" text="instcd"/>
  86. <Cell col="6" text="setno"/>
  87. <Cell col="7" text="instcd"/>
  88. <Cell col="8" text="setno"/>
  89. <Cell col="9" text="itemcd"/>
  90. <Cell col="10" text="supcd"/>
  91. <Cell col="11" text="삭제"/>
  92. <Cell col="12" text="Item코드"/>
  93. </Band>
  94. <Band id="body">
  95. <Cell celltype="head" expr="currow+1"/>
  96. <Cell col="1" style="align:left middle;" text="bind:supnm" suppress="1" suppressalign="middle,over"/>
  97. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label" enable="false"/>
  98. <Cell col="3" edittype="none" style="align:left middle;padding:3 3 3 3;" text="bind:itemnm" wordwrap="word" autosizerow="limitmin"/>
  99. <Cell col="4" text="bind:trgtflag"/>
  100. <Cell col="5" text="bind:instcd"/>
  101. <Cell col="6" text="bind:setno"/>
  102. <Cell col="7" text="bind:itemcd"/>
  103. <Cell col="8" text="bind:supcd"/>
  104. <Cell col="9" text="bind:recflag"/>
  105. <Cell col="10" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  106. <Cell col="11" text="bind:supsetno"/>
  107. <Cell col="12" text="bind:itemcd"/>
  108. </Band>
  109. </Format>
  110. </Formats>
  111. </Grid>
  112. <Static text="Group별 Item 등록" position="absolute 301 39 440 60" id="caption10" class="tit_2"/>
  113. <Static text="Item Group" position="absolute 0 35 98 56" id="caption3" class="tit_2"/>
  114. <Grid position="absolute 613 110 1191 729" id="grd_srchitem" binddataset="ds_main_itemsrch_itemlist" autoenter="select" cellsizingtype="col" anchor="all" cantreestatuschange="grd_srchitem_cantreestatuschange" treeusecheckbox="false" treeuseimage="false" oncellclick="grd_srchitem_oncellclick" oncloseup="grd_srchitem_oncloseup" tooltiptype="hover">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="21"/>
  119. <Column size="32"/>
  120. <Column size="0"/>
  121. <Column size="240"/>
  122. <Column size="0"/>
  123. <Column size="35"/>
  124. <Column size="35"/>
  125. <Column size="35"/>
  126. <Column size="37"/>
  127. <Column size="35"/>
  128. <Column size="35"/>
  129. <Column size="35"/>
  130. <Column size="35"/>
  131. <Column size="35"/>
  132. <Column size="35"/>
  133. <Column size="0"/>
  134. <Column size="70"/>
  135. </Columns>
  136. <Rows>
  137. <Row size="30" band="head"/>
  138. <Row size="24"/>
  139. </Rows>
  140. <Band id="head">
  141. <Cell/>
  142. <Cell col="1" text="선택"/>
  143. <Cell col="2" text="Item코드"/>
  144. <Cell col="3" text="Item명"/>
  145. <Cell col="4" text="상위항목코드"/>
  146. <Cell col="5" text="임상관찰" wordwrap="word"/>
  147. <Cell col="6" text="처방"/>
  148. <Cell col="7" text="Intake" wordwrap="word"/>
  149. <Cell col="8" text="Output" wordwrap="word"/>
  150. <Cell col="9" text="삽입"/>
  151. <Cell col="10" text="처방"/>
  152. <Cell col="11" text="기구"/>
  153. <Cell col="12" text="처방"/>
  154. <Cell col="13" text="간호수행" wordwrap="word"/>
  155. <Cell col="14" text="처방"/>
  156. <Cell col="15" text="depth"/>
  157. <Cell col="16" text="Item코드"/>
  158. </Band>
  159. <Band id="body">
  160. <Cell celltype="head" expr="currow+1"/>
  161. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
  162. <Cell col="2" text="bind:itemcd"/>
  163. <Cell col="3" displaytype="tree" edittype="tree" text="bind:itemnm" treestartlevel="1" treelevel="bind:depth" tooltiptext="bind:itemnm"/>
  164. <Cell col="4" text="bind:supcd"/>
  165. <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:clincobs" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  166. <Cell col="6" text="bind:clincobsprcpyn"/>
  167. <Cell col="7" displaytype="combo" style="align:center middle;" text="bind:intake" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  168. <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:output" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  169. <Cell col="9" displaytype="combo" edittype="none" style="align:center middle;" text="bind:catheter" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  170. <Cell col="10" text="bind:catheterprcpyn"/>
  171. <Cell col="11" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:instru" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm"/>
  172. <Cell col="12" text="bind:instruprcpyn"/>
  173. <Cell col="13" displaytype="combo" edittype="none" style="align:center;" text="bind:careexec" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  174. <Cell col="14" text="bind:careexecprcpyn"/>
  175. <Cell col="15" text="bind:depth"/>
  176. <Cell col="16" text="bind:itemcd"/>
  177. </Band>
  178. </Format>
  179. </Formats>
  180. </Grid>
  181. <Button position="absolute 474 36 538 55" id="button1" class="btn2" text="list 저장" onclick="button1_onclick"/>
  182. <Button position="absolute 541 36 605 55" id="btn_deleteitemset" class="btn2" text="Item삭제" onclick="btn_deleteitemset_onclick"/>
  183. <Button position="absolute 615 89 679 108" id="btn_moveitemset" class="btn2" text="선택이동" onclick="btn_moveitemset_onclick"/>
  184. <Button position="absolute 1062 89 1126 108" id="btn_selectall" class="btn2" text="전체선택" anchor="top right" onclick="btn_selectall_onclick"/>
  185. <Button position="absolute 1127 89 1191 108" id="btn_selectcancle" class="btn2" text="선택취소" anchor="top right" onclick="btn_selectcancle_onclick"/>
  186. <Shape position="absolute 0 109 293 115" linetype="horizontal" id="line2" class="line_10"/>
  187. <Shape position="absolute 0 102 293 108" linetype="horizontal" id="line3" class="line_3"/>
  188. <Shape position="absolute 301 55 605 61" linetype="horizontal" id="line1" class="line_10"/>
  189. <Grid position="absolute 0 114 293 733" id="grd_itemgruplist" binddataset="ds_main_itemgrupinfo_itemgruplist" autoenter="select" autofittype="none" cellsizingtype="both" anchor="left top bottom" oncellclick="grd_itemgruplist_oncellclick" autosizingtype="row" extendsizetype="row">
  190. <Formats>
  191. <Format id="default">
  192. <Columns>
  193. <Column size="26"/>
  194. <Column size="40"/>
  195. <Column size="223"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="70"/>
  200. <Column size="70"/>
  201. </Columns>
  202. <Rows>
  203. <Row size="24" band="head"/>
  204. <Row size="24"/>
  205. </Rows>
  206. <Band id="head">
  207. <Cell/>
  208. <Cell col="1" text="구분"/>
  209. <Cell col="2" text="그룹명"/>
  210. <Cell col="3" text="setno"/>
  211. <Cell col="4" text="setrefseq"/>
  212. <Cell col="5" text="orddeptcd"/>
  213. <Cell col="6" text="Item명"/>
  214. <Cell col="7" text="Item코드"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell celltype="head" expr="currow+1"/>
  218. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:trgtflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_trgtflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
  219. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:setnm" wordwrap="word" autosizerow="limitmin"/>
  220. <Cell col="3" text="bind:setno"/>
  221. <Cell col="4" text="bind:setrefseq"/>
  222. <Cell col="5" text="bind:orddeptcd"/>
  223. <Cell col="6" style="align:left middle;" text="bind:itemnm"/>
  224. <Cell col="7" style="align:left middle;" text="bind:itemnmcd"/>
  225. </Band>
  226. </Format>
  227. </Formats>
  228. </Grid>
  229. <Button position="absolute 118 35 160 54" id="btn_modifyitem" class="btn2" visible="false" text="수정" onclick="btn_modifyitem_onclick"/>
  230. <Edit position="absolute 79 83 291 102" id="ipt_setnm" class="input_default" enable="false" autoskip="true" autoselect="true" onkeyup="ipt_setnm_onkeyup"/>
  231. <Static text="Group명" position="absolute 0 83 78 103" id="caption4" class="cell_1"/>
  232. <Button position="absolute 162 35 204 54" id="btn_additem" class="btn2" text="추가" onclick="btn_additem_onclick"/>
  233. <Button position="absolute 206 35 248 54" id="btn_deleteitem" class="btn2" text="삭제" onclick="btn_deleteitem_onclick"/>
  234. <Button position="absolute 250 35 292 54" id="btn_saveitem" class="btn2" enable="false" text="저장" onclick="btn_saveitem_onclick"/>
  235. <Static text="Group 구분" position="absolute 0 60 78 80" id="caption7" class="cell_1"/>
  236. <Radio position="absolute 80 60 230 80" id="rdo_trgtflag" enable="false" columncount="2" innerdataset="@ds_init_trgtflaglist_item" datacolumn="nm" codecolumn="cd"/>
  237. <Shape position="absolute 0 79 293 85" linetype="horizontal" id="line4" class="line_3"/>
  238. <Shape position="absolute 0 56 293 62" linetype="horizontal" id="line5" class="line_3"/>
  239. <Static id="caption6" text="Item Group 관리" class="tit_1" position="absolute 0 0 188 25"/>
  240. </Layout>
  241. </Layouts>
  242. <Objects>
  243. <Dataset id="ds_main_iptbox" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="setnm" type="STRING" size="256"/>
  246. <Column id="setcd" type="STRING" size="256"/>
  247. <Column id="trgtflag" type="STRING" size="256"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row>
  251. <Col id="setnm"/>
  252. <Col id="setcd"/>
  253. <Col id="trgtflag"/>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_main_itemgrupinfo_itemgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="setnm" type="STRING" size="256" sumtext="SET명"/>
  260. <Column id="setno" type="STRING" size="256" sumtext="SET번호"/>
  261. <Column id="setrefseq" type="STRING" size="256" sumtext="조회순서"/>
  262. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  263. <Column id="trgtflag" type="STRING" size="256" sumtext="대상구분"/>
  264. <Column id="itemnm" type="STRING" size="256"/>
  265. <Column id="itemnmcd" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. </Dataset>
  268. <Dataset id="ds_main_itemdtlinfo_itemdtllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  269. <ColumnInfo>
  270. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  271. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  272. <Column id="supnm" type="STRING" size="256" sumtext="상위아이템명"/>
  273. <Column id="itemnm" type="STRING" size="256" sumtext="아이템명"/>
  274. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  275. <Column id="setno" type="INT" size="256" sumtext="SET번호 "/>
  276. <Column id="itemcd" type="STRING" size="256" sumtext="아이템코드"/>
  277. <Column id="supcd" type="STRING" size="256" sumtext="상위아이템코드"/>
  278. <Column id="trgtflag" type="STRING" size="256" sumtext="trgtflag"/>
  279. <Column id="mainrecflag" type="STRING" size="256" sumtext="recflag"/>
  280. <Column id="supsetno" type="STRING" size="256" sumtext="상위아이템set 번호"/>
  281. </ColumnInfo>
  282. </Dataset>
  283. <Dataset id="ds_init_trgtflaglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  284. <ColumnInfo>
  285. <Column id="cd" type="STRING" size="256"/>
  286. <Column id="nm" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row>
  290. <Col id="cd">G</Col>
  291. <Col id="nm">합계</Col>
  292. </Row>
  293. <Row>
  294. <Col id="cd">H</Col>
  295. <Col id="nm">SET</Col>
  296. </Row>
  297. </Rows>
  298. </Dataset>
  299. <Dataset id="ds_cmb_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="label" type="STRING" size="256"/>
  302. <Column id="value" type="STRING" size="256"/>
  303. </ColumnInfo>
  304. <Rows>
  305. <Row>
  306. <Col id="label">-</Col>
  307. <Col id="value">-</Col>
  308. </Row>
  309. <Row>
  310. <Col id="label">신규</Col>
  311. <Col id="value">I</Col>
  312. </Row>
  313. <Row>
  314. <Col id="label">삭제</Col>
  315. <Col id="value">D</Col>
  316. </Row>
  317. </Rows>
  318. </Dataset>
  319. <Dataset id="ds_main_cond_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  320. <ColumnInfo>
  321. <Column id="recflag" type="STRING" size="256"/>
  322. <Column id="itemnm" type="STRING" size="256"/>
  323. <Column id="clscd" type="STRING" size="256"/>
  324. <Column id="srchflag" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. <Rows>
  327. <Row>
  328. <Col id="recflag">%</Col>
  329. <Col id="itemnm"/>
  330. <Col id="clscd"/>
  331. <Col id="srchflag"/>
  332. </Row>
  333. </Rows>
  334. </Dataset>
  335. <Dataset id="ds_main_clsinfo_clslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  336. <ColumnInfo>
  337. <Column id="itemcd" type="STRING" size="256" sumtext="Item코드"/>
  338. <Column id="itemnm" type="STRING" size="256" sumtext="Item명"/>
  339. </ColumnInfo>
  340. </Dataset>
  341. <Dataset id="ds_main_itemsrch_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_itemsrch_itemlist_oncolumnchanged">
  342. <ColumnInfo>
  343. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  344. <Column id="itemcd" type="STRING" size="256" sumtext="Item코드"/>
  345. <Column id="itemnm" type="STRING" size="256" sumtext="Item명"/>
  346. <Column id="supcd" type="STRING" size="256" sumtext="상위항목코드"/>
  347. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  348. <Column id="elmtdefineyn" type="STRING" size="256" sumtext="사용여부"/>
  349. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  350. <Column id="clincobs" type="STRING" size="256" sumtext="임상관찰"/>
  351. <Column id="clincobsprcpyn" type="STRING" size="256" sumtext="임상관찰 처방"/>
  352. <Column id="intake" type="STRING" size="256" sumtext="intake"/>
  353. <Column id="output" type="STRING" size="256" sumtext="output"/>
  354. <Column id="catheter" type="STRING" size="256" sumtext="catheter"/>
  355. <Column id="catheterprcpyn" type="STRING" size="256" sumtext="기타처방"/>
  356. <Column id="instru" type="STRING" size="256" sumtext="기구 "/>
  357. <Column id="instruprcpyn" type="STRING" size="256" sumtext="기구 처방"/>
  358. <Column id="careexec" type="STRING" size="256" sumtext="간호수행"/>
  359. <Column id="careexecprcpyn" type="STRING" size="256" sumtext="간호수행처방"/>
  360. <Column id="supsetno" type="STRING" size="256" sumtext="상위그룹set"/>
  361. </ColumnInfo>
  362. </Dataset>
  363. <Dataset id="ds_init_reccharflaglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  364. <ColumnInfo>
  365. <Column id="cd" type="STRING" size="256"/>
  366. <Column id="nm" type="STRING" size="256"/>
  367. </ColumnInfo>
  368. <Rows>
  369. <Row>
  370. <Col id="cd">A</Col>
  371. <Col id="nm">주체</Col>
  372. </Row>
  373. <Row>
  374. <Col id="cd">B</Col>
  375. <Col id="nm">값입력</Col>
  376. </Row>
  377. <Row>
  378. <Col id="cd">C</Col>
  379. <Col id="nm">값조회</Col>
  380. </Row>
  381. </Rows>
  382. </Dataset>
  383. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  384. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  385. <Dataset id="ds_main_group" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  386. <ColumnInfo>
  387. <Column id="setno" type="STRING" size="256"/>
  388. <Column id="setnm" type="STRING" size="256"/>
  389. <Column id="instcd" type="STRING" size="256"/>
  390. </ColumnInfo>
  391. <Rows>
  392. <Row>
  393. <Col id="setno"/>
  394. <Col id="setnm"/>
  395. </Row>
  396. </Rows>
  397. </Dataset>
  398. <Dataset id="ds_send_griddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  399. <Dataset id="ds_hidden_itemgrupinfo_itemgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  400. <ColumnInfo>
  401. <Column id="status" type="STRING" size="256"/>
  402. <Column id="orddeptcd" type="STRING" size="256"/>
  403. <Column id="setnm" type="STRING" size="256"/>
  404. <Column id="setno" type="STRING" size="256"/>
  405. <Column id="setrefseq" type="STRING" size="256"/>
  406. <Column id="trgtflag" type="STRING" size="256"/>
  407. <Column id="setcd" type="STRING" size="256"/>
  408. </ColumnInfo>
  409. <Rows>
  410. <Row>
  411. <Col id="status"/>
  412. <Col id="orddeptcd"/>
  413. <Col id="setnm"/>
  414. <Col id="setno"/>
  415. <Col id="setrefseq"/>
  416. <Col id="trgtflag"/>
  417. <Col id="setcd"/>
  418. </Row>
  419. </Rows>
  420. </Dataset>
  421. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  422. </Objects>
  423. <Bind>
  424. <BindItem id="item0" compid="rdo_trgtflag" propid="value" datasetid="ds_main_iptbox" columnid="trgtflag"/>
  425. <BindItem id="item1" compid="ipt_setnm" propid="value" datasetid="ds_main_iptbox" columnid="setnm"/>
  426. <BindItem id="item2" compid="grp_sea.rdo_cathflag" propid="value" datasetid="ds_main_cond_item" columnid="recflag"/>
  427. <BindItem id="item3" compid="grp_sea.cmb_itemflag" propid="value" datasetid="ds_main_cond_item" columnid="clscd"/>
  428. <BindItem id="item4" compid="grp_sea.ipt_itemnm" propid="value" datasetid="ds_main_cond_item" columnid="itemnm"/>
  429. </Bind>
  430. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  431. * System Name :
  432. * Job Name :
  433. * Creator :
  434. * Make Date : 2015-11-13
  435. * Description :
  436. *---------------------------------------------------------------------------------------
  437. * Modify Date Modifier Modify Description
  438. *---------------------------------------------------------------------------------------
  439. * 2015-11-13 Live Converter TF->XP
  440. *
  441. *---------------------------------------------------------------------------------------
  442. ****************************************************************************************/
  443. include "com_commonxp::comm_main.xjs";
  444. var arErrorCode = new HashArray();
  445. var treedepthcol = 15;
  446. var treetargetcol = 3;
  447. var xCONDITEMTLIST = ds_main_cond_item;
  448. var xItemGrupList = ds_main_itemgrupinfo_itemgruplist;
  449. var xItemDtlInfo = ds_main_itemdtlinfo_itemdtllist;
  450. var xItemDtlList = ds_main_itemdtlinfo_itemdtllist;
  451. var xItemGrupList_HIDDEN = ds_hidden_itemgrupinfo_itemgruplist;
  452. var xIPTBOX = ds_main_iptbox;
  453. var xGroup = ds_main_group;
  454. var xItemSrchPath = ds_main_itemsrch_itemlist;
  455. function SMMNR04200_oninit(obj:Form, e:InitEventInfo)
  456. {
  457. frmf_initForm(obj);
  458. }
  459. function SMMNR04200_onload(obj:Form, e:LoadEventInfo)
  460. {
  461. grdf_initGrid(grd_itemgruplist);
  462. grdf_initGrid(grd_srchdtlitem);
  463. grdf_initGrid(grd_srchitem);
  464. fInitialize();
  465. }
  466. function fInitialize()
  467. {
  468. dsf_makeValue(ds_send_reqdata, "flag", "string","combo");
  469. var oParam = {};
  470. oParam.id = "TRMNR04204";
  471. oParam.service = "carerecapp.RecItemMngt";
  472. oParam.method = "reqGetClsItemList";
  473. oParam.inds = "req=ds_send_reqdata";
  474. oParam.outds = "ds_main_clsinfo_clslist=clslist";
  475. oParam.async = false;
  476. //oParam.callback = "cf_TRMNR04204";
  477. tranf_submit(oParam);
  478. ds_main_cond_item.setColumn(0, "clscd","%");
  479. fGetItemList();
  480. fGetItemGroupList();
  481. xItemDtlInfo.clearData();
  482. }
  483. function fGetItemList()
  484. {
  485. dsf_makeValue(ds_send, "recflag","string", xCONDITEMTLIST.getColumn(0, "recflag"));
  486. dsf_makeValue(ds_send, "itemnm", "string", xCONDITEMTLIST.getColumn(0, "itemnm"));
  487. dsf_makeValue(ds_send, "clscd", "string", xCONDITEMTLIST.getColumn(0, "clscd"));
  488. dsf_makeValue(ds_send, "srchflag", "string", xCONDITEMTLIST.getColumn(0, "srchflag"));
  489. var oParam = {};
  490. oParam.id = "TRMNR04203";
  491. oParam.service = "carerecapp.RecItemMngt";
  492. oParam.method = "reqGetItemSrcList";
  493. oParam.inds = "iteminfo=ds_send";
  494. oParam.outds = "ds_main_itemsrch_itemlist=itemlist";
  495. oParam.async = false;
  496. oParam.callback = "cf_TRMNR04203";
  497. tranf_submit(oParam);
  498. if(arErrorCode.pop("TRMNR04203") > -1)
  499. {
  500. grd_srchitem.treeinitstatus = "expand,null";
  501. }
  502. }
  503. function cf_TRMNR04203(sSvcId, nErrorCode, sErrorMsg)
  504. {
  505. arErrorCode.push(sSvcId, nErrorCode);
  506. if(nErrorCode < 0) return;
  507. }
  508. function grd_srchitem_cantreestatuschange(obj:Grid, e:GridTreeStatusEventInfo)
  509. {
  510. obj.userdata = 1;
  511. }
  512. function fGetItemGroupList()
  513. {
  514. var oParam = {};
  515. oParam.id = "TRMNR04201";
  516. oParam.service = "carerecapp.RecItemMngt";
  517. oParam.method = "reqGetTotalGroupList";
  518. oParam.inds = "iteminfo=ds_send_reqdata";
  519. oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
  520. oParam.async = false;
  521. //oParam.callback = "cf_TRMNR04201";
  522. tranf_submit(oParam);
  523. }
  524. function ipt_setnm_onkeyup(obj:Edit, e:KeyEventInfo)
  525. {
  526. if(e.keycode == 13)
  527. {
  528. obj.updateToDataset();
  529. btn_saveitem.click();
  530. }
  531. }
  532. function grd_itemgruplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  533. {
  534. fGetItemDtlList();
  535. }
  536. function fGetItemDtlList()
  537. {
  538. var iRow = ds_main_itemgrupinfo_itemgruplist.rowposition;
  539. if(iRow < 0) return;
  540. var setno = xItemGrupList.getColumn(iRow, "setno");
  541. var setnm = xItemGrupList.getColumn(iRow, "setnm");
  542. var trgtflag = xItemGrupList.getColumn(iRow, "trgtflag");
  543. ipt_setnm.enable = false;
  544. rdo_trgtflag.enable = false;
  545. btn_saveitem.enable = false;
  546. xIPTBOX.setColumn(0, "setnm", setnm);
  547. xIPTBOX.setColumn(0, "trgtflag", trgtflag);
  548. xGroup.setColumn(0, "setno", setno);
  549. xGroup.setColumn(0, "setnm", setnm);
  550. dsf_makeValue(ds_send_reqdata, "setno", "int", setno);
  551. dsf_makeValue(ds_send_reqdata, "trgtflag", "string", trgtflag);
  552. var oParam = {};
  553. oParam.id = "TRMNR04202";
  554. oParam.service = "carerecapp.RecItemMngt";
  555. oParam.method = "reqGetItemDtlInfo";
  556. oParam.inds = "itemdtlinfo=ds_send_reqdata";
  557. oParam.outds = "ds_main_itemdtlinfo_itemdtllist=itemdtllist";
  558. oParam.async = false;
  559. oParam.callback = "cf_TRMNR04202";
  560. tranf_submit(oParam);
  561. if(arErrorCode.pop("TRMNR04202") > -1)
  562. {
  563. ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
  564. dsf_setFixVal(ds_main_itemdtlinfo_itemdtllist, "check:false,status:-");
  565. ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
  566. }
  567. }
  568. function cf_TRMNR04202(sSvcId, nErrorCode, sErrorMsg)
  569. {
  570. arErrorCode.push(sSvcId, nErrorCode);
  571. if(nErrorCode < 0) return;
  572. }
  573. function grp_sea_rdo_cathflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  574. {
  575. fGetItemList();
  576. }
  577. function grp_sea_ipt_itemnm_onkeyup(obj:Edit, e:KeyEventInfo)
  578. {
  579. if(e.keycode == 13)
  580. {
  581. obj.updateToDataset();
  582. grp_sea.btn_search.setFocus();
  583. fGetItemList();
  584. }
  585. }
  586. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. fGetItemList();
  589. }
  590. function ds_main_itemsrch_itemlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  591. {
  592. if(e.columnid == "check")
  593. {
  594. obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  595. }
  596. }
  597. function btn_moveitemset_onclick(obj:Button, e:ClickEventInfo)
  598. {
  599. fSelectItemMove();
  600. }
  601. function fSelectItemMove()
  602. {
  603. if(ipt_setnm.enable == true)
  604. {
  605. var sChekCnt = 0;
  606. var sItemLevl = 0;
  607. var sItemcd = "";
  608. var sRow = "";
  609. var sItemnm = "";
  610. var sMainCnt = 0;
  611. var sExistsSetNo="";
  612. var sTrgtFlag = xIPTBOX.getColumn(0, "trgtflag");
  613. for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
  614. {
  615. if(xItemSrchPath.getColumn(itemrow, "check") == "true")
  616. {
  617. sChekCnt ++;
  618. sItemLevl = eval(xItemSrchPath.getColumn(itemrow, "depth"));
  619. sItemcd = xItemSrchPath.getColumn(itemrow, "itemcd");
  620. sRow = itemrow;
  621. sItemnm = xItemSrchPath.getColumn(itemrow, "itemnm");
  622. sExistsSetNo = xItemGrupList.lookupExpr("setnm == '"+sItemnm+"' && trgtflag == '"+ sTrgtFlag +"'", "setno");
  623. }
  624. }
  625. if(sChekCnt > 1)
  626. {
  627. sysf_messageBox("그룹 매핑 항목을 하나만","C002");
  628. return;
  629. }
  630. if(sItemLevl == 1)
  631. {
  632. sysf_messageBox("분류는 그룹 매핑을","E001");
  633. return;
  634. }
  635. if( utlf_isNull(sTrgtFlag) )
  636. {
  637. sysf_messageBox("그룹의 구분을 선택","C001");
  638. rdo_trgtflag.setFocus();
  639. return;
  640. }
  641. if ( !utlf_isNull(sExistsSetNo))
  642. {
  643. sysf_messageBox("이미 존재하는 셋입니다.","I007");//확인하십시오
  644. return;
  645. }
  646. if(ds_main_itemsrch_itemlist.getColumn(sRow, "clincobsprcpyn") == "Y" || ds_main_itemsrch_itemlist.getColumn(sRow, "catheterprcpyn") == "Y" ||
  647. ds_main_itemsrch_itemlist.getColumn(sRow, "careexecprcpyn") == "Y")
  648. {
  649. sysf_messageBox("처방이 존재하는 항목은 매핑을","E001");
  650. return;
  651. }
  652. if(ds_main_itemsrch_itemlist.getColumn(sRow, "clincobs") == "B" )
  653. {
  654. sMainCnt++;
  655. }
  656. if(ds_main_itemsrch_itemlist.getColumn(sRow, "intake") == "B" )
  657. {
  658. sMainCnt++;
  659. }
  660. if(ds_main_itemsrch_itemlist.getColumn(sRow, "output") == "B" )
  661. {
  662. sMainCnt++;
  663. }
  664. if(ds_main_itemsrch_itemlist.getColumn(sRow, "catheter") == "B" )
  665. {
  666. sMainCnt++;
  667. }
  668. if(ds_main_itemsrch_itemlist.getColumn(sRow, "careexec") == "B" )
  669. {
  670. sMainCnt++;
  671. }
  672. if(ds_main_itemsrch_itemlist.getColumn(sRow, "instru") == "B" )
  673. {
  674. sMainCnt++;
  675. }
  676. if( rdo_trgtflag.value == "G" && sMainCnt > 0)
  677. {
  678. sysf_messageBox("하나의 기록지에 주체 연계 설정만 되어야 합니다.","E");
  679. return;
  680. }
  681. ds_main_iptbox.setColumn(0, "setnm", sItemnm );
  682. ds_main_iptbox.setColumn(0, "setcd", sItemcd );
  683. xItemSrchPath.setColumn(sRow, "check", "false");
  684. }
  685. else
  686. {
  687. var setno = xGroup.getColumn(0, "setno");
  688. var setnm = xGroup.getColumn(0, "setnm");
  689. var sItemLevl = 0;
  690. var itemdtlrow = 0;
  691. var sItemcd = "";
  692. var supcd = "";
  693. var sChkYN = false; // 항목 체크 여부
  694. var sInsYN = false; // 실제 신규항목 존재여부
  695. if(utlf_isNull(setnm))
  696. {
  697. sysf_messageBox("SET종류를 먼저","C002");
  698. return;
  699. }
  700. for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
  701. {
  702. if(xItemSrchPath.getColumn(itemrow, "check") == "true")
  703. {
  704. sChkYN = true;
  705. sItemLevl = eval(xItemSrchPath.getColumn(itemrow, "depth"));
  706. sItemcd = xItemSrchPath.getColumn(itemrow, "itemcd");
  707. supcd = xItemSrchPath.getColumn(itemrow, "supcd");
  708. xItemSrchPath.setColumn(itemrow, "check", "false");
  709. if(sItemLevl == 1) continue;
  710. if(ds_main_itemdtlinfo_itemdtllist.rowcount > 0 && !utlf_isNull(xItemDtlList.lookup("itemcd", sItemcd, "itemcd"))) continue;
  711. itemdtlrow = ds_main_itemdtlinfo_itemdtllist.addRow();
  712. xItemDtlList.setColumn(itemdtlrow , "status", "I");
  713. xItemDtlList.setColumn(itemdtlrow , "setno", setno);
  714. xItemDtlList.setColumn(itemdtlrow , "instcd", xGroup.getColumn(0, "instcd"));
  715. xItemDtlList.setColumn(itemdtlrow , "itemcd", sItemcd);
  716. xItemDtlList.setColumn(itemdtlrow , "itemnm", xItemSrchPath.getColumn(itemrow, "itemnm"));
  717. xItemDtlList.setColumn(itemdtlrow , "supcd", supcd);
  718. xItemDtlList.setColumn(itemdtlrow , "supnm", xItemSrchPath.lookup("itemcd", supcd, "itemnm"));
  719. xItemDtlList.setColumn(itemdtlrow , "trgtflag", xIPTBOX.getColumn(0, "trgtflag"));
  720. sInsYN = true;
  721. }
  722. }
  723. if(!sChkYN)
  724. {
  725. sysf_messageBox("등록할 항목을 먼저","C002");
  726. return;
  727. }
  728. if(sChkYN == true && sInsYN == false)
  729. {
  730. sysf_messageBox("이미 항목 등록이","I002");
  731. return;
  732. }
  733. }
  734. }
  735. function btn_selectall_onclick(obj:Button, e:ClickEventInfo)
  736. {
  737. for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
  738. {
  739. xItemSrchPath.setColumn(itemrow, "check","true");
  740. }
  741. //setTree(grd_srchitem,13,3,false);
  742. }
  743. function btn_selectcancle_onclick(obj:Button, e:ClickEventInfo)
  744. {
  745. for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
  746. {
  747. xItemSrchPath.setColumn(itemrow, "check","");
  748. }
  749. //setTree(grd_srchitem,13,3,false);
  750. }
  751. function button1_onclick(obj:Button, e:ClickEventInfo)
  752. {
  753. fSendItemInfo();
  754. }
  755. function fSendItemInfo()
  756. {
  757. var sChkYN = false;
  758. for(var itemrow = 0; itemrow < ds_main_itemdtlinfo_itemdtllist.rowcount; itemrow++)
  759. {
  760. if(ds_main_itemdtlinfo_itemdtllist.getColumn(itemrow, "status") != "-")
  761. {
  762. sChkYN = true;
  763. }
  764. }
  765. if(!sChkYN)
  766. {
  767. sysf_messageBox("저장할 내역이","I004");
  768. return;
  769. }
  770. var update = grdf_getGridUpdateData(grd_srchdtlitem)
  771. ds_send_griddata.copyData(update, true);
  772. var oParam = {};
  773. oParam.id = "TXMNR04202";
  774. oParam.service = "carerecapp.RecItemMngt";
  775. oParam.method = "reqExeItemDtlInfo";
  776. oParam.inds = "griddata=ds_send_griddata";
  777. oParam.outds = "ds_main_itemdtlinfo_itemdtllist=itemdtllist";
  778. oParam.async = false;
  779. oParam.callback = "cf_TRMNR04202";
  780. tranf_submit(oParam);
  781. if(arErrorCode.pop("TXMNR04202") > -1)
  782. {
  783. ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
  784. dsf_setFixVal(ds_main_itemdtlinfo_itemdtllist, "check:false,status:-");
  785. ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
  786. }
  787. }
  788. function btn_deleteitemset_onclick(obj:Button, e:ClickEventInfo)
  789. {
  790. fDelDetGridRow();
  791. }
  792. function fDelDetGridRow()
  793. {
  794. var sFrstRow = "";
  795. var sLastRow = "";
  796. var selectRows = grdf_getSelectedRows(grd_srchdtlitem);
  797. if(selectRows[0] == ds_main_itemdtlinfo_itemdtllist.rowposition)
  798. {
  799. sFrstRow = ds_main_itemdtlinfo_itemdtllist.rowposition;
  800. sLastRow = parseInt(sFrstRow + selectRows.length);
  801. }
  802. else
  803. {
  804. sFrstRow = selectRows[0]
  805. sLastRow = parseInt(selectRows[0] + selectRows.length);
  806. }
  807. var sChkYN = false;
  808. for(var i = sFrstRow; i < sLastRow; i++)
  809. {
  810. if(ds_main_itemdtlinfo_itemdtllist.getColumn(i, "status") == "-" || ds_main_itemdtlinfo_itemdtllist.getColumn(i, "status") == "I")
  811. {
  812. ds_main_itemdtlinfo_itemdtllist.setColumn(i, "status", "D");
  813. ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
  814. ds_main_itemdtlinfo_itemdtllist.setRowType(i, "d");
  815. ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
  816. sChkYN = true;
  817. }
  818. else
  819. {
  820. ds_main_itemdtlinfo_itemdtllist.setColumn(i, "status", "-");
  821. ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
  822. ds_main_itemdtlinfo_itemdtllist.setRowType(i, "");
  823. ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
  824. sChkYN = true;
  825. }
  826. }
  827. if(!sChkYN)
  828. {
  829. sysf_messageBox("선택된 항목이","I004");
  830. return;
  831. }
  832. }
  833. function btn_modifyitem_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. fUpdtItemGroup();
  836. }
  837. function fUpdtItemGroup()
  838. {
  839. var rowPos = ds_main_itemgrupinfo_itemgruplist.rowposition;
  840. var setno = xItemGrupList.getColumn(rowPos , "setno");
  841. var trgtflag = xItemGrupList.getColumn(rowPos , "trgtflag");
  842. ipt_setnm.enable = true;
  843. rdo_trgtflag.enable = true;
  844. btn_saveitem.enable = true;
  845. if(rowPos > -1)
  846. {
  847. xItemGrupList_HIDDEN.setColumn(0, "status", "U");
  848. xItemGrupList_HIDDEN.setColumn(0, "setno", setno);
  849. xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
  850. ipt_setnm.setFocus();
  851. }
  852. else
  853. {
  854. sysf_messageBox("SET을 선택한 후 수정해 주십시오.\n수정","E001");
  855. }
  856. }
  857. function btn_additem_onclick(obj:Button, e:ClickEventInfo)
  858. {
  859. fAddItemGroup();
  860. }
  861. function fAddItemGroup()
  862. {
  863. xIPTBOX.setColumn(0, "setnm", "");
  864. ipt_setnm.enable = true;
  865. rdo_trgtflag.enable = true;
  866. btn_saveitem.enable = true;
  867. ds_main_iptbox.setColumn(0, "setnm", "");
  868. xItemGrupList_HIDDEN.setColumn(0, "status", "I");
  869. xItemGrupList_HIDDEN.setColumn(0, "setrefseq", 0);
  870. xItemGrupList_HIDDEN.setColumn(0, "trgtflag", "");
  871. xGroup.setColumn(0, "setno","");
  872. xGroup.setColumn(0, "setnm","");
  873. ipt_setnm.setFocus();
  874. xItemDtlInfo.clearData();
  875. }
  876. function btn_deleteitem_onclick(obj:Button, e:ClickEventInfo)
  877. {
  878. fDelItemGroup();
  879. }
  880. function fDelItemGroup()
  881. {
  882. var rowPos = ds_main_itemgrupinfo_itemgruplist.rowposition;
  883. var setno = xItemGrupList.getColumn(rowPos , "setno");
  884. var trgtflag = xItemGrupList.getColumn(rowPos , "trgtflag");
  885. xItemGrupList_HIDDEN.setColumn(0, "status", "D");
  886. xItemGrupList_HIDDEN.setColumn(0, "setno", setno);
  887. xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
  888. ds_main_iptbox.setColumn(0, "setnm", "");
  889. ds_send_savedata.copyData(xItemGrupList_HIDDEN);
  890. var oParam = {};
  891. oParam.id = "TXMNR04201";
  892. oParam.service = "carerecapp.RecItemMngt";
  893. oParam.method = "reqExeNewItemSetInfo";
  894. oParam.inds = "itemset=ds_send_savedata";
  895. oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
  896. oParam.async = false;
  897. oParam.callback = "cf_TXMNR04201";
  898. tranf_submit(oParam);
  899. if(arErrorCode.pop("TXMNR04201") > -1)
  900. {
  901. xGroup.setColumn(0, "setno","");
  902. xGroup.setColumn(0, "setnm","");
  903. }
  904. xItemDtlInfo.clearData();
  905. }
  906. function cf_TXMNR04201(sSvcId, nErrorCode, sErrorMsg)
  907. {
  908. arErrorCode.push(sSvcId, nErrorCode);
  909. if(nErrorCode < 0) return;
  910. }
  911. function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
  912. {
  913. fSaveItemGroup();
  914. }
  915. function fSaveItemGroup()
  916. {
  917. var setnm = ds_main_iptbox.getColumn(0, "setnm");
  918. var setcd = ds_main_iptbox.getColumn(0, "setcd");
  919. var trgtflag = ds_main_iptbox.getColumn(0, "trgtflag");
  920. if(utlf_isNull(setnm))
  921. {
  922. sysf_messageBox("등록할 그룹을 선택 또는 입력","C001");
  923. return;
  924. }
  925. if(utlf_isNull(setcd))
  926. {
  927. for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
  928. {
  929. if(setnm == ds_main_itemsrch_itemlist.getColumn(itemrow, "itemnm"))
  930. {
  931. if(!utlf_isNull(setnm))
  932. {
  933. setcd = ds_main_itemsrch_itemlist.getColumn(itemrow, "itemcd");
  934. depth = ds_main_itemsrch_itemlist.getColumn(itemrow, "depth");
  935. if(depth != "1")
  936. {
  937. itemrow = ds_main_itemsrch_itemlist.rowcount;
  938. }
  939. }
  940. }
  941. }
  942. }
  943. if(utlf_isNull(setcd))
  944. {
  945. sysf_messageBox("그룹에 매핑할 항목을 찾을 수","I004");
  946. return;
  947. }
  948. var status = xItemGrupList_HIDDEN.getColumn(0, "status");
  949. var setno = xItemGrupList_HIDDEN.getColumn(0, "setno");
  950. var currow = 0;
  951. xItemGrupList_HIDDEN.setColumn(0, "setnm", setnm);
  952. xItemGrupList_HIDDEN.setColumn(0, "setcd", setcd);
  953. xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
  954. if( utlf_isNull(xItemGrupList_HIDDEN.getColumn(0, "trgtflag")))
  955. {
  956. sysf_messageBox("그룹의 구분을 선택","C001");
  957. rdo_trgtflag.setFocus();
  958. return;
  959. }
  960. ds_send_savedata.copyData(xItemGrupList_HIDDEN);
  961. var oParam = {};
  962. oParam.id = "TXMNR04201";
  963. oParam.service = "carerecapp.RecItemMngt";
  964. oParam.method = "reqExeNewItemSetInfo";
  965. oParam.inds = "itemset=ds_send_savedata";
  966. oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
  967. oParam.async = false;
  968. //oParam.callback = "cf_TXMNR04201";
  969. tranf_submit(oParam);
  970. ipt_setnm.enable = false;
  971. rdo_trgtflag.enable = false;
  972. btn_saveitem.enable = false;
  973. for(var i = 0; i < ds_main_itemgrupinfo_itemgruplist.rowcount; i++)
  974. {
  975. if(status == "U")
  976. {
  977. if(setno == xItemGrupList.getColumn(i, "setno"))
  978. {
  979. currow = i;
  980. }
  981. }
  982. }
  983. if(currow > -1) ds_main_itemgrupinfo_itemgruplist.rowposition = currow;
  984. }
  985. function grd_srchitem_oncellclick(obj:Grid, e:GridClickEventInfo)
  986. {
  987. fClickedGridRow("Item");
  988. }
  989. function fClickedGridRow(pFlag)
  990. {
  991. var iCol = 0;
  992. var iRow = 0;
  993. var sCheck = "";
  994. switch(pFlag)
  995. {
  996. case "Item" :
  997. iRow = ds_main_itemsrch_itemlist.rowposition;
  998. iCol = grd_srchitem.currentcol;
  999. if(iRow < 0) return;
  1000. var sDepth = eval(xItemSrchPath.getColumn(iRow, "depth"));
  1001. var iDepth = 0;
  1002. sCheck = xItemSrchPath.getColumn(iRow, "check");
  1003. var sItemCD = "";
  1004. var sStatus = "";
  1005. if(sDepth == 1)
  1006. {
  1007. sItemCD = xItemSrchPath.getColumn(iRow, "itemcd");
  1008. if(iCol == 3)
  1009. {
  1010. for(var i = iRow; i < ds_main_itemsrch_itemlist.rowcount; i++)
  1011. {
  1012. iDepth = eval(xItemSrchPath.getColumn(i, "depth"));
  1013. if(iRow!= i && iDepth==1) break;
  1014. if(grd_srchitem.userdata == 1)
  1015. {
  1016. grd_srchitem.userdata = 0;
  1017. return;
  1018. }
  1019. var row = grd_srchitem.getTreeRow(iRow);
  1020. if(grd_srchitem.getTreeStatus(row) == 0)
  1021. {
  1022. grd_srchitem.setTreeStatus(row, true);
  1023. }
  1024. else if(grd_srchitem.getTreeStatus(row) == 1)
  1025. {
  1026. grd_srchitem.setTreeStatus(row, false);
  1027. }
  1028. }
  1029. }
  1030. else
  1031. {
  1032. //if() return;
  1033. if(iCol == 1)
  1034. {
  1035. sStatus = sCheck;
  1036. }
  1037. else
  1038. {
  1039. if( sCheck == "true")
  1040. {
  1041. sStatus = "false";
  1042. }
  1043. else
  1044. {
  1045. sStatus = "true";
  1046. }
  1047. xItemSrchPath.setColumn(iRow, "check",sStatus);
  1048. }
  1049. for(var i = iRow; i < ds_main_itemsrch_itemlist.rowcount; i++)
  1050. {
  1051. if(xItemSrchPath.getColumn(i, "supcd") == sItemCD)
  1052. {
  1053. xItemSrchPath.setColumn(i, "check",sStatus);
  1054. }
  1055. }
  1056. }
  1057. }
  1058. else
  1059. {
  1060. if(iCol == 1) return;
  1061. if( sCheck == "true")
  1062. {
  1063. xItemSrchPath.setColumn(iRow, "check","false");
  1064. }
  1065. else
  1066. {
  1067. xItemSrchPath.setColumn(iRow, "check","true");
  1068. }
  1069. }
  1070. break;
  1071. }
  1072. }
  1073. function grd_srchitem_oncloseup(obj:Grid, e:GridEditEventInfo)
  1074. {
  1075. obj.showEditor(false);
  1076. }
  1077. ]]></Script>
  1078. </Form>
  1079. </FDL>