123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLP01300" position="absolute 0 0 1256 805" titletext="수정결과조회" onload="SMLLP01300_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 0 70 1194 70" anchor="default" linetype="horizontal" positiontype="position"/>
- <Div id="group1" position="absolute 0 0 1256 42" anchor="left top right" positiontype="position" class="div_SA">
- <Layouts>
- <Layout>
- <Shape id="line3" class="line_4" position="absolute 1108 10 1108 32" anchor="default" linetype="vertical" positiontype="position"/>
- <Static id="caption2" class="search_name" position="absolute 8 10 76 30" anchor="default" text="등록일자" positiontype="position"/>
- <Button id="btn_Ref" class="btn1" position="absolute 1116 10 1172 30" anchor="top right" text="조회" onclick="group3_group1_btn_Ref_onclick" positiontype="position"/>
- <Static id="caption11" position="absolute 186 12 198 29" anchor="default" text="~" positiontype="position"/>
- <Static id="caption1" class="search_name" position="absolute 322 10 390 30" anchor="default" text="조회구분" positiontype="position"/>
- <Combo id="cmb_sectcd" visible="false" position="absolute 487 10 603 30" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm" positiontype="position"/>
- <Combo id="testlrgcd" position="absolute 484 10 600 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" positiontype="position"/>
- <Calendar id="ipt_usdt" class="input_s_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
- <Calendar id="ipt_uedt" class="input_s_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
- <Combo id="combo2" position="absolute 396 10 481 30" anchor="default" innerdataset="@ds_refflag" codecolumn="value" datacolumn="label" index="0" value="1" text="검사분류" onitemchanged="group3_group1_combo2_onitemchanged" positiontype="position"/>
- <Static id="caption4" class="search_name" position="absolute 625 10 693 30" anchor="default" text="등록번호" positiontype="position"/>
- <Static id="caption5" class="search_name" position="absolute 813 10 894 30" anchor="default" text="바코드번호" positiontype="position"/>
- <Edit id="ipt_pid" class="input_s_button" position="absolute 699 10 789 30" anchor="default" onkeydown="group3_group1_ipt_pid_onkeydown" imemode="alpha" inputtype="digit" maxlength="9" positiontype="position"/>
- <Edit id="ipt_bcno" class="input_s_button" position="absolute 900 10 1000 30" anchor="default" onkeydown="group3_group1_ipt_bcno_onkeydown" inputmode="upper" useime="none" imemode="alpha" maxlength="15" positiontype="position"/>
- <CheckBox id="check1" position="absolute 1003 10 1079 30" anchor="default" text="통계 여부" falsevalue="" value="true" truevalue="Y" visible="false" positiontype="position"/>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn3" position="absolute 1175 10 1244 30" anchor="top right" onclick="group3_group1_btn_reset_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" class="tit_2" position="absolute 0 52 139 68" anchor="default" text="수정결과조회" positiontype="position"/>
- <Grid id="grd_updtrsltlist" position="absolute 0 72 1253 780" anchor="all" binddataset="ds_grid_grd_updtrsltlist" onheadclick="group3_grd_updtrsltlist_onheadclick" cellsizingtype="col" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="137"/>
- <Column size="76"/>
- <Column size="82"/>
- <Column size="67"/>
- <Column size="82"/>
- <Column size="131"/>
- <Column size="120"/>
- <Column size="83"/>
- <Column size="120"/>
- <Column size="85"/>
- <Column size="183"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="상태"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="3" text="수정일시"/>
- <Cell col="4" text="등록번호"/>
- <Cell col="5" text="성명"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="병동/병실"/>
- <Cell col="8" text="수정검사항목"/>
- <Cell col="9" text="수정전결과"/>
- <Cell col="10" text="수정전보고자"/>
- <Cell col="11" text="수정후결과"/>
- <Cell col="12" text="수정후보고자"/>
- <Cell col="13" text="수정사유"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="image" style="align:center;" expr="expr:expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="2" displaytype="expr:pid != '' ? 'checkbox' : 'default'" edittype="expr:pid != '' ? 'checkbox' : 'default'" text="bind:chk"/>
- <Cell col="3" text="bind:updtdt" mask="expr:updtdt !='' ? '@@@@-@@-@@ @@:@@:@@' : ''"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:pid"/>
- <Cell col="5" text="bind:patnm"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:wardroom"/>
- <Cell col="8" style="align:left;" text="bind:tclsnm"/>
- <Cell col="9" style="align:left;" text="bind:updtbfrslt"/>
- <Cell col="10" text="bind:updtbfreptnm"/>
- <Cell col="11" style="align:left;" text="bind:updtaftrslt"/>
- <Cell col="12" text="bind:updtaftreptnm"/>
- <Cell col="13" style="align:left;" text="bind:updtresn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" class="btn7" position="absolute 1196 49 1249 69" anchor="top right" text="엑셀" onclick="group3_btn_excel_onclick" positiontype="position"/>
- <Grid id="grd_updtrsltlistEx" taborder="1" binddataset="ds_grid_grd_updtrsltlist" useinputpanel="false" cellsizingtype="col" onheadclick="group3_grd_updtrsltlist_onheadclick" position="absolute 213 199 694 491" anchor="all" visible="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="137"/>
- <Column size="76"/>
- <Column size="82"/>
- <Column size="67"/>
- <Column size="82"/>
- <Column size="131"/>
- <Column size="120"/>
- <Column size="83"/>
- <Column size="120"/>
- <Column size="85"/>
- <Column size="183"/>
- <Column size="117"/>
- <Column size="158"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="수정일시"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="성명"/>
- <Cell col="4" text="진료과"/>
- <Cell col="5" text="병동/병실"/>
- <Cell col="6" text="수정검사항목"/>
- <Cell col="7" text="수정전결과"/>
- <Cell col="8" text="수정전보고자"/>
- <Cell col="9" text="수정후결과"/>
- <Cell col="10" text="수정후보고자"/>
- <Cell col="11" text="수정사유"/>
- <Cell col="12" text="바코드번호"/>
- <Cell col="13" text="통보시간"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:updtdt" mask="expr:updtdt !='' ? '@@@@-@@-@@ @@:@@:@@' : ''"/>
- <Cell col="2" displaytype="text" text="bind:pid"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" text="bind:orddeptnm"/>
- <Cell col="5" text="bind:wardroom"/>
- <Cell col="6" style="align:left;" text="bind:tclsnm"/>
- <Cell col="7" style="align:left;" text="bind:updtbfrslt"/>
- <Cell col="8" text="bind:updtbfreptnm"/>
- <Cell col="9" style="align:left;" text="bind:updtaftrslt"/>
- <Cell col="10" text="bind:updtaftreptnm"/>
- <Cell col="11" style="align:left;" text="bind:updtresn"/>
- <Cell col="12" text="bind:bcno"/>
- <Cell col="13" text="bind:notidt" mask="@@@@-@@-@@ @@:@@:@@"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_print" taborder="1" text="출력" class="btn6" position="absolute 1141 0 1197 20" anchor="top right" onclick="btn_print_onclick"/>
- <Button id="btn_delete" taborder="2" text="삭제" class="btn4" position="absolute 1200 0 1256 20" anchor="top right" onclick="btn_delete_onclick"/>
- <Static id="caption6" text="수정결과조회" class="tit_1" position="absolute 0 0 155 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_refflag" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">검사분류</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">시행부서</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_grd_updtrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <column id="chk" type="STRING" size="256"/>
- <column id="updtdt" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="orddeptnm" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="tclsnm" type="STRING" size="256"/>
- <column id="updtbfrslt" type="STRING" size="256"/>
- <column id="updtbfreptnm" type="STRING" size="256"/>
- <column id="updtaftrslt" type="STRING" size="256"/>
- <column id="updtaftreptnm" type="STRING" size="256"/>
- <column id="updtresn" type="STRING" size="256"/>
- <column id="notidt" type="STRING" size="256"/>
- <column id="bcno" type="STRING" size="256"/>
- <column id="updtbfreptdt" type="STRING" size="256"/>
- <column id="notichrgnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_updtrsltlistPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="updtdt" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="orddeptnm" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="tclsnm" type="STRING" size="256"/>
- <column id="updtbfrslt" type="STRING" size="256"/>
- <column id="updtbfreptnm" type="STRING" size="256"/>
- <column id="updtaftrslt" type="STRING" size="256"/>
- <column id="updtaftreptnm" type="STRING" size="256"/>
- <column id="updtresn" type="STRING" size="256"/>
- <column id="notidt" type="STRING" size="256"/>
- <column id="bcno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLLP01300_onload(obj:Form, e:LoadEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- var toDay = utlf_getCurrentDate();
- group3.group1.ipt_usdt.value = toDay;
- group3.group1.ipt_uedt.value = toDay;
-
- // 초기정보 조회( 0104 검사 대분류)
- lf_getDbDeptcd("0000|0104|0111|","cbf_SMLLP01300");
- }
- function lf_updtaftrsltlist() {
-
- var usdd = group3.group1.ipt_usdt.value; // 등록시작일
- var uedd = group3.group1.ipt_uedt.value; // 등록종료일
- var testlrgcd = group3.group1.testlrgcd.value;
- var sectcd = group3.group1.cmb_sectcd.value;
- var refflag = group3.group1.combo2.value;
- var pid = group3.group1.ipt_pid.value;
- var bcno = group3.group1.ipt_bcno.value;
- var stsyn = "";
- if(group3.group1.check1.value) {
- stsyn = group3.group1.check1.truevalue;
- }else{
- stsyn = "";
- }
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "usdd" , val:usdd }
- , {col: "uedd" , val:uedd }
- , {col: "testlrgcd" , val:testlrgcd }
- , {col: "sectcd" , val:sectcd }
- , {col: "refflag" , val:refflag }
- , {col: "pid" , val:pid }
- , {col: "bcno" , val:bcno }
- ]);
- var oParam = {};
- oParam.id = "TRLLP01301";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetUpdtRslt";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_updtrsltlist=getUpdtRsltList";
- oParam.async = false;
- oParam.callback = "cbf_SMLLP01300";
- tranf_submit(oParam);
- }
-
- function lf_delete(){
- for(i=0; i<ds_grid_grd_updtrsltlist.rowcount; i++ ){
-
- ds_grid_grd_updtrsltlist.updatecontrol = false;
-
- if(ds_grid_grd_updtrsltlist.getColumn(i, "chk") =="1"){
- ds_grid_grd_updtrsltlist.setColumn(i, "status", "u");
- }else{
- ds_grid_grd_updtrsltlist.setColumn(i, "status", "");
- }
- ds_grid_grd_updtrsltlist.updatecontrol = true;
- }
-
- var oParam = {};
- oParam.id = "TXLLP01301";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqDelUpdtRslt";
- oParam.inds = "del=ds_grid_grd_updtrsltlist:U";
- oParam.async = false;
- oParam.callback = "cbf_SMLLP01300";
- tranf_submit(oParam);
- }
- // 엑셀 저장
- function lf_exeExcel() {
-
- var objExGrid = this.all["_grdExcel"];
- if(objExGrid == null)
- {
- objExGrid = new Grid("_grdExcel", group3.grd_updtrsltlist.position.left, group3.grd_updtrsltlist.position.top, group3.grd_updtrsltlist.position.right, group3.grd_updtrsltlist.position.bottom);
- this.addChild("_grdExcel", objExGrid);
- objExGrid.visible = false;
- objExGrid.show();
- }
-
- objExGrid.binddataset = group3.grd_updtrsltlist.binddataset;
- objExGrid.formats = "<Formats>" + group3.grd_updtrsltlist.getCurFormatString() + "</Formats>";
-
- objExGrid.deleteContentsCol(objExGrid.getCellProperty("body", 2, "col"));
- objExGrid.deleteContentsCol(objExGrid.getCellProperty("body", 1, "col"));
-
- grdf_exportExcel(objExGrid, lf_lisGetTitle(this), "sheet1", true);
- }
- // 엔터키 처리
- function lf_keyEvent(obj, e){
-
- if(e.keycode == 13) {
- // 등록번호 바코드 리딩시
- if(obj.name == "ipt_pid"){
- group3.group1.ipt_pid.value = group3.group1.ipt_pid.value.toUpperCase();
- if(!utlf_isNull(group3.group1.ipt_pid.value)){
- group3.group1.ipt_pid.value = frmf_setInputNodeCurPid_Change(group3.group1.ipt_pid.value);
- }
- lf_updtaftrsltlist();
- }
-
- // 검체번호 바코드 리딩시
- if(obj.name == "ipt_bcno"){
- group3.group1.ipt_bcno.value = group3.group1.ipt_bcno.value.toUpperCase();
- lf_updtaftrsltlist();
- group3.group1.ipt_bcno.setFocus();
- group3.group1.ipt_bcno.setSelect(0,group3.group1.ipt_bcno.getLength());
- }
- }
- }
- // callback 함수
- function cbf_SMLLP01300(strSvcID, nErrorCode, strErrorMag) {
-
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID){
- case "TRLZZ00101":
- group3.group1.testlrgcd.index = 0;
- group3.group1.cmb_sectcd.index = 0;
- break;
- case "TRLLP01301":
- // ↓ 환자이름 동일하면 같은내용 안보이게
-
- var sPid = ds_grid_grd_updtrsltlist.getColumn(0, "pid");
- var sUpDtDt = ds_grid_grd_updtrsltlist.getColumn(0, "updtdt");
-
- ds_grid_grd_updtrsltlist.updatecontrol=false;
- for(i = 0; i < ds_grid_grd_updtrsltlist.rowcount; i++) {
- if(i == 0 || ds_grid_grd_updtrsltlist.getColumn(i,"pid") != sPid || ds_grid_grd_updtrsltlist.getColumn(i,"updtdt") != sUpDtDt){
- sPid = ds_grid_grd_updtrsltlist.getColumn(i,"pid");
- sUpDtDt = ds_grid_grd_updtrsltlist.getColumn(i,"updtdt");
- } else if(ds_grid_grd_updtrsltlist.getColumn(i,"pid") == sPid && ds_grid_grd_updtrsltlist.getColumn(i,"updtdt") == sUpDtDt) {
- ds_grid_grd_updtrsltlist.setColumn(i, "updtdt", "");
- ds_grid_grd_updtrsltlist.setColumn(i, "pid", "");
- ds_grid_grd_updtrsltlist.setColumn(i, "patnm", "");
- ds_grid_grd_updtrsltlist.setColumn(i, "orddeptnm", "");
- ds_grid_grd_updtrsltlist.setColumn(i, "wardroom", "");
- }
- }
- ds_grid_grd_updtrsltlist.updatecontrol=true;
- break;
- case "TXLLP01301":
- lf_updtaftrsltlist();
- break;
- default:
- break;
- }
- }
- }
- function fn_checkAll(obj,e){
- var strType;
- var vl_chk;
- var strVal;
- var strChkVal;
- var objDS;
- var nCell = e.cell;
- var nSubCnt = obj.getSubCellCount("head",nCell);
- var nSubCnt2 = 0;
- var nSubCntTot = 0;
-
- for(var i=0; i< nCell; i++){
- nSubCnt2 = obj.getSubCellCount("head",i);
- nSubCntTot += nSubCnt2;
- }
-
- objDS = eval(obj.binddataset);
- if (nSubCnt > 0) { // Case Merge Cell
- var nChkIdx = -1;
- for ( var i = 0; i < nSubCnt; i++)
- {
- strType = obj.getSubCellProperty("head",e.cell,i,"displaytype");
- if(strType == "checkbox") {
- nChkIdx = i;
- break;
- }
- }
-
- if (nChkIdx == -1)
- return;
- // Head setting
- strVal = obj.getSubCellProperty("head", nCell, nChkIdx, "text");
- if (strVal == "0" || utlf_isNull(strVal)) {
- obj.setSubCellProperty("head",nCell,nChkIdx,"text", '1');
- vl_chk="1";
- } else {
- obj.setSubCellProperty("head",nCell,nChkIdx,"text", '0');
- vl_chk="0";
- }
- } else { // Case not merge
- strType = obj.getCellProperty("head", e.cell, "displaytype");
- if(strType != "checkbox") {
- return;
- }
- // Head setting
- strVal = obj.getCellProperty("head", nCell, "text");
- try{
- strVal = strVal.replace("expr:","");
- }catch(e){};
-
- if (strVal == "0" || utlf_isNull(strVal)) {
- obj.setCellProperty("head", nCell, "text", '1');
- vl_chk="1";
- } else {
- obj.setCellProperty("head", nCell, "text", '0');
- vl_chk="0";
- }
- }
-
- var nCell = grdf_setGridCheckInfo(obj,e);
-
- var BodyColId = (obj.getCellProperty("body", nCell,"text")).toString().split(":"); // e.col : 바인드된 컬럼.
- if (BodyColId[0] != "bind") {
- return false;
- }
- for(var i=0 ; i< objDS.getRowCount(); i++){
-
- ////조건 추가////////////
- var pid = objDS.getColumn(i,"pid");
- if(!utlf_isNull(pid)){
- objDS.setColumn(i, BodyColId[1], vl_chk);
- }
- }
- }
- function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_updtaftrsltlist()
- }
- function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeExcel();
- }
- function group3_group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_updtrsltlistPrint.clearData();
- var addRw = 0;
-
- for(var i=0; i<ds_grid_grd_updtrsltlist.rowcount; i++)
- {
- addRw = ds_grid_grd_updtrsltlistPrint.addRow();
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtdt", ds_grid_grd_updtrsltlist.getColumn(i,"updtdt"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "pid", ds_grid_grd_updtrsltlist.getColumn(i,"pid"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "patnm", ds_grid_grd_updtrsltlist.getColumn(i,"patnm"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "orddeptnm", ds_grid_grd_updtrsltlist.getColumn(i,"orddeptnm"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "wardroom", ds_grid_grd_updtrsltlist.getColumn(i,"wardroom"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "tclsnm", ds_grid_grd_updtrsltlist.getColumn(i,"tclsnm"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtbfrslt", ds_grid_grd_updtrsltlist.getColumn(i,"updtbfrslt"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtbfreptnm", ds_grid_grd_updtrsltlist.getColumn(i,"updtbfreptnm"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtaftrslt", ds_grid_grd_updtrsltlist.getColumn(i,"updtaftrslt"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtaftreptnm", ds_grid_grd_updtrsltlist.getColumn(i,"updtaftreptnm"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtresn", ds_grid_grd_updtrsltlist.getColumn(i,"updtresn"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "notidt", ds_grid_grd_updtrsltlist.getColumn(i,"notidt"));
- ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "bcno", ds_grid_grd_updtrsltlist.getColumn(i,"bcno"));
- }
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_makeNodeToDOM(objDOM, "/root/main/print");
- rptf_setValueToDOM(objDOM, "/root/main/print/fromdd", group3.group1.ipt_usdt.value);
- rptf_setValueToDOM(objDOM, "/root/main/print/todd", group3.group1.ipt_uedt.value);
- rptf_setNodeListToDOM(objDOM, "/root/main/updtrsltlist", ds_grid_grd_updtrsltlistPrint); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPLLP01300"],[objParam], option);
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_delete();
- }
- // 등록번호 key down
- function group3_group1_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- lf_keyEvent(obj, e);
- }
- // 바코드번호 key down
- function group3_group1_ipt_bcno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- lf_keyEvent(obj, e);
- }
- //조회구분선택 검사분류,시행부서
- function group3_group1_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 검사분류
- if(group3.group1.combo2.value == "1"){
- group3.group1.testlrgcd.visible = true;
- group3.group1.cmb_sectcd.visible = false;
-
- // 시행부서
- }else{
- group3.group1.testlrgcd.visible = false;
- group3.group1.cmb_sectcd.visible = true;
- }
- }
- function group3_grd_updtrsltlist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if (e.col == 2) fn_checkAll(obj,e);
- }]]></Script>
- </Form>
- </FDL>
|