SMRSG02600_지출현황(영양).xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSG02600" position="absolute 0 0 1202 749" titletext="지출현황(영양)" onload="SMRSG02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1195 21" style="" scrollbars="none">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 189 22" style="" text="영양 지출현황" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group5" scrollbars="autoboth" position="absolute 0 38 1198 730" style="">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group6" position="absolute 0 10 1195 45" style="align: top;" anchor="default">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 -1 1195 34" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;"/>
  21. <Static id="caption4" class="search_name" position="absolute 226 9 312 26" style="" text="입고일자 :" anchor="default"/>
  22. <Static id="caption2" class="search_name" position="absolute 15 9 101 26" style="" text="기관코드 :" anchor="default"/>
  23. <Button id="button1" class="btn1" position="absolute 1125 7 1181 29" style="" text="조회" onclick="group5_group6_button1_onclick" anchor="default"/>
  24. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1110 7 1113 29" style="border:1 solid #ffe4bb #ffe4bb;" anchor="default"/>
  25. <Combo innerdataset="" datacolumn="" codecolumn="" columncount="-1" rowcount="-1" id="cmb_instcd" class="combo_search" position="absolute 100 8 200 27" style="" anchor="default"/>
  26. <Calendar id="ipt_stocfrym" class="input_essential" position="absolute 312 8 412 27" style="align:center ;" anchor="default" autoselect="true"/>
  27. <Edit id="ipt_goodflag" visible="false" position="absolute 923 7 965 26" style="" anchor="default"/>
  28. <Edit id="ipt_stocdeptcd" visible="false" position="absolute 980 7 1025 26" style="" anchor="default"/>
  29. <Calendar id="ipt_stoctoym" class="input_essential" position="absolute 431 8 535 27" style="" anchor="default" onkillfocus="group5_group6_ipt_stoctoym_onkillfocus" autoselect="true"/>
  30. <Static id="caption22" position="absolute 414 8 429 28" style="font:,,bold;align: middle;" text="~" anchor="default"/>
  31. <Static id="caption1" class="search_name" position="absolute 560 9 675 26" style="" text="식자재코드 :" visible="false" anchor="default"/>
  32. <Edit id="ipt_goodcd" class="input_search" visible="false" position="absolute 665 8 745 27" style="" anchor="default" onkillfocus="group5_group6_ipt_goodcd_onkillfocus"/>
  33. <Button id="button2" class="icon_search" visible="false" position="absolute 748 9 764 25" style="" text="" onclick="group5_group6_button2_onclick" anchor="default"/>
  34. <Edit id="ipt_goodnm" class="input_fix" visible="false" position="absolute 766 8 899 27" style="" anchor="default" onkillfocus="group5_group6_ipt_goodnm_onkillfocus"/>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Tab id="sw_flag" class="sw_box" position="absolute 0 51 1194 691" style="" anchor="default" onchanged="group5_sw_flag_onchanged">
  39. <Tabpages>
  40. <Tabpage id="case_grdcustpr" selected="true" anchor="default" text="거 래 처 별">
  41. <Layouts>
  42. <Layout>
  43. <Shape id="line15" class="line_10" linetype="horizontal" position="absolute 0 26 1191 29" style="" anchor="default"/>
  44. <Button id="button14" class="btn7" position="absolute 1141 6 1191 25" style="" text="엑셀" onclick="group5_sw_flag_case_grdcustpr_button14_onclick" anchor="default"/>
  45. <Grid id="grd_nutrcustbiyul" binddataset="ds_main_list_nutrstoccustbiyul" position="absolute 0 29 1190 613" style="" anchor="default">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="29"/>
  50. <Column size="100"/>
  51. <Column size="150"/>
  52. <Column size="160"/>
  53. <Column size="160"/>
  54. <Column size="150"/>
  55. <Column size="150"/>
  56. <Column size="191"/>
  57. <Column size="0"/>
  58. <Column size="73"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="25" band="head"/>
  65. <Row size="25" band="head"/>
  66. <Row size="25"/>
  67. </Rows>
  68. <Band id="head">
  69. <Cell rowspan="2" taborder="undefined"/>
  70. <Cell col="1" rowspan="2" colspan="2" text="거래처" taborder="undefined"/>
  71. <Cell col="3" colspan="2" text="환자식금액" taborder="undefined"/>
  72. <Cell col="5" colspan="2" text="직원식금액" taborder="undefined"/>
  73. <Cell col="7" rowspan="2" text="합계" taborder="undefined"/>
  74. <Cell col="8"/>
  75. <Cell col="9" rowspan="2" text="비율(%)" taborder="undefined"/>
  76. <Cell col="10"/>
  77. <Cell col="11"/>
  78. <Cell col="12"/>
  79. <Cell col="13"/>
  80. <Cell col="14" text="거래처"/>
  81. <Cell col="15" text="거래처"/>
  82. <Cell col="16" text="일반식"/>
  83. <Cell col="17" text="치료식"/>
  84. <Cell col="18" text="직원식"/>
  85. <Cell col="19" text="직원야식"/>
  86. <Cell col="20" text="합계"/>
  87. <Cell col="21"/>
  88. <Cell col="22" text="비율(%)"/>
  89. <Cell col="23"/>
  90. <Cell col="24"/>
  91. <Cell col="25"/>
  92. <Cell col="26"/>
  93. <Cell row="1" col="3" text="일반식"/>
  94. <Cell row="1" col="4" text="치료식"/>
  95. <Cell row="1" col="5" text="직원식"/>
  96. <Cell row="1" col="6" text="직원야식"/>
  97. <Cell row="1" col="8"/>
  98. <Cell row="1" col="10"/>
  99. <Cell row="1" col="11"/>
  100. <Cell row="1" col="12"/>
  101. <Cell row="1" col="13"/>
  102. </Band>
  103. <Band id="body">
  104. <Cell celltype="head" expr="currow+1"/>
  105. <Cell col="1" style="align:left middle;" text="bind:maincustlastsuplplce"/>
  106. <Cell col="2" style="align:left middle;" text="bind:maincustlastsuplplcenm"/>
  107. <Cell col="3" displaytype="number" text="bind:custpatwinamt"/>
  108. <Cell col="4" displaytype="number" text="bind:custcurwinamt"/>
  109. <Cell col="5" displaytype="number" text="bind:custempwinamt"/>
  110. <Cell col="6" displaytype="number" text="bind:custempnigtwinamt"/>
  111. <Cell col="7" displaytype="number" text="bind:custtotwinamt"/>
  112. <Cell col="8" text="bind:custbiyul"/>
  113. <Cell col="9" displaytype="number" text="bind:custbiyul2"/>
  114. <Cell col="10" text="bind:winamtvat"/>
  115. <Cell col="11" text="bind:totwinamtwithvat"/>
  116. <Cell col="12" text="bind:totwinamt"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. </Layout>
  122. </Layouts>
  123. </Tabpage>
  124. <Tabpage id="case_grdgoodpr" position="absolute 0 0 1193 643" style="" anchor="default" text="식 품 별">
  125. <Layouts>
  126. <Layout>
  127. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 26 1193 29" style="" anchor="default"/>
  128. <Button id="button10" class="btn7" position="absolute 1141 6 1191 25" style="" text="엑셀" onclick="group5_sw_flag_case_grdgoodpr_button10_onclick" anchor="default"/>
  129. <Grid id="grd_goodlist" binddataset="ds_main_list_goodlist" position="absolute 0 29 1190 613" style="" anchor="default">
  130. <Formats>
  131. <Format id="default">
  132. <Columns>
  133. <Column size="24"/>
  134. <Column size="80"/>
  135. <Column size="150"/>
  136. <Column size="0"/>
  137. <Column size="50"/>
  138. <Column size="50"/>
  139. <Column size="80"/>
  140. <Column size="80"/>
  141. <Column size="80"/>
  142. <Column size="80"/>
  143. <Column size="90"/>
  144. <Column size="90"/>
  145. <Column size="90"/>
  146. <Column size="90"/>
  147. <Column size="135"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. </Columns>
  154. <Rows>
  155. <Row size="25" band="head"/>
  156. <Row size="25" band="head"/>
  157. <Row size="25"/>
  158. </Rows>
  159. <Band id="head">
  160. <Cell rowspan="2" taborder="undefined"/>
  161. <Cell col="1" rowspan="2" text="입고일자" taborder="undefined"/>
  162. <Cell col="2" rowspan="2" text="식품명" taborder="undefined"/>
  163. <Cell col="3"/>
  164. <Cell col="4" rowspan="2" text="단위" taborder="undefined"/>
  165. <Cell col="5" rowspan="2" text="단가" taborder="undefined"/>
  166. <Cell col="6" colspan="2" text="환자식수량" taborder="undefined"/>
  167. <Cell col="8" colspan="2" text="직원식수량" taborder="undefined"/>
  168. <Cell col="10" colspan="2" text="환자식금액" taborder="undefined"/>
  169. <Cell col="12" colspan="2" text="직원식금액" taborder="undefined"/>
  170. <Cell col="14" rowspan="2" text="총합계액" taborder="undefined"/>
  171. <Cell col="15"/>
  172. <Cell col="16"/>
  173. <Cell col="17"/>
  174. <Cell col="18"/>
  175. <Cell col="19"/>
  176. <Cell col="20"/>
  177. <Cell col="21" text="입고일자"/>
  178. <Cell col="22" text="식품명"/>
  179. <Cell col="23"/>
  180. <Cell col="24" text="단위"/>
  181. <Cell col="25" text="단가"/>
  182. <Cell col="26" text="G"/>
  183. <Cell col="27" text="T"/>
  184. <Cell col="28" text="S"/>
  185. <Cell col="29" text="N"/>
  186. <Cell col="30" text="G"/>
  187. <Cell col="31" text="T"/>
  188. <Cell col="32" text="S"/>
  189. <Cell col="33" text="N"/>
  190. <Cell col="34" text="총합계액"/>
  191. <Cell col="35"/>
  192. <Cell col="36"/>
  193. <Cell col="37"/>
  194. <Cell col="38"/>
  195. <Cell col="39"/>
  196. <Cell col="40"/>
  197. <Cell row="1" col="3"/>
  198. <Cell row="1" col="6" text="G"/>
  199. <Cell row="1" col="7" text="T"/>
  200. <Cell row="1" col="8" text="S"/>
  201. <Cell row="1" col="9" text="N"/>
  202. <Cell row="1" col="10" text="G"/>
  203. <Cell row="1" col="11" text="T"/>
  204. <Cell row="1" col="12" text="S"/>
  205. <Cell row="1" col="13" text="N"/>
  206. <Cell row="1" col="15"/>
  207. <Cell row="1" col="16"/>
  208. <Cell row="1" col="17"/>
  209. <Cell row="1" col="18"/>
  210. <Cell row="1" col="19"/>
  211. <Cell row="1" col="20"/>
  212. </Band>
  213. <Band id="body">
  214. <Cell celltype="head" expr="expr:currow + 1"/>
  215. <Cell col="1" displaytype="date" text="bind:windd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  216. <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  217. <Cell col="3" text="bind:goodcd"/>
  218. <Cell col="4" style="align:left middle;" text="bind:winunit"/>
  219. <Cell col="5" displaytype="number" text="bind:winunitcost"/>
  220. <Cell col="6" displaytype="number" text="bind:patmealwinqty"/>
  221. <Cell col="7" displaytype="number" text="bind:curemealwinqty"/>
  222. <Cell col="8" displaytype="number" text="bind:empmealwinqty"/>
  223. <Cell col="9" displaytype="number" text="bind:empnigtmealwinqty"/>
  224. <Cell col="10" displaytype="number" text="bind:patmealwinamt"/>
  225. <Cell col="11" displaytype="number" text="bind:curemealwinamt"/>
  226. <Cell col="12" displaytype="number" text="bind:empmealwinamt"/>
  227. <Cell col="13" displaytype="number" text="bind:empnigtmealwinamt"/>
  228. <Cell col="14" displaytype="number" text="bind:totwinamt"/>
  229. <Cell col="15" text="bind:instcd"/>
  230. <Cell col="16" text="bind:slipdd"/>
  231. <Cell col="17" text="bind:slipno"/>
  232. <Cell col="18" text="bind:reqdeptcd"/>
  233. </Band>
  234. </Format>
  235. </Formats>
  236. </Grid>
  237. </Layout>
  238. </Layouts>
  239. </Tabpage>
  240. </Tabpages>
  241. </Tab>
  242. </Layout>
  243. </Layouts>
  244. </Div>
  245. <Div id="group4" scrollbars="none" position="absolute 0 20 1195 47" style="">
  246. <Layouts>
  247. <Layout>
  248. <Button id="button34" class="btn6" visible="false" position="absolute 0 3 56 25" style="" text="출력" anchor="default"/>
  249. <Shape id="line17" class="line_6" linetype="horizontal" position="absolute 0 25 1195 28" style="" anchor="default"/>
  250. </Layout>
  251. </Layouts>
  252. </Div>
  253. </Layout>
  254. </Layouts>
  255. <Objects>
  256. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  257. <ColumnInfo>
  258. <Column id="instcd" type="STRING" size="256"/>
  259. <Column id="goodflag" type="STRING" size="256"/>
  260. <Column id="stocdeptcd" type="STRING" size="256"/>
  261. <Column id="stocfrym" type="STRING" size="256"/>
  262. <Column id="stoctoym" type="STRING" size="256"/>
  263. <Column id="goodcd" type="STRING" size="256"/>
  264. <Column id="goodnm" type="STRING" size="256"/>
  265. </ColumnInfo>
  266. <Rows>
  267. <Row>
  268. <Col id="instcd"/>
  269. <Col id="goodflag"/>
  270. <Col id="stocdeptcd"/>
  271. <Col id="stocfrym"/>
  272. <Col id="stoctoym"/>
  273. <Col id="goodcd"/>
  274. <Col id="goodnm"/>
  275. </Row>
  276. </Rows>
  277. </Dataset>
  278. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  279. <ColumnInfo>
  280. <Column id="temp" type="STRING" size="256"/>
  281. </ColumnInfo>
  282. <Rows>
  283. <Row>
  284. <Col id="temp"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  289. <ColumnInfo>
  290. <Column id="nutrstoccustbiyul" type="STRING" size="256"/>
  291. <Column id="goodlist" type="STRING" size="256"/>
  292. </ColumnInfo>
  293. </Dataset>
  294. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  295. <ColumnInfo/>
  296. </Dataset>
  297. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  298. <ColumnInfo>
  299. <Column id="init" type="STRING" size="256"/>
  300. </ColumnInfo>
  301. <Rows>
  302. <Row>
  303. <Col id="init"/>
  304. </Row>
  305. </Rows>
  306. </Dataset>
  307. <Dataset id="ds_main_list_nutrstoccustbiyul" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  308. <Dataset id="ds_main_list_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  309. </Objects>
  310. <Bind>
  311. <BindItem id="item0" compid="group5.group6.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  312. <BindItem id="item1" compid="group5.group6.ipt_stocfrym" propid="value" datasetid="ds_send" columnid="stocfrym"/>
  313. <BindItem id="item2" compid="group5.group6.ipt_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  314. <BindItem id="item3" compid="group5.group6.ipt_stocdeptcd" propid="value" datasetid="ds_send" columnid="stocdeptcd"/>
  315. <BindItem id="item4" compid="group5.group6.ipt_stoctoym" propid="value" datasetid="ds_send" columnid="stoctoym"/>
  316. <BindItem id="item5" compid="group5.group6.ipt_goodcd" propid="value" datasetid="ds_send" columnid="goodcd"/>
  317. <BindItem id="item6" compid="group5.group6.ipt_goodnm" propid="value" datasetid="ds_send" columnid="goodnm"/>
  318. </Bind>
  319. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  320. * System Name :
  321. * Job Name :
  322. * Creator :
  323. * Make Date : 2017-06-19
  324. * Description :
  325. *---------------------------------------------------------------------------------------
  326. * Modify Date Modifier Modify Description
  327. *---------------------------------------------------------------------------------------
  328. * 2017-06-19 Live Converter TF->XP
  329. *
  330. *---------------------------------------------------------------------------------------
  331. ****************************************************************************************/
  332. include "com_commonxp::comm_main.xjs";
  333. include "mis_miscommonxp::MIS.xjs";
  334. include "mis_miscommonxp::RSZ001.xjs";
  335. var RetrYn = "Y";
  336. function SMRSG02600_onload(obj:Form, e:LoadEventInfo) {
  337. frmf_initForm(obj);
  338. //grdf_initGrid(grd_XXX);
  339. //grdf_setGridSort(grd_XXX);
  340. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  341. //화면 Control을 초기화한다
  342. fInitialize();
  343. }
  344. //전체에서 event와 src를 제외한 script 를 모두포함.
  345. function fInitialize() {
  346. misfGridInit(group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul);
  347. misfGridInit(group5.sw_flag.case_grdgoodpr.grd_goodlist);
  348. // group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul.rowHeight(0) = "20";
  349. // group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul.rowHeight(1) = "20";
  350. rszfUserInstList(group5.group6.cmb_instcd,sysf_getUserInfo("userid"));
  351. //misfMsterDetailSet(group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul,null, "TRRSG02601" ,"N");
  352. //misfMsterDetailSet(group5.sw_flag.case_grdgoodpr.grd_goodlist,null, "TRRSG02602" ,"N");
  353. var curdate = utlf_getCurrentDate();
  354. ds_send.setColumn(0,"stocfrym" ,curdate);
  355. ds_send.setColumn(0,"stoctoym" ,curdate);
  356. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  357. ds_send.setColumn(0,"goodflag" ,"PH");
  358. // hidden column
  359. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  360. ds_send.setColumn(0,"goodflag" ,"SF");
  361. //model.setValue(group5.group6.ipt_stocdeptcd.attribute("ref") ,"3251000000"); // sysf_getUserInfo("dutplcecd"));
  362. ds_send.setColumn(0,"stocdeptcd", sysf_getUserInfo("dutplcecd"));
  363. ds_send.setColumn(0,"instcd", sysf_getUserInfo("dutplceinstcd"));
  364. group5.sw_flag.tabindex = 0;
  365. //model.refresh();
  366. }
  367. function fCheckRetrieveData(pmsg)
  368. {
  369. if(utlf_isNull(group5.group6.cmb_instcd.value))
  370. {
  371. if(pmsg == true)
  372. {
  373. sysf_messageBox("기관코드를 " ,"C002");
  374. group5.group6.cmb_instcd.setFocus();
  375. }
  376. return false;
  377. }
  378. if(utlf_isNull(group5.group6.ipt_stocym.value))
  379. {
  380. if(pmsg == true)
  381. {
  382. sysf_messageBox("기준년월 " ,"C002");
  383. group5.group6ipt_stocym.setFocus();
  384. }
  385. return false;
  386. }
  387. if(utlf_isNull(group5.group6.ipt_windeptcd.value))
  388. {
  389. if(pmsg == true)
  390. {
  391. sysf_messageBox("입고부서를 " ,"C001");
  392. group5.group6.ipt_windeptcd.setFocus();
  393. }
  394. return false;
  395. }
  396. if(utlf_isNull(group5.group6.ipt_winfrdd.value))
  397. {
  398. if(pmsg == true)
  399. {
  400. sysf_messageBox("입고시작일자를 " ,"C001");
  401. group5.group6.ipt_winfrdd.setFocus();
  402. }
  403. return false;
  404. }
  405. if(utlf_isNull(group5.group6.ipt_wintodd.attribute.value))
  406. {
  407. if(pmsg == true)
  408. {
  409. sysf_messageBox("입고종료일자를 " ,"C001");
  410. group5.group6.ipt_wintodd.setFocus();
  411. }
  412. return false;
  413. }
  414. return true;
  415. }
  416. function group5_group6_button1_onclick(obj:Button, e:ClickEventInfo) {
  417. if(group5.sw_flag.tabindex == 0)
  418. {
  419. var oParam = {};
  420. oParam.id = "TRRSG02601";
  421. oParam.service = "stocsumapp.StocSumMngt";
  422. oParam.method = "reqGetNutrStocCustBiyul2";
  423. oParam.inds = "req=ds_send";
  424. oParam.outds = "ds_main_list_nutrstoccustbiyul=nutrstoccustbiyul";
  425. oParam.async = false;
  426. //oParam.callback = "cf_TRRSG02601";
  427. tranf_submit(oParam);
  428. } else if (group5.sw_flag.tabindex == 1)
  429. {
  430. var oParam = {};
  431. oParam.id = "TRRSG02602";
  432. oParam.service = "stocsumapp.StocSumMngt";
  433. oParam.method = "reqGetNutrStocGoodList";
  434. oParam.inds = "req=ds_send";
  435. oParam.outds = "ds_main_list_goodlist=goodlist";
  436. oParam.async = false;
  437. //oParam.callback = "cf_TRRSG02602";
  438. tranf_submit(oParam);
  439. }
  440. }
  441. function group5_group6_ipt_stoctoym_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  442. //btn_search.dispatch("DOMActivate");
  443. }
  444. function group5_group6_ipt_goodcd_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  445. // if(group5.group6.ipt_goodcd.value.length == 0)
  446. // group5.group6.ipt_goodnm.value = "";
  447. // else
  448. // /*
  449. // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  450. // "goodcd," + model.getValue(group5.group6.cmb_instcd.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodflag.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  451. // group5.group6.ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,group5.group6.ipt_goodflag,ipt_goodcd");
  452. // */
  453. // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  454. // "goodcd," + model.getValue(group5.group6.cmb_instcd.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodflag.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  455. // group5.group6.ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,group5.group6.ipt_goodflag,"+ model.getValue(group5.group6.ipt_goodcd.attribute("ref")) );
  456. //
  457. // //model.refresh();
  458. }
  459. function group5_group6_button2_onclick(obj:Button, e:ClickEventInfo) {
  460. rszfOpenPopUpListByWndName(group5.group6.ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","group5.group6.cmb_instcd,group5.group6.ipt_goodflag");
  461. //model.refresh();
  462. }
  463. function group5_group6_ipt_goodnm_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  464. //
  465. // if(group5.group6.ipt_goodnm.value.length == 0)
  466. // group5.group6.ipt_goodcd.value = "";
  467. // else
  468. // /*
  469. // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  470. // "goodnm," + model.getValue(group5.group6.cmb_instcd.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodflag.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  471. // group5.group6.ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  472. // */
  473. // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  474. // "goodnm," + model.getValue(group5.group6.cmb_instcd.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodflag.attribute("ref")) + "," + model.getValue(group5.group6.ipt_goodnm.attribute("ref")) ,"","goodcd",
  475. // group5.group6.ipt_goodcd,"SPRSD00210","instcd,goodflag,goodnm","cmb_instcd,group5.group6.ipt_goodflag,"+ model.getValue(group5.group6.ipt_goodnm.attribute("ref")) );
  476. //
  477. // //model.refresh();
  478. }
  479. function group5_sw_flag_case_grdcustpr_button14_onclick(obj:Button, e:ClickEventInfo) {
  480. //misfSaveExcel(group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul,"거래처별지출현황");
  481. grdf_exportExcel(group5.sw_flag.case_grdcustpr.grd_nutrcustbiyul, "거래처별지출현황", "거래처별지출현황", "true", "", "");
  482. }
  483. function group5_sw_flag_case_grdgoodpr_button10_onclick(obj:Button, e:ClickEventInfo) {
  484. //misfSaveExcel(group5.sw_flag.case_grdgoodpr.grd_goodlist,"식품별지출현황");
  485. grdf_exportExcel(group5.sw_flag.case_grdgoodpr.grd_goodlist, "식품별지출현황", "식품별지출현황", "true", "", "");
  486. }
  487. function group5_btn_goodpr_onclick(obj:Button, e:ClickEventInfo) {
  488. group5.group6.caption1.visible = true;
  489. group5.group6.ipt_goodcd.visible = true;
  490. group5.group6.button2.visible = true;
  491. group5.group6.ipt_goodnm.visible = true;
  492. }
  493. function group5_sw_flag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  494. {
  495. if(group5.sw_flag.tabindex == 1){
  496. group5.group6.caption1.visible = true;
  497. group5.group6.ipt_goodcd.visible = true;
  498. group5.group6.button2.visible = true;
  499. group5.group6.ipt_goodnm.visible = true;
  500. }
  501. }
  502. ]]></Script>
  503. </Form>
  504. </FDL>