SMRSO22600_재고조회(부서)(경북대).xfdl 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSO22600" position="absolute 0 0 1201 780" titletext="재고조회(부서)" oninit="SMRSO22600_oninit" onload="SMRSO22600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="재고조회(부서)" class="tit_1" position="absolute 0 0 243 25"/>
  8. <Shape id="line17" class="line_6" position="absolute 0 45 1193 51" anchor="left top right"/>
  9. <Button id="button3" taborder="1" text="무산정물품" class="btn4" position="absolute 781 24 873 46" anchor="top right" onclick="button3_onclick"/>
  10. <Button id="btn_specialmngt" taborder="2" text="특별관리품목" class="btn4" position="absolute 873 24 977 46" anchor="top right" onclick="btn_specialmngt_onclick"/>
  11. <Button id="btn_help" taborder="3" text="도움말" class="btn4" position="absolute 977 24 1045 46" anchor="top right" onclick="btn_help_onclick"/>
  12. <Button id="button2" taborder="4" text="출력" class="btn4" position="absolute 1045 24 1101 46" anchor="top right" onclick="button2_onclick"/>
  13. <Button id="btn_save" taborder="5" text="입출고현황" class="btn4" position="absolute 1101 24 1193 46" anchor="top right" onclick="btn_save_onclick"/>
  14. <Div id="grp_search" taborder="6" class="div_SA2" position="absolute 0 49 1193 109" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1124 23 1180 45" onclick="grp_search_btn_search_onclick" anchor="default"/>
  18. <Combo id="cmb_instcd" taborder="7" innerdataset="@ds_main_init" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" enable="false" position="absolute 92 10 237 29" anchor="default"/>
  19. <Static id="cap_instcd" text="기관코드" class="search_name" position="absolute 13 10 90 27" anchor="default"/>
  20. <Shape id="line30" linetype="vertical" class="line_4" position="absolute 1107 6 1113 54" anchor="default"/>
  21. <Static id="caption9" text="현재고일자" class="search_name" position="absolute 246 10 335 27" anchor="default"/>
  22. <Static id="caption13" text="물품코드" class="search_name" position="absolute 13 34 93 51" anchor="default"/>
  23. <Edit id="ipt_goodcd" taborder="8" class="input_default" position="absolute 92 33 180 52" autoskip="true" autoselect="true" anchor="default"/>
  24. <Button id="btn_goodcd" taborder="9" class="icon_search" position="absolute 182 34 198 50" onclick="grp_search_btn_goodcd_onclick" anchor="default"/>
  25. <Edit id="opt_goodnm" taborder="10" readonly="true" position="absolute 203 33 440 52" class="output" anchor="default"/>
  26. <Calendar id="ipt_dd" taborder="11" position="absolute 341 10 440 29" mask="yyyy-mm-dd" autoskip="true" autoselect="true" onchanged="grp_search_ipt_dd_onchanged" anchor="default"/>
  27. <Button id="button1" taborder="12" class="icon_search" position="absolute 602 33 618 49" onclick="grp_search_button1_onclick" anchor="default"/>
  28. <Edit id="ipt_goodcd1" taborder="13" class="input_default" position="absolute 512 33 600 52" autoskip="true" autoselect="true" anchor="default"/>
  29. <Edit id="opt_goodnm1" taborder="14" readonly="true" position="absolute 621 33 858 52" class="output" anchor="default"/>
  30. <Static id="caption8" text="∼" position="absolute 465 32 490 52" anchor="default"/>
  31. <Button id="btn_dutdept" taborder="15" class="icon_search" position="absolute 603 12 619 28" onclick="grp_search_btn_dutdept_onclick" anchor="default"/>
  32. <Edit id="ipt_dutdeptnm" taborder="16" class="input_search" enable="false" position="absolute 625 10 759 29" anchor="default"/>
  33. <Edit id="ipt_dutdeptcd" taborder="17" class="input_s_essential" position="absolute 516 10 601 29" autoskip="true" autoselect="true" onkeydown="grp_search_ipt_dutdeptcd_onkeydown" anchor="default"/>
  34. <Static id="caption10" text="부서" class="search_name" position="absolute 457 10 522 27" anchor="default"/>
  35. <Static id="caption7" text="물품유형" class="search_name" position="absolute 890 34 970 51" anchor="default"/>
  36. <Combo id="cmb_gubun" taborder="18" position="absolute 970 33 1070 52" anchor="default"/>
  37. </Layout>
  38. </Layouts>
  39. </Div>
  40. <Shape id="line1" class="line_10" position="absolute 0 138 1193 144" anchor="left top right"/>
  41. <Static id="caption1" text="총재고 현황" class="tit_2" position="absolute 0 122 180 143"/>
  42. <Static id="caption3" text="당월 입고 현황" class="tit_2" position="absolute 0 529 180 550" anchor="left bottom"/>
  43. <Shape id="line2" class="line_10" position="absolute 0 545 400 551" anchor="left bottom"/>
  44. <Static id="caption4" text="당월 출고 현황" class="tit_2" position="absolute 405 529 585 550" anchor="left bottom"/>
  45. <Shape id="line3" class="line_10" position="absolute 405 545 805 551" anchor="left bottom"/>
  46. <Static id="caption5" text="당월 처방 현황" class="tit_2" position="absolute 810 529 971 550"/>
  47. <Shape id="line4" class="line_10" position="absolute 810 545 1192 551" anchor="left right bottom"/>
  48. <Grid id="grd_stock" taborder="7" binddataset="ds_main_stocklist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 143 1193 525" anchor="all" onselectchanged="grd_stock_onselectchanged">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="24"/>
  53. <Column size="120"/>
  54. <Column size="75"/>
  55. <Column size="79"/>
  56. <Column size="140"/>
  57. <Column size="116"/>
  58. <Column size="60"/>
  59. <Column size="48"/>
  60. <Column size="48"/>
  61. <Column size="48"/>
  62. <Column size="48"/>
  63. <Column size="0"/>
  64. <Column size="48"/>
  65. <Column size="55"/>
  66. <Column size="65"/>
  67. <Column size="50"/>
  68. <Column size="0"/>
  69. <Column size="50"/>
  70. <Column size="45"/>
  71. <Column size="45"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. </Columns>
  76. <Rows>
  77. <Row size="24" band="head"/>
  78. <Row size="24" band="head"/>
  79. <Row size="24"/>
  80. </Rows>
  81. <Band id="head">
  82. <Cell rowspan="2" taborder="undefined"/>
  83. <Cell col="1" rowspan="2" text="부서" taborder="undefined"/>
  84. <Cell col="2" rowspan="2" text="물품유형" taborder="undefined"/>
  85. <Cell col="3" colspan="4" text="물 품" taborder="undefined"/>
  86. <Cell col="7" rowspan="2" text="전월&#10;재고" taborder="undefined"/>
  87. <Cell col="8" colspan="3" text="선납" taborder="undefined"/>
  88. <Cell col="11" text="전월재고"/>
  89. <Cell col="12" colspan="3" text="당월입고" taborder="undefined"/>
  90. <Cell col="15" rowspan="2" text="당월&#10;출고량" taborder="undefined"/>
  91. <Cell col="16" text="당월&#10;실입고량"/>
  92. <Cell col="17" rowspan="2" text="현재고&#10;수량" taborder="undefined"/>
  93. <Cell col="18" rowspan="2" text="당월&#10;처방량" taborder="undefined"/>
  94. <Cell col="19" rowspan="2" text="정량&#10;설정치" taborder="undefined"/>
  95. <Cell col="20" text="caption1"/>
  96. <Cell col="21"/>
  97. <Cell col="22"/>
  98. <Cell row="1" col="3" text="코드"/>
  99. <Cell row="1" col="4" text="명칭"/>
  100. <Cell row="1" col="5" text="규격"/>
  101. <Cell row="1" col="6" text="단위"/>
  102. <Cell row="1" col="8" text="입고"/>
  103. <Cell row="1" col="9" text="출고"/>
  104. <Cell row="1" col="10" text="재고"/>
  105. <Cell row="1" col="11" text="금액"/>
  106. <Cell row="1" col="12" text="수량"/>
  107. <Cell row="1" col="13" text="단가"/>
  108. <Cell row="1" col="14" text="금액"/>
  109. <Cell row="1" col="16" text="당월&#10;실입고량"/>
  110. <Cell row="1" col="20" text="caption1"/>
  111. <Cell row="1" col="21"/>
  112. <Cell row="1" col="22"/>
  113. </Band>
  114. <Band id="body">
  115. <Cell celltype="head" expr="currow+1"/>
  116. <Cell col="1" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:dutunitnm"/>
  117. <Cell col="2" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:winkind"/>
  118. <Cell col="3" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:goodcd"/>
  119. <Cell col="4" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:goodnm"/>
  120. <Cell col="5" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:goodspec"/>
  121. <Cell col="6" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:purcunit"/>
  122. <Cell col="7" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:jun_jaego_qty"/>
  123. <Cell col="8" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:preqty"/>
  124. <Cell col="9" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:predeliveqty"/>
  125. <Cell col="10" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:jaego"/>
  126. <Cell col="11" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:jun_jaego_amt" mask="(-)#,##0"/>
  127. <Cell col="12" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:winqty"/>
  128. <Cell col="13" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:winunitcost"/>
  129. <Cell col="14" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:winamt"/>
  130. <Cell col="15" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:deliveqty"/>
  131. <Cell col="16" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:sun_ibgo"/>
  132. <Cell col="17" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:hun_jaego"/>
  133. <Cell col="18" displaytype="number" style="color:EXPR(totqty != deliveqty || !utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(totqty != deliveqty || !utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:totqty"/>
  134. <Cell col="19" displaytype="number" style="color:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');color2:EXPR(!utlf_isNull(specialgoodcd) ? '#ff0000' : '');" text="bind:pptstocqty"/>
  135. <Cell col="20" text="bind:dutunitcd"/>
  136. <Cell col="21" text="bind:specialgoodcd"/>
  137. <Cell col="22" text="bind:freegoodcd"/>
  138. </Band>
  139. </Format>
  140. </Formats>
  141. </Grid>
  142. <Grid id="grd_win" taborder="8" binddataset="ds_detail_winlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 550 400 773" anchor="left bottom" oncelldblclick="grd_win_oncelldblclick">
  143. <Formats>
  144. <Format id="default">
  145. <Columns>
  146. <Column size="132"/>
  147. <Column size="115"/>
  148. <Column size="132"/>
  149. <Column size="0"/>
  150. </Columns>
  151. <Rows>
  152. <Row size="24" band="head"/>
  153. <Row size="24"/>
  154. </Rows>
  155. <Band id="head">
  156. <Cell text="입고일자"/>
  157. <Cell col="1" text="입고수량"/>
  158. <Cell col="2" text="입고금액"/>
  159. <Cell col="3" text="caption1"/>
  160. </Band>
  161. <Band id="body">
  162. <Cell displaytype="date" text="bind:windd" calendardisplaynulltype="nulltext"/>
  163. <Cell col="1" displaytype="number" text="bind:winqty"/>
  164. <Cell col="2" displaytype="number" text="bind:winamt"/>
  165. <Cell col="3" text="bind:dutunitcd"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Grid id="grd_delive" taborder="9" binddataset="ds_detail_delivelist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 405 550 805 773" anchor="left bottom" oncelldblclick="grd_delive_oncelldblclick">
  171. <Formats>
  172. <Format id="default">
  173. <Columns>
  174. <Column size="147"/>
  175. <Column size="131"/>
  176. <Column size="0"/>
  177. <Column size="101"/>
  178. <Column size="0"/>
  179. <Column size="0"/>
  180. <Column size="0"/>
  181. </Columns>
  182. <Rows>
  183. <Row size="24" band="head"/>
  184. <Row size="24"/>
  185. </Rows>
  186. <Band id="head">
  187. <Cell text="출고일자"/>
  188. <Cell col="1" text="출고유형"/>
  189. <Cell col="2" text="출고창고"/>
  190. <Cell col="3" text="출고수량"/>
  191. <Cell col="4" text="caption1"/>
  192. <Cell col="5" text="출고구분"/>
  193. <Cell col="6" text="요구부서"/>
  194. </Band>
  195. <Band id="body">
  196. <Cell displaytype="date" text="bind:delivedd" calendardisplaynulltype="nulltext"/>
  197. <Cell col="1" text="bind:deliveflagnm"/>
  198. <Cell col="2" text="bind:wareflagnm"/>
  199. <Cell col="3" displaytype="number" text="bind:deliveqty"/>
  200. <Cell col="4" text="bind:dutunitcd"/>
  201. <Cell col="5" text="bind:outkind"/>
  202. <Cell col="6" text="bind:reqdeptcd"/>
  203. </Band>
  204. </Format>
  205. </Formats>
  206. </Grid>
  207. <Grid id="grd_deptstock" taborder="10" binddataset="ds_detail_deptstocklist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 810 550 1192 773" anchor="left right bottom" oncelldblclick="grd_deptstock_oncelldblclick">
  208. <Formats>
  209. <Format id="default">
  210. <Columns>
  211. <Column size="85"/>
  212. <Column size="65"/>
  213. <Column size="135"/>
  214. <Column size="75"/>
  215. <Column size="0"/>
  216. <Column size="0"/>
  217. <Column size="0"/>
  218. <Column size="0"/>
  219. <Column size="0"/>
  220. <Column size="0"/>
  221. </Columns>
  222. <Rows>
  223. <Row size="24" band="head"/>
  224. <Row size="24"/>
  225. </Rows>
  226. <Band id="head">
  227. <Cell text="일자"/>
  228. <Cell col="1" text="구분"/>
  229. <Cell col="2" text="처방부서"/>
  230. <Cell col="3" text="수량"/>
  231. <Cell col="4"/>
  232. <Cell col="5"/>
  233. <Cell col="6"/>
  234. <Cell col="7"/>
  235. <Cell col="8"/>
  236. <Cell col="9"/>
  237. </Band>
  238. <Band id="body">
  239. <Cell displaytype="date" text="bind:rgstdd" calendardisplaynulltype="nulltext"/>
  240. <Cell col="1" displaytype="combo" text="bind:ioflag" mask="(-)#,##0" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
  241. <Cell col="2" text="bind:prcpdeptcdnm"/>
  242. <Cell col="3" displaytype="number" text="bind:totqty"/>
  243. <Cell col="4" text="bind:instcd"/>
  244. <Cell col="5" text="bind:wareflag"/>
  245. <Cell col="6" text="bind:goodcd"/>
  246. <Cell col="7" text="bind:dd"/>
  247. <Cell col="8" text="bind:prcpdeptcd"/>
  248. <Cell col="9" text="bind:allsearchchk"/>
  249. </Band>
  250. </Format>
  251. </Formats>
  252. </Grid>
  253. <CheckBox id="chk_allsearch" taborder="11" text="전체" truevalue="A" position="absolute 920 527 970 547" onclick="chk_allsearch_onclick"/>
  254. <Button id="btn_saveexcel" taborder="12" text="엑셀저장" class="btn7" position="absolute 1114 119 1194 138" anchor="top right" onclick="btn_saveexcel_onclick"/>
  255. <Static id="cap_magam" text="※ 아직 전월마감이 안 되어있습니다. 정확한 재고현황을 위해 전월마감 후 조회하십시오." visible="false" position="absolute 115 117 720 137" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  256. </Layout>
  257. </Layouts>
  258. <Objects>
  259. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  260. <ColumnInfo>
  261. <Column id="instcd" type="STRING" size="256"/>
  262. <Column id="dd" type="STRING" size="256"/>
  263. <Column id="goodcd" type="STRING" size="256"/>
  264. <Column id="goodcd1" type="STRING" size="256"/>
  265. <Column id="goodnm" type="STRING" size="256"/>
  266. <Column id="goodnm1" type="STRING" size="256"/>
  267. <Column id="esang" type="STRING" size="256"/>
  268. <Column id="pagesize" type="STRING" size="256"/>
  269. <Column id="offset" type="STRING" size="256"/>
  270. <Column id="dutunitcd" type="STRING" size="256"/>
  271. <Column id="dutunitnm" type="STRING" size="256"/>
  272. <Column id="gubun" type="STRING" size="256"/>
  273. <Column id="scrnid" type="STRING" size="256"/>
  274. </ColumnInfo>
  275. <Rows>
  276. <Row>
  277. <Col id="instcd"/>
  278. <Col id="dd"/>
  279. <Col id="goodcd"/>
  280. <Col id="goodcd1"/>
  281. <Col id="goodnm"/>
  282. <Col id="goodnm1"/>
  283. <Col id="esang"/>
  284. <Col id="pagesize">200</Col>
  285. <Col id="offset"/>
  286. <Col id="dutunitcd"/>
  287. <Col id="dutunitnm"/>
  288. <Col id="gubun"/>
  289. <Col id="scrnid">SMRSO22600</Col>
  290. </Row>
  291. </Rows>
  292. </Dataset>
  293. <Dataset id="ds_main_stocklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  294. <ColumnInfo>
  295. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  296. <Column id="wareflag" type="STRING" size="256" sumtext="창고코드"/>
  297. <Column id="winqty" type="STRING" size="256" sumtext="입고량"/>
  298. <Column id="winunitcost" type="STRING" size="256" sumtext="단가"/>
  299. <Column id="winamt" type="STRING" size="256" sumtext="입고금액"/>
  300. <Column id="deliveqty" type="STRING" size="256" sumtext="출고량"/>
  301. <Column id="jun_jaego_qty" type="STRING" size="256" sumtext="전월재고량"/>
  302. <Column id="jun_jaego_amt" type="STRING" size="256" sumtext="전월재고금액"/>
  303. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  304. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  305. <Column id="purcunit" type="STRING" size="256" sumtext="구매단위"/>
  306. <Column id="wareflagnm" type="STRING" size="256" sumtext="창고명"/>
  307. <Column id="sun_ibgo" type="STRING" size="256" sumtext="선입고량"/>
  308. <Column id="hun_jaego" type="STRING" size="256" sumtext="현재고"/>
  309. <Column id="totqty" type="STRING" size="256" sumtext="당월처방수량"/>
  310. <Column id="winacnt" type="STRING" size="256" sumtext="계정코드"/>
  311. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="거래처"/>
  312. <Column id="acntnm" type="STRING" size="256" sumtext="계정코드명"/>
  313. <Column id="custnm" type="STRING" size="256" sumtext="거래처명"/>
  314. <Column id="reqmthd" type="STRING" size="256" sumtext="계정과목"/>
  315. <Column id="edicd" type="STRING" size="256" sumtext="DEI코드"/>
  316. <Column id="goodunitcost" type="STRING" size="256" sumtext="계약단가"/>
  317. <Column id="exchqty" type="STRING" size="256" sumtext="박스당수량"/>
  318. <Column id="preqty" type="STRING" size="256" sumtext="선납입고"/>
  319. <Column id="predeliveqty" type="STRING" size="256" sumtext="선납출고"/>
  320. <Column id="jaego" type="STRING" size="256" sumtext="선납재고"/>
  321. <Column id="dutunitcd" type="STRING" size="256" sumtext="부서코드"/>
  322. <Column id="dutunitnm" type="STRING" size="256" sumtext="부서명"/>
  323. <Column id="selchk" type="STRING" size="256" sumtext="선택"/>
  324. <Column id="allstock" type="STRING" size="256" sumtext="업체보관량"/>
  325. <Column id="winkind" type="STRING" size="256" sumtext="입고유형"/>
  326. <Column id="winkindcd" type="STRING" size="256" sumtext="입고유형"/>
  327. <Column id="specialgoodcd" type="STRING" size="256" sumtext="특별관리"/>
  328. <Column id="freegoodcd" type="STRING" size="256" sumtext="무산정"/>
  329. <Column id="weekqty" type="STRING" size="256" sumtext="주당사용량"/>
  330. <Column id="pptstocqty" type="STRING" size="256" sumtext="적정설정치"/>
  331. </ColumnInfo>
  332. </Dataset>
  333. <Dataset id="ds_detail_winlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  334. <ColumnInfo>
  335. <Column id="windd" type="STRING" size="256" sumtext="입고일자"/>
  336. <Column id="winqty" type="STRING" size="256" sumtext="입고량"/>
  337. <Column id="winamt" type="STRING" size="256" sumtext="입고금액"/>
  338. <Column id="dutunitcd" type="STRING" size="256" sumtext="부서코드"/>
  339. </ColumnInfo>
  340. </Dataset>
  341. <Dataset id="ds_detail_delivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  342. <ColumnInfo>
  343. <Column id="delivedd" type="STRING" size="256" sumtext="출고일자"/>
  344. <Column id="deliveqty" type="STRING" size="256" sumtext="출고량"/>
  345. <Column id="wareflagnm" type="STRING" size="256" sumtext="창고명"/>
  346. <Column id="deliveflagnm" type="STRING" size="256" sumtext="출고유형"/>
  347. <Column id="dutunitcd" type="STRING" size="256" sumtext="부서코드"/>
  348. <Column id="outkind" type="STRING" size="256" sumtext="출고구분"/>
  349. <Column id="reqdeptcd" type="STRING" size="256" sumtext="요구부서"/>
  350. </ColumnInfo>
  351. </Dataset>
  352. <Dataset id="ds_detail_deptstocklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
  355. <Column id="ioflag" type="STRING" size="256" sumtext="외래/입원"/>
  356. <Column id="prcpdeptcd" type="STRING" size="256" sumtext="처방부서"/>
  357. <Column id="prcpdeptcdnm" type="STRING" size="256" sumtext="처방부서"/>
  358. <Column id="totqty" type="STRING" size="256" sumtext="수량"/>
  359. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  360. <Column id="wareflag" type="STRING" size="256" sumtext="창고"/>
  361. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  362. <Column id="dd" type="STRING" size="256" sumtext="재고일자"/>
  363. <Column id="allsearchchk" type="STRING" size="256" sumtext="전체조회"/>
  364. </ColumnInfo>
  365. </Dataset>
  366. <Dataset id="ds_cmb_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  367. <ColumnInfo>
  368. <Column id="label" type="STRING" size="256"/>
  369. <Column id="value" type="STRING" size="256"/>
  370. </ColumnInfo>
  371. <Rows>
  372. <Row>
  373. <Col id="label">입원</Col>
  374. <Col id="value">I</Col>
  375. </Row>
  376. <Row>
  377. <Col id="label">외래</Col>
  378. <Col id="value">O</Col>
  379. </Row>
  380. <Row>
  381. <Col id="label">건진</Col>
  382. <Col id="value">S</Col>
  383. </Row>
  384. <Row>
  385. <Col id="label">응급</Col>
  386. <Col id="value">E</Col>
  387. </Row>
  388. <Row>
  389. <Col id="label">DSC</Col>
  390. <Col id="value">D</Col>
  391. </Row>
  392. </Rows>
  393. </Dataset>
  394. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  395. <ColumnInfo>
  396. <Column id="instcd" type="STRING" size="256"/>
  397. <Column id="goodcd" type="STRING" size="256"/>
  398. <Column id="dd" type="STRING" size="256"/>
  399. <Column id="goodnm" type="STRING" size="256"/>
  400. </ColumnInfo>
  401. </Dataset>
  402. <Dataset id="ds_main_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  403. <ColumnInfo>
  404. <Column id="cnstnm" type="STRING" size="256"/>
  405. <Column id="cnstcd" type="STRING" size="256"/>
  406. </ColumnInfo>
  407. </Dataset>
  408. <Dataset id="ds_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  409. <ColumnInfo>
  410. <Column id="mingoodcd" type="STRING" size="256" sumtext="물품코드"/>
  411. <Column id="mingoodnm" type="STRING" size="256" sumtext="물품코드명"/>
  412. <Column id="maxgoodcd" type="STRING" size="256" sumtext="물품코드"/>
  413. <Column id="maxgoodnm" type="STRING" size="256" sumtext="물품코드명"/>
  414. </ColumnInfo>
  415. </Dataset>
  416. <Dataset id="ds_popgood" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  417. <ColumnInfo>
  418. <Column id="instcd" type="STRING" size="256"/>
  419. <Column id="wareflag" type="STRING" size="256"/>
  420. <Column id="goodcd" type="STRING" size="256"/>
  421. <Column id="goodnm" type="STRING" size="256"/>
  422. <Column id="returntype" type="STRING" size="256"/>
  423. <Column id="selectyn" type="STRING" size="256"/>
  424. </ColumnInfo>
  425. <Rows>
  426. <Row>
  427. <Col id="instcd"/>
  428. <Col id="wareflag"/>
  429. <Col id="goodcd"/>
  430. <Col id="goodnm"/>
  431. <Col id="returntype"/>
  432. <Col id="selectyn"/>
  433. </Row>
  434. </Rows>
  435. </Dataset>
  436. <Dataset id="ds_popgood1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="instcd" type="STRING" size="256"/>
  439. <Column id="wareflag" type="STRING" size="256"/>
  440. <Column id="goodcd" type="STRING" size="256"/>
  441. <Column id="goodnm" type="STRING" size="256"/>
  442. <Column id="returntype" type="STRING" size="256"/>
  443. <Column id="selectyn" type="STRING" size="256"/>
  444. </ColumnInfo>
  445. <Rows>
  446. <Row>
  447. <Col id="instcd"/>
  448. <Col id="wareflag"/>
  449. <Col id="goodcd"/>
  450. <Col id="goodnm"/>
  451. <Col id="returntype"/>
  452. <Col id="selectyn"/>
  453. </Row>
  454. </Rows>
  455. </Dataset>
  456. <Dataset id="ds_magamresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  457. <ColumnInfo>
  458. <Column id="magamyn" type="STRING" size="256"/>
  459. </ColumnInfo>
  460. </Dataset>
  461. <Dataset id="ds_send_etcsearch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  462. <ColumnInfo>
  463. <Column id="all" type="STRING" size="256"/>
  464. </ColumnInfo>
  465. <Rows>
  466. <Row/>
  467. </Rows>
  468. </Dataset>
  469. <Dataset id="ds_send_search2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  470. <ColumnInfo>
  471. <Column id="instcd" type="STRING" size="256"/>
  472. <Column id="dd" type="STRING" size="256"/>
  473. <Column id="goodcd" type="STRING" size="256"/>
  474. <Column id="dutunitcd" type="STRING" size="256"/>
  475. </ColumnInfo>
  476. <Rows>
  477. <Row>
  478. <Col id="instcd"/>
  479. <Col id="dd"/>
  480. <Col id="goodcd"/>
  481. <Col id="dutunitcd"/>
  482. </Row>
  483. </Rows>
  484. </Dataset>
  485. <Dataset id="ds_popdetail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  486. <ColumnInfo>
  487. <Column id="instcd" type="STRING" size="256"/>
  488. <Column id="wareflag" type="STRING" size="256"/>
  489. <Column id="goodcd" type="STRING" size="256"/>
  490. <Column id="dd" type="STRING" size="256"/>
  491. <Column id="dutunitcd" type="STRING" size="256"/>
  492. <Column id="outkind" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. <Rows>
  495. <Row>
  496. <Col id="instcd"/>
  497. <Col id="wareflag"/>
  498. <Col id="goodcd"/>
  499. <Col id="dd"/>
  500. <Col id="dutunitcd"/>
  501. <Col id="outkind"/>
  502. </Row>
  503. </Rows>
  504. </Dataset>
  505. <Dataset id="ds_temp_deptstocklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  506. <ColumnInfo>
  507. <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
  508. <Column id="ioflag" type="STRING" size="256" sumtext="외래/입원"/>
  509. <Column id="prcpdeptcd" type="STRING" size="256" sumtext="처방부서"/>
  510. <Column id="prcpdeptcdnm" type="STRING" size="256" sumtext="처방부서"/>
  511. <Column id="totqty" type="STRING" size="256" sumtext="수량"/>
  512. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  513. <Column id="wareflag" type="STRING" size="256" sumtext="창고"/>
  514. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  515. <Column id="dd" type="STRING" size="256" sumtext="재고일자"/>
  516. <Column id="allsearchchk" type="STRING" size="256" sumtext="전체조회"/>
  517. </ColumnInfo>
  518. <Rows>
  519. <Row/>
  520. </Rows>
  521. </Dataset>
  522. <Dataset id="ds_popdelive" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  523. <ColumnInfo>
  524. <Column id="instcd" type="STRING" size="256"/>
  525. <Column id="delivedd" type="STRING" size="256"/>
  526. <Column id="delivedeptcd" type="STRING" size="256"/>
  527. <Column id="delivedeptnm" type="STRING" size="256"/>
  528. <Column id="opener" type="STRING" size="256"/>
  529. </ColumnInfo>
  530. <Rows>
  531. <Row>
  532. <Col id="instcd"/>
  533. <Col id="delivedd"/>
  534. <Col id="delivedeptcd"/>
  535. <Col id="delivedeptnm"/>
  536. <Col id="opener"/>
  537. </Row>
  538. </Rows>
  539. </Dataset>
  540. </Objects>
  541. <Bind>
  542. <BindItem id="item0" compid="grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  543. <BindItem id="item1" compid="grp_search.ipt_dd" propid="value" datasetid="ds_send_search" columnid="dd"/>
  544. <BindItem id="item2" compid="grp_search.ipt_dutdeptcd" propid="value" datasetid="ds_send_search" columnid="dutunitcd"/>
  545. <BindItem id="item3" compid="grp_search.ipt_dutdeptnm" propid="value" datasetid="ds_send_search" columnid="dutunitnm"/>
  546. <BindItem id="item4" compid="grp_search.cmb_gubun" propid="value" datasetid="ds_send_search" columnid="gubun"/>
  547. <BindItem id="item5" compid="grp_search.opt_goodnm1" propid="value" datasetid="ds_send_search" columnid="goodnm1"/>
  548. <BindItem id="item6" compid="grp_search.ipt_goodcd1" propid="value" datasetid="ds_send_search" columnid="goodcd1"/>
  549. <BindItem id="item7" compid="grp_search.opt_goodnm" propid="value" datasetid="ds_send_search" columnid="goodnm"/>
  550. <BindItem id="item8" compid="grp_search.ipt_goodcd" propid="value" datasetid="ds_send_search" columnid="goodcd"/>
  551. <BindItem id="item9" compid="chk_allsearch" propid="value" datasetid="ds_send_etcsearch" columnid="all"/>
  552. </Bind>
  553. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  554. * System Name :
  555. * Job Name :
  556. * Creator :
  557. * Make Date : 2017-06-19
  558. * Description :
  559. *---------------------------------------------------------------------------------------
  560. * Modify Date Modifier Modify Description
  561. *---------------------------------------------------------------------------------------
  562. * 2017-06-19 Live Converter TF->XP
  563. *
  564. *---------------------------------------------------------------------------------------
  565. ****************************************************************************************/
  566. include "com_commonxp::comm_main.xjs";
  567. include "mis_miscommonxp::MIS.xjs";
  568. function SMRSO22600_oninit(obj:Form, e:InitEventInfo)
  569. {
  570. frmf_initForm(obj);
  571. }
  572. function SMRSO22600_onload(obj:Form, e:LoadEventInfo)
  573. {
  574. grdf_initGrid(grd_delive);
  575. grdf_initGrid(grd_deptstock);
  576. grdf_initGrid(grd_stock);
  577. grdf_initGrid(grd_win);
  578. //misfMsterDetailSet(grd_stock, null, "TRRSO22601" ,"N");
  579. misfComboInstCdListMulti("grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
  580. misfComboComCdListMulti("030R0035","grp_search.cmb_gubun");
  581. grp_search.cmb_gubun.value = "08";
  582. try
  583. {
  584. ds_popdata.copyData(arg_ds_popdata);
  585. }
  586. catch(e)
  587. {
  588. }
  589. if(!utlf_isNull(ds_popdata.getColumn(0, "instcd")))
  590. {
  591. ds_send_search.setColumn(0, "instcd", ds_popdata.getColumn(0, "instcd"));
  592. ds_send_search.setColumn(0, "dd", ds_popdata.getColumn(0, "dd"));
  593. ds_send_search.setColumn(0, "goodcd", ds_popdata.getColumn(0, "goodcd"));
  594. ds_send_search.setColumn(0, "goodcd1", ds_popdata.getColumn(0, "goodcd"));
  595. ds_send_search.setColumn(0, "goodnm", ds_popdata.getColumn(0, "goodnm"));
  596. ds_send_search.setColumn(0, "goodnm1", ds_popdata.getColumn(0, "goodnm"));
  597. grp_search_btn_search_onclick();
  598. }
  599. else
  600. {
  601. ds_send_search.setColumn(0, "dd", utlf_getCurrentDate());
  602. ds_send_search.setColumn(0, "dutunitcd", sysf_getUserInfo("dutunitcd"));
  603. ds_send_search.setColumn(0, "dutunitnm", sysf_getUserInfo("dutunitnm"));
  604. ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  605. }
  606. }
  607. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  608. {
  609. if(String(grp_search.ipt_dd.value).length < 8)
  610. {
  611. sysf_messageBox("현재고일자가 올바로 선택되지 않았습니다. \n\n먼저 현재고일자을 선택하십시요.", "E999", "");
  612. grp_search.ipt_dd.setFocus();
  613. return;
  614. }
  615. misfGridInit(grd_stock);
  616. var oParam = {};
  617. oParam.id = "TRRSO22601";
  618. oParam.service = "deliveapp.DeliveMngt";
  619. oParam.method = "reqGetDeptStockAllList";
  620. oParam.inds = "req=ds_send_search";
  621. oParam.outds = "ds_main_stocklist=stocklist";
  622. oParam.async = false;
  623. //oParam.callback = "cf_TRRSO22601";
  624. tranf_submit(oParam);
  625. var oParam = {};
  626. oParam.id = "TRRSO22602";
  627. oParam.service = "deliveapp.DeliveMngt";
  628. oParam.method = "reqGetDeptStockAllListMonthMagamYn";
  629. oParam.inds = "req=ds_send_search";
  630. oParam.outds = "ds_magamresult=magamresult";
  631. oParam.async = false;
  632. //oParam.callback = "cf_TRRSO22602";
  633. tranf_submit(oParam);
  634. var magamyn = ds_magamresult.getColumn(0, "magamyn");
  635. if(magamyn == "N")
  636. {
  637. cap_magam.visible = true;
  638. }
  639. else
  640. {
  641. cap_magam.visible = false;
  642. }
  643. for(var i = 0; i < ds_main_stocklist.rowcount; i++)
  644. {
  645. var deliveqty = ds_main_stocklist.getColumn(i, "deliveqty");
  646. var totqty = ds_main_stocklist.getColumn(i, "totqty");
  647. var specialgoodcd = ds_main_stocklist.getColumn(i, "specialgoodcd");
  648. var freegoodcd = ds_main_stocklist.getColumn(i, "freegoodcd");
  649. var pptstocqty = ds_main_stocklist.getColumn(i, "pptstocqty");
  650. if(utlf_isNull(pptstocqty))
  651. {
  652. ds_main_stocklist.setColumn(i, "pptstocqty", "0");
  653. }
  654. }
  655. }
  656. function grp_search_ipt_dd_onchanged(obj:Calendar, e:ChangeEventInfo)
  657. {
  658. fSearchCondChanged();
  659. }
  660. function fSearchCondChanged()
  661. {
  662. ds_main_stocklist.clearData();
  663. ds_detail_delivelist.clearData();
  664. ds_detail_deptstocklist.clearData();
  665. ds_detail_winlist.clearData();
  666. }
  667. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  668. {
  669. if(e.columnid == "dutunitcd")
  670. {
  671. grp_search.ipt_dutdeptcd.value = e.newvalue;
  672. grp_search.ipt_dutdeptcd.setFocus();
  673. misfValidationCheck("02", "", "dutunitcd,dutunitnm", ds_send_search.getColumn(0, "instcd"), "instcd" );
  674. grp_search_btn_search_onclick();
  675. }
  676. if(e.columnid == "goodcd")
  677. {
  678. if(utlf_isNull(e.newvalue))
  679. {
  680. ds_send_search.setColumn(0, "goodnm1", "");
  681. }
  682. }
  683. if(e.columnid == "goodcd1")
  684. {
  685. if(utlf_isNull(e.newvalue))
  686. {
  687. ds_send_search.setColumn(0, "goodnm", "");
  688. }
  689. }
  690. }
  691. function grp_search_ipt_dutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  692. {
  693. if(e.keycode == 13)
  694. {
  695. obj.updateToDataset();
  696. if(!utlf_isNull(grp_search.ipt_dutdeptnm.value))
  697. {
  698. var oParam = {};
  699. oParam.id = "TRRSO21301";
  700. oParam.service = "deliveapp.DeliveMngt";
  701. oParam.method = "reqGetDutunitGoodCD";
  702. oParam.inds = "req=ds_send_search";
  703. oParam.outds = "ds_main_goodlist=goodlist";
  704. oParam.async = false;
  705. //oParam.callback = "cf_TRRSO21301";
  706. tranf_submit(oParam);
  707. ds_send_search.setColumn(0, "goodcd", ds_main_goodlist.getColumn(0, "mingoodcd"));
  708. ds_send_search.setColumn(0, "goodnm", ds_main_goodlist.getColumn(0, "mingoodnm"));
  709. ds_send_search.setColumn(0, "goodcd1", ds_main_goodlist.getColumn(0, "maxgoodcd"));
  710. ds_send_search.setColumn(0, "goodnm1", ds_main_goodlist.getColumn(0, "maxgoodnm"));
  711. }
  712. }
  713. }
  714. function grp_search_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
  715. {
  716. misfOpenPopUpList("02", ds_send_search,"","dutunitcd,dutunitnm", ds_send_search.getColumn(0, "instcd") + "," + grp_search.ipt_dd.value, "instcd,basedd");
  717. }
  718. function grp_search_btn_goodcd_onclick(obj:Button, e:ClickEventInfo)
  719. {
  720. ds_popgood.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  721. ds_popgood.setColumn(0, "returntype", "2");
  722. ds_popgood.setColumn(0, "selectyn", "");
  723. var objArg = new Object();
  724. objArg.arg_ds_popdata = ds_popgood;
  725. frmf_modal("SPRSO20300", "SPRSO20300", objArg, "", "", "", "", "", "", "", "", "", "M");
  726. if(ds_popgood.getColumn(0, "selectyn") == "Y")
  727. {
  728. ds_send_search.setColumn(0, "goodcd", ds_popgood.getColumn(0, "goodcd"));
  729. ds_send_search.setColumn(0, "goodnm", ds_popgood.getColumn(0, "goodnm"))
  730. }
  731. }
  732. function grp_search_button1_onclick(obj:Button, e:ClickEventInfo)
  733. {
  734. ds_popgood1.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  735. ds_popgood1.setColumn(0, "returntype", "2");
  736. ds_popgood1.setColumn(0, "selectyn", "");
  737. var objArg = new Object();
  738. objArg.arg_ds_popdata = ds_popgood1;
  739. frmf_modal("SPRSO20300", "SPRSO20300", objArg, "", "", "", "", "", "", "", "", "", "M");
  740. if(ds_popgood.getColumn(0, "selectyn") == "Y")
  741. {
  742. ds_send_search.setColumn(0, "goodcd1", ds_popgood.getColumn(0, "goodcd"));
  743. ds_send_search.setColumn(0, "goodnm1", ds_popgood.getColumn(0, "goodnm"))
  744. }
  745. }
  746. function grd_stock_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  747. {
  748. if( ds_main_stocklist.rowcount < 3 )
  749. {
  750. ds_detail_delivelist.clearData();
  751. ds_detail_deptstocklist.clearData();
  752. ds_detail_winlist.clearData();
  753. return;
  754. }
  755. ds_send_search2.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  756. ds_send_search2.setColumn(0, "dd", grp_search.ipt_dd.value);
  757. ds_send_search2.setColumn(0, "goodcd", ds_main_stocklist.getColumn(e.row, "goodcd"));
  758. ds_send_search2.setColumn(0, "dutunitcd", ds_main_stocklist.getColumn(e.row, "dutunitcd"));
  759. var oParam = {};
  760. oParam.id = "TRRSO21302";
  761. oParam.service = "deliveapp.DeliveMngt";
  762. oParam.method = "reqGetWinDeliveMonList";
  763. oParam.inds = "req=ds_send_search2";
  764. oParam.outds = "ds_detail_winlist=winlist ds_detail_delivelist=delivelist ds_detail_deptstocklist=deptstocklist";
  765. oParam.async = false;
  766. //oParam.callback = "cf_TRRSO21302";
  767. tranf_submit(oParam);
  768. }
  769. function grd_win_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  770. {
  771. if(e.row < 0)
  772. {
  773. return;
  774. }
  775. ds_popdetail.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  776. ds_popdetail.setColumn(0, "wareflag", ds_main_stocklist.getColumn(ds_main_stocklist.rowposition, "wareflag"));
  777. ds_popdetail.setColumn(0, "goodcd", ds_main_stocklist.getColumn(ds_main_stocklist.rowposition, "goodcd"));
  778. ds_popdetail.setColumn(0, "dd", ds_detail_winlist.getColumn(ds_detail_winlist.rowposition, "windd"));
  779. ds_popdetail.setColumn(0, "dutunitcd", ds_detail_winlist.getColumn(ds_detail_winlist.rowposition, "dutunitcd"));
  780. var objArg = new Object();
  781. objArg.arg_ds_popdata = ds_popdetail;
  782. frmf_modal("SPRSO20500", "SPRSO20500", objArg, "", "", "", "", "", "", "", "", "", "M");
  783. }
  784. function grd_delive_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  785. {
  786. if(e.row < 0)
  787. {
  788. return;
  789. }
  790. ds_popdetail.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  791. ds_popdetail.setColumn(0, "wareflag", ds_main_stocklist.getColumn(ds_main_stocklist.rowposition, "wareflag"));
  792. ds_popdetail.setColumn(0, "goodcd", ds_main_stocklist.getColumn(ds_main_stocklist.rowposition, "goodcd"));
  793. ds_popdetail.setColumn(0, "dd", ds_detail_delivelist.getColumn(ds_detail_delivelist.rowposition, "delivedd"));
  794. ds_popdetail.setColumn(0, "outkind", ds_detail_delivelist.getColumn(ds_detail_delivelist.rowposition, "outkind"));
  795. ds_popdetail.setColumn(0, "dutunitcd", ds_detail_delivelist.getColumn(ds_detail_delivelist.rowposition, "dutunitcd"));
  796. var objArg = new Object();
  797. objArg.arg_ds_popdata = ds_popdetail;
  798. frmf_modal("SPRSO20400", "SPRSO20400", objArg, "", "", "", "", "", "", "", "", "", "M");
  799. }
  800. function grd_deptstock_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  801. {
  802. if(e.row < 0)
  803. {
  804. return;
  805. }
  806. if(ds_send_etcsearch.getColumn(0, "all") == "A")
  807. {
  808. ds_detail_deptstocklist.setColumn(e.row, "allsearchchk", "A");
  809. }
  810. else
  811. {
  812. ds_detail_deptstocklist.setColumn(e.row, "allsearchchk", "");
  813. }
  814. ds_temp_deptstocklist.copyRow(0, ds_detail_deptstocklist, e.row);
  815. var objArg = new Object();
  816. objArg.arg_ds_send = ds_temp_deptstocklist;
  817. frmf_modal("SPRSO20800", "SPRSO20800", objArg, "", "", "", "", "", "", "", "", "", "M");
  818. }
  819. function chk_allsearch_onclick(obj:CheckBox, e:ClickEventInfo)
  820. {
  821. if(obj.value == "A")
  822. {
  823. }
  824. else
  825. {
  826. ds_send_etcsearch.setColumn(0, "all", "");
  827. }
  828. }
  829. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  830. {
  831. grdf_exportExcel(grd_stock, "excel", false, false, "", "user", false);
  832. }
  833. function button3_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. frmf_modal("SMRSO23500", "SMRSO23500", "", "", "", "", "", "", "", "", "", "", "M");
  836. }
  837. function btn_specialmngt_onclick(obj:Button, e:ClickEventInfo)
  838. {
  839. frmf_modal("SMRSO23400", "SMRSO23400", "", "", "", "", "", "", "", "", "", "", "M");
  840. }
  841. function btn_help_onclick(obj:Button, e:ClickEventInfo)
  842. {
  843. frmf_modal("SMRSO22601", "SMRSO22601", "", "", "", "", "", "", "", "", "", "", "M");
  844. }
  845. function button2_onclick(obj:Button, e:ClickEventInfo)
  846. {
  847. var objDOM = rptf_createDOM();
  848. rptf_setNodeListToDOM(objDOM, "/root/main/stocklist", ds_main_stocklist);
  849. var objParam = new Object();
  850. objParam.xml_data_XML1 = objDOM.documentElement.source;
  851. var option = "";
  852. rptf_exeReportPreview30(["RPRSO22601"],[objParam], option);
  853. }
  854. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  855. {
  856. ds_popdelive.setColumn(0, "instcd", grp_search.cmb_instcd.value);
  857. ds_popdelive.setColumn(0, "delivedd", grp_search.ipt_dd.value);
  858. ds_popdelive.setColumn(0, "delivedeptcd", grp_search.ipt_dutdeptcd.value);
  859. ds_popdelive.setColumn(0, "delivedeptnm", grp_search.ipt_dutdeptnm.value);
  860. ds_popdelive.setColumn(0, "opener", "jaegosearch");
  861. var objArg = new Object();
  862. objArg.arg_ds_popdata = ds_popdelive;
  863. frmf_modal("SMRSO22700", "SMRSO22700", objArg, "", "", "", "", "", "", "", "", "", "M");
  864. }
  865. ]]></Script>
  866. </Form>
  867. </FDL>