SMPAS01370_월별수혈자내역.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPAS01370" position="absolute 0 0 1211 784" titletext="월별 수혈자 내역" onload="SMPAS01370_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 0 1211 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption60" class="tit_1" position="absolute 0 0 190 14" style="font:돋움,,돋움;align: middle;" text="월별수혈자내역" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" position="absolute 4 22 1207 57" style="">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1202 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
  18. <Static id="caption2" class="search_name" position="absolute 10 9 80 26" style="" text="기간 :" />
  19. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1130 7 1133 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  20. <Button id="btn_search" class="btn1_letter2" position="absolute 1139 7 1195 29" style="" text="조회" onclick="group2_btn_search_onclick" />
  21. <Calendar id="input7" class="input_default" taborder="7" position="absolute 70 8 170 27" style="" anchor="default" onkeydown="group2_input7_onkeydown" />
  22. <Calendar id="input1" class="input_default" taborder="7" position="absolute 195 8 295 27" style="" anchor="default" onkeydown="group2_input1_onkeydown" />
  23. <Static id="caption5" class="search_name" position="absolute 315 8 390 25" style="font:,,bold;" text="구분 :" />
  24. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo1" position="absolute 565 8 665 27" style="">
  25. <Dataset id="innerdataset">
  26. <ColumnInfo>
  27. <Column id="codecolumn" />
  28. <Column id="datacolumn" />
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="codecolumn">1</Col>
  33. <Col id="datacolumn">외래</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">2</Col>
  37. <Col id="datacolumn">입원</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">3</Col>
  41. <Col id="datacolumn">응급</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Combo>
  46. <Static id="caption1" position="absolute 175 10 190 25" style="" text="~" />
  47. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ordtype" position="absolute 380 8 540 27" style="" onclick="group2_rdo_ordtype_onclick">
  48. <Dataset id="innerdataset">
  49. <ColumnInfo>
  50. <Column id="codecolumn" />
  51. <Column id="datacolumn" />
  52. </ColumnInfo>
  53. <Rows>
  54. <Row>
  55. <Col id="codecolumn">1</Col>
  56. <Col id="datacolumn">일자</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">2</Col>
  60. <Col id="datacolumn">월별</Col>
  61. </Row>
  62. <Row>
  63. <Col id="codecolumn">3</Col>
  64. <Col id="datacolumn">년별</Col>
  65. </Row>
  66. </Rows>
  67. </Dataset>
  68. </Radio>
  69. </Layout>
  70. </Layouts>
  71. </Div>
  72. <Grid id="datagrid4" binddataset="ds_main_grdmonthbloodman_monthbloodmanlist" position="absolute 5 90 1203 771" style="font:,,bold;">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="120" />
  77. <Column size="130" />
  78. <Column size="130" />
  79. <Column size="130" />
  80. <Column size="130" />
  81. <Column size="130" />
  82. <Column size="130" />
  83. <Column size="130" />
  84. <Column size="130" />
  85. </Columns>
  86. <Rows>
  87. <Row size="24" band="head" />
  88. <Row size="24" />
  89. </Rows>
  90. <Band id="head">
  91. <Cell text="등록번호" />
  92. <Cell col="1" text="성명" />
  93. <Cell col="2" text="주민번호" />
  94. <Cell col="3" text="보험유형" />
  95. <Cell col="4" text="수혈대체일" />
  96. <Cell col="5" text="청구일" />
  97. <Cell col="6" text="수혈청구액" />
  98. <Cell col="7" text="수혈삭감액" />
  99. <Cell col="8" text="수혈입금액" />
  100. <Cell col="9" text="수혈미수잔액" />
  101. <Cell col="10" text="입금정리일" />
  102. <Cell col="11" text="" />
  103. <Cell col="12" text="" />
  104. <Cell col="13" text="" />
  105. <Cell col="14" text="" />
  106. <Cell col="15" text="" />
  107. <Cell col="16" text="" />
  108. <Cell col="17" text="" />
  109. <Cell col="18" text="" />
  110. </Band>
  111. <Band id="body">
  112. <Cell text="bind:pid" />
  113. <Cell col="1" text="bind:hngnm" />
  114. <Cell col="2" text="bind:rrgstno" />
  115. <Cell col="3" text="bind:cdnm" />
  116. <Cell col="4" text="bind:rcptexecdd" />
  117. <Cell col="5" text="bind:discamt" />
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. <Static id="caption6" position="absolute 7 70 90 90" style="font:,,bold;" text="가톨릭대학교" />
  123. <Edit id="output1" position="absolute 100 70 200 89" style="" anchor="default" readonly="true" />
  124. </Layout>
  125. </Layouts>
  126. <Objects>
  127. <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  128. <ColumnInfo>
  129. <Column id="fromdd" type="STRING" size="256" />
  130. <Column id="todd" type="STRING" size="256" />
  131. <Column id="goobun" type="STRING" size="256" />
  132. <Column id="ordtype" type="STRING" size="256" />
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="fromdd"></Col>
  137. <Col id="todd"></Col>
  138. <Col id="goobun"></Col>
  139. <Col id="ordtype"></Col>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  144. <ColumnInfo />
  145. </Dataset>
  146. <Dataset id="ds_main_grdmonthbloodman" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  147. <ColumnInfo>
  148. <Column id="monthbloodmanlist" type="STRING" size="256" />
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="monthbloodmanlist"></Col>
  153. </Row>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_hospital" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  157. <ColumnInfo>
  158. <Column id="hospital" type="STRING" size="256" />
  159. </ColumnInfo>
  160. </Dataset>
  161. </Objects>
  162. <Bind>
  163. <BindItem id="item0" compid="group2.input7" propid="value" datasetid="ds_search" columnid="fromdd" />
  164. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_search" columnid="todd" />
  165. <BindItem id="item2" compid="group2.combo1" propid="value" datasetid="ds_search" columnid="ordtype" />
  166. <BindItem id="item3" compid="group2.rdo_ordtype" propid="value" datasetid="ds_search" columnid="goobun" />
  167. <BindItem id="item4" compid="output1" propid="value" datasetid="_root" columnid="hospital" />
  168. </Bind>
  169. <Script type="xscript4.0"><![CDATA[function SMPAS01370_onload(obj:Form, e:LoadEventInfo) {
  170. frmf_initForm(obj);
  171. //grdf_initGrid(grd_XXX);
  172. //grdf_setGridSort(grd_XXX);
  173. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  174. var arrParam = [ {dsNm: "ds_init_comncdlist_P0008list","ds_init_comncdlist_P0021list","ds_init_comncdlist_P0341list","ds_init_comncdlist_P0022list","ds_init_comncdlist_P0020list"
  175. ,"ds_init_comncdlist_P0029list","ds_init_comncdlist_P0344list", "ds_init_comncdlist_P0010list",
  176. cdGrpId: "P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010" } ];
  177. appf_getCodeList(arrParam, );
  178. //진료과코드 진료의사ID 조회
  179. //pamGetDeptCDDrIDList();
  180. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  181. fInitialize();
  182. }
  183. include '../../.._com_commonweb_js_common.js'
  184. include '../../.._com_commonweb_js_utilHelper.js'
  185. include '../../.._com_commonweb_js_tfHelper.js'
  186. include '../../.._com_commonweb_js_dateHelper.js'
  187. include '../../.._com_commonweb_js_numericHelper.js'
  188. include '../../.._com_commonweb_js_stringHelper.js'
  189. include '../../.._com_basiccodeweb_js_ZBC001.js'
  190. include '../../.._com_zipcodeweb_js_ZBP001.js'
  191. function fInitialize() {
  192. //날자 입력 항목에 오늘 날자 세팅
  193. var curDate = utlf_getCurrentDate();
  194. curDate = curDate.toDate().getAddDate(-1,"D");
  195. var nextDate = curDate.getFullYear();
  196. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  197. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  198. ds_search.setColumn( 0, "fromdd", nextDate);
  199. ds_search.setColumn( 0, "todd", nextDate);
  200. group2.combo1.select(0);
  201. group2.rdo_ordtype.select(0);
  202. //model.refresh();
  203. }
  204. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  205. // submit("TRPAS01371");
  206. var oParam = {};
  207. oParam.id = "TRPAS01371";
  208. oParam.service = "planteamstatsapp.planTeamOrdStats";
  209. oParam.method = "reqGetMonthBloodManInfo";
  210. oParam.inds = "req=ds_";
  211. oParam.outds = "ds_=monthbloodmanlist";
  212. oParam.async = false;
  213. oParam.callback = "cf_TRPAS01371";
  214. tranf_submit(oParam);
  215. /*
  216. function cf_TRPAS01371(sSvcId, nErrorCode, sErrorMsg) {
  217. if(nErrorCode < 0) return;
  218. }
  219. function cf_TRPAS01371(sSvcId, nErrorCode, sErrorMsg) {
  220. arErrorCode.push(sSvcId, nErrorCode);
  221. }
  222. arErrorCode.pop("TRPAS01371") > -1
  223. arErrorCode.pop("TRPAS01371") < 0
  224. */
  225. }
  226. function group2_input7_onkeydown(obj:Calendar, e:KeyEventInfo) {
  227. if( event.keyCode == 13 ) {
  228. var pCurTargetObj = event.ptarget.parent;
  229. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  230. event.keyCode = 9;
  231. pCurTargetObj.dispatch("onkeydown");
  232. }
  233. else {
  234. event.keyCode = 9;
  235. }
  236. }
  237. event.stopPropagation();
  238. }
  239. function group2_input1_onkeydown(obj:Calendar, e:KeyEventInfo) {
  240. if( event.keyCode == 13 ) {
  241. var pCurTargetObj = event.ptarget.parent;
  242. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  243. event.keyCode = 9;
  244. pCurTargetObj.dispatch("onkeydown");
  245. }
  246. else {
  247. event.keyCode = 9;
  248. }
  249. }
  250. event.stopPropagation();
  251. }
  252. function group2_rdo_ordtype_onclick(obj:Radio, e:ClickEventInfo) {
  253. if(group2.rdo_ordtype.value == 1 ){
  254. group2.input1.visible = true ;
  255. group2.caption1.visible= true ;
  256. }else if(group2.rdo_ordtype.value == 2){
  257. group2.input1.visible = false ;
  258. group2.caption1.visible = false ;
  259. }else if(group2.rdo_ordtype.value==3){
  260. group2.input1.visible = false ;
  261. group2.caption1.visible = false ;
  262. }
  263. //model.refresh();
  264. }
  265. ]]></Script>
  266. </Form>
  267. </FDL>