SPPID27000_협진진료과확인코드관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPID27000" position="absolute 0 0 949 641" titletext="협진 진료과 확인코드 관리" oninit="SPPID27000_oninit" onload="SPPID27000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 888 611 944 633" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick" anchor="right bottom"/>
  8. <Static id="cap_title" text="협진 진료과 확인코드 관리" class="tit_1" position="absolute 1 0 225 25"/>
  9. <Div id="group1" taborder="1" class="div_SA" position="absolute 1 26 941 66" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption30" text="확인코드 :" class="search_name" position="absolute 8 11 95 28" anchor="default"/>
  13. <Button id="btn_select" taborder="5" text="조회" class="btn1" position="absolute 875 10 931 32" onclick="group1_btn_select_onclick" anchor="top right"/>
  14. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 857 4 863 37" anchor="top right"/>
  15. <Static id="caption2" text="진료과 :" class="search_name" position="absolute 268 11 355 28" anchor="default"/>
  16. <Combo id="cmb_orddeptcd" taborder="6" innerdataset="ds_init_cmb_orddeptcd" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 360 10 460 29" onitemchanged="group1_cmb_orddeptcd_onitemchanged" anchor="default"/>
  17. <Edit id="ipt_cnfmcd" taborder="7" position="absolute 100 10 200 29" onkeydown="group1_ipt_cnfmcd_onkeydown" anchor="default"/>
  18. <CheckBox id="chk1" taborder="8" class="checkbox_search" position="absolute 535 11 643 31" text="종료이력 포함" style="font:Dotum,9,bold;" truevalue="Y" falsevalue="N" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Button id="button1" taborder="2" text="저장" class="btn5" position="absolute 902 72 944 91" anchor="top right" onclick="button1_onclick"/>
  23. <Button id="button3" taborder="3" text="행추가" class="btn2" position="absolute 848 72 901 91" onclick="button3_onclick" anchor="top right"/>
  24. <Button id="button2" taborder="4" text="행삭제" class="btn2" position="absolute 794 72 847 91" onclick="button2_onclick" anchor="top right"/>
  25. <Button id="btn_excelsave" taborder="5" text="엑셀저장" class="btn7" position="absolute 713 72 793 91" onclick="btn_excelsave_onclick" anchor="top right"/>
  26. <Static id="cap_judgtrgtman" text="협진 진료과 확인코드 리스트" class="tit_2" position="absolute 4 75 198 98"/>
  27. <Grid id="grd_cnstcdlist" class="datagrid3" taborder="7" binddataset="ds_grd_cnstcdlist" useinputpanel="false" position="absolute 4 96 944 610" anchor="all" onrbuttondown="grd_cnstcdlist_onrbuttondown" cellsizingtype="col" selecttype="multirow">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="24"/>
  32. <Column size="54"/>
  33. <Column size="40"/>
  34. <Column size="120"/>
  35. <Column size="120"/>
  36. <Column size="280"/>
  37. <Column size="100"/>
  38. <Column size="70"/>
  39. <Column size="70"/>
  40. <Column size="50"/>
  41. <Column size="100"/>
  42. <Column size="50"/>
  43. <Column size="105"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1" text="확인코드"/>
  52. <Cell col="2" text="구분"/>
  53. <Cell col="3" text="진료과목명"/>
  54. <Cell col="4" text="세부 전문과목명"/>
  55. <Cell col="5" text="영문과목명"/>
  56. <Cell col="6" text="진료과"/>
  57. <Cell col="7" text="시작일자"/>
  58. <Cell col="8" text="종료일자"/>
  59. <Cell col="9" text="등록자"/>
  60. <Cell col="10" text="등록일자"/>
  61. <Cell col="11" text="수정자"/>
  62. <Cell col="12" text="수정일자"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell celltype="head"/>
  66. <Cell col="1" displaytype="text" edittype="text" text="bind:cnfmcd" enable="false"/>
  67. <Cell col="2" displaytype="text" edittype="text" text="bind:gubun" enable="false"/>
  68. <Cell col="3" displaytype="text" edittype="text" text="bind:cnfmhnm" enable="false"/>
  69. <Cell col="4" displaytype="text" edittype="text" text="bind:cnfmdnm" enable="false"/>
  70. <Cell col="5" displaytype="text" edittype="text" text="bind:cnfmenm"/>
  71. <Cell col="6" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_cmb_orddeptcd" combocodecol="deptcd" combodatacol="depthngnm" enable="true"/>
  72. <Cell col="7" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
  73. <Cell col="8" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
  74. <Cell col="9" displaytype="none" edittype="none" text="bind:fstrgstrid"/>
  75. <Cell col="10" displaytype="date" edittype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
  76. <Cell col="11" text="bind:lastupdtrid"/>
  77. <Cell col="12" displaytype="date" edittype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 4 91 944 97" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  83. <PopupMenu id="pmn_menu1" position="absolute 970 144 1075 190" innerdataset="@ds_menu" idcolumn="func" levelcolumn="level" captioncolumn="label" onmenuclick="pmn_menu1_onmenuclick"/>
  84. </Layout>
  85. </Layouts>
  86. <Objects>
  87. <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  88. <ColumnInfo>
  89. <Column id="depthngnm" type="STRING"/>
  90. <Column id="deptcd" type="STRING"/>
  91. <Column id="deptengabbr" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. </Dataset>
  94. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="deptcd" type="STRING"/>
  97. <Column id="depthngnm" type="STRING"/>
  98. <Column id="deptengabbr" type="STRING"/>
  99. </ColumnInfo>
  100. </Dataset>
  101. <Dataset id="ds_grd_cnstcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="cnfmcd" type="STRING"/>
  104. <Column id="gubun" type="STRING"/>
  105. <Column id="cnfmhnm" type="STRING"/>
  106. <Column id="cnfmdnm" type="STRING"/>
  107. <Column id="cnfmenm" type="STRING"/>
  108. <Column id="orddeptcd" type="STRING"/>
  109. <Column id="fromdd" type="STRING"/>
  110. <Column id="todd" type="STRING"/>
  111. <Column id="fstrgstrid" type="STRING"/>
  112. <Column id="fstrgstdt" type="STRING"/>
  113. <Column id="lastupdtrid" type="STRING"/>
  114. <Column id="lastupdtdt" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_main_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="orddeptcd" type="STRING" size="256"/>
  120. <Column id="cnstcdlist" type="STRING" size="256"/>
  121. <Column id="cnfmcd" type="STRING" size="256"/>
  122. <Column id="endyn" type="STRING" size="256"/>
  123. </ColumnInfo>
  124. <Rows>
  125. <Row/>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="label" type="STRING" size="256"/>
  131. <Column id="func" type="STRING" size="256"/>
  132. <Column id="level" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="label">행추가</Col>
  137. <Col id="func">fSpclGridInsertRow</Col>
  138. </Row>
  139. <Row>
  140. <Col id="label">행삭제</Col>
  141. <Col id="func">fSpclGridDeleteRow</Col>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. </Objects>
  146. <Bind>
  147. <BindItem id="item0" compid="group1.ipt_cnfmcd" propid="value" datasetid="ds_main_send" columnid="cnfmcd"/>
  148. <BindItem id="item1" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_main_send" columnid="orddeptcd"/>
  149. <BindItem id="item2" compid="group1.chk1" propid="value" datasetid="ds_main_send" columnid="endyn"/>
  150. </Bind>
  151. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  152. * System Name :
  153. * Job Name :
  154. * Creator :
  155. * Make Date : 2016-05-24
  156. * Description :
  157. *---------------------------------------------------------------------------------------
  158. * Modify Date Modifier Modify Description
  159. *---------------------------------------------------------------------------------------
  160. * 2016-05-24 Live Converter TF->XP
  161. *
  162. *---------------------------------------------------------------------------------------
  163. ****************************************************************************************/
  164. include "com_commonxp::comm_main.xjs";
  165. include "pam_pamcomnxp::PAM001.xjs";
  166. function SPPID27000_oninit(obj:Form, e:InitEventInfo)
  167. {
  168. frmf_initForm(obj);
  169. }
  170. function SPPID27000_onload(obj:Form, e:LoadEventInfo)
  171. {
  172. grdf_initGrid(grd_cnstcdlist);
  173. grdf_setRowTypeIcon(grd_cnstcdlist, 0);
  174. fInitialize();
  175. }
  176. function fInitialize()
  177. {
  178. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256 , val :sysf_getUserInfo("dutplceinstcd") }
  179. , {col:"ordfildcd", type:"STRING", size:256}
  180. , {col:"ordflag", type:"STRING", size:256}]);
  181. var oParam = {};
  182. oParam.id = "TRPIJ00203";
  183. oParam.service = "bfjudgapp.InHospJudgTrgtMan";
  184. oParam.method = "reqGetDeptList";
  185. oParam.inds = "req=ds_send";
  186. oParam.outds = "ds_init_cmb_orddeptcd=deptlist";
  187. oParam.async = false;
  188. //oParam.callback = "cf_TRPIJ00203";
  189. tranf_submit(oParam);
  190. var arrParam1 = new Array();
  191. arrParam1 = [{dsNm: "ds_init_PK028list", cdGrpId: "PK028", showValue: false}];
  192. pamfGetCodeList(arrParam1, true, "");
  193. group1_btn_select_onclick();
  194. }
  195. //조회
  196. function group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. fGetDocuList();
  199. }
  200. function fGetDocuList()
  201. {
  202. dsf_createDsRow("ds_send1", [{col:"cnfmcd", type:"STRING", size:256 , val : group1.ipt_cnfmcd.value}
  203. , {col:"orddeptcd", type:"STRING", size:256, val : group1.cmb_orddeptcd.value}
  204. , {col:"endyn", type:"STRING", size:256, val : group1.chk1.value}]);
  205. var oParam = {};
  206. oParam.id = "TRPID27000";
  207. oParam.service = "aftjudgapp.InAftJudg";
  208. oParam.method = "reqGetCnstDeptList";
  209. oParam.inds = "req=ds_send1";
  210. oParam.outds = "ds_grd_cnstcdlist=cnstcd";
  211. oParam.async = false;
  212. //oParam.callback = "cf_TRPID27000";
  213. tranf_submit(oParam);
  214. }
  215. function group1_ipt_cnfmcd_onkeydown(obj:Edit, e:KeyEventInfo)
  216. {
  217. if(e.keycode == 13)
  218. {
  219. fGetDocuList();
  220. }
  221. }
  222. function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  223. {
  224. fGetDocuList();
  225. }
  226. //엑셀저장
  227. function btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  228. {
  229. if (ds_grd_cnstcdlist.rowcount > 0)
  230. {
  231. grdf_exportExcel(grd_cnstcdlist, "exportExcel", "see");
  232. }
  233. else
  234. {
  235. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  236. }
  237. }
  238. //행삭제
  239. function button2_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. fSpclGridDeleteRow();
  242. }
  243. //행추가
  244. function button3_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. fSpclGridInsertRow();
  247. }
  248. //행삭제이벤트
  249. function fSpclGridDeleteRow()
  250. {
  251. var SelectedRows = grdf_getSelectedRows(grd_cnstcdlist);
  252. for(var i = 0; i < SelectedRows.length; i++)
  253. {
  254. var sel = SelectedRows[i];
  255. var arrRow = new Array();
  256. arrRow[0] = sel;
  257. grdf_setStatus(grd_cnstcdlist, "D", arrRow);
  258. }
  259. }
  260. //행추가 이벤트
  261. function fSpclGridInsertRow()
  262. {
  263. var addRw = ds_grd_cnstcdlist.addRow();
  264. }
  265. //종료
  266. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. this.close();
  269. }
  270. //저장
  271. function button1_onclick(obj:Button, e:ClickEventInfo)
  272. {
  273. var updtdata = grdf_getGridUpdateData(grd_cnstcdlist);
  274. if(updtdata.rowcount == 0)
  275. {
  276. sysf_messageBox("변경된 데이터가","I004");
  277. return;
  278. }
  279. for(var i=0; i<ds_grd_cnstcdlist.rowcount; i++){
  280. if(ds_grd_cnstcdlist.getRowType(i) == 2 || ds_grd_cnstcdlist.getRowType(i) == 4)
  281. {
  282. trace(i);
  283. if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "cnfmcd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "todd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "orddeptcd")))
  284. {
  285. var errmsg = "";
  286. if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "cnfmcd")))
  287. {
  288. errmsg = "확인코드";
  289. }
  290. if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "todd")))
  291. {
  292. errmsg = "종료일자";
  293. }
  294. if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")))
  295. {
  296. errmsg = "시작일자";
  297. }
  298. if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "orddeptcd")))
  299. {
  300. errmsg = "진료과";
  301. }
  302. sysf_messageBox(errmsg+"는","I003");
  303. return false;
  304. }
  305. }
  306. }
  307. if(sysf_messageBox("저장", "S001") == 6)
  308. {
  309. var oParam = {};
  310. oParam.id = "TXPID27000";
  311. oParam.service = "aftjudgapp.InAftJudg";
  312. oParam.method = "reqExeCnstDeptList";
  313. oParam.inds = "req=ds_grd_cnstcdlist:U";
  314. oParam.outds = "ds_grd_cnstcdlist=cnstcd";
  315. oParam.async = false;
  316. oParam.callback = "cf_TXPID27000";
  317. tranf_submit(oParam);
  318. }
  319. }
  320. function cf_TXPID27000(sSvcId, nErrorCode, sErrorMsg) {
  321. if(nErrorCode < 0) return;
  322. sysf_messageBox("저장이","I002");
  323. fGetDocuList();
  324. }
  325. function grd_cnstcdlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  326. {
  327. pmn_menu1.trackPopup(e.screenX,e.screenY);
  328. }
  329. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  330. {
  331. eval(e.id +"();");
  332. }
  333. ]]></Script>
  334. </Form>
  335. </FDL>