SMAEB05101_조영제재고관리(방사선종양센터).xfdl 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB05101" position="absolute 0 0 1195 775" titletext="조영제 재고관리(방사선종양센터)" oninit="SMAEB05101_oninit" onload="SMAEB05101_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button1" taborder="0" text="입고저장" class="btn4" position="absolute 1105 535 1185 557"/>
  8. <Div id="grp_srch" taborder="1" class="div_SA" position="absolute 0 25 1194 64">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption19" text="입출고 일자 :" class="search_name" position="absolute 10 11 115 28"/>
  12. <Calendar id="ipt_iodd" taborder="1" dateformat="yyyy-MM-dd" class="input_search" position="absolute 112 10 212 29" mask="yyyy-mm-dd"/>
  13. <Shape id="line6" linetype="vertical" class="line_4" position="absolute 1113 8 1119 30"/>
  14. <Static id="caption20" text="검사실 :" class="search_name" position="absolute 238 11 321 28"/>
  15. <Button id="button3" taborder="2" text="조회" class="btn1" position="absolute 1128 8 1184 30" onclick="grp_srch_button3_onclick"/>
  16. <Combo id="cmb_sectcd" taborder="3" innerdataset="@ds_cmb_info_initexcuroomgrp2" codecolumn="excuroomgrpcdid" datacolumn="excuroomgrpcdnm" position="absolute 318 10 505 29"/>
  17. <Static id="caption21" text="약품코드 :" class="search_name" visible="false" position="absolute 531 11 617 28"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static id="caption22" text="입출고 현황" class="tit_2" position="absolute 0 72 105 90"/>
  22. <Shape id="line7" class="line_10" position="absolute 0 88 1037 94"/>
  23. <Grid id="grd_dyelist" taborder="2" binddataset="ds_main_dyestoclist_item" useinputpanel="false" position="absolute 0 93 1037 519" oncelldblclick="grd_dyelist_oncelldblclick">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="26" band="left"/>
  28. <Column size="90"/>
  29. <Column size="220"/>
  30. <Column size="70"/>
  31. <Column size="70"/>
  32. <Column size="70"/>
  33. <Column size="70"/>
  34. <Column size="70"/>
  35. <Column size="70"/>
  36. <Column size="270"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell rowspan="2" taborder="undefined"/>
  48. <Cell col="1" rowspan="2" text="재료코드" taborder="undefined"/>
  49. <Cell col="2" rowspan="2" text="재료명" taborder="undefined"/>
  50. <Cell col="3" rowspan="2" text="전일재고" taborder="undefined"/>
  51. <Cell col="4" rowspan="2" text="수 령" taborder="undefined"/>
  52. <Cell col="5" rowspan="2" text="총 수" taborder="undefined"/>
  53. <Cell col="6" colspan="2" text="소 모" taborder="undefined"/>
  54. <Cell col="8" rowspan="2" text="현재고" taborder="undefined"/>
  55. <Cell col="9" rowspan="2" text="비 고" taborder="undefined"/>
  56. <Cell col="10"/>
  57. <Cell col="11"/>
  58. <Cell col="12"/>
  59. <Cell row="1" col="6" text="불 출"/>
  60. <Cell row="1" col="7" text="일소모"/>
  61. <Cell row="1" col="10"/>
  62. <Cell row="1" col="11"/>
  63. <Cell row="1" col="12"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell celltype="head"/>
  67. <Cell col="1" text="bind:goodcd"/>
  68. <Cell col="2" displaytype="combo" text="bind:goodcd" combodataset="ds_main_goodinfo_item" combocodecol="goodcd" combodatacol="goodnm" enable="false"/>
  69. <Cell col="3" displaytype="number" edittype="masknumber" text="bind:agojego"/>
  70. <Cell col="4" displaytype="number" edittype="masknumber" text="bind:receive"/>
  71. <Cell col="5" displaytype="number" text="bind:totsu"/>
  72. <Cell col="6" displaytype="number" edittype="masknumber" text="bind:outgo"/>
  73. <Cell col="7" displaytype="number" edittype="masknumber" text="bind:dayused" enable="true"/>
  74. <Cell col="8" displaytype="number" text="bind:presentcnt"/>
  75. <Cell col="9" displaytype="text" edittype="text" text="bind:rem" enable="true"/>
  76. <Cell col="10" text="bind:iodd"/>
  77. <Cell col="11" text="bind:suppdeptcd"/>
  78. <Cell col="12" text="bind:sectcd"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Combo id="cmb_goodcd" taborder="3" innerdataset="@ds_temp_goodlist_item" codecolumn="goodcd" datacolumn="goodnm" visible="false" position="absolute 623 35 895 54" onitemchanged="cmb_goodcd_onitemchanged"/>
  84. <Grid id="datagrid1" taborder="4" binddataset="ds_main_dyecdpamlist_item" useinputpanel="false" position="absolute 0 548 1037 743">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="26" band="left"/>
  89. <Column size="58"/>
  90. <Column size="60"/>
  91. <Column size="71"/>
  92. <Column size="80"/>
  93. <Column size="95"/>
  94. <Column size="202"/>
  95. <Column size="77"/>
  96. <Column size="195"/>
  97. <Column size="43"/>
  98. <Column size="50"/>
  99. <Column size="79"/>
  100. <Column size="0"/>
  101. <Column size="0"/>
  102. </Columns>
  103. <Rows>
  104. <Row size="24" band="head"/>
  105. <Row size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell/>
  109. <Cell col="1" text="등록번호"/>
  110. <Cell col="2" text="환자명"/>
  111. <Cell col="3" text="실시일자"/>
  112. <Cell col="4" text="검사실"/>
  113. <Cell col="5" text="처방코드"/>
  114. <Cell col="6" text="처방명"/>
  115. <Cell col="7" text="재료코드"/>
  116. <Cell col="8" text="재료명"/>
  117. <Cell col="9" text="용 량"/>
  118. <Cell col="10" text="규 격"/>
  119. <Cell col="11" text="처방일자"/>
  120. <Cell col="12" text="구분"/>
  121. <Cell col="13" text="검사실코드"/>
  122. </Band>
  123. <Band id="body">
  124. <Cell celltype="head" text="expr:currow+1"/>
  125. <Cell col="1" text="bind:pid"/>
  126. <Cell col="2" text="bind:hngnm"/>
  127. <Cell col="3" displaytype="date" text="bind:excuexectodd"/>
  128. <Cell col="4" text="bind:basecdflagdesc"/>
  129. <Cell col="5" text="bind:calcscorcd"/>
  130. <Cell col="6" displaytype="text" text="bind:excucdnm"/>
  131. <Cell col="7" text="bind:goodcd"/>
  132. <Cell col="8" displaytype="text" text="bind:goodnm"/>
  133. <Cell col="9" text="bind:drugqty"/>
  134. <Cell col="10" text="bind:speccd"/>
  135. <Cell col="11" displaytype="date" text="bind:prcpdd"/>
  136. <Cell col="12" text="bind:instcd"/>
  137. <Cell col="13" text="bind:excuroomcd"/>
  138. </Band>
  139. </Format>
  140. </Formats>
  141. </Grid>
  142. <Static id="caption1" text="조영제코드별 환자 조회" class="tit_2" position="absolute 0 527 170 544"/>
  143. <Div id="grp_excucdrem" taborder="7" visible="false" position="absolute 435 280 759 368">
  144. <Layouts>
  145. <Layout>
  146. <Shape id="rectangle2" type="rectangle" position="absolute 0 0 322 86"/>
  147. <Button id="button4" taborder="1" text="닫기" class="btn4" position="absolute 259 55 315 77" onclick="grp_excucdrem_button4_onclick"/>
  148. <Button id="button5" taborder="2" text="적용" class="btn4" position="absolute 199 55 255 77" onclick="grp_excucdrem_button5_onclick"/>
  149. <Static id="caption8" text="마감정리" class="tit_2" position="absolute 7 7 100 25"/>
  150. <Calendar id="input1" taborder="3" class="input_search" position="absolute 105 30 205 49" mask="yyyy-mm-dd"/>
  151. <Calendar id="input2" taborder="4" class="input_search" position="absolute 215 30 315 49" mask="yyyy-mm-dd"/>
  152. <Static id="caption2" text="적용일자 :" class="search_name" position="absolute 7 32 93 49"/>
  153. </Layout>
  154. </Layouts>
  155. </Div>
  156. <Grid id="grd_magamlist" taborder="8" binddataset="ds_main_dyemagamlist_item" useinputpanel="false" position="absolute 1042 93 1194 743" oncelldblclick="grd_magamlist_oncelldblclick">
  157. <Formats>
  158. <Format id="default">
  159. <Columns>
  160. <Column size="26" band="left"/>
  161. <Column size="80"/>
  162. <Column size="33"/>
  163. <Column size="0"/>
  164. </Columns>
  165. <Rows>
  166. <Row size="24" band="head"/>
  167. <Row size="24"/>
  168. </Rows>
  169. <Band id="head">
  170. <Cell/>
  171. <Cell col="1" text="마감일자"/>
  172. <Cell col="2" text="마감"/>
  173. <Cell col="3" text="dutflag"/>
  174. </Band>
  175. <Band id="body">
  176. <Cell celltype="head" text="expr:currow+1"/>
  177. <Cell col="1" displaytype="date" style="color:EXPR(dutflag == '4' ? '#0000ff' : dutflag == '8' ? '#ff0000' : '#000000');color2:EXPR(dutflag == '4' ? '#0000ff' : dutflag == '8' ? '#ff0000' : '#000000');" text="bind:iodd"/>
  178. <Cell col="2" text="bind:magamflag"/>
  179. <Cell col="3" text="bind:dutflag"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. <Static id="caption3" text="월별 검사실 마감여부" class="tit_2" position="absolute 1042 72 1193 89"/>
  185. <Button id="btn_excsave" taborder="9" text="엑셀저장" class="btn7" position="absolute 771 66 851 88" onclick="btn_excsave_onclick"/>
  186. <Button id="btn_cal" taborder="10" text="계산" class="btn3" position="absolute 853 66 909 88" onclick="btn_cal_onclick"/>
  187. <Shape id="line00" class="line_10" position="absolute 0 543 1037 549"/>
  188. <Shape id="line01" class="line_10" position="absolute 1042 88 1194 94"/>
  189. <Button id="btn_save" taborder="11" text="일마감" class="btn3" position="absolute 911 66 979 88" onclick="btn_save_onclick"/>
  190. <Button id="btn_del" taborder="12" text="수정" class="btn3" position="absolute 981 66 1037 88" onclick="btn_del_onclick"/>
  191. <Button id="button6" taborder="15" text="마감정리" class="btn4" position="absolute 956 521 1036 543" onclick="button6_onclick"/>
  192. <Static id="caption6" text="조영제 재고관리(방사선종양센터)" class="tit_1" position="absolute 0 0 260 25"/>
  193. <Button id="button2" taborder="17" text="출력" class="btn6" position="absolute 0 748 56 770" onclick="button2_onclick"/>
  194. </Layout>
  195. </Layouts>
  196. <Objects>
  197. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="srchiodd" type="STRING" size="256"/>
  200. <Column id="srchbasedd" type="STRING" size="256"/>
  201. <Column id="srchsectcd" type="STRING" size="256"/>
  202. <Column id="srchgoodcd" type="STRING" size="256"/>
  203. <Column id="srchgoodnm" type="STRING" size="256"/>
  204. <Column id="sectcd" type="STRING" size="256"/>
  205. <Column id="srchdd" type="STRING" size="256"/>
  206. <Column id="sdate" type="STRING" size="256"/>
  207. <Column id="edate" type="STRING" size="256"/>
  208. <Column id="suppdeptcd" type="STRING" size="256"/>
  209. <Column id="mainflag" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="srchiodd"/>
  214. <Col id="srchbasedd"/>
  215. <Col id="srchsectcd"/>
  216. <Col id="srchgoodcd"/>
  217. <Col id="srchgoodnm"/>
  218. <Col id="sectcd"/>
  219. <Col id="srchdd"/>
  220. <Col id="sdate"/>
  221. <Col id="edate"/>
  222. <Col id="suppdeptcd"/>
  223. <Col id="mainflag"/>
  224. </Row>
  225. </Rows>
  226. </Dataset>
  227. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  228. <ColumnInfo>
  229. <Column id="iptflag" type="STRING" size="256"/>
  230. <Column id="goodcd" type="STRING" size="256"/>
  231. <Column id="sectcd" type="STRING" size="256"/>
  232. <Column id="qty" type="STRING" size="256"/>
  233. <Column id="ioflag" type="STRING" size="256"/>
  234. <Column id="iodd" type="STRING" size="256"/>
  235. <Column id="suppdeptcd" type="STRING" size="256"/>
  236. <Column id="mainflag" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="iptflag"/>
  241. <Col id="goodcd"/>
  242. <Col id="sectcd"/>
  243. <Col id="qty"/>
  244. <Col id="ioflag"/>
  245. <Col id="iodd"/>
  246. <Col id="suppdeptcd"/>
  247. <Col id="mainflag"/>
  248. </Row>
  249. </Rows>
  250. </Dataset>
  251. <Dataset id="ds_main_mainlist_uselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="goodcd" type="STRING" size="256"/>
  254. <Column id="goodnm" type="STRING" size="256"/>
  255. <Column id="iodd" type="STRING" size="256"/>
  256. <Column id="qty" type="STRING" size="256"/>
  257. <Column id="usernm" type="STRING" size="256"/>
  258. <Column id="ioflag" type="STRING" size="256"/>
  259. <Column id="sectcd" type="STRING" size="256"/>
  260. <Column id="suppdeptcd" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. <Rows>
  263. <Row>
  264. <Col id="goodcd"/>
  265. <Col id="goodnm"/>
  266. <Col id="iodd"/>
  267. <Col id="qty"/>
  268. <Col id="usernm"/>
  269. <Col id="ioflag"/>
  270. <Col id="sectcd"/>
  271. <Col id="suppdeptcd"/>
  272. </Row>
  273. </Rows>
  274. </Dataset>
  275. <Dataset id="ds_main_mainlist_wlnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  276. <ColumnInfo>
  277. <Column id="goodcd" type="STRING" size="256"/>
  278. <Column id="goodnm" type="STRING" size="256"/>
  279. <Column id="iodd" type="STRING" size="256"/>
  280. <Column id="qty" type="STRING" size="256"/>
  281. <Column id="usernm" type="STRING" size="256"/>
  282. <Column id="ioflag" type="STRING" size="256"/>
  283. <Column id="sectcd" type="STRING" size="256"/>
  284. <Column id="suppdeptcd" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row>
  288. <Col id="goodcd"/>
  289. <Col id="goodnm"/>
  290. <Col id="iodd"/>
  291. <Col id="qty"/>
  292. <Col id="usernm"/>
  293. <Col id="ioflag"/>
  294. <Col id="sectcd"/>
  295. <Col id="suppdeptcd"/>
  296. </Row>
  297. </Rows>
  298. </Dataset>
  299. <Dataset id="ds_main_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="goodcd" type="STRING" size="256"/>
  302. <Column id="goodnm" type="STRING" size="256"/>
  303. <Column id="speccd" type="STRING" size="256"/>
  304. <Column id="safestocqty" type="STRING" size="256"/>
  305. <Column id="exstocqty" type="STRING" size="256"/>
  306. <Column id="wlnqty" type="STRING" size="256"/>
  307. <Column id="sumqty" type="STRING" size="256"/>
  308. <Column id="useqty" type="STRING" size="256"/>
  309. <Column id="stocqty" type="STRING" size="256"/>
  310. <Column id="reqqty" type="STRING" size="256"/>
  311. </ColumnInfo>
  312. <Rows>
  313. <Row>
  314. <Col id="goodcd"/>
  315. <Col id="goodnm"/>
  316. <Col id="speccd"/>
  317. <Col id="safestocqty"/>
  318. <Col id="exstocqty"/>
  319. <Col id="wlnqty"/>
  320. <Col id="sumqty"/>
  321. <Col id="useqty"/>
  322. <Col id="stocqty"/>
  323. <Col id="reqqty"/>
  324. </Row>
  325. </Rows>
  326. </Dataset>
  327. <Dataset id="ds_main_dyestoclist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dyestoclist_item_oncolumnchanged">
  328. <ColumnInfo>
  329. <Column id="goodcd" type="STRING" size="256"/>
  330. <Column id="instcd" type="STRING" size="256"/>
  331. <Column id="agojego" type="STRING" size="256"/>
  332. <Column id="receive" type="STRING" size="256"/>
  333. <Column id="totsu" type="STRING" size="256"/>
  334. <Column id="outgo" type="STRING" size="256"/>
  335. <Column id="dayused" type="STRING" size="256"/>
  336. <Column id="presentcnt" type="STRING" size="256"/>
  337. <Column id="rem" type="STRING" size="256"/>
  338. <Column id="srchflag" type="STRING" size="256"/>
  339. <Column id="magamflag" type="STRING" size="256"/>
  340. </ColumnInfo>
  341. <Rows>
  342. <Row>
  343. <Col id="goodcd"/>
  344. <Col id="instcd"/>
  345. <Col id="agojego"/>
  346. <Col id="receive"/>
  347. <Col id="totsu"/>
  348. <Col id="outgo"/>
  349. <Col id="dayused"/>
  350. <Col id="presentcnt"/>
  351. <Col id="rem"/>
  352. <Col id="srchflag"/>
  353. <Col id="magamflag"/>
  354. </Row>
  355. </Rows>
  356. </Dataset>
  357. <Dataset id="ds_main_goodinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  358. <Dataset id="ds_main_dyecdpamlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  359. <ColumnInfo>
  360. <Column id="pid" type="STRING" size="256"/>
  361. <Column id="hngnm" type="STRING" size="256"/>
  362. <Column id="excuexectodd" type="STRING" size="256"/>
  363. <Column id="basecdflagdesc" type="STRING" size="256"/>
  364. <Column id="calcscorcd" type="STRING" size="256"/>
  365. <Column id="excucdnm" type="STRING" size="256"/>
  366. <Column id="goodcd" type="STRING" size="256"/>
  367. <Column id="goodnm" type="STRING" size="256"/>
  368. <Column id="drugqty" type="STRING" size="256"/>
  369. <Column id="speccd" type="STRING" size="256"/>
  370. <Column id="prcpdd" type="STRING" size="256"/>
  371. <Column id="instcd" type="STRING" size="256"/>
  372. <Column id="excuroomcd" type="STRING" size="256"/>
  373. </ColumnInfo>
  374. <Rows>
  375. <Row>
  376. <Col id="pid"/>
  377. <Col id="hngnm"/>
  378. <Col id="excuexectodd"/>
  379. <Col id="basecdflagdesc"/>
  380. <Col id="calcscorcd"/>
  381. <Col id="excucdnm"/>
  382. <Col id="goodcd"/>
  383. <Col id="goodnm"/>
  384. <Col id="drugqty"/>
  385. <Col id="speccd"/>
  386. <Col id="prcpdd"/>
  387. <Col id="instcd"/>
  388. <Col id="excuroomcd"/>
  389. </Row>
  390. </Rows>
  391. </Dataset>
  392. <Dataset id="ds_main_dyemagamlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  393. <ColumnInfo>
  394. <Column id="iodd" type="STRING" size="256"/>
  395. <Column id="magamflag" type="STRING" size="256"/>
  396. <Column id="dutflag" type="STRING" size="256"/>
  397. </ColumnInfo>
  398. </Dataset>
  399. <Dataset id="ds_main_solotopinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  400. <ColumnInfo>
  401. <Column id="solotopqty" type="STRING" size="256"/>
  402. </ColumnInfo>
  403. </Dataset>
  404. <Dataset id="ds_main_xenetixinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  405. <ColumnInfo>
  406. <Column id="xenetixqty" type="STRING" size="256"/>
  407. </ColumnInfo>
  408. </Dataset>
  409. <Dataset id="ds_temp_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  410. <ColumnInfo>
  411. <Column id="goodcd" type="STRING" size="256"/>
  412. <Column id="goodnm" type="STRING" size="256"/>
  413. </ColumnInfo>
  414. </Dataset>
  415. <Dataset id="ds_cmb_info_initexcuroomgrp2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  416. <ColumnInfo>
  417. <Column id="excuroomgrpcdnm" type="STRING" size="256"/>
  418. <Column id="excuroomgrpcdid" type="STRING" size="256"/>
  419. </ColumnInfo>
  420. </Dataset>
  421. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  422. <ColumnInfo>
  423. <Column id="goodcd" type="STRING" size="256"/>
  424. <Column id="goodnm" type="STRING" size="256"/>
  425. <Column id="speccd" type="STRING" size="256"/>
  426. <Column id="safestocqty" type="STRING" size="256"/>
  427. <Column id="inswlniodd" type="STRING" size="256"/>
  428. <Column id="inswlngoodcd" type="STRING" size="256"/>
  429. <Column id="inswlnqty" type="STRING" size="256"/>
  430. <Column id="setwlniodd" type="STRING" size="256"/>
  431. <Column id="setwlngoodcd" type="STRING" size="256"/>
  432. <Column id="setwlnqty" type="STRING" size="256"/>
  433. <Column id="insuseiodd" type="STRING" size="256"/>
  434. <Column id="insusegoodcd" type="STRING" size="256"/>
  435. <Column id="insuseqty" type="STRING" size="256"/>
  436. <Column id="setuseiodd" type="STRING" size="256"/>
  437. <Column id="setusegoodcd" type="STRING" size="256"/>
  438. <Column id="setuseqty" type="STRING" size="256"/>
  439. <Column id="count" type="STRING" size="256"/>
  440. </ColumnInfo>
  441. <Rows>
  442. <Row>
  443. <Col id="goodcd"/>
  444. <Col id="goodnm"/>
  445. <Col id="speccd"/>
  446. <Col id="safestocqty"/>
  447. <Col id="inswlniodd"/>
  448. <Col id="inswlngoodcd"/>
  449. <Col id="inswlnqty"/>
  450. <Col id="setwlniodd"/>
  451. <Col id="setwlngoodcd"/>
  452. <Col id="setwlnqty"/>
  453. <Col id="insuseiodd"/>
  454. <Col id="insusegoodcd"/>
  455. <Col id="insuseqty"/>
  456. <Col id="setuseiodd"/>
  457. <Col id="setusegoodcd"/>
  458. <Col id="setuseqty"/>
  459. <Col id="count"/>
  460. </Row>
  461. </Rows>
  462. </Dataset>
  463. </Objects>
  464. <Bind>
  465. <BindItem id="item0" compid="grp_srch.cmb_sectcd" propid="value" datasetid="ds_send" columnid="srchsectcd"/>
  466. <BindItem id="item1" compid="cmb_goodcd" propid="value" datasetid="ds_send" columnid="srchgoodcd"/>
  467. <BindItem id="item2" compid="grp_srch.ipt_iodd" propid="value" datasetid="ds_send" columnid="srchiodd"/>
  468. <BindItem id="item3" compid="grp_excucdrem.input1" propid="value" datasetid="ds_send" columnid="sdate"/>
  469. <BindItem id="item4" compid="grp_excucdrem.input2" propid="value" datasetid="ds_send" columnid="edate"/>
  470. </Bind>
  471. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  472. * System Name :
  473. * Job Name :
  474. * Creator :
  475. * Make Date : 2015-11-13
  476. * Description :
  477. *---------------------------------------------------------------------------------------
  478. * Modify Date Modifier Modify Description
  479. *---------------------------------------------------------------------------------------
  480. * 2015-11-13 Live Converter TF->XP
  481. *
  482. *---------------------------------------------------------------------------------------
  483. ****************************************************************************************/
  484. include "com_commonxp::comm_main.xjs";
  485. include "ast_examcurexp::AEZ0001.xjs";
  486. var arErrorCode = new HashArray();
  487. //suppdeptcd AEZ0001.xjs 에 선언된 부서코드 전역변수
  488. function getGridData() {
  489. if(!utlf_isNull(ds_send.getColumn(0, "srchiodd"))) {
  490. ds_temp.setColumn(0, "goodnm", cmb_goodcd.text);
  491. ds_temp.setColumn(0, "inswlnqty", "0");
  492. ds_temp.setColumn(0, "setwlnqty", "0");
  493. ds_temp.setColumn(0, "insuseqty", "0");
  494. ds_temp.setColumn(0, "setuseqty", "0");
  495. ds_main_mainlist_uselist.clearData();
  496. ds_main_mainlist_wlnlist.clearData();
  497. ds_main_goodlist_item.clearData();
  498. dsf_createDsRow("ds_req", [
  499. {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchiodd")}
  500. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  501. , {col:"srchgoodcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchgoodcd")}
  502. , {col:"srchioflag", type:"STRING", size:256, val:""}
  503. , {col:"basesuppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  504. ]);
  505. var oParam = {};
  506. oParam.id = "TRAEB03401";
  507. oParam.service = "examcurebaseapp.DyeCode";
  508. oParam.method = "reqGetDyeIOList";
  509. oParam.inds = "req=ds_req";
  510. oParam.outds = "ds_main_mainlist_wlnlist=wlnlist ds_main_mainlist_uselist=uselist";
  511. oParam.async = false;
  512. //oParam.callback = "cf_TRAEB03401";
  513. tranf_submit(oParam);
  514. ds_send.setColumn(0, "srchiodd", utlf_getCurrentDate());
  515. }
  516. else
  517. {
  518. sysf_messageBox("날짜를", "C001");
  519. }
  520. }
  521. function getDyeList()
  522. {
  523. if( utlf_isNull(ds_send.getColumn(0, "srchiodd")) ){
  524. sysf_messageBox("입고일자를", "I007");
  525. return;
  526. }
  527. if( utlf_isNull(ds_send.getColumn(0, "srchsectcd")) ){
  528. sysf_messageBox("검사실을", "I007");
  529. return;
  530. }
  531. //추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정
  532. if(ds_send.getColumn(0, "srchsectcd") == "MCC011"){
  533. ds_send.setColumn(0, "mainflag", "Y");
  534. }else{
  535. ds_send.setColumn(0, "mainflag", "");
  536. }
  537. // 환자정보리스트 클리어
  538. ds_main_dyecdpamlist_item.clearData();
  539. //var row = grd_dyelist.row-1;
  540. dsf_createDsRow("ds_req", [
  541. {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchiodd")}
  542. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  543. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  544. , {col:"mainflag", type:"STRING", size:256, val:ds_send_data.getColumn(0, "mainflag")}
  545. ]);
  546. var oParam = {};
  547. oParam.id = "TRAEB03402";
  548. oParam.service = "examcurebaseapp.DyeCode";
  549. oParam.method = "reqGetDyeStocMngtList";
  550. oParam.inds = "req=ds_req";
  551. oParam.outds = "ds_main_dyestoclist_item=item";
  552. oParam.async = false;
  553. oParam.callback = "cf_TRAEB03402";
  554. tranf_submit(oParam);
  555. if( arErrorCode.pop("TRAEB03402") > -1 ){
  556. if( ds_main_dyestoclist_item.getColumn(0, "srchflag") == "1" ){ // 재고테이블에 데이터가 있을 경우
  557. if(ds_main_dyestoclist_item.getColumn(0, "magamflag") == "S" ){ // 마감여부가 S일 경우
  558. btn_save.enable = true;
  559. btn_del.enable = true;
  560. btn_cal.enable = true;
  561. }else{ // 마감했을경우 버튼 비활성화.
  562. btn_save.enable = false;
  563. btn_del.enable = false;
  564. btn_cal.enable = false;
  565. }
  566. }else if( ds_main_dyestoclist_item.getColumn(0, "srchflag") == "2" ){ // 데이터가 없을경우 활성화.
  567. btn_save.enable = true;
  568. btn_del.enable = false;
  569. btn_cal.enable = true;
  570. if(ds_main_dyestoclist_item.getColumn(0, "magamflag") == "D" ){
  571. for(var a = 0 ; a < ds_main_dyestoclist_item.rowcount ; a++ ){
  572. grdf_setStatus(grd_dyelist, "U", [a]);
  573. }
  574. }else{
  575. for(var a = 0 ; a < ds_main_dyestoclist_item.rowcount ; a++ ){
  576. grdf_setStatus(grd_dyelist, "I", [a]);
  577. }
  578. }
  579. }else{ //1 , 2 아니고 null일 경우 비활성화.
  580. btn_save.enable = false;
  581. btn_del.enable = false;
  582. btn_cal.enable = false;
  583. }
  584. var bd = ds_send.getColumn(0, "srchiodd");
  585. var basedd = bd.substr(0,6);
  586. ds_send.setColumn(0, "srchbasedd", basedd);
  587. // 조영제 월별 마감일자,마감여부
  588. dsf_createDsRow("ds_req", [
  589. {col:"srchbasedd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchbasedd")}
  590. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  591. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  592. ]);
  593. var oParam = {};
  594. oParam.id = "TRAEB03406";
  595. oParam.service = "examcurebaseapp.DyeCode";
  596. oParam.method = "reqGetMagamLst";
  597. oParam.inds = "req=ds_req";
  598. oParam.outds = "ds_main_dyemagamlist_item=item";
  599. oParam.async = false;
  600. //oParam.callback = "cf_TRAEB03406";
  601. tranf_submit(oParam);
  602. }
  603. }
  604. function cf_TRAEB03402(sSvcId, nErrorCode, sErrorMsg) {
  605. arErrorCode.push(sSvcId, nErrorCode);
  606. }
  607. //초기화
  608. function SMAEB05101_oninit(obj:Form, e:InitEventInfo)
  609. {
  610. frmf_initForm(obj);
  611. }
  612. function SMAEB05101_onload(obj:Form, e:LoadEventInfo)
  613. {
  614. grdf_setRowTypeIcon(grd_dyelist, 0);
  615. lf_aezfSetSuppDeptcd();
  616. ds_send.setColumn(0, "srchiodd", utlf_getCurrentDate());
  617. ds_send.setColumn(0, "edate", utlf_getCurrentDate());
  618. ds_main_mainlist_uselist.clearData();
  619. ds_main_mainlist_wlnlist.clearData();
  620. dsf_createDsRow("ds_reqparam", [
  621. {col:"basesuppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  622. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  623. , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
  624. , {col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("dutplceinstcd")}
  625. , {col:"initflag", type:"STRING", size:256, val:"1"}
  626. , {col:"alladdyn", type:"STRING", size:256, val:""}
  627. ]);
  628. var oParam = {};
  629. oParam.id = "TRAEA01301";
  630. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  631. oParam.method = "reqGetInitExamCureRoomGrpCodeList";
  632. oParam.inds = "reqparam=ds_reqparam";
  633. oParam.outds = "ds_cmb_info_initexcuroomgrp2=initexcuroomgrp2";
  634. oParam.async = false;
  635. oParam.callback = "cf_TRAEA01301";
  636. tranf_submit(oParam);
  637. ds_cmb_info_initexcuroomgrp2.deleteRow(0);
  638. dsf_createDsRow("ds_req", [
  639. {col:"srchgoodcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchgoodcd")}
  640. , {col:"srchgoodnm", type:"STRING", size:256, val:ds_send.getColumn(0, "srchgoodnm")}
  641. , {col:"basesuppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  642. ]);
  643. var oParam = {};
  644. oParam.id = "TRAEB03501";
  645. oParam.service = "examcurebaseapp.DyeCode";
  646. oParam.method = "reqGetDyeCodeList";
  647. oParam.inds = "req=ds_req";
  648. oParam.outds = "ds_main_goodinfo_item=item";
  649. oParam.async = false;
  650. //oParam.callback = "cf_TRAEB03501";
  651. tranf_submit(oParam);
  652. grp_srch.cmb_sectcd.index = 0;
  653. btn_save.enable = false;
  654. btn_del.enable = false;
  655. btn_cal.enable = false;
  656. }
  657. function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
  658. if(nErrorCode < 0) return;
  659. ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts", "excuroomgrpcdid");
  660. ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts2", "excuroomgrpcdnm");
  661. }
  662. //조회
  663. function grp_srch_button3_onclick(obj:Button, e:ClickEventInfo)
  664. {
  665. getDyeList();
  666. }
  667. //엑셀저장
  668. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  669. {
  670. if( ds_main_dyestoclist_item.rowcount > 0 ){
  671. grdf_exportExcel(grd_dyelist, "조영제입출고현황", "조영제입출고현황", false, "", "user", false);
  672. } else {
  673. sysf_messageBox("조회된 데이터가 ", "I004");
  674. }
  675. }
  676. //계산
  677. function btn_cal_onclick(obj:Button, e:ClickEventInfo)
  678. {
  679. var idx = ds_main_dyestoclist_item.rowposition;
  680. if(ds_main_dyestoclist_item.getColumn(idx, "goodcd") == "C75190300"){ // solotop
  681. dsf_createDsRow("ds_req", [
  682. {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchiodd")}
  683. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  684. ]);
  685. var oParam = {};
  686. oParam.id = "TRAEB05101";
  687. oParam.service = "examcurebaseapp.DyeCode";
  688. oParam.method = "reqGetSolotopQty";
  689. oParam.inds = "req=ds_req";
  690. oParam.outds = "ds_main_solotopinfo_item=item";
  691. oParam.async = false;
  692. //oParam.callback = "cf_TRAEB05101";
  693. tranf_submit(oParam);
  694. if ( utlf_isNull(ds_main_solotopinfo_item.getColumn(0, "solotopqty")) ){
  695. ds_main_solotopinfo_item.setColumn(0, "solotopqty",0);
  696. }
  697. ds_main_dyestoclist_item.setColumn(0, "dayused", ds_main_solotopinfo_item.getColumn(0, "solotopqty"));
  698. }else if(ds_main_dyestoclist_item.getColumn(idx, "goodcd") == "C75235351"){ //xenetix
  699. dsf_createDsRow("ds_req", [
  700. {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchiodd")}
  701. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  702. ]);
  703. var oParam = {};
  704. oParam.id = "TRAEB05102";
  705. oParam.service = "examcurebaseapp.DyeCode";
  706. oParam.method = "reqGetXenetixQty";
  707. oParam.inds = "req=ds_req";
  708. oParam.outds = "ds_main_xenetixinfo_item=item";
  709. oParam.async = false;
  710. //oParam.callback = "cf_TRAEB05102";
  711. tranf_submit(oParam);
  712. if ( utlf_isNull(ds_main_xenetixinfo_item.getColumn(0, "xenetixqty")) ){
  713. ds_main_xenetixinfo_item.setColumn(0, "xenetixqty",0);
  714. }
  715. ds_main_dyestoclist_item.setColumn(idx, "dayused", ds_main_xenetixinfo_item.getColumn(0, "xenetixqty"));
  716. var dayused = ds_main_dyestoclist_item.getColumn(idx, "dayused");
  717. var agojego = ds_main_dyestoclist_item.getColumn(idx, "agojego");
  718. var representcnt = agojego - dayused ;
  719. ds_main_dyestoclist_item.setColumn(idx, "presentcnt" , representcnt);
  720. }
  721. }
  722. //일마감
  723. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  724. {
  725. var cnt = ds_main_dyestoclist_item.rowcount;
  726. if( cnt > 0 ) {
  727. if( utlf_isNull(ds_send.getColumn(0, "srchiodd")) ){
  728. sysf_messageBox("입고일자를", "I007");
  729. } else {
  730. if( sysf_messageBox("조영제 재고정보를","Q002")==6 ) {
  731. dsf_createDs("ds_send_savedata");
  732. var dsUpdate = grdf_getGridUpdateData(grd_dyelist, "all");
  733. grdf_setStatusColumn(dsUpdate, "m");
  734. ds_send_savedata.copyData(dsUpdate, true);
  735. var oParam = {};
  736. oParam.id = "TXAEB03402";
  737. oParam.service = "examcurebaseapp.DyeCode";
  738. oParam.method = "reqSetDyeUpList";
  739. oParam.inds = "req=ds_send_savedata";
  740. //oParam.outds = "ds_=item";
  741. oParam.async = false;
  742. //oParam.callback = "cf_TXAEB03402";
  743. tranf_submit(oParam);
  744. getDyeList();
  745. }
  746. }
  747. }else{
  748. sysf_messageBox("저장할 입고정보가", "I004");
  749. }
  750. }
  751. //수정
  752. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  753. {
  754. var cnt = ds_main_dyestoclist_item.rowcount;
  755. if( cnt > 0 ) {
  756. if( utlf_isNull(ds_send.getColumn(0, "srchiodd")) ){
  757. sysf_messageBox("입고일자를", "I007");
  758. }else{
  759. if ( sysf_messageBox("조영제 재고정보를","Q001")==6 ) {
  760. dsf_createDsRow("ds_req", [
  761. {col:"srchiodd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchiodd")}
  762. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  763. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  764. ]);
  765. var oParam = {};
  766. oParam.id = "TXAEB03404";
  767. oParam.service = "examcurebaseapp.DyeCode";
  768. oParam.method = "reqSetDyeStocDelUpdt";
  769. oParam.inds = "req=ds_req";
  770. //oParam.outds = "ds_=item";
  771. oParam.async = false;
  772. oParam.callback = "cf_TXAEB03404";
  773. tranf_submit(oParam);
  774. if( arErrorCode.pop("TXAEB03404") > -1 ){
  775. ds_main_dyestoclist_item.clearData();
  776. }else{
  777. getDyeList();
  778. }
  779. }
  780. }
  781. } else {
  782. sysf_messageBox("삭제할 입고정보가", "I004");
  783. }
  784. }
  785. function cf_TXAEB03404(sSvcId, nErrorCode, sErrorMsg) {
  786. arErrorCode.push(sSvcId, nErrorCode);
  787. }
  788. //입출고현황 선택
  789. function grd_dyelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  790. {
  791. var colidx = e.col;
  792. if( e.row > -1 ){
  793. if(grd_dyelist.getBindCellIndex("body", "goodcd") == colidx) {
  794. ds_send_data.setColumn(0, "sectcd", ds_send.getColumn(0, "srchsectcd"));
  795. ds_send_data.setColumn(0, "goodcd", ds_main_dyestoclist_item.getColumn(e.row, "goodcd"));
  796. ds_send_data.setColumn(0, "suppdeptcd", suppdeptcd);
  797. ds_send_data.setColumn(0, "iodd", ds_send.getColumn(0, "srchiodd"));
  798. //추가처방시 심사실에서 직접입력한경우도 같이 포함해서 조회되게 수정
  799. if(ds_send.getColumn(0, "srchsectcd") == "MCC011"){
  800. ds_send_data.setColumn(0, "mainflag", "Y");
  801. }else{
  802. ds_send_data.setColumn(0, "mainflag", "");
  803. }
  804. //조회시 환자정보리스트 클리어
  805. ds_main_dyecdpamlist_item.clearData();
  806. var oParam = {};
  807. oParam.id = "TRAEB03403";
  808. oParam.service = "examcurebaseapp.DyeCode";
  809. oParam.method = "reqGetDyeCodePamLst";
  810. oParam.inds = "req=ds_send_data";
  811. oParam.outds = "ds_main_dyecdpamlist_item=item";
  812. oParam.async = false;
  813. //oParam.callback = "cf_TRAEB03403";
  814. tranf_submit(oParam);
  815. }
  816. }
  817. }
  818. //입출고현황 데이터변경시
  819. function ds_main_dyestoclist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  820. {
  821. if( e.row > -1 ){
  822. if( !utlf_isNull(obj.getColumn(0, "goodcd")) ){
  823. var row = e.row;
  824. // 수령
  825. if(e.columnid == "receive") {
  826. var totsu = 0;
  827. totsu = parseInt(obj.getColumn(row, "agojego"))+parseInt( e.newvalue );
  828. obj.setColumn(row, "totsu" , totsu );
  829. }
  830. // 전일재고수령
  831. if(e.columnid == "agojego") {
  832. var totsu = 0;
  833. totsu = parseInt(e.newvalue)+parseInt(obj.getColumn(row, "receive"));
  834. obj.setColumn(row, "totsu" , totsu );
  835. }
  836. var presentcnt = 0;
  837. presentcnt = parseInt(obj.getColumn(row, "totsu"))-parseInt(obj.getColumn(row, "outgo"))-parseInt(obj.getColumn(row, "dayused"));
  838. obj.setColumn(row, "presentcnt" , presentcnt );
  839. }
  840. }
  841. }
  842. //월별검사실마감여부 선택
  843. function grd_magamlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  844. {
  845. if(e.row < 0)
  846. {
  847. return false;
  848. }
  849. ds_send.setColumn(0, "srchiodd", ds_main_dyemagamlist_item.getColumn(e.row, "iodd"));
  850. getDyeList();
  851. }
  852. //마감정리 적용
  853. function grp_excucdrem_button5_onclick(obj:Button, e:ClickEventInfo)
  854. {
  855. if( sysf_messageBox("조영제 마감정리를","Q002")==6 ) {
  856. dsf_createDsRow("ds_req", [
  857. {col:"sdate", type:"STRING", size:256, val:ds_send.getColumn(0, "sdate")}
  858. , {col:"edate", type:"STRING", size:256, val:ds_send.getColumn(0, "edate")}
  859. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  860. , {col:"suppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  861. ]);
  862. var oParam = {};
  863. oParam.id = "TXAEB03405";
  864. oParam.service = "examcurebaseapp.DyeCode";
  865. oParam.method = "reqSetDyeStocproc";
  866. oParam.inds = "req=ds_req";
  867. //oParam.outds = "ds_=item";
  868. oParam.async = false;
  869. //oParam.callback = "cf_TXAEB03405";
  870. tranf_submit(oParam);
  871. }
  872. }
  873. //마감정리 닫기
  874. function grp_excucdrem_button4_onclick(obj:Button, e:ClickEventInfo)
  875. {
  876. grp_excucdrem.visible = false;
  877. }
  878. //마감정리
  879. function button6_onclick(obj:Button, e:ClickEventInfo)
  880. {
  881. grp_excucdrem.visible = true;
  882. ds_send.setColumn(0, "sdate", ds_send.getColumn(0, "srchiodd"));
  883. }
  884. //출력
  885. function button2_onclick(obj:Button, e:ClickEventInfo)
  886. {
  887. var cnt = ds_main_dyestoclist_item.rowcount;
  888. dsf_createDs("ds_rexprnt_dyestoclist_item");
  889. dsf_createDs("ds_rexprnt_dyestoclist");
  890. ds_rexprnt_dyestoclist_item.copyData(ds_main_dyestoclist_item);
  891. ds_rexprnt_dyestoclist_item.addColumn("goodcdd", "string");
  892. for( var i = 0; i < cnt; i++){
  893. ds_rexprnt_dyestoclist_item.setColumn(i, "goodcd", grd_dyelist.getCellText(i, grd_dyelist.getBindCellIndex("body","goodcd")));
  894. ds_rexprnt_dyestoclist_item.setColumn(i, "goodcdd", ds_main_dyestoclist_item.getColumn(i, "goodcd"));
  895. }
  896. dsf_makeValue(ds_rexprnt_dyestoclist, "srchiodd", "string", grp_srch.ipt_iodd.text);
  897. dsf_makeValue(ds_rexprnt_dyestoclist, "srchsectcd", "string", grp_srch.cmb_sectcd.text);
  898. dsf_makeValue(ds_rexprnt_dyestoclist, "srchsudept", "string", sysf_getUserInfo("dutplcenm"));
  899. var objDOM = rptf_createDOM();
  900. var objParam = new Object();
  901. rptf_setNodeListToDOM(objDOM, "/root/rexprnt/dyestoclist/item" , ds_rexprnt_dyestoclist_item);
  902. rptf_setNodeListToDOM(objDOM, "/root/rexprnt/dyestoclist" , ds_rexprnt_dyestoclist);
  903. objParam.xml_data_XML1 = objDOM.documentElement.source;
  904. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  905. rptf_exeReportPreview30(["RPAEB03401"],[objParam], option);
  906. }
  907. function cmb_goodcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  908. {
  909. getGridData();
  910. ds_send.setColumn(0, "srchdd", ds_send.getColumn(0, "srchiodd"));
  911. dsf_createDsRow("ds_req", [
  912. {col:"srchdd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchdd")}
  913. , {col:"basesuppdeptcd", type:"STRING", size:256, val:suppdeptcd}
  914. , {col:"srchsectcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchsectcd")}
  915. , {col:"srchgoodcd", type:"STRING", size:256, val:ds_send.getColumn(0, "srchgoodcd")}
  916. , {col:"srchsectnm", type:"STRING", size:256, val:""}
  917. , {col:"srchroomcd", type:"STRING", size:256, val:""}
  918. , {col:"srchroomnm", type:"STRING", size:256, val:""}
  919. , {col:"srflag", type:"STRING", size:256, val:""}
  920. ]);
  921. var oParam = {};
  922. oParam.id = "TRAEQ01701";
  923. oParam.service = "examcurebaseapp.DyeCode";
  924. oParam.method = "reqGetDyeDailyRept";
  925. oParam.inds = "req=ds_req";
  926. oParam.outds = "ds_main_goodlist_item=item";
  927. oParam.async = false;
  928. //oParam.callback = "cf_TRAEQ01701";
  929. tranf_submit(oParam);
  930. }
  931. ]]></Script>
  932. </Form>
  933. </FDL>