SMANC00200_영양교육관리.xfdl 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANC00200" position="absolute 0 0 1201 794" titletext="영양교육/관리접수" oninit="SMANC00200_oninit" onload="SMANC00200_onload" onclose="SMANC00200_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 16 1194 760" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 10 1194 99" align="align:center top;" id="grp_sea" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 1194 88" id="roundrect1" class="roundrect_search" type="roundrectangle" anchor="default"/>
  14. <Button position="absolute 1120 15 1176 37" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_grp_sea_btn_search_onclick"/>
  15. <Shape position="absolute 1102 10 1108 75" linetype="vertical" id="line1" anchor="default"/>
  16. <Calendar position="absolute 201 10 290 29" id="ipt_reqtodd" class="input_essential" anchor="default" autoselect="true"/>
  17. <Combo position="absolute 742 10 857 29" id="cmb_orddept" class="combo_essential" innerdataset="@ds_init_basecode_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default"/>
  18. <Static text="~" position="absolute 184 13 199 28" align="align:center middle;" id="caption3" anchor="default"/>
  19. <Static text="등록번호/환자명 :" position="absolute 345 35 462 52" id="caption6" class="search_name" anchor="default"/>
  20. <Button position="absolute 635 35 651 51" id="btn_pid" class="icon_search" text="" anchor="default" onclick="group3_grp_sea_btn_pid_onclick"/>
  21. <Combo position="absolute 935 10 1075 29" id="cmb_ward" class="combo_essential" innerdataset="@ds_init_basecode_ward_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group3_grp_sea_cmb_ward_onitemchanged"/>
  22. <Static text="업무구분 :" position="absolute 345 60 421 77" id="caption5" class="search_name" anchor="default"/>
  23. <Combo position="absolute 425 60 515 79" id="cmb_bizflag" class="combo_essential" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">0</Col>
  32. <Col id="datacolumn">
  33. </Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">1</Col>
  37. <Col id="datacolumn">교육</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">2</Col>
  41. <Col id="datacolumn">교육예약</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">3</Col>
  45. <Col id="datacolumn">면담중</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">4</Col>
  49. <Col id="datacolumn">관리</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">5</Col>
  53. <Col id="datacolumn">관리예약</Col>
  54. </Row>
  55. <Row>
  56. <Col id="codecolumn">6</Col>
  57. <Col id="datacolumn">관리중</Col>
  58. </Row>
  59. </Rows>
  60. </Dataset>
  61. </Combo>
  62. <Static text="교육장소 :" position="absolute 678 60 753 77" id="caption8" class="search_name" anchor="default"/>
  63. <Combo position="absolute 755 60 887 79" id="cmb_educplce" class="combo_essential" innerdataset="@ds_init_baseinfo_initplace_A160" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  64. <Static text="회신상태 :" position="absolute 10 60 85 77" id="caption1" class="search_name" anchor="default"/>
  65. <Combo position="absolute 88 60 178 79" id="cmb_cnststat" class="combo_essential" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_grp_sea_cmb_cnststat_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">
  74. </Col>
  75. <Col id="datacolumn">
  76. </Col>
  77. </Row>
  78. <Row>
  79. <Col id="codecolumn">N</Col>
  80. <Col id="datacolumn">미회신</Col>
  81. </Row>
  82. <Row>
  83. <Col id="codecolumn">Y</Col>
  84. <Col id="datacolumn">회신</Col>
  85. </Row>
  86. </Rows>
  87. </Dataset>
  88. </Combo>
  89. <Static position="absolute 535 0 635 20" align="align:left middle;" id="hintcaption" visible="false" anchor="default"/>
  90. <Static text="의뢰일자 :" position="absolute 10 10 85 27" id="caption2" class="search_name" anchor="default"/>
  91. <Calendar position="absolute 88 10 177 29" id="ipt_reqfromdd" class="input_essential" anchor="default" autoselect="true"/>
  92. <Static text="~" position="absolute 522 12 537 27" align="align:center middle;" id="caption9" anchor="default"/>
  93. <Static text="회신일자 :" position="absolute 345 10 420 27" id="caption10" class="search_name" anchor="default"/>
  94. <Calendar position="absolute 425 10 520 29" id="ipt_rsrvfromdd" class="input_essential" anchor="default" autoselect="true" enable="false"/>
  95. <Calendar position="absolute 538 10 633 29" id="ipt_rsrvtodd" class="input_essential" anchor="default" autoselect="true" enable="false"/>
  96. <Static text="진료과 :" position="absolute 678 10 738 27" id="caption11" class="search_name" anchor="default"/>
  97. <Static text="병동 :" position="absolute 885 10 935 27" id="caption12" class="search_name" anchor="default"/>
  98. <Radio position="absolute 88 36 223 56" id="rdo_patflag" class="radio_search" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_grp_sea_rdo_patflag_onitemchanged">
  99. <Dataset id="innerdataset">
  100. <ColumnInfo>
  101. <Column id="codecolumn"/>
  102. <Column id="datacolumn"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row>
  106. <Col id="codecolumn">-</Col>
  107. <Col id="datacolumn">전체</Col>
  108. </Row>
  109. <Row>
  110. <Col id="codecolumn">O</Col>
  111. <Col id="datacolumn">외래</Col>
  112. </Row>
  113. <Row>
  114. <Col id="codecolumn">I</Col>
  115. <Col id="datacolumn">입원</Col>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. </Radio>
  120. <Static text="환자구분 :" position="absolute 10 35 86 52" id="caption4" class="search_name" anchor="default"/>
  121. <Static text="영양사 :" position="absolute 678 35 738 52" id="caption7" class="search_name" anchor="default"/>
  122. <Combo position="absolute 742 35 855 54" id="cmb_dieter" class="combo_search" innerdataset="@ds_init_basecode_dieter_dieter" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  123. <MaskEdit position="absolute 468 35 548 54" id="ipt_pid" class="input_search" mask="9999999999" anchor="default" autoselect="true" onkeydown="group3_grp_sea_ipt_pid_onkeydown" style="align:left middle;"/>
  124. <Edit position="absolute 550 35 630 54" id="ipt_hngnm" class="input_search" anchor="default" autoselect="true" onkeydown="group3_grp_sea_ipt_hngnm_onkeydown"/>
  125. <Static id="caption00" text="의뢰항목 :" class="search_name" position="absolute 885 35 960 52" anchor="default"/>
  126. <CheckBox id="checkbox1" taborder="2" text="회신" truevalue="Y" position="absolute 295 10 340 30" falsevalue="N" value="N" onclick="group3_grp_sea_checkbox1_onclick"/>
  127. <Combo id="cmb_formcd" taborder="3" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 959 34 1075 53" innerdataset="@ds_UC00014"/>
  128. </Layout>
  129. </Layouts>
  130. </Div>
  131. <Button position="absolute 1143 104 1193 123" id="btn_excel" class="btn7" text="엑셀" anchor="default" onclick="group3_btn_excel_onclick"/>
  132. <Grid position="absolute 0 130 1194 740" id="grd_data" binddataset="ds_main_item_data" anchor="default" oncelldblclick="group3_grd_data_oncelldblclick" autoenter="select" onexpanddown="group3_grd_data_onexpanddown">
  133. <Formats>
  134. <Format id="default">
  135. <Columns>
  136. <Column size="24"/>
  137. <Column size="0"/>
  138. <Column size="55"/>
  139. <Column size="55"/>
  140. <Column size="60"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="100"/>
  144. <Column size="0"/>
  145. <Column size="75"/>
  146. <Column size="60"/>
  147. <Column size="55"/>
  148. <Column size="55"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="55"/>
  152. <Column size="180"/>
  153. <Column size="95"/>
  154. <Column size="55"/>
  155. <Column size="120"/>
  156. <Column size="200"/>
  157. <Column size="85"/>
  158. <Column size="60"/>
  159. <Column size="0"/>
  160. <Column size="0"/>
  161. <Column size="95"/>
  162. <Column size="60"/>
  163. <Column size="0"/>
  164. <Column size="110"/>
  165. <Column size="115"/>
  166. <Column size="100"/>
  167. <Column size="0"/>
  168. <Column size="0"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. <Column size="0"/>
  172. <Column size="0"/>
  173. <Column size="0"/>
  174. <Column size="0"/>
  175. <Column size="0"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. </Columns>
  179. <Rows>
  180. <Row size="24" band="head"/>
  181. <Row size="24"/>
  182. </Rows>
  183. <Band id="head">
  184. <Cell/>
  185. <Cell col="1" text="선택"/>
  186. <Cell col="2" text="회신상태"/>
  187. <Cell col="3" text="업무구분"/>
  188. <Cell col="4" text="사유"/>
  189. <Cell col="5" text="h_처방상태"/>
  190. <Cell col="6" text="의뢰일자"/>
  191. <Cell col="7" text="의뢰일시"/>
  192. <Cell col="8" text="h_실시처방번호"/>
  193. <Cell col="9" text="퇴원예고일자"/>
  194. <Cell col="10" text="등록번호"/>
  195. <Cell col="11" text="환자구분"/>
  196. <Cell col="12" text="환자명"/>
  197. <Cell col="13" text="h_생년월일"/>
  198. <Cell col="14" text="h_성별"/>
  199. <Cell col="15" text="성별/나이"/>
  200. <Cell col="16" text="진단명"/>
  201. <Cell col="17" text="진료과"/>
  202. <Cell col="18" text="담당교수"/>
  203. <Cell col="19" text="의뢰항목"/>
  204. <Cell col="20" text="의뢰내용"/>
  205. <Cell col="21" text="예약일자"/>
  206. <Cell col="22" text="예약시간"/>
  207. <Cell col="23" text="예약 종료일"/>
  208. <Cell col="24" text="종료시간"/>
  209. <Cell col="25" text="교육장소"/>
  210. <Cell col="26" text="영양사"/>
  211. <Cell col="27" text="수납여부"/>
  212. <Cell col="28" text="실제회신일"/>
  213. <Cell col="29" text="영양관리유형"/>
  214. <Cell col="30" text="질환구분"/>
  215. <Cell col="31" text="h_수납일자"/>
  216. <Cell col="32" text="h_생성번호"/>
  217. <Cell col="33" text="h_진료과"/>
  218. <Cell col="34" text="h_입원외래"/>
  219. <Cell col="35" text="h_진료일자"/>
  220. <Cell col="36" text="h_처방코드"/>
  221. <Cell col="37" text="h_간호사"/>
  222. <Cell col="38" text="h_서식기록번호"/>
  223. <Cell col="39"/>
  224. <Cell col="40"/>
  225. <Cell col="41"/>
  226. </Band>
  227. <Band id="body">
  228. <Cell celltype="head" expr="currow + 1"/>
  229. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  230. <Cell col="2" text="bind:mngtstat"/>
  231. <Cell col="3" text="bind:bizflag"/>
  232. <Cell col="4" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:cancelcmt" combodataset="ds_init_baseinfo_canclecmt_A161" combocodecol="cdnm" combodatacol="cdnm"/>
  233. <Cell col="5" text="bind:h_prcpstatcd"/>
  234. <Cell col="6" text="bind:reqdd" mask="yyyy-mm-dd"/>
  235. <Cell col="7" displaytype="text" style="align:center middle;" text="bind:reqddhm" mask="####-##-## ##:##" maskchar=" "/>
  236. <Cell col="8" text="bind:execprcpuniqno"/>
  237. <Cell col="9" displaytype="text" style="align:center middle;" text="bind:dschdclrdt" mask="####-##-##" maskchar=" "/>
  238. <Cell col="10" text="bind:pid"/>
  239. <Cell col="11" text="bind:patflag"/>
  240. <Cell col="12" text="bind:hngnm"/>
  241. <Cell col="13" text="bind:h_brthdd"/>
  242. <Cell col="14" text="bind:h_sex"/>
  243. <Cell col="15" text="bind:sexage"/>
  244. <Cell col="16" style="align:left top;padding:5 2 1 2;" text="bind:diagnm" wordwrap="word"/>
  245. <Cell col="17" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:orddept" combodataset="ds_init_basecode_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  246. <Cell col="18" text="bind:atdoct"/>
  247. <Cell col="19" style="align:left top;padding:4 2 2 2;" text="bind:educreqcnts" wordwrap="word"/>
  248. <Cell col="20" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:reccnts" wordwrap="word" expandshow="show"/>
  249. <Cell col="21" displaytype="date" edittype="date" text="bind:rsrvdd" calendardisplaynulltype="none"/>
  250. <Cell col="22" displaytype="text" edittype="text" style="align:center middle;" text="bind:eductm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  251. <Cell col="23" displaytype="date" edittype="date" text="bind:rsrvtodd" mask="yyyy-mm-dd"/>
  252. <Cell col="24" displaytype="text" edittype="text" style="align:center middle;" text="bind:eductotm" mask="##:##" maskchar=" "/>
  253. <Cell col="25" displaytype="combo" edittype="combo" text="bind:educplce" combodataset="ds_init_baseinfo_initplace_A160" combocodecol="cdid" combodatacol="cdnm"/>
  254. <Cell col="26" displaytype="combo" edittype="combo" text="bind:dieter" combodataset="ds_init_basecode_dieter_dieter" combocodecol="cdid" combodatacol="cdnm"/>
  255. <Cell col="27" text="bind:rcptyn"/>
  256. <Cell col="28" edittype="none" text="bind:repldd" mask="expr:utlf_isNull(repldd) ? '' : '####-##-## ##:##'"/>
  257. <Cell col="29" displaytype="combo" edittype="combo" text="bind:nutrmngtkind" combodataset="ds_init_basecode_nutrmngtkind_A0060" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  258. <Cell col="30" displaytype="combo" edittype="combo" text="bind:sickcd" combodataset="ds_init_basecode_sickcd_A0059" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  259. <Cell col="31" text="bind:h_rcptdd"/>
  260. <Cell col="32" text="bind:h_cretno"/>
  261. <Cell col="33" text="bind:h_orddeptcd"/>
  262. <Cell col="34" text="bind:h_prcpgenrflag"/>
  263. <Cell col="35" text="bind:h_orddd"/>
  264. <Cell col="36" text="bind:h_prcpcd"/>
  265. <Cell col="37" text="bind:h_nurse"/>
  266. <Cell col="38" text="bind:h_formrecseq"/>
  267. <Cell col="39" text="bind:h_cnstseqno"/>
  268. <Cell col="40" text="bind:h_sau"/>
  269. <Cell col="41" text="bind:h_cnstcnts9"/>
  270. </Band>
  271. </Format>
  272. </Formats>
  273. </Grid>
  274. <Shape position="absolute 0 125 1194 131" linetype="horizontal" id="line12" class="line_10" anchor="default"/>
  275. <Div position="absolute 435 265 880 510" id="grp_reccnts" visible="false" anchor="default">
  276. <Layouts>
  277. <Layout>
  278. <Shape position="absolute 0 0 445 245" id="rectangle2" type="rectangle" anchor="default"/>
  279. <TextArea position="absolute 5 30 440 210" id="textarea2" wordwrap="word" anchor="default"/>
  280. <Button position="absolute 380 215 436 237" id="button4" class="btn4" text="닫기" anchor="default" onclick="group3_grp_reccnts_button4_onclick"/>
  281. <Static text="의뢰상세내용" position="absolute 6 12 179 28" id="caption13" class="tit_2" anchor="default"/>
  282. </Layout>
  283. </Layouts>
  284. </Div>
  285. <Static id="Static00" text="* 취소사유 수정 시 : 기준정보관리/공통코드관리에 그룹코드 A161로 조회 수정" position="absolute 714 107 1141 121" style="background:#fefeccff;" anchor="default"/>
  286. </Layout>
  287. </Layouts>
  288. </Div>
  289. <Div position="absolute 0 760 1195 786" id="group4" scrollbars="autoboth">
  290. <Layouts>
  291. <Layout>
  292. <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group4_btn_save_onclick"/>
  293. </Layout>
  294. </Layouts>
  295. </Div>
  296. <Static id="caption19" text="영양교육/관리접수" class="tit_1" position="absolute 0 0 146 25"/>
  297. </Layout>
  298. </Layouts>
  299. <Objects>
  300. <Dataset id="ds_send_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="reqfromdd" type="STRING" size="256"/>
  303. <Column id="reqtodd" type="STRING" size="256"/>
  304. <Column id="rsrvfromdd" type="STRING" size="256"/>
  305. <Column id="rsrvtodd" type="STRING" size="256"/>
  306. <Column id="orddept" type="STRING" size="256"/>
  307. <Column id="patflag" type="STRING" size="256"/>
  308. <Column id="bizflag" type="STRING" size="256"/>
  309. <Column id="pid" type="STRING" size="256"/>
  310. <Column id="hngnm" type="STRING" size="256"/>
  311. <Column id="ward" type="STRING" size="256"/>
  312. <Column id="dieter" type="STRING" size="256"/>
  313. <Column id="educplce" type="STRING" size="256"/>
  314. <Column id="srchflag" type="STRING" size="256"/>
  315. <Column id="cnststat" type="STRING" size="256"/>
  316. <Column id="educreqcnts" type="STRING" size="256"/>
  317. <Column id="formcd" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. <Rows>
  320. <Row>
  321. <Col id="reqfromdd"/>
  322. <Col id="reqtodd"/>
  323. <Col id="rsrvfromdd"/>
  324. <Col id="rsrvtodd"/>
  325. <Col id="orddept"/>
  326. <Col id="patflag"/>
  327. <Col id="bizflag"/>
  328. <Col id="pid"/>
  329. <Col id="hngnm"/>
  330. <Col id="ward"/>
  331. <Col id="dieter"/>
  332. <Col id="educplce"/>
  333. <Col id="srchflag"/>
  334. <Col id="cnststat"/>
  335. <Col id="educreqcnts"/>
  336. <Col id="formcd"/>
  337. </Row>
  338. </Rows>
  339. </Dataset>
  340. <Dataset id="ds_init_basecode_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  341. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  342. <ColumnInfo>
  343. <Column id="srchcond" type="STRING" size="256"/>
  344. <Column id="pid" type="STRING" size="256"/>
  345. <Column id="hngnm" type="STRING" size="256"/>
  346. <Column id="rrgstno1" type="STRING" size="256"/>
  347. <Column id="rrgstno2" type="STRING" size="256"/>
  348. <Column id="acptdd" type="STRING" size="256"/>
  349. <Column id="inhospyn" type="STRING" size="256"/>
  350. </ColumnInfo>
  351. <Rows>
  352. <Row/>
  353. </Rows>
  354. </Dataset>
  355. <Dataset id="ds_init_basecode_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  356. <Dataset id="ds_init_basecode_dieter_dieter" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  357. <Dataset id="ds_init_baseinfo_initplace_A160" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  358. <Dataset id="ds_main_item_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  359. <ColumnInfo>
  360. <Column id="check" type="STRING" size="256"/>
  361. <Column id="mngtstat" type="STRING" size="256"/>
  362. <Column id="bizflag" type="STRING" size="256"/>
  363. <Column id="h_prcpstatcd" type="STRING" size="256"/>
  364. <Column id="reqdd" type="STRING" size="256"/>
  365. <Column id="reqddhm" type="STRING" size="256"/>
  366. <Column id="execprcpuniqno" type="STRING" size="256"/>
  367. <Column id="pid" type="STRING" size="256"/>
  368. <Column id="patflag" type="STRING" size="256"/>
  369. <Column id="hngnm" type="STRING" size="256"/>
  370. <Column id="h_brthdd" type="STRING" size="256"/>
  371. <Column id="h_sex" type="STRING" size="256"/>
  372. <Column id="sexage" type="STRING" size="256"/>
  373. <Column id="diagnm" type="STRING" size="256"/>
  374. <Column id="orddept" type="STRING" size="256"/>
  375. <Column id="atdoct" type="STRING" size="256"/>
  376. <Column id="educreqcnts" type="STRING" size="256"/>
  377. <Column id="reccnts" type="STRING" size="256"/>
  378. <Column id="rsrvdd" type="STRING" size="256"/>
  379. <Column id="eductm" type="STRING" size="256"/>
  380. <Column id="rsrvtodd" type="STRING" size="256"/>
  381. <Column id="eductotm" type="STRING" size="256"/>
  382. <Column id="educplce" type="STRING" size="256"/>
  383. <Column id="dieter" type="STRING" size="256"/>
  384. <Column id="rcptyn" type="STRING" size="256"/>
  385. <Column id="h_rcptdd" type="STRING" size="256"/>
  386. <Column id="h_cretno" type="STRING" size="256"/>
  387. <Column id="h_orddeptcd" type="STRING" size="256"/>
  388. <Column id="h_prcpgenrflag" type="STRING" size="256"/>
  389. <Column id="h_orddd" type="STRING" size="256"/>
  390. <Column id="h_prcpcd" type="STRING" size="256"/>
  391. <Column id="h_nurse" type="STRING" size="256"/>
  392. <Column id="h_formrecseq" type="STRING" size="256"/>
  393. <Column id="execdd" type="STRING" size="256"/>
  394. <Column id="formcd" type="STRING" size="256"/>
  395. <Column id="rgstseqno" type="STRING" size="256"/>
  396. <Column id="repldd" type="STRING" size="256"/>
  397. <Column id="nutrmngtkind" type="STRING" size="256"/>
  398. <Column id="sickcd" type="STRING" size="256"/>
  399. <Column id="cnstseqno" type="STRING" size="256"/>
  400. <Column id="sau" type="STRING" size="256"/>
  401. <Column id="cnstcnts9" type="STRING" size="256"/>
  402. <Column id="dschdd" type="STRING" size="256"/>
  403. <Column id="dschdclrdt" type="STRING" size="256"/>
  404. </ColumnInfo>
  405. <Rows>
  406. <Row>
  407. <Col id="check"/>
  408. <Col id="mngtstat"/>
  409. <Col id="bizflag"/>
  410. <Col id="h_prcpstatcd"/>
  411. <Col id="reqdd"/>
  412. <Col id="reqddhm"/>
  413. <Col id="execprcpuniqno"/>
  414. <Col id="pid"/>
  415. <Col id="patflag"/>
  416. <Col id="hngnm"/>
  417. <Col id="h_brthdd"/>
  418. <Col id="h_sex"/>
  419. <Col id="sexage"/>
  420. <Col id="diagnm"/>
  421. <Col id="orddept"/>
  422. <Col id="atdoct"/>
  423. <Col id="educreqcnts"/>
  424. <Col id="reccnts"/>
  425. <Col id="rsrvdd"/>
  426. <Col id="eductm"/>
  427. <Col id="rsrvtodd"/>
  428. <Col id="eductotm"/>
  429. <Col id="educplce"/>
  430. <Col id="dieter"/>
  431. <Col id="rcptyn"/>
  432. <Col id="h_rcptdd"/>
  433. <Col id="h_cretno"/>
  434. <Col id="h_orddeptcd"/>
  435. <Col id="h_prcpgenrflag"/>
  436. <Col id="h_orddd"/>
  437. <Col id="h_prcpcd"/>
  438. <Col id="h_nurse"/>
  439. <Col id="h_formrecseq"/>
  440. <Col id="execdd"/>
  441. <Col id="formcd"/>
  442. <Col id="rgstseqno"/>
  443. <Col id="repldd"/>
  444. <Col id="nutrmngtkind"/>
  445. <Col id="sickcd"/>
  446. <Col id="cnstseqno"/>
  447. <Col id="sau"/>
  448. <Col id="cnstcnts9"/>
  449. <Col id="dschdd"/>
  450. <Col id="dschdclrdt"/>
  451. </Row>
  452. </Rows>
  453. </Dataset>
  454. <Dataset id="ds_init_baseinfo_canclecmt_A161" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  455. <Dataset id="ds_init_basecode_nutrmngtkind_A0060" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  456. <Dataset id="ds_init_basecode_sickcd_A0059" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  457. <Dataset id="ds_init_basecode_dieter_intndieter" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  458. <Dataset id="ds_init_basecode_dieter_alldieter" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  459. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  460. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  461. <Dataset id="ds_temp_cnstinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  462. <ColumnInfo>
  463. <Column id="formrecseq" type="STRING" size="256"/>
  464. <Column id="pid" type="STRING" size="256"/>
  465. <Column id="rgstseqno" type="STRING" size="256"/>
  466. <Column id="cnstdd" type="STRING" size="256"/>
  467. <Column id="prcpgenrflag" type="STRING" size="256"/>
  468. <Column id="orddd" type="STRING" size="256"/>
  469. <Column id="cretno" type="STRING" size="256"/>
  470. <Column id="cnsttype" type="STRING" size="256"/>
  471. <Column id="formcd" type="STRING" size="256"/>
  472. <Column id="cnstseqno" type="STRING" size="256"/>
  473. <Column id="sau" type="STRING" size="256"/>
  474. <Column id="cnstcnts9" type="STRING" size="256"/>
  475. <Column id="pidchkflag" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. <Rows>
  478. <Row/>
  479. </Rows>
  480. </Dataset>
  481. <Dataset id="ds_send_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  482. <ColumnInfo>
  483. <Column id="flag" type="STRING" size="256"/>
  484. <Column id="pid" type="STRING" size="256"/>
  485. <Column id="hngnm" type="STRING" size="256"/>
  486. <Column id="reqdd" type="STRING" size="256"/>
  487. <Column id="reqpsn" type="STRING" size="256"/>
  488. <Column id="orddrid" type="STRING" size="256"/>
  489. <Column id="educreqcnts" type="STRING" size="256"/>
  490. <Column id="reccnts" type="STRING" size="256"/>
  491. <Column id="h_cretno" type="STRING" size="256"/>
  492. <Column id="h_orddeptcd" type="STRING" size="256"/>
  493. <Column id="h_prcpgenrflag" type="STRING" size="256"/>
  494. <Column id="h_orddd" type="STRING" size="256"/>
  495. <Column id="h_formrecseq" type="STRING" size="256"/>
  496. <Column id="execprcpuniqno" type="STRING" size="256"/>
  497. <Column id="nutrmngtkind" type="STRING" size="256"/>
  498. <Column id="execdd" type="STRING" size="256"/>
  499. </ColumnInfo>
  500. <Rows>
  501. <Row>
  502. <Col id="flag"/>
  503. <Col id="pid"/>
  504. <Col id="hngnm"/>
  505. <Col id="reqdd"/>
  506. <Col id="reqpsn"/>
  507. <Col id="orddrid"/>
  508. <Col id="educreqcnts"/>
  509. <Col id="reccnts"/>
  510. <Col id="h_cretno"/>
  511. <Col id="h_orddeptcd"/>
  512. <Col id="h_prcpgenrflag"/>
  513. <Col id="h_orddd"/>
  514. <Col id="h_formrecseq"/>
  515. <Col id="execprcpuniqno"/>
  516. <Col id="nutrmngtkind"/>
  517. <Col id="execdd"/>
  518. </Row>
  519. </Rows>
  520. </Dataset>
  521. <Dataset id="ds_send_req_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  522. <Dataset id="ds_UC00014" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  523. </Objects>
  524. <Bind>
  525. <BindItem id="item0" compid="group3.grp_sea.ipt_reqfromdd" propid="value" datasetid="ds_send_searchitem" columnid="reqfromdd"/>
  526. <BindItem id="item1" compid="group3.grp_sea.ipt_reqtodd" propid="value" datasetid="ds_send_searchitem" columnid="reqtodd"/>
  527. <BindItem id="item2" compid="group3.grp_sea.ipt_rsrvfromdd" propid="value" datasetid="ds_send_searchitem" columnid="rsrvfromdd"/>
  528. <BindItem id="item3" compid="group3.grp_sea.ipt_rsrvtodd" propid="value" datasetid="ds_send_searchitem" columnid="rsrvtodd"/>
  529. <BindItem id="item4" compid="group3.grp_sea.cmb_orddept" propid="value" datasetid="ds_send_searchitem" columnid="orddept"/>
  530. <BindItem id="item5" compid="group3.grp_sea.cmb_ward" propid="value" datasetid="ds_send_searchitem" columnid="ward"/>
  531. <BindItem id="item6" compid="group3.grp_sea.rdo_patflag" propid="value" datasetid="ds_send_searchitem" columnid="patflag"/>
  532. <BindItem id="item7" compid="group3.grp_sea.ipt_pid" propid="value" datasetid="ds_send_searchitem" columnid="pid"/>
  533. <BindItem id="item8" compid="group3.grp_sea.ipt_hngnm" propid="value" datasetid="ds_send_searchitem" columnid="hngnm"/>
  534. <BindItem id="item9" compid="group3.grp_sea.cmb_dieter" propid="value" datasetid="ds_send_searchitem" columnid="dieter"/>
  535. <BindItem id="item11" compid="group3.grp_sea.cmb_cnststat" propid="value" datasetid="ds_send_searchitem" columnid="cnststat"/>
  536. <BindItem id="item12" compid="group3.grp_sea.cmb_bizflag" propid="value" datasetid="ds_send_searchitem" columnid="bizflag"/>
  537. <BindItem id="item13" compid="group3.grp_sea.cmb_educplce" propid="value" datasetid="ds_send_searchitem" columnid="educplce"/>
  538. <BindItem id="item14" compid="group3.grp_reccnts.textarea2" propid="value" datasetid="ds_send_popup" columnid="reccnts"/>
  539. <BindItem id="item15" compid="group3.grp_sea.cmb_formcd" propid="value" datasetid="ds_send_searchitem" columnid="formcd"/>
  540. </Bind>
  541. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  542. * System Name :
  543. * Job Name :
  544. * Creator :
  545. * Make Date : 2015-11-13
  546. * Description :
  547. *---------------------------------------------------------------------------------------
  548. * Modify Date Modifier Modify Description
  549. *---------------------------------------------------------------------------------------
  550. * 2015-11-13 Live Converter TF->XP
  551. *
  552. *---------------------------------------------------------------------------------------
  553. ****************************************************************************************/
  554. include "com_commonxp::comm_main.xjs";
  555. include "emr_prcpmngtxp::MMO001.xjs";
  556. include "emr_prcpmngtxp::SMMMO00100.xjs";
  557. include "ast_examcurexp::AEZ0001.xjs"
  558. include "ast_examcurexp::combolist.xjs"
  559. var arErrorCode = new HashArray();
  560. function SMANC00200_oninit(obj:Form, e:InitEventInfo)
  561. {
  562. frmf_initForm(obj); //폼 초기화
  563. }
  564. function SMANC00200_onload(obj:Form, e:LoadEventInfo)
  565. {
  566. grdf_setGridSort(group3.grd_data);
  567. finit();
  568. // grd_data.hint = " "; //의뢰기록내용을 말풍선으로 보여주기위함.
  569. // grd_data.attribute("tooltip") = "false"; //의뢰기록내용을 말풍선으로 보여주기위함.
  570. // grd_data.attribute("onshowhint") = "showhint()"; //의뢰기록내용을 말풍선으로 보여주기위함.
  571. //model.setValue("/root/send/searchitem/posdeptcd", getUserInfo("posdeptcd")); //소속부서코드
  572. group3.grp_sea.btn_search.enable = frmf_checkAuth("R");
  573. group4.btn_save.enable = frmf_checkAuth("X");
  574. group3.btn_excel.enable = frmf_checkAuth("P");
  575. var arrParam = [{dsNm: "ds_init_baseinfo_initplace_A160" , cdGrpId: "A160"}
  576. ,{dsNm: "ds_init_baseinfo_canclecmt_A161", cdGrpId: "A161"}
  577. ]
  578. lf_getAstCodeList(arrParam);
  579. // var oParam = {};
  580. // oParam.id = "TRAAA00001";
  581. // oParam.service = "examcurebaseapp.ComCode";
  582. // oParam.method = "reqGetComboList";
  583. // oParam.inds = "cmd=ds_ req=ds_";
  584. // oParam.outds = "ds_=${repeat_ref}";
  585. // oParam.async = false;
  586. // oParam.callback = "cf_TRAAA00001";
  587. //
  588. // tranf_submit(oParam);
  589. //submit("TRANC00202"); //영양사 조회
  590. var oParam = {};
  591. oParam.id = "TRANC00202";
  592. oParam.service = "nutritionconsultapp.PatientNutr";
  593. oParam.method = "reqGetDieter";
  594. oParam.inds = "req=ds_temp";
  595. oParam.outds = "ds_init_basecode_dieter_dieter=dieter ds_init_basecode_dieter_intndieter=intndieter ds_init_basecode_dieter_alldieter=alldieter";
  596. oParam.async = false;
  597. tranf_submit(oParam);
  598. //화면open시 영양관리유형, 질환명에 코드를 setting해준다.
  599. var arrParam = [{dsNm: "ds_init_basecode_nutrmngtkind_A0060", cdGrpId: "A0060"}, {dsNm: "ds_init_basecode_sickcd_A0059", cdGrpId: "A0059"},
  600. {dsNm: "ds_init_baseinfo_canclecmt_A161", cdGrpId: "A161"}];
  601. appf_getCodeList(arrParam, true);
  602. }
  603. function zsdfGetWardDeptList(instcd, rslt_ref, sort_field, sort_method, base_dd, mode){
  604. // zbcfGetDeptCodeList(instcd, "orduseyn", "W", rslt_ref, sort_field, sort_method, base_dd, "", mode);
  605. appf_getDeptCodeList(instcd, "orduseyn", "W", sort_field, sort_method, base_dd, "", mode, rslt_ref, false, null);
  606. }
  607. function finit() {
  608. // 화면open시 공통코드 settingx
  609. //zbcfGetCodeList( new Array( "A0058", "P0149", "P0160" ), new Array( "/root/init/basecode/dngr", "/root/init/basecode/orddept", "/root/init/basecode/ward" ) );
  610. //appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "W", "depthngnm", "asc", "", "", "", "ds_main_ward_dept", true, "");
  611. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "W", "/root/main/ward", "depthngnm", "asc");
  612. appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "D", "depthngnm", "asc", "", "", "", "ds_init_basecode_orddept_dept", false, "");
  613. ds_init_basecode_orddept_dept.insertRow(0);
  614. zsdfGetWardDeptList(sysf_getUserInfo("dutplceinstcd"), "ds_init_basecode_ward_dept", "depthngnm", "asc",utlf_getCurrentDate().toDate().getDateFormat("YYYYMMDD"), "after");
  615. ds_init_basecode_ward_dept.insertRow(0);
  616. appf_getUserCodeList([{dsNm: "ds_UC00014", userCd: "00014"}], true);
  617. ds_UC00014.insertRow(0);
  618. ds_main_item_data.clearData();
  619. ds_send_searchitem.clearData();
  620. ds_send_searchitem.addRow();
  621. ds_send_searchitem.setColumn(0, "reqfromdd", utlf_getCurrentDate());
  622. ds_send_searchitem.setColumn(0, "reqtodd", utlf_getCurrentDate());
  623. ds_send_searchitem.setColumn(0, "patflag", "-");
  624. ds_send_searchitem.setColumn(0, "bizflag", "0");
  625. ds_send_searchitem.setColumn(0, "cnststat", "N");
  626. }
  627. function group3_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  628. {
  629. var reqfromdd = ds_send_searchitem.getColumn(0, "reqfromdd");
  630. var reqtodd = ds_send_searchitem.getColumn(0, "reqtodd");
  631. var rsrvfromdd = ds_send_searchitem.getColumn(0, "rsrvfromdd");
  632. var rsrvtodd = ds_send_searchitem.getColumn(0, "rsrvtodd");
  633. if ((utlf_getDateInterval(reqfromdd, reqtodd) < 0) || (utlf_getDateInterval(rsrvfromdd, rsrvtodd) < 0)) {
  634. sysf_messageBox("조회 시작일은 종료일보다 클 수", "I004");
  635. return;
  636. }
  637. if ( (utlf_isNull(reqfromdd) || utlf_isNull(reqtodd)) && (utlf_isNull(rsrvfromdd) || utlf_isNull(rsrvtodd)) ) {
  638. sysf_messageBox("의뢰일자 또는 예약일자를", "C002");
  639. return;
  640. }
  641. if ( utlf_isNull(reqfromdd) || utlf_isNull(reqtodd)) {
  642. ds_send_searchitem.setColumn(0, "srchflag", "2"); //의뢰일자 없이 예약일자로 조회
  643. } else {
  644. ds_send_searchitem.setColumn(0, "srchflag", "1"); //의뢰일자로 조회
  645. }
  646. var oParam = {};
  647. oParam.id = "TRANC00201";
  648. oParam.service = "nutritionconsultapp.PatientNutr";
  649. oParam.method = "reqGetNutrEduc";
  650. oParam.inds = "req=ds_send_searchitem";
  651. oParam.outds = "ds_main_item_data=ret";
  652. oParam.async = false;
  653. tranf_submit(oParam);
  654. ds_main_item_data.addColumn("h_orddeptcd", "string");
  655. ds_main_item_data.enableevent = false;
  656. ds_main_item_data.updatecontrol = false;
  657. for( var i=0 ; i<ds_main_item_data.rowcount ; i++ ){
  658. ds_main_item_data.setColumn(i, "h_orddeptcd", ds_main_item_data.getColumn(i, "orddept"));
  659. }
  660. ds_main_item_data.updatecontrol = true;
  661. ds_main_item_data.enableevent = true;
  662. if( utlf_isNull(ds_main_item_data.getColumnInfo("prcpstatcd")) ){
  663. ds_main_item_data.addColumn("h_prcpstatcd", "string");
  664. }else{
  665. ds_main_item_data.updateColID("prcpstatcd", "h_prcpstatcd");
  666. }
  667. if( utlf_isNull(ds_main_item_data.getColumnInfo("brthdd")) ){
  668. ds_main_item_data.addColumn("h_brthdd", "string");
  669. }else{
  670. ds_main_item_data.updateColID("brthdd", "h_brthdd");
  671. }
  672. if( utlf_isNull(ds_main_item_data.getColumnInfo("sex")) ){
  673. ds_main_item_data.addColumn("h_sex", "string");
  674. }else{
  675. ds_main_item_data.updateColID("sex", "h_sex");
  676. }
  677. if( utlf_isNull(ds_main_item_data.getColumnInfo("rcptdd")) ){
  678. ds_main_item_data.addColumn("h_rcptdd", "string");
  679. }else{
  680. ds_main_item_data.updateColID("rcptdd", "h_rcptdd");
  681. }
  682. if( utlf_isNull(ds_main_item_data.getColumnInfo("prcpcd")) ){
  683. ds_main_item_data.addColumn("h_prcpcd", "string");
  684. }else{
  685. ds_main_item_data.updateColID("prcpcd", "h_prcpcd");
  686. }
  687. if( utlf_isNull(ds_main_item_data.getColumnInfo("carecnfmrid")) ){
  688. ds_main_item_data.addColumn("h_nurse", "string");
  689. }else{
  690. ds_main_item_data.updateColID("carecnfmrid", "h_nurse");
  691. }
  692. ds_main_item_data.updateColID("cretno", "h_cretno");
  693. ds_main_item_data.updateColID("ioflag", "h_prcpgenrflag");
  694. ds_main_item_data.updateColID("orddd", "h_orddd");
  695. ds_main_item_data.updateColID("formrecseq", "h_formrecseq");
  696. ds_main_item_data.updateColID("cnstseqno", "h_cnstseqno");
  697. ds_main_item_data.updateColID("sau", "h_sau");
  698. ds_main_item_data.updateColID("cnstcnts9", "h_cnstcnts9");
  699. if(ds_main_item_data.rowcount > 0){
  700. ds_main_item_data.enableevent = false;
  701. ds_main_item_data.updatecontrol = false;
  702. for(var i = 0; i < ds_main_item_data.rowcount ;i++){
  703. ds_main_item_data.setColumn(i, "rsrvdd", utlf_trim(ds_main_item_data.getColumn(i, "rsrvdd")));
  704. }
  705. ds_main_item_data.updatecontrol = true;
  706. ds_main_item_data.enableevent = true;
  707. }
  708. }
  709. function group3_grp_sea_cmb_ward_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  710. {
  711. //병동 선택시 환자구분을 입원으로 셋팅
  712. if ( !utlf_isNull(group3.grp_sea.cmb_ward.value)) {
  713. group3.grp_sea.rdo_patflag.value = 'I';
  714. }
  715. }
  716. function group3_grp_sea_rdo_patflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  717. {
  718. //외래 선택시 병동 콤보 clear
  719. if ( group3.grp_sea.rdo_patflag.value == 'O') {
  720. group3.grp_sea.cmb_ward.value = "";
  721. }
  722. }
  723. function group3_grp_sea_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  724. {
  725. if(e.keycode == 13){
  726. group3_grp_sea_btn_search_onclick();
  727. }
  728. }
  729. function group3_grp_sea_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  730. {
  731. if(e.keycode == 13){
  732. group3_grp_sea_btn_search_onclick();
  733. }
  734. }
  735. function group3_grp_sea_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  736. {
  737. var objArg = new Object();
  738. objArg.arg_ds_send = ds_hidden;
  739. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, null, null, null, null, null, null, null, null, "M");
  740. ds_send_searchitem.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  741. ds_send_searchitem.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
  742. }
  743. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  744. {
  745. grdf_exportExcel(group3.grd_data, "영양교육관리" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  746. }
  747. function group3_grd_data_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  748. {
  749. // 소속 기관이 서울성모인 경우만 JCI용 환자별영양관리 화면(SMANC00350) 호출
  750. var instcd = sysf_getUserInfo("dutplceinstcd");
  751. if ( e.row >= 0 && e.col >= 0) {
  752. //경장영양지원의뢰(EN)일 경우 약제팀의 'NST환자관리' 화면 링크
  753. if ( ds_main_item_data.getColumn(ds_main_item_data.rowposition, "formcd") == '0000003019' ) {
  754. ds_temp_cnstinfo.setColumn(0, "pid", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "pid"));
  755. ds_temp_cnstinfo.setColumn(0, "cnstdd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "reqdd"));
  756. ds_temp_cnstinfo.setColumn(0, "cretno", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cretno"));
  757. ds_temp_cnstinfo.setColumn(0, "prcpgenrflag", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_prcpgenrflag"));
  758. ds_temp_cnstinfo.setColumn(0, "orddd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_orddd"));
  759. ds_temp_cnstinfo.setColumn(0, "formrecseq", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_formrecseq"));
  760. ds_temp_cnstinfo.setColumn(0, "formcd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "formcd"));
  761. ds_temp_cnstinfo.setColumn(0, "rgstseqno", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "rgstseqno"));
  762. ds_temp_cnstinfo.setColumn(0, "cnstseqno", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cnstseqno"));
  763. ds_temp_cnstinfo.setColumn(0, "sau", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_sau"));
  764. ds_temp_cnstinfo.setColumn(0, "cnstcnts9", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cnstcnts9"));
  765. // 환자 상단정보 START
  766. var prcpgenrflag = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_prcpgenrflag");
  767. var pid = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "pid");
  768. var orddd = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_orddd");
  769. var cretno = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cretno");
  770. var instcd = sysf_getUserInfo("dutplceinstcd");
  771. var srchdd = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "reqdd");
  772. if(prcpgenrflag == "I") {
  773. srchdd = utlf_getCurrentDate(); // 입원인 경우 현재 일자로 조회 요청서:20191031013
  774. }
  775. var param = prcpgenrflag + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + "▦" + srchdd;
  776. appf_delPatientInfos(); // 상단정보 초기화
  777. appf_initPatientInfo(param);
  778. // 환자 상단정보 EDN
  779. var objArg = new Object();
  780. objArg.arg_ds_temp_cnstinfo = ds_temp_cnstinfo;
  781. frmf_open("SMADC02600", "SMADC02600", objArg, null, null, null, null, null, null, null, null, null, "M");
  782. } else {
  783. // 'E'는 영양교육관리 화면임을 뜻하는 구분자임.
  784. ds_send_popup.setColumn(0, "flag", "E");
  785. ds_send_popup.setColumn(0, "pid", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "pid"));
  786. ds_send_popup.setColumn(0, "hngnm", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "hngnm"));
  787. ds_send_popup.setColumn(0, "reqdd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "reqdd"));
  788. ds_send_popup.setColumn(0, "reqpsn", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "atdoct"));
  789. ds_send_popup.setColumn(0, "educreqcnts", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "educreqcnts"));
  790. ds_send_popup.setColumn(0, "reccnts", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "reccnts"));
  791. ds_send_popup.setColumn(0, "h_cretno", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cretno"));
  792. ds_send_popup.setColumn(0, "h_orddeptcd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "orddept"));
  793. ds_send_popup.setColumn(0, "h_prcpgenrflag",ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_prcpgenrflag"));
  794. ds_send_popup.setColumn(0, "h_orddd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_orddd"));
  795. ds_send_popup.setColumn(0, "h_formrecseq", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_formrecseq"));
  796. ds_send_popup.setColumn(0, "nutrmngtkind", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "nutrmngtkind"));
  797. ds_send_popup.setColumn(0, "execdd", ds_main_item_data.getColumn(ds_main_item_data.rowposition, "execdd"));
  798. // 환자 상단정보 START
  799. var prcpgenrflag = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_prcpgenrflag");
  800. var pid = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "pid");
  801. var orddd = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_orddd");
  802. var cretno = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "h_cretno");
  803. var instcd = sysf_getUserInfo("dutplceinstcd");
  804. var srchdd = ds_main_item_data.getColumn(ds_main_item_data.rowposition, "reqdd");
  805. if(prcpgenrflag == "I") {
  806. srchdd = utlf_getCurrentDate(); // 입원인 경우 현재 일자로 조회 요청서:20191031013
  807. }
  808. var param = prcpgenrflag + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + "▦" + srchdd;
  809. appf_delPatientInfos(); // 상단정보 초기화
  810. appf_initPatientInfo(param);
  811. // 환자 상단정보 EDN
  812. var objArg = new Object();
  813. objArg.arg_ds_main_receivedata = ds_send_popup;
  814. frmf_modal("SMANC00300", "SMANC00300", objArg, null, null, null, null, null, null, null, null, null, "M");
  815. }
  816. }
  817. }
  818. function group3_grd_data_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  819. {
  820. var colidx = group3.grd_data.currentcol;
  821. if(group3.grd_data.getBindCellIndex("body", "reccnts") == colidx){
  822. ds_send_popup.setColumn(0, "reccnts", "");
  823. group3.grp_reccnts.visible = true;
  824. var rownum = ds_main_item_data.rowposition;
  825. var reccnts = ds_main_item_data.getColumn(rownum, "reccnts");
  826. ds_send_popup.setColumn(0, "reccnts",reccnts);
  827. }
  828. }
  829. function group3_grp_reccnts_button4_onclick(obj:Button, e:ClickEventInfo)
  830. {
  831. group3.grp_reccnts.visible = false;
  832. }
  833. function group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. if ( sysf_messageBox("", "Q002") == 6 ) {
  836. var temp = grdf_getGridUpdateData(group3.grd_data);
  837. if(!utlf_isNull(temp) && temp.rowcount > 0){
  838. ds_send_req_list.copyData(temp);
  839. ds_send_req_list.enableevent = false;
  840. ds_send_req_list.updatecontrol = false;
  841. ds_send_req_list.addColumn("formrecseq", "string");
  842. for(var i = 0; i < ds_send_req_list.rowcount;i++){
  843. ds_send_req_list.setColumn(i, "formrecseq", ds_send_req_list.getColumn(i, "h_formrecseq"));
  844. }
  845. ds_send_req_list.updatecontrol = true;
  846. ds_send_req_list.enableevent = true;
  847. //EDUCTM
  848. var oParam = {};
  849. oParam.id = "TXANC00201";
  850. oParam.service = "nutritionconsultapp.PatientNutr";
  851. oParam.method = "reqExeNutrEduc";
  852. oParam.inds = "req=ds_send_req_list";
  853. oParam.outds = "";
  854. oParam.async = false;
  855. oParam.callback = "cf_TXANC00201";
  856. tranf_submit(oParam);
  857. if (arErrorCode.pop("TXANC00201") > -1) {
  858. var oParam = {};
  859. oParam.id = "TRANC00201";
  860. oParam.service = "nutritionconsultapp.PatientNutr";
  861. oParam.method = "reqGetNutrEduc";
  862. oParam.inds = "req=ds_send_searchitem";
  863. oParam.outds = "ds_main_item_data=ret";
  864. oParam.async = false;
  865. tranf_submit(oParam);
  866. ds_main_item_data.addColumn("h_orddeptcd", "string");
  867. ds_main_item_data.enableevent = false;
  868. ds_main_item_data.updatecontrol = false;
  869. for( var i=0 ; i<ds_main_item_data.rowcount ; i++ ){
  870. ds_main_item_data.setColumn(i, "h_orddeptcd", ds_main_item_data.getColumn(i, "orddept"));
  871. }
  872. ds_main_item_data.updatecontrol = true;
  873. ds_main_item_data.enableevent = true;
  874. if( utlf_isNull(ds_main_item_data.getColumnInfo("prcpstatcd")) ){
  875. ds_main_item_data.addColumn("h_prcpstatcd", "string");
  876. }else{
  877. ds_main_item_data.updateColID("prcpstatcd", "h_prcpstatcd");
  878. }
  879. if( utlf_isNull(ds_main_item_data.getColumnInfo("brthdd")) ){
  880. ds_main_item_data.addColumn("h_brthdd", "string");
  881. }else{
  882. ds_main_item_data.updateColID("brthdd", "h_brthdd");
  883. }
  884. if( utlf_isNull(ds_main_item_data.getColumnInfo("sex")) ){
  885. ds_main_item_data.addColumn("h_sex", "string");
  886. }else{
  887. ds_main_item_data.updateColID("sex", "h_sex");
  888. }
  889. if( utlf_isNull(ds_main_item_data.getColumnInfo("rcptdd")) ){
  890. ds_main_item_data.addColumn("h_rcptdd", "string");
  891. }else{
  892. ds_main_item_data.updateColID("rcptdd", "h_rcptdd");
  893. }
  894. if( utlf_isNull(ds_main_item_data.getColumnInfo("prcpcd")) ){
  895. ds_main_item_data.addColumn("h_prcpcd", "string");
  896. }else{
  897. ds_main_item_data.updateColID("prcpcd", "h_prcpcd");
  898. }
  899. if( utlf_isNull(ds_main_item_data.getColumnInfo("carecnfmrid")) ){
  900. ds_main_item_data.addColumn("h_nurse", "string");
  901. }else{
  902. ds_main_item_data.updateColID("carecnfmrid", "h_nurse");
  903. }
  904. ds_main_item_data.updateColID("cretno", "h_cretno");
  905. ds_main_item_data.updateColID("ioflag", "h_prcpgenrflag");
  906. ds_main_item_data.updateColID("orddd", "h_orddd");
  907. ds_main_item_data.updateColID("formrecseq", "h_formrecseq");
  908. ds_main_item_data.updateColID("cnstseqno", "h_cnstseqno");
  909. ds_main_item_data.updateColID("sau", "h_sau");
  910. ds_main_item_data.updateColID("cnstcnts9", "h_cnstcnts9");
  911. if(ds_main_item_data.rowcount > 0){
  912. ds_main_item_data.enableevent = false;
  913. ds_main_item_data.updatecontrol = false;
  914. for(var i = 0; i < ds_main_item_data.rowcount ;i++){
  915. ds_main_item_data.setColumn(i, "rsrvdd", utlf_trim(ds_main_item_data.getColumn(i, "rsrvdd")));
  916. }
  917. ds_main_item_data.updatecontrol = true;
  918. ds_main_item_data.enableevent = true;
  919. }
  920. }
  921. }
  922. } else { return; }
  923. }
  924. function cf_TXANC00201(sSvcId, nErrorCode, sErrorMsg) {
  925. arErrorCode.push(sSvcId, nErrorCode);
  926. }
  927. function group3_grp_sea_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  928. {
  929. if( obj.value == "Y" ){
  930. group3.grp_sea.ipt_reqfromdd.enable = false;
  931. group3.grp_sea.ipt_reqtodd.enable = false;
  932. group3.grp_sea.ipt_reqfromdd.value = "";
  933. group3.grp_sea.ipt_reqtodd.value = "";
  934. group3.grp_sea.ipt_rsrvfromdd.value = utlf_getCurrentDate();
  935. group3.grp_sea.ipt_rsrvtodd.value = utlf_getCurrentDate();
  936. group3.grp_sea.ipt_rsrvfromdd.enable = true;
  937. group3.grp_sea.ipt_rsrvtodd.enable = true;
  938. group3.grp_sea.cmb_cnststat.index = 2 ;
  939. }else{
  940. group3.grp_sea.ipt_reqfromdd.enable = true;
  941. group3.grp_sea.ipt_reqtodd.enable = true;
  942. group3.grp_sea.ipt_reqfromdd.value = utlf_getCurrentDate();
  943. group3.grp_sea.ipt_reqtodd.value = utlf_getCurrentDate();
  944. group3.grp_sea.ipt_rsrvfromdd.value = "";
  945. group3.grp_sea.ipt_rsrvtodd.value = "";
  946. group3.grp_sea.ipt_rsrvfromdd.enable = false;
  947. group3.grp_sea.ipt_rsrvtodd.enable = false;
  948. group3.grp_sea.cmb_cnststat.index = 1 ;
  949. }
  950. }
  951. function SMANC00200_onclose(obj:Form, e:CloseEventInfo)
  952. {
  953. appf_delPatientInfos(); // 상단정보 clear
  954. }
  955. ]]></Script>
  956. </Form>
  957. </FDL>