SMADC03100_NST추구관리대상자검색.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADC03100" position="absolute 0 0 1187 721" titletext="NST추구관리대상자검색" oninit="SMADC03100_oninit" onload="SMADC03100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="12" style="align:center top;" class="div_SA" position="absolute 0 25 1185 85" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1100 8 1106 53" anchor="top right"/>
  11. <Combo id="combo10" taborder="1" innerdataset="@ds_init_ward" codecolumn="deptcd" datacolumn="deptnm" class="combo_search" position="absolute 694 33 824 54" columncount="2" anchor="default"/>
  12. <Static id="caption5" text="병 동 :" class="search_name" position="absolute 612 36 690 53" anchor="default"/>
  13. <Radio id="radio2" taborder="2" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 419 10 572 30" anchor="default">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn"/>
  17. <Column id="datacolumn"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn"/>
  22. <Col id="datacolumn">전체</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">I</Col>
  26. <Col id="datacolumn">입원</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">O</Col>
  30. <Col id="datacolumn">외래</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Static id="caption7" text="구 분 :" class="search_name" position="absolute 337 13 414 30" anchor="default"/>
  36. <Combo id="combo1" taborder="3" innerdataset="@ds_init_deptlist" codecolumn="deptcd" datacolumn="deptnm" class="combo_search" position="absolute 694 10 821 31" anchor="default"/>
  37. <Button id="btn_sea" taborder="4" text="조회" class="btn1" position="absolute 1115 18 1171 40" onclick="grp_sea_btn_sea_onclick" anchor="top right"/>
  38. <Static id="caption9" text="등 록 번 호 :" class="search_name" position="absolute 868 13 961 30" anchor="default"/>
  39. <Edit id="input1" taborder="5" class="input_search" position="absolute 970 10 1059 31" anchor="default" autoselect="true" onkeydown="grp_sea_input1_onkeydown"/>
  40. <Static id="caption10" text="의 뢰 과 :" class="search_name" position="absolute 612 13 694 30" anchor="default"/>
  41. <Static id="caption2" text="조회구간 :" class="search_name" position="absolute 12 13 83 30" anchor="default"/>
  42. <Calendar id="ipt_srchdd1" taborder="6" class="input_search" position="absolute 95 10 189 31" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  43. <Calendar id="ipt_srchdd2" taborder="7" class="input_search" position="absolute 209 10 303 31" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  44. <Static id="caption13" text="~" position="absolute 193 11 203 31" anchor="default"/>
  45. <Static id="caption1" text="의뢰영역 :" class="search_name" position="absolute 337 37 419 54" anchor="default"/>
  46. <Radio id="rdo_nutrflag" taborder="8" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 419 33 575 54" anchor="default">
  47. <Dataset id="innerdataset">
  48. <ColumnInfo>
  49. <Column id="codecolumn"/>
  50. <Column id="datacolumn"/>
  51. </ColumnInfo>
  52. <Rows>
  53. <Row>
  54. <Col id="codecolumn">A</Col>
  55. <Col id="datacolumn">전체</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">E</Col>
  59. <Col id="datacolumn">EN</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">P</Col>
  63. <Col id="datacolumn">PN</Col>
  64. </Row>
  65. </Rows>
  66. </Dataset>
  67. </Radio>
  68. <MaskEdit id="input2" taborder="9" mask="#,###" class="input_search" position="absolute 970 32 1008 53" anchor="default" autoselect="true"/>
  69. <Static id="caption3" text="회신후 일수 :" class="search_name" position="absolute 868 36 964 53" anchor="default"/>
  70. <MaskEdit id="input3" taborder="10" mask="#,###" class="input_search" position="absolute 1020 32 1058 53" anchor="default" autoselect="true"/>
  71. <Static id="caption4" text="~" position="absolute 1008 33 1023 53" anchor="default"/>
  72. <CheckBox id="checkbox1" taborder="11" position="absolute 209 37 309 52" text="퇴원환자포함" truevalue="Y" anchor="default"/>
  73. </Layout>
  74. </Layouts>
  75. </Div>
  76. <Static id="caption12" text="NST추구관리대상자검색" class="tit_1" position="absolute 0 0 180 25"/>
  77. <Grid id="grd_nstmngt" taborder="13" binddataset="ds_main_nstcntrllist" useinputpanel="false" position="absolute 0 119 1185 688" oncelldblclick="grd_nstmngt_oncelldblclick" anchor="all" extendsizetype="row" cellsizingtype="both">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="0" band="left"/>
  82. <Column size="25" band="left"/>
  83. <Column size="83"/>
  84. <Column size="70"/>
  85. <Column size="64"/>
  86. <Column size="100"/>
  87. <Column size="87"/>
  88. <Column size="73"/>
  89. <Column size="40"/>
  90. <Column size="103"/>
  91. <Column size="100"/>
  92. <Column size="100"/>
  93. <Column size="100"/>
  94. <Column size="100"/>
  95. <Column size="100"/>
  96. <Column size="100"/>
  97. <Column size="208"/>
  98. <Column size="169"/>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. <Column size="100"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. </Columns>
  115. <Rows>
  116. <Row size="24" band="head"/>
  117. <Row size="24"/>
  118. </Rows>
  119. <Band id="head">
  120. <Cell/>
  121. <Cell col="1"/>
  122. <Cell col="2" text="상태"/>
  123. <Cell col="3" text="EN/PN"/>
  124. <Cell col="4" text="병실/외래"/>
  125. <Cell col="5" text="진료과"/>
  126. <Cell col="6" text="등록번호"/>
  127. <Cell col="7" text="환자명"/>
  128. <Cell col="8" text="S/A"/>
  129. <Cell col="9" text="주치의/의뢰인"/>
  130. <Cell col="10" text="의뢰일"/>
  131. <Cell col="11" text="회신일"/>
  132. <Cell col="12" text="전번회신후 일수"/>
  133. <Cell col="13" text="최근회신일"/>
  134. <Cell col="14" text="최종처방일"/>
  135. <Cell col="15" text="처방코드"/>
  136. <Cell col="16" text="비고"/>
  137. <Cell col="17" text="의뢰사유"/>
  138. <Cell col="18" text="진료/입원일"/>
  139. <Cell col="19" text="퇴원일"/>
  140. <Cell col="20" text="퇴원예고/퇴원"/>
  141. <Cell col="21" text="cnstkind"/>
  142. <Cell col="22" text="cnstseqno"/>
  143. <Cell col="23" text="formrecseq"/>
  144. <Cell col="24" text="cretno"/>
  145. <Cell col="25" text="prcpgenrflag"/>
  146. <Cell col="26" text="cnststat"/>
  147. <Cell col="27" text="formcd"/>
  148. <Cell col="28" text="rgstseqno"/>
  149. <Cell col="29" text="cnstcnts8"/>
  150. <Cell col="30" text="cnstcnts9"/>
  151. <Cell col="31" text="cnstcnts10"/>
  152. <Cell col="32" text="cnstcnts11"/>
  153. </Band>
  154. <Band id="body">
  155. <Cell celltype="head"/>
  156. <Cell col="1" celltype="head" text="expr:currow+1"/>
  157. <Cell col="2" style="align:left;background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:cnststatnm"/>
  158. <Cell col="3" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:epgubun"/>
  159. <Cell col="4" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:roomcd"/>
  160. <Cell col="5" style="align:left top;padding:4 2 0 2;background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:orddeptnm" wordwrap="char"/>
  161. <Cell col="6" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:pid"/>
  162. <Cell col="7" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:hngnm"/>
  163. <Cell col="8" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:sna"/>
  164. <Cell col="9" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:orddrnm"/>
  165. <Cell col="10" displaytype="expr:utlf_isNull(firstreqdd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:firstreqdd"/>
  166. <Cell col="11" displaytype="expr:utlf_isNull(firstrepldd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:firstrepldd"/>
  167. <Cell col="12" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:replddilsu"/>
  168. <Cell col="13" displaytype="expr:utlf_isNull(repldd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:repldd"/>
  169. <Cell col="14" displaytype="expr:utlf_isNull(prcpdd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:prcpdd"/>
  170. <Cell col="15" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:prcpcd"/>
  171. <Cell col="16" displaytype="text" edittype="text" style="align:left top;padding:4 2 0 2;background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:cnstcnts20" wordwrap="char"/>
  172. <Cell col="17" style="align:left top;padding:4 2 0 2;background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:firstsau" wordwrap="char"/>
  173. <Cell col="18" displaytype="expr:utlf_isNull(orddd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:orddd"/>
  174. <Cell col="19" displaytype="expr:utlf_isNull(dschdd) ? &quot;normal&quot; :&quot;date&quot;" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:dschdd"/>
  175. <Cell col="20" style="background:EXPR(dschyn=='Y'?'#ffe79d':'');background2:EXPR(dschyn=='Y'?'#ffe79d':'');" text="bind:dschyn"/>
  176. <Cell col="21" text="bind:cnstkind"/>
  177. <Cell col="22" text="bind:cnstseqno"/>
  178. <Cell col="23" text="bind:formrecseq"/>
  179. <Cell col="24" text="bind:cretno"/>
  180. <Cell col="25" text="bind:prcpgenrflag"/>
  181. <Cell col="26" text="bind:cnststat"/>
  182. <Cell col="27" text="bind:formcd"/>
  183. <Cell col="28" text="bind:rgstseqno"/>
  184. <Cell col="29" text="bind:cnstcnts8"/>
  185. <Cell col="30" text="bind:cnstcnts9"/>
  186. <Cell col="31" text="bind:cnstcnts10"/>
  187. <Cell col="32" text="bind:cnstcnts11"/>
  188. </Band>
  189. </Format>
  190. </Formats>
  191. </Grid>
  192. <Button id="button51" taborder="14" text="엑셀저장" class="btn7" position="absolute 1109 92 1185 114" onclick="button51_onclick" anchor="top right"/>
  193. <Button id="btn_save" taborder="15" text="저장" class="btn4" position="absolute 1129 694 1185 716" onclick="btn_save_onclick" anchor="right bottom"/>
  194. <Shape id="line02" class="line_1" position="absolute 0 116 1185 120" anchor="left top right"/>
  195. <Shape id="line00" class="line_1" position="absolute 0 115 1185 119" anchor="left top right"/>
  196. <Shape id="line01" class="line_1" position="absolute 0 114 1185 118" anchor="left top right"/>
  197. </Layout>
  198. </Layouts>
  199. <Objects>
  200. <Dataset id="ds_main_nstcntrllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="cnststatnm" type="STRING"/>
  203. <Column id="epgubun" type="STRING"/>
  204. <Column id="roomcd" type="STRING"/>
  205. <Column id="orddeptnm" type="STRING"/>
  206. <Column id="pid" type="STRING"/>
  207. <Column id="hngnm" type="STRING"/>
  208. <Column id="sna" type="STRING"/>
  209. <Column id="orddrnm" type="STRING"/>
  210. <Column id="firstreqdd" type="STRING"/>
  211. <Column id="firstrepldd" type="STRING"/>
  212. <Column id="replddilsu" type="STRING"/>
  213. <Column id="repldd" type="STRING"/>
  214. <Column id="prcpdd" type="STRING"/>
  215. <Column id="prcpcd" type="STRING"/>
  216. <Column id="cnstcnts20" type="STRING"/>
  217. <Column id="firstsau" type="STRING"/>
  218. <Column id="orddd" type="STRING"/>
  219. <Column id="dschdd" type="STRING"/>
  220. <Column id="dschyn" type="STRING"/>
  221. <Column id="cnstkind" type="STRING"/>
  222. <Column id="cnstseqno" type="STRING"/>
  223. <Column id="formrecseq" type="STRING"/>
  224. <Column id="cretno" type="STRING"/>
  225. <Column id="prcpgenrflag" type="STRING"/>
  226. <Column id="cnststat" type="STRING"/>
  227. <Column id="formcd" type="STRING"/>
  228. <Column id="rgstseqno" type="STRING"/>
  229. <Column id="cnstcnts8" type="STRING"/>
  230. <Column id="cnstcnts9" type="STRING"/>
  231. <Column id="cnstcnts10" type="STRING"/>
  232. <Column id="cnstcnts11" type="STRING"/>
  233. </ColumnInfo>
  234. <Rows>
  235. <Row/>
  236. </Rows>
  237. </Dataset>
  238. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="deptcd" type="STRING"/>
  241. <Column id="deptnm" type="STRING"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="deptnm" type="STRING"/>
  247. <Column id="deptcd" type="STRING"/>
  248. </ColumnInfo>
  249. </Dataset>
  250. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="srchdd1" type="STRING" size="256"/>
  253. <Column id="srchdd2" type="STRING" size="256"/>
  254. <Column id="reqdrugcd" type="STRING" size="256"/>
  255. <Column id="pid" type="STRING" size="256"/>
  256. <Column id="orddeptcd" type="STRING" size="256"/>
  257. <Column id="wardcd" type="STRING" size="256"/>
  258. <Column id="statflag" type="STRING" size="256"/>
  259. <Column id="nutrflag" type="STRING" size="256"/>
  260. <Column id="ioflag" type="STRING" size="256"/>
  261. <Column id="repflag" type="STRING" size="256"/>
  262. <Column id="deptflag" type="STRING" size="256"/>
  263. <Column id="replddilsu1" type="STRING" size="256"/>
  264. <Column id="replddilsu2" type="STRING" size="256"/>
  265. <Column id="data1" type="STRING" size="256"/>
  266. <Column id="dschyn" type="STRING" size="256"/>
  267. </ColumnInfo>
  268. <Rows>
  269. <Row>
  270. <Col id="srchdd1"/>
  271. <Col id="srchdd2"/>
  272. <Col id="reqdrugcd"/>
  273. <Col id="pid"/>
  274. <Col id="orddeptcd"/>
  275. <Col id="wardcd"/>
  276. <Col id="statflag"/>
  277. <Col id="nutrflag">A</Col>
  278. <Col id="ioflag"/>
  279. <Col id="repflag">A</Col>
  280. <Col id="deptflag"/>
  281. <Col id="replddilsu1"/>
  282. <Col id="replddilsu2"/>
  283. <Col id="data1"/>
  284. <Col id="dschyn"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_send_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  289. <ColumnInfo>
  290. <Column id="deptflag" type="STRING" size="256"/>
  291. </ColumnInfo>
  292. <Rows>
  293. <Row/>
  294. </Rows>
  295. </Dataset>
  296. <Dataset id="ds_send_cnstinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  297. <Dataset id="ds_hidden_cnstinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  298. <Dataset id="ds_temp_cnstinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  299. <ColumnInfo>
  300. <Column id="formrecseq" type="STRING" size="256"/>
  301. <Column id="pid" type="STRING" size="256"/>
  302. <Column id="rgstseqno" type="STRING" size="256"/>
  303. <Column id="cnstdd" type="STRING" size="256"/>
  304. <Column id="prcpgenrflag" type="STRING" size="256"/>
  305. <Column id="orddd" type="STRING" size="256"/>
  306. <Column id="cretno" type="STRING" size="256"/>
  307. <Column id="cnsttype" type="STRING" size="256"/>
  308. <Column id="formcd" type="STRING" size="256"/>
  309. <Column id="prcpcd" type="STRING" size="256"/>
  310. <Column id="prcpno" type="STRING" size="256"/>
  311. <Column id="cnstseqno" type="STRING" size="256"/>
  312. <Column id="plusyn" type="STRING" size="256"/>
  313. <Column id="sau" type="STRING" size="256"/>
  314. <Column id="roomcd" type="STRING" size="256"/>
  315. <Column id="cnstcnts9" type="STRING" size="256"/>
  316. <Column id="cnststat" type="STRING" size="256"/>
  317. <Column id="pdano" type="STRING" size="256"/>
  318. <Column id="orddrnm" type="STRING" size="256"/>
  319. <Column id="firstinfo" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. <Rows>
  322. <Row/>
  323. </Rows>
  324. </Dataset>
  325. <Dataset id="ds_hidden_cnststatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  326. </Objects>
  327. <Bind>
  328. <BindItem id="item0" compid="grp_sea.ipt_srchdd1" propid="value" datasetid="ds_send_srchdata" columnid="srchdd1"/>
  329. <BindItem id="item1" compid="grp_sea.ipt_srchdd2" propid="value" datasetid="ds_send_srchdata" columnid="srchdd2"/>
  330. <BindItem id="item2" compid="grp_sea.radio2" propid="value" datasetid="ds_send_srchdata" columnid="ioflag"/>
  331. <BindItem id="item3" compid="grp_sea.rdo_nutrflag" propid="value" datasetid="ds_send_srchdata" columnid="nutrflag"/>
  332. <BindItem id="item4" compid="grp_sea.input1" propid="value" datasetid="ds_send_srchdata" columnid="pid"/>
  333. <BindItem id="item5" compid="grp_sea.input2" propid="value" datasetid="ds_send_srchdata" columnid="replddilsu1"/>
  334. <BindItem id="item6" compid="grp_sea.input3" propid="value" datasetid="ds_send_srchdata" columnid="replddilsu2"/>
  335. <BindItem id="item7" compid="grp_sea.checkbox1" propid="value" datasetid="ds_send_srchdata" columnid="dschyn"/>
  336. <BindItem id="item8" compid="grp_sea.combo1" propid="value" datasetid="ds_send_srchdata" columnid="orddeptcd"/>
  337. <BindItem id="item9" compid="grp_sea.combo10" propid="value" datasetid="ds_send_srchdata" columnid="wardcd"/>
  338. </Bind>
  339. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  340. * System Name :
  341. * Job Name :
  342. * Creator :
  343. * Make Date : 2015-11-13
  344. * Description :
  345. *---------------------------------------------------------------------------------------
  346. * Modify Date Modifier Modify Description
  347. *---------------------------------------------------------------------------------------
  348. * 2015-11-13 Live Converter TF->XP
  349. *
  350. *---------------------------------------------------------------------------------------
  351. ****************************************************************************************/
  352. include "com_commonxp::comm_main.xjs";
  353. /******************************************************************
  354. * Argument :
  355. * Description : 초기화
  356. ******************************************************************/
  357. function SMADC03100_oninit(obj:Form, e:InitEventInfo)
  358. {
  359. frmf_initForm(obj);
  360. }
  361. function SMADC03100_onload(obj:Form, e:LoadEventInfo)
  362. {
  363. grdf_setRowTypeIcon(grd_nstmngt, 0);
  364. var setSrchdd1 = utlf_getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD");
  365. ds_send_srchdata.setColumn(0, "srchdd1", setSrchdd1);
  366. ds_send_srchdata.setColumn(0, "srchdd2", utlf_getCurrentDate());
  367. var oParam = {};
  368. oParam.id = "TRADC00101";
  369. oParam.service = "pharmacyconsultapp.ReqMngt";
  370. oParam.method = "reqGetDeptList";
  371. oParam.inds = "req=ds_send_deptinfo";
  372. oParam.outds = "ds_init_deptlist=dept ds_init_ward=ward";
  373. oParam.async = false;
  374. //oParam.callback = "cf_TRADC00101";
  375. tranf_submit(oParam);
  376. dsf_addDsItem(ds_init_deptlist, "deptcd", "deptnm", "", "", "above");
  377. dsf_addDsItem(ds_init_ward, "deptcd", "deptnm", "", "", "above");
  378. var getDeptcd = ds_init_deptlist.getColumn(0, "deptcd");
  379. var getWardcd = ds_init_deptlist.getColumn(0, "deptcd");
  380. if( getDeptcd == "-" ) ds_init_deptlist.setColumn(0, "deptcd", "");
  381. if( getWardcd == "-" ) ds_init_ward.setColumn(0, "deptcd", "");
  382. }
  383. /******************************************************************
  384. * Argument :
  385. * Description : 조회 Button Event
  386. ******************************************************************/
  387. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  388. {
  389. var getReqdrugcd = "";
  390. getReqdrugcd = ds_send_srchdata.getColumn(0, "reqdrugcd");
  391. ds_send_srchdata.setColumn(0, "reqdrugcd", getReqdrugcd); //2008-11-01 의뢰약품 대문자 처리
  392. var oParam = {};
  393. oParam.id = "TRADC03101";
  394. oParam.service = "pharmacyconsultapp.TDMMngt";
  395. oParam.method = "reqGetNSTPursMngtSrchList";
  396. oParam.inds = "req=ds_send_srchdata";
  397. oParam.outds = "ds_main_nstcntrllist=mainlist";
  398. oParam.async = false;
  399. //oParam.callback = "cf_TRADC03101";
  400. tranf_submit(oParam);
  401. //그리드 특정 컬럼값을 비교하여 로우 백컬러 변경
  402. // grdf_setRowStyle(grd_nstmngt, "1", "Y", "dschyn", "equal");
  403. }
  404. /******************************************************************
  405. * Argument :
  406. * Description : list 상세 Event
  407. ******************************************************************/
  408. function grd_nstmngt_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  409. {
  410. //2010-01-06 비고란 저장 가능하도록 처리 (미회신사유등록..)
  411. var grdRow = ds_main_nstcntrllist.rowposition;
  412. var cCol = grd_nstmngt.currentcol;
  413. if ( grd_nstmngt.getBindCellIndex("body","cnstcnts20") != cCol ) {
  414. //기록된 서식
  415. var cnstseqno = ds_main_nstcntrllist.getColumn(grdRow, "cnstseqno");
  416. var formrecseq = ds_main_nstcntrllist.getColumn(grdRow, "formrecseq");
  417. var formcd = ds_main_nstcntrllist.getColumn(grdRow, "formcd");
  418. var pid = ds_main_nstcntrllist.getColumn(grdRow, "pid");
  419. var cretno = ds_main_nstcntrllist.getColumn(grdRow, "cretno");
  420. var prcpgenrflag = ds_main_nstcntrllist.getColumn(grdRow, "prcpgenrflag");
  421. var rgstseqno = ds_main_nstcntrllist.getColumn(grdRow, "rgstseqno");
  422. var reqdd = ds_main_nstcntrllist.getColumn(grdRow, "reqdd");
  423. var orddd = ds_main_nstcntrllist.getColumn(grdRow, "orddd");
  424. var prcpcd = ds_main_nstcntrllist.getColumn(grdRow, "prcpcd");
  425. var prcpno = ds_main_nstcntrllist.getColumn(grdRow, "prcpno");
  426. var plusyn = ds_main_nstcntrllist.getColumn(grdRow, "plusyn");
  427. var sau = ds_main_nstcntrllist.getColumn(grdRow, "sau"); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  428. var roomcd = ds_main_nstcntrllist.getColumn(grdRow, "roomcd"); //2009-12-03 회신서출력시 [병실] 출력요청
  429. frmf_setParameter("openmode", "reccnstform");
  430. frmf_setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
  431. frmf_setParameter("pid", pid);
  432. frmf_setParameter("rgstseqno", rgstseqno);
  433. ds_temp_cnstinfo.setColumn(0, "cnstseqno", cnstseqno);
  434. ds_temp_cnstinfo.setColumn(0, "formrecseq", formrecseq);
  435. ds_temp_cnstinfo.setColumn(0, "pid", pid);
  436. ds_temp_cnstinfo.setColumn(0, "cretno", cretno);
  437. ds_temp_cnstinfo.setColumn(0, "prcpgenrflag", prcpgenrflag);
  438. ds_temp_cnstinfo.setColumn(0, "rgstseqno", rgstseqno);
  439. ds_temp_cnstinfo.setColumn(0, "cnstdd", reqdd);
  440. ds_temp_cnstinfo.setColumn(0, "orddd", orddd);
  441. ds_temp_cnstinfo.setColumn(0, "cnsttype", "ast"); // 약품식별회신을 위한 변수 설정
  442. ds_temp_cnstinfo.setColumn(0, "plusyn", plusyn); //추구관리가능여부
  443. ds_temp_cnstinfo.setColumn(0, "sau", sau); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  444. ds_temp_cnstinfo.setColumn(0, "roomcd", roomcd); //2009-12-03 회신서출력시 [병실] 출력요청
  445. //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
  446. if( !utlf_isNull(formrecseq) ){
  447. var oParam = {};
  448. oParam.id = "TXADC00101";
  449. oParam.service = "pharmacyconsultapp.ReqMngt";
  450. oParam.method = "reqExeReqCnstStat";
  451. oParam.inds = "req=ds_temp_cnstinfo";
  452. oParam.outds = "ds_hidden_cnststatinfo=cnststatinfo";
  453. oParam.async = false;
  454. //oParam.callback = "cf_TXADC00101";
  455. tranf_submit(oParam);
  456. if( ds_hidden_cnststatinfo.getColumn(ds_main_nstcntrllist.rowposition, "cnststat") == "04" ){
  457. sysf_messageBox("취소된 의뢰건","I009");
  458. }
  459. }
  460. if( formcd == "0000000770" || formcd == "0000003019" ){ //NST
  461. ds_temp_cnstinfo.setColumn(0, "formcd", formcd); // EN, PN구분을 위한 formcd 설정
  462. if( utlf_isNull(formrecseq) ){
  463. ds_temp_cnstinfo.setColumn(0, "prcpcd", prcpcd);
  464. ds_temp_cnstinfo.setColumn(0, "prcpno", prcpno);
  465. }
  466. var objArg = new Object();
  467. objArg.arg_ds_temp_cnstinfo = ds_temp_cnstinfo;
  468. frmf_modal("SMADC02600", "SMADC02600", objArg, null, 1, null, 50, 600, 150, null, null, null, "M");
  469. grp_sea_btn_sea_onclick();
  470. }
  471. }
  472. if( grd_nstmngt.getBindCellIndex("body","cnstcnts20") == cCol) {
  473. if( ds_main_nstcntrllist.getColumn(grdRow, "cnststat") == "미의뢰" ) {
  474. sysf_messageBox("[미의뢰]건에 대해서 비고란을 입력할수 없습니다.", "I");
  475. ds_main_nstcntrllist.setColumn(grdRow, "cnstcnts20", "");
  476. return;
  477. }
  478. }
  479. }
  480. /******************************************************************
  481. * Argument :
  482. * Description : Excel Down Event
  483. ******************************************************************/
  484. function button51_onclick(obj:Button, e:ClickEventInfo)
  485. {
  486. if( ds_main_nstcntrllist.rowcount > 0 ){
  487. grdf_exportExcel(grd_nstmngt, "NST추구관리대상자리스트", "NST추구관리대상자리스트", false, "", "user", false);
  488. } else {
  489. sysf_messageBox("조회된 데이터가 ", "I004");
  490. }
  491. }
  492. /******************************************************************
  493. * Argument :
  494. * Description : 저장 Button Event
  495. ******************************************************************/
  496. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  497. {
  498. var update = grdf_getGridUpdateData(grd_nstmngt);
  499. if( update.rowcount < 1 ){
  500. sysf_messageBox("저장할 정보가 없습니다. 확인하여 주시기바랍니다","I");
  501. return;
  502. }
  503. grdf_setStatusColumn(update, "m"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  504. ds_send_cnstinfolist.copyData(update, true);
  505. var oParam = {};
  506. oParam.id = "TXADC02501";
  507. oParam.service = "pharmacyconsultapp.TDMMngt";
  508. oParam.method = "reqExeNSTCnstInfo";
  509. oParam.inds = "req=ds_send_cnstinfolist";
  510. oParam.outds = "ds_hidden_cnstinfolist=item";
  511. oParam.async = false;
  512. //oParam.callback = "cf_TXADC02501";
  513. tranf_submit(oParam);
  514. }
  515. function grp_sea_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  516. {
  517. if(e.keycode == 13) {
  518. obj.updateToDataset();
  519. grp_sea_btn_sea_onclick();
  520. }
  521. }
  522. ]]></Script>
  523. </Form>
  524. </FDL>