SPRSC08300_물류정보갱신.xfdl 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSC08300" position="absolute 0 0 969 481" titletext="통합내용갱신" oninit="SPRSC08300_oninit" onload="SPRSC08300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" taborder="5" class="div_SA2" position="absolute 0 0 965 40">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" text="적용일자 검색구간 :" class="search_name" position="absolute 5 11 148 28" anchor="default"/>
  11. <Calendar id="ipt_fromdd" taborder="6" autoselect="true" autoskip="true" class="input_search" position="absolute 148 10 248 29" anchor="default"/>
  12. <Calendar id="ipt_todd" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 265 10 365 29" anchor="default"/>
  13. <Static id="caption3" text="약품코드 :" class="search_name" position="absolute 386 12 476 29" anchor="default"/>
  14. <Edit id="ipt_goodcd" taborder="8" autoselect="true" autoskip="true" class="input_search" position="absolute 470 10 570 29" anchor="default" onkeydown="group1_ipt_goodcd_onkeydown"/>
  15. <Static id="caption4" text="구 분 1 :" class="search_name" visible="false" position="absolute 590 12 685 29" anchor="default"/>
  16. <Radio id="rdo_chggubn" taborder="9" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 680 12 820 28" anchor="default">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">A</Col>
  25. <Col id="datacolumn">전체</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">I</Col>
  29. <Col id="datacolumn">신규</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">U</Col>
  33. <Col id="datacolumn">변경</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Radio>
  38. <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 895 10 951 32" anchor="default" onclick="group1_btn_sea_onclick"/>
  39. <Static id="caption7" text="~" position="absolute 250 10 265 30" anchor="default"/>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Shape id="line1" class="line_10" position="absolute 0 69 965 75" anchor="left top right"/>
  44. <Static id="caption1" text="통합내용갱신" class="tit_2" position="absolute 0 53 100 75"/>
  45. <Button id="btn_excsave" taborder="1" text="엑셀저장" class="btn7" position="absolute 885 50 965 69"/>
  46. <Grid id="grd_data" class="datagrid2" taborder="2" binddataset="ds_main_updategood_goodlist" useinputpanel="false" position="absolute 0 74 965 434" autoenter="select" cellsizingtype="col">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="22" band="left"/>
  51. <Column size="0" band="left"/>
  52. <Column size="24" band="left"/>
  53. <Column size="0" band="left"/>
  54. <Column size="40" band="left"/>
  55. <Column size="100" band="left"/>
  56. <Column size="0" band="left"/>
  57. <Column size="83" band="left"/>
  58. <Column size="88" band="left"/>
  59. <Column size="80" band="left"/>
  60. <Column size="76"/>
  61. <Column size="0"/>
  62. <Column size="100"/>
  63. <Column size="0"/>
  64. <Column size="80"/>
  65. <Column size="150"/>
  66. <Column size="0"/>
  67. <Column size="100"/>
  68. <Column size="0"/>
  69. <Column size="67"/>
  70. <Column size="150"/>
  71. <Column size="0"/>
  72. <Column size="60"/>
  73. <Column size="0"/>
  74. <Column size="130"/>
  75. <Column size="0"/>
  76. <Column size="150"/>
  77. <Column size="0"/>
  78. <Column size="200"/>
  79. <Column size="0"/>
  80. <Column size="100"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. <Column size="100"/>
  84. <Column size="100"/>
  85. <Column size="100"/>
  86. <Column size="100"/>
  87. <Column size="80"/>
  88. <Column size="100"/>
  89. <Column size="80"/>
  90. <Column size="35"/>
  91. <Column size="35"/>
  92. <Column size="35"/>
  93. <Column size="35"/>
  94. <Column size="30"/>
  95. <Column size="30"/>
  96. <Column size="30"/>
  97. <Column size="30"/>
  98. <Column size="0"/>
  99. <Column size="57"/>
  100. <Column size="100"/>
  101. <Column size="100"/>
  102. <Column size="100"/>
  103. <Column size="100"/>
  104. <Column size="100"/>
  105. <Column size="80"/>
  106. <Column size="80"/>
  107. <Column size="100"/>
  108. <Column size="80"/>
  109. <Column size="80"/>
  110. <Column size="70"/>
  111. <Column size="0"/>
  112. <Column size="70"/>
  113. <Column size="200"/>
  114. <Column size="0"/>
  115. <Column size="200"/>
  116. <Column size="200"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. <Column size="0"/>
  124. <Column size="0"/>
  125. <Column size="0"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. </Columns>
  131. <Rows>
  132. <Row size="34" band="head"/>
  133. <Row size="42"/>
  134. </Rows>
  135. <Band id="head">
  136. <Cell/>
  137. <Cell col="1" text="인터페이스 id"/>
  138. <Cell col="2"/>
  139. <Cell col="3" text="구분&#10;코드"/>
  140. <Cell col="4" text="구분"/>
  141. <Cell col="5" text="적용일자"/>
  142. <Cell col="6" text="물류적용일자"/>
  143. <Cell col="7" text="현재기관&#10;적용일자"/>
  144. <Cell col="8" text="약품코드"/>
  145. <Cell col="9" text="약품대표코드"/>
  146. <Cell col="10" text="연번"/>
  147. <Cell col="11" text="중복제외&#10;대표코드"/>
  148. <Cell col="12" text="구코드"/>
  149. <Cell col="13" text="도매상코드"/>
  150. <Cell col="14" text="EDI코드"/>
  151. <Cell col="15" text="물품명"/>
  152. <Cell col="16" text="한글명"/>
  153. <Cell col="17" text="영문명"/>
  154. <Cell col="18" text="goodspec"/>
  155. <Cell col="19" text="성분코드"/>
  156. <Cell col="20" text="성분명"/>
  157. <Cell col="21" text="대분류코드"/>
  158. <Cell col="22" text="대분류"/>
  159. <Cell col="23" text="중분류코드"/>
  160. <Cell col="24" text="중분류"/>
  161. <Cell col="25" text="소분류코드"/>
  162. <Cell col="26" text="소분류"/>
  163. <Cell col="27" text="welfprt"/>
  164. <Cell col="28" text="복지부분류"/>
  165. <Cell col="29" text="제조회사코드"/>
  166. <Cell col="30" text="제조회사"/>
  167. <Cell col="31" text="판매회사코드"/>
  168. <Cell col="32" text="판매회사"/>
  169. <Cell col="33" text="주거래처코드"/>
  170. <Cell col="34" text="주거래처"/>
  171. <Cell col="35" text="자산구분"/>
  172. <Cell col="36" text="입고계정코드"/>
  173. <Cell col="37" text="입고계정"/>
  174. <Cell col="38" text="비용계정코드"/>
  175. <Cell col="39" text="비용계정"/>
  176. <Cell col="40" text="함량용량" wordwrap="word"/>
  177. <Cell col="41" text="함량단위" wordwrap="word"/>
  178. <Cell col="42" text="규격수량" wordwrap="word"/>
  179. <Cell col="43" text="규격단위" wordwrap="word"/>
  180. <Cell col="44" text="병원용량" wordwrap="word"/>
  181. <Cell col="45" text="병원단위" wordwrap="word"/>
  182. <Cell col="46" text="처방수량" wordwrap="word"/>
  183. <Cell col="47" text="처방단위" wordwrap="word"/>
  184. <Cell col="48" text="gnrlspcl"/>
  185. <Cell col="49" text="처방환산"/>
  186. <Cell col="50" text="수가계산방법"/>
  187. <Cell col="51" text="그룹여부"/>
  188. <Cell col="52" text="낱개수량"/>
  189. <Cell col="53" text="낱개단위"/>
  190. <Cell col="54" text="포장단위"/>
  191. <Cell col="55" text="보험단가"/>
  192. <Cell col="56" text="처방단가"/>
  193. <Cell col="57" text="상한가"/>
  194. <Cell col="58" text="구입단가"/>
  195. <Cell col="59" text="구입가"/>
  196. <Cell col="60" text="일반/전문"/>
  197. <Cell col="61" text="keepmthd"/>
  198. <Cell col="62" text="실제보관법"/>
  199. <Cell col="63" text="허가보관방법"/>
  200. <Cell col="64" text="불용일"/>
  201. <Cell col="65" text="변경사유"/>
  202. <Cell col="66" text="비고"/>
  203. <Cell col="67" text="포장수량"/>
  204. <Cell col="68" text="특별약품"/>
  205. <Cell col="69" text="약품종류"/>
  206. <Cell col="70" text="all size 유무"/>
  207. <Cell col="71" text="drugtoddhis"/>
  208. <Cell col="72" text="ifstatus"/>
  209. <Cell col="73" text="prefromdd"/>
  210. <Cell col="74" text="conflag"/>
  211. <Cell col="75" text="mngtcls"/>
  212. <Cell col="76" text="purccls"/>
  213. <Cell col="77" text="통계구분(약품)"/>
  214. <Cell col="78" text="EDI단위(약품)"/>
  215. <Cell col="79" text="EDI환산수량(약품)"/>
  216. </Band>
  217. <Band id="body">
  218. <Cell celltype="head" expr="currow+1"/>
  219. <Cell col="1" text="bind:ifid"/>
  220. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  221. <Cell col="3" text="bind:chggubn"/>
  222. <Cell col="4" text="bind:chggubnnm"/>
  223. <Cell col="5" displaytype="date" edittype="date" text="bind:instfromdd" calendardisplaynulltype="nulltext"/>
  224. <Cell col="6" displaytype="date" edittype="date" text="bind:condd" calendardisplaynulltype="nulltext"/>
  225. <Cell col="7" displaytype="date" text="bind:instfromdd" calendardisplaynulltype="nulltext"/>
  226. <Cell col="8" text="bind:goodcd"/>
  227. <Cell col="9" text="bind:reprgoodcd"/>
  228. <Cell col="10" text="bind:asisgoodcd"/>
  229. <Cell col="11" text="bind:dupexpgoodcd"/>
  230. <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:oldcd"/>
  231. <Cell col="13" text="bind:bnscd"/>
  232. <Cell col="14" text="bind:edicd"/>
  233. <Cell col="15" style="align:left middle;padding:0 0 0 3;" text="bind:goodnm"/>
  234. <Cell col="16" text="bind:goodhngnm"/>
  235. <Cell col="17" style="align:left middle;padding:0 0 0 3;" text="bind:goodengnm"/>
  236. <Cell col="18" text="bind:goodspec"/>
  237. <Cell col="19" style="align:left middle;padding:0 0 0 3;" text="bind:com"/>
  238. <Cell col="20" style="align:left middle;padding:0 0 0 3;" text="bind:comnm"/>
  239. <Cell col="21" text="bind:lrgcd"/>
  240. <Cell col="22" text="bind:lrgnm"/>
  241. <Cell col="23" text="bind:mdlcd"/>
  242. <Cell col="24" style="align:left middle;padding:0 0 0 3;" text="bind:mdlnm"/>
  243. <Cell col="25" text="bind:smlcd"/>
  244. <Cell col="26" style="align:left middle;padding:0 0 0 3;" text="bind:smlnm"/>
  245. <Cell col="27" text="bind:welfprt"/>
  246. <Cell col="28" style="align:left middle;padding:0 0 0 3;" text="bind:welfprtnm"/>
  247. <Cell col="29" text="bind:prodcmpycd"/>
  248. <Cell col="30" style="align:left middle;padding:0 0 0 3;" text="bind:prodcmpynm"/>
  249. <Cell col="31" style="align:left middle;padding:0 0 0 3;" text="bind:suppcustcd"/>
  250. <Cell col="32" style="align:left middle;padding:0 0 0 3;" text="bind:suppcustnm"/>
  251. <Cell col="33" style="align:left middle;padding:0 0 0 3;" text="bind:maincustlastsuplplce"/>
  252. <Cell col="34" style="align:left middle;padding:0 0 0 3;" text="bind:maincustlastsuplplcenm"/>
  253. <Cell col="35" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:asetflag"/>
  254. <Cell col="36" style="align:left middle;padding:0 0 0 3;" text="bind:winacnt"/>
  255. <Cell col="37" style="align:left middle;padding:0 0 0 3;" text="bind:winacntnm"/>
  256. <Cell col="38" style="align:left middle;padding:0 0 0 3;" text="bind:amtacnt"/>
  257. <Cell col="39" style="align:left middle;padding:0 0 0 3;" text="bind:amtacntnm"/>
  258. <Cell col="40" style="align:left middle;padding:0 0 0 3;" text="bind:cntsqty"/>
  259. <Cell col="41" style="align:left middle;padding:0 0 0 3;" text="bind:cntsunit"/>
  260. <Cell col="42" style="align:left middle;padding:0 0 0 3;" text="bind:specvol"/>
  261. <Cell col="43" style="align:left middle;padding:0 0 0 3;" text="bind:specunit"/>
  262. <Cell col="44" style="align:left middle;padding:0 0 0 3;" text="bind:hospdrguvol"/>
  263. <Cell col="45" style="align:left middle;padding:0 0 0 3;" text="bind:hospdrguunit"/>
  264. <Cell col="46" style="align:left middle;padding:0 0 0 3;" text="bind:prcpqty"/>
  265. <Cell col="47" style="align:left middle;padding:0 0 0 3;" text="bind:prcpunit"/>
  266. <Cell col="48" text="bind:gnrlspcl"/>
  267. <Cell col="49" text="bind:prcpexchqty"/>
  268. <Cell col="50" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:calcmthdcd" combodataset="ds_init_P0133list_P0133" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  269. <Cell col="51" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:grupsnglflag" combodataset="ds_init_P0133list_P0133" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  270. <Cell col="52" style="align:left middle;padding:0 0 0 3;" text="bind:exchqty"/>
  271. <Cell col="53" style="align:left middle;padding:0 0 0 3;" text="bind:deliveunit"/>
  272. <Cell col="54" style="align:left middle;padding:0 0 0 3;" text="bind:purcunit"/>
  273. <Cell col="55" displaytype="number" text="bind:insucost"/>
  274. <Cell col="56" displaytype="number" text="bind:estmamt"/>
  275. <Cell col="57" displaytype="number" text="bind:upperlimit"/>
  276. <Cell col="58" displaytype="number" text="bind:goodunitcost"/>
  277. <Cell col="59" displaytype="number" text="bind:goodpurccost"/>
  278. <Cell col="60" text="bind:gnrlspclnm"/>
  279. <Cell col="61" text="bind:keepmthd"/>
  280. <Cell col="62" text="bind:keepmthdnm"/>
  281. <Cell col="63" style="align:left middle;padding:0 0 0 3;" text="bind:pemtkeepmthd" wordwrap="word"/>
  282. <Cell col="64" text="bind:todd"/>
  283. <Cell col="65" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:nonusetretresn" wordwrap="word" combodataset="ds_init_R0356list_R0356" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  284. <Cell col="66" style="align:left middle;padding:0 0 0 3;" text="bind:cmt" wordwrap="word"/>
  285. <Cell col="67" text="bind:purcqty"/>
  286. <Cell col="68" text="bind:specldrug"/>
  287. <Cell col="69" text="bind:drugkind"/>
  288. <Cell col="70" text="bind:allsizeyn"/>
  289. <Cell col="71" text="bind:drugtoddhis"/>
  290. <Cell col="72" text="bind:ifstatus"/>
  291. <Cell col="73" text="bind:prefromdd"/>
  292. <Cell col="74" text="bind:conflag"/>
  293. <Cell col="75" text="bind:mngtcls"/>
  294. <Cell col="76" text="bind:purccls"/>
  295. <Cell col="77" text="bind:statsflag"/>
  296. <Cell col="78" text="bind:ediunit"/>
  297. <Cell col="79" text="bind:ediexchqty"/>
  298. </Band>
  299. </Format>
  300. </Formats>
  301. </Grid>
  302. <Combo id="cmb_asetflag" taborder="3" visible="false" position="absolute 835 50 865 69"/>
  303. <Static id="caption6" text="* 주의사항 : 신규코드를 이 화면에서 등록한 경우 반드시 개별 코드 조회하여 재고관리기준을 입력 저장해야 합니다." position="absolute 115 54 823 67" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  304. <Edit id="output1" taborder="6" readonly="true" position="absolute 2 448 48 467"/>
  305. <Static id="caption5" text="건 조회 되었습니다." visible="false" position="absolute 54 449 273 468"/>
  306. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 442 965 448"/>
  307. <Button id="btn_insert" taborder="7" text="등록" class="btn4" position="absolute 848 448 904 470" onclick="btn_insert_onclick"/>
  308. <Button id="btn_close" taborder="8" text="닫기" class="btn4" position="absolute 909 448 965 470" onclick="btn_close_onclick"/>
  309. </Layout>
  310. </Layouts>
  311. <Objects>
  312. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="fromdd" type="STRING" size="256"/>
  315. <Column id="todd" type="STRING" size="256"/>
  316. <Column id="goodcd" type="STRING" size="256"/>
  317. <Column id="chggubn" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. <Rows>
  320. <Row>
  321. <Col id="fromdd"/>
  322. <Col id="todd"/>
  323. <Col id="goodcd"/>
  324. <Col id="chggubn"/>
  325. </Row>
  326. </Rows>
  327. </Dataset>
  328. <Dataset id="ds_main_updategood_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_updategood_goodlist_oncolumnchanged">
  329. <ColumnInfo>
  330. <Column id="ifid" type="STRING" size="256" sumtext="인터페이스id "/>
  331. <Column id="sel" type="STRING" size="256" sumtext="약품코드 "/>
  332. <Column id="chggubn" type="STRING" size="256" sumtext="구분코드 "/>
  333. <Column id="chggubnnm" type="STRING" size="256" sumtext="구분명 "/>
  334. <Column id="condd" type="STRING" size="256" sumtext="약품적용일자 "/>
  335. <Column id="condd" type="STRING" size="256" sumtext="약품적용일자 "/>
  336. <Column id="instfromdd" type="STRING" size="256" sumtext="기관적용일자 "/>
  337. <Column id="goodcd" type="STRING" size="256" sumtext="약품코드 "/>
  338. <Column id="oldcd" type="STRING" size="256" sumtext="구약품코드 "/>
  339. <Column id="edicd" type="STRING" size="256" sumtext="EDI코드 "/>
  340. <Column id="goodhngnm" type="STRING" size="256" sumtext="한글명 "/>
  341. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  342. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  343. <Column id="com" type="STRING" size="256" sumtext="성분명 "/>
  344. <Column id="comnm" type="STRING" size="256" sumtext="성분명 "/>
  345. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드 "/>
  346. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명 "/>
  347. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드 "/>
  348. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명 "/>
  349. <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드 "/>
  350. <Column id="smlnm" type="STRING" size="256" sumtext="소분류명 "/>
  351. <Column id="welfprt" type="STRING" size="256" sumtext="복지부분류 "/>
  352. <Column id="welfprtnm" type="STRING" size="256" sumtext="복지부분류명 "/>
  353. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량 "/>
  354. <Column id="prcpunit" type="STRING" size="256" sumtext="처방단위 "/>
  355. <Column id="cntsqty" type="STRING" size="256" sumtext="함량용량 "/>
  356. <Column id="cntsunit" type="STRING" size="256" sumtext="함량단위 "/>
  357. <Column id="gnrlspcl" type="STRING" size="256" sumtext="일반/전문 "/>
  358. <Column id="gnrlspclnm" type="STRING" size="256" sumtext="일반/전문 명 "/>
  359. <Column id="keepmthd" type="STRING" size="256" sumtext="실제보관법 "/>
  360. <Column id="keepmthdnm" type="STRING" size="256" sumtext="실제보관법명 "/>
  361. <Column id="pemtkeepmthd" type="STRING" size="256" sumtext="허가보관방법 "/>
  362. <Column id="todd" type="STRING" size="256" sumtext="불용일 "/>
  363. <Column id="drugtoddhis" type="STRING" size="256" sumtext="약품적용일자 "/>
  364. <Column id="ifstatus" type="STRING" size="256" sumtext="인터페이스종류 "/>
  365. <Column id="bnscd" type="STRING" size="256" sumtext="보나에스코드 "/>
  366. <Column id="goodengnm" type="STRING" size="256" sumtext="영문상품명 "/>
  367. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  368. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드 "/>
  369. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명 "/>
  370. <Column id="suppcustcd" type="STRING" size="256" sumtext="판매회사코드 "/>
  371. <Column id="suppcustnm" type="STRING" size="256" sumtext="판매회사명 "/>
  372. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="주거래처코드 "/>
  373. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명 "/>
  374. <Column id="asetflag" type="STRING" size="256" sumtext="자산구분 "/>
  375. <Column id="winacnt" type="STRING" size="256" sumtext="입고계정코드 "/>
  376. <Column id="winacntnm" type="STRING" size="256" sumtext="입고계정 "/>
  377. <Column id="amtacnt" type="STRING" size="256" sumtext="비용계정코드 "/>
  378. <Column id="amtacntnm" type="STRING" size="256" sumtext="비용계정 "/>
  379. <Column id="specvol" type="STRING" size="256" sumtext="규격용량 "/>
  380. <Column id="specunit" type="STRING" size="256" sumtext="규격단위 "/>
  381. <Column id="hospdrguvol" type="STRING" size="256" sumtext="병원용량 "/>
  382. <Column id="hospdrguunit" type="STRING" size="256" sumtext="병원단위 "/>
  383. <Column id="prcpexchqty" type="STRING" size="256" sumtext="처방환산 "/>
  384. <Column id="calcmthdcd" type="STRING" size="256" sumtext="수가계산방법 "/>
  385. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹여부 "/>
  386. <Column id="exchqty" type="STRING" size="256" sumtext="낱개수량 "/>
  387. <Column id="deliveunit" type="STRING" size="256" sumtext="낱개단위 "/>
  388. <Column id="purcunit" type="STRING" size="256" sumtext="포장단위 "/>
  389. <Column id="insucost" type="STRING" size="256" sumtext="보험단가 "/>
  390. <Column id="estmamt" type="STRING" size="256" sumtext="처방단가 "/>
  391. <Column id="goodunitcost" type="STRING" size="256" sumtext="구입단가 "/>
  392. <Column id="goodpurccost" type="STRING" size="256" sumtext="구입가 "/>
  393. <Column id="nonusetretresn" type="STRING" size="256" sumtext="변경사유 "/>
  394. <Column id="cmt" type="STRING" size="256" sumtext="비고 "/>
  395. <Column id="purcqty" type="STRING" size="256" sumtext="포장수량 "/>
  396. <Column id="specldrug" type="STRING" size="256" sumtext="특별약품 "/>
  397. <Column id="drugkind" type="STRING" size="256" sumtext="약품종류 "/>
  398. <Column id="allsizeyn" type="STRING" size="256" sumtext="all size 유무 "/>
  399. <Column id="condd" type="STRING" size="256" sumtext="원약품적용일자 "/>
  400. <Column id="dupexpgoodcd" type="STRING" size="256" sumtext="중복제외대표코드 "/>
  401. <Column id="dupexpgoodcdold" type="STRING" size="256" sumtext="중복제외대표코드 "/>
  402. <Column id="dupexpgoodcdnm" type="STRING" size="256" sumtext="중복제외대표코드명칭"/>
  403. <Column id="shadelight" type="STRING" size="256" sumtext="차광구분 "/>
  404. <Column id="upperlimit" type="STRING" size="256" sumtext="상한가 "/>
  405. <Column id="conflag" type="STRING" size="256" sumtext="계약구분 "/>
  406. <Column id="reprgoodcd" type="STRING" size="256" sumtext="대표약품코드 "/>
  407. <Column id="asisgoodcd" type="STRING" size="256" sumtext="연번 "/>
  408. <Column id="mngtcls" type="STRING" size="256" sumtext="관리분류 "/>
  409. <Column id="purccls" type="STRING" size="256" sumtext="구입분류 "/>
  410. <Column id="statsflag" type="STRING" size="256" sumtext="통계구분(약품) "/>
  411. <Column id="ediunit" type="STRING" size="256" sumtext="EDI단위(약품) "/>
  412. <Column id="ediexchqty" type="STRING" size="256" sumtext="EDI환산수량(약품) "/>
  413. <Column id="prefromdd" type="STRING" size="256"/>
  414. <Column id="fromdd" type="STRING" size="256"/>
  415. </ColumnInfo>
  416. </Dataset>
  417. <Dataset id="ds_init_P0133list_P0133" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  418. <Dataset id="ds_init_P0142list_P0142" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  419. <Dataset id="ds_init_R0356list_R0356" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  420. <Dataset id="ds" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  421. <ColumnInfo>
  422. <Column id="cnt" type="STRING" size="256"/>
  423. </ColumnInfo>
  424. <Rows>
  425. <Row/>
  426. </Rows>
  427. </Dataset>
  428. <Dataset id="ds_send_drugdata_druginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  429. <Dataset id="ds_send_save_gooddetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  430. </Objects>
  431. <Bind>
  432. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_srchinfo" columnid="fromdd"/>
  433. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send_srchinfo" columnid="todd"/>
  434. <BindItem id="item2" compid="group1.ipt_goodcd" propid="value" datasetid="ds_send_srchinfo" columnid="goodcd"/>
  435. <BindItem id="item3" compid="group1.rdo_chggubn" propid="value" datasetid="ds_send_srchinfo" columnid="chggubn"/>
  436. <BindItem id="item4" compid="output1" propid="value" datasetid="ds" columnid="cnt"/>
  437. </Bind>
  438. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  439. * System Name :
  440. * Job Name :
  441. * Creator :
  442. * Make Date : 2017-06-19
  443. * Description :
  444. *---------------------------------------------------------------------------------------
  445. * Modify Date Modifier Modify Description
  446. *---------------------------------------------------------------------------------------
  447. * 2017-06-19 Live Converter TF->XP
  448. *
  449. *---------------------------------------------------------------------------------------
  450. ****************************************************************************************/
  451. include "com_commonxp::comm_main.xjs";
  452. include "mis_miscommonxp::MIS.xjs";
  453. function SPRSC08300_oninit(obj:Form, e:InitEventInfo)
  454. {
  455. frmf_initForm(obj);
  456. }
  457. function SPRSC08300_onload(obj:Form, e:LoadEventInfo)
  458. {
  459. grdf_initGrid(grd_data);
  460. grdf_setRowTypeIcon(grd_data, 0);
  461. setDate();
  462. misfComboComCdListMulti("R0043","cmb_asetflag");
  463. var arrParam = [{dsNm: "ds_init_P0133list_P0133", cdGrpId: "P0133"}
  464. ,{dsNm: "ds_init_P0142list_P0142", cdGrpId: "P0142"}
  465. ,{dsNm: "ds_init_R0356list_R0356", cdGrpId: "R0356"}]
  466. appf_getCodeList(arrParam);
  467. ds_send_srchinfo.setColumn(0, "chggubn", "A");
  468. fGetGoodList();
  469. }
  470. function setDate()
  471. {
  472. var curdate = utlf_getCurrentDate();
  473. var curyear = parseInt(String(curdate).substr(0,4));
  474. var curmonth = String(curdate).substr(4,2);
  475. var curday = String(curdate).substr(6,2);
  476. var preyear = curyear;
  477. var nextyear = curyear;
  478. var premonth = null;
  479. var nextmonth = null;
  480. if (String(curmonth).substr(0,1) == "0" )
  481. {
  482. curmonth = parseInt(String(curmonth).substr(1,2));
  483. }
  484. else
  485. {
  486. curmonth = parseInt(String(curmonth).substr(0,2));
  487. }
  488. if (String(curday).substr(0,1) == "0")
  489. {
  490. curday = parseInt(String(curday).substr(1,2));
  491. }
  492. else
  493. {
  494. curday = parseInt(String(curday).substr(0,2));
  495. }
  496. var preday = curday;
  497. var nextday = curday;
  498. if ( curmonth == 1 )
  499. {
  500. preyear = preyear - 1;
  501. premonth = 12;
  502. nextmonth = curmonth + 1;
  503. }
  504. else if ( curmonth == 12 )
  505. {
  506. nextyear = nextyear + 1;
  507. nextmonth = 1;
  508. premonth = curmonth - 1;
  509. }
  510. else
  511. {
  512. premonth = curmonth - 1;
  513. nextmonth = curmonth + 1;
  514. }
  515. if ( premonth == 2 && curday > 28 )
  516. preday = 28;
  517. if ( nextmonth == 2 && curday > 28 )
  518. nextday = 28;
  519. if ( preday != 28 && curday < 10 )
  520. preday = "0" + curday;
  521. if ( nextday != 28 && curday < 10 )
  522. nextday = "0" + curday;
  523. if ( premonth < 10 )
  524. premonth = "0" + premonth;
  525. if ( nextmonth < 10 )
  526. nextmonth = "0" + nextmonth;
  527. predate = preyear+""+premonth+""+preday;
  528. nextdate = nextyear+""+nextmonth+""+nextday;
  529. ds_send_srchinfo.setColumn(0, "fromdd", predate);
  530. ds_send_srchinfo.setColumn(0, "todd", nextdate);
  531. }
  532. function fGetGoodList()
  533. {
  534. var oParam = {};
  535. oParam.id = "TRRSC08301";
  536. oParam.service = "purcbaseapp.MisDrugMngt";
  537. oParam.method = "reqGetMisGoodList";
  538. oParam.inds = "req=ds_send_srchinfo";
  539. oParam.outds = "ds_main_updategood_goodlist=goodlist";
  540. oParam.async = false;
  541. //oParam.callback = "cf_TRRSC08301";
  542. tranf_submit(oParam);
  543. ds_main_updategood_goodlist.updatecontrol = false
  544. for(var i = 0; i < ds_main_updategood_goodlist.rowcount; i++)
  545. {
  546. dsf_makeValue(ds_main_updategood_goodlist, "fromdd", "string", ds_main_updategood_goodlist.getColumn(i, "condd"), i);
  547. dsf_makeValue(ds_main_updategood_goodlist, "prefromdd", "string", ds_main_updategood_goodlist.getColumn(i, "condd"), i);
  548. }
  549. dsf_setDefaultVal(ds_main_updategood_goodlist, "condd:'',condd:'',drugtoddhis:'',ifstatus:'',bnscd:'',goodspec:'',prodcmpycd:'',maincustlastsuplplce:'',maincustlastsuplplcenm:'',asetflag:'',winacnt:'',winacntnm:'',amtacnt:'',amtacntnm:'',specvol:'',specunit:'',hospdrguvol:'',hospdrguunit:'',prcpexchqty:'',calcmthdcd:'',grupsnglflag:'',insucost:'',estmamt:'',goodunitcost:'',goodpurccost:'',nonusetretresn:'',cmt:'',purcqty:'',specldrug:'',drugkind:'',allsizeyn:'',condd:'',dupexpgoodcd:'',dupexpgoodcdold:'',dupexpgoodcdnm:'',shadelight:'',upperlimit:'',conflag:'',reprgoodcd:'',asisgoodcd:'',mngtcls:'',purccls:'',statsflag:'',ediunit:'',ediexchqty:''");
  550. dsf_setFixVal(ds_main_updategood_goodlist, "sel:N");
  551. ds_main_updategood_goodlist.updatecontrol = true;
  552. ds_main_updategood_goodlist.rowposition = -1;
  553. ds.setColumn(0, "cnt", ds_main_updategood_goodlist.rowcount);
  554. caption5.visible = true;
  555. }
  556. function ds_main_updategood_goodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  557. {
  558. if(e.columnid == "sel")
  559. {
  560. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  561. if(e.newvalue == 0)
  562. {
  563. obj.updatecontrol = false;
  564. obj.setRowType(e.row, "");
  565. obj.updatecontrol = true;
  566. }
  567. else
  568. {
  569. obj.updatecontrol = false;
  570. obj.setRowType(e.row, "u");
  571. obj.updatecontrol = true;
  572. }
  573. }
  574. if(e.columnid == "fromdd")
  575. {
  576. var CompFromdd = obj.getColumn(e.row, "prefromdd");
  577. var sInstFromdd = obj.getColumn(e.row, "instfromdd");
  578. var sFromdd = e.newvalue;
  579. if(sFromdd < sInstFromdd)
  580. {
  581. sysf_messageBox("현재기관 적용일자보다 이전일자로 변경할수", "I004");
  582. obj.setColumn(e.row, "fromdd",CompFromdd);
  583. return;
  584. }
  585. }
  586. if(e.columnid == "drugfromdd")
  587. {
  588. var drugfromdd = e.newvalue;
  589. drugfromdd = drugfromdd.toDate("YYYYMMDD");
  590. obj.setColumn(e.row, "drugtoddhis", drugfromdd.getAddDate(-1).getDateFormat());
  591. }
  592. }
  593. function btn_insert_onclick(obj:Button, e:ClickEventInfo)
  594. {
  595. var chk = sysf_messageBox("물류정보를 갱신", "S001");
  596. var cnt = 0;
  597. if(chk == 6)
  598. {
  599. for(var i = 0; i < ds_main_updategood_goodlist.rowcount; i++)
  600. {
  601. if(ds_main_updategood_goodlist.getColumn(i, "sel") == "Y")
  602. {
  603. var CompFromdd = ds_main_updategood_goodlist.getColumn(i, "prefromdd");
  604. var sInstFromdd = ds_main_updategood_goodlist.getColumn(i, "instfromdd");
  605. var sFromdd = ds_main_updategood_goodlist.getColumn(i, "fromdd");
  606. if(sFromdd < sInstFromdd)
  607. {
  608. sysf_messageBox("기관 적용일자보다 이전일자로 변경할수", "I004");
  609. ds_main_updategood_goodlist.rowposition = i;
  610. grd_data.setCellPos(grd_data.getBindCellIndex("body", "fromdd"));
  611. grd_data.showEditor(true);
  612. return;
  613. }
  614. ds_main_updategood_goodlist.setColumn(i, "ifstatus", "S");
  615. ds_main_updategood_goodlist.updatecontrol = false;
  616. ds_main_updategood_goodlist.setRowType(i, "u");
  617. ds_main_updategood_goodlist.updatecontrol = true;
  618. cnt ++;
  619. }
  620. }
  621. if(cnt != 0)
  622. {
  623. for(var i = 0; i < ds_main_updategood_goodlist.rowcount; i++)
  624. {
  625. ds_main_updategood_goodlist.updatecontrol = false;
  626. dsf_makeValue(ds_main_updategood_goodlist, "hngnm", "string", ds_main_updategood_goodlist.getColumn(i, "goodnm"), i);
  627. ds_main_updategood_goodlist.updatecontrol = true;
  628. }
  629. var updateData = grdf_getGridUpdateData(grd_data);
  630. ds_send_drugdata_druginfo.copyData(updateData)
  631. ds_send_save_gooddetlist.copyData(updateData)
  632. ds_send_drugdata_druginfo.updatecontrol = false;
  633. dsf_setDefaultVal(ds_send_drugdata_druginfo, "drugfromdd:'',drugtoddhis:'',ifstatus:'',bnscd:'',goodengnm:'',prodcmpynm:'',suppcustnm:'',maincustlastsuplplcenm:'',asetflag:'',winacnt:'',winacntnm:'',amtacnt:'',amtacntnm:'',specvol:'',specunit:'',hospdrguvol:'',hospdrguunit:'',prcpexchqty:'',calcmthdcd:'',grupsnglflag:'',insucost:'',estmamt:'',goodunitcost:'',goodpurccost:'',nonusetretresn:'',cmt:''");
  634. ds_send_drugdata_druginfo.updatecontrol = true;
  635. var oParam = {};
  636. oParam.id = "TXRSC08301";
  637. oParam.service = "purcbaseapp.MisDrugMngt";
  638. oParam.method = "reqExeMisGoodList";
  639. oParam.inds = "druginfo=ds_send_drugdata_druginfo";
  640. oParam.outds = "ds_=item";
  641. oParam.async = false;
  642. //oParam.callback = "cf_TXRSC08301";
  643. tranf_submit(oParam);
  644. ds_send_drugdata_druginfo.updatecontrol = false;
  645. dsf_setDefaultVal(ds_send_drugdata_druginfo, "goodflag:PH,goodmodel:'',exchqty:0,preexchqty:0,estmamt:0,forgncurncyunitcost:0,goodunitcost:0,pregoodunitcost:0,safestocqty:0,ddavguseqty:0,mmavgusescheqty:0,mmavguseqty:0,prprtystocpossndayno:0,prcpexchqty:0,insucost:0,goodpurccost:0,grupsnglflag:S,calcmthdcd:-");
  646. ds_send_drugdata_druginfo.updatecontrol = true;
  647. var oParam = {};
  648. oParam.id = "TXRSC08302";
  649. oParam.service = "purcbaseapp.PurcBaseMngt";
  650. oParam.method = "reqExeSaveDetailGood";
  651. oParam.inds = "detgood=ds_send_drugdata_druginfo";
  652. oParam.outds = "";
  653. oParam.async = false;
  654. //oParam.callback = "cf_TXRSC08302";
  655. tranf_submit(oParam);
  656. fGetGoodList();
  657. }
  658. else
  659. {
  660. sysf_messageBox("선택된 사항이","I004");
  661. }
  662. }
  663. }
  664. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  665. {
  666. this.close();
  667. }
  668. function group1_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  669. {
  670. var fromdd = ds_send_srchinfo.getColumn(0, "fromdd");
  671. var todd = ds_send_srchinfo.getColumn(0, "todd");
  672. if(!utlf_isNull(fromdd) || !utlf_isNull(todd))
  673. {
  674. if(utlf_isNull(fromdd))
  675. {
  676. sysf_messageBox("검색구간을 입력하지","E007");
  677. group1.ipt_fromdd.setFocus();
  678. return;
  679. }
  680. else if(utlf_isNull(todd))
  681. {
  682. sysf_messageBox("검색구간을 입력하지","E007");
  683. group1.ipt_todd.setFocus();
  684. return;
  685. }
  686. }
  687. fGetGoodList();
  688. }
  689. function group1_ipt_goodcd_onkeydown(obj:Edit, e:KeyEventInfo)
  690. {
  691. if(e.keycode == 13)
  692. {
  693. obj.updateToDataset();
  694. group1.btn_sea.click();
  695. }
  696. }
  697. ]]></Script>
  698. </Form>
  699. </FDL>