SMADT12250_일련번호별재고조회.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12250" classname="SMADT12250_일련번호별재고조회" inheritanceid="" position="absolute 0 0 1200 780" titletext="일련번호별 재고조회" onload="SMADT12250_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="일련번호별 재고조회" class="tit_1" position="absolute 0 0 165 25"/>
  8. <Static id="caption01" text="현재고" class="tit_2" position="absolute -1 99 170 120"/>
  9. <Shape id="line7" class="line_10" position="absolute 0 116 1195 122" anchor="left top right"/>
  10. <Div id="grp_button" anchor="left top right" taborder="40" position="absolute 0 13 1195 45">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line2" class="line_6" position="absolute 0 25 1195 31" anchor="left top right"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Button id="btn_download" taborder="41" text="엑셀 Download" class="btn2" position="absolute 1087 96 1195 115" anchor="top right" onclick="btn_download_onclick"/>
  18. <Div id="grp_search" anchor="left top right" taborder="42" class="div_SA" position="absolute 0 50 1195 85">
  19. <Layouts>
  20. <Layout>
  21. <Static id="caption2" text="일련번호 :" class="search_name" position="absolute 21 10 96 27"/>
  22. <Button id="btn_search" taborder="70" text="조회" onclick="grp_search_btn_search_onclick" class="btn1" position="absolute 1128 7 1184 29"/>
  23. <Edit id="Edit00" taborder="71" position="absolute 98 8 306 28" onkeydown="grp_search_Edit00_onkeydown"/>
  24. <Static id="caption00" text="약품코드:" class="search_name" position="absolute 328 10 395 27"/>
  25. <Combo id="Combo00" taborder="72" position="absolute 401 8 560 28" innerdataset="@ds_druglist" onitemchanged="grp_search_Combo00_onitemchanged" class="combo_search" codecolumn="drugcd" datacolumn="drugnm" index="-1"/>
  26. </Layout>
  27. </Layouts>
  28. </Div>
  29. <Grid id="grd_stoclist" taborder="43" binddataset="ds_stoclist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" onheadclick="switch1_case1_grd_narclist_onheadclick" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" position="absolute 0 121 1195 774" onkeydown="grd_stoclist_onkeydown">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="27" band="left"/>
  34. <Column size="58" band="left"/>
  35. <Column size="60" band="left"/>
  36. <Column size="54" band="left"/>
  37. <Column size="77" band="left"/>
  38. <Column size="122" band="left"/>
  39. <Column size="62" band="left"/>
  40. <Column size="108" band="left"/>
  41. <Column size="90" band="left"/>
  42. <Column size="63" band="left"/>
  43. <Column size="139"/>
  44. <Column size="101"/>
  45. <Column size="30"/>
  46. <Column size="19"/>
  47. <Column size="49"/>
  48. <Column size="73"/>
  49. <Column size="69"/>
  50. <Column size="81"/>
  51. <Column size="88"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="30" band="head"/>
  55. <Row size="21"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1" text=" 등록번호"/>
  60. <Cell col="2" text="환자명"/>
  61. <Cell col="3" text="투약번호"/>
  62. <Cell col="4" text="처방&#10;코드" wordwrap="char"/>
  63. <Cell col="5" text="처방명"/>
  64. <Cell col="6" text="불출저장소"/>
  65. <Cell col="7" text="LabelNo"/>
  66. <Cell col="8" text="제품번호" wordwrap="char"/>
  67. <Cell col="9" text="유효기간" wordwrap="char"/>
  68. <Cell col="10" text="제조번호" wordwrap="char"/>
  69. <Cell col="11" text="일련번호" wordwrap="char"/>
  70. <Cell col="12" colspan="2" text="seq" taborder="undefined">
  71. <Cell text="seq" wordwrap="char" taborder="undefined"/>
  72. <Cell col="1"/>
  73. </Cell>
  74. <Cell col="14" text="잔량"/>
  75. <Cell col="15" text="불출일자"/>
  76. <Cell col="16" text="반환일자"/>
  77. <Cell col="17" text="잔량처리일자"/>
  78. <Cell col="18" text="취급일자"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head" text="expr:currow + 1"/>
  82. <Cell col="1" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pid"/>
  83. <Cell col="2" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pat_nm"/>
  84. <Cell col="3" displaytype="text" text="bind:drugno"/>
  85. <Cell col="4" style="align:center top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
  86. <Cell col="5" style="align:left;" text="bind:prduct_nm" tooltiptext="bind:prduct_nm"/>
  87. <Cell col="6" text="bind:storge_no"/>
  88. <Cell col="7" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
  89. <Cell col="8" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:gtin" wordwrap="char" autosizerow="limitmin"/>
  90. <Cell col="9" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  91. <Cell col="10" displaytype="text" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  92. <Cell col="11" displaytype="text" style="align:left top;padding:4 2 1 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_seq" wordwrap="char" autosizerow="limitmin"/>
  93. <Cell col="12" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:seq" taborder="undefined">
  94. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:seq"/>
  95. </Cell>
  96. <Cell col="13" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:histno"/>
  97. <Cell col="14" text="bind:spreqy"/>
  98. <Cell col="15" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:outdd"/>
  99. <Cell col="16" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:rtndd"/>
  100. <Cell col="17" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:spredd"/>
  101. <Cell col="18" text="bind:hdr_de"/>
  102. </Band>
  103. </Format>
  104. <Format id="format_copy"/>
  105. </Formats>
  106. </Grid>
  107. </Layout>
  108. </Layouts>
  109. <Bind>
  110. <BindItem id="item12" compid="SMADT12170" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  111. <BindItem id="item0" compid="grp_search.Edit00" propid="value" datasetid="ds_send_search" columnid="mnf_seq"/>
  112. <BindItem id="item1" compid="grp_search.Combo00" propid="value" datasetid="ds_send_search" columnid="drugcd"/>
  113. </Bind>
  114. <Objects>
  115. <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">
  116. <ColumnInfo>
  117. <Column id="mnf_seq" type="STRING" size="256"/>
  118. <Column id="drugcd" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row/>
  122. </Rows>
  123. </Dataset>
  124. <Dataset id="ds_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="storge_no" type="STRING" size="256"/>
  127. <Column id="storge_nm" type="STRING" size="256"/>
  128. <Column id="storge_nonm" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. </Dataset>
  131. <Dataset id="ds_stoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <column id="instcd" type="STRING" size="256"/>
  134. <column id="drugcd" type="STRING" size="256"/>
  135. <column id="infg" type="STRING" size="256"/>
  136. <column id="histno" type="STRING" size="256"/>
  137. <column id="gtin" type="STRING" size="256"/>
  138. <column id="prd_valid_de" type="STRING" size="256"/>
  139. <column id="mnf_no" type="STRING" size="256"/>
  140. <column id="mnf_seq" type="STRING" size="256"/>
  141. <column id="seq" type="STRING" size="256"/>
  142. <column id="prd_sgtin" type="STRING" size="256"/>
  143. <column id="storge_no" type="STRING" size="256"/>
  144. <column id="prtm_se_nm" type="STRING" size="256"/>
  145. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  146. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  147. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  148. <column id="prd_pce_unit" type="STRING" size="256"/>
  149. <column id="in_pce_qy" type="STRING" size="256"/>
  150. <column id="indd" type="STRING" size="256"/>
  151. <column id="opp_bssh_cd" type="STRING" size="256"/>
  152. <column id="opp_bssh_nm" type="STRING" size="256"/>
  153. <column id="opp_storge_no" type="STRING" size="256"/>
  154. <column id="in_dtl_cd" type="STRING" size="256"/>
  155. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  156. <column id="out_fg" type="STRING" size="256"/>
  157. <column id="out_pce_qy" type="STRING" size="256"/>
  158. <column id="fnshfg" type="STRING" size="256"/>
  159. <column id="prcpno" type="STRING" size="256"/>
  160. <column id="drugdd" type="STRING" size="256"/>
  161. <column id="drugno" type="STRING" size="256"/>
  162. <column id="ioflag" type="STRING" size="256"/>
  163. <column id="drugseqno" type="STRING" size="256"/>
  164. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  165. <column id="pat_id_no" type="STRING" size="256"/>
  166. <column id="pat_in" type="STRING" size="256"/>
  167. <column id="lcns_asort_cd" type="STRING" size="256"/>
  168. <column id="lcns_no" type="STRING" size="256"/>
  169. <column id="prsc_doc_nm" type="STRING" size="256"/>
  170. <column id="prsc_ord_no" type="STRING" size="256"/>
  171. <column id="diss_code" type="STRING" size="256"/>
  172. <column id="once_qy" type="STRING" size="256"/>
  173. <column id="ade_cnt" type="STRING" size="256"/>
  174. <column id="tot_dcnt" type="STRING" size="256"/>
  175. <column id="sum_qy" type="STRING" size="256"/>
  176. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  177. <column id="dsuse_se_cd" type="STRING" size="256"/>
  178. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  179. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  180. <column id="dsuse_loc" type="STRING" size="256"/>
  181. <column id="dsuse_de" type="STRING" size="256"/>
  182. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  183. <column id="dsuse_doc_de" type="STRING" size="256"/>
  184. <column id="outdd" type="STRING" size="256"/>
  185. <column id="out_bssh_cd" type="STRING" size="256"/>
  186. <column id="out_bssh_nm" type="STRING" size="256"/>
  187. <column id="out_storge_no" type="STRING" size="256"/>
  188. <column id="out_dtl_cd" type="STRING" size="256"/>
  189. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  190. <column id="insendfg" type="STRING" size="256"/>
  191. <column id="outsendfg" type="STRING" size="256"/>
  192. <column id="spreqy" type="STRING" size="256"/>
  193. <column id="spredd" type="STRING" size="256"/>
  194. <column id="spredt" type="STRING" size="256"/>
  195. <column id="rtnfg" type="STRING" size="256"/>
  196. <column id="rtndd" type="STRING" size="256"/>
  197. <column id="rtndt" type="STRING" size="256"/>
  198. <Column id="pid" type="STRING" size="256"/>
  199. <Column id="labelno" type="STRING" size="256"/>
  200. <Column id="hdr_de" type="STRING" size="256"/>
  201. <Column id="cnt" type="STRING" size="256"/>
  202. <Column id="prduct_nm" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row/>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="receiveref" type="STRING" size="256"/>
  211. <Column id="receive_drugcd" type="STRING" size="256"/>
  212. <Column id="receive_hngnm" type="STRING" size="256"/>
  213. <Column id="receive_gtin" type="STRING" size="256"/>
  214. <Column id="receive_prtm_se_nm" type="STRING" size="256"/>
  215. <Column id="receive_prd_min_distb_qy" type="STRING" size="256"/>
  216. <Column id="receive_prd_min_distb_unit" type="STRING" size="256"/>
  217. <Column id="receive_prd_tot_pce_qy" type="STRING" size="256"/>
  218. <Column id="receive_prd_pce_unit" type="STRING" size="256"/>
  219. <Column id="basedd" type="STRING" size="256"/>
  220. </ColumnInfo>
  221. <Rows>
  222. <Row/>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  226. <ColumnInfo>
  227. <Column id="drugcd" type="STRING" size="256"/>
  228. <Column id="drugnm" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. </Dataset>
  231. </Objects>
  232. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  233. * System Name : 경대 의료정보시스템
  234. * Job Name : ast_pharmacydrugsumxp-> SMADT12170
  235. * Creator : pjb
  236. * Make Date : 2018-04-11
  237. * Description :
  238. *---------------------------------------------------------------------------------------
  239. * Modify Date Modifier Modify Description
  240. *---------------------------------------------------------------------------------------
  241. * 2018-04-11 pjb XP개발
  242. *
  243. *---------------------------------------------------------------------------------------
  244. ****************************************************************************************/
  245. //=======================================================================================
  246. // Lib Include
  247. //---------------------------------------------------------------------------------------
  248. include "com_commonxp::comm_main.xjs";
  249. //include "mis_miscommonxp::MIS.xjs";
  250. //include "mis_humtrafactmngtxp::RPB001.xjs";
  251. //=======================================================================================
  252. // Global Form Variable
  253. //---------------------------------------------------------------------------------------
  254. var arErrorCode = new HashArray();
  255. //=======================================================================================
  256. // Function
  257. //---------------------------------------------------------------------------------------
  258. //=======================================================================================
  259. // Event
  260. //---------------------------------------------------------------------------------------
  261. /****************************************************************************************
  262. * Components : Form
  263. * Components ID : SMADT12170
  264. * Event : oninit
  265. * Argument : 01.obj : Object Event has occurred
  266. * : 02.e : Event Object
  267. * Description : 화면 처음 초기화시
  268. ****************************************************************************************/
  269. function SMADT12170_oninit(obj:Form, e:InitEventInfo)
  270. {
  271. frmf_initForm(obj); //폼 초기화
  272. }
  273. /****************************************************************************************
  274. * Components : Form
  275. * Components ID : SMADT12170
  276. * Event : onload
  277. * Argument : 01.obj : Object Event has occurred
  278. * : 02.e : Event Object
  279. * Description : 화면 로딩 완료시
  280. ****************************************************************************************/
  281. function SMADT12250_onload(obj:Form, e:LoadEventInfo)
  282. {
  283. //grdf_setRowTypeIcon(grd_stoclist, 0);
  284. grdf_setGridSort(grd_stoclist);
  285. //ds_movinfo.setColumn(0, "status", "i"); // 작업구분(i, u, d)
  286. //저장소 목록 조회
  287. /*
  288. var oParam = {};
  289. oParam.id = "TRADT12112";
  290. oParam.service = "pharmacydrugsumapp.NarcManagent";
  291. oParam.method = "reqGetStorgeList";
  292. oParam.inds = "req=";
  293. oParam.outds = "ds_storgelist=storgelist";
  294. oParam.async = false;
  295. // oParam.callback = "cf_TRADT12112";
  296. tranf_submit(oParam);
  297. */
  298. //frmf_addComboItem("grp_search.cmb_storge_no","전체","","above");
  299. //ds_send_search.setColumn(0, "storge_no", "S0001"); //default setting : S0001 기본저장소
  300. //ds_send_search.setColumn(0, "prtm_se_nm", ""); //default setting : 관리구분
  301. //grp_search.cmb_storge_no.setFocus();
  302. }
  303. /****************************************************************************************
  304. * Components : Button
  305. * Components ID : grp_search_btn_search
  306. * Event : onclick
  307. * Argument : 01.obj : Object Event has occurred
  308. * : 02.e : Event Object
  309. * Description : 조회버튼 클릭시
  310. ****************************************************************************************/
  311. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. //현재고 조회
  314. fSearch2();
  315. }
  316. function cf_TRADT12251(sSvcId, nErrorCode, sErrorMsg) {
  317. arErrorCode.push(sSvcId, nErrorCode);
  318. }
  319. /****************************************************************************************
  320. * Components : Dataset
  321. * Components ID : ds_send_search
  322. * Event : oncolumnchanged
  323. * Argument : 01.obj : Object Event has occurred
  324. * : 02.e : Event Object
  325. * Description : 컬럼의 값 변경시
  326. ****************************************************************************************/
  327. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  328. {
  329. if(e.columnid == "indd_from" || e.columnid == "indd_to" || e.columnid == "storge_no" || e.columnid == "prtm_se_nm" ) {
  330. //Grid Clear
  331. ds_stoclist.clearData();
  332. }
  333. else if(e.columnid == "drugcd") {
  334. if(e.newvalue != e.oldvalue) {
  335. obj.setColumn(0, "hngnm", "");
  336. obj.setColumn(0, "gtin", "");
  337. }
  338. }
  339. }
  340. /****************************************************************************************
  341. * Components : Button
  342. * Components ID : btn_gtin
  343. * Event : onclick
  344. * Argument : 01.obj : Object Event has occurred
  345. * : 02.e : Event Object
  346. * Description : 제품코드 버튼 Click시
  347. ****************************************************************************************/
  348. function grp_search_btn_gtin_onclick(obj:Button, e:ClickEventInfo)
  349. {
  350. ds_temp_receivedata.setColumn(0,"receiveref","ds_send_search");
  351. ds_temp_receivedata.setColumn(0,"receive_drugcd","drugcd");
  352. ds_temp_receivedata.setColumn(0,"receive_hngnm","hngnm");
  353. ds_temp_receivedata.setColumn(0,"receive_gtin","gtin");
  354. ds_temp_receivedata.setColumn(0,"receive_prtm_se_nm",""); //prtm_se_nm
  355. ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_qy","prd_min_distb_qy");
  356. ds_temp_receivedata.setColumn(0,"receive_prd_min_distb_unit","prd_min_distb_unit");
  357. ds_temp_receivedata.setColumn(0,"receive_prd_tot_pce_qy","prd_tot_pce_qy");
  358. ds_temp_receivedata.setColumn(0,"receive_prd_pce_unit","prd_pce_unit");
  359. ds_temp_receivedata.setColumn(0,"basedd",""); //utlf_getCurrentDate() //ds_send_search.getColumn(0, "indd_to")
  360. var objArg = new Object();
  361. objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
  362. frmf_modal("SMADT12120","SMADT12120", objArg, "", "", 100, 150, "", "", "", "", "", "M");
  363. }
  364. function fSearch(){
  365. var oParam = {};
  366. oParam.id = "TRADT12251";
  367. oParam.service = "pharmacydrugsumapp.NarcManagent";
  368. oParam.method = "reqGetMnfseqCodeInfo";
  369. oParam.inds = "req=ds_send_search";
  370. oParam.outds = "ds_druglist=stoclist";
  371. oParam.async = false;
  372. oParam.callback = "cf_TRADT12251";
  373. tranf_submit(oParam);
  374. ds_send_search.setColumn(0, "drugcd", "");
  375. if(ds_druglist.rowcount == 1) {
  376. ds_send_search.setColumn(0, "drugcd", ds_druglist.getColumn(0, "drugcd"));
  377. fSearch2();
  378. }
  379. }
  380. function fSearch2() {
  381. var drugcd = ds_send_search.getColumn(0, "drugcd");
  382. if(drugcd == "" || drugcd == null) {
  383. sysf_messageBox("약품코드를 선택하세요 ", "E999", "");
  384. return;
  385. }
  386. var oParam = {};
  387. oParam.id = "TRADT12251";
  388. oParam.service = "pharmacydrugsumapp.NarcManagent";
  389. oParam.method = "reqGetMnfseqStocList";
  390. oParam.inds = "req=ds_send_search";
  391. oParam.outds = "ds_stoclist=stoclist";
  392. oParam.async = false;
  393. oParam.callback = "cf_TRADT12251";
  394. tranf_submit(oParam);
  395. if(ds_stoclist.rowcount == 0) {
  396. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n일련번호를 확인하여 주세요. ", "E999", "");
  397. }
  398. if (arErrorCode.pop("TRADT12251") > -1){
  399. }
  400. }
  401. function grp_search_ipt_drugcd_onkeydown(obj:Edit, e:KeyEventInfo)
  402. {
  403. if(e.keycode == 13) {
  404. obj.updateToDataset();
  405. }
  406. }
  407. function btn_download_onclick(obj:Button, e:ClickEventInfo)
  408. {
  409. //조회된 자료가 없으면 먼저 조회하라고 message
  410. if(ds_stoclist.rowcount < 1) {
  411. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
  412. return;
  413. }
  414. grdf_exportExcel(grd_stoclist, "excel", "savetype", false, "", "user", false);
  415. }
  416. function grp_search_Edit00_onkeydown(obj:Edit, e:KeyEventInfo)
  417. {
  418. if(e.keycode == 13) {
  419. obj.updateToDataset();
  420. fSearch();
  421. }
  422. }
  423. function grp_search_Combo00_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  424. {
  425. fSearch2();
  426. }
  427. function grd_stoclist_onkeydown(obj:Grid, e:KeyEventInfo)
  428. {
  429. fGridCopyClipboard(obj, e);
  430. }
  431. function fGridCopyClipboard(obj:Grid, e:KeyEventInfo)
  432. {
  433. var bPushed = e.ctrlKey;
  434. var clipStr = "";
  435. if (e.keycode == 67 && bPushed == true ) // ctrl + c
  436. {
  437. clipStr = obj.getCellText(obj.currentrow, obj.currentcol);
  438. system.clearClipboard();
  439. system.setClipboard("CF_TEXT",clipStr);
  440. }
  441. }
  442. ]]></Script>
  443. </Form>
  444. </FDL>