SSMNA00400_성분헌혈실혈액불출현황.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMNA00400" position="absolute 0 0 1195 784" titletext="성분헌혈실 혈액불출현황" onload="SSMNA00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" position="absolute 0 26 1189 61" style="align: top;" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1107 7 1110 29" style="" anchor="top right"/>
  11. <Button id="btn_select" class="btn1" position="absolute 1123 7 1179 29" style="" text="조회" onclick="grp_sea_btn_select_onclick" anchor="top right"/>
  12. <Static id="caption3" class="search_name" position="absolute 285 9 360 26" style="align: middle;" text="구분 :" anchor="left top"/>
  13. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ioflag" position="absolute 368 8 533 28" style="" onclick="grp_sea_rdo_ioflag_onclick" anchor="left top">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn"/>
  17. <Column id="datacolumn"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">A</Col>
  22. <Col id="datacolumn">전체</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">I</Col>
  26. <Col id="datacolumn">입원</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">O</Col>
  30. <Col id="datacolumn">외래</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Static id="cap_dept" class="search_name" position="absolute 540 10 618 27" style="align: middle;" text="진료과 :" anchor="left top"/>
  36. <Combo innerdataset="ds_hidden_deptinfo_indeptinfo_deptlist" datacolumn="deptnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_dept" position="absolute 620 8 715 27" style="" onitemclick="grp_sea_cmb_dept_onitemclick" anchor="left top"/>
  37. <Static id="cap_dr" class="search_name" position="absolute 735 10 821 27" style="align: middle;" text="주치의 :" anchor="left top"/>
  38. <Combo innerdataset="ds_hidden_userinfo_drlist" datacolumn="usernm" codecolumn="userid" columncount="-1" rowcount="-1" id="cmb_dr" position="absolute 825 8 920 27" style="" anchor="left top"/>
  39. <Static id="cmb_yymm" class="search_name" position="absolute 15 9 79 26" style="" text="기간 :" anchor="left top"/>
  40. <Calendar id="input2" class="input_search" mask="yyyy-mm" position="absolute 80 8 165 27" style="" anchor="left top"/>
  41. <Combo innerdataset="ds_hidden_wardinfo_deptlist" datacolumn="deptnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_ward" position="absolute 1000 8 1095 27" style="" anchor="left top"/>
  42. <Static id="cap_ward" class="search_name" position="absolute 935 10 1001 27" style="align: middle;" text="병동 :" anchor="left top"/>
  43. <Calendar id="input1" class="input_search" mask="yyyy-mm" position="absolute 195 8 280 27" style="" anchor="left top"/>
  44. <Static id="caption1" position="absolute 175 10 190 30" style="" text="~" anchor="left top"/>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Static id="caption6" text="성분헌혈실 혈액 불출현황" class="tit_1" position="absolute 0 0 220 26"/>
  49. <Grid id="datagrid1" taborder="1" binddataset="ds_main_workinfo_worklist" useinputpanel="false" position="absolute 0 64 1189 739" anchor="all">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="95"/>
  54. <Column size="100"/>
  55. <Column size="75"/>
  56. <Column size="75"/>
  57. <Column size="75"/>
  58. <Column size="75"/>
  59. <Column size="75"/>
  60. <Column size="75"/>
  61. <Column size="75"/>
  62. <Column size="75"/>
  63. <Column size="75"/>
  64. <Column size="75"/>
  65. <Column size="75"/>
  66. <Column size="75"/>
  67. <Column size="51"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="24" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell text="구분"/>
  75. <Cell col="1" text="세부항목"/>
  76. <Cell col="2" text="1월"/>
  77. <Cell col="3" text="2월"/>
  78. <Cell col="4" text="3월"/>
  79. <Cell col="5" text="4월"/>
  80. <Cell col="6" text="5월"/>
  81. <Cell col="7" text="6월"/>
  82. <Cell col="8" text="7월"/>
  83. <Cell col="9" text="8월"/>
  84. <Cell col="10" text="9월"/>
  85. <Cell col="11" text="10월"/>
  86. <Cell col="12" text="11월"/>
  87. <Cell col="13" text="12월"/>
  88. <Cell col="14" text="Total"/>
  89. </Band>
  90. <Band id="body">
  91. <Cell text="bind:lrgnm"/>
  92. <Cell col="1" text="bind:mdlnm"/>
  93. <Cell col="2" text="bind:d01"/>
  94. <Cell col="3" text="bind:d02"/>
  95. <Cell col="4" text="bind:d03"/>
  96. <Cell col="5" text="bind:d04"/>
  97. <Cell col="6" text="bind:d05"/>
  98. <Cell col="7" text="bind:d06"/>
  99. <Cell col="8" text="bind:d07"/>
  100. <Cell col="9" text="bind:d08"/>
  101. <Cell col="10" text="bind:d09"/>
  102. <Cell col="11" text="bind:d10"/>
  103. <Cell col="12" text="bind:d11"/>
  104. <Cell col="13" text="bind:d12"/>
  105. <Cell col="14" text="bind:totdd"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. </Layout>
  111. </Layouts>
  112. <Objects>
  113. <Dataset id="ds_hidden_wardinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  114. <ColumnInfo>
  115. <Column id="deptcd" type="STRING" size="256"/>
  116. <Column id="deptnm" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="deptcd"/>
  121. <Col id="deptnm"/>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  126. <ColumnInfo/>
  127. </Dataset>
  128. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo>
  130. <Column id="fromdd" type="STRING" size="256"/>
  131. <Column id="todd" type="STRING" size="256"/>
  132. <Column id="ioflag" type="STRING" size="256"/>
  133. <Column id="deptcd" type="STRING" size="256"/>
  134. <Column id="wardcd" type="STRING" size="256"/>
  135. <Column id="drid" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="fromdd"/>
  140. <Col id="todd"/>
  141. <Col id="ioflag"/>
  142. <Col id="deptcd"/>
  143. <Col id="wardcd"/>
  144. <Col id="drid"/>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_hidden_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  149. <ColumnInfo/>
  150. </Dataset>
  151. <Dataset id="ds_hidden_indeptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  152. <ColumnInfo/>
  153. </Dataset>
  154. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  155. <ColumnInfo/>
  156. </Dataset>
  157. <Dataset id="ds_hidden_indeptinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  158. <ColumnInfo>
  159. <Column id="deptcd" type="STRING" size="256"/>
  160. <Column id="deptnm" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="deptcd"/>
  165. <Col id="deptnm"/>
  166. </Row>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_main_workinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  170. <ColumnInfo>
  171. <Column id="worklist" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="worklist"/>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_hidden_outdeptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  180. <ColumnInfo/>
  181. </Dataset>
  182. <Dataset id="ds_hidden_wardinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  183. <ColumnInfo/>
  184. </Dataset>
  185. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  186. <ColumnInfo>
  187. <Column id="send" type="STRING" size="256"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_hidden_outdeptinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  191. <ColumnInfo>
  192. <Column id="deptcd" type="STRING" size="256"/>
  193. <Column id="deptnm" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="deptcd"/>
  198. <Col id="deptnm"/>
  199. </Row>
  200. </Rows>
  201. </Dataset>
  202. <Dataset id="ds_hidden_userinfo_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  203. <ColumnInfo>
  204. <Column id="userid" type="STRING" size="256"/>
  205. <Column id="usernm" type="STRING" size="256"/>
  206. </ColumnInfo>
  207. <Rows>
  208. <Row>
  209. <Col id="userid"/>
  210. <Col id="usernm"/>
  211. </Row>
  212. </Rows>
  213. </Dataset>
  214. <Dataset id="ds_hidden_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  215. <Dataset id="ds_temp_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  216. <Dataset id="ds_hidden_drinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  217. </Objects>
  218. <Bind>
  219. <BindItem id="item0" compid="grp_sea.rdo_ioflag" propid="value" datasetid="ds_cond" columnid="ioflag"/>
  220. <BindItem id="item1" compid="grp_sea.cmb_dept" propid="value" datasetid="ds_cond" columnid="deptcd"/>
  221. <BindItem id="item2" compid="grp_sea.cmb_dr" propid="value" datasetid="ds_cond" columnid="drid"/>
  222. <BindItem id="item3" compid="grp_sea.input2" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  223. <BindItem id="item4" compid="grp_sea.cmb_ward" propid="value" datasetid="ds_cond" columnid="wardcd"/>
  224. <BindItem id="item5" compid="grp_sea.input1" propid="value" datasetid="ds_cond" columnid="todd"/>
  225. </Bind>
  226. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  227. * System Name :
  228. * Job Name :
  229. * Creator :
  230. * Make Date : 2016-05-24
  231. * Description :
  232. *---------------------------------------------------------------------------------------
  233. * Modify Date Modifier Modify Description
  234. *---------------------------------------------------------------------------------------
  235. * 2016-05-24 Live Converter TF->XP
  236. *
  237. *---------------------------------------------------------------------------------------
  238. ****************************************************************************************/
  239. include "com_commonxp::comm_main.xjs";
  240. include "sts_stsenrxp::MNA001.xjs";
  241. function SSMNA00400_onload(obj:Form, e:LoadEventInfo) {
  242. frmf_initForm(obj);
  243. //grdf_initGrid(grd_XXX);
  244. //grdf_setGridSort(grd_XXX);
  245. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  246. fInit();
  247. }
  248. // header파일 중 SSMNA00400.js 파일 시작
  249. /********************************************************************************
  250. * _group : APU 혈액불출현황
  251. * _ver : 2008.09.23
  252. * _by : dhkim
  253. * _desc : 성분헌혈실 혈액불출현황 조회
  254. *********************************************************************************/
  255. var curYYYYMMStr = utlf_getCurrentDate().substring(0, 6);
  256. /**
  257. * create : 2008.09.23
  258. * desc : 화면을 초기화한다.
  259. */
  260. function fInit(){
  261. //노드 초기화
  262. ds_cond.clearData();
  263. ds_main_workinfo.clearData();
  264. ds_hidden_deptinfo.clearData();
  265. ds_hidden_wardinfo.clearData();
  266. ds_hidden_drinfo.clearData();
  267. //노드 재생성
  268. dsf_makeValue( ds_main, "workinfo", "string", "" );
  269. dsf_makeValue( ds_hidden, "deptinfo", "string", "" );
  270. dsf_makeValue( ds_hidden, "wardinfo", "string", "" );
  271. dsf_makeValue( ds_hidden, "drinfo", "string", "" );
  272. var yyyymm = curYYYYMMStr; //default
  273. var ioflag = 'A'; //default
  274. fShowCondition("grp_sea.cap_ward", "grp_sea.cmb_ward", "grp_sea.cap_dept", "grp_sea.cmb_dept", "grp_sea.cap_dr", "grp_sea.cmb_dr", ioflag);//조건 hidden_visible
  275. //진료과, 병동리스트조회
  276. fGetDeptInfo('O', yyyymm, ds_send, ds_hidden_outdeptinfo);//외래진료과
  277. fGetDeptInfo('I', yyyymm, ds_send, ds_hidden_indeptinfo); //입원진료과
  278. fGetDeptInfo('W', yyyymm, ds_send, ds_hidden_wardinfo); //병동
  279. //조회조건 default 세팅
  280. //dsf_makeValue( ds_cond, "yyyymm", "string", curYYYYMMStr);//조회년월 : 현재년월
  281. //20081230
  282. dsf_makeValue( ds_cond, "fromdd", "string", curYYYYMMStr);//조회시작년월 : 현재년월
  283. dsf_makeValue( ds_cond, "todd", "string", curYYYYMMStr);//조회종료년월 : 현재년월
  284. dsf_makeValue( ds_cond, "ioflag", "string", 'A');//외래입원구분 : 전체
  285. dsf_makeValue( ds_cond, "deptcd", "string", '');//진료과 : 전체
  286. dsf_makeValue( ds_cond, "wardcd", "string", '');//병동 : 전체
  287. dsf_makeValue( ds_cond, "drid", "string", '');//주치의 : 전체
  288. //model.refresh();
  289. }
  290. /**
  291. * create : 2008.09.23
  292. * desc : 성분헌혈실 혈액불출현황조회
  293. */
  294. function fSearchApuEqmtList(){
  295. //조회조건
  296. //var stdym = ds_cond.getColumn(0, "yyyymm");
  297. //20081230
  298. var fromdd = ds_cond.getColumn(0, "fromdd");
  299. var todd = ds_cond.getColumn(0, "todd");
  300. var ioflag = ds_cond.getColumn(0, "ioflag");
  301. var deptcd = ds_cond.getColumn(0, "deptcd");
  302. var drid = ds_cond.getColumn(0, "drid");
  303. var wardcd = ds_cond.getColumn(0, "wardcd");
  304. //조회조건 널처리
  305. /*
  306. if(stdym == null || stdym == ''){
  307. stdym = curYYYYMMStr;
  308. }
  309. */
  310. //20081230
  311. if(fromdd == null || fromdd == ''){
  312. fromdd = curYYYYMMStr;
  313. }
  314. if(todd == null || todd == ''){
  315. todd = curYYYYMMStr;
  316. }
  317. if(ioflag == null || ioflag == ''){
  318. ioflag = 'A';
  319. }
  320. if(deptcd == null){
  321. deptcd = '';
  322. }
  323. if(drid == null){
  324. drid = '';
  325. }
  326. if(wardcd == null){
  327. wardcd == '';
  328. }
  329. if(ioflag == 'O'){
  330. if(wardcd != null || wardcd != ''){
  331. wardcd == '';
  332. }
  333. }
  334. //20081230
  335. //같은 년도의 데이터만 조회가능
  336. if(fromdd.substring(0, 4) != todd.substring(0, 4)){
  337. sysf_messageBox('조회 시작년도와 종료년도를 동일하게 적용해 주십시오', 'E009');
  338. return;
  339. }
  340. //request전 parameter send처리
  341. ds_send.clearData();
  342. //dsf_makeValue( ds_send, "stdym", "string", stdym + '%');
  343. //20081230
  344. dsf_makeValue( ds_send, "fromdd", "string", fromdd + '01');
  345. dsf_makeValue( ds_send, "todd", "string", todd + '31');
  346. dsf_makeValue( ds_send, "ioflag", "string", ioflag);
  347. dsf_makeValue( ds_send, "deptcd", "string", deptcd);
  348. dsf_makeValue( ds_send, "drid", "string", drid);
  349. dsf_makeValue( ds_send, "wardcd", "string", wardcd);
  350. dsf_makeValue( ds_send, "eqapuflag", "string", '2');//장비별_혈액불출별
  351. var oParam = {};
  352. oParam.id = "TRSNA00103";
  353. oParam.service = "stsenrapp.StsApuMngt";
  354. oParam.method = "reqGetApuWorkList";
  355. oParam.inds = "req=ds_send";
  356. oParam.outds = "ds_main_workinfo_worklist=worklist";
  357. oParam.async = false;
  358. //oParam.callback = "cf_TRSNA00103";
  359. tranf_submit(oParam);
  360. }
  361. // header파일 중 SSMNA00400.js 파일 끝
  362. function grp_sea_btn_select_onclick(obj:Button, e:ClickEventInfo) {
  363. fSearchApuEqmtList();
  364. }
  365. function grp_sea_rdo_ioflag_onclick(obj:Radio, e:ClickEventInfo) {
  366. fShowCondition("grp_sea.cap_ward", "grp_sea.cmb_ward", "grp_sea.cap_dept", "grp_sea.cmb_dept", "grp_sea.cap_dr", "grp_sea.cmb_dr", grp_sea.rdo_ioflag.value);
  367. }
  368. function grp_sea_cmb_dept_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  369. var yyyymm = ds_cond.getColumn(0, "yyyymm");
  370. if(yyyymm == null || yyyymm == '' ){
  371. yyyymm = curYYYYMMStr;
  372. }
  373. fGetUserInfo(grp_sea.cmb_dept.value, yyyymm, 'ds_send', 'ds_hidden_userinfo');
  374. //model.refresh();
  375. }
  376. ]]></Script>
  377. </Form>
  378. </FDL>