SMABC02100_공통마감화면(MSET).xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABC02100" position="absolute 0 0 1201 775" titletext="공통마감" oninit="SMABC02100_oninit" onload="SMABC02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="공통마감(M-SET)" position="absolute 0 0 196 25" id="caption1" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 45 1195 775" id="group5" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 10 1194 45" align="align:center top;" id="group6" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Static text="일자" position="absolute 6 8 75 25" id="caption2" class="search_name"/>
  21. <Static text="Acting 부서" position="absolute 241 8 337 25" id="caption3" class="search_name"/>
  22. <Calendar position="absolute 47 6 147 25" id="ipt_execdd" class="input_default" autoselect="true" onchanged="group5_group6_ipt_execdd_onchanged"/>
  23. <Radio position="absolute 521 5 691 25" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group5_group6_radio1_onitemchanged">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">A</Col>
  32. <Col id="datacolumn">전체</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">Y</Col>
  36. <Col id="datacolumn">실행</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">N</Col>
  40. <Col id="datacolumn">미실행</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Radio>
  45. <Combo position="absolute 859 6 949 25" id="combo2" class="combo_search" innerdataset="ds_init_combo2" datacolumn="name" codecolumn="id" onitemchanged="group5_group6_combo2_onitemchanged"/>
  46. <Static text="구 분" position="absolute 801 8 877 25" id="caption4" class="search_name"/>
  47. <Combo position="absolute 327 6 487 25" id="combo1" innerdataset="ds_init_combo1" datacolumn="depthngnm" codecolumn="suppdeptcd" onitemchanged="group5_group6_combo1_onitemchanged"/>
  48. <Button position="absolute 1130 5 1186 27" id="btn_sea" class="btn1" text="조회" onclick="group5_group6_btn_sea_onclick"/>
  49. <Shape position="absolute 1123 4 1129 27" linetype="vertical" id="line2"/>
  50. </Layout>
  51. </Layouts>
  52. </Div>
  53. <Shape position="absolute 0 78 1194 84" linetype="vertical" id="line20" class="line_1"/>
  54. <Static text="액팅 리스트" position="absolute 5 66 165 87" id="caption8" class="tit_2"/>
  55. <Div position="absolute 800 55 1195 80" id="group2">
  56. <Layouts>
  57. <Layout>
  58. <Button position="absolute 340 5 393 24" id="button6" class="btn2" text="마감" onclick="group5_group2_button6_onclick"/>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. <Grid position="absolute 0 85 1194 725" id="grd_projlist" binddataset="ds_grd_projlist">
  63. <Formats>
  64. <Format id="default">
  65. <Columns>
  66. <Column size="25" band="left"/>
  67. <Column size="61"/>
  68. <Column size="59"/>
  69. <Column size="35"/>
  70. <Column size="28"/>
  71. <Column size="0"/>
  72. <Column size="395"/>
  73. <Column size="63"/>
  74. <Column size="25"/>
  75. <Column size="111"/>
  76. <Column size="55"/>
  77. <Column size="99"/>
  78. <Column size="71"/>
  79. <Column size="120"/>
  80. <Column size="0"/>
  81. <Column size="100"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="100"/>
  89. </Columns>
  90. <Rows>
  91. <Row size="24" band="head"/>
  92. <Row size="24"/>
  93. </Rows>
  94. <Band id="head">
  95. <Cell/>
  96. <Cell col="1" text="등록번호"/>
  97. <Cell col="2" text="환자명"/>
  98. <Cell col="3" text="S/N"/>
  99. <Cell col="4"/>
  100. <Cell col="5" text="처방코드"/>
  101. <Cell col="6" text="처방명"/>
  102. <Cell col="7" text="상태"/>
  103. <Cell col="8" displaytype="checkbox" edittype="checkbox"/>
  104. <Cell col="9" text="수행시간"/>
  105. <Cell col="10" text="Acting"/>
  106. <Cell col="11" text="수행자"/>
  107. <Cell col="12" text="병실"/>
  108. <Cell col="13" text="마감일시"/>
  109. <Cell col="14" text="Action"/>
  110. <Cell col="15" text="처방일자"/>
  111. <Cell col="16" text="caption2"/>
  112. <Cell col="17" text="caption3"/>
  113. <Cell col="18" text="caption4"/>
  114. <Cell col="19" text="caption5"/>
  115. <Cell col="20" text="caption6"/>
  116. <Cell col="21" text="caption7"/>
  117. <Cell col="22" text="Note"/>
  118. </Band>
  119. <Band id="body">
  120. <Cell celltype="head" text="expr:currow + 1"/>
  121. <Cell col="1" displaytype="text" edittype="text" text="bind:pid" suppress="1" suppressalign="middle"/>
  122. <Cell col="2" text="bind:hngnm" suppress="1" suppressalign="middle"/>
  123. <Cell col="3" text="bind:sexage" suppress="1" suppressalign="middle"/>
  124. <Cell col="4" style="align:right;" text="bind:mset" suppress="2" suppressalign="middle"/>
  125. <Cell col="5" text="bind:prcpcd"/>
  126. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  127. <Cell col="7" text="bind:cdnm"/>
  128. <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check == 'true' || check == '1')?1:0"/>
  129. <Cell col="9" displaytype="date" text="bind:execddtm" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  130. <Cell col="10" text="bind:acting"/>
  131. <Cell col="11" text="bind:execrid"/>
  132. <Cell col="12" text="bind:roomcd"/>
  133. <Cell col="13" displaytype="date" text="bind:enddd" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  134. <Cell col="14" text="bind:action"/>
  135. <Cell col="15" text="bind:prcpdd"/>
  136. <Cell col="16" text="bind:prcpno"/>
  137. <Cell col="17" text="bind:prcphistno"/>
  138. <Cell col="18" text="bind:execprcpno"/>
  139. <Cell col="19" text="bind:instcd"/>
  140. <Cell col="20" text="bind:execdeptcd"/>
  141. <Cell col="21" text="bind:oiflag"/>
  142. <Cell col="22" style="align:left;" text="bind:note" wordwrap="char"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. </Layout>
  148. </Layouts>
  149. </Div>
  150. <Div position="absolute 0 13 1190 40" id="group3" scrollbars="none">
  151. <Layouts>
  152. <Layout>
  153. <Button position="absolute 1120 2 1188 24" id="button7" class="btn4" text="초기화" onclick="group3_button7_onclick"/>
  154. <Shape position="absolute 0 22 1189 28" linetype="horizontal" id="line1" class="line_6"/>
  155. </Layout>
  156. </Layouts>
  157. </Div>
  158. </Layout>
  159. </Layouts>
  160. <Objects>
  161. <Dataset id="ds_init_combo2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="name" type="STRING"/>
  164. <Column id="id" type="STRING"/>
  165. </ColumnInfo>
  166. <Rows>
  167. <Row>
  168. <Col id="name">전체</Col>
  169. <Col id="id">-</Col>
  170. </Row>
  171. <Row>
  172. <Col id="name">마감전</Col>
  173. <Col id="id">before</Col>
  174. </Row>
  175. <Row>
  176. <Col id="name">마감후</Col>
  177. <Col id="id">after</Col>
  178. </Row>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="depthngnm" type="STRING"/>
  184. <Column id="suppdeptcd" type="STRING"/>
  185. </ColumnInfo>
  186. </Dataset>
  187. <Dataset id="ds_grd_projlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="pid" type="STRING"/>
  190. <Column id="hngnm" type="STRING"/>
  191. <Column id="sexage" type="STRING"/>
  192. <Column id="mset" type="STRING"/>
  193. <Column id="prcpcd" type="STRING"/>
  194. <Column id="prcpnm" type="STRING"/>
  195. <Column id="cdnm" type="STRING"/>
  196. <Column id="check" type="STRING"/>
  197. <Column id="execddtm" type="STRING"/>
  198. <Column id="acting" type="STRING"/>
  199. <Column id="execrid" type="STRING"/>
  200. <Column id="roomcd" type="STRING"/>
  201. <Column id="enddd" type="STRING"/>
  202. <Column id="action" type="STRING"/>
  203. <Column id="prcpdd" type="STRING"/>
  204. <Column id="prcpno" type="STRING"/>
  205. <Column id="prcphistno" type="STRING"/>
  206. <Column id="execprcpno" type="STRING"/>
  207. <Column id="instcd" type="STRING"/>
  208. <Column id="execdeptcd" type="STRING"/>
  209. <Column id="oiflag" type="STRING"/>
  210. <Column id="note" type="STRING"/>
  211. </ColumnInfo>
  212. </Dataset>
  213. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="basecd" type="STRING" size="256"/>
  216. <Column id="execdd" type="STRING" size="256"/>
  217. <Column id="exeflag" type="STRING" size="256"/>
  218. <Column id="flag" type="STRING" size="256"/>
  219. <Column id="deptcd" type="STRING" size="256"/>
  220. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="basecd"/>
  225. <Col id="execdd"/>
  226. <Col id="exeflag">Y</Col>
  227. <Col id="flag"/>
  228. <Col id="deptcd"/>
  229. </Row>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_actingend_endlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="prcpdd" type="STRING" size="256"/>
  235. <Column id="prcpno" type="STRING" size="256"/>
  236. <Column id="prcphistno" type="STRING" size="256"/>
  237. <Column id="execprcpno" type="STRING" size="256"/>
  238. <Column id="instcd" type="STRING" size="256"/>
  239. <Column id="oiflag" type="STRING" size="256"/>
  240. </ColumnInfo>
  241. </Dataset>
  242. <Dataset id="ds_actingend_endflagvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="endflag" type="STRING" size="256"/>
  245. <Column id="execdd" type="STRING" size="256"/>
  246. <Column id="execdeptcd" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. </Dataset>
  249. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  250. </Objects>
  251. <Bind>
  252. <BindItem id="item0" compid="group5.group6.ipt_execdd" propid="value" datasetid="ds_cond" columnid="execdd"/>
  253. <BindItem id="item1" compid="group5.group6.combo1" propid="value" datasetid="ds_cond" columnid="deptcd"/>
  254. <BindItem id="item2" compid="group5.group6.radio1" propid="value" datasetid="ds_cond" columnid="exeflag"/>
  255. <BindItem id="item3" compid="group5.group6.combo2" propid="value" datasetid="ds_cond" columnid="flag"/>
  256. </Bind>
  257. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  258. * System Name :
  259. * Job Name :
  260. * Creator :
  261. * Make Date : 2015-11-13
  262. * Description :
  263. *---------------------------------------------------------------------------------------
  264. * Modify Date Modifier Modify Description
  265. *---------------------------------------------------------------------------------------
  266. * 2015-11-13 Live Converter TF->XP
  267. *
  268. *---------------------------------------------------------------------------------------
  269. ****************************************************************************************/
  270. include "com_commonxp::comm_main.xjs";
  271. include "ast_examcurexp::AEZ0001.xjs";
  272. function fInitialize(){
  273. lf_aezfSetSuppDeptcd(); //화면에서 현재부서정보 가져오기
  274. var today = utlf_getCurrentDate();
  275. ds_cond.setColumn(0,"execdd", today);
  276. ds_cond.setColumn(0,"basesuppdeptcd", frmf_getParameter("AST_DEPTCD"));
  277. //지원부서가져오기
  278. var oParam = {};
  279. oParam.id = "TRAEA00904";
  280. oParam.service = "examcurersrvapp.RsrvRef";
  281. oParam.method = "reqGetSuppDeptCdList";
  282. oParam.inds = "req=ds_cond";
  283. oParam.outds = "ds_init_combo1=item";
  284. oParam.async = false;
  285. //oParam.callback = "cf_TRAEA00904";
  286. tranf_submit(oParam);
  287. // 세션에서 부서 코드를 받아온다.
  288. var dutplcecd = sysf_getUserInfo("dutplcecd") ;
  289. //alert(" dutplcecd = " + dutplcecd );
  290. grdf_initGrid(group5.grd_projlist); //그리드 헤더에 체크박스 설정
  291. ds_grd_projlist.clearData();
  292. // 콤보에 전체선택 추가
  293. //addComboItem("combo1", "-전체-", "-", "above");
  294. if(dutplcecd == "1000000000"){
  295. dsf_addDsItem( ds_init_combo1, "suppdeptcd","depthngnm", "-전체-", "-", "above");
  296. }
  297. var combo1Index = 0;
  298. // AST 로 로그인 안했을 경우, 콤보박스에 해당 부서이름만 나오게 한다. (AST 로그인 시에는 콤보박스에서 부서 선택 가능)
  299. if(dutplcecd != "1000000000"){
  300. //var nodeList = root.selectNodes("/root/send/cond/deptcd");
  301. for(var i = 0; i < ds_init_combo1.rowcount; i++){
  302. if(ds_init_combo1.getColumn(i,"suppdeptcd") == dutplcecd){
  303. combo1Index = i;
  304. break;
  305. }
  306. }
  307. group5.group6.combo1.index = combo1Index;
  308. group5.group6.combo1.enable = false;
  309. }else{
  310. group5.group2.button6.visible = false;
  311. }
  312. group5.group6.combo2.index = 1; //마감전
  313. group5.group6.combo1.value = frmf_getParameter("AST_DEPTCD"); //내시경 선택
  314. }
  315. function fGetActingList(){
  316. ds_grd_projlist.clearData();
  317. if (!utlf_isNull(group5.group6.combo1.value)) {
  318. var oParam = {};
  319. oParam.id = "TRABC02004";
  320. oParam.service = "actingendapp.ActingEnd";
  321. oParam.method = "reqGetActingMsetEndList";
  322. oParam.inds = "req=ds_cond";
  323. oParam.outds = "ds_grd_projlist=proj";
  324. oParam.async = false;
  325. //oParam.callback = "cf_TRABC02004";
  326. tranf_submit(oParam);
  327. ds_grd_projlist.addColumn("check","string");
  328. grdf_setToolTipBind(group5.grd_projlist);
  329. }
  330. }
  331. function SMABC02100_oninit(obj:Form, e:InitEventInfo)
  332. {
  333. frmf_initForm(obj); // 화면공통
  334. }
  335. function SMABC02100_onload(obj:Form, e:LoadEventInfo)
  336. {
  337. grdf_initGrid(group5.grd_projlist);
  338. fInitialize();
  339. fGetActingList();
  340. }
  341. function group5_group6_ipt_execdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  342. {
  343. fGetActingList();
  344. }
  345. function group5_group6_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  346. {
  347. obj.updateToDataset();
  348. if (ds_cond.getColumn(0,"deptcd") != "-" &&
  349. ds_cond.getColumn(0,"exeflag") == "Y" &&
  350. ds_cond.getColumn(0,"flag") =="before"){
  351. group5.group2.button6.visible = true;
  352. }else{
  353. group5.group2.button6.visible = false;
  354. }
  355. fGetActingList();
  356. }
  357. function group5_group6_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  358. {
  359. obj.updateToDataset();
  360. if (ds_cond.getColumn(0,"deptcd") != "-" &&
  361. ds_cond.getColumn(0,"exeflag") == "Y" &&
  362. ds_cond.getColumn(0,"flag") =="before"){
  363. group5.group2.button6.visible = true;
  364. }else{
  365. group5.group2.button6.visible = false;
  366. }
  367. fGetActingList();
  368. }
  369. function group5_group6_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  370. {
  371. obj.updateToDataset();
  372. if (ds_cond.getColumn(0,"deptcd") != "-" &&
  373. ds_cond.getColumn(0,"exeflag") == "Y" &&
  374. ds_cond.getColumn(0,"flag") =="before"){
  375. group5.group2.button6.visible = true;
  376. }else{
  377. group5.group2.button6.visible = false;
  378. }
  379. fGetActingList();
  380. }
  381. function group5_group6_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  382. {
  383. if (ds_cond.getColumn(0,"deptcd") != "-" &&
  384. ds_cond.getColumn(0,"exeflag") == "Y" &&
  385. ds_cond.getColumn(0,"flag") =="before"){
  386. group5.group2.button6.visible = true;
  387. }else{
  388. group5.group2.button6.visible = false;
  389. }
  390. fGetActingList();
  391. }
  392. function group5_group2_button6_onclick(obj:Button, e:ClickEventInfo)
  393. {
  394. ds_actingend_endlist.clearData();
  395. var endListRow = -1;
  396. for(var i = 0; i < ds_grd_projlist.rowcount; i++){
  397. if(ds_grd_projlist.getColumn(i,"check") == "1"){
  398. endListRow = ds_actingend_endlist.addRow();
  399. ds_actingend_endlist.setColumn(endListRow,"prcpdd", ds_grd_projlist.getColumn(i,"prcpdd"));
  400. ds_actingend_endlist.setColumn(endListRow,"prcpno", ds_grd_projlist.getColumn(i,"prcpno"));
  401. ds_actingend_endlist.setColumn(endListRow,"prcphistno", ds_grd_projlist.getColumn(i,"prcphistno"));
  402. ds_actingend_endlist.setColumn(endListRow,"execprcpno", ds_grd_projlist.getColumn(i,"execprcpno"));
  403. ds_actingend_endlist.setColumn(endListRow,"instcd", ds_grd_projlist.getColumn(i,"instcd"));
  404. ds_actingend_endlist.setColumn(endListRow,"oiflag", ds_grd_projlist.getColumn(i,"oiflag"));
  405. }
  406. }
  407. ds_actingend_endflagvalue.clearData();
  408. // 체크된 행이 있으면 마감실행
  409. if(endListRow != -1){
  410. ds_actingend_endflagvalue.addRow();
  411. ds_actingend_endflagvalue.setColumn(0,"endflag", "A12");
  412. ds_actingend_endflagvalue.setColumn(0,"execdd", ds_cond.getColumn(0,"execdd"));
  413. ds_actingend_endflagvalue.setColumn(0,"execdeptcd", ds_cond.getColumn(0,"deptcd"));
  414. var oParam = {};
  415. oParam.id = "TRABC02003";
  416. oParam.service = "actingendapp.ActingEnd";
  417. oParam.method = "reqExeActingEnd";
  418. oParam.inds = "req=ds_actingend_endlist flag=ds_actingend_endflagvalue";
  419. oParam.outds = "ds_result=ret";
  420. oParam.async = false;
  421. oParam.callback = "cf_TRABC02003";
  422. tranf_submit(oParam);
  423. fGetActingList();
  424. alert("마감되었습니다");
  425. }
  426. }
  427. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  428. {
  429. fInitialize();
  430. }
  431. ]]></Script>
  432. </Form>
  433. </FDL>