SMADT12190_제품재고조회.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12190" classname="SMADT12190_제품재고조회" inheritanceid="" position="absolute 0 0 1200 780" titletext="제품재고조회" onload="SMADT12190_onload" oninit="SMADT12190_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="제품재고조회" class="tit_1" position="absolute 0 0 114 25"/>
  8. <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 50 1195 85">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="저장소 :" class="search_name" position="absolute 21 10 83 27" anchor="default"/>
  12. <Button id="btn_search" taborder="58" text="조회" class="btn1" position="absolute 896 7 952 29" anchor="default" onclick="grp_search_btn_search_onclick"/>
  13. <Combo id="cmb_storge_no" taborder="61" innerdataset="@ds_storgelist" codecolumn="storge_no" datacolumn="storge_nonm" class="combo_default" position="absolute 85 8 227 27"/>
  14. <Static id="caption03" text="약품코드 :" class="search_name" position="absolute 413 10 488 27"/>
  15. <Edit id="ipt_gtin" taborder="62" autoselect="true" class="input_search" position="absolute 795 13 888 32" visible="false"/>
  16. <Button id="btn_gtin" taborder="63" class="icon_search" position="absolute 586 10 602 26" onclick="grp_search_btn_gtin_onclick"/>
  17. <Edit id="opt_hngnm" taborder="64" readonly="true" autoselect="true" class="output" position="absolute 607 9 880 28"/>
  18. <Edit id="ipt_drugcd" taborder="68" autoselect="true" class="input_search" position="absolute 489 9 582 28" inputmode="upper" imemode="alpha" onkeydown="grp_search_ipt_drugcd_onkeydown"/>
  19. <Static id="caption05" text="관리구분 :" class="search_name" position="absolute 246 10 321 27"/>
  20. <Combo id="cmb_prtm_se_nm" taborder="69" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 324 8 395 27">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn" size="256"/>
  24. <Column id="datacolumn" size="256"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn"/>
  29. <Col id="datacolumn">전체</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">중점</Col>
  33. <Col id="datacolumn">중점</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">일반</Col>
  37. <Col id="datacolumn">일반</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Combo>
  42. </Layout>
  43. </Layouts>
  44. </Div>
  45. <Static id="caption01" text="현재고" class="tit_2" position="absolute -1 99 170 120"/>
  46. <Shape id="line7" class="line_10" position="absolute 0 116 1195 122" anchor="left top right"/>
  47. <Div id="grp_button" anchor="left top right" taborder="40" position="absolute 0 13 1195 45">
  48. <Layouts>
  49. <Layout>
  50. <Shape id="line2" class="line_6" position="absolute 0 25 1195 31" anchor="left top right"/>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Button id="btn_download" taborder="41" text="엑셀 Download" class="btn2" position="absolute 1087 96 1195 115" anchor="top right" onclick="btn_download_onclick" visible="false"/>
  55. <Grid id="grd_stoclist" taborder="42" binddataset="ds_stoclist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 121 1195 739" anchor="all" boutddataset="ds_movlist" oncelldblclick="grd_stoclist_oncelldblclick">
  56. <Formats>
  57. <Format id="default">
  58. <Columns>
  59. <Column size="25" band="left"/>
  60. <Column size="70"/>
  61. <Column size="83"/>
  62. <Column size="96"/>
  63. <Column size="87"/>
  64. <Column size="207"/>
  65. <Column size="73"/>
  66. <Column size="86"/>
  67. <Column size="155"/>
  68. <Column size="40"/>
  69. <Column size="44"/>
  70. <Column size="40"/>
  71. <Column size="44"/>
  72. <Column size="33"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="24" band="head"/>
  79. <Row size="24"/>
  80. </Rows>
  81. <Band id="head">
  82. <Cell/>
  83. <Cell col="1" text="저장소"/>
  84. <Cell col="2" text="약품코드"/>
  85. <Cell col="3" text="Label No"/>
  86. <Cell col="4" text="제품코드"/>
  87. <Cell col="5" text="제품명"/>
  88. <Cell col="6" text="유효기간"/>
  89. <Cell col="7" text="제조번호"/>
  90. <Cell col="8" text="일련번호"/>
  91. <Cell col="9" colspan="2" text="유통단위 수" taborder="undefined"/>
  92. <Cell col="11" colspan="2" text="낱개단위 수" taborder="undefined"/>
  93. <Cell col="13" text="구분"/>
  94. <Cell col="14" text="제품최소유통단위수량"/>
  95. <Cell col="15" text="제품총낱개단위수량"/>
  96. <Cell col="16" text="바코드"/>
  97. </Band>
  98. <Band id="body">
  99. <Cell celltype="head" text="expr:currow+1"/>
  100. <Cell col="1" style="align:left;" text="bind:storge_nm"/>
  101. <Cell col="2" style="align:left;" text="bind:drugcd"/>
  102. <Cell col="3" displaytype="normal" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
  103. <Cell col="4" text="bind:gtin"/>
  104. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  105. <Cell col="6" displaytype="date" text="bind:prd_valid_de"/>
  106. <Cell col="7" text="bind:mnf_no"/>
  107. <Cell col="8" text="bind:mnf_seq"/>
  108. <Cell col="9" displaytype="normal" edittype="none" editfilter="number" style="align:center;" text="bind:min_distb_qy" editautoselect="true"/>
  109. <Cell col="10" text="bind:prd_min_distb_unit"/>
  110. <Cell col="11" displaytype="normal" edittype="none" editfilter="number" style="align:center;" text="bind:pce_qy" editautoselect="true"/>
  111. <Cell col="12" text="bind:prd_pce_unit"/>
  112. <Cell col="13" text="bind:prtm_se_nm"/>
  113. <Cell col="14" text="bind:prd_min_distb_qy"/>
  114. <Cell col="15" text="bind:prd_tot_pce_qy"/>
  115. <Cell col="16" text="bind:prd_sgtin"/>
  116. </Band>
  117. </Format>
  118. </Formats>
  119. </Grid>
  120. <Button id="btn_close" taborder="44" text="닫기" class="btn3" position="absolute 1132 744 1188 766" onclick="btn_close_onclick"/>
  121. </Layout>
  122. </Layouts>
  123. <Bind>
  124. <BindItem id="item12" compid="SMADT12190" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  125. <BindItem id="item0" compid="grp_search.cmb_storge_no" propid="value" datasetid="ds_send_search" columnid="storge_no"/>
  126. <BindItem id="item5" compid="grp_search.ipt_gtin" propid="value" datasetid="ds_send_search" columnid="gtin"/>
  127. <BindItem id="item22" compid="grp_search.opt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  128. <BindItem id="item2" compid="grp_search.ipt_drugcd" propid="value" datasetid="ds_send_search" columnid="drugcd"/>
  129. <BindItem id="item26" compid="grp_search.cmb_prtm_se_nm" propid="value" datasetid="ds_send_search" columnid="prtm_se_nm"/>
  130. </Bind>
  131. <Objects>
  132. <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">
  133. <ColumnInfo>
  134. <Column id="indd_from" type="STRING" size="256"/>
  135. <Column id="indd_to" type="STRING" size="256"/>
  136. <Column id="storge_no" type="STRING" size="256" sumtext="연도"/>
  137. <Column id="prtm_se_nm" type="STRING" size="256"/>
  138. <Column id="gtin" type="STRING" size="256"/>
  139. <Column id="hngnm" type="STRING" size="256"/>
  140. <Column id="outdd" type="STRING" size="256"/>
  141. <Column id="drugcd" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row/>
  145. </Rows>
  146. </Dataset>
  147. <Dataset id="ds_storgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  148. <ColumnInfo>
  149. <Column id="storge_no" type="STRING" size="256"/>
  150. <Column id="storge_nm" type="STRING" size="256"/>
  151. <Column id="storge_nonm" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. </Dataset>
  154. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="receiveref" type="STRING" size="256"/>
  157. <Column id="receive_drugcd" type="STRING" size="256"/>
  158. <Column id="receive_hngnm" type="STRING" size="256"/>
  159. <Column id="receive_gtin" type="STRING" size="256"/>
  160. <Column id="receive_prtm_se_nm" type="STRING" size="256"/>
  161. <Column id="receive_prd_min_distb_qy" type="STRING" size="256"/>
  162. <Column id="receive_prd_min_distb_unit" type="STRING" size="256"/>
  163. <Column id="receive_prd_tot_pce_qy" type="STRING" size="256"/>
  164. <Column id="receive_prd_pce_unit" type="STRING" size="256"/>
  165. <Column id="basedd" type="STRING" size="256"/>
  166. <Column id="receive_prd_sgtin" type="STRING" size="256"/>
  167. <Column id="receive_mnf_no" type="STRING" size="256"/>
  168. <Column id="receive_mnf_seq" type="STRING" size="256"/>
  169. <Column id="receive_prd_valid_de" type="STRING" size="256"/>
  170. <Column id="receive_labelno" type="STRING" size="256"/>
  171. <Column id="receive_storge_no" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row/>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_stoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_movlist_oncolumnchanged">
  178. <ColumnInfo>
  179. <Column id="gtin" type="STRING" size="256"/>
  180. <Column id="prd_valid_de" type="STRING" size="256"/>
  181. <Column id="mnf_no" type="STRING" size="256"/>
  182. <Column id="mnf_seq" type="STRING" size="256"/>
  183. <Column id="prd_sgtin" type="STRING" size="256"/>
  184. <Column id="storge_no" type="STRING" size="256"/>
  185. <Column id="prd_min_distb_qy" type="STRING" size="256"/>
  186. <Column id="prd_min_distb_unit" type="STRING" size="256"/>
  187. <Column id="prd_tot_pce_qy" type="STRING" size="256"/>
  188. <Column id="prd_pce_unit" type="STRING" size="256"/>
  189. <Column id="min_distb_qy" type="STRING" size="256"/>
  190. <Column id="pce_qy" type="STRING" size="256"/>
  191. <Column id="prtm_se_nm" type="STRING" size="256"/>
  192. <Column id="hngnm" type="STRING" size="256"/>
  193. <Column id="drugcd" type="STRING" size="256"/>
  194. <Column id="storge_nm" type="STRING" size="256"/>
  195. <Column id="stoc_min_distb_qy" type="STRING" size="256"/>
  196. <Column id="stoc_pce_qy" type="STRING" size="256"/>
  197. <Column id="labelno" type="STRING" size="256"/>
  198. </ColumnInfo>
  199. </Dataset>
  200. <Dataset id="ds_sTemp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  201. <Dataset id="ds_temp_receivedata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="receiveref" type="STRING" size="256"/>
  204. <Column id="receive_drugcd" type="STRING" size="256"/>
  205. <Column id="receive_hngnm" type="STRING" size="256"/>
  206. <Column id="receive_gtin" type="STRING" size="256"/>
  207. <Column id="receive_prtm_se_nm" type="STRING" size="256"/>
  208. <Column id="receive_prd_min_distb_qy" type="STRING" size="256"/>
  209. <Column id="receive_prd_min_distb_unit" type="STRING" size="256"/>
  210. <Column id="receive_prd_tot_pce_qy" type="STRING" size="256"/>
  211. <Column id="receive_prd_pce_unit" type="STRING" size="256"/>
  212. <Column id="basedd" type="STRING" size="256"/>
  213. <Column id="receive_prd_sgtin" type="STRING" size="256"/>
  214. <Column id="receive_mnf_no" type="STRING" size="256"/>
  215. <Column id="receive_mnf_seq" type="STRING" size="256"/>
  216. <Column id="receive_prd_valid_de" type="STRING" size="256"/>
  217. <Column id="receive_labelno" type="STRING" size="256"/>
  218. <Column id="receive_storge_no" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. <Rows>
  221. <Row/>
  222. </Rows>
  223. </Dataset>
  224. </Objects>
  225. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  226. * System Name : 경대 의료정보시스템
  227. * Job Name : ast_pharmacydrugsumxp-> SMADT12190
  228. * Creator : pjb
  229. * Make Date : 2018-04-11
  230. * Description :
  231. *---------------------------------------------------------------------------------------
  232. * Modify Date Modifier Modify Description
  233. *---------------------------------------------------------------------------------------
  234. * 2018-04-11 pjb XP개발
  235. *
  236. *---------------------------------------------------------------------------------------
  237. ****************************************************************************************/
  238. //=======================================================================================
  239. // Lib Include
  240. //---------------------------------------------------------------------------------------
  241. include "com_commonxp::comm_main.xjs";
  242. //include "mis_miscommonxp::MIS.xjs";
  243. //include "mis_humtrafactmngtxp::RPB001.xjs";
  244. //=======================================================================================
  245. // Global Form Variable
  246. //---------------------------------------------------------------------------------------
  247. var arErrorCode = new HashArray();
  248. //=======================================================================================
  249. // Function
  250. //---------------------------------------------------------------------------------------
  251. //=======================================================================================
  252. // Event
  253. //---------------------------------------------------------------------------------------
  254. /****************************************************************************************
  255. * Components : Form
  256. * Components ID : SMADT12190
  257. * Event : oninit
  258. * Argument : 01.obj : Object Event has occurred
  259. * : 02.e : Event Object
  260. * Description : 화면 처음 초기화시
  261. ****************************************************************************************/
  262. function SMADT12190_oninit(obj:Form, e:InitEventInfo)
  263. {
  264. frmf_initForm(obj); //폼 초기화
  265. }
  266. /****************************************************************************************
  267. * Components : Form
  268. * Components ID : SMADT12190
  269. * Event : onload
  270. * Argument : 01.obj : Object Event has occurred
  271. * : 02.e : Event Object
  272. * Description : 화면 로딩 완료시
  273. ****************************************************************************************/
  274. function SMADT12190_onload(obj:Form, e:LoadEventInfo)
  275. {
  276. //grdf_setRowTypeIcon(grd_stoclist, 0);
  277. grdf_setGridSort(grd_stoclist);
  278. // 오프너에서 전달받은 정보
  279. try{
  280. dsf_copyDs(ds_temp_receivedata, arg_ds_temp_receivedata, "replace");
  281. }catch(e){}
  282. //ds_movinfo.setColumn(0, "status", "i"); // 작업구분(i, u, d)
  283. //저장소 목록 조회
  284. var oParam = {};
  285. oParam.id = "TRADT12112";
  286. oParam.service = "pharmacydrugsumapp.NarcManagent";
  287. oParam.method = "reqGetStorgeList";
  288. oParam.inds = "req=";
  289. oParam.outds = "ds_storgelist=storgelist";
  290. oParam.async = false;
  291. // oParam.callback = "cf_TRADT12112";
  292. tranf_submit(oParam);
  293. //frmf_addComboItem("grp_search.cmb_storge_no","전체","","above");
  294. ds_send_search.setColumn(0, "storge_no", "S0001"); //default setting : S0001 기본저장소
  295. ds_send_search.setColumn(0, "prtm_se_nm", ""); //default setting : 관리구분
  296. grp_search.cmb_storge_no.setFocus();
  297. }
  298. /****************************************************************************************
  299. * Components : Button
  300. * Components ID : grp_search_btn_search
  301. * Event : onclick
  302. * Argument : 01.obj : Object Event has occurred
  303. * : 02.e : Event Object
  304. * Description : 조회버튼 클릭시
  305. ****************************************************************************************/
  306. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  307. {
  308. //제품재고 조회
  309. var oParam = {};
  310. oParam.id = "TRADT12191";
  311. oParam.service = "pharmacydrugsumapp.NarcManagent";
  312. oParam.method = "reqGetPrdStocList2";
  313. oParam.inds = "req=ds_send_search";
  314. oParam.outds = "ds_stoclist=stoclist";
  315. oParam.async = false;
  316. oParam.callback = "cf_TRADT12191";
  317. tranf_submit(oParam);
  318. if (arErrorCode.pop("TRADT12191") > -1){
  319. }
  320. }
  321. function cf_TRADT12191(sSvcId, nErrorCode, sErrorMsg) {
  322. arErrorCode.push(sSvcId, nErrorCode);
  323. }
  324. /****************************************************************************************
  325. * Components : Dataset
  326. * Components ID : ds_send_search
  327. * Event : oncolumnchanged
  328. * Argument : 01.obj : Object Event has occurred
  329. * : 02.e : Event Object
  330. * Description : 컬럼의 값 변경시
  331. ****************************************************************************************/
  332. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  333. {
  334. if(e.columnid == "indd_from" || e.columnid == "indd_to" || e.columnid == "storge_no" || e.columnid == "prtm_se_nm" ) {
  335. //Grid Clear
  336. ds_stoclist.clearData();
  337. }
  338. else if(e.columnid == "drugcd") {
  339. if(e.newvalue != e.oldvalue) {
  340. obj.setColumn(0, "hngnm", "");
  341. obj.setColumn(0, "gtin", "");
  342. }
  343. }
  344. }
  345. /****************************************************************************************
  346. * Components : Button
  347. * Components ID : btn_gtin
  348. * Event : onclick
  349. * Argument : 01.obj : Object Event has occurred
  350. * : 02.e : Event Object
  351. * Description : 제품코드 버튼 Click시
  352. ****************************************************************************************/
  353. function grp_search_btn_gtin_onclick(obj:Button, e:ClickEventInfo)
  354. {
  355. ds_temp_receivedata2.setColumn(0,"receiveref","ds_send_search");
  356. ds_temp_receivedata2.setColumn(0,"receive_drugcd","drugcd");
  357. ds_temp_receivedata2.setColumn(0,"receive_hngnm","hngnm");
  358. ds_temp_receivedata2.setColumn(0,"receive_gtin","gtin");
  359. ds_temp_receivedata2.setColumn(0,"receive_prtm_se_nm",""); //prtm_se_nm
  360. ds_temp_receivedata2.setColumn(0,"receive_prd_min_distb_qy","prd_min_distb_qy");
  361. ds_temp_receivedata2.setColumn(0,"receive_prd_min_distb_unit","prd_min_distb_unit");
  362. ds_temp_receivedata2.setColumn(0,"receive_prd_tot_pce_qy","prd_tot_pce_qy");
  363. ds_temp_receivedata2.setColumn(0,"receive_prd_pce_unit","prd_pce_unit");
  364. ds_temp_receivedata2.setColumn(0,"basedd",""); //utlf_getCurrentDate() //ds_send_search.getColumn(0, "indd_to")
  365. var objArg = new Object();
  366. objArg.arg_ds_temp_receivedata = ds_temp_receivedata2;
  367. frmf_modal("SMADT12120","SMADT12120", objArg, "", "", 100, 150, "", "", "", "", "", "M");
  368. }
  369. function grp_search_ipt_drugcd_onkeydown(obj:Edit, e:KeyEventInfo)
  370. {
  371. if(e.keycode == 13) {
  372. obj.updateToDataset();
  373. }
  374. }
  375. function btn_download_onclick(obj:Button, e:ClickEventInfo)
  376. {
  377. //조회된 자료가 없으면 먼저 조회하라고 message
  378. if(ds_stoclist.rowcount < 1) {
  379. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
  380. return;
  381. }
  382. grdf_exportExcel(grd_stoclist, "excel", "savetype", false, "", "user", false);
  383. }
  384. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  385. {
  386. this.close();
  387. }
  388. /****************************************************************************************
  389. * Components : Grid
  390. * Components ID : grd_stoclist
  391. * Event : oncelldblclick
  392. * Argument : 01.obj : Object Event has occurred
  393. * : 02.e : Event Object
  394. * Description : 처방 더블클릭하여 호출한 화면에 전달
  395. ****************************************************************************************/
  396. function grd_stoclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  397. {
  398. var receiveref = ds_temp_receivedata.getColumn(0,"receiveref");
  399. // opener 에서 TF 에선 xpath를 다 보내줬지만 XP에선 불가. DS 따로 cd나 nm을 받을 컬럼을 따로 구분하여 호출해야한다.
  400. var drugcd = ds_temp_receivedata.getColumn(0,"receive_drugcd");
  401. var hngnm = ds_temp_receivedata.getColumn(0,"receive_hngnm");
  402. var gtin = ds_temp_receivedata.getColumn(0,"receive_gtin");
  403. var prtm_se_nm = ds_temp_receivedata.getColumn(0,"receive_prtm_se_nm");
  404. var prd_min_distb_qy = ds_temp_receivedata.getColumn(0,"receive_prd_min_distb_qy");
  405. var prd_min_distb_unit = ds_temp_receivedata.getColumn(0,"receive_prd_min_distb_unit");
  406. var prd_tot_pce_qy = ds_temp_receivedata.getColumn(0,"receive_prd_tot_pce_qy");
  407. var prd_pce_unit = ds_temp_receivedata.getColumn(0,"receive_prd_pce_unit");
  408. var prd_sgtin = ds_temp_receivedata.getColumn(0,"receive_prd_sgtin");
  409. var prd_valid_de = ds_temp_receivedata.getColumn(0,"receive_prd_valid_de");
  410. var mnf_no = ds_temp_receivedata.getColumn(0,"receive_mnf_no");
  411. var mnf_seq = ds_temp_receivedata.getColumn(0,"receive_mnf_seq");
  412. var labelno = ds_temp_receivedata.getColumn(0,"receive_labelno");
  413. var storge_no = ds_temp_receivedata.getColumn(0,"receive_storge_no");
  414. /* Null일때 명칭 잡아주는 부분임. 여기서는 불필요
  415. if(utlf_isNull(receiveref)) receiveref = "ds_temp_receivedata";
  416. if(utlf_isNull(drugcd)) drugcd = "drugcd";
  417. if(utlf_isNull(hngnm)) hngnm = "hngnm";
  418. if(utlf_isNull(gtin)) gtin = "gtin";
  419. */
  420. if(this.getOwnerFrame().form.frmf_checkOpener()) {
  421. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],drugcd,"string",ds_stoclist.getColumn(e.row,"drugcd"));
  422. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],hngnm,"string",ds_stoclist.getColumn(e.row,"hngnm"));
  423. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],gtin,"string",ds_stoclist.getColumn(e.row,"gtin"));
  424. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prtm_se_nm,"string",ds_stoclist.getColumn(e.row,"prtm_se_nm"));
  425. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_min_distb_qy,"string",ds_stoclist.getColumn(e.row,"prd_min_distb_qy"));
  426. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_min_distb_unit,"string",ds_stoclist.getColumn(e.row,"prd_min_distb_unit"));
  427. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_tot_pce_qy,"string",ds_stoclist.getColumn(e.row,"prd_tot_pce_qy"));
  428. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_pce_unit,"string",ds_stoclist.getColumn(e.row,"prd_pce_unit"));
  429. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_sgtin,"string",ds_stoclist.getColumn(e.row,"prd_sgtin"));
  430. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],prd_valid_de,"string",ds_stoclist.getColumn(e.row,"prd_valid_de"));
  431. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],mnf_no,"string",ds_stoclist.getColumn(e.row,"mnf_no"));
  432. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],mnf_seq,"string",ds_stoclist.getColumn(e.row,"mnf_seq"));
  433. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],labelno,"string",ds_stoclist.getColumn(e.row,"labelno"));
  434. dsf_makeValue(this.getOwnerFrame().form.opener.objects[receiveref],storge_no,"string",ds_stoclist.getColumn(e.row,"storge_no"));
  435. this.getOwnerFrame().form.close();
  436. } else {
  437. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 없습니다.","E");
  438. }
  439. }
  440. ]]></Script>
  441. </Form>
  442. </FDL>