SMPIC90200_물품조회(행위재료).xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIC90200" position="absolute 0 0 1172 250" titletext="물품조회(행위재료)" oninit="SMPIC90200_oninit" onload="SMPIC90200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="그룹수가 내 싱글수가 조회" position="absolute 0 8 192 24" id="caption1" class="tit_2"/>
  8. <Shape position="absolute 0 35 1170 41" linetype="horizontal" id="line1" class="line_10"/>
  9. <Grid position="absolute 0 40 1170 250" id="grd_gresult" binddataset="ds_hidden_rscdgood_rscdgoodlist" cellsizebandtype="allband" cellsizingtype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="20" band="left"/>
  14. <Column size="36"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="93"/>
  18. <Column size="29"/>
  19. <Column size="188"/>
  20. <Column size="146"/>
  21. <Column size="96"/>
  22. <Column size="45"/>
  23. <Column size="106"/>
  24. <Column size="100"/>
  25. <Column size="68"/>
  26. <Column size="0"/>
  27. <Column size="131"/>
  28. <Column size="0"/>
  29. <Column size="111"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="24" band="head"/>
  33. <Row size="24"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1" text="선택"/>
  38. <Cell col="2" text="기관코드"/>
  39. <Cell col="3" text="물품구분"/>
  40. <Cell col="4" colspan="2" text="물품코드" taborder="undefined"/>
  41. <Cell col="6" text="물품명"/>
  42. <Cell col="7" text="규격"/>
  43. <Cell col="8" text="제품단가"/>
  44. <Cell col="9" text="수량"/>
  45. <Cell col="10" text="모델"/>
  46. <Cell col="11" text="EDICD"/>
  47. <Cell col="12" text="수불단위"/>
  48. <Cell col="13" text="주거래처명"/>
  49. <Cell col="14" text="주거래처명"/>
  50. <Cell col="15" text="보조거래처명"/>
  51. <Cell col="16" text="보조거래처명"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head" expr="expr:currow + 1"/>
  55. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select" expr="expr:select == '1' || select == 'Y' ? '1' : '0'"/>
  56. <Cell col="2" displaytype="none" edittype="none" text="bind:instcd"/>
  57. <Cell col="3" displaytype="none" edittype="none" text="bind:goodflag"/>
  58. <Cell col="4" edittype="none" text="bind:goodcd"/>
  59. <Cell col="5" edittype="none" text="bind:allsizespecid"/>
  60. <Cell col="6" edittype="none" style="align:left;" text="bind:goodnm"/>
  61. <Cell col="7" edittype="none" style="align:left;" text="bind:goodspec"/>
  62. <Cell col="8" displaytype="number" edittype="none" text="bind:goodunitcost" mask="#,###"/>
  63. <Cell col="9" displaytype="number" text="bind:drugqty" mask="#,###.##"/>
  64. <Cell col="10" edittype="none" style="align:left;" text="bind:goodmodel"/>
  65. <Cell col="11" edittype="none" text="bind:edicd"/>
  66. <Cell col="12" edittype="none" text="bind:deliveunit"/>
  67. <Cell col="13" displaytype="none" edittype="none" text="bind:maincustlastsuplplce"/>
  68. <Cell col="14" edittype="none" style="align:left;" text="bind:maincustlastsuplplcenm"/>
  69. <Cell col="15" displaytype="none" edittype="none" style="align:left;" text="bind:suppcustcd"/>
  70. <Cell col="16" edittype="none" style="align:left;" text="bind:suppcustnm"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. <Combo position="absolute 1043 6 1090 25" id="cmb_goodflag" visible="false" innerdataset="@ds_init_init_goodflag" datacolumn="cdid" codecolumn="cdnm"/>
  76. <Edit position="absolute 1095 6 1140 25" id="ipt_instcd" visible="false" autoselect="true"/>
  77. <Grid position="absolute 1055 185 1135 237" id="grd_synomcode" visible="false" binddataset="ds_template_resdata_actdata">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="67"/>
  82. </Columns>
  83. <Rows>
  84. <Row size="24" band="head"/>
  85. <Row size="24"/>
  86. </Rows>
  87. <Band id="head">
  88. <Cell text="actcd"/>
  89. </Band>
  90. <Band id="body">
  91. <Cell text="bind:actcd"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Edit position="absolute 1145 6 1165 25" id="ipt_allsizespecid" visible="false" autoselect="true"/>
  97. <Shape id="roundrect1" type="roundrectangle" position="absolute 190 1 1170 31"/>
  98. <Button position="absolute 1115 6 1157 25" id="btn_goodinsert" class="btn2" enable="false" text="추가" onclick="btn_goodinsert_onclick"/>
  99. <Button position="absolute 1045 5 1101 27" id="btn_goodsearch" class="btn1" text="조회" onclick="btn_goodsearch_onclick"/>
  100. <Static text="그룹수가코드 :" position="absolute 202 7 310 24" id="caption2" class="search_name"/>
  101. <Edit position="absolute 595 7 1020 26" id="ipt_goodnm" autoselect="true" onkeyup="ipt_goodnm_onkeyup" enable="false"/>
  102. <Shape position="absolute 1030 8 1036 26" linetype="vertical" id="line2" class="line_4"/>
  103. <Static text="그룹수가명(한글) :" position="absolute 465 8 598 25" id="caption5" class="search_name"/>
  104. <Button id="btn_subsearch01" taborder="1" class="icon_search" position="absolute 427 8 443 24" onclick="btn_subsearch01_onclick" visible="false"/>
  105. <Edit position="absolute 310 7 425 26" id="ipt_goodcd" autoselect="true" onkeyup="ipt_goodcd_onkeyup"/>
  106. <Edit position="absolute 310 7 445 26" id="input1" autoselect="true" enable="false"/>
  107. <Edit id="input2" taborder="2" position="absolute 1060 160 1160 179" visible="false"/>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_init_init_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="cdid" type="STRING"/>
  114. <Column id="cdnm" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_template_resdata_actdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="actcd" type="STRING"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_subsend_rscdgoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  125. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
  126. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  127. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  128. <Column id="refcond" type="STRING" size="256" sumtext="조회조건 "/>
  129. <Column id="purcdmnddd" type="STRING" size="256" sumtext="시행일자 "/>
  130. <Column id="actcd" type="STRING" size="256" sumtext="행위처방코드 "/>
  131. <Column id="goodnm2" type="STRING" size="256"/>
  132. <Column id="basedd" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row/>
  136. </Rows>
  137. </Dataset>
  138. <Dataset id="ds_hidden_rscdgood_rscdgoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_hidden_rscdgood_rscdgoodlist_oncolumnchanged">
  139. <ColumnInfo>
  140. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  141. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
  142. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  143. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  144. <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
  145. <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위(R0039) "/>
  146. <Column id="edicd" type="STRING" size="256" sumtext="EDI코드 "/>
  147. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처 "/>
  148. <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
  149. <Column id="goodunitcost" type="STRING" size="256" sumtext="제품단가 "/>
  150. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명 "/>
  151. <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
  152. <Column id="allsizespecid" type="STRING" size="256" sumtext="allsizeid "/>
  153. <Column id="drugqty" type="STRING" size="256" sumtext="수량 "/>
  154. </ColumnInfo>
  155. </Dataset>
  156. </Objects>
  157. <Bind>
  158. <BindItem id="item0" compid="ipt_goodcd" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="actcd"/>
  159. <BindItem id="item1" compid="ipt_goodnm" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="goodnm2"/>
  160. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="actcd"/>
  161. <BindItem id="item3" compid="input2" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="basedd"/>
  162. </Bind>
  163. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  164. * System Name : 경대 의료정보시스템
  165. * Job Name : pam_actmatrxp -> SMPIC90200
  166. * Creator : yjh
  167. * Make Date : 2017-11-09
  168. * Description :
  169. *---------------------------------------------------------------------------------------
  170. * Modify Date Modifier Modify Description
  171. *---------------------------------------------------------------------------------------
  172. * 2017-11-09 yjh TF->XP
  173. *
  174. *---------------------------------------------------------------------------------------
  175. ****************************************************************************************/
  176. //=======================================================================================
  177. // Lib Include
  178. //---------------------------------------------------------------------------------------
  179. include "com_commonxp::comm_main.xjs";
  180. include "pam_actmatrxp::SMPIC90000.xjs";
  181. //=======================================================================================
  182. // Global Form Variable
  183. //---------------------------------------------------------------------------------------
  184. //=======================================================================================
  185. // Function
  186. //---------------------------------------------------------------------------------------
  187. function fItemAllChoice( vFlag ) {
  188. if( fGridItemCheck()!=true ) return;
  189. for( cnt = grd_gresult.fixedRows; cnt < grd_gresult.rows ; cnt++ ) {
  190. grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) = vFlag;
  191. if (grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) == "Y"){
  192. grd_gresult.rowStatus(cnt) = "2";
  193. }else{
  194. grd_gresult.rowStatus(cnt) = "0";
  195. }
  196. }
  197. }
  198. function fActcdSearch(actcd, hngnm) {
  199. // 싱글수가를 개별로 조회할 수 없도록 처리 by 조중래 20170530
  200. // var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
  201. // var goodnm = model.getValue(ipt_goodnm.attribute("ref"));
  202. //
  203. // if(goodcd == "" && goodnm == "") {
  204. if (!utlf_isNull(actcd)) {
  205. ds_subsend_rscdgoodlist.setColumn(0, "actcd", actcd);
  206. ds_subsend_rscdgoodlist.setColumn(0, "goodnm2", hngnm);
  207. fSmGridInit(grd_gresult);
  208. var oParam = {};
  209. oParam.id = "TRPIC90001";
  210. oParam.service = "actmatrapp.ActMatrMngt";
  211. oParam.method = "reqGetGoodListByCond";
  212. oParam.inds = "req=ds_subsend_rscdgoodlist";
  213. oParam.outds = "ds_hidden_rscdgood_rscdgoodlist=rscdgoodlist";
  214. oParam.async = false;
  215. //oParam.callback = "cf_TRPIC90001";
  216. tranf_submit(oParam);
  217. if( utlf_isNull(ds_hidden_rscdgood_rscdgoodlist.getColumnInfo("select")) ){
  218. ds_hidden_rscdgood_rscdgoodlist.addColumn("select", "string");
  219. }
  220. ds_hidden_rscdgood_rscdgoodlist.updatecontrol = false;
  221. dsf_setDefaultVal(ds_hidden_rscdgood_rscdgoodlist, "select:N");
  222. ds_hidden_rscdgood_rscdgoodlist.updatecontrol = true;
  223. }
  224. //model.setValue("/root/subsend/rscdgoodlist/actcd","");
  225. // }
  226. }
  227. //=======================================================================================
  228. // Event
  229. //---------------------------------------------------------------------------------------
  230. /****************************************************************************************
  231. * Components : Form
  232. * Components ID : SMPIC90200
  233. * Event : oninit
  234. * Argument : 01.obj : Object Event has occurred
  235. * : 02.e : Event Object
  236. * Description : 화면 처음 초기화시
  237. ****************************************************************************************/
  238. function SMPIC90200_oninit(obj:Form, e:InitEventInfo)
  239. {
  240. frmf_initForm(obj); //폼 초기화
  241. }
  242. /****************************************************************************************
  243. * Components : Form
  244. * Components ID : SMPIC90200
  245. * Event : onload
  246. * Argument : 01.obj : Object Event has occurred
  247. * : 02.e : Event Object
  248. * Description : 화면 로딩 완료시
  249. ****************************************************************************************/
  250. function SMPIC90200_onload(obj:Form, e:LoadEventInfo)
  251. {
  252. ds_subsend_rscdgoodlist.setColumn(0, "instcd" ,sysf_getUserInfo("dutplceinstcd"));
  253. }
  254. /****************************************************************************************
  255. * Components : Dataset
  256. * Components ID : ds_hidden_rscdgood_rscdgoodlist
  257. * Event : oncolumnchanged
  258. * Argument : 01.obj : Object Event has occurred
  259. * : 02.e : Event Object
  260. * Description : 데이터셋 값 변경시
  261. ****************************************************************************************/
  262. function ds_hidden_rscdgood_rscdgoodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  263. {
  264. switch( e.columnid ){
  265. case "select" :
  266. if( e.newvalue == "1" || e.newvalue == "Y" ){
  267. obj.setColumn(e.row, e.columnid, "Y");
  268. //btn_goodinsert.click();
  269. }else{
  270. obj.setColumn(e.row, e.columnid, "N");
  271. }
  272. break;
  273. default :
  274. break;
  275. }
  276. }
  277. /****************************************************************************************
  278. * Components : Button
  279. * Components ID : btn_goodinsert
  280. * Event : onclick
  281. * Argument : 01.obj : Object Event has occurred
  282. * : 02.e : Event Object
  283. * Description : 추가버튼 클릭시
  284. ****************************************************************************************/
  285. function btn_goodinsert_onclick(obj:Button, e:ClickEventInfo)
  286. {
  287. var acode = ds_template_resdata_actdata.getColumn(ds_template_resdata_actdata.rowcount-1, "actcd");
  288. if(utlf_isNull(acode)){
  289. fsetting();
  290. }
  291. }
  292. /****************************************************************************************
  293. * Components : Button
  294. * Components ID : btn_goodsearch
  295. * Event : onclick
  296. * Argument : 01.obj : Object Event has occurred
  297. * : 02.e : Event Object
  298. * Description : 조회버튼 클릭시
  299. ****************************************************************************************/
  300. function btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
  301. {
  302. var spath = ds_hidden_rscdgood_rscdgoodlist;
  303. var rpath = ds_subsend_rscdgoodlist;
  304. fSmGridInit(grd_gresult);
  305. //model.makeValue(spath+"goodcd", goodcd);
  306. //model.makeValue(spath+"goodnm", goodnm);
  307. var oParam = {};
  308. oParam.id = "TRPIC90001";
  309. oParam.service = "actmatrapp.ActMatrMngt";
  310. oParam.method = "reqGetGoodListByCond";
  311. oParam.inds = "req=ds_subsend_rscdgoodlist";
  312. oParam.outds = "ds_hidden_rscdgood_rscdgoodlist=rscdgoodlist";
  313. oParam.async = false;
  314. //oParam.callback = "cf_TRPIC90001";
  315. tranf_submit(oParam);
  316. if( utlf_isNull(ds_hidden_rscdgood_rscdgoodlist.getColumnInfo("select")) ){
  317. ds_hidden_rscdgood_rscdgoodlist.addColumn("select", "string");
  318. }
  319. ds_hidden_rscdgood_rscdgoodlist.updatecontrol = false;
  320. dsf_setDefaultVal(ds_hidden_rscdgood_rscdgoodlist, "select:N");
  321. ds_hidden_rscdgood_rscdgoodlist.updatecontrol = true;
  322. }
  323. /****************************************************************************************
  324. * Components : Button
  325. * Components ID : btn_subsearch01
  326. * Event : onclick
  327. * Argument : 01.obj : Object Event has occurred
  328. * : 02.e : Event Object
  329. * Description : 돋보기버튼 클릭시
  330. ****************************************************************************************/
  331. function btn_subsearch01_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. fSmGridInit(grd_gresult);
  334. fSmOpenPopUpListByWndName("ds_subsend_rscdgoodlist", ipt_goodcd,"","goodcd,goodnm","SPRSD00210");
  335. }
  336. /****************************************************************************************
  337. * Components : Edit
  338. * Components ID : ipt_goodcd
  339. * Event : onkeyup
  340. * Argument : 01.obj : Object Event has occurred
  341. * : 02.e : Event Object
  342. * Description : 에디터 키 입력시
  343. ****************************************************************************************/
  344. function ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
  345. {
  346. if( e.keycode == 13 ){
  347. obj.updateToDataset();
  348. btn_goodsearch.click();
  349. }
  350. }
  351. /****************************************************************************************
  352. * Components : Edit
  353. * Components ID : ipt_goodnm
  354. * Event : onkeyup
  355. * Argument : 01.obj : Object Event has occurred
  356. * : 02.e : Event Object
  357. * Description : 에디터 키 입력시
  358. ****************************************************************************************/
  359. function ipt_goodnm_onkeyup(obj:Edit, e:KeyEventInfo)
  360. {
  361. if( e.keycode == 13 ){
  362. obj.updateToDataset();
  363. btn_goodsearch.click();
  364. }
  365. }
  366. ]]></Script>
  367. </Form>
  368. </FDL>