SMANT01100_환자조건별조회.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANT01100" position="absolute 0 0 1202 776" titletext="환자조건별조회" oninit="SMANT01100_oninit" onload="SMANT01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1194 85" align="align:center top;" id="group2" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="분류 :" position="absolute 16 8 80 25" id="caption2" class="search_name"/>
  11. <Button position="absolute 1122 7 1178 29" id="btn_search" class="btn1" taborder="7" text="조회" onclick="group2_btn_search_onclick"/>
  12. <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line13"/>
  13. <Static text="식사명:" position="absolute 560 8 634 25" id="caption7" class="search_name"/>
  14. <Static text="휴일 :" position="absolute 16 35 80 52" id="caption23" class="search_name"/>
  15. <Static text="나 이 :" position="absolute 395 35 490 52" id="caption25" class="search_name"/>
  16. <Static text="섭취일수 :" position="absolute 560 35 646 52" id="caption26" class="search_name"/>
  17. <Edit readonly="true" position="absolute 627 7 695 26" id="opt_dietcd" class="output"/>
  18. <Button position="absolute 700 7 716 23" id="btn_dietcdpopup" class="icon_search" taborder="2" text="" onclick="group2_btn_dietcdpopup_onclick"/>
  19. <MaskEdit position="absolute 465 34 495 53" align="align:center middle;" id="ipt_fage" class="input_search" taborder="4" mask="999" autoselect="true"/>
  20. <Static text="~" position="absolute 499 37 521 52" id="caption28"/>
  21. <MaskEdit position="absolute 513 34 543 53" align="align:center middle;" id="ipt_tage" class="input_search" taborder="5" mask="999" autoselect="true"/>
  22. <MaskEdit position="absolute 646 34 685 53" align="align:center middle;" id="ipt_intkcnt" class="input_search" taborder="6" mask="999" autoselect="true"/>
  23. <Edit readonly="true" position="absolute 720 7 810 26" id="opt_dietnm" class="output"/>
  24. <Static text="검색일자 :" position="absolute 823 8 909 25" id="caption1" class="search_name"/>
  25. <Calendar position="absolute 910 7 995 26" align="align:center middle;" id="ipt_todd" class="input_default" autoselect="true"/>
  26. <Static text="~" position="absolute 997 10 1019 25" id="caption3"/>
  27. <Calendar position="absolute 1010 7 1095 26" align="align:center middle;" id="ipt_fromdd" class="input_default" autoselect="true"/>
  28. <Static text="중분류:" position="absolute 395 8 469 25" id="caption4" class="search_name"/>
  29. <Combo position="absolute 465 7 550 26" id="cmb_mdlcd" class="combo_s_essential" innerdataset="@ds_init_baseinfo_dietmdlcd_A0047" datacolumn="cdnm" codecolumn="cdid"/>
  30. <Static text="입원일자 :" position="absolute 823 35 910 52" id="caption5" class="search_name"/>
  31. <Calendar position="absolute 910 35 995 54" align="align:center middle;" id="ipt_indd" class="input_default" autoselect="true"/>
  32. <cp_checkboxList id="chk_dietlrgcd" titletext="CheckBox List" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 70 5 387 25" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  33. <cp_checkboxList id="chk_holiday" titletext="CheckBox List" taborder="9" text="cp_checkboxList00" scrollbars="none" position="absolute 70 32 387 52" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Shape position="absolute 0 108 1194 114" linetype="horizontal" id="line1" class="line_10"/>
  38. <Static text="환자조건별조회" position="absolute 0 92 120 108" id="caption20" class="tit_2"/>
  39. <Button position="absolute 1142 89 1193 108" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick"/>
  40. <Grid position="absolute 0 113 1194 747" id="grd_patmeal" binddataset="ds_main_patmeal_patmeallist">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="24"/>
  45. <Column size="0"/>
  46. <Column size="50"/>
  47. <Column size="70"/>
  48. <Column size="70"/>
  49. <Column size="80"/>
  50. <Column size="180"/>
  51. <Column size="190"/>
  52. <Column size="170"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="80"/>
  57. <Column size="60"/>
  58. <Column size="60"/>
  59. <Column size="60"/>
  60. </Columns>
  61. <Rows>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. </Rows>
  65. <Band id="head">
  66. <Cell/>
  67. <Cell col="1" text="병동"/>
  68. <Cell col="2" text="병실"/>
  69. <Cell col="3" text="등록번호"/>
  70. <Cell col="4" text="환자명"/>
  71. <Cell col="5" text="성별/나이"/>
  72. <Cell col="6" text="식사명"/>
  73. <Cell col="7" text="특이사항"/>
  74. <Cell col="8" text="remark"/>
  75. <Cell col="9" text="remark1"/>
  76. <Cell col="10" text="remark2"/>
  77. <Cell col="11" text="remark3"/>
  78. <Cell col="12" text="입원일"/>
  79. <Cell col="13" text="재원일수"/>
  80. <Cell col="14" text="섭취일수"/>
  81. <Cell col="15" text="초/재"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell celltype="head" expr="currow + 1"/>
  85. <Cell col="1" text="bind:ward"/>
  86. <Cell col="2" text="bind:room"/>
  87. <Cell col="3" text="bind:pid"/>
  88. <Cell col="4" text="bind:hngnm"/>
  89. <Cell col="5" style="align:left top;padding:5 1 2 1;" text="bind:sex" wordwrap="word"/>
  90. <Cell col="6" style="align:left top;padding:5 1 2 1;" text="bind:dietnm" wordwrap="word"/>
  91. <Cell col="7" style="align:left top;padding:5 1 2 1;" text="bind:remfactnm" wordwrap="word"/>
  92. <Cell col="8" style="align:left top;padding:5 1 2 1;" text="bind:remark" wordwrap="word"/>
  93. <Cell col="9" text="bind:remark1"/>
  94. <Cell col="10" text="bind:remark2"/>
  95. <Cell col="11" text="bind:remark3"/>
  96. <Cell col="12" displaytype="date" text="bind:indd" calendardisplaynulltype="none"/>
  97. <Cell col="13" text="bind:incnt"/>
  98. <Cell col="14" text="bind:intkcnt"/>
  99. <Cell col="15" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:fsexamflag" combodataset="ds_init_baseinfo_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Static id="caption6" text="환자조건별조회" class="tit_1" position="absolute 0 0 189 25"/>
  105. <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1124 748 1192 770" onclick="btn_reset_onclick"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_main_patmeal_patmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="ward" type="STRING" size="256"/>
  112. <Column id="room" type="STRING" size="256"/>
  113. <Column id="pid" type="STRING" size="256"/>
  114. <Column id="hngnm" type="STRING" size="256"/>
  115. <Column id="sex" type="STRING" size="256"/>
  116. <Column id="dietnm" type="STRING" size="256"/>
  117. <Column id="remfactnm" type="STRING" size="256"/>
  118. <Column id="remark" type="STRING" size="256"/>
  119. <Column id="remark1" type="STRING" size="256"/>
  120. <Column id="remark2" type="STRING" size="256"/>
  121. <Column id="remark3" type="STRING" size="256"/>
  122. <Column id="indd" type="STRING" size="256"/>
  123. <Column id="incnt" type="STRING" size="256"/>
  124. <Column id="intkcnt" type="STRING" size="256"/>
  125. <Column id="fsexamflag" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="ward"/>
  130. <Col id="room"/>
  131. <Col id="pid"/>
  132. <Col id="hngnm"/>
  133. <Col id="sex"/>
  134. <Col id="dietnm"/>
  135. <Col id="remfactnm"/>
  136. <Col id="remark"/>
  137. <Col id="remark1"/>
  138. <Col id="remark2"/>
  139. <Col id="remark3"/>
  140. <Col id="indd"/>
  141. <Col id="incnt"/>
  142. <Col id="intkcnt"/>
  143. <Col id="fsexamflag"/>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  148. <ColumnInfo>
  149. <Column id="popupendflag" type="STRING" size="256"/>
  150. </ColumnInfo>
  151. <Rows>
  152. <Row>
  153. <Col id="popupendflag"/>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="dietlrgcd" type="STRING" size="256"/>
  160. <Column id="dietmdlcd" type="STRING" size="256"/>
  161. <Column id="dietnm" type="STRING" size="256"/>
  162. <Column id="dietcd" type="STRING" size="256"/>
  163. <Column id="holiday" type="STRING" size="256"/>
  164. <Column id="holiday1" type="STRING" size="256"/>
  165. <Column id="holiday2" type="STRING" size="256"/>
  166. <Column id="holiday3" type="STRING" size="256"/>
  167. <Column id="fage" type="STRING" size="256"/>
  168. <Column id="tage" type="STRING" size="256"/>
  169. <Column id="intkcnt" type="STRING" size="256"/>
  170. <Column id="fromdd" type="STRING" size="256"/>
  171. <Column id="todd" type="STRING" size="256"/>
  172. <Column id="indd" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="dietlrgcd"/>
  177. <Col id="dietmdlcd"/>
  178. <Col id="dietnm"/>
  179. <Col id="dietcd"/>
  180. <Col id="holiday"/>
  181. <Col id="holiday1"/>
  182. <Col id="holiday2"/>
  183. <Col id="holiday3"/>
  184. <Col id="fage"/>
  185. <Col id="tage"/>
  186. <Col id="intkcnt"/>
  187. <Col id="fromdd"/>
  188. <Col id="todd"/>
  189. <Col id="indd"/>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_init_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="dietlrgcd" type="STRING" size="256"/>
  196. <Column id="dietmdlcd" type="STRING" size="256"/>
  197. <Column id="fsexamflag" type="STRING" size="256"/>
  198. </ColumnInfo>
  199. <Rows>
  200. <Row>
  201. <Col id="dietlrgcd"/>
  202. <Col id="dietmdlcd"/>
  203. <Col id="fsexamflag"/>
  204. </Row>
  205. </Rows>
  206. </Dataset>
  207. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="count" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="count"/>
  214. </Row>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_cmd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  218. <ColumnInfo>
  219. <Column id="minimum" type="STRING" size="256"/>
  220. <Column id="join" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="minimum"/>
  225. <Col id="join"/>
  226. </Row>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_init_baseinfo_fsexamflag_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  230. <Dataset id="ds_init_baseinfo_dietmdlcd_A0047" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  231. <Dataset id="ds_init_baseinfo_dietlrgcd_A0046" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  232. <Dataset id="ds_chk_dietlrgcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="label" type="STRING" size="256"/>
  235. <Column id="value" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row>
  239. <Col id="label">일반식</Col>
  240. <Col id="value">Q1</Col>
  241. </Row>
  242. <Row>
  243. <Col id="label">치료식</Col>
  244. <Col id="value">Q2</Col>
  245. </Row>
  246. <Row>
  247. <Col id="label">멸균식</Col>
  248. <Col id="value">Q3</Col>
  249. </Row>
  250. <Row>
  251. <Col id="label">비급여식</Col>
  252. <Col id="value">Q4</Col>
  253. </Row>
  254. <Row>
  255. <Col id="label">금식</Col>
  256. <Col id="value">Q9</Col>
  257. </Row>
  258. </Rows>
  259. </Dataset>
  260. <Dataset id="ds_chk_holiday" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="label" type="STRING" size="256"/>
  263. <Column id="value" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="label">토요일제외</Col>
  268. <Col id="value">1</Col>
  269. </Row>
  270. <Row>
  271. <Col id="label">일요일제외</Col>
  272. <Col id="value">2</Col>
  273. </Row>
  274. <Row>
  275. <Col id="label">공휴일제외</Col>
  276. <Col id="value">3</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. </Objects>
  281. <Bind>
  282. <BindItem id="item0" compid="group2.cmb_mdlcd" propid="value" datasetid="ds_send_reqdata" columnid="dietmdlcd"/>
  283. <BindItem id="item1" compid="group2.opt_dietcd" propid="value" datasetid="ds_send_reqdata" columnid="dietcd"/>
  284. <BindItem id="item2" compid="group2.opt_dietnm" propid="value" datasetid="ds_send_reqdata" columnid="dietnm"/>
  285. <BindItem id="item3" compid="group2.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
  286. <BindItem id="item4" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
  287. <BindItem id="item5" compid="group2.ipt_fage" propid="value" datasetid="ds_send_reqdata" columnid="fage"/>
  288. <BindItem id="item6" compid="group2.ipt_tage" propid="value" datasetid="ds_send_reqdata" columnid="tage"/>
  289. <BindItem id="item7" compid="group2.ipt_intkcnt" propid="value" datasetid="ds_send_reqdata" columnid="intkcnt"/>
  290. <BindItem id="item8" compid="group2.ipt_indd" propid="value" datasetid="ds_send_reqdata" columnid="indd"/>
  291. </Bind>
  292. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  293. * System Name :
  294. * Job Name :
  295. * Creator :
  296. * Make Date : 2015-11-13
  297. * Description :
  298. *---------------------------------------------------------------------------------------
  299. * Modify Date Modifier Modify Description
  300. *---------------------------------------------------------------------------------------
  301. * 2015-11-13 Live Converter TF->XP
  302. *
  303. *---------------------------------------------------------------------------------------
  304. ****************************************************************************************/
  305. include "com_commonxp::comm_main.xjs";
  306. var arErrorCode = new HashArray();
  307. function SMANT01100_oninit(obj:Form, e:InitEventInfo)
  308. {
  309. frmf_initForm(obj); //폼 초기화
  310. }
  311. function SMANT01100_onload(obj:Form, e:LoadEventInfo)
  312. {
  313. var sProp = "col=5,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  314. group2.chk_dietlrgcd.setInitComp(sProp, ds_chk_dietlrgcd,"value","label", "fn_chk_dietlrgcd");
  315. var sProp = "col=3,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  316. group2.chk_holiday.setInitComp(sProp, ds_chk_holiday,"value","label", "fn_chk_holiday");
  317. finit();
  318. //화면open시 공통코드 setting
  319. var arrParam = [{dsNm: "ds_init_baseinfo_dietlrgcd_A0046", cdGrpId: "A0046"},
  320. {dsNm: "ds_init_baseinfo_dietmdlcd_A0047", cdGrpId: "A0047"},
  321. {dsNm: "ds_init_baseinfo_fsexamflag_P0021", cdGrpId: "P0021"}];
  322. appf_getCodeList(arrParam);
  323. frmf_addComboItem( "group2.cmb_mdlcd", " ", "", "above" );
  324. ds_send_reqdata.setColumn(0, "indd","");
  325. }
  326. function fn_chk_dietlrgcd(){
  327. var getData = String(group2.chk_dietlrgcd.getData()).replace(","," ");
  328. ds_send_reqdata.setColumn(0, "dietlrgcd", getData);
  329. ds_send_reqdata.setColumn(0, "dietmdlcd", "");
  330. }
  331. function fn_chk_holiday(){
  332. var getData = String(group2.chk_holiday.getData()).replace(","," ");
  333. ds_send_reqdata.setColumn(0, "holiday", getData);
  334. }
  335. // 화면 초기화
  336. function finit() {
  337. ds_main_patmeal_patmeallist.clearData();
  338. ds_send_reqdata.clearData();
  339. ds_send_reqdata.addRow();
  340. ds_send_reqdata.setColumn(0, "fromdd", utlf_getCurrentDate());
  341. ds_send_reqdata.setColumn(0, "todd", utlf_getCurrentDate());
  342. }
  343. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  344. {
  345. if (datacheck() == false){
  346. return;
  347. }
  348. //휴일조건 분리하기
  349. if ( !utlf_isNull(ds_send_reqdata.getColumn(0, "holiday")) ) {
  350. var temp = ds_send_reqdata.getColumn(0, "holiday");
  351. for ( i = 0; i < temp.length; i+=2 ) {
  352. if ( temp.substr(i,1) == "1" ) {
  353. ds_send_reqdata.setColumn(0, "holiday1", "1");
  354. } else if ( temp.substr(i,1) == "2" ) {
  355. ds_send_reqdata.setColumn(0, "holiday2", "2");
  356. } else if ( temp.substr(i,1) == "3" ) {
  357. ds_send_reqdata.setColumn(0, "holiday3", "3");
  358. }
  359. }
  360. }
  361. readfunc(); //조회 함수
  362. ds_send_reqdata.setColumn(0, "holiday1", "");
  363. ds_send_reqdata.setColumn(0, "holiday2", "");
  364. ds_send_reqdata.setColumn(0, "holiday3", "");
  365. }
  366. function readfunc(){
  367. ds_main_patmeal_patmeallist.clearData();
  368. var oParam = {};
  369. oParam.id = "TRANT01101";
  370. oParam.service = "dietsumapp.PatMealSrch";
  371. oParam.method = "reqGetPatMealSrch";
  372. oParam.inds = "reqdata=ds_send_reqdata";
  373. oParam.outds = "ds_main_patmeal_patmeallist=patmeallist";
  374. oParam.async = false;
  375. tranf_submit(oParam);
  376. ds_main_patmeal_patmeallist.addColumn("remark", "string");
  377. //remark1,2,3의 내용을 ','로 연결하기
  378. for (var i = 0; i < ds_main_patmeal_patmeallist.rowcount; i++) {
  379. var remark = "";
  380. var remark1 = ds_main_patmeal_patmeallist.getColumn(i, "remark1");
  381. var remark2 = ds_main_patmeal_patmeallist.getColumn(i, "remark2");
  382. var remark3 = ds_main_patmeal_patmeallist.getColumn(i, "remark3");
  383. if ( !utlf_isNull(remark1) || !utlf_isNull(remark2) || !utlf_isNull(remark3) ) {
  384. if ( !utlf_isNull(remark1) ) {
  385. remark = remark + remark1 + ",";
  386. }
  387. if ( !utlf_isNull(remark2) ) {
  388. remark = remark + remark2 + ",";
  389. }
  390. if ( !utlf_isNull(remark3) ) {
  391. remark = remark + remark3 + ",";
  392. }
  393. remark = remark.substr(0, remark.length-1);
  394. ds_main_patmeal_patmeallist.setColumn(i, "remark", remark);
  395. }
  396. }
  397. }
  398. //조회조건 적합성 체크
  399. function datacheck() {
  400. if (utlf_isNull(ds_send_reqdata.getColumn(0, "dietlrgcd"))){
  401. sysf_messageBox("분류는 필수선택", "I009");
  402. return false;
  403. }
  404. var fromdd = ds_send_reqdata.getColumn(0, "fromdd");
  405. var todd = ds_send_reqdata.getColumn(0, "todd");
  406. if (utlf_getDateInterval(fromdd, todd) < 0) {
  407. sysf_messageBox("검색 시작일은 종료일보다 클 수", "I004");
  408. return;
  409. }
  410. if (utlf_isNull(ds_send_reqdata.getColumn(0, "fage")) || utlf_isNull(ds_send_reqdata.getColumn(0, "tage"))){
  411. }else{
  412. var iage1 = parseFloat(ds_send_reqdata.getColumn(0, "fage"));
  413. var iage2 = parseFloat(ds_send_reqdata.getColumn(0, "tage"));
  414. if (iage1 > iage2){
  415. sysf_messageBox("나이의 From~To 설정이", "E016");
  416. return false;
  417. }
  418. }
  419. }
  420. function group2_btn_dietcdpopup_onclick(obj:Button, e:ClickEventInfo)
  421. {
  422. var objArg = new Object();
  423. objArg.arg_ds_send_reqdata = ds_send_reqdata;
  424. frmf_modal("SPANT01100", "SPANT01100", objArg, null, "", 200, 200, null, null, null, null, null, "M");
  425. readfunc();
  426. }
  427. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  428. {
  429. finit();
  430. }
  431. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  432. {
  433. grdf_exportExcel(grd_patmeal, "PatMeal_list" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  434. }
  435. ]]></Script>
  436. </Form>
  437. </FDL>