SMMND02600_T-set관리현황조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMND02600" position="absolute 0 0 1202 791" titletext="T-set 관리현황 조회" onload="SMMND02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 13 1195 757" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="grp_sea" position="absolute 0 10 1194 45" style="align: top;" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption2" class="search_name" position="absolute 320 10 406 27" style="" text="조회기간 :" anchor="default"/>
  14. <Button id="button1" class="btn1" position="absolute 1038 7 1094 29" style="" text="조회" onclick="group3_grp_sea_button1_onclick" anchor="default"/>
  15. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1022 7 1025 29" style="" anchor="default"/>
  16. <Calendar id="ipt_fromdd" class="input_s_essential" position="absolute 411 8 504 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  17. <Static id="caption1" position="absolute 509 11 524 26" style="font:,,bold;" text="~" anchor="default"/>
  18. <Calendar id="ipt_todd" class="input_s_essential" position="absolute 523 8 616 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  19. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_exchdd" class="radio_search" position="absolute 133 8 289 28" style="background:transparent ;" onitemchanged="group3_grp_sea_rdo_exchdd_onitemchanged" anchor="default">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">1</Col>
  28. <Col id="datacolumn">교환일자</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">2</Col>
  32. <Col id="datacolumn">교환예정일</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Radio>
  37. <Button id="button2" class="btn7" position="absolute 1096 7 1176 29" style="" text="엑셀저장" onclick="group3_grp_sea_button2_onclick" anchor="default"/>
  38. <Button id="button3" class="btn6" visible="false" position="absolute 955 6 1011 28" style="" text="출력" anchor="default"/>
  39. <Static id="caption3" class="search_name" position="absolute 20 9 132 26" style="" text="조회일자기준 :" anchor="default"/>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 56 1194 60" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  44. <Grid id="grd_mngtprescondinfo" binddataset="ds_main_mngtprescondlist_mngtprescondinfo" position="absolute 0 60 1194 740" style="align:center ;">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="150"/>
  49. <Column size="168"/>
  50. <Column size="92"/>
  51. <Column size="165"/>
  52. <Column size="165"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell text="등록번호"/>
  60. <Cell col="1" text="환자명"/>
  61. <Cell col="2" text="S_A"/>
  62. <Cell col="3" text="교환일자"/>
  63. <Cell col="4" text="교환예정일"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell text="bind:pid"/>
  67. <Cell col="1" text="bind:hngnm"/>
  68. <Cell col="2" text="bind:sexage"/>
  69. <Cell col="3" displaytype="date" text="bind:exchdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  70. <Cell col="4" displaytype="date" text="bind:scheexchdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Static id="caption6" class="tit_1" position="absolute 0 0 157 23" style="" text="T-set 관리현황조회"/>
  79. <Div id="grp_btn" position="absolute 3 757 1191 784" style=""/>
  80. </Layout>
  81. </Layouts>
  82. <Objects>
  83. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  84. <ColumnInfo>
  85. <Column id="fromdd" type="STRING" size="256"/>
  86. <Column id="todd" type="STRING" size="256"/>
  87. <Column id="exchdd" type="STRING" size="256"/>
  88. </ColumnInfo>
  89. </Dataset>
  90. <Dataset id="ds_main_mngtprescondlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  91. <ColumnInfo/>
  92. </Dataset>
  93. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  94. <ColumnInfo/>
  95. </Dataset>
  96. <Dataset id="ds_main_mngtprescondlist_mngtprescondinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  97. <ColumnInfo>
  98. <Column id="pid" type="STRING" size="256"/>
  99. <Column id="hngnm" type="STRING" size="256"/>
  100. <Column id="sexage" type="STRING" size="256"/>
  101. <Column id="exchdd" type="STRING" size="256"/>
  102. <Column id="scheexchdd" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row>
  106. <Col id="pid"/>
  107. <Col id="hngnm"/>
  108. <Col id="sexage"/>
  109. <Col id="exchdd"/>
  110. <Col id="scheexchdd"/>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  115. <ColumnInfo/>
  116. </Dataset>
  117. </Objects>
  118. <Bind>
  119. <BindItem id="item0" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send_cond" columnid="fromdd"/>
  120. <BindItem id="item1" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_send_cond" columnid="todd"/>
  121. <BindItem id="item2" compid="group3.grp_sea.rdo_exchdd" propid="value" datasetid="ds_send_cond" columnid="exchdd"/>
  122. </Bind>
  123. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  124. //include 'emr_dialroomxp::SMMND02600.xjs';
  125. function SMMND02600_onload(obj:Form, e:LoadEventInfo) {
  126. frmf_initForm(obj);
  127. grdf_initGrid(group3.grd_mngtprescondinfo);
  128. //grdf_setGridSort(grd_XXX);
  129. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  130. //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
  131. fInit(); // 초기화
  132. fSrchMngtPresCond(); // t-set관리현황을 조회
  133. }
  134. // header파일 중 SMMND02600.js 파일 시작
  135. /*
  136. T-set관리현황조회 (SMMND02600.xrw - JScript )
  137. - Version :
  138. 1) : Ver.1.00.01
  139. */
  140. /**
  141. * _group :
  142. * _ver : 2007.11.05
  143. * _by : 김진아
  144. * _---------------------------------------------------
  145. * _type : function
  146. * _access : public
  147. * _desc : 초기화
  148. * _param :
  149. * _return :
  150. * _---------------------------------------------------
  151. */
  152. function fInit(){
  153. //초기화
  154. // var currentdate = utlf_getCurrentDate();
  155. // var sdate = ((currentdate.toDate()).getAddDate(-1, "M")).getDateFormat();
  156. // ds_send_cond.setColumn( 0, "fromdd", sdate); //시작일
  157. ds_send_cond.clearData();
  158. ds_send_cond.addRow();
  159. ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
  160. ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
  161. ds_send_cond.setColumn( 0, "exchdd", "2"); //교환일자, 교환예정일 구분 -> default는 교환일자
  162. //ds_main_mngtprescondlist.clearData(); //그리드초기화
  163. fSrchMngtPresCond();
  164. }
  165. /**
  166. * _group :
  167. * _ver : 2007.10.10
  168. * _by : 김달현
  169. * _---------------------------------------------------
  170. * _type : function
  171. * _access : public
  172. * _desc : 교환일자_교환예정일 별 t-set관리현황을 조회한다.
  173. * _param :
  174. * _return :
  175. * _---------------------------------------------------
  176. */
  177. function fSrchMngtPresCond(){
  178. var exchdd = ds_send_cond.getColumn(0, "exchdd"); //교환일자_교환예정일 구분
  179. //조회조건
  180. if(exchdd == "2"){
  181. group3.grp_sea.caption2.visible = true;
  182. group3.grp_sea.ipt_fromdd.visible = true;
  183. group3.grp_sea.ipt_todd.visible = true;
  184. group3.grp_sea.caption1.visible = true;
  185. //ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
  186. //ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
  187. }else{
  188. group3.grp_sea.caption2.visible = false;
  189. group3.grp_sea.ipt_fromdd.visible = false;
  190. group3.grp_sea.ipt_todd.visible = false;
  191. group3.grp_sea.caption1.visible = false;
  192. }
  193. var sdate = ds_send_cond.getColumn(0, "fromdd"); //시작일
  194. var edate = ds_send_cond.getColumn(0, "todd"); //종료일
  195. ds_send_cond.setColumn( 0, "fromdd", sdate); //시작일
  196. ds_send_cond.setColumn( 0, "todd" , edate); //종료일
  197. ds_send_cond.setColumn( 0, "exchdd", exchdd); //교환일자, 교환예정일 구분 -> default는 교환일자
  198. ds_main_mngtprescondlist_mngtprescondinfo.clearData(); //그리드초기화
  199. //submit("TRMND02601");
  200. var oParam = {};
  201. oParam.id = "TRMND02601";
  202. oParam.service = "dialapp.DialSpcl";
  203. oParam.method = "reqGetTSetMngtPresCondRef";
  204. oParam.inds = "req=ds_send_cond";
  205. oParam.outds = "ds_main_mngtprescondlist_mngtprescondinfo=mngtprescondinfo";
  206. oParam.async = false;
  207. tranf_submit(oParam);
  208. }
  209. // header파일 중 SMMND02600.js 파일 끝
  210. function group3_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo) {
  211. fSrchMngtPresCond(); // t-set관리현황을 조회
  212. }
  213. function group3_grp_sea_rdo_exchdd_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  214. if(group3.grp_sea.rdo_exchdd.value == "2"){
  215. ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
  216. ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
  217. }else{
  218. ds_send_cond.setColumn( 0, "fromdd", ""); //시작일
  219. ds_send_cond.setColumn( 0, "todd" , ""); //종료일
  220. }
  221. fSrchMngtPresCond(); // t-set관리현황을 조회
  222. }
  223. function group3_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo) {
  224. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  225. //
  226. // if (fileName != "")
  227. // {
  228. grdf_exportExcel(group3.grd_mngtprescondinfo, "Sheet1", "T-set 관리현황", false, "" , 'user' , true);
  229. // }
  230. }
  231. ]]></Script>
  232. </Form>
  233. </FDL>