123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMMND05100" position="absolute 0 0 380 754" titletext="인공신장실 내 환자 Setting" onload="SMMND05100_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 3 0 363 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 109 14" style="" text="내 환자 Setting" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" scrollbars="autoboth" position="absolute 0 20 360 730" style="">
- <Layouts>
- <Layout>
- <Grid id="grd_mypatlist" binddataset="ds_main_mypatinfo_mypatlist" position="absolute 0 95 355 704" style="" oncellclick="group2_grd_mypatlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" />
- <Column size="120" />
- <Column size="100" />
- <Column size="70" />
- <Column size="0" />
- <Column size="0" />
- <Column size="0" />
- <Column size="0" />
- <Column size="0" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="" />
- <Cell col="1" text="등록번호" />
- <Cell col="2" text="환자명" />
- <Cell col="3" text="S_A" />
- <Cell col="4" text="시작일자" />
- <Cell col="5" text="종료일자" />
- <Cell col="6" text="wardcd" />
- <Cell col="7" text="bfsetting" />
- <Cell col="8" text="hdsaqnflag" />
- </Band>
- <Band id="body">
- <Cell text="bind:mysetting" />
- <Cell col="1" text="bind:pid" />
- <Cell col="2" text="bind:hngnm" />
- <Cell col="3" text="bind:sexage" />
- <Cell col="4" text="bind:fromdt" />
- <Cell col="5" text="bind:todt" />
- <Cell col="6" text="bind:wardcd" />
- <Cell col="7" text="bind:bfsetting" />
- <Cell col="8" text="bind:hdsaqnflag" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 87 357 90" style="" anchor="default" />
- <Static id="caption8" class="tit_2" position="absolute 5 72 175 85" style="" text="혈액투석 유지환자리스트" />
- <Button id="btn_save" class="btn2_letter2" position="absolute 315 65 357 84" style="" text="저장" onclick="group2_btn_save_onclick" />
- <Static id="caption1" class="cell_1" position="absolute 0 15 70 35" style="" text="사원번호" />
- <Static id="caption2" class="cell_1" position="absolute 179 15 249 38" style="" text="간호사명" />
- <Edit id="opt_empno" class="output_fix" position="absolute 73 16 175 35" style="" anchor="default" readonly="true" />
- <Edit id="opt_nursnm" class="output_fix" position="absolute 252 16 354 35" style="" anchor="default" readonly="true" />
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 10 360 13" style="" anchor="default" />
- <Shape id="line3" class="line_3" linetype="horizontal" position="absolute 0 62 360 65" style="" anchor="default" />
- <Button id="btn_ref" class="btn2_letter2" position="absolute 269 65 311 84" style="" text="조회" onclick="group2_btn_ref_onclick" />
- <TextArea id="tar_settinginfo" visible="false" position="absolute 0 520 356 635" style="font:돋움체,13,bold;align: middle;background:#ffffcc ;" />
- <Edit id="inp_wardcd" visible="false" position="absolute 105 250 205 269" style="" anchor="default" />
- <Static id="caption3" class="cell_1" position="absolute 0 38 70 61" style="" text="유효기간" />
- <Static id="caption4" position="absolute 180 45 195 55" style="" text="~" />
- <Calendar id="ipt_fromdt" position="absolute 75 40 170 60" style="" anchor="default" />
- <Calendar id="ipt_todt" position="absolute 200 40 295 59" style="" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" />
- <Column id="depthngnm" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"></Col>
- <Col id="depthngnm"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="message" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="message"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mypatinfo_mypatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="mysetting" type="STRING" size="256" />
- <Column id="roomcd" type="STRING" size="256" />
- <Column id="bedcd" type="STRING" size="256" />
- <Column id="patnm" type="STRING" size="256" />
- <Column id="sexage" type="STRING" size="256" />
- <Column id="orddeptnm" type="STRING" size="256" />
- <Column id="wardcd" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- <Column id="bfsetting" type="STRING" size="256" />
- <Column id="fromdt" type="STRING" size="256" />
- <Column id="todt" type="STRING" size="256" />
- <Column id="hdsaqnflag" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mysetting"></Col>
- <Col id="roomcd"></Col>
- <Col id="bedcd"></Col>
- <Col id="patnm"></Col>
- <Col id="sexage"></Col>
- <Col id="orddeptnm"></Col>
- <Col id="wardcd"></Col>
- <Col id="pid"></Col>
- <Col id="bfsetting"></Col>
- <Col id="fromdt"></Col>
- <Col id="todt"></Col>
- <Col id="hdsaqnflag">H</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_mypatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="send" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="send"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" />
- <Column id="userid" type="STRING" size="256" />
- <Column id="usernm" type="STRING" size="256" />
- <Column id="shiftflag" type="STRING" size="256" />
- <Column id="fromdt" type="STRING" size="256" />
- <Column id="todt" type="STRING" size="256" />
- <Column id="hdsaqnflag" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardcd"></Col>
- <Col id="userid"></Col>
- <Col id="usernm"></Col>
- <Col id="shiftflag">-</Col>
- <Col id="fromdt"></Col>
- <Col id="todt"></Col>
- <Col id="hdsaqnflag">H</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_settinginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="settingtime" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="settingtime"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.opt_empno" propid="value" datasetid="ds_main_cond" columnid="userid" />
- <BindItem id="item1" compid="group2.opt_nursnm" propid="value" datasetid="ds_main_cond" columnid="usernm" />
- <BindItem id="item2" compid="group2.tar_settinginfo" propid="value" datasetid="ds_main_saveinfo" columnid="message" />
- <BindItem id="item3" compid="group2.inp_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd" />
- <BindItem id="item4" compid="group2.ipt_fromdt" propid="value" datasetid="ds_main_cond" columnid="fromdt" />
- <BindItem id="item5" compid="group2.ipt_todt" propid="value" datasetid="ds_main_cond" columnid="todt" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMMND05100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_departmentcodeweb_js_ZSD001.js'
- include '../../.._emr_dialroomweb_js_SMMND05100.js'
- // header파일 중 SMMND05100.js 파일 시작/*
- 인공신장실 내환자세팅 (SMMND03300.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * _group :
- * _ver : 2009.01.07
- * _by : dhkim
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 화면 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInit(){
- var instcd = sysf_getUserInfo("dutplceinstcd");
- group2.ipt_fromdt.value = utlf_getCurrentDate();
- group2.ipt_todt.value = utlf_getCurrentDate();
- group2.grd_mypatlist.fixedcellcheckbox(0, 0) = true;
- group2.grd_mypatlist.mergeCol(0) = false;
- group2.grd_mypatlist.mergeCol(2) = false;
- group2.grd_mypatlist.mergeCol(3) = false;
- group2.grd_mypatlist.mergeCol(4) = false;
- group2.grd_mypatlist.mergeCol(5) = false;
- group2.grd_mypatlist.mergeCol(6) = false;
- group2.grd_mypatlist.mergeCol(7) = false;
- group2.grd_mypatlist.mergeCol(8) = false;
- group2.grd_mypatlist.mergeCol(9) = false;
- group2.grd_mypatlist.mergeCol(10) = false;
- ds_main_mypatinfo_mypatlist.clearData();
- var pFlag = '-';
- ds_main_cond.setColumn( 0, "userid", sysf_getUserId());
- ds_main_cond.setColumn( 0, "usernm", sysf_getUserName());
- ds_main_cond.setColumn( 0, "wardcd", sysf_getUserInfo("dutplcecd"));
- ds_main_cond.setColumn( 0, "shiftflag", pFlag);
- //model.refresh();
- fGetPatList(pFlag);
- setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
- }
- // 환자리스트 조회
- function fGetPatList(pFlag){
- var today = utlf_getCurrentDate();
- group2.grd_mypatlist.attribute("height") = "609";
- group2.tar_settinginfo.visible = false;
- group2.grd_mypatlist.rebuildStyle();
- ds_send.clearData();
- dsf_makeValue( ds_send, "wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
- dsf_makeValue( ds_send, "srchflag", "string", pFlag);
- dsf_makeValue( ds_send, "rsrvfromdd", "string", today);
- dsf_makeValue( ds_send, "rsrvtodd", "string", today);
- dsf_makeValue( ds_send, "shiftflag", "string", ds_main_cond.getColumn(0, "shiftflag"));
- //20130520 혈액투석적정서평가를 위한 파라메터 추가
- dsf_makeValue( ds_send, "hdsaqnflag", "string", ds_main_cond.getColumn(0, "hdsaqnflag"));
- // submit("TRMND05101");
- var oParam = {};
- oParam.id = "TRMND05101";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "reqcond=ds_";
- oParam.outds = "ds_=mypatlist";
- oParam.async = false;
- oParam.callback = "cf_TRMND05101";
- tranf_submit(oParam);
- /*
- function cf_TRMND05101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRMND05101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRMND05101") > -1
- arErrorCode.pop("TRMND05101") < 0
- */
- group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
- setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
- }
- //그리드 온클릭이벤트
- function fOnclick(){
- if( group2.grd_mypatlist.col != 0 && isDataCell()) {
- if (group2.grd_mypatlist.mergeCol(group2.grd_mypatlist.col) == true) {
- var arrRows = group2.grd_mypatlist.mergeArea(group2.grd_mypatlist.row, group2.grd_mypatlist.col).split(",");
- var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(arrRows[0], "mysetting")
- if(currentMysetting == "true" ) {
- currentMysetting = "false";
- } else {
- currentMysetting = "true";
- }
- for (var i=parseInt(arrRows[0]); i<=parseInt(arrRows[2]); i++) {
- ds_main_mypatinfo.setColumn( i , "mysetting", currentMysetting);
- }
- } else {
- var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(group2.grd_mypatlist.selectedRow(0), "mysetting")
- if (currentMysetting == "true") {
- ds_main_mypatinfo.setColumn( 0, "mypatlist["+group2.grd_mypatlist.selectedRow(0)+"]_mysetting","false");
- } else {
- ds_main_mypatinfo.setColumn( 0, "mypatlist["+group2.grd_mypatlist.selectedRow(0)+"]_mysetting","true");
- }
- }
- }
- group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
- setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
- }
- //내환자저장
- function fSave(){
- ds_send.clearData();
- //20130523 kya 유효일자 세팅
- var fromdt = group2.ipt_fromdt.value + '000000';
- var todt = group2.ipt_todt.value + '235959';
- for(var i = 0; i<group2.grd_mypatlist.rows ; i++) {
- var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(i, "mysetting");
- //alert("todt =====" + currentMysetting);
- if( currentMysetting == "t" ) {
- ds_main_mypatinfo.setColumn( i , "fromdt", fromdt);
- ds_main_mypatinfo.setColumn( i , "todt", todt);
- }
- }
- //20130520 혈액투석적정서평가를 위한 파라메터 추가
- dsf_makeValue( ds_send, "mypatlist", "string", group2.grd_mypatlist.getUpdateDataAll("u"));
- if(group2.grd_mypatlist.rows > 1){
- // if (submit("TXMND05101") ) {
- var oParam = {};
- oParam.id = "TXMND05101";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqSetMyPatList";
- oParam.inds = "reqlist=ds_";
- oParam.outds = "ds_=settinginfo";
- oParam.async = false;
- oParam.callback = "cf_TXMND05101";
- tranf_submit(oParam);
- /*
- function cf_TXMND05101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXMND05101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXMND05101") > -1
- arErrorCode.pop("TXMND05101") < 0
- */
- group2.grd_mypatlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- fGetPatList("setting"); // 환자리스트 조회
- ds_main_saveinfo.setColumn( 0, "message", " " + ds_main_settinginfo.getColumn(0, "settingtime") + "\n ["+ sysf_getUserName() + "]간호사의 \n 내환자가 Setting 되었습니다.");
- group2.grd_mypatlist.attribute("height") = "405";
- group2.tar_settinginfo.visible = true;
- //group2.tar_settinginfo.refresh();
- }
- } else {
- sysf_messageBox("저장할 내역이 ", "I004")
- }
- }
- //병동선택변경시
- function fWardcdChanged(){
- ds_send.clearData();
- dsf_makeValue( ds_send, "wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
- // submit("TRMND03302");
- var oParam = {};
- oParam.id = "TRMND03302";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "reqcond=ds_";
- oParam.outds = "ds_=mypatlist";
- oParam.async = false;
- oParam.callback = "cf_TRMND03302";
- tranf_submit(oParam);
- /*
- function cf_TRMND03302(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRMND03302(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRMND03302") > -1
- arErrorCode.pop("TRMND03302") < 0
- */
- group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
- setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
- }
- // header파일 중 SMMND05100.js 파일 끝
- function group2_grd_mypatlist_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fOnclick();
- }
- function group2_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- fSave();
- }
- function group2_btn_ref_onclick(obj:Button, e:ClickEventInfo) {
- fGetPatList(); // 환자리스트 조회
- }
- ]]></Script>
- </Form>
- </FDL>
|