SMMNP05400_가납물품입고.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP05400" position="absolute 0 0 1197 753" titletext="가납물품입고" oninit="SMMNP05400_oninit" onload="SMMNP05400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="가납물품입고" class="tit_1" position="absolute 0 0 248 25"/>
  8. <Div id="group2" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 85">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption3" text="입고일자 :" class="search_name" position="absolute 15 9 101 26"/>
  12. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1036 19 1092 41" anchor="top right" onclick="group2_btn_search_onclick"/>
  13. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1022 18 1028 42" anchor="top right"/>
  14. <Static id="caption8" text="~" class="search_n_b" position="absolute 226 11 238 28"/>
  15. <Calendar id="ipt_winfromdd" taborder="2" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 105 8 215 27"/>
  16. <Calendar id="ipt_wintodd" taborder="3" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 248 8 353 27"/>
  17. <Static id="caption9" text="가납물품 :" class="search_name" position="absolute 15 33 101 50"/>
  18. <Button id="btn_excelsave" taborder="4" text="엑셀저장" class="btn1" position="absolute 1096 19 1176 41" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
  19. <Edit id="ipt_goodcd" taborder="5" autoselect="true" autoskip="true" class="input_search" position="absolute 105 32 215 51" onkeyup="group2_ipt_goodcd_onkeyup"/>
  20. <Button id="btn_goodsearch" taborder="6" class="icon_search" position="absolute 224 33 240 49" onclick="group2_btn_goodsearch_onclick"/>
  21. <Edit id="ipt_goodnm" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 248 32 505 51" onkeydown="group2_ipt_goodnm_onkeydown"/>
  22. <Static id="caption7" text="부서구분 :" class="search_name" position="absolute 570 9 656 26"/>
  23. <Radio id="radio1" taborder="8" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 665 7 810 27">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">O</Col>
  32. <Col id="datacolumn">수술</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">A</Col>
  36. <Col id="datacolumn">마취</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">R</Col>
  40. <Col id="datacolumn">회복</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Radio>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 103 1195 743" anchor="all" onchanged="switch1_onchanged">
  49. <Tabpages>
  50. <Tabpage id="wingood" text="가납물품입고">
  51. <Layouts>
  52. <Layout>
  53. <Grid id="grd_mnphtrinlist" taborder="1" binddataset="ds_main_mnphtrininfo_mnphtrinlist" useinputpanel="false" position="absolute 0 6 1190 596" anchor="all" autoenter="select" autofittype="col" cellsizingtype="col">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="30"/>
  58. <Column size="75"/>
  59. <Column size="80"/>
  60. <Column size="40"/>
  61. <Column size="230"/>
  62. <Column size="90"/>
  63. <Column size="90"/>
  64. <Column size="85"/>
  65. <Column size="85"/>
  66. <Column size="45"/>
  67. <Column size="60"/>
  68. <Column size="60"/>
  69. <Column size="60"/>
  70. <Column size="60"/>
  71. <Column size="65"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="24" band="head"/>
  79. <Row size="24"/>
  80. </Rows>
  81. <Band id="head">
  82. <Cell/>
  83. <Cell col="1" text="입고일자"/>
  84. <Cell col="2" text="물품코드"/>
  85. <Cell col="3" text="SIZE"/>
  86. <Cell col="4" text="물품명"/>
  87. <Cell col="5" text="규격"/>
  88. <Cell col="6" text="모델"/>
  89. <Cell col="7" text="제조원"/>
  90. <Cell col="8" text="거래처"/>
  91. <Cell col="9" text="단위"/>
  92. <Cell col="10" text="집계량"/>
  93. <Cell col="11" text="입고량"/>
  94. <Cell col="12" text="미입고량"/>
  95. <Cell col="13" text="반납량"/>
  96. <Cell col="14" text="입고구분"/>
  97. <Cell col="15"/>
  98. <Cell col="16"/>
  99. <Cell col="17"/>
  100. <Cell col="18"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell celltype="head" expr="currow+1"/>
  104. <Cell col="1" displaytype="date" text="bind:windd" calendardisplaynulltype="nulltext" enable="false"/>
  105. <Cell col="2" text="bind:goodcd" enable="false"/>
  106. <Cell col="3" text="bind:allsizespecid" enable="false"/>
  107. <Cell col="4" text="bind:goodnm" enable="false"/>
  108. <Cell col="5" text="bind:goodspec" enable="false"/>
  109. <Cell col="6" text="bind:goodmodel" enable="false"/>
  110. <Cell col="7" text="bind:prodcmpynm" enable="false"/>
  111. <Cell col="8" text="bind:custnm" enable="false"/>
  112. <Cell col="9" text="bind:prcpunit" enable="false"/>
  113. <Cell col="10" text="bind:sumqty" enable="false"/>
  114. <Cell col="11" text="bind:winqty1" enable="false"/>
  115. <Cell col="12" text="bind:unwinqty" enable="false"/>
  116. <Cell col="13" text="bind:rtnqty" enable="false"/>
  117. <Cell col="14" displaytype="combo" style="align:center middle;" text="bind:wingubn" combodataset="ds_cmb_wingubn" combocodecol="value" combodatacol="label" enable="false"/>
  118. <Cell col="15" text="bind:oprsrvno"/>
  119. <Cell col="16" text="bind:exchqty"/>
  120. <Cell col="17" text="bind:ccrmngtyn"/>
  121. <Cell col="18" text="bind:winqty"/>
  122. </Band>
  123. </Format>
  124. </Formats>
  125. </Grid>
  126. <Shape id="line4" class="line_10" position="absolute 0 1 1190 7" anchor="left top right"/>
  127. </Layout>
  128. </Layouts>
  129. </Tabpage>
  130. <Tabpage id="goodprcplist" text="물품처방내역">
  131. <Layouts>
  132. <Layout>
  133. <Grid id="grd_goodprcplist" taborder="1" binddataset="ds_main_goodprcplist" useinputpanel="false" position="absolute 0 6 1190 596" anchor="all" autoenter="select" autofittype="col" cellsizingtype="col">
  134. <Formats>
  135. <Format id="default">
  136. <Columns>
  137. <Column size="30"/>
  138. <Column size="60"/>
  139. <Column size="80"/>
  140. <Column size="80"/>
  141. <Column size="80"/>
  142. <Column size="0"/>
  143. <Column size="80"/>
  144. <Column size="40"/>
  145. <Column size="325"/>
  146. <Column size="90"/>
  147. <Column size="90"/>
  148. <Column size="90"/>
  149. <Column size="55"/>
  150. <Column size="65"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell/>
  158. <Cell col="1" text="입고유무"/>
  159. <Cell col="2" text="등록번호"/>
  160. <Cell col="3" text="환자명"/>
  161. <Cell col="4" text="처방일자"/>
  162. <Cell col="5" text="집도과"/>
  163. <Cell col="6" text="물품코드"/>
  164. <Cell col="7" text="SIZE"/>
  165. <Cell col="8" text="물품명"/>
  166. <Cell col="9" text="규격"/>
  167. <Cell col="10" text="모델"/>
  168. <Cell col="11" text="제조원"/>
  169. <Cell col="12" text="단위"/>
  170. <Cell col="13" text="처방수량"/>
  171. </Band>
  172. <Band id="body">
  173. <Cell celltype="head" expr="currow+1"/>
  174. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:winyn" combodataset="ds_cmb_winyn" combocodecol="value" combodatacol="label"/>
  175. <Cell col="2" text="bind:pid"/>
  176. <Cell col="3" text="bind:patnm"/>
  177. <Cell col="4" text="bind:prcpdd"/>
  178. <Cell col="5" text="bind:perfdept"/>
  179. <Cell col="6" text="bind:goodcd"/>
  180. <Cell col="7" text="bind:allsizespecid"/>
  181. <Cell col="8" text="bind:goodnm"/>
  182. <Cell col="9" text="bind:goodspec"/>
  183. <Cell col="10" text="bind:goodmodel"/>
  184. <Cell col="11" text="bind:prodcmpynm"/>
  185. <Cell col="12" text="bind:prcpunit"/>
  186. <Cell col="13" text="bind:goodqty"/>
  187. </Band>
  188. </Format>
  189. </Formats>
  190. </Grid>
  191. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 1 1190 7" anchor="left top right"/>
  192. </Layout>
  193. </Layouts>
  194. </Tabpage>
  195. <Tabpage id="winqtylist" text="물품입고량내역">
  196. <Layouts>
  197. <Layout>
  198. <Grid id="grd_winqtylist" class="datagrid2" taborder="1" binddataset="ds_main_winqtylist" useinputpanel="false" position="absolute 0 5 1190 595" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  199. <Formats>
  200. <Format id="default">
  201. <Columns>
  202. <Column size="30"/>
  203. <Column size="80"/>
  204. <Column size="80"/>
  205. <Column size="45"/>
  206. <Column size="310"/>
  207. <Column size="105"/>
  208. <Column size="105"/>
  209. <Column size="105"/>
  210. <Column size="60"/>
  211. <Column size="60"/>
  212. <Column size="60"/>
  213. <Column size="65"/>
  214. <Column size="65"/>
  215. </Columns>
  216. <Rows>
  217. <Row size="31" band="head"/>
  218. <Row size="24"/>
  219. </Rows>
  220. <Band id="head">
  221. <Cell/>
  222. <Cell col="1" text="입고일자"/>
  223. <Cell col="2" text="물품코드"/>
  224. <Cell col="3" text="SIZE"/>
  225. <Cell col="4" text="물품명"/>
  226. <Cell col="5" text="규격"/>
  227. <Cell col="6" text="모델"/>
  228. <Cell col="7" text="제조원"/>
  229. <Cell col="8" text="단위"/>
  230. <Cell col="9" text="총재고량"/>
  231. <Cell col="10" text="환산수량"/>
  232. <Cell col="11" text="입고/반납&#10;수량"/>
  233. <Cell col="12" text="입고구분"/>
  234. </Band>
  235. <Band id="body">
  236. <Cell celltype="head" expr="currow+1"/>
  237. <Cell col="1" displaytype="date" text="bind:windd" calendardisplaynulltype="nulltext" enable="false"/>
  238. <Cell col="2" text="bind:goodcd" enable="false"/>
  239. <Cell col="3" text="bind:allsizespecid" enable="false"/>
  240. <Cell col="4" text="bind:goodnm" enable="false"/>
  241. <Cell col="5" text="bind:goodspec" enable="false"/>
  242. <Cell col="6" text="bind:goodmodel" enable="false"/>
  243. <Cell col="7" text="bind:prodcmpynm" enable="false"/>
  244. <Cell col="8" text="bind:prcpunit"/>
  245. <Cell col="9" text="bind:totqty"/>
  246. <Cell col="10" text="bind:exchqty"/>
  247. <Cell col="11" text="bind:winqty"/>
  248. <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:wingubn" combodataset="ds_cmb_wingubn" combocodecol="value" combodatacol="label" enable="false"/>
  249. </Band>
  250. </Format>
  251. </Formats>
  252. </Grid>
  253. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 0 1190 6" anchor="left top right"/>
  254. </Layout>
  255. </Layouts>
  256. </Tabpage>
  257. <Tabpage id="batchgoodwin" text="물품일괄입고">
  258. <Layouts>
  259. <Layout>
  260. <Div id="group4" taborder="10" position="absolute 0 0 1190 40" class="div_SA2" anchor="left top right">
  261. <Layouts>
  262. <Layout>
  263. <Static id="caption4" text="입고일자 :" class="search_name" position="absolute 4 12 90 29" anchor="default"/>
  264. <Calendar id="input3" taborder="1" class="input_s_essential" position="absolute 81 11 181 30" anchor="default" autoselect="true" autoskip="true"/>
  265. <Static id="caption1" text="거 래 처 :" class="search_name" position="absolute 201 13 287 30" anchor="default"/>
  266. <Edit id="input1" taborder="2" class="input_search" position="absolute 277 11 387 30" anchor="default" autoselect="true" autoskip="true" onkeyup="switch1_batchgoodwin_group4_input1_onkeyup"/>
  267. <Static id="caption2" text="제조회사 :" class="search_name" position="absolute 401 13 487 30" anchor="default"/>
  268. <Edit id="input2" taborder="3" class="input_search" position="absolute 482 11 592 30" anchor="default" autoselect="true" autoskip="true" onkeyup="switch1_batchgoodwin_group4_input2_onkeyup"/>
  269. <Static id="caption5" text="가납물품 :" class="search_name" position="absolute 614 12 700 29" anchor="default"/>
  270. <Edit id="input4" taborder="4" class="input_search" position="absolute 695 11 785 30" anchor="default" autoselect="true" autoskip="true" onkeyup="switch1_batchgoodwin_group4_input4_onkeyup"/>
  271. <Button id="button5" taborder="5" class="icon_search" position="absolute 790 13 806 29" anchor="default" onclick="switch1_batchgoodwin_group4_button5_onclick"/>
  272. <Edit id="input5" taborder="6" class="input_search" position="absolute 810 11 960 30" anchor="default" autoselect="true" autoskip="true" onkeyup="switch1_batchgoodwin_group4_input5_onkeyup"/>
  273. <Button id="btn_batchwin" taborder="7" text="일괄입고" class="btn1" position="absolute 1015 10 1095 32" anchor="top right" onclick="switch1_batchgoodwin_group4_btn_batchwin_onclick"/>
  274. <Button id="btn_batchcncl" taborder="8" text="일괄반납" class="btn1" position="absolute 1099 10 1179 32" anchor="top right" onclick="switch1_batchgoodwin_group4_btn_batchcncl_onclick"/>
  275. <Shape id="line6" linetype="vertical" class="line_4" position="absolute 1001 9 1007 33" anchor="top right"/>
  276. </Layout>
  277. </Layouts>
  278. </Div>
  279. <Grid id="grd_goodwinlist" taborder="1" binddataset="ds_main_goodwinlist" useinputpanel="false" position="absolute 0 46 1190 612" autoenter="select" autofittype="col" cellsizingtype="col">
  280. <Formats>
  281. <Format id="default">
  282. <Columns>
  283. <Column size="30"/>
  284. <Column size="85"/>
  285. <Column size="40"/>
  286. <Column size="400"/>
  287. <Column size="115"/>
  288. <Column size="115"/>
  289. <Column size="110"/>
  290. <Column size="110"/>
  291. <Column size="45"/>
  292. <Column size="75"/>
  293. <Column size="35"/>
  294. <Column size="0"/>
  295. <Column size="0"/>
  296. <Column size="0"/>
  297. </Columns>
  298. <Rows>
  299. <Row size="24" band="head"/>
  300. <Row size="24"/>
  301. </Rows>
  302. <Band id="head">
  303. <Cell/>
  304. <Cell col="1" text="물품코드"/>
  305. <Cell col="2" text="SIZE"/>
  306. <Cell col="3" text="물품명"/>
  307. <Cell col="4" text="규격"/>
  308. <Cell col="5" text="모델"/>
  309. <Cell col="6" text="제조원"/>
  310. <Cell col="7" text="거래처"/>
  311. <Cell col="8" text="단위"/>
  312. <Cell col="9" text="입고수량"/>
  313. <Cell col="10"/>
  314. <Cell col="11" text="누적기준수량"/>
  315. <Cell col="12" text="상태"/>
  316. <Cell col="13" text="이전수량"/>
  317. </Band>
  318. <Band id="body">
  319. <Cell celltype="head" expr="currow+1"/>
  320. <Cell col="1" text="bind:goodcd" enable="false"/>
  321. <Cell col="2" text="bind:allsizespecid" enable="false"/>
  322. <Cell col="3" text="bind:goodnm" enable="false"/>
  323. <Cell col="4" text="bind:goodspec" enable="false"/>
  324. <Cell col="5" text="bind:goodmodel" enable="false"/>
  325. <Cell col="6" text="bind:prodcmpynm" enable="false"/>
  326. <Cell col="7" text="bind:custnm" enable="false"/>
  327. <Cell col="8" text="bind:prcpunit" enable="false"/>
  328. <Cell col="9" displaytype="number" edittype="text" text="bind:winqty"/>
  329. <Cell col="10" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' ? 1 : 0"/>
  330. <Cell col="11" text="bind:acmlbaseqty"/>
  331. <Cell col="12" text="bind:status"/>
  332. <Cell col="13" text="bind:oldqty"/>
  333. </Band>
  334. </Format>
  335. </Formats>
  336. </Grid>
  337. <Shape id="line5" linetype="horizontal" class="line_10" position="absolute 0 41 1190 47" anchor="left top right"/>
  338. </Layout>
  339. </Layouts>
  340. </Tabpage>
  341. </Tabpages>
  342. </Tab>
  343. </Layout>
  344. </Layouts>
  345. <Objects>
  346. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  347. <ColumnInfo>
  348. <Column id="reffromdd" type="STRING" size="256"/>
  349. <Column id="reftodd" type="STRING" size="256"/>
  350. <Column id="goodcd" type="STRING" size="256"/>
  351. <Column id="goodnm" type="STRING" size="256"/>
  352. <Column id="windd" type="STRING" size="256"/>
  353. <Column id="allsizespecid" type="STRING" size="256"/>
  354. <Column id="tabflag" type="STRING" size="256"/>
  355. <Column id="custnm" type="STRING" size="256"/>
  356. <Column id="prodcmpynm" type="STRING" size="256"/>
  357. <Column id="batchwindd" type="STRING" size="256"/>
  358. <Column id="deptflag" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. <Rows>
  361. <Row>
  362. <Col id="reffromdd"/>
  363. <Col id="reftodd"/>
  364. <Col id="goodcd"/>
  365. <Col id="goodnm"/>
  366. <Col id="windd"/>
  367. <Col id="allsizespecid"/>
  368. <Col id="tabflag">A</Col>
  369. <Col id="custnm"/>
  370. <Col id="prodcmpynm"/>
  371. <Col id="batchwindd"/>
  372. <Col id="deptflag">O</Col>
  373. </Row>
  374. </Rows>
  375. </Dataset>
  376. <Dataset id="ds_main_mnphtrininfo_mnphtrinlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  377. <ColumnInfo>
  378. <Column id="windd" type="STRING" size="256" sumtext="입고일자"/>
  379. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  380. <Column id="allsizespecid" type="STRING" size="256" sumtext="size"/>
  381. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  382. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  383. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  384. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  385. <Column id="custnm" type="STRING" size="256" sumtext="거래처"/>
  386. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  387. <Column id="exchqty" type="BIGDECIMAL" size="256" sumtext="기준수량(환산량)"/>
  388. <Column id="winqty" type="INT" size="256" sumtext="입고수량"/>
  389. <Column id="ccrmngtyn" type="STRING" size="256" sumtext="CCR관리여부"/>
  390. <Column id="sumqty" type="INT" size="256" sumtext="총합계"/>
  391. <Column id="winqty1" type="INT" size="256" sumtext="총입고량"/>
  392. <Column id="unwinqty" type="INT" size="256" sumtext="미입고량"/>
  393. <Column id="rtnqty" type="INT" size="256" sumtext="반납량"/>
  394. <Column id="wingubn" type="STRING" size="256" sumtext="입고구분(1:일반입고, 2:일괄입고, 3:일괄반납)"/>
  395. </ColumnInfo>
  396. </Dataset>
  397. <Dataset id="ds_main_goodprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  398. <ColumnInfo>
  399. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  400. <Column id="allsizespecid" type="STRING" size="256" sumtext="size"/>
  401. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  402. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  403. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  404. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  405. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  406. <Column id="goodqty" type="INT" size="256" sumtext="처방수량"/>
  407. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  408. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  409. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  410. <Column id="winyn" type="STRING" size="256" sumtext="입고유무"/>
  411. <Column id="perfdept" type="STRING" size="256" sumtext="집도과"/>
  412. </ColumnInfo>
  413. </Dataset>
  414. <Dataset id="ds_main_winqtylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  415. <ColumnInfo>
  416. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  417. <Column id="allsizespecid" type="STRING" size="256" sumtext="size"/>
  418. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  419. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  420. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  421. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  422. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  423. <Column id="totqty" type="INT" size="256" sumtext="총재고량"/>
  424. <Column id="winqty" type="INT" size="256" sumtext="입고수량"/>
  425. <Column id="exchqty" type="INT" size="256" sumtext="환산수량"/>
  426. <Column id="windd" type="STRING" size="256" sumtext="입고일자"/>
  427. <Column id="wingubn" type="STRING" size="256" sumtext="입고구분(1:일반입고, 2:일괄입고, 3:일괄반납)"/>
  428. </ColumnInfo>
  429. </Dataset>
  430. <Dataset id="ds_main_goodwinlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_goodwinlist_oncolumnchanged">
  431. <ColumnInfo>
  432. <Column id="chkflag" type="STRING" size="256" sumtext="체크구분"/>
  433. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  434. <Column id="allsizespecid" type="STRING" size="256" sumtext="size"/>
  435. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  436. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  437. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  438. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  439. <Column id="custnm" type="STRING" size="256" sumtext="거래처"/>
  440. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  441. <Column id="winqty" type="INT" size="256" sumtext="입고수량"/>
  442. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  443. <Column id="oldqty" type="INT" size="256" sumtext="이전입고수량"/>
  444. <Column id="acmlbaseqty" type="INT" size="256" sumtext="기준수량"/>
  445. </ColumnInfo>
  446. </Dataset>
  447. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  448. <ColumnInfo>
  449. <Column id="winflag" type="STRING" size="256"/>
  450. <Column id="refflag" type="STRING" size="256"/>
  451. <Column id="chkcncl" type="STRING" size="256"/>
  452. </ColumnInfo>
  453. <Rows>
  454. <Row/>
  455. </Rows>
  456. </Dataset>
  457. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  458. <Dataset id="ds_cmb_wingubn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  459. <ColumnInfo>
  460. <Column id="label" type="STRING" size="256"/>
  461. <Column id="value" type="STRING" size="256"/>
  462. </ColumnInfo>
  463. <Rows>
  464. <Row>
  465. <Col id="label">일반입고</Col>
  466. <Col id="value">1</Col>
  467. </Row>
  468. <Row>
  469. <Col id="label">일괄입고</Col>
  470. <Col id="value">2</Col>
  471. </Row>
  472. <Row>
  473. <Col id="label">일괄반납</Col>
  474. <Col id="value">3</Col>
  475. </Row>
  476. </Rows>
  477. </Dataset>
  478. <Dataset id="ds_cmb_winyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  479. <ColumnInfo>
  480. <Column id="label" type="STRING" size="256"/>
  481. <Column id="value" type="STRING" size="256"/>
  482. </ColumnInfo>
  483. <Rows>
  484. <Row>
  485. <Col id="label">유</Col>
  486. <Col id="value">9</Col>
  487. </Row>
  488. <Row>
  489. <Col id="label">무</Col>
  490. <Col id="value">0</Col>
  491. </Row>
  492. </Rows>
  493. </Dataset>
  494. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  495. </Objects>
  496. <Bind>
  497. <BindItem id="item0" compid="group2.ipt_winfromdd" propid="value" datasetid="ds_main_cond" columnid="reffromdd"/>
  498. <BindItem id="item1" compid="group2.ipt_wintodd" propid="value" datasetid="ds_main_cond" columnid="reftodd"/>
  499. <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  500. <BindItem id="item3" compid="group2.ipt_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
  501. <BindItem id="item4" compid="group2.ipt_goodnm" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
  502. <BindItem id="item5" compid="switch1.batchgoodwin.group4.input3" propid="value" datasetid="ds_main_cond" columnid="batchwindd"/>
  503. <BindItem id="item6" compid="switch1.batchgoodwin.group4.input1" propid="value" datasetid="ds_main_cond" columnid="custnm"/>
  504. <BindItem id="item7" compid="switch1.batchgoodwin.group4.input2" propid="value" datasetid="ds_main_cond" columnid="prodcmpynm"/>
  505. <BindItem id="item8" compid="switch1.batchgoodwin.group4.input4" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
  506. <BindItem id="item9" compid="switch1.batchgoodwin.group4.input5" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
  507. </Bind>
  508. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  509. * System Name :
  510. * Job Name :
  511. * Creator :
  512. * Make Date : 2016-10-12
  513. * Description :
  514. *---------------------------------------------------------------------------------------
  515. * Modify Date Modifier Modify Description
  516. *---------------------------------------------------------------------------------------
  517. * 2016-10-12 Live Converter TF->XP
  518. *
  519. *---------------------------------------------------------------------------------------
  520. ****************************************************************************************/
  521. include "com_commonxp::comm_main.xjs";
  522. include "emr_opanstxp::SMMNP05400.xjs";
  523. var xPathDataA = ds_main_mnphtrininfo_mnphtrinlist;
  524. var xPathDataB = ds_main_goodprcplist;
  525. var xPathDataC = ds_main_winqtylist;
  526. var xPathDataD = ds_main_goodwinlist;
  527. var xSendReqData = ds_send_reqdata;
  528. var xSendSaveData = ds_send_savedata;
  529. var xCondData = ds_main_cond;
  530. //var xErrMsg = "/root/properties/error/msg";
  531. var xTempData = ds_temp;
  532. function SMMNP05400_oninit(obj:Form, e:InitEventInfo)
  533. {
  534. frmf_initForm(obj);
  535. }
  536. function SMMNP05400_onload(obj:Form, e:LoadEventInfo)
  537. {
  538. grdf_initGrid(switch1.wingood.grd_mnphtrinlist);
  539. grdf_initGrid(switch1.goodprcplist.grd_goodprcplist);
  540. grdf_initGrid(switch1.winqtylist.grd_winqtylist);
  541. grdf_initGrid(switch1.batchgoodwin.grd_goodwinlist);
  542. fInit();
  543. }
  544. function group2_ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
  545. {
  546. if(e.keycode == 13)
  547. {
  548. obj.updateToDataset();
  549. fGoodcd_onkeyup();
  550. }
  551. }
  552. function group2_btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
  553. {
  554. fPopup();
  555. }
  556. function group2_ipt_goodnm_onkeydown(obj:Edit, e:KeyEventInfo)
  557. {
  558. if(e.keycode == 13)
  559. {
  560. obj.updateToDataset();
  561. fGoodnm_onkeyup();
  562. }
  563. }
  564. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  565. {
  566. fList_Read();
  567. }
  568. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  569. {
  570. fExcel_Save();
  571. }
  572. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  573. {
  574. if(obj.tabindex == 0)
  575. {
  576. ds_main_cond.setColumn(0, "tabflag", "A");
  577. }
  578. else if(obj.tabindex == 1)
  579. {
  580. ds_main_cond.setColumn(0, "tabflag", "B");
  581. }
  582. else if(obj.tabindex == 2)
  583. {
  584. ds_main_cond.setColumn(0, "tabflag", "C");
  585. }
  586. else if(obj.tabindex == 3)
  587. {
  588. ds_main_cond.setColumn(0, "tabflag", "D");
  589. }
  590. }
  591. function switch1_batchgoodwin_group4_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  592. {
  593. if(e.keycode == 13)
  594. {
  595. obj.updateToDataset();
  596. group2.btn_search.click();
  597. }
  598. }
  599. function switch1_batchgoodwin_group4_input2_onkeyup(obj:Edit, e:KeyEventInfo)
  600. {
  601. if(e.keycode == 13)
  602. {
  603. obj.updateToDataset();
  604. group2.btn_search.click();
  605. }
  606. }
  607. function switch1_batchgoodwin_group4_input4_onkeyup(obj:Edit, e:KeyEventInfo)
  608. {
  609. if(e.keycode == 13)
  610. {
  611. obj.updateToDataset();
  612. fGoodcd_onkeyup();
  613. }
  614. }
  615. function switch1_batchgoodwin_group4_button5_onclick(obj:Button, e:ClickEventInfo)
  616. {
  617. fPopup();
  618. }
  619. function switch1_batchgoodwin_group4_input5_onkeyup(obj:Edit, e:KeyEventInfo)
  620. {
  621. if(e.keycode == 13)
  622. {
  623. obj.updateToDataset();
  624. fGoodnm_onkeyup();
  625. }
  626. }
  627. function switch1_batchgoodwin_group4_btn_batchwin_onclick(obj:Button, e:ClickEventInfo)
  628. {
  629. fBatchWin();
  630. }
  631. function ds_main_goodwinlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  632. {
  633. if(e.columnid == "chkflag")
  634. {
  635. obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  636. }
  637. }
  638. function switch1_batchgoodwin_group4_btn_batchcncl_onclick(obj:Button, e:ClickEventInfo)
  639. {
  640. fBatchRtn();
  641. }
  642. ]]></Script>
  643. </Form>
  644. </FDL>