SPMNG01101_멸균망관리.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG01101" position="absolute 0 0 390 480" titletext="멸균망관리" oninit="SPMNG01101_oninit" onload="SPMNG01101_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 380 23" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="멸균망관리" position="absolute 0 0 101 23" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 25 390 480" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Static text="멸균망 목록" position="absolute 0 4 121 20" id="caption12" class="tit_2" anchor="default"/>
  18. <Shape position="absolute 0 20 390 26" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  19. <Grid position="absolute 0 25 390 455" id="grd_gasnetlist" binddataset="ds_main_gasnetinfo_gasnetlist" anchor="default" autofittype="col">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="20" band="left"/>
  24. <Column size="0"/>
  25. <Column size="272"/>
  26. <Column size="65"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="물품코드"/>
  43. <Cell col="2" text="물품명"/>
  44. <Cell col="3" text="물품수량"/>
  45. <Cell col="4" text="기관코드"/>
  46. <Cell col="5" text="청구일자"/>
  47. <Cell col="6" text="청구번호"/>
  48. <Cell col="7" text="청구순번"/>
  49. <Cell col="8" text="청구부서"/>
  50. <Cell col="9" text="망순번"/>
  51. <Cell col="10" text="reqdeptnm"/>
  52. <Cell col="11" text="usernm"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head"/>
  56. <Cell col="1" text="bind:goodcd"/>
  57. <Cell col="2" displaytype="text" edittype="text" text="bind:goodnm"/>
  58. <Cell col="3" displaytype="text" edittype="text" text="bind:reqqty"/>
  59. <Cell col="4" text="bind:instcd"/>
  60. <Cell col="5" text="bind:reqdd"/>
  61. <Cell col="6" text="bind:reqno"/>
  62. <Cell col="7" text="bind:reqseqno"/>
  63. <Cell col="8" text="bind:reqdeptcd"/>
  64. <Cell col="9" text="bind:netseqno"/>
  65. <Cell col="10" text="bind:reqdeptnm"/>
  66. <Cell col="11" text="bind:usernm"/>
  67. </Band>
  68. </Format>
  69. </Formats>
  70. </Grid>
  71. <Button position="absolute 238 0 291 19" id="btn_add" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_add_onclick"/>
  72. <Button position="absolute 293 0 346 19" id="btn_del" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_del_onclick"/>
  73. <Button position="absolute 348 0 390 19" id="btn_sav" class="btn5" text="저장" anchor="default" onclick="grp_biz_btn_sav_onclick"/>
  74. <Button position="absolute 194 0 236 19" id="button2" class="btn2" text="출력" anchor="default" onclick="grp_biz_button2_onclick"/>
  75. <Button position="absolute 128 0 192 19" id="button3" class="btn2" text="과거이력" anchor="default" onclick="grp_biz_button3_onclick"/>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  85. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  86. <Column id="reqno" type="STRING" size="256" sumtext="청구번호"/>
  87. <Column id="reqseqno" type="STRING" size="256" sumtext="청구순번"/>
  88. <Column id="reqdeptcd" type="STRING" size="256" sumtext="청구부서"/>
  89. <Column id="certflag" type="STRING" size="256" sumtext="확인여부"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row/>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_main_gasnetinfo_gasnetlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  98. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  99. <Column id="reqno" type="STRING" size="256" sumtext="청구번호"/>
  100. <Column id="reqseqno" type="STRING" size="256" sumtext="청구순번"/>
  101. <Column id="reqdeptcd" type="STRING" size="256" sumtext="청구부서"/>
  102. <Column id="reqdeptnm" type="STRING" size="256" sumtext="청구부서"/>
  103. <Column id="netseqno" type="STRING" size="256" sumtext="망번호 "/>
  104. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  105. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  106. <Column id="reqqty" type="STRING" size="256" sumtext="청구수량"/>
  107. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
  108. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  109. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
  110. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  111. <Column id="certnm" type="STRING" size="256" sumtext="확인자명"/>
  112. <Column id="certqty" type="STRING" size="256" sumtext="확인수량"/>
  113. <Column id="usernm" type="STRING" size="256" sumtext="확인자명"/>
  114. <Column id="certdesc" type="STRING" size="256" sumtext="확인사유"/>
  115. <Column id="cnfmyn" type="STRING" size="256" sumtext="확인여부"/>
  116. </ColumnInfo>
  117. </Dataset>
  118. <Dataset id="ds_send_savedata_gasnetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="status" type="STRING" size="256"/>
  121. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  122. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  123. <Column id="reqno" type="STRING" size="256" sumtext="청구번호"/>
  124. <Column id="reqseqno" type="STRING" size="256" sumtext="청구순번"/>
  125. <Column id="reqdeptcd" type="STRING" size="256" sumtext="청구부서"/>
  126. <Column id="netseqno" type="STRING" size="256" sumtext="망번호 "/>
  127. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  128. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  129. <Column id="reqqty" type="STRING" size="256" sumtext="청구수량"/>
  130. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
  131. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  132. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
  133. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  134. <Column id="certqty" type="STRING" size="256" sumtext="청구수량"/>
  135. <Column id="certdesc" type="STRING" size="256" sumtext="청구수량"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  139. <Dataset id="ds_init_cdid_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_temp_gasnetinfo_gasnetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_gasnetinfo_gasnetlist_oncolumnchanged">
  141. <ColumnInfo>
  142. <Column id="chkyn" type="STRING" size="256" sumtext="체크여부"/>
  143. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  144. <Column id="reqdd" type="STRING" size="256" sumtext="청구번호"/>
  145. <Column id="csrgoodnm" type="STRING" size="256" sumtext="청구순번"/>
  146. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  147. <Column id="reqqty" type="STRING" size="256" sumtext="청구수량"/>
  148. <Column id="certqty" type="STRING" size="256" sumtext="확인수량"/>
  149. </ColumnInfo>
  150. </Dataset>
  151. </Objects>
  152. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  153. * System Name : 경대 의료정보시스템
  154. * Job Name : emr_csrxp -> SPMNG01101
  155. * Creator : yjh
  156. * Make Date : 2017-07-24
  157. * Description :
  158. *---------------------------------------------------------------------------------------
  159. * Modify Date Modifier Modify Description
  160. *---------------------------------------------------------------------------------------
  161. * 2017-07-24 yjh TF->XP
  162. *
  163. *---------------------------------------------------------------------------------------
  164. ****************************************************************************************/
  165. //=======================================================================================
  166. // Lib Include
  167. //---------------------------------------------------------------------------------------
  168. include "com_commonxp::comm_main.xjs";
  169. include "emr_carecomxp::CareCom.xjs";
  170. //=======================================================================================
  171. // Global Form Variable
  172. //---------------------------------------------------------------------------------------
  173. //=======================================================================================
  174. // Function
  175. //---------------------------------------------------------------------------------------
  176. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  177. function fInitialize()
  178. {
  179. ds_main_gasnetinfo_gasnetlist.clearData();
  180. fGetHardCodeInfo("ds_main_cond", "ds_init_cdid_codelist", "059");
  181. fSearch();
  182. }
  183. function fSearch() {
  184. var instcd ="";
  185. var reqdd = "";
  186. var reqno = "";
  187. var reqseqno = "";
  188. var reqdeptcd = "";
  189. instcd = sysf_getModelProperty("instcd");
  190. reqdd = sysf_getModelProperty("reqdd");
  191. reqno = sysf_getModelProperty("reqno");
  192. reqseqno = sysf_getModelProperty("reqseqno");
  193. reqdeptcd = sysf_getModelProperty("reqdeptcd");
  194. ds_send.setColumn(0, "instcd" , instcd);
  195. ds_send.setColumn(0, "reqdd" , reqdd);
  196. ds_send.setColumn(0, "reqno" , reqno);
  197. ds_send.setColumn(0, "reqseqno" , reqseqno);
  198. ds_send.setColumn(0, "reqdeptcd", reqdeptcd);
  199. var oParam = {};
  200. oParam.id = "TRMNG01103";
  201. oParam.service = "csrapp.CsrMngt";
  202. oParam.method = "reqGetGasNetInfo";
  203. oParam.inds = "req=ds_send";
  204. oParam.outds = "ds_main_gasnetinfo_gasnetlist=gasnetlist";
  205. oParam.async = false;
  206. //oParam.callback = "cf_TRMNG01103";
  207. tranf_submit(oParam);
  208. }
  209. //=======================================================================================
  210. // Event
  211. //---------------------------------------------------------------------------------------
  212. /****************************************************************************************
  213. * Components : Form
  214. * Components ID : SPMNG01101
  215. * Event : oninit
  216. * Argument : 01.obj : Object Event has occurred
  217. * : 02.e : Event Object
  218. * Description : 화면 처음 초기화시
  219. ****************************************************************************************/
  220. function SPMNG01101_oninit(obj:Form, e:InitEventInfo)
  221. {
  222. frmf_initForm(obj); //폼 초기화
  223. }
  224. /****************************************************************************************
  225. * Components : Form
  226. * Components ID : SPMNG01101
  227. * Event : onload
  228. * Argument : 01.obj : Object Event has occurred
  229. * : 02.e : Event Object
  230. * Description : 화면 로딩 완료시
  231. ****************************************************************************************/
  232. function SPMNG01101_onload(obj:Form, e:LoadEventInfo)
  233. {
  234. grdf_setRowTypeIcon(grp_biz.grd_gasnetlist, 0);
  235. fInitialize();
  236. }
  237. /****************************************************************************************
  238. * Components : Button
  239. * Components ID : btn_add
  240. * Event : onclick
  241. * Argument : 01.obj : Object Event has occurred
  242. * : 02.e : Event Object
  243. * Description : 행추가버튼 클릭시
  244. ****************************************************************************************/
  245. function grp_biz_btn_add_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. var iIndex = ds_main_gasnetinfo_gasnetlist.addRow();
  248. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "instcd", sysf_getModelProperty("instcd"));
  249. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "reqdd", sysf_getModelProperty("reqdd"));
  250. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "reqno", sysf_getModelProperty("reqno"));
  251. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "reqseqno", sysf_getModelProperty("reqseqno"));
  252. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "reqdeptcd", sysf_getModelProperty("reqdeptcd"));
  253. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "goodcd", "-");
  254. }
  255. /****************************************************************************************
  256. * Components : Button
  257. * Components ID : btn_del
  258. * Event : onclick
  259. * Argument : 01.obj : Object Event has occurred
  260. * : 02.e : Event Object
  261. * Description : 행삭제버튼 클릭시
  262. ****************************************************************************************/
  263. function grp_biz_btn_del_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. if( ds_main_gasnetinfo_gasnetlist.rowcount == 0 ){
  266. sysf_messageBox("삭제할 행이 존재하지 않습니다.");
  267. return;
  268. }
  269. if( ds_main_gasnetinfo_gasnetlist.rowposition < 0 ){
  270. sysf_messageBox("삭제할 행을 선택하십시오.", "E");
  271. return;
  272. }
  273. ds_main_gasnetinfo_gasnetlist.enableevent = false;
  274. ds_main_gasnetinfo_gasnetlist.updatecontrol = false;
  275. ds_main_gasnetinfo_gasnetlist.setRowType(ds_main_gasnetinfo_gasnetlist.rowposition, 8);
  276. ds_main_gasnetinfo_gasnetlist.updatecontrol = true;
  277. ds_main_gasnetinfo_gasnetlist.enableevent = true;
  278. }
  279. /****************************************************************************************
  280. * Components : Button
  281. * Components ID : btn_sav
  282. * Event : onclick
  283. * Argument : 01.obj : Object Event has occurred
  284. * : 02.e : Event Object
  285. * Description : 저장버튼 클릭시
  286. ****************************************************************************************/
  287. function grp_biz_btn_sav_onclick(obj:Button, e:ClickEventInfo)
  288. {
  289. cnfmyn = ds_main_gasnetinfo_gasnetlist.getColumn(0, "cnfmyn");
  290. if (cnfmyn == "Y") {
  291. sysf_messageBox("확인처리되어 저장불가합니다","I");
  292. return;
  293. }
  294. ds_main_gasnetinfo_gasnetlist.enableevent = false;
  295. ds_main_gasnetinfo_gasnetlist.updatecontrol = false;
  296. grdf_setStatusColumn(ds_main_gasnetinfo_gasnetlist, "status");
  297. ds_main_gasnetinfo_gasnetlist.updatecontrol = true;
  298. ds_main_gasnetinfo_gasnetlist.enableevent = true;
  299. ds_send_savedata_gasnetlist.assign(grdf_getGridUpdateData(grp_biz.grd_gasnetlist));
  300. //20180227 이돈희 추가 : 저장시 중앙공급실 외 부서의 담당자 명이 들어가는 현상이 있어서
  301. // 확인 수량을 삭제하여 전송, 비지니스단에서 확인 수량 있는 경우
  302. // 확인자 명 바꿈
  303. ds_send_savedata_gasnetlist.enableevent = false;
  304. ds_send_savedata_gasnetlist.updatecontrol = false;
  305. var bResult = ds_send_savedata_gasnetlist.deleteColumn("certqty");
  306. ds_send_savedata_gasnetlist.updatecontrol = true;
  307. ds_send_savedata_gasnetlist.enableevent = true;
  308. var oParam = {};
  309. oParam.id = "TXMNG01104";
  310. oParam.service = "csrapp.CsrMngt";
  311. oParam.method = "reqExeGasNetList";
  312. oParam.inds = "gasnetlist=ds_send_savedata_gasnetlist:A";
  313. oParam.outds = "";
  314. oParam.async = false;
  315. //oParam.callback = "cf_TXMNG01104";
  316. tranf_submit(oParam);
  317. var cdid = ds_init_cdid_codelist.getColumn(0, "cdid");
  318. var dept = ds_main_gasnetinfo_gasnetlist.getColumn(0, "reqdeptcd");
  319. if ( cdid == dept ) {
  320. opener.fReqRtnGoodInfoSearch();
  321. }
  322. this.close();
  323. }
  324. /****************************************************************************************
  325. * Components : Button
  326. * Components ID : button2
  327. * Event : onclick
  328. * Argument : 01.obj : Object Event has occurred
  329. * : 02.e : Event Object
  330. * Description : 출력버튼 클릭시
  331. ****************************************************************************************/
  332. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  333. {
  334. var objDOM = rptf_createDOM(); // DOM 객체 설정
  335. rptf_setNodeListToDOM(objDOM, "/root/main/gasnetinfo/gasnetlist", ds_main_gasnetinfo_gasnetlist); // 데이터셋 1
  336. var objParam = new Object();
  337. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  338. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  339. rptf_exeReportPreview30(["RPMNG01106"],[objParam], option);
  340. }
  341. /****************************************************************************************
  342. * Components : Button
  343. * Components ID : button3
  344. * Event : onclick
  345. * Argument : 01.obj : Object Event has occurred
  346. * : 02.e : Event Object
  347. * Description : 과거이력버튼 클릭시
  348. ****************************************************************************************/
  349. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. frmf_modal("SPMNG01103","SPMNG01103",null,"",1,1,1,"","","","","","M");
  352. var node = ds_temp_gasnetinfo_gasnetlist;
  353. var goodnm2 = "";
  354. var goodnm = "";
  355. for( var i=0 ; i<ds_temp_gasnetinfo_gasnetlist.rowcount ; i++ ){
  356. var goodnm = ds_temp_gasnetinfo_gasnetlist.getColumn(i, "goodnm");
  357. if(goodnm2 == goodnm) {
  358. } else {
  359. grp_biz.btn_add.click();
  360. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "goodnm", ds_temp_gasnetinfo_gasnetlist.getColumn(i, "goodnm"));
  361. ds_main_gasnetinfo_gasnetlist.setColumn(ds_main_gasnetinfo_gasnetlist.rowposition, "reqqty", ds_temp_gasnetinfo_gasnetlist.getColumn(i, "reqqty"));
  362. goodnm2= goodnm;
  363. }
  364. }
  365. }
  366. ]]></Script>
  367. </Form>
  368. </FDL>