SMMNE11000_응급실 인계장.xfdl 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE11000" position="absolute 0 0 1191 800" titletext="응급실 일일 업무 현황" oninit="SMMNE11000_oninit" onload="SMMNE11000_onload" ontimer="SMMNE11000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1186 790" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 25 800 55" align="align:center top;" id="grp_sea" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 800 30" id="roundrect3" class="roundrect_search" type="roundrectangle" anchor="default"/>
  14. <Static text="업무일자 :" position="absolute 13 6 130 23" id="caption17" class="search_name" anchor="default"/>
  15. <Calendar position="absolute 109 5 210 24" id="ipt_orddd" class="input_search" enable="false" anchor="default"/>
  16. <Button position="absolute 730 5 786 27" id="button1" class="btn1" text="조회" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
  17. <Shape position="absolute 719 4 725 26" linetype="vertical" id="line9" class="line_4" anchor="default"/>
  18. <Static text="인계사항 조회구분 :" position="absolute 237 6 385 23" id="caption8" class="search_name" anchor="default"/>
  19. <Radio position="absolute 391 5 480 25" align="align:center middle;" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group5_grp_sea_radio1_onitemchanged">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">R</Col>
  28. <Col id="datacolumn">최근</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">P</Col>
  32. <Col id="datacolumn">과거</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Radio>
  37. <Static text="(과거조회는 인계사항만 가능)" position="absolute 480 5 644 25" id="caption9" anchor="default"/>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Static text="응급실 일일 업무 현황" position="absolute 0 0 160 25" id="caption6" class="tit_1" anchor="default"/>
  42. <Shape position="absolute 0 400 800 406" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
  43. <TextArea position="absolute 81 65 800 375" id="tex_0team" wordwrap="char" anchor="default"/>
  44. <Shape position="absolute 0 60 800 66" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  45. <Static text="인계사항" position="absolute 0 65 80 375" align="align:center middle;" id="caption3" class="cell_1" anchor="default"/>
  46. <Shape position="absolute 805 645 1185 651" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
  47. <Shape position="absolute 805 400 1185 406" linetype="horizontal" id="line5" class="line_10" anchor="default"/>
  48. <Shape position="absolute 805 60 1185 66" linetype="horizontal" id="line6" class="line_10" anchor="default"/>
  49. <Grid position="absolute 805 650 1185 790" id="grd_article" binddataset="ds_erworkinfo_articlelist" autofittype="col" anchor="default" oncloseup="group5_grd_article_oncloseup" autoenter="select">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="24"/>
  54. <Column size="65"/>
  55. <Column size="45"/>
  56. <Column size="98"/>
  57. <Column size="135"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="24" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="병동"/>
  70. <Cell col="2" text="구분"/>
  71. <Cell col="3" text="IN/OUT 일자"/>
  72. <Cell col="4" text="물품"/>
  73. <Cell col="5" text="seqno"/>
  74. <Cell col="6" text="mwardcd"/>
  75. <Cell col="7" text="recdd"/>
  76. <Cell col="8" text="rectm"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head"/>
  80. <Cell col="1" displaytype="combo" edittype="combo" style="padding:0 2 0 2;" text="bind:owardcd" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="30"/>
  81. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 2 0 2;" text="bind:gubun" combodataset="ds_gubun" combocodecol="code" combodatacol="name"/>
  82. <Cell col="3" displaytype="date" edittype="date" text="bind:iodd" maskchar=" " calendardisplay="edit" calendardisplaynulltype="none"/>
  83. <Cell col="4" displaytype="text" edittype="text" text="bind:article"/>
  84. <Cell col="5" text="bind:seqno"/>
  85. <Cell col="6" text="bind:mwardcd"/>
  86. <Cell col="7" text="bind:recdd"/>
  87. <Cell col="8" text="bind:rectm"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Grid position="absolute 805 405 1185 620" id="grd_inbcklist" binddataset="ds_erworkinfo_inbcklist" autofittype="col" anchor="default" oncloseup="group5_grd_inbcklist_oncloseup" autoenter="select">
  93. <Formats>
  94. <Format id="default">
  95. <Columns>
  96. <Column size="23"/>
  97. <Column size="50"/>
  98. <Column size="75"/>
  99. <Column size="70"/>
  100. <Column size="70"/>
  101. <Column size="70"/>
  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. </Columns>
  109. <Rows>
  110. <Row size="24" band="head"/>
  111. <Row size="24"/>
  112. </Rows>
  113. <Band id="head">
  114. <Cell celltype="head"/>
  115. <Cell col="1" text="Bed"/>
  116. <Cell col="2" text="환자명"/>
  117. <Cell col="3" text="I/O"/>
  118. <Cell col="4" text="NPO"/>
  119. <Cell col="5" text="BST"/>
  120. <Cell col="6" text="inbckyn"/>
  121. <Cell col="7" text="recdd"/>
  122. <Cell col="8" text="rectm"/>
  123. <Cell col="9" text="instcd"/>
  124. <Cell col="10" text="indd"/>
  125. <Cell col="11" text="cretno"/>
  126. </Band>
  127. <Band id="body">
  128. <Cell celltype="head"/>
  129. <Cell col="1" text="bind:bedposcnts"/>
  130. <Cell col="2" displaytype="combo" edittype="combo" text="bind:pid" combodataset="ds_init_patinfo_patlist" combocodecol="pid" combodatacol="patnm" combodisplayrowcount="20"/>
  131. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:ioyn"/>
  132. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:npoyn"/>
  133. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:bstyn"/>
  134. <Cell col="6" text="bind:inbckyn"/>
  135. <Cell col="7" text="bind:recdd"/>
  136. <Cell col="8" text="bind:rectm"/>
  137. <Cell col="9" text="bind:instcd"/>
  138. <Cell col="10" text="bind:indd"/>
  139. <Cell col="11" text="bind:cretno"/>
  140. </Band>
  141. </Format>
  142. </Formats>
  143. </Grid>
  144. <Grid position="absolute 805 65 1185 375" id="grd_catheter" binddataset="ds_erworkinfo_catheterlist" anchor="default" autoenter="select">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="50"/>
  149. <Column size="65"/>
  150. <Column size="60"/>
  151. <Column size="90"/>
  152. <Column size="50"/>
  153. <Column size="40"/>
  154. <Column size="100"/>
  155. <Column size="0"/>
  156. </Columns>
  157. <Rows>
  158. <Row size="24" band="head"/>
  159. <Row size="24"/>
  160. </Rows>
  161. <Band id="head">
  162. <Cell text="Bed"/>
  163. <Cell col="1" text="환자명"/>
  164. <Cell col="2" text="등록번호"/>
  165. <Cell col="3" text="ITEM"/>
  166. <Cell col="4" text="부위"/>
  167. <Cell col="5" text="구분"/>
  168. <Cell col="6" text="시행일시"/>
  169. <Cell col="7" text="S/A"/>
  170. </Band>
  171. <Band id="body">
  172. <Cell text="bind:bedposcnts"/>
  173. <Cell col="1" text="bind:patnm"/>
  174. <Cell col="2" text="bind:pid"/>
  175. <Cell col="3" text="bind:itemnm"/>
  176. <Cell col="4" text="bind:loc"/>
  177. <Cell col="5" text="bind:opflag"/>
  178. <Cell col="6" text="bind:opdt"/>
  179. <Cell col="7" text="bind:sexage"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. <Button position="absolute 5 70 47 89" id="btn_0team" class="btn5" text="저장" anchor="default" onclick="group5_btn_0team_onclick"/>
  185. <Static text="물품현황" position="absolute 805 629 940 646" id="caption1" class="tit_2" anchor="default"/>
  186. <Static text="IO/ NPO/ BST 현황" position="absolute 805 384 966 401" id="caption2" class="tit_2" anchor="default"/>
  187. <Static text="미수행 검사처방" position="absolute 0 384 135 401" id="caption4" class="tit_2" anchor="default"/>
  188. <Static text="삽관현황" position="absolute 805 44 940 61" id="caption5" class="tit_2" anchor="default"/>
  189. <Button position="absolute 1036 625 1089 644" id="button4" class="btn2" text="행추가" anchor="default" onclick="group5_button4_onclick"/>
  190. <Button position="absolute 1090 625 1143 644" id="button5" class="btn2" text="행삭제" anchor="default" onclick="group5_button5_onclick"/>
  191. <Button position="absolute 1144 625 1186 644" id="button78" class="btn5" text="저장" anchor="default" onclick="group5_button78_onclick"/>
  192. <Button position="absolute 1035 380 1088 399" id="button2" class="btn2" text="행추가" anchor="default" onclick="group5_button2_onclick"/>
  193. <Button position="absolute 1089 380 1142 399" id="button3" class="btn2" text="행삭제" anchor="default" onclick="group5_button3_onclick"/>
  194. <Button position="absolute 1143 380 1185 399" id="button6" class="btn5" text="저장" anchor="default" onclick="group5_button6_onclick"/>
  195. <Grid position="absolute 0 650 800 790" id="grd_etcmemolist" binddataset="ds_erworkinfo_etcmemolist" autofittype="col" anchor="default" autoenter="select">
  196. <Formats>
  197. <Format id="default">
  198. <Columns>
  199. <Column size="23"/>
  200. <Column size="590"/>
  201. <Column size="60"/>
  202. <Column size="105"/>
  203. <Column size="0"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. </Columns>
  208. <Rows>
  209. <Row size="24" band="head"/>
  210. <Row size="24"/>
  211. </Rows>
  212. <Band id="head">
  213. <Cell/>
  214. <Cell col="1" text="메모내용(CTRL + ENTER시 다음줄에 기입가능)"/>
  215. <Cell col="2" text="작성자"/>
  216. <Cell col="3" text="작성일시"/>
  217. <Cell col="4" text="recdd"/>
  218. <Cell col="5" text="rectm"/>
  219. <Cell col="6" text="seqno"/>
  220. <Cell col="7" text="wardcd"/>
  221. </Band>
  222. <Band id="body">
  223. <Cell celltype="head"/>
  224. <Cell col="1" displaytype="text" edittype="text" text="bind:memocnts"/>
  225. <Cell col="2" text="bind:recnm"/>
  226. <Cell col="3" displaytype="text" text="bind:recdt" mask="####-##-## ##:##"/>
  227. <Cell col="4" text="bind:recdd"/>
  228. <Cell col="5" text="bind:rectm"/>
  229. <Cell col="6" text="bind:seqno"/>
  230. <Cell col="7" text="bind:wardcd"/>
  231. </Band>
  232. </Format>
  233. </Formats>
  234. </Grid>
  235. <Static text="기타 메모" position="absolute 0 629 135 646" id="caption7" class="tit_2" anchor="default"/>
  236. <Shape position="absolute 0 645 800 651" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  237. <Button position="absolute 650 625 703 644" id="button7" class="btn2" text="행추가" anchor="default" onclick="group5_button7_onclick"/>
  238. <Button position="absolute 704 625 757 644" id="button8" class="btn2" text="행삭제" anchor="default" onclick="group5_button8_onclick"/>
  239. <Button position="absolute 758 625 800 644" id="button9" class="btn5" text="저장" anchor="default" onclick="group5_button9_onclick"/>
  240. <Grid position="absolute 0 405 800 620" id="grd_testlist" class="datagrid" binddataset="ds_erworkinfo_testlist" anchor="default" cellsizingtype="both" autofittype="none" autosizingtype="row" extendsizetype="row" autoenter="select">
  241. <Formats>
  242. <Format id="default">
  243. <Columns>
  244. <Column size="26"/>
  245. <Column size="50"/>
  246. <Column size="60"/>
  247. <Column size="60"/>
  248. <Column size="70"/>
  249. <Column size="240"/>
  250. <Column size="230"/>
  251. <Column size="80"/>
  252. <Column size="75"/>
  253. <Column size="0"/>
  254. <Column size="0"/>
  255. <Column size="0"/>
  256. <Column size="0"/>
  257. <Column size="0"/>
  258. <Column size="0"/>
  259. <Column size="0"/>
  260. <Column size="0"/>
  261. </Columns>
  262. <Rows>
  263. <Row size="24" band="head"/>
  264. <Row size="24"/>
  265. </Rows>
  266. <Band id="head">
  267. <Cell/>
  268. <Cell col="1" text="Bed"/>
  269. <Cell col="2" text="환자명"/>
  270. <Cell col="3" text="등록번호"/>
  271. <Cell col="4" text="처방코드"/>
  272. <Cell col="5" text="처방명"/>
  273. <Cell col="6" text="전처치 내용"/>
  274. <Cell col="7" text="처방적용일자"/>
  275. <Cell col="8" text="예약일자"/>
  276. <Cell col="9" text="sexage"/>
  277. <Cell col="10" text="instcd"/>
  278. <Cell col="11" text="indd"/>
  279. <Cell col="12" text="cretno"/>
  280. <Cell col="13" text="prcpdd"/>
  281. <Cell col="14" text="prcpno"/>
  282. <Cell col="15" text="recdd"/>
  283. <Cell col="16" text="rectm"/>
  284. </Band>
  285. <Band id="body">
  286. <Cell celltype="head"/>
  287. <Cell col="1" style="align:left;padding:0 2 0 2;" text="bind:bedposcnts"/>
  288. <Cell col="2" style="align:left;padding:0 2 0 2;" text="bind:patnm"/>
  289. <Cell col="3" text="bind:pid"/>
  290. <Cell col="4" style="align:left;padding:0 2 0 2;" text="bind:prcpcd"/>
  291. <Cell col="5" style="align:left;padding:1 2 1 2;" text="bind:prcpnm" wordwrap="char" autosizerow="limitmin"/>
  292. <Cell col="6" displaytype="text" edittype="text" text="bind:precnts"/>
  293. <Cell col="7" edittype="mask" text="bind:prcphopedd" mask="####-##-##"/>
  294. <Cell col="8" edittype="mask" text="bind:rsrvdd" mask="####-##-##"/>
  295. <Cell col="9" text="bind:sexage"/>
  296. <Cell col="10" text="bind:instcd"/>
  297. <Cell col="11" text="bind:indd"/>
  298. <Cell col="12" text="bind:cretno"/>
  299. <Cell col="13" text="bind:prcpdd"/>
  300. <Cell col="14" text="bind:prcpno"/>
  301. <Cell col="15" text="bind:recdd"/>
  302. <Cell col="16" text="bind:rectm"/>
  303. </Band>
  304. </Format>
  305. </Formats>
  306. </Grid>
  307. <Button position="absolute 1120 40 1185 59" id="btn_zoom" class="btn2" text="확대하기" anchor="default" onclick="group5_btn_zoom_onclick"/>
  308. <Button position="absolute 758 380 800 399" id="button10" class="btn5" text="저장" anchor="default" onclick="group5_button10_onclick"/>
  309. <Button position="absolute 693 380 757 399" id="button11" class="btn2" text="조회기준" anchor="default" onclick="group5_button11_onclick"/>
  310. </Layout>
  311. </Layouts>
  312. </Div>
  313. </Layout>
  314. </Layouts>
  315. <Objects>
  316. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="recdd" type="STRING" size="256"/>
  319. <Column id="wardcd" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. <Rows>
  322. <Row/>
  323. </Rows>
  324. </Dataset>
  325. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  326. <Dataset id="ds_init_patinfo_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  327. <ColumnInfo>
  328. <Column id="patnm" type="STRING" size="256"/>
  329. <Column id="pid" type="STRING" size="256"/>
  330. </ColumnInfo>
  331. </Dataset>
  332. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="srchflag" type="STRING" size="256"/>
  335. <Column id="erworkinfo" type="STRING" size="256"/>
  336. </ColumnInfo>
  337. <Rows>
  338. <Row>
  339. <Col id="srchflag">R</Col>
  340. </Row>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_memoinfo_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  344. <ColumnInfo>
  345. <Column id="teamid" type="STRING" size="256" sumtext="팀번호"/>
  346. <Column id="memocnts" type="STRING" size="256" sumtext="메모내용"/>
  347. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종작성자id"/>
  348. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종작성자명"/>
  349. <Column id="recdt" type="STRING" size="256" sumtext="기록일시"/>
  350. </ColumnInfo>
  351. </Dataset>
  352. <Dataset id="ds_erworkinfo_catheterlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  355. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  356. <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
  357. <Column id="bedposcnts" type="STRING" size="256" sumtext="Bed"/>
  358. <Column id="itemnm" type="STRING" size="256" sumtext="item명"/>
  359. <Column id="loc" type="STRING" size="256" sumtext="부위"/>
  360. <Column id="opflag" type="STRING" size="256" sumtext="구분"/>
  361. <Column id="opdt" type="STRING" size="256" sumtext="시행일시"/>
  362. </ColumnInfo>
  363. </Dataset>
  364. <Dataset id="ds_erworkinfo_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  365. <ColumnInfo>
  366. <Column id="instcd" type="STRING" size="256" sumtext="기간코드"/>
  367. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  368. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  369. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  370. <Column id="bedposcnts" type="STRING" size="256" sumtext="Bed"/>
  371. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  372. <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
  373. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  374. <Column id="prcpno" type="STRING" size="256" sumtext="처방일련번호"/>
  375. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  376. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  377. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방적용일자"/>
  378. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  379. <Column id="precnts" type="STRING" size="256" sumtext="전처치내용"/>
  380. <Column id="recdd" type="STRING" size="256" sumtext="작성일자"/>
  381. <Column id="rectm" type="STRING" size="256" sumtext="작성시간"/>
  382. </ColumnInfo>
  383. </Dataset>
  384. <Dataset id="ds_erworkinfo_inbcklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_erworkinfo_inbcklist_oncolumnchanged">
  385. <ColumnInfo>
  386. <Column id="instcd" type="STRING" size="256" sumtext="기간코드"/>
  387. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  388. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  389. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  390. <Column id="bedposcnts" type="STRING" size="256" sumtext="Bed"/>
  391. <Column id="ioyn" type="STRING" size="256" sumtext="IO"/>
  392. <Column id="npoyn" type="STRING" size="256" sumtext="NPO"/>
  393. <Column id="bstyn" type="STRING" size="256" sumtext="BST"/>
  394. <Column id="inbckyn" type="STRING" size="256" sumtext="작성여부"/>
  395. <Column id="recdd" type="STRING" size="256" sumtext="작성일자"/>
  396. <Column id="rectm" type="STRING" size="256" sumtext="작성시간"/>
  397. </ColumnInfo>
  398. </Dataset>
  399. <Dataset id="ds_erworkinfo_etcmemolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  400. <ColumnInfo>
  401. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  402. <Column id="memocnts" type="STRING" size="256" sumtext="메모내용"/>
  403. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  404. <Column id="recnm" type="STRING" size="256" sumtext="작성자"/>
  405. <Column id="recdt" type="STRING" size="256" sumtext="작성일시"/>
  406. <Column id="recdd" type="STRING" size="256" sumtext="작성일자"/>
  407. <Column id="rectm" type="STRING" size="256" sumtext="작성시간"/>
  408. </ColumnInfo>
  409. </Dataset>
  410. <Dataset id="ds_erworkinfo_articlelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  411. <ColumnInfo>
  412. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  413. <Column id="mwardcd" type="STRING" size="256" sumtext="내병동"/>
  414. <Column id="owardcd" type="STRING" size="256" sumtext="물품 IN/OUT 병동"/>
  415. <Column id="gubun" type="STRING" size="256" sumtext="물품 IN/OUT 구분"/>
  416. <Column id="article" type="STRING" size="256" sumtext="물품"/>
  417. <Column id="iodd" type="STRING" size="256" sumtext="IN/OUT 일시"/>
  418. <Column id="recdd" type="STRING" size="256" sumtext="작성일자"/>
  419. <Column id="rectm" type="STRING" size="256" sumtext="작성시간"/>
  420. </ColumnInfo>
  421. </Dataset>
  422. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  423. <Dataset id="ds_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  424. <ColumnInfo>
  425. <Column id="code" type="STRING" size="256"/>
  426. <Column id="name" type="STRING" size="256"/>
  427. </ColumnInfo>
  428. <Rows>
  429. <Row>
  430. <Col id="name">IN</Col>
  431. <Col id="code">I</Col>
  432. </Row>
  433. <Row>
  434. <Col id="name">OUT</Col>
  435. <Col id="code">O</Col>
  436. </Row>
  437. </Rows>
  438. </Dataset>
  439. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  440. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  441. <Dataset id="ds_send_savedata_condinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  442. </Objects>
  443. <Bind>
  444. <BindItem id="item0" compid="group5.tex_0team" propid="value" datasetid="ds_memoinfo_memolist" columnid="memocnts"/>
  445. <BindItem id="item1" compid="group5.grp_sea.ipt_orddd" propid="value" datasetid="ds_cond" columnid="recdd"/>
  446. <BindItem id="item2" compid="group5.grp_sea.radio1" propid="value" datasetid="ds_hidden" columnid="srchflag"/>
  447. </Bind>
  448. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  449. * System Name :
  450. * Job Name :
  451. * Creator :
  452. * Make Date : 2016-10-10
  453. * Description :
  454. *---------------------------------------------------------------------------------------
  455. * Modify Date Modifier Modify Description
  456. *---------------------------------------------------------------------------------------
  457. * 2016-10-10 Live Converter TF->XP
  458. *
  459. *---------------------------------------------------------------------------------------
  460. ****************************************************************************************/
  461. include "com_commonxp::comm_main.xjs";
  462. include "emr_carecomxp::CareCom.xjs";
  463. var arErrorCode = new HashArray();
  464. function SMMNE11000_oninit(obj:Form, e:InitEventInfo)
  465. {
  466. frmf_initForm(obj);
  467. }
  468. function SMMNE11000_onload(obj:Form, e:LoadEventInfo)
  469. {
  470. grdf_setRowTypeIcon(group5.grd_testlist, 0);
  471. grdf_setRowTypeIcon(group5.grd_inbcklist, 0);
  472. grdf_setRowTypeIcon(group5.grd_etcmemolist, 0);
  473. grdf_setRowTypeIcon(group5.grd_article, 0);
  474. var dt = utlf_getCurrentDate();
  475. var pCode = "'W18'"; // 조회할 CdGrupID 코드정보
  476. fGetNursHardCdInfo(pCode, dt);
  477. ds_cond.setColumn(0, "recdd", utlf_getCurrentDate());
  478. ds_cond.setColumn(0, "wardcd", "2280200000");
  479. //속도개선
  480. this.setTimer(0, 100);
  481. // fPatInfo();
  482. // fMomoSearch();
  483. // fSearch() ;
  484. }
  485. function fPatInfo(){
  486. ds_send_reqdata.clearData();
  487. dsf_makeValue(ds_send_reqdata, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  488. dsf_makeValue(ds_send_reqdata, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  489. var oParam = {};
  490. oParam.id = "TRMNE11001";
  491. oParam.service = "ercareapp.ERRgst";
  492. oParam.method = "reqGetErPatInfo";
  493. oParam.inds = "reqdata=ds_send_reqdata";
  494. oParam.outds = "ds_init_patinfo_patlist=patlist";
  495. oParam.async = false;
  496. //oParam.callback = "cf_TRMNE11001";
  497. tranf_submit(oParam);
  498. }
  499. function fMomoSearch(){
  500. ds_send_reqdata.clearData();
  501. dsf_makeValue(ds_send_reqdata, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  502. dsf_makeValue(ds_send_reqdata, "teamid", "string", "0");
  503. if ( ds_hidden.getColumn(0, "srchflag") == "P" ) //조회구분이 과거이면 업무일자로 조회, 아니면 최근 메모 조회
  504. {
  505. dsf_makeValue(ds_send_reqdata, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  506. }
  507. var oParam = {};
  508. oParam.id = "TRMNB00206";
  509. oParam.service = "wardcareapp.WardCareMngt";
  510. oParam.method = "reqGetTeamMemoList";
  511. oParam.inds = "reqdata=ds_send_reqdata";
  512. oParam.outds = "ds_memoinfo_memolist=memolist";
  513. oParam.async = false;
  514. tranf_submit(oParam);
  515. if(ds_memoinfo_memolist.rowcount == 0){
  516. dsf_makeValue(ds_memoinfo_memolist, "teamid", "string", 0);
  517. dsf_makeValue(ds_memoinfo_memolist, "memocnts", "string", "");
  518. }
  519. }
  520. function fSearch(){
  521. ds_send_reqdata.clearData();
  522. ds_erworkinfo_catheterlist.clearData();
  523. dsf_makeValue(ds_send_reqdata, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  524. dsf_makeValue(ds_send_reqdata, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  525. var oParam = {};
  526. oParam.id = "TRMNE11000";
  527. oParam.service = "ercareapp.ERRgst";
  528. oParam.method = "reqGetErWorkInfo";
  529. oParam.inds = "reqdata=ds_send_reqdata";
  530. oParam.outds = "ds_erworkinfo_catheterlist=catheterlist ds_erworkinfo_testlist=testlist ds_erworkinfo_inbcklist=inbcklist ds_erworkinfo_etcmemolist=etcmemolist ds_erworkinfo_articlelist=articlelist";
  531. oParam.async = false;
  532. //oParam.callback = "cf_TRMNE11000";
  533. tranf_submit(oParam);
  534. }
  535. function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  536. {
  537. fMomoSearch();
  538. fSearch() ;
  539. }
  540. function group5_grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  541. {
  542. if ( ds_hidden.getColumn(0, "srchflag") == "P" ){
  543. group5.grp_sea.ipt_orddd.enable = true;
  544. }else{
  545. ds_cond.setColumn(0, "recdd", utlf_getCurrentDate());
  546. group5.grp_sea.ipt_orddd.enable = false;
  547. }
  548. }
  549. function group5_btn_0team_onclick(obj:Button, e:ClickEventInfo)
  550. {
  551. fSaveMemo("0");
  552. }
  553. function fSaveMemo(teamid)
  554. {
  555. if(ds_cond.getColumn(0, "recdd") != utlf_getCurrentDate()){
  556. sysf_messageBox("인계사항은 현재일자로 작성된 건만 저장 가능합니다.\n\n업무일자를 확인해주십시오.", "E");
  557. return;
  558. }
  559. if(utlf_isNull(ds_memoinfo_memolist.getColumn(0, "memocnts"))){
  560. sysf_messageBox("인계사항을", "C001");//" 입력하십시오."
  561. fMomoSearch() ;
  562. return;
  563. }
  564. ds_send_reqdata.clearData();
  565. ds_send_reqdata.copyData(ds_cond);
  566. dsf_makeValue(ds_send_reqdata, "memocnts", "string", ds_memoinfo_memolist.getColumn(0, "memocnts"));
  567. dsf_makeValue(ds_send_reqdata, "teamid", "string", teamid);
  568. var text = ds_send_reqdata.getColumn(0, "memocnts");
  569. var arr = utlf_transNullToEmpty(text).split("\n");
  570. if(arr.length < 76){
  571. var oParam = {};
  572. oParam.id = "TXMNB00206";
  573. oParam.service = "wardcareapp.WardCareMngt";
  574. oParam.method = "reqExeTeamMemoList";
  575. oParam.inds = "reqdata=ds_send_reqdata";
  576. oParam.outds = "ds_memoinfo_memolist=memolist";
  577. oParam.async = false;
  578. oParam.callback = "cf_TXMNB00206";
  579. tranf_submit(oParam);
  580. if (arErrorCode.pop("TXMNB00206") > -1)
  581. {
  582. sysf_messageBox("저장되었습니다","I");
  583. fMomoSearch() ;
  584. }
  585. }else{
  586. sysf_messageBox("줄수가 초과 되었습니다.","C");
  587. }
  588. }
  589. function cf_TXMNB00206(sSvcId, nErrorCode, sErrorMsg) {
  590. arErrorCode.push(sSvcId, nErrorCode);
  591. }
  592. function group5_btn_zoom_onclick(obj:Button, e:ClickEventInfo)
  593. {
  594. if ( group5.btn_zoom.text == "확대하기" ) {
  595. group5.btn_zoom.text = "축소하기";
  596. group5.grd_catheter.position.left = "630";
  597. group5.grd_catheter.position.width = "555";
  598. group5.grd_catheter.setFormatColProperty("itemnm", "size", eval(group5.grd_catheter.getFormatColProperty("itemnm", "size")) + 50);
  599. group5.grd_catheter.setFormatColProperty("loc", "size", eval(group5.grd_catheter.getFormatColProperty("loc", "size")) + 20);
  600. } else {
  601. group5.btn_zoom.text = "확대하기";
  602. group5.grd_catheter.position.left = "805";
  603. group5.grd_catheter.position.width = "380";
  604. group5.grd_catheter.setFormatColProperty("itemnm", "size", eval(group5.grd_catheter.getFormatColProperty("itemnm", "size")) - 50);
  605. group5.grd_catheter.setFormatColProperty("loc", "size", eval(group5.grd_catheter.getFormatColProperty("loc", "size")) - 20);
  606. }
  607. }
  608. function group5_button11_onclick(obj:Button, e:ClickEventInfo)
  609. {
  610. frmf_modal("SPMNE13000", "SPMNE13000", "", null, "", "", "", null, null, null, null, null, "M");
  611. fSearch() ;
  612. }
  613. function group5_button10_onclick(obj:Button, e:ClickEventInfo)
  614. {
  615. fExeTestList();
  616. }
  617. function fExeTestList() {
  618. //var testcnts = group5.grd_testlist.getUpdateData();
  619. //var testcnts = ds_erworkinfo_testlist.rowcount;
  620. //그리드 저장조건
  621. for (var i = 0; i < ds_erworkinfo_testlist.rowcount; i++) {
  622. dsf_makeValue(ds_erworkinfo_testlist, "recdd", "string", utlf_getCurrentDate(), i);
  623. dsf_makeValue(ds_erworkinfo_testlist, "rectm", "string", utlf_getCurrentTime().substr(0, 6), i);
  624. }
  625. var updateData = grdf_getGridUpdateData(group5.grd_testlist);
  626. grdf_setStatusColumn(updateData, "status");
  627. dsf_createDs("ds_reqsmm");
  628. ds_reqsmm.copyData(updateData, true);
  629. var testcnts = dsf_getDsCSV(updateData);
  630. for( var cnt = 0 ; cnt < testcnts.split("▩").length-1 ; cnt++ ){
  631. if ( utlf_isNull(getArrayData(testcnts,cnt,2))){
  632. sysf_messageBox("메모내용을", "C001");//" 입력하십시오."
  633. return;
  634. }
  635. }
  636. ds_send_savedata.clearData();
  637. ds_send_savedata_condinfo.clearData();
  638. ds_reqsmm.updateColID("indd", "orddd");
  639. //조회조건
  640. dsf_makeValue(ds_send_savedata_condinfo, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  641. dsf_makeValue(ds_send_savedata_condinfo, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  642. ds_erworkinfo_testlist.clearData();
  643. var oParam = {};
  644. oParam.id = "TXMNE11004";
  645. oParam.service = "ercareapp.ERRgst";
  646. oParam.method = "reqExeTestInfo";
  647. oParam.inds = "reqdata=ds_reqsmm reqcond=ds_send_savedata_condinfo";
  648. oParam.outds = "ds_erworkinfo_testlist=testlist";
  649. oParam.async = false;
  650. oParam.callback = "cf_TXMNE11004";
  651. tranf_submit(oParam);
  652. if(arErrorCode.pop("TXMNE11004") > -1){
  653. //if ( getNodesetCount("/root/hidden/erworkinfo/testlist") > 0 ){
  654. //model.makeNode("/root/main/erworkinfo/testlist");
  655. //copyNodesetType("/root/main/erworkinfo/testlist", "/root/hidden/erworkinfo/testlist", "replace", model, model);
  656. //}
  657. sysf_messageBox("성공적으로", "I001");
  658. }
  659. }
  660. function cf_TXMNE11004(sSvcId, nErrorCode, sErrorMsg) {
  661. arErrorCode.push(sSvcId, nErrorCode);
  662. }
  663. function group5_button4_onclick(obj:Button, e:ClickEventInfo)
  664. {
  665. if(ds_erworkinfo_articlelist.rowcount > 0) {
  666. ds_erworkinfo_articlelist.insertRow(0);
  667. } else {
  668. ds_erworkinfo_articlelist.addRow();
  669. }
  670. }
  671. function group5_button2_onclick(obj:Button, e:ClickEventInfo)
  672. {
  673. if(ds_erworkinfo_inbcklist.rowcount > 0) {
  674. ds_erworkinfo_inbcklist.insertRow(0);
  675. } else {
  676. ds_erworkinfo_inbcklist.addRow();
  677. }
  678. }
  679. function group5_button3_onclick(obj:Button, e:ClickEventInfo)
  680. {
  681. if (!utlf_isNull(ds_erworkinfo_inbcklist.getColumn(ds_erworkinfo_inbcklist.rowposition, "inbckyn"))) {
  682. //grd_inbcklist.addStatus(grd_inbcklist.row, "delete");
  683. ds_erworkinfo_inbcklist.enableevent = false;
  684. ds_erworkinfo_inbcklist.updatecontrol = false;
  685. ds_erworkinfo_inbcklist.setRowType(ds_erworkinfo_inbcklist.rowposition, 8);
  686. ds_erworkinfo_inbcklist.updatecontrol = true;
  687. ds_erworkinfo_inbcklist.enableevent = true;
  688. } else {
  689. ds_erworkinfo_inbcklist.deleteRow(ds_erworkinfo_inbcklist.rowposition);
  690. }
  691. }
  692. function group5_button6_onclick(obj:Button, e:ClickEventInfo)
  693. {
  694. fExeInbckList();
  695. }
  696. function fExeInbckList() {
  697. //그리드 저장조건
  698. for (var i = 0; i < ds_erworkinfo_inbcklist.rowcount; i++) {
  699. dsf_makeValue(ds_erworkinfo_inbcklist, "recdd", "string", utlf_getCurrentDate(), i);
  700. dsf_makeValue(ds_erworkinfo_inbcklist, "rectm", "string", utlf_getCurrentTime().substr(0, 6), i);
  701. }
  702. var updateData = grdf_getGridUpdateData(group5.grd_inbcklist);
  703. grdf_setStatusColumn(updateData, "status");
  704. dsf_createDs("ds_reqsmm");
  705. ds_reqsmm.copyData(updateData, true);
  706. var inbckcnts = dsf_getDsCSV(updateData);
  707. for( var cnt = 0 ; cnt < inbckcnts.split("▩").length-1 ; cnt++ ){
  708. if ( utlf_isNull(getArrayData(inbckcnts,cnt,3))){
  709. sysf_messageBox("환자명", "C001");//" 입력하십시오."
  710. return;
  711. }
  712. }
  713. ds_send_savedata.clearData();
  714. ds_send_savedata_condinfo.clearData();
  715. //조회조건
  716. dsf_makeValue(ds_send_savedata_condinfo, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  717. dsf_makeValue(ds_send_savedata_condinfo, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  718. ds_erworkinfo_inbcklist.clearData();
  719. var oParam = {};
  720. oParam.id = "TXMNE11002";
  721. oParam.service = "ercareapp.ERRgst";
  722. oParam.method = "reqExeInbckInfo";
  723. oParam.inds = "reqdata=ds_reqsmm reqcond=ds_send_savedata_condinfo";
  724. oParam.outds = "ds_erworkinfo_inbcklist=inbcklist";
  725. oParam.async = false;
  726. oParam.callback = "cf_TXMNE11002";
  727. tranf_submit(oParam);
  728. if(arErrorCode.pop("TXMNE11002") > -1){
  729. fPatInfo();
  730. // if ( getNodesetCount("/root/hidden/erworkinfo/inbcklist") > 0 ){
  731. // model.makeNode("/root/main/erworkinfo/inbcklist");
  732. // copyNodesetType("/root/main/erworkinfo/inbcklist", "/root/hidden/erworkinfo/inbcklist", "replace", model, model);
  733. // }
  734. sysf_messageBox("성공적으로", "I001");
  735. }
  736. }
  737. function cf_TXMNE11002(sSvcId, nErrorCode, sErrorMsg) {
  738. arErrorCode.push(sSvcId, nErrorCode);
  739. }
  740. function ds_erworkinfo_inbcklist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  741. {
  742. var iRow = ds_erworkinfo_inbcklist.rowposition;
  743. var iCol = group5.grd_inbcklist.currentcol;
  744. var sGridXpath = ds_erworkinfo_inbcklist;
  745. if(iCol == group5.grd_inbcklist.getCellPos("pid")){
  746. var pid = ds_erworkinfo_inbcklist.getColumn(iRow, "pid");
  747. if(!utlf_isNull(pid)){
  748. sGridXpath.setColumn(iRow, "bedposcnts", ds_init_patinfo_patlist.lookup("pid", pid, "bedposcnts"));
  749. sGridXpath.setColumn(iRow, "instcd", ds_init_patinfo_patlist.lookup("pid", pid, "instcd"));
  750. sGridXpath.setColumn(iRow, "indd", ds_init_patinfo_patlist.lookup("pid", pid, "indd"));
  751. sGridXpath.setColumn(iRow, "cretno", ds_init_patinfo_patlist.lookup("pid", pid, "cretno"));
  752. }
  753. }
  754. }
  755. function group5_grd_inbcklist_oncloseup(obj:Grid, e:GridEditEventInfo)
  756. {
  757. obj.showEditor(false);
  758. }
  759. function group5_button7_onclick(obj:Button, e:ClickEventInfo)
  760. {
  761. if(ds_erworkinfo_etcmemolist.rowcount > 0) {
  762. ds_erworkinfo_etcmemolist.insertRow(0);
  763. } else {
  764. ds_erworkinfo_etcmemolist.addRow();
  765. }
  766. }
  767. function group5_button8_onclick(obj:Button, e:ClickEventInfo)
  768. {
  769. if (!utlf_isNull(ds_erworkinfo_etcmemolist.getColumn(ds_erworkinfo_etcmemolist.rowposition, "seqno"))) {
  770. ds_erworkinfo_etcmemolist.enableevent = false;
  771. ds_erworkinfo_etcmemolist.updatecontrol = false;
  772. ds_erworkinfo_etcmemolist.setRowType(ds_erworkinfo_etcmemolist.rowposition, 8);
  773. ds_erworkinfo_etcmemolist.updatecontrol = true;
  774. ds_erworkinfo_etcmemolist.enableevent = true;
  775. } else {
  776. ds_erworkinfo_etcmemolist.deleteRow(ds_erworkinfo_etcmemolist.rowposition);
  777. }
  778. }
  779. function group5_button9_onclick(obj:Button, e:ClickEventInfo)
  780. {
  781. fExeEtcMomoList();
  782. }
  783. function fExeEtcMomoList() {
  784. //그리드 저장조건
  785. for (var i = 0; i < ds_erworkinfo_etcmemolist.rowcount; i++) {
  786. dsf_makeValue(ds_erworkinfo_etcmemolist, "wardcd", "string", ds_cond.getColumn(0, "wardcd"), i);
  787. dsf_makeValue(ds_erworkinfo_etcmemolist, "recdd", "string", utlf_getCurrentDate(), i);
  788. dsf_makeValue(ds_erworkinfo_etcmemolist, "rectm", "string", utlf_getCurrentTime().substr(0, 6), i);
  789. }
  790. var updateData = grdf_getGridUpdateData(group5.grd_etcmemolist);
  791. grdf_setStatusColumn(updateData, "status");
  792. dsf_createDs("ds_reqsmm");
  793. ds_reqsmm.copyData(updateData, true);
  794. var etcmemocnts = dsf_getDsCSV(updateData);
  795. for( var cnt = 0 ; cnt < etcmemocnts.split("▩").length-1 ; cnt++ ){
  796. if ( utlf_isNull(getArrayData(etcmemocnts,cnt,2))){
  797. sysf_messageBox("메모내용을", "C001");//" 입력하십시오."
  798. return;
  799. }
  800. }
  801. ds_send_savedata.clearData();
  802. ds_send_savedata_condinfo.clearData();
  803. //조회조건
  804. dsf_makeValue(ds_send_savedata_condinfo, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  805. dsf_makeValue(ds_send_savedata_condinfo, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  806. ds_erworkinfo_etcmemolist.clearData();
  807. var oParam = {};
  808. oParam.id = "TXMNE11003";
  809. oParam.service = "ercareapp.ERRgst";
  810. oParam.method = "reqExeEtcMemoInfo";
  811. oParam.inds = "reqdata=ds_reqsmm reqcond=ds_send_savedata_condinfo";
  812. oParam.outds = "ds_erworkinfo_etcmemolist=etcmemolist";
  813. oParam.async = false;
  814. oParam.callback = "cf_TXMNE11003";
  815. tranf_submit(oParam);
  816. if(arErrorCode.pop("TXMNE11003") > -1){
  817. // if ( getNodesetCount("/root/hidden/erworkinfo/etcmemolist") > 0 ){
  818. // model.makeNode("/root/main/erworkinfo/etcmemolist");
  819. // copyNodesetType("/root/main/erworkinfo/etcmemolist", "/root/hidden/erworkinfo/etcmemolist", "replace", model, model);
  820. // }
  821. sysf_messageBox("성공적으로", "I001");
  822. }
  823. }
  824. function cf_TXMNE11003(sSvcId, nErrorCode, sErrorMsg) {
  825. arErrorCode.push(sSvcId, nErrorCode);
  826. }
  827. function group5_button5_onclick(obj:Button, e:ClickEventInfo)
  828. {
  829. if (!utlf_isNull(ds_erworkinfo_articlelist.getColumn(ds_erworkinfo_articlelist.rowposition, "seqno"))) {
  830. ds_erworkinfo_articlelist.enableevent = false;
  831. ds_erworkinfo_articlelist.updatecontrol = false;
  832. ds_erworkinfo_articlelist.setRowType(ds_erworkinfo_articlelist.rowposition, 8);
  833. ds_erworkinfo_articlelist.updatecontrol = true;
  834. ds_erworkinfo_articlelist.enableevent = true;
  835. } else {
  836. ds_erworkinfo_articlelist.deleteRow(ds_erworkinfo_articlelist.rowposition);
  837. }
  838. }
  839. function group5_button78_onclick(obj:Button, e:ClickEventInfo)
  840. {
  841. fExeArticleList();
  842. }
  843. function fExeArticleList() {
  844. //그리드 저장조건
  845. for (var i = 0; i < ds_erworkinfo_articlelist.rowcount; i++) {
  846. dsf_makeValue(ds_erworkinfo_articlelist, "mwardcd", "string", ds_cond.getColumn(0, "wardcd"), i);
  847. dsf_makeValue(ds_erworkinfo_articlelist, "recdd", "string", utlf_getCurrentDate(), i);
  848. dsf_makeValue(ds_erworkinfo_articlelist, "rectm", "string", utlf_getCurrentTime().substr(0, 6), i);
  849. }
  850. var updateData = grdf_getGridUpdateData(group5.grd_article);
  851. grdf_setStatusColumn(updateData, "status");
  852. dsf_createDs("ds_reqsmm");
  853. ds_reqsmm.copyData(updateData, true);
  854. var articlecnts = dsf_getDsCSV(updateData);
  855. for( var cnt = 0 ; cnt < ds_reqsmm.rowcount ; cnt++ ){
  856. if ( utlf_isNull(ds_reqsmm.getColumn(cnt, "owardcd"))){
  857. sysf_messageBox("병동을", "C001");//" 입력하십시오."
  858. return;
  859. }
  860. if ( utlf_isNull(ds_reqsmm.getColumn(cnt, "gubun"))){
  861. sysf_messageBox("구분값을", "C001");//" 입력하십시오."
  862. return;
  863. }
  864. if ( utlf_isNull(ds_reqsmm.getColumn(cnt, "iodd"))){
  865. sysf_messageBox("IN/OUT 일자를", "C001");//" 입력하십시오."
  866. return;
  867. }
  868. if ( utlf_isNull(ds_reqsmm.getColumn(cnt, "article"))){
  869. messageBox("저장할 물품현황을", "C001");//" 입력하십시오."
  870. return;
  871. }
  872. }
  873. ds_send_savedata.clearData();
  874. ds_send_savedata_condinfo.clearData();
  875. //조회조건
  876. dsf_makeValue(ds_send_savedata_condinfo, "wardcd", "string", ds_cond.getColumn(0, "wardcd"));
  877. dsf_makeValue(ds_send_savedata_condinfo, "recdd", "string", ds_cond.getColumn(0, "recdd"));
  878. ds_erworkinfo_articlelist.clearData();
  879. var oParam = {};
  880. oParam.id = "TXMNE11001";
  881. oParam.service = "ercareapp.ERRgst";
  882. oParam.method = "reqExeArticleInfo";
  883. oParam.inds = "reqdata=ds_reqsmm reqcond=ds_send_savedata_condinfo";
  884. oParam.outds = "ds_erworkinfo_articlelist=articlelist";
  885. oParam.async = false;
  886. oParam.callback = "cf_TXMNE11001";
  887. tranf_submit(oParam);
  888. if(arErrorCode.pop("TXMNE11001") > -1){
  889. // if ( getNodesetCount("/root/hidden/erworkinfo/articlelist") > 0 ){
  890. // model.makeNode("/root/main/erworkinfo/articlelist");
  891. // copyNodesetType("/root/main/erworkinfo/articlelist", "/root/hidden/erworkinfo/articlelist", "replace", model, model);
  892. // }
  893. sysf_messageBox("성공적으로", "I001");
  894. }
  895. }
  896. function cf_TXMNE11001(sSvcId, nErrorCode, sErrorMsg) {
  897. arErrorCode.push(sSvcId, nErrorCode);
  898. }
  899. function group5_grd_article_oncloseup(obj:Grid, e:GridEditEventInfo)
  900. {
  901. obj.showEditor(false);
  902. }
  903. function SMMNE11000_ontimer(obj:Form, e:TimerEventInfo)
  904. {
  905. if (e.timerid == 0) {
  906. this.killTimer(0);
  907. fPatInfo();
  908. fMomoSearch();
  909. fSearch() ;
  910. }
  911. }
  912. ]]></Script>
  913. </Form>
  914. </FDL>