SPLPR01600_예문관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPR01600" position="absolute 0 0 1041 606" titletext="예문관리" onload="SPLPR01600_onload" oninit="SPLPR01600_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_save" taborder="0" text="확인" class="btn4" position="absolute 979 581 1035 601" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
  8. <Button id="btn_exit" taborder="1" text="닫기" onlbuttonup="btn_exit_onlbuttonup" class="btn4" position="absolute 918 582 974 602" anchor="left bottom" visible="false" positiontype="position" onclick="btn_exit_onclick"/>
  9. <Grid id="grd_exmplist" taborder="2" useinputpanel="false" position="absolute 659 143 1035 578" anchor="top right bottom" onclick="grd_exmplist_onclick" autofittype="col" binddataset="ds_grid_grd_exmplist" positiontype="position" oncellclick="grd_exmplist_oncellclick" oncelldblclick="grd_exmplist_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="80"/>
  17. <Column size="200"/>
  18. <Column size="75"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="22" band="head"/>
  22. <Row size="20"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell text="기관코드"/>
  26. <Cell col="1" text="등록의사ID"/>
  27. <Cell col="2" text="caption1"/>
  28. <Cell col="3" text="예문코드"/>
  29. <Cell col="4" text="예문명"/>
  30. <Cell col="5" text="서식번호"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell text="bind:instcd"/>
  34. <Cell col="1" text="bind:rgstdrid"/>
  35. <Cell col="2" text="bind:rgstdrnm"/>
  36. <Cell col="3" style="align:left middle;" text="bind:exmpcd"/>
  37. <Cell col="4" style="align:left middle;" text="bind:exmpnm"/>
  38. <Cell col="5" style="align:left middle;" text="bind:docuno"/>
  39. <Cell col="6"/>
  40. <Cell col="7"/>
  41. <Cell col="8"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Tab id="swt_loader" anchor="all" taborder="3" tabindex="0" class="tab_WF_main" position="absolute 2 1 648 599" positiontype="position" visible="true">
  47. <Tabpages>
  48. <Tabpage id="case_loader" text="서식예문" enable="false" enableevent="false" usebitmapcache="false">
  49. <Layouts>
  50. <Layout/>
  51. </Layouts>
  52. </Tabpage>
  53. <Tabpage id="case_normal" text="일반예문">
  54. <Layouts>
  55. <Layout>
  56. <TextArea id="textarea1" taborder="0" position="absolute 0 0 654 755" imemode="alpha" positiontype="position" wordwrap="both"/>
  57. </Layout>
  58. </Layouts>
  59. </Tabpage>
  60. </Tabpages>
  61. </Tab>
  62. <Static id="caption37" text="전체 예문목록" class="tit_2" position="absolute 659 123 803 143" anchor="top right" positiontype="position"/>
  63. <Div id="group2" anchor="top right" taborder="4" style="align:center top;" class="div_SA" position="absolute 659 4 1035 113" positiontype="position">
  64. <Layouts>
  65. <Layout>
  66. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 290 65 290 82" anchor="default" positiontype="position"/>
  67. <Edit id="ipt_seaval" taborder="11" class="input_search" position="absolute 81 77 216 97" anchor="default" imemode="alpha" maxlength="10" onclick="ipt_seaval_onclick" onkeydown="group2_ipt_seaval_onkeydown" onlbuttondown="group2_ipt_seaval_onlbuttondown" positiontype="position"/>
  68. <Static id="caption3" text="예문명" class="search_name" position="absolute 8 77 75 97" anchor="default" positiontype="position"/>
  69. <Button id="btn_sea" taborder="12" text="조회" class="btn1" position="absolute 308 74 364 94" anchor="top right" onclick="group2_btn_sea_onclick" positiontype="position"/>
  70. <Static id="caption1" text="예문코드" class="search_name" position="absolute 8 52 79 72" anchor="default" positiontype="position"/>
  71. <Edit id="input1" taborder="13" class="input_search" position="absolute 81 52 216 72" anchor="default" imemode="alpha" maxlength="10" onclick="input1_onclick" onkeydown="group2_input1_onkeydown" onlbuttondown="group2_input1_onlbuttondown" positiontype="position"/>
  72. <Radio id="radio1" taborder="14" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 81 10 254 30" anchor="default" onitemchanged="group2_radio1_onitemchanged" positiontype="position">
  73. <Dataset id="innerdataset">
  74. <ColumnInfo>
  75. <Column id="codecolumn" size="256"/>
  76. <Column id="datacolumn" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="codecolumn">0</Col>
  81. <Col id="datacolumn">전체</Col>
  82. </Row>
  83. <Row>
  84. <Col id="codecolumn">1</Col>
  85. <Col id="datacolumn">판독의사별</Col>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. </Radio>
  90. <Combo id="cmb_rgstdr" taborder="15" position="absolute 257 10 367 30" anchor="default" innerdataset="@ds_grid_grd_userinfolist" codecolumn="userid" datacolumn="usernm" positiontype="position"/>
  91. <Radio id="radio2" taborder="16" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 81 30 254 50" anchor="default" onitemchanged="group2_radio2_onitemchanged" positiontype="position">
  92. <Dataset id="innerdataset">
  93. <ColumnInfo>
  94. <Column id="codecolumn" size="256"/>
  95. <Column id="datacolumn" size="256"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="codecolumn">0</Col>
  100. <Col id="datacolumn">정열</Col>
  101. </Row>
  102. <Row>
  103. <Col id="codecolumn">1</Col>
  104. <Col id="datacolumn">필터</Col>
  105. </Row>
  106. </Rows>
  107. </Dataset>
  108. </Radio>
  109. <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 79 30" anchor="default" positiontype="position"/>
  110. </Layout>
  111. </Layouts>
  112. </Div>
  113. </Layout>
  114. </Layouts>
  115. <Objects>
  116. <Dataset id="ds_grid_grd_exmplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="instcd" type="STRING"/>
  119. <Column id="rgstdrid" type="STRING"/>
  120. <Column id="rgstdrnm" type="STRING"/>
  121. <Column id="exmpcd" type="STRING"/>
  122. <Column id="exmpnm" type="STRING"/>
  123. <Column id="docuno" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_grid_grd_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="usernm" type="STRING" size="256"/>
  129. <Column id="userid" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. </Dataset>
  132. <Dataset id="ds_data_useridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="instcd" type="STRING" size="256"/>
  135. <Column id="userid" type="STRING" size="256"/>
  136. <Column id="usernm" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_init_exmpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_temp_medirec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="medireccnts" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. </Dataset>
  145. <Dataset id="ds_testrsltinfoh" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. </Objects>
  147. <Bind>
  148. <BindItem id="item0" compid="swt_loader.case_normal.textarea1" propid="value" datasetid="ds_init_exmpinfo" columnid="exmpcnts"/>
  149. </Bind>
  150. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  151. * System Name :
  152. * Job Name :
  153. * Creator :
  154. * Make Date : 2015-11-13
  155. * Description :
  156. *---------------------------------------------------------------------------------------
  157. * Modify Date Modifier Modify Description
  158. *---------------------------------------------------------------------------------------
  159. * 2015-11-13 Live Converter TF->XP
  160. *
  161. *---------------------------------------------------------------------------------------
  162. ****************************************************************************************/
  163. include "com_commonxp::comm_main.xjs";
  164. include "com_commodulexp::SSZFM00401.xjs"; // Dataset 뷰어용
  165. var getDrID = "0000000000";
  166. //초기화
  167. function SPLPR01600_oninit(obj:Form, e:InitEventInfo)
  168. {
  169. frmf_initForm(obj); // 화면공통
  170. }
  171. function SPLPR01600_onload(obj:Form, e:LoadEventInfo)
  172. {
  173. lf_initDataSet();
  174. lf_exeInitialize();
  175. lf_commoduleDataSetShow(); //DataSet 조회;
  176. //검사결과등록 팝업호출
  177. if(opener.frmf_getParameter("SPLPR01600_scrno") == "SMLPR02700")
  178. {
  179. group2.radio1.value = "1";
  180. group2.radio2.value = "1";
  181. lf_getExamList();
  182. }
  183. }
  184. function lf_initDataSet() // 의사목록 조회
  185. {
  186. var sInDsName = dsf_createDsRow("ds_temp_search" , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  187. , {col: "userdeptcd", val: "-"}
  188. , {col: "doctjobgradcd", val: "1"} // 예문 추가시 의사만 보일 수 있도록
  189. , {col: "teamjobgradcd", val: "-"}]);
  190. var oParam = {};
  191. oParam.id = "TRLPZ00105";
  192. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  193. oParam.method = "reqGetUserInfoList";
  194. oParam.inds = "refdata="+sInDsName;
  195. oParam.outds = "ds_grid_grd_userinfolist=reflist";
  196. oParam.async = false;
  197. //oParam.callback = "cf_TRLPZ00105";
  198. tranf_submit(oParam);
  199. //등록의사에 Mcode 추가
  200. var nRow = ds_grid_grd_userinfolist.addRow();
  201. ds_grid_grd_userinfolist.setColumn(nRow, "dutplceinstcd", sysf_getUserInfo("dutplceinstcd"));
  202. ds_grid_grd_userinfolist.setColumn(nRow, "userid", "mcode");
  203. ds_grid_grd_userinfolist.setColumn(nRow, "usernm", "Mcode");
  204. ds_grid_grd_userinfolist.setColumn(nRow, "jobkindcd", "9");
  205. ds_grid_grd_userinfolist.setColumn(nRow, "userabbr", "-");
  206. ds_grid_grd_userinfolist.setColumn(nRow, "mpphonno", "-");
  207. // 병리과 공용예문 등록을 위한 가상의 의사ID를 생성
  208. ds_data_useridlist.clearData();
  209. ds_data_useridlist.addRow();
  210. ds_data_useridlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  211. ds_data_useridlist.setColumn(0, "userid", "0000000000");
  212. ds_data_useridlist.setColumn(0, "usernm", "공용");
  213. // 일반예문 검색
  214. var sInDsName = dsf_createDsRow("ds_temp_search", [{col : "delflagcd", val : "0"} // 조회조건 사용여부구분
  215. , {col : "refflag", val : "0"} // 조회조건
  216. , {col : "bizflagcd", val : "R"} // 업무구분코드
  217. , {col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  218. , {col : "rgstdrid", val : "" }]);
  219. //frozen 검사 예문 조회 시 해당 의사 ID 값
  220. getDrID = opener.frmf_getParameter("SPLPR01600_rgstdrid")
  221. if(getDrID > 0)
  222. {
  223. ds_temp_search.setColumn(0, "rgstdrid", getDrID); // 등록의사ID
  224. }
  225. else
  226. {
  227. ds_temp_search.setColumn(0, "rgstdrid", "0000000000"); // 등록의사ID
  228. }
  229. var oParam = {};
  230. oParam.id = "TRLPC00801";
  231. oParam.service = "plgybaseinfomngtapp.RsltExmpCode";
  232. oParam.method = "reqGetRsltExmpCodeList";
  233. oParam.inds = "refData=" + sInDsName;
  234. oParam.outds = "ds_grid_grd_exmplist=refrslt";
  235. oParam.async = false;
  236. //oParam.callback = "cf_TRLPC00801";
  237. tranf_submit(oParam);
  238. swt_loader.tabindex = "1";
  239. }
  240. function lf_exeInitialize()
  241. {
  242. group2.radio1.value = "1";
  243. group2.radio2.value = "1";
  244. group2.cmb_rgstdr.value = getDrID;
  245. }
  246. function lf_exeExmpRef()
  247. {
  248. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: ds_grid_grd_exmplist.getColumn(ds_grid_grd_exmplist.rowposition,"instcd")}
  249. , {col: "rgstdrid", val: ds_grid_grd_exmplist.getColumn(ds_grid_grd_exmplist.rowposition,"rgstdrid")}
  250. , {col: "exmpcd", val: ds_grid_grd_exmplist.getColumn(ds_grid_grd_exmplist.rowposition,"exmpcd")}]);
  251. var oParam = {};
  252. oParam.id = "TRLPC00802";
  253. oParam.service = "plgybaseinfomngtapp.RsltExmpCode";
  254. oParam.method = "reqGetRsltExmpCodeInfo";
  255. oParam.inds = "refData="+sInDsName;
  256. oParam.outds = "ds_init_exmpinfo=refrslt";
  257. oParam.async = false;
  258. //oParam.callback = "cf_TRLPC00802";
  259. tranf_submit(oParam);
  260. if(ds_init_exmpinfo.rowcount > 0)
  261. {
  262. var sDocuNo = ds_init_exmpinfo.getColumn(0, "docuno");
  263. swt_loader.case_normal.textarea1.value = ds_init_exmpinfo.getColumn(0, "exmpcnts");
  264. if(utlf_isNull(sDocuNo) || sDocuNo == "-")
  265. {
  266. // Continue
  267. }
  268. else
  269. {
  270. if(sDocuNo.isNumber()) // 서식번호는 숫자로만 이루어져 있음.
  271. {
  272. swt_loader.tabindex = "0";
  273. }
  274. }
  275. }
  276. else
  277. {
  278. swt_loader.case_normal.textarea1.value = "";
  279. }
  280. }
  281. function lf_exeSave()
  282. {
  283. var iMaxRowCnt = 0;
  284. var iDegnItemNo = 0;
  285. var sExmpCnts = "";
  286. var objArg = new Object();
  287. // 일반예문일 경우 처리
  288. if(swt_loader.tabindex == 1)
  289. {
  290. var resultStr = ds_init_exmpinfo.getColumn(0, "exmpcnts");
  291. }
  292. else
  293. {
  294. }
  295. var objRetVal = new Object();
  296. objRetVal.result = resultStr;
  297. opener.frmf_setParameter("SPLPR01600_exmpcnts", ds_init_exmpinfo.getColumn(0, "exmpcnts"));
  298. this.close();
  299. }
  300. function lf_getExamList()
  301. {
  302. // 일반예문 검색
  303. var sInDsName = dsf_createDsRow("ds_temp_search", [{col : "delflagcd", val : "0"} // 조회조건 사용여부구분
  304. , {col : "refflag", val : ""} // 조회조건
  305. , {col : "refval", val : ""} // 조회값
  306. , {col : "bizflagcd", val : "R"} // 업무구분코드
  307. , {col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  308. , {col : "rgstdrid", val : group2.cmb_rgstdr.value}
  309. , {col : "searchflag", val : group2.radio2.value}]); // 기관코드
  310. if(!utlf_isNull(group2.ipt_seaval.value))
  311. {
  312. ds_temp_search.setColumn(0, "refval", group2.ipt_seaval.value);
  313. ds_temp_search.setColumn(0, "refflag", "1");
  314. }
  315. else if(!utlf_isNull(group2.input1.value))
  316. {
  317. ds_temp_search.setColumn(0, "refval", group2.input1.value);
  318. ds_temp_search.setColumn(0, "refflag", "0");
  319. }
  320. else
  321. {
  322. ds_temp_search.setColumn(0, "refval", "");
  323. }
  324. var oParam = {};
  325. oParam.id = "TRLPC00801";
  326. oParam.service = "plgybaseinfomngtapp.RsltExmpCode";
  327. oParam.method = "reqGetRsltExmpCodeList";
  328. oParam.inds = "refData="+sInDsName;
  329. oParam.outds = "ds_grid_grd_exmplist=refrslt";
  330. oParam.async = false;
  331. //oParam.callback = "cf_TRLPC00801";
  332. tranf_submit(oParam);
  333. }
  334. // 그리드 클릭
  335. function grd_exmplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  336. {
  337. if(ds_grid_grd_exmplist.rowposition > -1)
  338. {
  339. lf_exeExmpRef();
  340. }
  341. }
  342. // 그리드 더블클릭
  343. function grd_exmplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  344. {
  345. if(ds_grid_grd_exmplist.rowposition > -1)
  346. {
  347. lf_exeExmpRef();
  348. }
  349. lf_exeSave();
  350. }
  351. // 검색조건 전체/판독의사별 선택
  352. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  353. {
  354. if(group2.radio1.value == "0")
  355. {
  356. if(!utlf_isNull(group2.cmb_rgstdr.value))
  357. {
  358. getDrID = group2.cmb_rgstdr.value;
  359. group2.cmb_rgstdr.value = "";
  360. }
  361. group2.cmb_rgstdr.enable = false;
  362. }
  363. else
  364. {
  365. if(!utlf_isNull(getDrID))
  366. {
  367. group2.cmb_rgstdr.value = getDrID;
  368. }
  369. group2.cmb_rgstdr.enable = true;
  370. }
  371. }
  372. // 검색조건 정열/필터 선택
  373. function group2_radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  374. {
  375. if(group2.radio1.value == "0")
  376. {
  377. if(!utlf_isNull(group2.cmb_rgstdr.value))
  378. {
  379. getDrID = group2.cmb_rgstdr.value;
  380. group2.cmb_rgstdr.value = "";
  381. }
  382. }
  383. else
  384. {
  385. if(!utlf_isNull(getDrID))
  386. {
  387. group2.cmb_rgstdr.value = getDrID;
  388. }
  389. }
  390. }
  391. // 예문코드 엔터
  392. function group2_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  393. {
  394. if(e.keycode == 13)
  395. {
  396. lf_getExamList();
  397. }
  398. }
  399. // 예문코드 클릭
  400. function group2_input1_onlbuttondown(obj:Edit, e:MouseEventInfo)
  401. {
  402. group2.ipt_seaval.value = "" ;
  403. }
  404. // 예문명 엔터
  405. function group2_ipt_seaval_onkeydown(obj:Edit, e:KeyEventInfo)
  406. {
  407. if(e.keycode == 13)
  408. {
  409. lf_getExamList();
  410. }
  411. }
  412. // 예문명 클릭
  413. function group2_ipt_seaval_onlbuttondown(obj:Edit, e:MouseEventInfo)
  414. {
  415. group2.input1.value = "" ;
  416. }
  417. // 조회
  418. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  419. {
  420. lf_getExamList();
  421. }
  422. // 확인
  423. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  424. {
  425. lf_exeSave();
  426. }]]></Script>
  427. </Form>
  428. </FDL>