SMRSD02100_일별 약품청구현황 조회.xfdl 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSD02100" position="absolute 0 0 1203 787" titletext="약품청구현황조회" oninit="SMRSD02100_oninit" onload="SMRSD02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="datagrid1" taborder="8" binddataset="ds_datagrid1" useinputpanel="false" visible="false" position="absolute 0 208 1195 778" autoenter="select" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="100"/>
  12. <Column size="150"/>
  13. </Columns>
  14. <Rows>
  15. <Row size="24" band="head"/>
  16. <Row size="24"/>
  17. </Rows>
  18. <Band id="head">
  19. <Cell text="caption1"/>
  20. <Cell col="1" text="caption2"/>
  21. </Band>
  22. <Band id="body">
  23. <Cell text="bind:goodcd"/>
  24. <Cell col="1" text="bind:goodnm"/>
  25. </Band>
  26. </Format>
  27. </Formats>
  28. </Grid>
  29. <Grid id="grd_goodreq" class="datagrid2" taborder="5" binddataset="ds_main_list_goodreq_goodreqlist" useinputpanel="false" position="absolute 0 208 1195 778" cellsizingtype="col" autoenter="select" anchor="all">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="24"/>
  34. <Column size="68"/>
  35. <Column size="89"/>
  36. <Column size="60"/>
  37. <Column size="60"/>
  38. <Column size="80"/>
  39. <Column size="0"/>
  40. <Column size="240"/>
  41. <Column size="89"/>
  42. <Column size="0"/>
  43. <Column size="63"/>
  44. <Column size="55"/>
  45. <Column size="73"/>
  46. <Column size="100"/>
  47. <Column size="70"/>
  48. <Column size="63"/>
  49. <Column size="60"/>
  50. <Column size="91"/>
  51. <Column size="70"/>
  52. <Column size="70"/>
  53. <Column size="70"/>
  54. <Column size="58"/>
  55. <Column size="100"/>
  56. <Column size="100"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="55"/>
  60. <Column size="80"/>
  61. <Column size="60"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="24" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell/>
  75. <Cell col="1" text="청구일자"/>
  76. <Cell col="2" text="청구부서"/>
  77. <Cell col="3" text="청구번호"/>
  78. <Cell col="4" text="청구순번"/>
  79. <Cell col="5" text="약품코드"/>
  80. <Cell col="6" text="물품코드"/>
  81. <Cell col="7" text="약품명"/>
  82. <Cell col="8" text="규격"/>
  83. <Cell col="9" text="모델"/>
  84. <Cell col="10" text="청구수량"/>
  85. <Cell col="11" text="청구단위"/>
  86. <Cell col="12" text="제조회사"/>
  87. <Cell col="13" text="거래처"/>
  88. <Cell col="14" text="진행상태"/>
  89. <Cell col="15" text="청구자명"/>
  90. <Cell col="16" text="조정수량"/>
  91. <Cell col="17" text="조정사유"/>
  92. <Cell col="18" text="청구구분"/>
  93. <Cell col="19" text="작업구분"/>
  94. <Cell col="20" text="청구방법"/>
  95. <Cell col="21" text="출고수량"/>
  96. <Cell col="22" text="미출고사유"/>
  97. <Cell col="23" text="비고"/>
  98. <Cell col="24" text="불출구분"/>
  99. <Cell col="25" text="구매구분"/>
  100. <Cell col="26" colspan="2" text="부서승인내역" taborder="undefined"/>
  101. <Cell col="28" text="구매접수"/>
  102. <Cell col="29" text="예산계정"/>
  103. <Cell col="30" text="예산계정"/>
  104. <Cell col="31" text="연구과제"/>
  105. <Cell col="32" text="연구과제"/>
  106. <Cell col="33" text="포장구성단위"/>
  107. <Cell col="34" text="보조거래처명"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell celltype="head" expr="currow+1"/>
  111. <Cell col="1" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
  112. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:reqdeptnm"/>
  113. <Cell col="3" text="bind:reqno"/>
  114. <Cell col="4" text="bind:reqseqno"/>
  115. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:goodcd"/>
  116. <Cell col="6" text="bind:allsizespecid"/>
  117. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:goodnm"/>
  118. <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:goodspec"/>
  119. <Cell col="9" text="bind:goodmodel"/>
  120. <Cell col="10" displaytype="number" text="bind:reqqty"/>
  121. <Cell col="11" text="bind:requnit"/>
  122. <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:prodcmpynm"/>
  123. <Cell col="13" style="align:left middle;padding:0 0 0 3;" text="bind:suppcustnm"/>
  124. <Cell col="14" text="bind:deliveprcsflag"/>
  125. <Cell col="15" text="bind:reqpsnnm"/>
  126. <Cell col="16" displaytype="number" text="bind:adjtqty"/>
  127. <Cell col="17" text="bind:adjtrsn"/>
  128. <Cell col="18" text="bind:reqflag"/>
  129. <Cell col="19" text="bind:workflag"/>
  130. <Cell col="20" text="bind:reqmthdflag"/>
  131. <Cell col="21" displaytype="number" text="bind:deliveqty"/>
  132. <Cell col="22" text="bind:unwinresn"/>
  133. <Cell col="23" text="bind:cmt"/>
  134. <Cell col="24" text="bind:deliveflag"/>
  135. <Cell col="25" text="bind:purcflag"/>
  136. <Cell col="26" text="bind:deptaprvynnm"/>
  137. <Cell col="27" text="bind:deptaprvdd"/>
  138. <Cell col="28" text="bind:acptflagnm"/>
  139. <Cell col="29" text="bind:bugtcd"/>
  140. <Cell col="30" text="bind:bugtnm"/>
  141. <Cell col="31" text="bind:stdysubjno"/>
  142. <Cell col="32" text="bind:stdysubjnm"/>
  143. <Cell col="33" text="bind:deliveunit"/>
  144. <Cell col="34" text="bind:subsuplplcenm"/>
  145. </Band>
  146. </Format>
  147. </Formats>
  148. </Grid>
  149. <Static id="caption10" text="약품청구현황조회" class="tit_1" position="absolute 0 0 243 25"/>
  150. <Div id="grp_sea" anchor="left top right" taborder="2" class="div_SA2" position="absolute 0 51 1195 151">
  151. <Layouts>
  152. <Layout>
  153. <Edit id="opt_instcdnm" taborder="11" readonly="true" position="absolute 100 4 360 23" anchor="default" style="align:center middle;" class="output"/>
  154. <Edit id="opt_instcd" taborder="10" readonly="true" visible="false" position="absolute 100 4 360 23" anchor="default" class="output"/>
  155. <Static id="caption2" text="기관코드 :" class="search_name" position="absolute 15 4 104 21" anchor="default"/>
  156. <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 1124 35 1180 57" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  157. <Static id="caption7" text="청구부서 :" class="search_name" position="absolute 405 29 494 46" anchor="default"/>
  158. <Edit id="ipt_reqdeptnm" taborder="5" autoselect="true" autoskip="true" class="output" position="absolute 605 28 764 47" anchor="default" readonly="true" style="align:center middle;"/>
  159. <Edit id="ipt_reqdeptcd" taborder="6" autoselect="true" autoskip="true" class="input_fix" position="absolute 505 28 582 47" anchor="default" style="align:center middle;"/>
  160. <Button id="btn_windeptcd" taborder="7" class="icon_search" position="absolute 586 30 602 46" anchor="default" onclick="grp_sea_btn_windeptcd_onclick"/>
  161. <Static id="caption12" text="청구일자 :" class="search_name" position="absolute 15 54 104 71" anchor="default"/>
  162. <Calendar id="ipt_reqfrdd" taborder="8" autoselect="true" autoskip="true" class="input_essential" position="absolute 101 54 221 73" anchor="default" style="align:center middle;"/>
  163. <Calendar id="ipt_reqtodd" taborder="9" autoselect="true" autoskip="true" class="input_essential" position="absolute 240 52 360 71" anchor="default" style="align:center middle;"/>
  164. <Static id="caption9" text="~" position="absolute 224 52 239 72" anchor="default"/>
  165. <Shape id="line14" linetype="vertical" class="line_4" position="absolute 1105 9 1111 89" anchor="top right"/>
  166. <Combo id="cmb_goodflag" taborder="12" innerdataset="@ds_init_goodflag" codecolumn="cdid" datacolumn="cdnm" class="combo_essential" enable="false" position="absolute 505 4 764 23" anchor="default" style="align:center middle;"/>
  167. <Static id="caption1" text="물품구분 :" class="search_name" position="absolute 405 5 498 22" anchor="default"/>
  168. <Static id="caption4" text="청구구분 :" class="search_name" position="absolute 785 4 871 21" anchor="default"/>
  169. <Combo id="cmb_reqflag" taborder="13" innerdataset="@ds_init_reqflag" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 871 3 1095 22" anchor="default" style="align:center middle;"/>
  170. <Combo id="cmb_reqmthd" taborder="14" innerdataset="@ds_init_reqmthd" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 100 28 360 47" anchor="default" style="align:center middle;"/>
  171. <Static id="caption3" text="청구방법 :" class="search_name" position="absolute 15 30 101 47" anchor="default"/>
  172. <Button id="btn_helppsn" taborder="15" class="icon_search" position="absolute 960 27 976 43" anchor="default" onclick="grp_sea_btn_helppsn_onclick"/>
  173. <Edit id="ipt_emplnm" taborder="16" autoselect="true" autoskip="true" class="output" position="absolute 978 27 1095 46" anchor="default" password="false" readonly="true" style="align:center middle;"/>
  174. <Static id="caption5" text="청 구 자 :" class="search_name" position="absolute 785 28 878 45" anchor="default"/>
  175. <Edit id="ipt_emplno" taborder="17" autoselect="true" autoskip="true" class="input_search" position="absolute 873 27 958 46" anchor="default" style="align:center middle;" onkeydown="grp_sea_ipt_emplno_onkeydown"/>
  176. <Combo id="cmb_workflag" taborder="18" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 505 52 765 71" anchor="default" style="align:center middle;" onitemchanged="grp_sea_cmb_workflag_onitemchanged">
  177. <Dataset id="innerdataset">
  178. <ColumnInfo>
  179. <Column id="codecolumn"/>
  180. <Column id="datacolumn"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="codecolumn"/>
  185. <Col id="datacolumn">전체</Col>
  186. </Row>
  187. <Row>
  188. <Col id="codecolumn">1</Col>
  189. <Col id="datacolumn">일반청구</Col>
  190. </Row>
  191. <Row>
  192. <Col id="codecolumn">3</Col>
  193. <Col id="datacolumn">비치약품청구</Col>
  194. </Row>
  195. <Row>
  196. <Col id="codecolumn">5</Col>
  197. <Col id="datacolumn">응급약물청구</Col>
  198. </Row>
  199. <Row>
  200. <Col id="codecolumn">4</Col>
  201. <Col id="datacolumn">비치약품반납</Col>
  202. </Row>
  203. <Row>
  204. <Col id="codecolumn">2</Col>
  205. <Col id="datacolumn">응급약물반납</Col>
  206. </Row>
  207. <Row>
  208. <Col id="codecolumn">6</Col>
  209. <Col id="datacolumn">처방청구</Col>
  210. </Row>
  211. </Rows>
  212. </Dataset>
  213. </Combo>
  214. <Static id="caption14" text="작업구분 :" class="search_name" position="absolute 405 53 491 70" anchor="default"/>
  215. <Static id="caption15" text="진행상태 :" class="search_name" position="absolute 15 79 104 96" anchor="default"/>
  216. <Combo id="cmb_deliveprcsflag" taborder="19" innerdataset="@ds_init_deliveprcsflag" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 100 77 360 96" anchor="default" style="align:center middle;"/>
  217. <Static id="caption16" text="불출부서 :" class="search_name" position="absolute 405 75 504 92" anchor="default"/>
  218. <Combo id="cmb_deptcd" taborder="20" class="combo_essential" position="absolute 505 75 765 94" anchor="default" style="align:center middle;"/>
  219. <Button id="btn_searchgoodcd" taborder="21" class="icon_search" position="absolute 960 54 976 70" anchor="default" onclick="grp_sea_btn_searchgoodcd_onclick"/>
  220. <Edit id="ipt_goodnm" taborder="22" autoselect="true" autoskip="true" class="input_fix" position="absolute 978 54 1095 73" anchor="default" style="align:center middle;"/>
  221. <Edit id="ipt_goodcd" taborder="23" autoselect="true" autoskip="true" class="input_essential" position="absolute 873 54 958 73" anchor="default" style="align:center middle;"/>
  222. <Static id="caption11" text="약품코드 :" class="search_name" position="absolute 785 55 871 72" anchor="default"/>
  223. <Radio id="radio1" taborder="24" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 873 77 1033 97" anchor="default" onitemchanged="grp_sea_radio1_onitemchanged">
  224. <Dataset id="innerdataset">
  225. <ColumnInfo>
  226. <Column id="codecolumn"/>
  227. <Column id="datacolumn"/>
  228. </ColumnInfo>
  229. <Rows>
  230. <Row>
  231. <Col id="codecolumn">1</Col>
  232. <Col id="datacolumn">일반</Col>
  233. </Row>
  234. <Row>
  235. <Col id="codecolumn">2</Col>
  236. <Col id="datacolumn">집계</Col>
  237. </Row>
  238. </Rows>
  239. </Dataset>
  240. </Radio>
  241. <Static id="caption13" text="조회구분 :" class="search_name" position="absolute 785 79 884 96" anchor="default"/>
  242. </Layout>
  243. </Layouts>
  244. </Div>
  245. <Static id="caption8" text="약품 청구현황내역" class="tit_2" position="absolute 0 187 141 209"/>
  246. <Shape id="line1" class="line_10" position="absolute 0 203 1195 209" anchor="left top right"/>
  247. <Button id="btn_excel" taborder="3" text="Excel" class="btn5" position="absolute 1142 184 1195 203" anchor="top right" onclick="btn_excel_onclick"/>
  248. <Button id="button13" taborder="4" text="불출서출력" class="btn6" position="absolute 1047 181 1139 203" anchor="top right" onclick="button13_onclick"/>
  249. <Shape id="line17" class="line_6" position="absolute 0 46 1195 52" anchor="left top right"/>
  250. <Button id="button6" taborder="7" text="초기화" class="btn4" position="absolute 1127 25 1195 47" anchor="top right" onclick="button6_onclick"/>
  251. <Div id="group2" taborder="1" visible="false" position="absolute 632 291 1047 464" style="background:#ffffffff;border:1 solid #808080ff ;">
  252. <Layouts>
  253. <Layout>
  254. <Grid id="grd_goodlist" taborder="1" binddataset="ds_init_main_goodlist" useinputpanel="false" position="absolute 1 25 411 164" anchor="default" autoenter="select" autofittype="col" cellsizingtype="col">
  255. <Formats>
  256. <Format id="default">
  257. <Columns>
  258. <Column size="20"/>
  259. <Column size="102"/>
  260. <Column size="270"/>
  261. <Column size="0"/>
  262. <Column size="0"/>
  263. </Columns>
  264. <Rows>
  265. <Row size="24" band="head"/>
  266. <Row size="24"/>
  267. </Rows>
  268. <Band id="head">
  269. <Cell/>
  270. <Cell col="1" text="약품코드"/>
  271. <Cell col="2" text="약품명"/>
  272. <Cell col="3" text="기관코드"/>
  273. <Cell col="4" text="물품구분"/>
  274. </Band>
  275. <Band id="body">
  276. <Cell celltype="head"/>
  277. <Cell col="1" displaytype="none" edittype="none" text="bind:goodcd"/>
  278. <Cell col="2" displaytype="none" edittype="none" text="bind:goodnm"/>
  279. <Cell col="3" text="bind:instcd"/>
  280. <Cell col="4" text="bind:goodflag"/>
  281. </Band>
  282. </Format>
  283. </Formats>
  284. </Grid>
  285. <Button id="button5" taborder="2" text="숨기기" class="btn2" position="absolute 357 5 410 24" anchor="default"/>
  286. </Layout>
  287. </Layouts>
  288. </Div>
  289. </Layout>
  290. </Layouts>
  291. <Objects>
  292. <Dataset id="ds_send_goodreq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_goodreq_oncolumnchanged">
  293. <ColumnInfo>
  294. <Column id="instcd" type="STRING" size="256"/>
  295. <Column id="reqflag" type="STRING" size="256"/>
  296. <Column id="workflag" type="STRING" size="256"/>
  297. <Column id="reqmthdflag" type="STRING" size="256"/>
  298. <Column id="purcflag" type="STRING" size="256"/>
  299. <Column id="reqdeptcd" type="STRING" size="256"/>
  300. <Column id="reqdeptnm" type="STRING" size="256"/>
  301. <Column id="goodcd" type="STRING" size="256"/>
  302. <Column id="goodnm" type="STRING" size="256"/>
  303. <Column id="reqfrdd" type="STRING" size="256"/>
  304. <Column id="reqtodd" type="STRING" size="256"/>
  305. <Column id="deliveprcsflag" type="STRING" size="256"/>
  306. <Column id="instcdnm" type="STRING" size="256"/>
  307. <Column id="goodflag" type="STRING" size="256"/>
  308. <Column id="emplno" type="STRING" size="256"/>
  309. <Column id="emplnm" type="STRING" size="256"/>
  310. <Column id="suppcustcd" type="STRING" size="256"/>
  311. <Column id="suppcustcdnm" type="STRING" size="256"/>
  312. <Column id="stocdeptcd" type="STRING" size="256"/>
  313. </ColumnInfo>
  314. <Rows>
  315. <Row>
  316. <Col id="instcd"/>
  317. <Col id="reqflag"/>
  318. <Col id="workflag">1</Col>
  319. <Col id="reqmthdflag"/>
  320. <Col id="purcflag"/>
  321. <Col id="reqdeptcd"/>
  322. <Col id="reqdeptnm"/>
  323. <Col id="goodcd"/>
  324. <Col id="goodnm"/>
  325. <Col id="reqfrdd"/>
  326. <Col id="reqtodd"/>
  327. <Col id="deliveprcsflag"/>
  328. <Col id="instcdnm"/>
  329. <Col id="goodflag"/>
  330. <Col id="emplno"/>
  331. <Col id="emplnm"/>
  332. <Col id="suppcustcd"/>
  333. <Col id="suppcustcdnm"/>
  334. <Col id="stocdeptcd"/>
  335. </Row>
  336. </Rows>
  337. </Dataset>
  338. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  339. <ColumnInfo>
  340. <Column id="viewflag" type="STRING" size="256"/>
  341. </ColumnInfo>
  342. <Rows>
  343. <Row>
  344. <Col id="viewflag">1</Col>
  345. </Row>
  346. </Rows>
  347. </Dataset>
  348. <Dataset id="ds_init_reqmthd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  349. <Dataset id="ds_init_deliveprcsflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  350. <Dataset id="ds_init_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  351. <Dataset id="ds_init_reqflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  352. <Dataset id="ds_main_list_goodreq_goodreqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="instcd" type="STRING" size="256" sumtext="instcd"/>
  355. <Column id="reqflag" type="STRING" size="256" sumtext="물품구분(r0025) y 진료재료, ..."/>
  356. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  357. <Column id="reqno" type="STRING" size="256" sumtext="청구번호"/>
  358. <Column id="reqseqno" type="STRING" size="256" sumtext="청구일련번호"/>
  359. <Column id="workflag" type="STRING" size="256" sumtext="작업구분(청구,반납)"/>
  360. <Column id="reqmthdflag" type="STRING" size="256" sumtext="청구방법"/>
  361. <Column id="deliveflag" type="STRING" size="256" sumtext="불출구분(정기,응급)"/>
  362. <Column id="reqpridflag" type="STRING" size="256" sumtext="청구주기구분"/>
  363. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  364. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  365. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격"/>
  366. <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델"/>
  367. <Column id="purcunit" type="STRING" size="256" sumtext="구매단위"/>
  368. <Column id="purcunitnm" type="STRING" size="256" sumtext="구매단위명"/>
  369. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  370. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  371. <Column id="purcflag" type="STRING" size="256" sumtext="구매구분"/>
  372. <Column id="bugtcd" type="STRING" size="256" sumtext="예산코드"/>
  373. <Column id="bugtnm" type="STRING" size="256" sumtext="계정명"/>
  374. <Column id="stdysubjno" type="STRING" size="256" sumtext="연구과제번호"/>
  375. <Column id="stdysubjnm" type="STRING" size="256" sumtext="연구과제번호"/>
  376. <Column id="reqdeptcd" type="STRING" size="256" sumtext="청구부서"/>
  377. <Column id="reqdeptnm" type="STRING" size="256" sumtext="청구부서"/>
  378. <Column id="reqcollcdeptcd" type="STRING" size="256" sumtext="청구취합부서"/>
  379. <Column id="delivedeptcd" type="STRING" size="256" sumtext="출고부서"/>
  380. <Column id="delivehopedd" type="STRING" size="256" sumtext="출고희망일"/>
  381. <Column id="reqpsnid" type="STRING" size="256" sumtext="청구자"/>
  382. <Column id="reqtm" type="STRING" size="256" sumtext="청구시간"/>
  383. <Column id="ddavguseqty" type="STRING" size="256" sumtext="일평균사용량"/>
  384. <Column id="basevol" type="STRING" size="256" sumtext="기준량"/>
  385. <Column id="reqqty" type="STRING" size="256" sumtext="청구수량"/>
  386. <Column id="requnit" type="STRING" size="256" sumtext="청구단위"/>
  387. <Column id="deptaprvyn" type="STRING" size="256" sumtext="부서승인여부"/>
  388. <Column id="deptaprvynnm" type="STRING" size="256" sumtext="부서승인명"/>
  389. <Column id="deptaprvdd" type="STRING" size="256" sumtext="부서승인일자"/>
  390. <Column id="acptflag" type="STRING" size="256" sumtext="접수여부"/>
  391. <Column id="acptflagnm" type="STRING" size="256" sumtext="접수여부"/>
  392. <Column id="acptdd" type="STRING" size="256" sumtext="접수일자"/>
  393. <Column id="adjtqty" type="STRING" size="256" sumtext="조정수량"/>
  394. <Column id="adjtrsn" type="STRING" size="256" sumtext="조정사유"/>
  395. <Column id="acptcharid" type="STRING" size="256" sumtext="접수담당자id"/>
  396. <Column id="purcdmnddd" type="STRING" size="256" sumtext="구매요구일자"/>
  397. <Column id="purcdmndno" type="STRING" size="256" sumtext="구매요구번호"/>
  398. <Column id="purcdmndseq" type="STRING" size="256" sumtext="구매요구일련번호"/>
  399. <Column id="colreqdd" type="STRING" size="256" sumtext="취합청구일자"/>
  400. <Column id="colreqno" type="STRING" size="256" sumtext="취합청구번호"/>
  401. <Column id="colreqseqno" type="STRING" size="256" sumtext="취합청구일련번호"/>
  402. <Column id="deliveqty" type="STRING" size="256" sumtext="불출수량"/>
  403. <Column id="unwinresn" type="STRING" size="256" sumtext="미입고사유"/>
  404. <Column id="deliveprcsflag" type="STRING" size="256" sumtext="출고진행구분"/>
  405. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  406. <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래"/>
  407. <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명"/>
  408. <Column id="reqpsnid" type="STRING" size="256" sumtext="청구자코드"/>
  409. <Column id="reqpsnnm" type="STRING" size="256" sumtext="청구자명"/>
  410. <Column id="reqtm" type="STRING" size="256" sumtext="청구시간"/>
  411. <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZEID"/>
  412. <Column id="deliveunit" type="STRING" size="256" sumtext="포장구성단위"/>
  413. <Column id="subsuplplcenm" type="STRING" size="256" sumtext="보조거래처명"/>
  414. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명"/>
  415. <Column id="acntcd" type="STRING" size="256" sumtext="계정과목"/>
  416. <Column id="acntnm" type="STRING" size="256" sumtext="계정과목명"/>
  417. <Column id="costconyn" type="STRING" size="256" sumtext="단가계약여부"/>
  418. </ColumnInfo>
  419. </Dataset>
  420. <Dataset id="ds_init_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  421. <ColumnInfo>
  422. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  423. <Column id="goodnm" type="STRING" size="256" sumtext="goodnm "/>
  424. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  425. <Column id="userqty" type="STRING" size="256" sumtext="사용자입력수량 "/>
  426. <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위 "/>
  427. <Column id="estmamt" type="BIGDECIMAL" size="256" sumtext="견적가 "/>
  428. <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
  429. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명 "/>
  430. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드 "/>
  431. <Column id="todd" type="STRING" size="256" sumtext="todd "/>
  432. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  433. <Column id="useyn" type="STRING" size="256" sumtext="사용여부 "/>
  434. <Column id="fromdd" type="STRING" size="256" sumtext="fromdd "/>
  435. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분(r0025) "/>
  436. <Column id="goodhngnm" type="STRING" size="256" sumtext="영문명 "/>
  437. <Column id="goodengnm" type="STRING" size="256" sumtext="물품명 "/>
  438. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드 "/>
  439. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명 "/>
  440. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드 "/>
  441. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명 "/>
  442. <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드 "/>
  443. <Column id="smlnm" type="STRING" size="256" sumtext="소분류 "/>
  444. <Column id="winacnt" type="STRING" size="256" sumtext="계정코드 "/>
  445. <Column id="winacntnm" type="STRING" size="256" sumtext="계정코드명 "/>
  446. <Column id="amtacnt" type="STRING" size="256" sumtext="비용계정 "/>
  447. <Column id="amtacntnm" type="STRING" size="256" sumtext="비용계정명 "/>
  448. <Column id="mainmngtdeptcd" type="STRING" size="256" sumtext="주관리부서코드 "/>
  449. <Column id="mainmngtdeptnm" type="STRING" size="256" sumtext="주관리부서명 "/>
  450. <Column id="stocmngtflag" type="STRING" size="256" sumtext="재고관리기준 "/>
  451. <Column id="purcunit" type="STRING" size="256" sumtext="입고단위 "/>
  452. <Column id="purcunitnm" type="STRING" size="256" sumtext="입고단위 "/>
  453. <Column id="deliveunitnm" type="STRING" size="256" sumtext="수불단위 "/>
  454. <Column id="exchqty" type="BIGDECIMAL" size="256" sumtext="환산배수 "/>
  455. <Column id="minexch" type="BIGDECIMAL" size="256" sumtext="최소환산수량 "/>
  456. <Column id="divusenvalqty" type="STRING" size="256" sumtext="분할사용수치 "/>
  457. <Column id="edicd" type="STRING" size="256" sumtext="edi코드 "/>
  458. <Column id="reqflag" type="STRING" size="256" sumtext="청구기준 "/>
  459. <Column id="reqflagnm" type="STRING" size="256" sumtext="청구기준명 "/>
  460. <Column id="reqmthd" type="STRING" size="256" sumtext="청구방법 "/>
  461. <Column id="reqprid" type="STRING" size="256" sumtext="청구주기 "/>
  462. <Column id="prodplce" type="STRING" size="256" sumtext="제조국 "/>
  463. <Column id="prodplcenm" type="STRING" size="256" sumtext="제조국명 "/>
  464. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처 "/>
  465. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="최종공급처 "/>
  466. <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
  467. <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
  468. <Column id="forgncurncyunitcost" type="BIGDECIMAL" size="256" sumtext="외화단가 "/>
  469. <Column id="curncyunit" type="STRING" size="256" sumtext="화폐단위 "/>
  470. <Column id="curncyunitnm" type="STRING" size="256" sumtext="화폐단위 "/>
  471. <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="제품단가 "/>
  472. <Column id="purcflag" type="STRING" size="256" sumtext="구매구분 "/>
  473. <Column id="safestocqty" type="BIGDECIMAL" size="256" sumtext="안전재고량 "/>
  474. <Column id="ddavguseqty" type="BIGDECIMAL" size="256" sumtext="일평균사용량 "/>
  475. <Column id="mmavgusescheqty" type="BIGDECIMAL" size="256" sumtext="월평균사용예정량 "/>
  476. <Column id="mmavguseqty" type="BIGDECIMAL" size="256" sumtext="월평균사용량 "/>
  477. <Column id="prprtystocpossndayno" type="BIGDECIMAL" size="256" sumtext="적정재고보유일수 "/>
  478. <Column id="stocqty" type="STRING" size="256" sumtext="재고량 "/>
  479. <Column id="curemealstocqty" type="STRING" size="256" sumtext="치료식현재고수량 "/>
  480. <Column id="empmealstocqty" type="STRING" size="256" sumtext="직원식현재고수량 "/>
  481. <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="직원야식현재고수량 "/>
  482. <Column id="curemealstocqty" type="STRING" size="256" sumtext="영양팀치료식 "/>
  483. <Column id="empmealstocqty" type="STRING" size="256" sumtext="영양팀직원식 "/>
  484. <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="영양팀직원야식 "/>
  485. <Column id="allsizeyn" type="STRING" size="256" sumtext="allsize여부 "/>
  486. <Column id="orgloc" type="STRING" size="256" sumtext="원산지 "/>
  487. <Column id="select" type="STRING" size="256" sumtext=" "/>
  488. <Column id="bnscd" type="STRING" size="256" sumtext=" "/>
  489. <Column id="oldcd" type="STRING" size="256" sumtext="구코드 "/>
  490. <Column id="goodpurccost" type="STRING" size="256" sumtext="납품가 "/>
  491. <Column id="reqpridnm" type="STRING" size="256" sumtext="청구주기명 "/>
  492. <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize코드 "/>
  493. <Column id="reqfnldeptcd" type="STRING" size="256" sumtext="출고부서 "/>
  494. <Column id="delivedeptcd" type="STRING" size="256" sumtext="출고부서 "/>
  495. <Column id="setunit" type="STRING" size="256" sumtext="포장구성단위 "/>
  496. <Column id="constunit" type="STRING" size="256" sumtext="포장구성단위 "/>
  497. </ColumnInfo>
  498. </Dataset>
  499. <Dataset id="ds_send_goodiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  500. <Dataset id="ds_main_goodreqmst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  501. <Dataset id="ds_main_print_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  502. <Dataset id="ds_main_print_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  503. <Dataset id="ds_prtinfo_goodreq_goodreqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  504. <Dataset id="ds_prtinfo_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  505. </Objects>
  506. <Bind>
  507. <BindItem id="item0" compid="grp_sea.opt_instcdnm" propid="value" datasetid="ds_send_goodreq" columnid="instcdnm"/>
  508. <BindItem id="item1" compid="grp_sea.cmb_reqmthd" propid="value" datasetid="ds_send_goodreq" columnid="reqmthdflag"/>
  509. <BindItem id="item2" compid="grp_sea.ipt_reqfrdd" propid="value" datasetid="ds_send_goodreq" columnid="reqfrdd"/>
  510. <BindItem id="item3" compid="grp_sea.ipt_reqtodd" propid="value" datasetid="ds_send_goodreq" columnid="reqtodd"/>
  511. <BindItem id="item4" compid="grp_sea.cmb_deliveprcsflag" propid="value" datasetid="ds_send_goodreq" columnid="deliveprcsflag"/>
  512. <BindItem id="item5" compid="grp_sea.cmb_goodflag" propid="value" datasetid="ds_send_goodreq" columnid="goodflag"/>
  513. <BindItem id="item6" compid="grp_sea.ipt_reqdeptcd" propid="value" datasetid="ds_send_goodreq" columnid="reqdeptcd"/>
  514. <BindItem id="item7" compid="grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send_goodreq" columnid=""/>
  515. <BindItem id="item8" compid="grp_sea.cmb_workflag" propid="value" datasetid="ds_send_goodreq" columnid="workflag"/>
  516. <BindItem id="item9" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_send_goodreq" columnid="stocdeptcd"/>
  517. <BindItem id="item10" compid="grp_sea.ipt_emplno" propid="value" datasetid="ds_send_goodreq" columnid="emplno"/>
  518. <BindItem id="item11" compid="grp_sea.cmb_reqflag" propid="value" datasetid="ds_send_goodreq" columnid="reqflag"/>
  519. <BindItem id="item12" compid="grp_sea.ipt_emplnm" propid="value" datasetid="ds_send_goodreq" columnid="emplnm"/>
  520. <BindItem id="item13" compid="grp_sea.ipt_goodnm" propid="value" datasetid="ds_send_goodreq" columnid="goodnm"/>
  521. <BindItem id="item14" compid="grp_sea.ipt_goodcd" propid="value" datasetid="ds_send_goodreq" columnid="goodcd"/>
  522. <BindItem id="item15" compid="grp_sea.radio1" propid="value" datasetid="ds_temp" columnid="viewflag"/>
  523. <BindItem id="item16" compid="grp_sea.opt_instcd" propid="value" datasetid="ds_send_goodreq" columnid="instcd"/>
  524. </Bind>
  525. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  526. * System Name :
  527. * Job Name :
  528. * Creator :
  529. * Make Date : 2017-06-19
  530. * Description :
  531. *---------------------------------------------------------------------------------------
  532. * Modify Date Modifier Modify Description
  533. *---------------------------------------------------------------------------------------
  534. * 2017-06-19 Live Converter TF->XP
  535. *
  536. *---------------------------------------------------------------------------------------
  537. ****************************************************************************************/
  538. include "com_commonxp::comm_main.xjs";
  539. include "mis_miscommonxp::MIS.xjs";
  540. include "mis_miscommonxp::RSZ001.xjs";
  541. var arErrorCode = new HashArray();
  542. function SMRSD02100_oninit(obj:Form, e:InitEventInfo)
  543. {
  544. frmf_initForm(obj);
  545. }
  546. function SMRSD02100_onload(obj:Form, e:LoadEventInfo)
  547. {
  548. grdf_initGrid(grd_goodreq);
  549. grdf_initGrid(group2.grd_goodlist);
  550. grdf_setRowTypeIcon(group2.grd_goodlist, 0);
  551. fInitialize();
  552. }
  553. function fInitialize()
  554. {
  555. misfComboComCdList("R0092",grp_sea.cmb_reqmthd ,"Y");
  556. misfComboComCdList("R0116",grp_sea.cmb_deliveprcsflag,"Y");
  557. rszfUserReqFlagList("grp_sea.cmb_reqflag",sysf_getUserInfo("dutplceinstcd"),sysf_getUserInfo("userid"),"1","S" );
  558. rszfGoodFlagListByPgmGubn(grp_sea.cmb_goodflag,"","N");
  559. rszfComboStockArthDeptcdList("grp_sea.cmb_deptcd",sysf_getUserInfo("dutplceinstcd") ,"PH" );
  560. frmf_addComboItem("grp_sea.cmb_deptcd","전체","","above");
  561. grp_sea.cmb_reqmthd.value = "3";
  562. misfGridInit(grd_goodreq);
  563. //misfMsterDetailSet(grd_goodreq,null, "TRRSD02001" ,"N");
  564. grp_sea.opt_instcd.value = sysf_getUserInfo("dutplceinstcd");
  565. grp_sea.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
  566. var curdate = utlf_getCurrentDate();
  567. var cvtdate = curdate.toDate("YYYYMMDD");
  568. grp_sea.cmb_goodflag.value = "PH";
  569. ds_send_goodreq.setColumn(0, "reqfrdd", cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  570. ds_send_goodreq.setColumn(0, "reqtodd", curdate);
  571. grp_sea.radio1.value = "1";
  572. }
  573. function ds_send_goodreq_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  574. {
  575. if(e.columnid == "reqdeptcd")
  576. {
  577. grp_sea.ipt_reqdeptcd.value = e.newvalue;
  578. grp_sea.ipt_reqdeptcd.setFocus();
  579. if(String(e.newvalue).length == 0)
  580. {
  581. grp_sea.ipt_reqdeptnm.value = "";
  582. }
  583. else
  584. {
  585. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd", "deptcd," + e.newvalue, "", "reqdeptcd,reqdeptnm",grp_sea.ipt_reqdeptcd, "SPRPZ00200", "","");
  586. }
  587. }
  588. if(e.columnid == "reqdeptnm")
  589. {
  590. grp_sea.ipt_reqdeptnm.value = e.newvalue;
  591. grp_sea.ipt_reqdeptnm.setFocus();
  592. if(String(e.newvalue).length == 0)
  593. {
  594. grp_sea.ipt_reqdeptcd.value = "";
  595. }
  596. else
  597. {
  598. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm", "deptnm," + e.newvalue, "", "reqdeptcd,reqdeptnm",grp_sea.ipt_reqdeptnm, "SPRPZ00200", "","");
  599. }
  600. }
  601. if(e.columnid == "goodcd")
  602. {
  603. grp_sea.ipt_goodcd.value = e.newvalue;
  604. grp_sea.ipt_goodcd.setFocus();
  605. if(String(e.newvalue).length == 0)
  606. {
  607. grp_sea.ipt_goodnm.value = "";
  608. }
  609. else
  610. {
  611. obj.setColumn(0, "goodnm", "")
  612. grp_sea.btn_searchgoodcd.click();
  613. }
  614. }
  615. if(e.columnid == "goodnm")
  616. {
  617. grp_sea.ipt_goodnm.value = e.newvalue;
  618. grp_sea.ipt_goodnm.setFocus();
  619. if(String(e.newvalue).length == 0)
  620. {
  621. grp_sea.ipt_goodcd.value = "";
  622. }
  623. else
  624. {
  625. obj.setColumn(0, "goodcd", "")
  626. grp_sea.btn_searchgoodcd.click();
  627. }
  628. }
  629. }
  630. function grp_sea_btn_windeptcd_onclick(obj:Button, e:ClickEventInfo)
  631. {
  632. var recv_list = "reqdeptcd,reqdeptnm";
  633. misfOpenPopUpList("02", grp_sea.ipt_reqdeptcd,"", recv_list) ;
  634. }
  635. function grp_sea_cmb_workflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  636. {
  637. grp_sea.btn_search.click();
  638. }
  639. function grp_sea_ipt_emplno_onkeydown(obj:Edit, e:KeyEventInfo)
  640. {
  641. if(e.keycode == 13)
  642. {
  643. obj.updateToDataset();
  644. grp_sea.btn_search.click();
  645. }
  646. }
  647. function grp_sea_btn_helppsn_onclick(obj:Button, e:ClickEventInfo)
  648. {
  649. rpbfOpenPopUpList("SPRPB00101", grp_sea.ipt_emplno, "emplno,emplnm", "","N");
  650. }
  651. function grp_sea_btn_searchgoodcd_onclick(obj:Button, e:ClickEventInfo)
  652. {
  653. dsf_makeValue(ds_send_goodiolist, "instcd", "string", ds_send_goodreq.getColumn(0, "instcd"), 0);
  654. dsf_makeValue(ds_send_goodiolist, "goodflag", "string", "PH", 0);
  655. dsf_makeValue(ds_send_goodiolist, "goodcd", "string", ds_send_goodreq.getColumn(0, "goodcd"), 0);
  656. dsf_makeValue(ds_send_goodiolist, "goodnm", "string", ds_send_goodreq.getColumn(0, "goodnm"), 0);
  657. var oParam = {};
  658. oParam.id = "TRRSD00192";
  659. oParam.service = "purccommonapp.PurcCommon";
  660. oParam.method = "reqGetPhamGoodListByCond";
  661. oParam.inds = "req=ds_send_goodiolist";
  662. oParam.outds = "ds_init_main_goodlist=goodlist";
  663. oParam.async = false;
  664. oParam.callback = "cf_TRRSD00192";
  665. tranf_submit(oParam);
  666. if(arErrorCode.pop("TRRSD00192") > -1)
  667. {
  668. var nodecnts = ds_init_main_goodlist.rowcount;
  669. if (nodecnts > 1)
  670. {
  671. group2.visible = true;
  672. }
  673. else if (nodecnts == 1)
  674. {
  675. var goodcd = ds_init_main_goodlist.getColumn(0, "goodcd");
  676. var goodnm = ds_init_main_goodlist.getColumn(0, "goodnm");
  677. ds_send_goodreq.setColumn(0, "goodcd", goodcd);
  678. ds_send_goodreq.setColumn(0, "goodnm", goodnm);
  679. }
  680. else
  681. {
  682. sysf_messageBox("검색된 코드가 없습니다.", "I");
  683. }
  684. }
  685. }
  686. function cf_TRRSD00192(sSvcId, nErrorCode, sErrorMsg)
  687. {
  688. arErrorCode.push(sSvcId, nErrorCode);
  689. if(nErrorCode < 0) return;
  690. }
  691. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  692. {
  693. if (ds_temp.getColumn(0, "viewflag") == "1")
  694. {
  695. var dPath = "ds_main_goodreqmst";
  696. var pPath = "ds_send_goodreq";
  697. if(fCheckRetrieveData(false) == false)return;
  698. misfGridInit(grd_goodreq)
  699. var oParam = {};
  700. oParam.id = "TRRSD02001";
  701. oParam.service = "reqapp.ReqMngt";
  702. oParam.method = "reqGetDailyReqList";
  703. oParam.inds = "req=ds_send_goodreq";
  704. oParam.outds = "ds_main_list_goodreq_goodreqlist=goodreqlist";
  705. oParam.async = false;
  706. //oParam.callback = "cf_TRRSD02001";
  707. tranf_submit(oParam);
  708. dsf_makeValue(eval(dPath), "instcdnm", "string", eval(pPath).getColumn(0, "instcdnm"), 0);
  709. dsf_makeValue(eval(dPath), "reqdeptnm", "string", eval(pPath).getColumn(0, "reqdeptnm"), 0);
  710. dsf_makeValue(eval(dPath), "reqfrdd", "string", eval(pPath).getColumn(0, "reqfrdd"), 0);
  711. dsf_makeValue(eval(dPath), "reqtodd", "string", eval(pPath).getColumn(0, "reqtodd"), 0);
  712. datagrid1.visible = false;
  713. }
  714. else
  715. {
  716. for (var i = datagrid1.getFormatColCount(); i > 0; i--)
  717. {
  718. datagrid1.deleteContentsCol(i);
  719. }
  720. ds_main_print_header.clearData();
  721. ds_main_print_list.clearData();
  722. var oParam = {};
  723. oParam.id = "TRRSD02002";
  724. oParam.service = "reqapp.ReqMngt";
  725. oParam.method = "reqGetDailyReqListPrint";
  726. oParam.inds = "req=ds_send_goodreq";
  727. oParam.outds = "ds_main_print_list=list ds_main_print_header=header";
  728. oParam.async = false;
  729. //oParam.callback = "cf_TRRSD02002";
  730. tranf_submit(oParam);
  731. var count = ds_main_print_header.rowcount;
  732. var caption = "약품코드^약품명";
  733. for(var i = 0; i < count; i++)
  734. {
  735. caption += "^" + ds_main_print_header.getColumn(i, "reqdeptnm");
  736. }
  737. colIDs = caption.split("^");
  738. for(var i = 0; i < colIDs.length; i++)
  739. {
  740. datagrid1.appendContentsCol();
  741. trace(i)
  742. datagrid1.setCellProperty("Head", i, "text", colIDs[i]);
  743. if(i > 1)
  744. {
  745. datagrid1.setCellProperty("Body", i, "text", "bind:ward"+parseInt(i-2));
  746. }
  747. else
  748. {
  749. datagrid1.setCellProperty("Body", 0, "text", "bind:goodcd");
  750. datagrid1.setCellProperty("Body", 1, "text", "bind:goodnm");
  751. }
  752. datagrid1.setCellProperty("Body", i, "align", "left middle");
  753. datagrid1.setFormatColProperty(i, "size", 120);
  754. }
  755. datagrid1.visible = true;
  756. datagrid1.binddataset = "ds_main_print_list";
  757. datagrid1.deleteContentsCol(colIDs.length);
  758. }
  759. }
  760. function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  761. {
  762. grp_sea.btn_search.click();
  763. }
  764. function fCheckRetrieveData(pmsg)
  765. {
  766. if(String(grp_sea.opt_instcd.value).length== 0 )
  767. {
  768. grp_sea.opt_instcd.setFocus();
  769. return false;
  770. }
  771. }
  772. function button6_onclick(obj:Button, e:ClickEventInfo)
  773. {
  774. fInitialize();
  775. }
  776. function button13_onclick(obj:Button, e:ClickEventInfo)
  777. {
  778. if (ds_temp.getColumn(0, "viewflag") == "1")
  779. {
  780. freqlistprint();
  781. }
  782. else
  783. {
  784. alert("조회구분이 '일반'일 때 출력할 수 있습니다.");
  785. }
  786. }
  787. function freqlistprint()
  788. {
  789. ds_prtinfo_goodreq_goodreqlist.clearData();
  790. ds_prtinfo_baseinfo.clearData();
  791. dsf_makeValue(ds_prtinfo_baseinfo, "instcdnm", "string", ds_send_goodreq.getColumn(0, "instcdnm"), 0);
  792. dsf_makeValue(ds_prtinfo_baseinfo, "reqfrdd", "string", ds_send_goodreq.getColumn(0, "reqfrdd"), 0);
  793. dsf_makeValue(ds_prtinfo_baseinfo, "reqtodd", "string", ds_send_goodreq.getColumn(0, "reqtodd"), 0);
  794. dsf_makeValue(ds_prtinfo_baseinfo, "workflagnm", "string", grp_sea.cmb_workflag.text, 0);
  795. ds_prtinfo_goodreq_goodreqlist.copyData(ds_main_list_goodreq_goodreqlist);
  796. var objDOM = rptf_createDOM();
  797. rptf_setNodeListToDOM(objDOM, "/root/prtinfo/baseinfo", ds_prtinfo_baseinfo);
  798. rptf_setNodeListToDOM(objDOM, "/root/prtinfo/goodreq/goodreqlist", ds_prtinfo_goodreq_goodreqlist);
  799. var objParam = new Object();
  800. objParam.xml_data_XML1 = objDOM.documentElement.source;
  801. var option = "";
  802. rptf_exeReportPreview30(["RPRSD02101"],[objParam], option);
  803. }
  804. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  805. {
  806. if (ds_temp.getColumn(0, "viewflag") == "1")
  807. {
  808. grdf_exportExcel(grd_goodreq, "청구현황", "약품청구현황List", "true", "", "");
  809. }
  810. else
  811. {
  812. grdf_exportExcel(datagrid1, "청구현황", "약품청구현황List", "true", "", "");
  813. }
  814. }
  815. ]]></Script>
  816. </Form>
  817. </FDL>