SMADT12240_마약류저장소이동(반환).xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12240" classname="SMADT12240_마약류저장소이동(반환)" inheritanceid="" position="absolute 0 0 1200 780" titletext="마약류 저장소이동(반환)" onload="SMADT12240_onload" oninit="SMADT12240_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_movinfo" taborder="44" position="absolute 0 207 1200 363">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. <InitValue/>
  12. </Div>
  13. <Static id="caption6" text="마약류 저장소이동(반환)" class="tit_1" position="absolute 0 0 181 25"/>
  14. <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 50 1195 109">
  15. <Layouts>
  16. <Layout>
  17. <Static id="caption2" text="저장소 :" class="search_name" position="absolute 421 10 483 27" anchor="default"/>
  18. <Button id="btn_search" taborder="58" text="조회" class="btn1" position="absolute 1069 8 1125 30" anchor="default" onclick="grp_search_btn_search_onclick"/>
  19. <Static id="caption1" text="이동일자 :" class="search_name" position="absolute 21 10 92 27" anchor="default"/>
  20. <Calendar id="ipt_indd_from" taborder="59" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 97 8 197 27" style="align:center;" align="align:center middle;" mask="yyyy-mm-dd" anchor="default"/>
  21. <Static id="caption00" text="~" position="absolute 201 9 212 26" style="align:center;font:dotum,9,bold;" anchor="default"/>
  22. <Calendar id="ipt_indd_to" taborder="60" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 217 8 317 27" style="align:left;" mask="yyyy-mm-dd" anchor="default"/>
  23. <Combo id="cmb_search_storge_no" taborder="61" innerdataset="@ds_search_storgelist" codecolumn="storge_no" datacolumn="storge_nonm" class="combo_default" position="absolute 738 8 880 27" anchor="default"/>
  24. <Combo id="cmb_search_opp_storge_no" taborder="62" innerdataset="@ds_search_opp_storgelist" codecolumn="storge_no" datacolumn="storge_nonm" class="combo_default" position="absolute 482 8 624 27" anchor="default"/>
  25. <Static id="caption04" text="-&gt;" position="absolute 629 10 646 27" style="align:center;font:dotum,9,bold;" anchor="default"/>
  26. <Static id="caption03" text="이동 저장소 :" position="absolute 650 10 733 27" style="color:navy;font:dotum,9,bold;" anchor="default"/>
  27. <Button id="btn_backward" taborder="63" text="&lt;" position="absolute 323 7 345 29" onclick="grp_search_btn_backward_onclick" anchor="default"/>
  28. <Button id="btn_today" taborder="64" text="당일" position="absolute 346 7 378 29" onclick="grp_search_btn_today_onclick" anchor="default"/>
  29. <Button id="btn_forward" taborder="65" text="&gt;" position="absolute 379 7 401 29" onclick="grp_search_btn_forward_onclick" anchor="default"/>
  30. <Static id="caption05" text="관리구분 :" class="search_name" position="absolute 898 10 973 27" anchor="default"/>
  31. <Combo id="cmb_prtm_se_nm" taborder="66" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 976 8 1047 27" anchor="default">
  32. <Dataset id="innerdataset">
  33. <ColumnInfo>
  34. <Column id="codecolumn" size="256"/>
  35. <Column id="datacolumn" size="256"/>
  36. </ColumnInfo>
  37. <Rows>
  38. <Row>
  39. <Col id="codecolumn"/>
  40. <Col id="datacolumn">전체</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">중점</Col>
  44. <Col id="datacolumn">중점</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">일반</Col>
  48. <Col id="datacolumn">일반</Col>
  49. </Row>
  50. </Rows>
  51. </Dataset>
  52. </Combo>
  53. <Static id="caption06" text="약품코드 :" class="search_name" position="absolute 21 34 96 51" anchor="default"/>
  54. <Edit id="ipt_gtin" taborder="67" autoselect="true" class="input_search" visible="false" position="absolute 403 37 496 56" anchor="default"/>
  55. <Button id="btn_gtin" taborder="68" class="icon_search" position="absolute 194 34 210 50" anchor="default" onclick="grp_search_btn_gtin_onclick"/>
  56. <Edit id="opt_hngnm" taborder="69" readonly="true" autoselect="true" class="output" position="absolute 215 33 488 52" anchor="default"/>
  57. <Edit id="ipt_drugcd" taborder="70" imemode="alpha" inputmode="upper" autoselect="true" class="input_search" position="absolute 97 33 190 52" anchor="default" onkeydown="grp_search_ipt_drugcd_onkeydown"/>
  58. </Layout>
  59. </Layouts>
  60. </Div>
  61. <Grid id="grd_movlist" taborder="17" boutddataset="ds_movlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 144 1195 760" anchor="all" oncellclick="grd_movlist_oncellclick" binddataset="ds_movlist">
  62. <Formats>
  63. <Format id="default">
  64. <Columns>
  65. <Column size="25" band="left"/>
  66. <Column size="71"/>
  67. <Column size="70"/>
  68. <Column size="69"/>
  69. <Column size="83"/>
  70. <Column size="93"/>
  71. <Column size="87"/>
  72. <Column size="187"/>
  73. <Column size="73"/>
  74. <Column size="86"/>
  75. <Column size="124"/>
  76. <Column size="40"/>
  77. <Column size="44"/>
  78. <Column size="40"/>
  79. <Column size="44"/>
  80. <Column size="33"/>
  81. <Column size="33"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. </Columns>
  86. <Rows>
  87. <Row size="24" band="head"/>
  88. <Row size="24"/>
  89. </Rows>
  90. <Band id="head">
  91. <Cell/>
  92. <Cell col="1" text="이동일자"/>
  93. <Cell col="2" text="저장소"/>
  94. <Cell col="3" text="이동저장소"/>
  95. <Cell col="4" text="약품코드"/>
  96. <Cell col="5" text="Label No"/>
  97. <Cell col="6" text="제품코드"/>
  98. <Cell col="7" text="제품명"/>
  99. <Cell col="8" text="유효기간"/>
  100. <Cell col="9" text="제조번호"/>
  101. <Cell col="10" text="일련번호"/>
  102. <Cell col="11" colspan="2" text="유통단위 수" taborder="undefined"/>
  103. <Cell col="13" colspan="2" text="낱개단위 수" taborder="undefined"/>
  104. <Cell col="15" text="전송"/>
  105. <Cell col="16" text="구분"/>
  106. <Cell col="17" text="제품최소유통단위수량"/>
  107. <Cell col="18" text="제품총낱개단위수량"/>
  108. <Cell col="19" text="바코드"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell celltype="head" text="expr:currow+1"/>
  112. <Cell col="1" displaytype="date" text="bind:indd"/>
  113. <Cell col="2" style="align:left;" text="bind:opp_storge_nm"/>
  114. <Cell col="3" style="align:left;" text="bind:storge_nm"/>
  115. <Cell col="4" text="bind:drugcd"/>
  116. <Cell col="5" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
  117. <Cell col="6" text="bind:gtin"/>
  118. <Cell col="7" style="align:left;" text="bind:hngnm"/>
  119. <Cell col="8" displaytype="date" text="bind:prd_valid_de"/>
  120. <Cell col="9" text="bind:mnf_no"/>
  121. <Cell col="10" text="bind:mnf_seq"/>
  122. <Cell col="11" style="align:center;" text="bind:min_distb_qy"/>
  123. <Cell col="12" text="bind:prd_min_distb_unit"/>
  124. <Cell col="13" style="align:center;" text="bind:pce_qy"/>
  125. <Cell col="14" text="bind:prd_pce_unit"/>
  126. <Cell col="15" text="bind:sendfg"/>
  127. <Cell col="16" text="bind:prtm_se_nm"/>
  128. <Cell col="17" text="bind:prd_min_distb_qy"/>
  129. <Cell col="18" text="bind:prd_tot_pce_qy"/>
  130. <Cell col="19" text="bind:prd_sgtin"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Shape id="line7" class="line_10" position="absolute 0 139 1195 145" anchor="left top right"/>
  136. <Div id="grp_button" anchor="left top right" taborder="40" position="absolute 0 13 1195 45">
  137. <Layouts>
  138. <Layout>
  139. <Shape id="line2" class="line_6" position="absolute 0 25 1195 31" anchor="left top right"/>
  140. <Button id="btn_send" taborder="1" text="전송" class="btn3" position="absolute 1138 3 1194 25" onclick="grp_button_btn_send_onclick" anchor="top right" visible="true"/>
  141. </Layout>
  142. </Layouts>
  143. </Div>
  144. <Static id="caption09" text="저장소이동(반환) 목록" class="tit_2" position="absolute 0 123 167 140" style="color:red;font:arial,9,bold;"/>
  145. </Layout>
  146. </Layouts>
  147. <Bind>
  148. <BindItem id="item12" compid="SMADT12240" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  149. <BindItem id="item14" compid="grp_search.ipt_indd_from" propid="value" datasetid="ds_send_search" columnid="indd_from"/>
  150. <BindItem id="item15" compid="grp_search.ipt_indd_to" propid="value" datasetid="ds_send_search" columnid="indd_to"/>
  151. <BindItem id="item0" compid="grp_search.cmb_search_storge_no" propid="value" datasetid="ds_send_search" columnid="storge_no"/>
  152. <BindItem id="item22" compid="grp_search.cmb_search_opp_storge_no" propid="value" datasetid="ds_send_search" columnid="opp_storge_no"/>
  153. <BindItem id="item26" compid="grp_search.cmb_prtm_se_nm" propid="value" datasetid="ds_send_search" columnid="prtm_se_nm"/>
  154. <BindItem id="item27" compid="grp_search.ipt_gtin" propid="value" datasetid="ds_send_search" columnid="gtin"/>
  155. <BindItem id="item28" compid="grp_search.opt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  156. <BindItem id="item29" compid="grp_search.ipt_drugcd" propid="value" datasetid="ds_send_search" columnid="drugcd"/>
  157. </Bind>
  158. <Objects>
  159. <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">
  160. <ColumnInfo>
  161. <Column id="indd_from" type="STRING" size="256"/>
  162. <Column id="indd_to" type="STRING" size="256"/>
  163. <Column id="storge_no" type="STRING" size="256" sumtext="연도"/>
  164. <Column id="opp_storge_no" type="STRING" size="256"/>
  165. <Column id="rpt_se_cd" type="STRING" size="256"/>
  166. <Column id="prtm_se_nm" type="STRING" size="256"/>
  167. <Column id="drugcd" type="STRING" size="256"/>
  168. <Column id="hngnm" type="STRING" size="256"/>
  169. <Column id="gtin" type="STRING" size="256"/>
  170. </ColumnInfo>
  171. <Rows>
  172. <Row/>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_opp_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="storge_no" type="STRING" size="256"/>
  178. <Column id="storge_nm" type="STRING" size="256"/>
  179. <Column id="storge_nonm" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. </Dataset>
  182. <Dataset id="ds_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  183. <ColumnInfo>
  184. <Column id="storge_no" type="STRING" size="256"/>
  185. <Column id="storge_nm" type="STRING" size="256"/>
  186. <Column id="storge_nonm" type="STRING" size="256"/>
  187. </ColumnInfo>
  188. </Dataset>
  189. <Dataset id="ds_movlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="indd" type="STRING" size="256"/>
  192. <Column id="gtin" type="STRING" size="256"/>
  193. <Column id="prd_valid_de" type="STRING" size="256"/>
  194. <Column id="mnf_no" type="STRING" size="256"/>
  195. <Column id="mnf_seq" type="STRING" size="256"/>
  196. <Column id="prd_sgtin" type="STRING" size="256"/>
  197. <Column id="opp_storge_no" type="STRING" size="256"/>
  198. <Column id="storge_no" type="STRING" size="256"/>
  199. <Column id="prd_min_distb_qy" type="STRING" size="256"/>
  200. <Column id="prd_min_distb_unit" type="STRING" size="256"/>
  201. <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
  202. <Column id="prd_pce_unit" type="STRING" size="256"/>
  203. <Column id="min_distb_qy" type="STRING" size="256"/>
  204. <Column id="pce_qy" type="STRING" size="256"/>
  205. <Column id="prtm_se_nm" type="STRING" size="256"/>
  206. <Column id="hngnm" type="STRING" size="256"/>
  207. <Column id="drugcd" type="STRING" size="256"/>
  208. <Column id="opp_storge_nm" type="STRING" size="256"/>
  209. <Column id="storge_nm" type="STRING" size="256"/>
  210. <Column id="labelno" type="STRING" size="256"/>
  211. <Column id="sendfg" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_movinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="status" type="STRING" size="256"/>
  217. <Column id="indd" type="STRING" size="256"/>
  218. <Column id="gtin" type="STRING" size="256"/>
  219. <Column id="prd_valid_de" type="STRING" size="256"/>
  220. <Column id="mnf_no" type="STRING" size="256"/>
  221. <Column id="mnf_seq" type="STRING" size="256"/>
  222. <Column id="prd_sgtin" type="STRING" size="256"/>
  223. <Column id="opp_storge_no" type="STRING" size="256"/>
  224. <Column id="storge_no" type="STRING" size="256"/>
  225. <Column id="prd_min_distb_qy" type="STRING" size="256"/>
  226. <Column id="prd_min_distb_unit" type="STRING" size="256"/>
  227. <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
  228. <Column id="prd_pce_unit" type="STRING" size="256"/>
  229. <Column id="min_distb_qy" type="STRING" size="256"/>
  230. <Column id="pce_qy" type="STRING" size="256"/>
  231. <Column id="prtm_se_nm" type="STRING" size="256"/>
  232. <Column id="hngnm" type="STRING" size="256"/>
  233. <Column id="drugcd" type="STRING" size="256"/>
  234. <Column id="labelno" type="STRING" size="256"/>
  235. </ColumnInfo>
  236. <Rows>
  237. <Row/>
  238. </Rows>
  239. </Dataset>
  240. <Dataset id="ds_send_prd_sgtin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="prd_sgtin" type="STRING" size="256"/>
  243. <Column id="basedd" type="STRING" size="256"/>
  244. <Column id="rfidfg" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row/>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_prdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  251. <Column id="instcd" type="STRING" size="256"/>
  252. <Column id="drugcd" type="STRING" size="256"/>
  253. <Column id="fromdd" type="STRING" size="256"/>
  254. <Column id="todd" type="STRING" size="256"/>
  255. <Column id="ordnm" type="STRING" size="256"/>
  256. <Column id="hngnm" type="STRING" size="256"/>
  257. <Column id="gtin" type="STRING" size="256"/>
  258. <Column id="gtins" type="STRING" size="256"/>
  259. <Column id="gtine" type="STRING" size="256"/>
  260. <Column id="lots" type="STRING" size="256"/>
  261. <Column id="lote" type="STRING" size="256"/>
  262. <Column id="exps" type="STRING" size="256"/>
  263. <Column id="expe" type="STRING" size="256"/>
  264. <Column id="sns" type="STRING" size="256"/>
  265. <Column id="sne" type="STRING" size="256"/>
  266. <Column id="prtm_se_nm" type="STRING" size="256"/>
  267. <Column id="prd_min_distb_qy" type="STRING" size="256"/>
  268. <Column id="prd_min_distb_unit" type="STRING" size="256"/>
  269. <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
  270. <Column id="prd_pce_unit" type="STRING" size="256"/>
  271. <ColumnInfo>
  272. <Column id="drugcd" type="STRING" size="256"/>
  273. <Column id="fromdd" type="STRING" size="256"/>
  274. <Column id="todd" type="STRING" size="256"/>
  275. <Column id="ordnm" type="STRING" size="256"/>
  276. <Column id="hngnm" type="STRING" size="256"/>
  277. <Column id="gtin" type="STRING" size="256"/>
  278. <Column id="prtm_se_nm" type="STRING" size="256"/>
  279. <Column id="prd_min_distb_qy" type="STRING" size="256"/>
  280. <Column id="prd_min_distb_unit" type="STRING" size="256"/>
  281. <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
  282. <Column id="prd_pce_unit" type="STRING" size="256"/>
  283. <Column id="barsnum_d" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. </Dataset>
  286. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  287. <ColumnInfo>
  288. <Column id="receiveref" type="STRING" size="256"/>
  289. <Column id="receive_drugcd" type="STRING" size="256"/>
  290. <Column id="receive_hngnm" type="STRING" size="256"/>
  291. <Column id="receive_gtin" type="STRING" size="256"/>
  292. <Column id="receive_prtm_se_nm" type="STRING" size="256"/>
  293. <Column id="receive_prd_min_distb_qy" type="STRING" size="256"/>
  294. <Column id="receive_prd_min_distb_unit" type="STRING" size="256"/>
  295. <Column id="receive_prd_tot_pce_qy" type="STRING" size="256"/>
  296. <Column id="receive_prd_pce_unit" type="STRING" size="256"/>
  297. <Column id="basedd" type="STRING" size="256"/>
  298. </ColumnInfo>
  299. <Rows>
  300. <Row/>
  301. </Rows>
  302. </Dataset>
  303. <Dataset id="ds_search_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  304. <ColumnInfo>
  305. <Column id="storge_no" type="STRING" size="256"/>
  306. <Column id="storge_nm" type="STRING" size="256"/>
  307. <Column id="storge_nonm" type="STRING" size="256"/>
  308. </ColumnInfo>
  309. </Dataset>
  310. <Dataset id="ds_search_opp_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  311. <ColumnInfo>
  312. <Column id="storge_no" type="STRING" size="256"/>
  313. <Column id="storge_nm" type="STRING" size="256"/>
  314. <Column id="storge_nonm" type="STRING" size="256"/>
  315. </ColumnInfo>
  316. </Dataset>
  317. <Dataset id="ds_sTemp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  318. </Objects>
  319. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  320. * System Name : 경대 의료정보시스템
  321. * Job Name : ast_pharmacydrugsumxp-> SMADT12240
  322. * Creator : pjb
  323. * Make Date : 2018-03-27
  324. * Description :
  325. *---------------------------------------------------------------------------------------
  326. * Modify Date Modifier Modify Description
  327. *---------------------------------------------------------------------------------------
  328. * 2018-03-27 pjb XP개발
  329. *
  330. *---------------------------------------------------------------------------------------
  331. ****************************************************************************************/
  332. //=======================================================================================
  333. // Lib Include
  334. //---------------------------------------------------------------------------------------
  335. include "com_commonxp::comm_main.xjs";
  336. //include "mis_miscommonxp::MIS.xjs";
  337. //include "mis_humtrafactmngtxp::RPB001.xjs";
  338. //=======================================================================================
  339. // Global Form Variable
  340. //---------------------------------------------------------------------------------------
  341. var arErrorCode = new HashArray();
  342. //=======================================================================================
  343. // Function
  344. //---------------------------------------------------------------------------------------
  345. //=======================================================================================
  346. // Event
  347. //---------------------------------------------------------------------------------------
  348. /****************************************************************************************
  349. * Components : Form
  350. * Components ID : SMADT12240
  351. * Event : oninit
  352. * Argument : 01.obj : Object Event has occurred
  353. * : 02.e : Event Object
  354. * Description : 화면 처음 초기화시
  355. ****************************************************************************************/
  356. function SMADT12240_oninit(obj:Form, e:InitEventInfo)
  357. {
  358. frmf_initForm(obj); //폼 초기화
  359. }
  360. /****************************************************************************************
  361. * Components : Form
  362. * Components ID : SMADT12240
  363. * Event : onload
  364. * Argument : 01.obj : Object Event has occurred
  365. * : 02.e : Event Object
  366. * Description : 화면 로딩 완료시
  367. ****************************************************************************************/
  368. function SMADT12240_onload(obj:Form, e:LoadEventInfo)
  369. {
  370. //grdf_setRowTypeIcon(grd_movlist, 0);
  371. grdf_setGridSort(grd_movlist);
  372. var curdd = utlf_getCurrentDate();
  373. ds_send_search.setColumn(0, "indd_from", curdd );
  374. ds_send_search.setColumn(0, "indd_to", curdd );
  375. ds_movinfo.setColumn(0, "indd", curdd);
  376. ds_movinfo.setColumn(0, "status", "i"); // 작업구분(i, u, d)
  377. //저장소 목록 조회
  378. var oParam = {};
  379. oParam.id = "TRADT12112";
  380. oParam.service = "pharmacydrugsumapp.NarcManagent";
  381. oParam.method = "reqGetStorgeList";
  382. oParam.inds = "req=";
  383. oParam.outds = "ds_storgelist=storgelist";
  384. oParam.async = false;
  385. // oParam.callback = "cf_TRADT12112";
  386. tranf_submit(oParam);
  387. ds_search_storgelist.copyData(ds_storgelist);
  388. ds_search_opp_storgelist.copyData(ds_storgelist);
  389. frmf_addComboItem("grp_search.cmb_search_storge_no","전체","","above");
  390. ds_send_search.setColumn(0, "storge_no", ""); //초기화
  391. frmf_addComboItem("grp_search.cmb_search_opp_storge_no","전체","","above");
  392. ds_send_search.setColumn(0, "opp_storge_no", ""); //초기화
  393. ds_send_search.setColumn(0, "prtm_se_nm", ""); //default setting : 관리구분
  394. // 오프너에서 전달받은 정보
  395. try{
  396. dsf_copyDs(ds_sTemp, arg_ds_sTemp, "replace");
  397. }catch(e){}
  398. var param_indd = utlf_transNullToEmpty(ds_sTemp.getColumn(0, "indd"));
  399. if( param_indd != "" ) {
  400. ds_send_search.setColumn(0, "indd_from", param_indd );
  401. ds_send_search.setColumn(0, "indd_to", param_indd );
  402. ds_send_search.setColumn(0, "storge_no", ds_sTemp.getColumn(0, "storge_no") );
  403. ds_send_search.setColumn(0, "drugcd", ds_sTemp.getColumn(0, "drugcd") );
  404. ds_send_search.setColumn(0, "hngnm", ds_sTemp.getColumn(0, "hngnm") );
  405. ds_send_search.setColumn(0, "gtin", ds_sTemp.getColumn(0, "gtin") );
  406. //조회버튼 Click Event Call
  407. var e = new ClickEventInfo;
  408. grp_search.btn_search.onclick.fireEvent(grp_search.btn_search, e);
  409. ds_movlist.selectRow(ds_movlist.rowcount-1);
  410. }
  411. }
  412. /****************************************************************************************
  413. * Components : Button
  414. * Components ID : grp_search_btn_search
  415. * Event : onclick
  416. * Argument : 01.obj : Object Event has occurred
  417. * : 02.e : Event Object
  418. * Description : 조회버튼 클릭시
  419. ****************************************************************************************/
  420. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  421. {
  422. if (utlf_transNullToEmpty(ds_send_search.getColumn(0, "indd_from")).length != 8){
  423. sysf_messageBox("이동일자를 확인하십시요. ", "E999", "");
  424. grp_search.ipt_indd_from.setFocus();
  425. return;
  426. }
  427. if (utlf_transNullToEmpty(ds_send_search.getColumn(0, "indd_to")).length != 8){
  428. sysf_messageBox("이동일자를 확인하십시요. ", "E999", "");
  429. grp_search.ipt_indd_to.setFocus();
  430. return;
  431. }
  432. //저장소이동(반환) 목록 조회
  433. var oParam = {};
  434. oParam.id = "TRADT12241";
  435. oParam.service = "pharmacydrugsumapp.NarcManagent";
  436. oParam.method = "reqGetMovRtnList";
  437. oParam.inds = "req=ds_send_search";
  438. oParam.outds = "ds_movlist=movlist";
  439. oParam.async = false;
  440. oParam.callback = "cf_TRADT12241";
  441. tranf_submit(oParam);
  442. if (arErrorCode.pop("TRADT12241") > -1){
  443. //ds_movinfo.clearData();
  444. //ds_movinfo.addRow();
  445. }
  446. }
  447. function cf_TRADT12241(sSvcId, nErrorCode, sErrorMsg) {
  448. arErrorCode.push(sSvcId, nErrorCode);
  449. }
  450. /****************************************************************************************
  451. * Components : Dataset
  452. * Components ID : ds_send_search
  453. * Event : oncolumnchanged
  454. * Argument : 01.obj : Object Event has occurred
  455. * : 02.e : Event Object
  456. * Description : 컬럼의 값 변경시
  457. ****************************************************************************************/
  458. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  459. {
  460. if(e.columnid == "drugcd") {
  461. if(e.newvalue != e.oldvalue) {
  462. obj.setColumn(0, "hngnm", "");
  463. obj.setColumn(0, "gtin", "");
  464. }
  465. }
  466. }
  467. function grp_search_btn_backward_onclick(obj:Button, e:ClickEventInfo)
  468. {
  469. var curdd = utlf_getCurrentDate();
  470. ds_send_search.setColumn(0, "indd_from", utlf_addDate(ds_send_search.getColumn(0, "indd_from"), -1) );
  471. ds_send_search.setColumn(0, "indd_to", utlf_addDate(ds_send_search.getColumn(0, "indd_to"), -1) );
  472. }
  473. function grp_search_btn_today_onclick(obj:Button, e:ClickEventInfo)
  474. {
  475. var curdd = utlf_getCurrentDate();
  476. ds_send_search.setColumn(0, "indd_from", curdd );
  477. ds_send_search.setColumn(0, "indd_to", curdd );
  478. }
  479. function grp_search_btn_forward_onclick(obj:Button, e:ClickEventInfo)
  480. {
  481. var curdd = utlf_getCurrentDate();
  482. ds_send_search.setColumn(0, "indd_from", utlf_addDate(ds_send_search.getColumn(0, "indd_from"), 1) );
  483. ds_send_search.setColumn(0, "indd_to", utlf_addDate(ds_send_search.getColumn(0, "indd_to"), 1) );
  484. }
  485. /****************************************************************************************
  486. * Components : Button
  487. * Components ID : btn_send
  488. * Event : onclick
  489. * Argument : 01.obj : Object Event has occurred
  490. * : 02.e : Event Object
  491. * Description : 전송 버튼 Click시
  492. ****************************************************************************************/
  493. function grp_button_btn_send_onclick(obj:Button, e:ClickEventInfo)
  494. {
  495. if( sysf_messageBox("이동일자 : " + grp_search.ipt_indd_from.text + " ~ " + grp_search.ipt_indd_to.text + "\n\n" +
  496. "저장소 : " + grp_search.cmb_search_opp_storge_no.text + " -> 이동 저장소 : " + grp_search.cmb_search_storge_no.text + "\n\n" +
  497. "중점/일반 관리구분 : " + grp_search.cmb_prtm_se_nm.text + "\n\n\n\n" +
  498. "해당 기간 미전송 자료를 전송하겠습니까? " + "\n\n" +
  499. "※ 전송 이후 수정 및 취소가 불가하니 유의하시기 바랍니다. ", "Q99" ) != 6 ) {
  500. return;
  501. }
  502. ds_send_search.setColumn(0, "rpt_se_cd", "SMM_RTN"); //보고구분코드 : SMM_RTN 저장소이동보고(반환)
  503. //저장소이동(반환) 내역 전송
  504. var oParam = {};
  505. oParam.id = "TXADT12243";
  506. oParam.service = "pharmacydrugsumapp.NarcManagent";
  507. oParam.method = "reqExeNarcDataSend";
  508. oParam.inds = "req=ds_send_search";
  509. oParam.outds = ""; //"ds_hidden_item=item";
  510. oParam.async = false;
  511. oParam.callback = "cf_TXADT12243";
  512. tranf_submit(oParam);
  513. if (arErrorCode.pop("TXADT12243") > -1){
  514. sysf_messageBox("처리되었습니다. ", "I999", "");
  515. //조회버튼 Click Event Call
  516. var e = new ClickEventInfo;
  517. grp_search.btn_search.onclick.fireEvent(grp_search.btn_search, e);
  518. }
  519. }
  520. function cf_TXADT12243(sSvcId, nErrorCode, sErrorMsg) {
  521. arErrorCode.push(sSvcId, nErrorCode);
  522. }
  523. /****************************************************************************************
  524. * Components : Button
  525. * Components ID : btn_gtin
  526. * Event : onclick
  527. * Argument : 01.obj : Object Event has occurred
  528. * : 02.e : Event Object
  529. * Description : 제품코드 버튼 Click시
  530. ****************************************************************************************/
  531. function grp_search_btn_gtin_onclick(obj:Button, e:ClickEventInfo)
  532. {
  533. ds_temp_receivedata.setColumn(0,"receiveref","ds_send_search");
  534. ds_temp_receivedata.setColumn(0,"receive_drugcd","drugcd");
  535. ds_temp_receivedata.setColumn(0,"receive_hngnm","hngnm");
  536. ds_temp_receivedata.setColumn(0,"receive_gtin","gtin");
  537. ds_temp_receivedata.setColumn(0,"receive_prtm_se_nm",""); //prtm_se_nm
  538. ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_qy","prd_min_distb_qy");
  539. ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_unit","prd_min_distb_unit");
  540. ds_temp_receivedata.setColumn(0,"receive_prd_tot_pce_qy","prd_tot_pce_qy");
  541. ds_temp_receivedata.setColumn(0,"receive_prd_pce_unit","prd_pce_unit");
  542. ds_temp_receivedata.setColumn(0,"basedd",""); //utlf_getCurrentDate() //ds_send_search.getColumn(0, "indd_to")
  543. var objArg = new Object();
  544. objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
  545. frmf_modal("SMADT12120","SMADT12120", objArg, "", "", 100, 150, "", "", "", "", "", "M");
  546. }
  547. function grp_search_ipt_drugcd_onkeydown(obj:Edit, e:KeyEventInfo)
  548. {
  549. if(e.keycode == 13) {
  550. obj.updateToDataset();
  551. }
  552. }
  553. ]]></Script>
  554. </Form>
  555. </FDL>