SMRST00200_실사량관리(약국).xfdl 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRST00200" position="absolute 0 0 1200 790" titletext="실사량관리" oninit="SMRST00200_oninit" onload="SMRST00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 50 1195 794" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 10 1195 71" id="roundrect1" type="roundrectangle"/>
  11. <Shape position="absolute 0 95 1195 101" linetype="horizontal" id="line1" class="line_10"/>
  12. <Grid position="absolute 0 100 1195 734" id="grd_rsthssstlist" binddataset="ds_main_rsthssstlist" autoenter="select" onkeydown="grp_biz_grd_rsthssstlist_onkeydown">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="20"/>
  17. <Column size="124"/>
  18. <Column size="334"/>
  19. <Column size="100"/>
  20. <Column size="185"/>
  21. <Column size="71"/>
  22. <Column size="68"/>
  23. <Column size="81"/>
  24. <Column size="110"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell/>
  44. <Cell col="1" text="물품코드"/>
  45. <Cell col="2" text="품명"/>
  46. <Cell col="3" text="실사량"/>
  47. <Cell col="4" text="규격"/>
  48. <Cell col="5" colspan="3" text="포장" taborder="undefined"/>
  49. <Cell col="8" text="단가"/>
  50. <Cell col="9" text="기관코드"/>
  51. <Cell col="10" text="물품구분"/>
  52. <Cell col="11" text="작업년월"/>
  53. <Cell col="12" text="부서코드"/>
  54. <Cell col="13" text="대분류코드"/>
  55. <Cell col="14" text="재고조정처리여부"/>
  56. <Cell col="15"/>
  57. <Cell col="16"/>
  58. <Cell col="17"/>
  59. <Cell col="18"/>
  60. <Cell col="19"/>
  61. <Cell col="20"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell celltype="head"/>
  65. <Cell col="1" displaytype="normal" edittype="none" style="align:left;" text="bind:goodcd"/>
  66. <Cell col="2" displaytype="normal" edittype="none" style="align:left;" text="bind:goodnm"/>
  67. <Cell col="3" displaytype="number" edittype="text" style="align:right;" text="bind:orginspqty" mask="#,##9.##" editautoselect="true"/>
  68. <Cell col="4" style="align:left;" text="bind:goodspec"/>
  69. <Cell col="5" style="align:right;" text="bind:exchqty" mask="#,###"/>
  70. <Cell col="6" text="bind:deliveunit" enable="false"/>
  71. <Cell col="7" text="bind:purcunit"/>
  72. <Cell col="8" style="align:right;" text="bind:goodunitcost" mask="#,###.##"/>
  73. <Cell col="9" text="bind:instcd"/>
  74. <Cell col="10" text="bind:goodflag"/>
  75. <Cell col="11" text="bind:orginspym"/>
  76. <Cell col="12" text="bind:stocdeptcd"/>
  77. <Cell col="13" text="bind:lrgcd"/>
  78. <Cell col="14" text="bind:stocadjttretyn"/>
  79. <Cell col="15" text="bind:orginspid"/>
  80. <Cell col="16" text="bind:orginspidnm"/>
  81. <Cell col="17" text="bind:orginspdd"/>
  82. <Cell col="18" text="bind:stocqty" mask="#,###.#"/>
  83. <Cell col="19" text="bind:stocamt" mask="#,###"/>
  84. <Cell col="20" text="bind:stocseqno"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Calendar position="absolute 416 18 521 37" align="align:center middle;" id="ipt_orginspym" class="input_essential" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center;" autoselect="true"/>
  90. <Combo position="absolute 985 45 1065 64" id="cmb_goodflag" class="combo_default" visible="false"/>
  91. <Static text="약품 실사등록 내역" position="absolute 0 79 197 98" id="caption3" class="tit_2"/>
  92. <Button position="absolute 759 46 775 62" id="btn_goodcd" class="icon_search" text="" onclick="grp_biz_btn_goodcd_onclick"/>
  93. <Edit position="absolute 673 44 755 63" id="ipt_goodcd" class="input_search" onkeydown="grp_biz_ipt_goodcd_onkeydown" autoselect="true" inputmode="upper"/>
  94. <Edit position="absolute 779 44 982 63" id="ipt_goodnm" class="input_search" onkeydown="grp_biz_ipt_goodnm_onkeydown" autoselect="true"/>
  95. <Button position="absolute 1125 29 1181 51" id="btn_search" class="btn1" text="조회" onclick="grp_biz_btn_search_onclick"/>
  96. <Shape position="absolute 1107 16 1113 61" linetype="vertical" id="line13" class="line_4"/>
  97. <Static text="약품분류 :" position="absolute 325 75 413 92" id="cap_lrgcd" class="search_name" visible="false"/>
  98. <Static text="기관코드 :" position="absolute 15 14 86 41" id="cap_instcd" class="search_name"/>
  99. <Static text="약품코드 :" position="absolute 598 45 670 62" id="cap_goodcd" class="search_name"/>
  100. <Static text="재고 년월 :" position="absolute 325 19 414 36" id="cap_orginspym" class="search_name"/>
  101. <Static text="부 서 :" position="absolute 597 19 670 36" id="cap_stocdeptcd" class="search_name"/>
  102. <Button position="absolute 1140 75 1193 94" id="btn_delete" class="btn2" text="행삭제" onclick="grp_biz_btn_delete_onclick"/>
  103. <Button position="absolute 745 75 798 94" id="btn_insert" class="btn2" visible="false" text="행추가" onclick="grp_biz_btn_insert_onclick"/>
  104. <Combo position="absolute 673 18 786 37" id="cmb_stocdeptcd" class="combo_essential"/>
  105. <Combo position="absolute 400 73 550 92" id="cmb_lrgcd" class="combo_essential" visible="false"/>
  106. <Static text="실사담당자 :" position="absolute 325 45 412 62" id="caption24" class="search_name"/>
  107. <Edit readonly="true" position="absolute 416 45 522 64" align="align:center middle;" id="opt_orginspidnm" class="output" style="align:center;"/>
  108. <Edit readonly="true" position="absolute 1070 45 1090 64" align="align:center middle;" id="opt_orginspid" visible="false" class="output"/>
  109. <Button position="absolute 1007 75 1137 94" id="btn_load" class="btn2" text="기초데이타 가져오기" onclick="grp_biz_btn_load_onclick"/>
  110. <Edit readonly="true" position="absolute 90 18 240 37" align="align:center middle;" id="opt_instcdnm" class="output" style="align:center;"/>
  111. <Edit readonly="true" position="absolute 1025 45 1045 64" id="opt_instcd" visible="false" class="output"/>
  112. <Calendar position="absolute 945 19 1045 38" align="align:center middle;" id="ipt_orginspdd" class="input_essential" mask="yyyy-mm-dd" style="align:center;" dateformat="yyyy-MM-dd" value="null" onchanged="grp_biz_ipt_orginspdd_onchanged" autoselect="true"/>
  113. <Static text="실사일자 :" position="absolute 869 20 940 37" id="caption1" class="search_name"/>
  114. <Grid position="absolute 75 260 870 399" id="grd_pharmcylist" visible="false" binddataset="ds_init_main_goodlist" oncelldblclick="grp_biz_grd_pharmcylist_oncelldblclick">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="20"/>
  119. <Column size="102"/>
  120. <Column size="270"/>
  121. <Column size="71"/>
  122. <Column size="113"/>
  123. <Column size="53"/>
  124. <Column size="41"/>
  125. <Column size="38"/>
  126. <Column size="61"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="0"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. <Column size="0"/>
  139. </Columns>
  140. <Rows>
  141. <Row size="24" band="head"/>
  142. <Row size="24"/>
  143. </Rows>
  144. <Band id="head">
  145. <Cell/>
  146. <Cell col="1" text="물품코드"/>
  147. <Cell col="2" text="품명"/>
  148. <Cell col="3" text="실사량"/>
  149. <Cell col="4" text="규격"/>
  150. <Cell col="5" text="포장"/>
  151. <Cell col="6" text="포장"/>
  152. <Cell col="7" text="포장"/>
  153. <Cell col="8" text="단가"/>
  154. <Cell col="9" text="기관코드"/>
  155. <Cell col="10" text="물품구분"/>
  156. <Cell col="11" text="작업년월"/>
  157. <Cell col="12" text="부서코드"/>
  158. <Cell col="13" text="대분류코드"/>
  159. <Cell col="14" text="재고조정처리여부"/>
  160. <Cell col="15"/>
  161. <Cell col="16"/>
  162. <Cell col="17"/>
  163. <Cell col="18"/>
  164. <Cell col="19"/>
  165. <Cell col="20"/>
  166. </Band>
  167. <Band id="body">
  168. <Cell celltype="head"/>
  169. <Cell col="1" displaytype="none" edittype="none" text="bind:goodcd"/>
  170. <Cell col="2" displaytype="none" edittype="none" text="bind:goodnm"/>
  171. <Cell col="3" displaytype="none" edittype="none" text="bind:orginspqty" mask="#,###"/>
  172. <Cell col="4" text="bind:goodspec"/>
  173. <Cell col="5" text="bind:exchqty" mask="#,###"/>
  174. <Cell col="6" text="bind:deliveunit" enable="false"/>
  175. <Cell col="7" text="bind:purcunit"/>
  176. <Cell col="8" text="bind:goodunitcost" mask="#,###"/>
  177. <Cell col="9" text="bind:instcd"/>
  178. <Cell col="10" text="bind:goodflag"/>
  179. <Cell col="11" text="bind:orginspym"/>
  180. <Cell col="12" text="bind:stocdeptcd"/>
  181. <Cell col="13" text="bind:lrgcd"/>
  182. <Cell col="14" text="bind:stocadjttretyn"/>
  183. <Cell col="15" text="bind:orginspid"/>
  184. <Cell col="16" text="bind:orginspidnm"/>
  185. <Cell col="17" text="bind:orginspdd"/>
  186. <Cell col="18" text="bind:stocqty" mask="#,###.#"/>
  187. <Cell col="19" text="bind:stocamt" mask="#,###"/>
  188. <Cell col="20" text="bind:stocseqno"/>
  189. </Band>
  190. </Format>
  191. </Formats>
  192. </Grid>
  193. <Button position="absolute 885 75 1004 94" id="button1" class="btn2" text="전산재고 가져오기" onclick="grp_biz_button1_onclick"/>
  194. <Div position="absolute 737 100 1152 265" id="group2" visible="false" style="background:white;">
  195. <Layouts>
  196. <Layout>
  197. <Grid position="absolute 0 25 410 164" id="grd_goodlist" visible="true" binddataset="ds_init_main_goodlist" oncelldblclick="grp_biz_group2_grd_goodlist_oncelldblclick" anchor="default">
  198. <Formats>
  199. <Format id="default">
  200. <Columns>
  201. <Column size="20"/>
  202. <Column size="102"/>
  203. <Column size="270"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. </Columns>
  207. <Rows>
  208. <Row size="24" band="head"/>
  209. <Row size="24"/>
  210. </Rows>
  211. <Band id="head">
  212. <Cell/>
  213. <Cell col="1" text="약품코드"/>
  214. <Cell col="2" text="약품명"/>
  215. <Cell col="3" text="기관코드"/>
  216. <Cell col="4" text="물품구분"/>
  217. </Band>
  218. <Band id="body">
  219. <Cell celltype="head"/>
  220. <Cell col="1" displaytype="text" edittype="none" text="bind:goodcd"/>
  221. <Cell col="2" displaytype="text" edittype="none" text="bind:goodnm"/>
  222. <Cell col="3" text="bind:instcd"/>
  223. <Cell col="4" text="bind:goodflag"/>
  224. </Band>
  225. </Format>
  226. </Formats>
  227. </Grid>
  228. <Button position="absolute 340 4 393 23" id="button5" class="btn2" text="숨기기" onclick="grp_biz_group2_button5_onclick" anchor="default"/>
  229. </Layout>
  230. </Layouts>
  231. </Div>
  232. <Static text="관리분류 :" position="absolute 15 45 88 62" id="caption2" class="search_name"/>
  233. <Combo position="absolute 90 45 240 64" id="cmb_mngtcls" class="combo_essential"/>
  234. </Layout>
  235. </Layouts>
  236. </Div>
  237. <Div position="absolute 0 24 1195 56" id="group1">
  238. <Layouts>
  239. <Layout>
  240. <Button position="absolute 0 3 92 25" id="btn_print" class="btn6" text="리스트출력" anchor="default" onclick="group1_btn_print_onclick"/>
  241. <Button position="absolute 1070 3 1126 25" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group1_btn_save_onclick"/>
  242. <Button position="absolute 1127 3 1195 25" id="btn_init" class="btn4" text="초기화" anchor="default" onclick="group1_btn_init_onclick"/>
  243. <Shape position="absolute 0 24 1195 30" linetype="horizontal" id="line17" class="line_6" anchor="default"/>
  244. </Layout>
  245. </Layouts>
  246. </Div>
  247. <Static id="caption6" text="약품 실사량 관리" class="tit_1" position="absolute 0 0 138 25"/>
  248. </Layout>
  249. </Layouts>
  250. <Objects>
  251. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  252. <ColumnInfo>
  253. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  254. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  255. <Column id="orginspym" type="STRING" size="256" sumtext="작업년월"/>
  256. <Column id="stocdeptcd" type="STRING" size="256" sumtext="부서"/>
  257. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  258. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
  259. <Column id="orginspid" type="STRING" size="256" sumtext="실사자"/>
  260. <Column id="orginspdd" type="STRING" size="256" sumtext="실사일자"/>
  261. <Column id="mngtcls" type="STRING" size="256" sumtext="관리분류(약품)"/>
  262. <Column id="drugkind" type="STRING" size="256" sumtext="약품분류"/>
  263. <Column id="instcdnm" type="STRING" size="256"/>
  264. <Column id="orginspidnm" type="STRING" size="256"/>
  265. <Column id="goodnm" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. <Rows>
  268. <Row/>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_main_rsthssstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  272. <ColumnInfo>
  273. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  274. <Column id="stocdeptcd" type="STRING" size="256" sumtext="재고부서코드"/>
  275. <Column id="orginspym" type="STRING" size="256" sumtext="실사년월"/>
  276. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드(물품구분1, 대분류 2, 중분류 3, 소분류2, 번호 4) 12자리"/>
  277. <Column id="stocseqno" type="STRING" size="256" sumtext="순번"/>
  278. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분(r0025) y 진료재료, ..."/>
  279. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
  280. <Column id="stocqty" type="BIGDECIMAL" size="256" sumtext="재고수량"/>
  281. <Column id="stocamt" type="BIGDECIMAL" size="256" sumtext="재고금액"/>
  282. <Column id="orginspqty" type="STRING" size="256" sumtext="실사수량"/>
  283. <Column id="stocadjttretyn" type="STRING" size="256" sumtext="재고조정처리여부"/>
  284. <Column id="goodnm" type="STRING" size="256" sumtext="물품명"/>
  285. <Column id="purcunit" type="STRING" size="256" sumtext="발주단위"/>
  286. <Column id="exchqty" type="STRING" size="256" sumtext="환산수량"/>
  287. <Column id="deliveunit" type="STRING" size="256" sumtext="단위"/>
  288. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  289. <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="단가"/>
  290. <Column id="orginspid" type="STRING" size="256" sumtext="실사자ID"/>
  291. <Column id="orginspidnm" type="STRING" size="256" sumtext="실사자명"/>
  292. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id"/>
  293. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  294. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자id"/>
  295. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  296. <Column id="orginspdd" type="STRING" size="256" sumtext="실사일자"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="refcond" type="STRING" size="256" sumtext="조회조건 "/>
  302. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  303. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
  304. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  305. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_init_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  311. <Column id="goodnm" type="STRING" size="256" sumtext="goodnm "/>
  312. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  313. <Column id="userqty" type="STRING" size="256" sumtext="사용자입력수량 "/>
  314. <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위 "/>
  315. <Column id="estmamt" type="BIGDECIMAL" size="256" sumtext="견적가 "/>
  316. <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
  317. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명 "/>
  318. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드 "/>
  319. <Column id="todd" type="STRING" size="256" sumtext="todd "/>
  320. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  321. <Column id="useyn" type="STRING" size="256" sumtext="사용여부 "/>
  322. <Column id="fromdd" type="STRING" size="256" sumtext="fromdd "/>
  323. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분(r0025) "/>
  324. <Column id="goodhngnm" type="STRING" size="256" sumtext="영문명 "/>
  325. <Column id="goodengnm" type="STRING" size="256" sumtext="물품명 "/>
  326. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드 "/>
  327. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명 "/>
  328. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드 "/>
  329. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명 "/>
  330. <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드 "/>
  331. <Column id="smlnm" type="STRING" size="256" sumtext="소분류 "/>
  332. <Column id="winacnt" type="STRING" size="256" sumtext="계정코드 "/>
  333. <Column id="winacntnm" type="STRING" size="256" sumtext="계정코드명 "/>
  334. <Column id="amtacnt" type="STRING" size="256" sumtext="비용계정 "/>
  335. <Column id="amtacntnm" type="STRING" size="256" sumtext="비용계정명 "/>
  336. <Column id="mainmngtdeptcd" type="STRING" size="256" sumtext="주관리부서코드 "/>
  337. <Column id="mainmngtdeptnm" type="STRING" size="256" sumtext="주관리부서명 "/>
  338. <Column id="stocmngtflag" type="STRING" size="256" sumtext="재고관리기준 "/>
  339. <Column id="purcunit" type="STRING" size="256" sumtext="입고단위 "/>
  340. <Column id="purcunitnm" type="STRING" size="256" sumtext="입고단위 "/>
  341. <Column id="deliveunitnm" type="STRING" size="256" sumtext="수불단위 "/>
  342. <Column id="exchqty" type="BIGDECIMAL" size="256" sumtext="환산배수 "/>
  343. <Column id="minexch" type="BIGDECIMAL" size="256" sumtext="최소환산수량 "/>
  344. <Column id="divusenvalqty" type="STRING" size="256" sumtext="분할사용수치 "/>
  345. <Column id="edicd" type="STRING" size="256" sumtext="edi코드 "/>
  346. <Column id="reqflag" type="STRING" size="256" sumtext="청구기준 "/>
  347. <Column id="reqflagnm" type="STRING" size="256" sumtext="청구기준명 "/>
  348. <Column id="reqmthd" type="STRING" size="256" sumtext="청구방법 "/>
  349. <Column id="reqprid" type="STRING" size="256" sumtext="청구주기 "/>
  350. <Column id="prodplce" type="STRING" size="256" sumtext="제조국 "/>
  351. <Column id="prodplcenm" type="STRING" size="256" sumtext="제조국명 "/>
  352. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처 "/>
  353. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="최종공급처 "/>
  354. <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
  355. <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
  356. <Column id="forgncurncyunitcost" type="BIGDECIMAL" size="256" sumtext="외화단가 "/>
  357. <Column id="curncyunit" type="STRING" size="256" sumtext="화폐단위 "/>
  358. <Column id="curncyunitnm" type="STRING" size="256" sumtext="화폐단위 "/>
  359. <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="제품단가 "/>
  360. <Column id="purcflag" type="STRING" size="256" sumtext="구매구분 "/>
  361. <Column id="safestocqty" type="BIGDECIMAL" size="256" sumtext="안전재고량 "/>
  362. <Column id="ddavguseqty" type="BIGDECIMAL" size="256" sumtext="일평균사용량 "/>
  363. <Column id="mmavgusescheqty" type="BIGDECIMAL" size="256" sumtext="월평균사용예정량 "/>
  364. <Column id="mmavguseqty" type="BIGDECIMAL" size="256" sumtext="월평균사용량 "/>
  365. <Column id="prprtystocpossndayno" type="BIGDECIMAL" size="256" sumtext="적정재고보유일수 "/>
  366. <Column id="stocqty" type="STRING" size="256" sumtext="재고량 "/>
  367. <Column id="curemealstocqty" type="STRING" size="256" sumtext="치료식현재고수량 "/>
  368. <Column id="empmealstocqty" type="STRING" size="256" sumtext="직원식현재고수량 "/>
  369. <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="직원야식현재고수량 "/>
  370. <Column id="curemealstocqty" type="STRING" size="256" sumtext="영양팀치료식 "/>
  371. <Column id="empmealstocqty" type="STRING" size="256" sumtext="영양팀직원식 "/>
  372. <Column id="empnigtmealstocqty" type="STRING" size="256" sumtext="영양팀직원야식 "/>
  373. <Column id="allsizeyn" type="STRING" size="256" sumtext="allsize여부 "/>
  374. <Column id="orgloc" type="STRING" size="256" sumtext="원산지 "/>
  375. <Column id="select" type="STRING" size="256" sumtext=" "/>
  376. <Column id="bnscd" type="STRING" size="256" sumtext=" "/>
  377. <Column id="oldcd" type="STRING" size="256" sumtext="구코드 "/>
  378. <Column id="goodpurccost" type="STRING" size="256" sumtext="납품가 "/>
  379. <Column id="reqpridnm" type="STRING" size="256" sumtext="청구주기명 "/>
  380. <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize코드 "/>
  381. <Column id="reqfnldeptcd" type="STRING" size="256" sumtext="출고부서 "/>
  382. <Column id="delivedeptcd" type="STRING" size="256" sumtext="출고부서 "/>
  383. <Column id="setunit" type="STRING" size="256" sumtext="포장구성단위 "/>
  384. <Column id="constunit" type="STRING" size="256" sumtext="포장구성단위 "/>
  385. </ColumnInfo>
  386. </Dataset>
  387. </Objects>
  388. <Bind>
  389. <BindItem id="item0" compid="grp_biz.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
  390. <BindItem id="item1" compid="grp_biz.ipt_orginspym" propid="value" datasetid="ds_send" columnid="orginspym"/>
  391. <BindItem id="item2" compid="grp_biz.cmb_stocdeptcd" propid="value" datasetid="ds_send" columnid="stocdeptcd"/>
  392. <BindItem id="item3" compid="grp_biz.ipt_orginspdd" propid="value" datasetid="ds_send" columnid="orginspdd"/>
  393. <BindItem id="item4" compid="grp_biz.cmb_mngtcls" propid="value" datasetid="ds_send" columnid="mngtcls"/>
  394. <BindItem id="item5" compid="grp_biz.opt_orginspidnm" propid="value" datasetid="ds_send" columnid="orginspidnm"/>
  395. <BindItem id="item6" compid="grp_biz.ipt_goodnm" propid="value" datasetid="ds_send" columnid="goodnm"/>
  396. <BindItem id="item7" compid="grp_biz.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  397. <BindItem id="item8" compid="grp_biz.opt_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  398. <BindItem id="item9" compid="grp_biz.opt_orginspid" propid="value" datasetid="ds_send" columnid="orginspid"/>
  399. <BindItem id="item10" compid="grp_biz.cmb_lrgcd" propid="value" datasetid="ds_send" columnid="lrgcd"/>
  400. <BindItem id="item11" compid="grp_biz.ipt_goodcd" propid="value" datasetid="ds_send" columnid="goodcd"/>
  401. </Bind>
  402. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  403. * System Name : 경대 의료정보시스템
  404. * Job Name : mis_stocsumxp -> SMRST00200
  405. * Creator : pjb
  406. * Make Date : 2018-01-04
  407. * Description :
  408. *---------------------------------------------------------------------------------------
  409. * Modify Date Modifier Modify Description
  410. *---------------------------------------------------------------------------------------
  411. * 2018-01-04 pjb TF->XP
  412. *
  413. *---------------------------------------------------------------------------------------
  414. ****************************************************************************************/
  415. //=======================================================================================
  416. // Lib Include
  417. //---------------------------------------------------------------------------------------
  418. include "com_commonxp::comm_main.xjs";
  419. include "mis_miscommonxp::MIS.xjs";
  420. include "mis_miscommonxp::RSZ001.xjs";
  421. //include "mis_humtrafactmngtxp::RPB001.xjs";
  422. //=======================================================================================
  423. // Global Form Variable
  424. //---------------------------------------------------------------------------------------
  425. var arErrorCode = new HashArray();
  426. //=======================================================================================
  427. // Function
  428. //---------------------------------------------------------------------------------------
  429. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  430. function fInitialize()
  431. {
  432. misfGridInit(grp_biz.grd_rsthssstlist);
  433. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  434. rszfComboStockArthDeptcdList("grp_biz.cmb_stocdeptcd",sysf_getUserInfo("dutplceinstcd"),"PH" );
  435. misfComboComCdList("030M0003",grp_biz.cmb_mngtcls,"Y");
  436. grp_biz.cmb_mngtcls.value = "";
  437. misfComboComCdListMulti("R0025,R0315","grp_biz.cmb_goodflag,grp_biz.cmb_lrgcd");
  438. frmf_addComboItem("grp_biz.cmb_lrgcd","전체","-","above");
  439. grp_biz.cmb_lrgcd.value="-";
  440. misfMsterDetailSet(grp_biz.grd_rsthssstlist, null, "TRRST00201", "Y");
  441. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  442. ds_send.setColumn(0, "instcdnm" , sysf_getUserInfo("dutplceinstnm"));
  443. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  444. ds_send.setColumn(0, "goodflag", "PH");
  445. ds_send.setColumn(0, "orginspid", sysf_getUserInfo("userid"));
  446. ds_send.setColumn(0, "orginspidnm", sysf_getUserInfo("usernm"));
  447. var curdd = utlf_getCurrentDate();
  448. ds_send.setColumn(0, "orginspym",curdd.substr(0,6) );
  449. ds_send.setColumn(0, "orginspdd",utlf_getCurrentDate() );
  450. //rszfGridComboLrgcdList("P", cmb_lrgcd, "lrgcd","N");
  451. grp_biz.cmb_stocdeptcd.index = 0;
  452. grp_biz.cmb_lrgcd.index = 0;
  453. //grd_rsthssstlist.explorerbar = "sortshow"; --> ? grdf_setGridSort로 변환?
  454. }
  455. function fCheckRetrieveData()
  456. {
  457. if(!frmf_isRequiredControls("grp_biz.cmb_goodflag") )return false; // 물품구분
  458. if(!frmf_isRequiredControls("grp_biz.ipt_orginspym") )return false; // 작업년월
  459. if(!frmf_isRequiredControls("grp_biz.ipt_orginspdd") )return false; // 실사일자
  460. if(!frmf_isRequiredControls("grp_biz.cmb_stocdeptcd") )return false; // 부서코드
  461. if(!frmf_isRequiredControls("grp_biz.cmb_lrgcd") )return false; // 대분류
  462. }
  463. function finsert()
  464. {
  465. misfGridIUD(grp_biz.grd_rsthssstlist, "A");
  466. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "instcd", opt_instcd.value); //기관코드
  467. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "stocdeptcd", cmb_stocdeptcd.value); //부서코드
  468. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspym", ipt_orginspym.value); //작업년월
  469. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "goodflag", cmb_goodflag.value); //물품구분
  470. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspid", opt_orginspid.value); //실사자
  471. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspdd", ipt_orginspdd.value); //실사일자
  472. /* 아래 3줄은 2.0으로 전환하다 본함수가 사용되지 않는 것 같아 중단했음.
  473. grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("goodspec")) = true;
  474. grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("deliveunit")) = true;
  475. grd_rsthssstlist.isReadOnly(grd_rsthssstlist.row, grd_rsthssstlist.colRef("goodunitcost")) = true;
  476. */
  477. }
  478. function fAfterRetr()
  479. {
  480. ds_main_rsthssstlist.enableevent = false;
  481. ds_main_rsthssstlist.updatecontrol = false;
  482. //없는 컬럼들을 추가함
  483. dsf_setDefaultVal(ds_main_rsthssstlist, "stocdeptcd:,orginspym:,goodflag:,orginspid:,orginspdd:,orginspqty:,instcd:");
  484. for(var liRow = 0 ; liRow < ds_main_rsthssstlist.rowcount ; liRow++)
  485. {
  486. ds_main_rsthssstlist.setColumn(liRow, "instcd", grp_biz.opt_instcd.value);
  487. ds_main_rsthssstlist.setColumn(liRow, "stocdeptcd", grp_biz.cmb_stocdeptcd.value);
  488. //model.setValue(grd_rsthssstlist.nodeset + "[" + (liRow - grd_rsthssstlist.fixedRows + 1)+ "]/orginspym",ipt_orginspym.value.substr(0,6) );
  489. ds_main_rsthssstlist.setColumn(liRow, "orginspym", grp_biz.ipt_orginspym.value );
  490. ds_main_rsthssstlist.setColumn(liRow, "goodflag", grp_biz.cmb_goodflag.value);
  491. ds_main_rsthssstlist.setColumn(liRow, "orginspid", grp_biz.opt_orginspid.value);
  492. ds_main_rsthssstlist.setColumn(liRow, "orginspdd", grp_biz.ipt_orginspdd.value);
  493. //KU2.0에서 추가 박준범. KU1.0에서는 mapping파일 안에 있는 부분임.
  494. ds_main_rsthssstlist.setColumn(liRow, "orginspqty", ds_main_rsthssstlist.getColumn(liRow, "stocqty"));
  495. if (ds_main_rsthssstlist.getRowType(liRow) == 1) ds_main_rsthssstlist.setRowType(liRow, 2);
  496. }
  497. ds_main_rsthssstlist.updatecontrol = true;
  498. ds_main_rsthssstlist.enableevent = true;
  499. }
  500. //=======================================================================================
  501. // Event
  502. //---------------------------------------------------------------------------------------
  503. /****************************************************************************************
  504. * Components : Form
  505. * Components ID : SMRST00200
  506. * Event : oninit
  507. * Argument : 01.obj : Object Event has occurred
  508. * : 02.e : Event Object
  509. * Description : 화면 처음 초기화시
  510. ****************************************************************************************/
  511. function SMRST00200_oninit(obj:Form, e:InitEventInfo)
  512. {
  513. frmf_initForm(obj); //폼 초기화
  514. }
  515. /****************************************************************************************
  516. * Components : Form
  517. * Components ID : SMRST00200
  518. * Event : onload
  519. * Argument : 01.obj : Object Event has occurred
  520. * : 02.e : Event Object
  521. * Description : 화면 로딩 완료시
  522. ****************************************************************************************/
  523. function SMRST00200_onload(obj:Form, e:LoadEventInfo)
  524. {
  525. grdf_setRowTypeIcon(grp_biz.grd_rsthssstlist, 0);
  526. grdf_setRowTypeIcon(grp_biz.grd_pharmcylist, 0);
  527. grdf_setRowTypeIcon(grp_biz.group2.grd_goodlist, 0);
  528. grdf_setGridSort(grp_biz.grd_rsthssstlist);
  529. //참고 : grdf_initGrid(grp_biz.grd_rsthssstlist); 그리드의 sort기능과 전체체크기능을 세팅한다.
  530. //화면 Control을 초기화한다
  531. fInitialize();
  532. }
  533. function grp_biz_ipt_orginspdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  534. {
  535. var orginspym = utlf_transNullToEmpty(ds_send.getColumn(0, "orginspym"));
  536. var orginspdd = utlf_transNullToEmpty(ds_send.getColumn(0, "orginspdd")).substring(0,6);
  537. if(orginspym > orginspdd ){
  538. sysf_messageBox("실사일자가 재고년월보다 작을 수","I004");
  539. ds_send.setColumn(0,"orginspdd",utlf_getCurrentDate());
  540. grp_biz.ipt_orginspdd.setFocus();
  541. return;
  542. }
  543. }
  544. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  545. {
  546. if(e.columnid == "goodcd") {
  547. if(utlf_transNullToEmpty(grp_biz.ipt_goodcd.value).length == 0)
  548. {
  549. grp_biz.ipt_goodnm.value = "";
  550. }
  551. else {
  552. ds_send.setColumn(0, "goodnm", "");
  553. grp_biz.btn_goodcd.click();
  554. }
  555. } else if(e.columnid == "goodnm") {
  556. if(utlf_transNullToEmpty(grp_biz.ipt_goodnm.value).length == 0)
  557. {
  558. grp_biz.ipt_goodcd.value = "";
  559. }
  560. else {
  561. ds_send.setColumn(0, "goodnm", "");
  562. grp_biz.btn_goodcd.click();
  563. }
  564. } else if(e.columnid == "orginspym") {
  565. obj.setColumn(e.row, e.columnid, e.newvalue.substr(0, 6));
  566. }
  567. }
  568. function grp_biz_ipt_goodcd_onkeydown(obj:Edit, e:KeyEventInfo)
  569. {
  570. if(e.keycode == "13") {
  571. //ds_send.setColumn(0, "goodcd", obj.value);
  572. grp_biz.ipt_goodcd.value = obj.value;
  573. }
  574. }
  575. function grp_biz_ipt_goodnm_onkeydown(obj:Edit, e:KeyEventInfo)
  576. {
  577. if(e.keycode == "13") {
  578. //ds_send.setColumn(0, "goodnm", obj.value);
  579. grp_biz.ipt_goodnm.value = obj.value;
  580. }
  581. }
  582. function grp_biz_btn_goodcd_onclick(obj:Button, e:ClickEventInfo)
  583. {
  584. dsf_makeValue(ds_send_reqdata, "instcd", "string", ds_send.getColumn(0, "instcd"), 0);
  585. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  586. dsf_makeValue(ds_send_reqdata, "goodflag", "string", "PH", 0);
  587. dsf_makeValue(ds_send_reqdata, "goodcd", "string", ds_send.getColumn(0, "goodcd"), 0);
  588. dsf_makeValue(ds_send_reqdata, "goodnm", "string", ds_send.getColumn(0, "goodnm"), 0);
  589. var oParam = {};
  590. oParam.id = "TRRSD00192";
  591. oParam.service = "purccommonapp.PurcCommon";
  592. oParam.method = "reqGetPhamGoodListByCond";
  593. oParam.inds = "req=ds_send_reqdata";
  594. oParam.outds = "ds_init_main_goodlist=goodlist";
  595. oParam.async = false;
  596. oParam.callback = "cf_TRRSD00192";
  597. tranf_submit(oParam);
  598. if (arErrorCode.pop("TRRSD00192") > -1) {
  599. var nodecnts = ds_init_main_goodlist.rowcount;
  600. if (nodecnts >= 2) {
  601. grp_biz.group2.visible = true;
  602. } else if (nodecnts == 1) {
  603. var goodcd = ds_init_main_goodlist.getColumn(0, "goodcd");
  604. var goodnm = ds_init_main_goodlist.getColumn(0, "goodnm");
  605. ds_send.enableevent = false;
  606. ds_send.setColumn(0, "goodcd", goodcd);
  607. ds_send.setColumn(0, "goodnm", goodnm);
  608. ds_send.enableevent = true;
  609. } else {
  610. sysf_messageBox("검색된 코드가 없습니다.", "I");
  611. }
  612. }
  613. }
  614. function cf_TRRSD00192(sSvcId, nErrorCode, sErrorMsg) {
  615. arErrorCode.push(sSvcId, nErrorCode);
  616. }
  617. function grp_biz_group2_button5_onclick(obj:Button, e:ClickEventInfo)
  618. {
  619. grp_biz.group2.visible = false;
  620. }
  621. function grp_biz_group2_grd_goodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  622. {
  623. if(e.row >= 0 && e.col >= 0) {
  624. var goodcd = ds_init_main_goodlist.getColumn(e.row, "goodcd");
  625. var goodnm = ds_init_main_goodlist.getColumn(e.row, "goodnm");
  626. ds_send.enableevent = false;
  627. ds_send.setColumn(0, "goodcd", goodcd);
  628. ds_send.setColumn(0, "goodnm", goodnm);
  629. ds_send.enableevent = true;
  630. grp_biz.group2.visible = false;
  631. }
  632. }
  633. function grp_biz_btn_search_onclick(obj:Button, e:ClickEventInfo)
  634. {
  635. var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
  636. //trace(data.saveXML("ds_main_rsthssstlist", "all"));
  637. if(data.rowcount != 0)
  638. {
  639. if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  640. }
  641. if(fCheckRetrieveData(false) == false)return;
  642. var oParam = {};
  643. oParam.id = "TRRST00201";
  644. oParam.service = "stocsumapp.StocSumMngt";
  645. oParam.method = "reqGetRsthssstList";
  646. oParam.inds = "req=ds_send";
  647. oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
  648. oParam.async = false;
  649. //oParam.callback = "cf_TRRST00201";
  650. tranf_submit(oParam);
  651. /* 컬럼의 값을 쓰기, 읽기 속성등으로 변경하고자 할 때 쓰는 방법.
  652. if(utlf_isNull(ds_main_rsthssstlist.getColumnInfo("orginspqtyEdit"))){ //해달 컬럼이 있는지 확인
  653. ds_main_rsthssstlist.addColumn("orginspqtyEdit", "string");
  654. }
  655. ds_main_rsthssstlist.enableevent = false;
  656. ds_main_rsthssstlist.updatecontrol = false;
  657. dsf_setDefaultVal(ds_main_rsthssstlist, "orginspqtyEdit:masknumber");
  658. ds_main_rsthssstlist.updatecontrol = true;
  659. ds_main_rsthssstlist.enableevent = true;
  660. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "orginspqtyEdit", "none");
  661. //misfSetReadOnlyCol(grd_rsthssstlist, "goodcd,goodnm,goodflag,goodspec,deliveunit,goodunitcost", true);
  662. */
  663. }
  664. function grp_biz_btn_insert_onclick(obj:Button, e:ClickEventInfo)
  665. {
  666. if(fCheckRetrieveData(false) == false)return;
  667. finsert();
  668. ds_main_rsthssstlist.enableevent = false;
  669. ds_main_rsthssstlist.updatecontrol = false;
  670. ds_main_rsthssstlist.setColumn(ds_main_rsthssstlist.rowposition, "goodcd", "");
  671. ds_main_rsthssstlist.updatecontrol = true;
  672. ds_main_rsthssstlist.enableevent = true;
  673. }
  674. function grp_biz_grd_rsthssstlist_onkeydown(obj:Grid, e:KeyEventInfo)
  675. {
  676. if(obj.currentcol == obj.getBindCellIndex("body", "orginspqty")){
  677. if(e.keycode == 13){
  678. if(ds_main_rsthssstlist.rowposition < ds_main_rsthssstlist.rowcount - 1) {
  679. ds_main_rsthssstlist.rowposition++;
  680. //아래 세줄의 코딩이 없어도 잘 됨.
  681. obj.setCellPos(obj.getBindCellIndex("body", "orginspqty"));
  682. //obj.setFocus();
  683. obj.showEditor();
  684. /* 또는 위의 3줄을 아래와 같이 코딩할 수도 있음.
  685. ds_main_rsthssstlist.selectRow(ds_main_rsthssstlist.rowposition + 1, true);
  686. grp_biz.grd_rsthssstlist.setCellPos(grp_biz.grd_rsthssstlist.getBindCellIndex("body", "orginspqty"));
  687. grp_biz.grd_rsthssstlist.showEditor(true);
  688. */
  689. }
  690. }
  691. }
  692. }
  693. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  694. {
  695. var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
  696. if(data.rowcount > 0)
  697. {
  698. if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 ) return;
  699. }
  700. if(!frmf_isRequiredControls("cmb_goodflag") ) return; // 물품구분
  701. if(!frmf_isRequiredControls("ipt_orginspym") ) return; // 작업년월
  702. if(!frmf_isRequiredControls("cmb_stocdeptcd") ) return; // 부서코드
  703. if(!frmf_isRequiredControls("cmb_lrgcd") ) return; // 대분류
  704. var oParam = {};
  705. oParam.id = "TRRST00203";
  706. oParam.service = "stocsumapp.StocSumMngt";
  707. oParam.method = "reqGetRsthrsthOnlineList";
  708. oParam.inds = "req=ds_send";
  709. oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
  710. oParam.async = false;
  711. //oParam.callback = "cf_TRRST00203";
  712. tranf_submit(oParam);
  713. fAfterRetr();
  714. }
  715. function grp_biz_btn_delete_onclick(obj:Button, e:ClickEventInfo)
  716. {
  717. misfGridIUD(grp_biz.grd_rsthssstlist, "D");
  718. ds_main_rsthssstlist.selectRow(ds_main_rsthssstlist.rowposition);
  719. }
  720. function grp_biz_btn_load_onclick(obj:Button, e:ClickEventInfo)
  721. {
  722. var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
  723. if(data.rowcount > 0)
  724. {
  725. if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  726. }
  727. if(!frmf_isRequiredControls("cmb_goodflag") )return; // 물품구분
  728. if(!frmf_isRequiredControls("ipt_orginspym") )return; // 작업년월
  729. if(!frmf_isRequiredControls("cmb_stocdeptcd") )return; // 부서코드
  730. if(!frmf_isRequiredControls("cmb_lrgcd") )return; // 대분류
  731. var oParam = {};
  732. oParam.id = "TRRST00202";
  733. oParam.service = "stocsumapp.StocSumMngt";
  734. oParam.method = "reqGetRsthssstBasicList";
  735. oParam.inds = "req=ds_send";
  736. oParam.outds = "ds_main_rsthssstlist=rsthssstlist";
  737. oParam.async = false;
  738. //oParam.callback = "cf_TRRST00202";
  739. tranf_submit(oParam);
  740. fAfterRetr();
  741. }
  742. function group1_btn_init_onclick(obj:Button, e:ClickEventInfo)
  743. {
  744. var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
  745. if(data.rowcount > 0)
  746. {
  747. if(sysf_messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
  748. }
  749. fInitialize();
  750. }
  751. function group1_btn_save_onclick(obj:Button, e:ClickEventInfo)
  752. {
  753. // if(messageBox("","Q002") != 6) return;
  754. // if(checkKeyColumn("grd_rsthssstlist")== false) return;
  755. for(var fRow = 0; fRow < ds_main_rsthssstlist.rowcount; fRow++)
  756. {
  757. if(utlf_isNull(ds_main_rsthssstlist.getColumn(fRow, "orginspqty")))
  758. {
  759. sysf_messageBox("실사량은","I003");
  760. return;
  761. }
  762. }
  763. grdf_setStatusColumn(ds_main_rsthssstlist, "status");
  764. var data = grdf_getGridUpdateData(grp_biz.grd_rsthssstlist);
  765. if(data.rowcount == 0)
  766. {
  767. sysf_messageBox("저장할 내용이","I004");
  768. return;
  769. }
  770. ds_main_rsthssstlist.enableevent = false;
  771. ds_main_rsthssstlist.updatecontrol = false;
  772. for(var i = 0; i < ds_main_rsthssstlist.rowcount; i++)
  773. {
  774. ds_main_rsthssstlist.setColumn(i, "orginspdd", utlf_transNullToEmpty(grp_biz.ipt_orginspdd.value));
  775. }
  776. ds_main_rsthssstlist.updatecontrol = true;
  777. ds_main_rsthssstlist.enableevent = true;
  778. var oParam = {};
  779. oParam.id = "TXRST00201";
  780. oParam.service = "stocsumapp.StocSumMngt";
  781. oParam.method = "reqExeRsthssstList";
  782. oParam.inds = "req=ds_main_rsthssstlist:A";
  783. oParam.outds = "";
  784. oParam.async = false;
  785. //oParam.callback = "cf_TXRST00201";
  786. tranf_submit(oParam);
  787. grp_biz.btn_search.click();
  788. }
  789. function grp_biz_grd_pharmcylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  790. {
  791. /* KU2.0 으로 전환에서 제외함
  792. if (isDataCell() == true) {
  793. var row = grd_pharmcylist.row;
  794. var goodcd = model.getValue("/root/init/main/goodlist[" + row + "]/goodcd");
  795. var goodnm = model.getValue("/root/init/main/goodlist[" + row + "]/goodnm");
  796. var orginspqty = model.getValue("/root/init/main/goodlist[" + row + "]/orginspqty");
  797. if (isNull(orginspqty)) orginspqty = 0;
  798. var goodspec = model.getValue("/root/init/main/goodlist[" + row + "]/goodspec");
  799. var exchqty = model.getValue("/root/init/main/goodlist[" + row + "]/exchqty");
  800. var deliveunit = model.getValue("/root/init/main/goodlist[" + row + "]/deliveunit");
  801. var purcunit = model.getValue("/root/init/main/goodlist[" + row + "]/purcunit");
  802. var goodunitcost = model.getValue("/root/init/main/goodlist[" + row + "]/goodunitcost");
  803. var instcd = model.getValue("/root/init/main/goodlist[" + row + "]/instcd");
  804. var goodflag = model.getValue("/root/init/main/goodlist[" + row + "]/goodflag");
  805. var orginspym = model.getValue("/root/send/orginspym");
  806. var stocdeptcd = model.getValue("/root/send/stocdeptcd");
  807. var lrgcd = model.getValue("/root/send/lrgcd");
  808. var stocadjttretyn = model.getValue("/root/send/stocadjttretyn");
  809. var orginspid = model.getValue("/root/send/orginspid");
  810. var orginspidnm = model.getValue("/root/send/orginspidnm");
  811. var orginspdd = model.getValue("/root/send/orginspdd");
  812. var stocqty = model.getValue("/root/init/main/goodlist[" + row + "]/stocqty");
  813. var stocamt = model.getValue("/root/init/main/goodlist[" + row + "]/goodunitcost");
  814. var stocseqno = "";
  815. var row2 = grd_rsthssstlist.row;
  816. model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodcd" , goodcd)
  817. model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodnm" , goodnm)
  818. model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspqty" , orginspqty)
  819. model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodspec" , goodspec)
  820. model.setValue("/root/main/rsthssstlist[" + row2 + "]/exchqty" , exchqty)
  821. model.setValue("/root/main/rsthssstlist[" + row2 + "]/deliveunit" , deliveunit)
  822. model.setValue("/root/main/rsthssstlist[" + row2 + "]/purcunit" , purcunit)
  823. model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodunitcost" , goodunitcost)
  824. model.setValue("/root/main/rsthssstlist[" + row2 + "]/instcd" , instcd)
  825. model.setValue("/root/main/rsthssstlist[" + row2 + "]/goodflag" , goodflag)
  826. model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspym" , orginspym)
  827. model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocdeptcd" , stocdeptcd)
  828. model.setValue("/root/main/rsthssstlist[" + row2 + "]/lrgcd" , lrgcd)
  829. model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocadjttretyn" , stocadjttretyn)
  830. model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspid" , orginspid)
  831. model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspidnm" , orginspidnm)
  832. model.setValue("/root/main/rsthssstlist[" + row2 + "]/orginspdd" , orginspdd)
  833. model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocqty" , stocqty)
  834. model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocamt" , stocamt)
  835. model.setValue("/root/main/rsthssstlist[" + row2 + "]/stocseqno" , stocseqno)
  836. grd_pharmcylist.visible = false;
  837. grd_rsthssstlist.col = grd_rsthssstlist.colRef("orginspqty");
  838. grd_rsthssstlist.editCell();
  839. model.refresh();
  840. }
  841. */
  842. }
  843. function group1_btn_print_onclick(obj:Button, e:ClickEventInfo)
  844. {
  845. //exeReportPreview("RPRST00201", "XMLSTR");
  846. var objDOM = rptf_createDOM(); // DOM 객체 설정
  847. rptf_setNodeListToDOM(objDOM, "/root/main/rsthssstlist", ds_main_rsthssstlist); // 데이터셋 1
  848. //rptf_setNodeListToDOM(objDOM, "/root/main/psninfo/cmtinfo", ds_main_psninfo_cmtinfo); // 데이터셋 2
  849. var objParam = new Object();
  850. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  851. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  852. rptf_exeReportPreview30(["RPRST00201"],[objParam], option);
  853. }
  854. ]]></Script>
  855. </Form>
  856. </FDL>