123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADC03600_NST영양액관리" classname="SMADC03600_NST영양액관리" inheritanceid="" position="absolute 0 0 946 685" titletext="New Form" oninit="SMADC03600_oninit" onload="SMADC03600_onload">
- <Layouts>
- <Layout>
- <Static id="caption13" text="NST관리대상자" onclick="caption13_onclick" class="tit_2" position="absolute 3 11 192 31"/>
- <Shape id="line02" class="line_10" position="absolute 1 27 944 33" anchor="left top right" style="border:0 none black ;font:arial,9,bold;"/>
- <Grid id="grd_codelist" taborder="4" useinputpanel="false" position="absolute 1 32 944 679" binddataset="ds_nstinfo_codelist" autosizingtype="row" autofitminheight="100" cellsizingtype="row" extendsizetype="row" oncellclick="grd_codelist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="58"/>
- <Column size="144"/>
- <Column size="59"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="47" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="코드"/>
- <Cell col="2" text="코드명"/>
- <Cell col="3" text="열량 밀도 (kcal/ml)"/>
- <Cell col="4" text="용량 (ml)"/>
- <Cell col="5" text="열량 (kcal)"/>
- <Cell col="6" text="탄수 화물 (g)"/>
- <Cell col="7" text="당류 (g)"/>
- <Cell col="8" text="식이 섬유 (g)"/>
- <Cell col="9" text="단백질 (g)"/>
- <Cell col="10" text="지방 (g)"/>
- <Cell col="11" text="나트륨 (mg)"/>
- <Cell col="12" text="칼륨 (mg)"/>
- <Cell col="13" text="삼투압 (mOsm /kgH2O)"/>
- <Cell col="14" text="사용 여부"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;padding:3 3 3 3;" text="bind:gubn" wordwrap="word" combodataset="ds_init_codelist" combocodecol="cdid" combodatacol="cdnm" autosizerow="limitmin"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:left;" text="bind:cdnm"/>
- <Cell col="3" displaytype="number" edittype="normal" style="align:center;" text="bind:mildo" expr="expr:cal/vol"/>
- <Cell col="4" displaytype="number" edittype="text" style="align:center;" text="bind:vol"/>
- <Cell col="5" displaytype="number" edittype="text" style="align:center;" text="bind:cal"/>
- <Cell col="6" displaytype="number" edittype="text" style="align:center;" text="bind:carb"/>
- <Cell col="7" displaytype="number" edittype="text" style="align:center;" text="bind:sugar"/>
- <Cell col="8" displaytype="number" edittype="text" style="align:center;" text="bind:df"/>
- <Cell col="9" displaytype="number" edittype="text" style="align:center;" text="bind:prot"/>
- <Cell col="10" displaytype="number" edittype="text" style="align:center;" text="bind:fat"/>
- <Cell col="11" displaytype="number" edittype="text" style="align:center;" text="bind:na"/>
- <Cell col="12" displaytype="number" edittype="text" style="align:center;" text="bind:k"/>
- <Cell col="13" displaytype="number" edittype="text" style="align:center;" text="bind:op"/>
- <Cell col="14" displaytype="checkbox" edittype="checkbox" expr="(useyn=='Y') ? '1' : '0'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_add" taborder="5" text="행추가" position="absolute 837 8 888 28" onclick="btn_add_onclick" class="btn2"/>
- <Button id="btn_save" taborder="6" text="저장" position="absolute 893 7 944 27" onclick="btn_save_onclick" class="btn2"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_nstinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="gubn" type="STRING" size="256"/>
- <Column id="vol" type="STRING" size="256"/>
- <Column id="cal" type="STRING" size="256"/>
- <Column id="carb" type="STRING" size="256"/>
- <Column id="sugar" type="STRING" size="256"/>
- <Column id="df" type="STRING" size="256"/>
- <Column id="prot" type="STRING" size="256"/>
- <Column id="fat" type="STRING" size="256"/>
- <Column id="na" type="STRING" size="256"/>
- <Column id="k" type="STRING" size="256"/>
- <Column id="op" type="STRING" size="256"/>
- <Column id="etc1" type="STRING" size="256"/>
- <Column id="etc2" type="STRING" size="256"/>
- <Column id="etc3" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="mildo" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savereq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_pharmacybasexp::pharmacycombolist.xjs";
- function SMADC03600_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_req.setColumn(0, "cdgrupid", "000");
- pharmacyGetCodeList([{dsNm: "ds_init_codelist" , cdGrpId: "PN41", sorField: ""}], false , false, "");
-
- fSearch();
- }
- /** 초기화
- */
- function SMADC03600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- //grdf_initGrid(grd_nstlist);
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch() {
- var oParam = {};
- oParam.id = "TRADC03601";
- oParam.service = "pharmacyconsultapp.TDMMngt";
- oParam.method = "reqGetNstCodeList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_nstinfo_codelist=info";
- oParam.async = false;
- //oParam.callback = "cf_TRADC02603";
- tranf_submit(oParam);
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- var idx = ds_nstinfo_codelist.addRow();
-
- ds_nstinfo_codelist.setColumn(idx, "cdgrupid", "000");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var dsUpdate = grdf_getGridUpdateData(grd_codelist, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- if(dsUpdate.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- }
- else {
- ds_send_savereq.clear();
- ds_send_savereq.copyData(dsUpdate, true);
- }
-
- var oParam = {};
- oParam.id = "TXADC03601";
- oParam.service = "pharmacyconsultapp.TDMMngt";
- oParam.method = "reqExeNstCodeList";
- oParam.inds = "req=ds_send_savereq";
- oParam.outds = "ds_nstinfo_codelist=info";
- oParam.async = false;
- //oParam.callback = "cf_TRADC02603";
- tranf_submit(oParam);
-
- }
- function grd_codelist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
-
- var cCol = obj.currentcol;
- var cRow = obj.currentrow;
- var useyn="";
- if(cCol == 14) {
- useyn = ds_nstinfo_codelist.getColumn(cRow, "useyn");
-
- if(useyn == "Y") {
- ds_nstinfo_codelist.setColumn(cRow, "useyn", "N");
- } else {
- ds_nstinfo_codelist.setColumn(cRow, "useyn", "Y");
- }
-
- } else {
- grd_codelist.setFocus();
- grd_codelist.setCellPos(cCol);
- grd_codelist.showEditor(true);
- }
-
-
- }
- ]]></Script>
- </Form>
- </FDL>
|