123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF10100" position="absolute 0 0 1197 765" titletext="검사시행부서코드관리" oninit="SMLLF10100_oninit" onload="SMLLF10100_onload">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1068 3 1124 25" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1127 3 1195 25" onclick="btn_reset_onclick" anchor="top right"/>
- <Div id="group2" taborder="3" position="absolute 0 26 1195 61" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
- <Shape id="line11" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Button id="btn_search" taborder="1" text="조회" onclick="group2_btn_search_onclick" class="btn1" position="absolute 1123 7 1180 29" anchor="top right"/>
- <Combo id="cmb_refgbn" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 108 8 258 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">사용코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">전체코드</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="시행부서코드목록" class="tit_2" position="absolute 1 71 134 87" anchor="left top"/>
- <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 87 495 93" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 500 87 1194 93" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption3" text="시행부서상세코드목록" class="tit_2" position="absolute 501 70 656 86" anchor="left top right"/>
- <Grid id="grd_sect" taborder="4" binddataset="ds_grd_sect" useinputpanel="false" oncellclick="group3_grd_sect_oncellclick" position="absolute 0 92 495 761" cellsizingtype="col" anchor="left top bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="85"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="계명(라벨)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:sectfromdd"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:secttodd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:sectcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:sectnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:sectscrnnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:sectabbrnm"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:sectprntnm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:sectlblnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_tsect" taborder="5" binddataset="ds_grd_tsect" useinputpanel="false" position="absolute 500 92 1195 761" cellsizingtype="col" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="99"/>
- <Column size="0"/>
- <Column size="38"/>
- <Column size="49"/>
- <Column size="81"/>
- <Column size="104"/>
- <Column size="117"/>
- <Column size="90"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="사용시작일" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="사용종료일" taborder="undefined"/>
- <Cell col="3" colspan="2" text="검사계코드" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="검사계명" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="검사계명(화면)" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="검사계명(약어)" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="검사계명(출력)" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="검사계명(라벨)" taborder="undefined"/>
- <Cell row="1" col="3" text="계"/>
- <Cell row="1" col="4" text="검사계"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:tsectfromdd"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:tsecttodd"/>
- <Cell col="3" text="bind:sectcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:tsectcd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:tsectnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:tsectscrnnm"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:tsectabbrnm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:tsectprntnm"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:tsectlblnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_addnew1" taborder="6" text="행추가" onclick="group3_btn_addnew1_onclick" class="btn2" position="absolute 442 68 495 87" anchor="left top"/>
- <Button id="btn_addnew2" taborder="7" text="행추가" onclick="group3_btn_addnew2_onclick" class="btn2" position="absolute 1142 68 1195 87" anchor="top right"/>
- <Static id="caption6" text="검사시행부서코드관리" class="tit_1" position="absolute 0 0 168 25" anchor="left top"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_sect" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sectfromdd" type="STRING"/>
- <Column id="secttodd" type="STRING"/>
- <Column id="sectcd" type="STRING"/>
- <Column id="sectnm" type="STRING"/>
- <Column id="sectscrnnm" type="STRING"/>
- <Column id="sectabbrnm" type="STRING"/>
- <Column id="sectprntnm" type="STRING"/>
- <Column id="sectlblnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_tsect" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tsectfromdd" type="STRING"/>
- <Column id="tsecttodd" type="STRING"/>
- <Column id="sectcd" type="STRING"/>
- <Column id="tsectcd" type="STRING"/>
- <Column id="tsectnm" type="STRING"/>
- <Column id="tsectscrnnm" type="STRING"/>
- <Column id="tsectabbrnm" type="STRING"/>
- <Column id="tsectprntnm" type="STRING"/>
- <Column id="tsectlblnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptflag" type="STRING" size="0"/>
- <Column id="instcd" type="STRING" size="0"/>
- <Column id="refgbn" type="STRING" size="0"/>
- <Column id="userdeptflagcd" type="STRING" size="0"/>
- <Column id="sectcd" type="STRING" size="0"/>
- <Column id="cd" type="STRING" size="0"/>
- <Column id="tsected" type="STRING" size="0"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refgbn" type="STRING" size="0"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refgbn">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_grddata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_refgbn" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator : SPLLF90800_통합계검사계코드관리.xfdl
- * Make Date : 2015-12-16
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- //=======================================================================================
- function cbf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function cf_TRLLF00101(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function cf_TRLLF00102(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function cf_TXLLF00101(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function cf_TXLLF00102(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function SMLLF10100_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- // Null 체크
- function lf_NullCheck(){
-
- var msg = "";
- var nullyn = "true";
-
- if(ds_grd_tsect.rowcount < 1){
- // if(grd_tsect.rows <3){
- //alert("시행부서 상세 코드 정보를 입력하십시오.");
- sysf_messageBox("시행부서 상세 코드 정보를 ", "C001");
- return;
- }
- // for(i=1; i<grd_tsect.rows; i++ ){
- for(i=0; i<ds_grd_tsect.rowcount; i++ ){
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectlblnm"))){
- msg = "[계라벨명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectprntnm"))){
- msg = "[계출력명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectabbrnm"))){
- msg = "[계약어명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectscrnnm"))){
- msg = "[계화면명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectnm"))){
- msg = "[계명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectcd"))){
- msg = "[계코드] 는 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsecttodd"))){
- msg = "[사용종료일] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectfromdd"))){
- msg = "[사용시작일] 은 " ;
- nullyn = "false";
- }
-
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectlblnm")==""){
- // msg = "[검사계라벨명] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectprntnm")==""){
- // msg = "[검사계출력명] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectabbrnm")==""){
- // msg = "[검사계약어명] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectscrnnm")==""){
- // msg = "[검사계화면명] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectnm")==""){
- // msg = "[검사계명] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectcd")==""){
- // msg = "[검사계코드] 는 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsecttodd")==""){
- // msg = "[사용종료일] 은 " ;
- // nullyn = "false";
- // }
- //
- // if(model.getValue("/root/main/tsectlist["+i+"]/tsectfromdd")==""){
- // msg = "[사용시작일] 은 " ;
- // nullyn = "false";
- // }
-
-
- //}
- if(nullyn == "false"){
- sysf_messageBox(msg, "I003", "");
- }
- return nullyn;
-
- }
-
- }
- function lf_GetSectNull(){
-
- var msg = "";
- var nullyn = "true";
- var sectRow = ds_grd_sect.rowposition;
-
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectlblnm")==""){
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectlblnm"))){
- msg = "[계라벨명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectprntnm"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectprntnm")==""){
- msg = "[계출력명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectabbrnm"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectabbrnm")==""){
- msg = "[계약어명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectscrnnm"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectscrnnm")==""){
- msg = "[계화면명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectnm"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectnm")==""){
- msg = "[계명] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectcd"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectcd")==""){
- msg = "[계코드] 는 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"secttodd"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/secttodd")==""){
- msg = "[사용종료일] 은 " ;
- nullyn = "false";
- }
- if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectfromdd"))){
- // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectfromdd")==""){
- msg = "[사용시작일] 은 " ;
- nullyn = "false";
- }
-
- if(nullyn == "false"){
- sysf_messageBox(msg, "I003", "");
- }
- return nullyn;
- }
-
- function SMLLF10100_onload(obj:Form, e:LoadEventInfo)
- {
- var today = utlf_getCurrentDate();
- grdf_setRowTypeIcon(grd_sect, 0);
- grdf_setRowTypeIcon(grd_tsect, 0);
-
- //세부내역갱신을 위한 초기화
- //grdf_setRowTypeIcon(group6.swt_tclscd.case5.grd_detltest, 0);
-
- // 초기정보 조회
- //0001 : 병동조회, 0000 : 사용자부서코드조회, 1004 : 아침채혈 및 BT, MR 등 아침채혈화면에서 조회
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "codeflag", val: "0000|"}]);
- //메뉴권한별로 버튼 권한주기.
- //setScreenBtnDisabled();
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_init_lb0000=0000";
- oParam.async = false;
- oParam.callback = "cbf_TRLZZ00101";
- tranf_submit(oParam);
-
- lf_SetHddentodd();
-
- }
- function lf_ExeSectTsect(){
-
- var oDsUpdate = grdf_getGridUpdateData(grd_sect);
- grdf_setStatusColumn(oDsUpdate,"status");
- ds_grddata.clear();
- ds_grddata.copyData(oDsUpdate, true);
-
- var today = utlf_getCurrentDate();
- // var sectdata = getGridUpdateData(grd_sect);
- // var row = grd_sect.row;
- // var today = getCurrentDate();
-
- var tsectRow = ds_grd_tsect.rowcount;
- if(tsectRow < 1){
- // if(tsectRow < 3){
- sysf_messageBox("시행부서 상세 코드 정보를 ", "C001");
- return;
- }
-
- //var tsectRow = grd_tsect.rows;
- //var sectcd = model.getValue("/root/main/sectlist["+grd_sect.row+"]/sectcd");
- //계 정보 등록
- // model.setValue("/root/send/sectdata", sectdata);
- // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
- ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0, "nm" )); //
-
- var oParam = {};
- oParam.id = "TXLLF00101";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqExeSaveUnitySectInfo";
- oParam.inds = "slist=ds_grddata flist=ds_send";
- oParam.outds = "ds_grd_sect=getsect";
- oParam.async = false;
- oParam.callback = "cf_TXLLF00101";
- tranf_submit(oParam);
-
- // submit("TXLLF10101");
-
- // 검사계 정보 등록
- var oDsUpdate2 = grdf_getGridUpdateData(grd_tsect);
- grdf_setStatusColumn(oDsUpdate2,"status");
- ds_grddata2.clear();
- ds_grddata2.copyData(oDsUpdate2, true);
-
- // var tsectdata = getGridUpdateData(grd_tsect);
- var l_current = ds_grd_sect.rowposition;
- var sectcd = ds_grd_sect.getColumn(l_current,"sectcd");
-
- // alert(sectcd);
- ds_send.setColumn(0,"sectcd", sectcd);
-
- // model.setValue("/root/send/sectcd", sectcd);
- // model.setValue("/root/send/tsectdata", tsectdata);
- // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
- var oParam = {};
- oParam.id = "TXLLF00102";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqExeSaveUnityTsectInfo";
- oParam.inds = "cond=ds_send tlist=ds_grddata2 flist=ds_send";
- oParam.outds = "ds_grd_tsect=getsect";
- oParam.async = false;
- oParam.callback = "cf_TXLLF00102";
- tranf_submit(oParam);
-
- // ds_grddata.clear();
- // submit("TXLLF10102");
-
- }
-
- function lf_SetHddentodd(){
- // if(cmb_refgbn.value == "1"){
- // grd_sect.colHidden(2) = true;
- // grd_tsect.colHidden(2) = true;
- // }else if(cmb_refgbn.value =="2"){
- // grd_sect.colHidden(2) = false;
- // grd_tsect.colHidden(2) = false;
- // }
- }
- function lf_GetSectTsect(){
- // grd_sect.rebuildstyle();
- //검사코드 추가 권한자이면 검사코드추가 버튼 활성화
-
- ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
- ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0,"nm"));
- // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
- // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
- var oParam = {};
- oParam.id = "TRLLF00101";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnitySectList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_sect=getUnitySectList";
- oParam.async = false;
- oParam.callback = "cf_TRLLF00101";
- tranf_submit(oParam);
-
- // submit("TRLLF10101"); // 계 리스트 조회
-
- var gbn = ds_hidden.getColumn(0,"refgbn");
- // var gbn = model.getValue("/root/hidden/ref/refgbn");
- var today = utlf_getCurrentDate();
-
- // 전체조회일때 종료된 데이터 배경색 바꾸기
- if(gbn=="2"){
- grdf_setRowStyle( group3.grd_sect , "0" ,today,"secttodd","small") // 병실정보row의 색상을 변경한다.
- // setRowStyle("grd_sect", "0", today, "secttodd", "small");
- }
-
- // 계리스트 존재시 검사계 자동조회
- if(ds_grd_sect.rowcount > 0){
- // if(grd_sect.rows > 0){
- ds_grd_sect.rowposition = 0;
- // grd_sect.row = 1;
- lf_GetTsect(0);
- }
- }
- // 검사계 리스트 조회
- function lf_GetTsect(sectRow){
- // grd_tsect.allStyle("all", "background-color") = "#FFFFFF";
- var today = utlf_getCurrentDate();
- var cdd = ds_grd_sect.getColumn(sectRow,"sectcd");
-
-
- ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
- ds_send.setColumn(0,"cd", cdd);
- var oParam = {};
- oParam.id = "TRLLF00102";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnityTsectList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_tsect=getUnityTsectList";
- oParam.async = false;
- oParam.callback = "cf_TRLLF00102";
- tranf_submit(oParam);
-
- // submit("TRLLF10102");
-
- grdf_setRowStyle(grd_tsect , "0" ,today,"tsecttodd","small") //
- // setRowStyle("grd_tsect", "0", getCurrentDate(), "tsecttodd", "small");
-
- // grd_tsect.allStyle("all", "background-color") = "#FFFFFF";
- // var cdd = model.getValue("/root/main/sectlist["+sectRow+"]/sectcd");
- //
- // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
- // model.setValue("/root/send/sectcd", cdd);
- //
- // submit("TRLLF10102");
- //
- // setRowStyle("grd_tsect", "0", getCurrentDate(), "tsecttodd", "small");
- }
-
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- // 계코드 조회
- lf_GetSectTsect();
- }
- function group3_grd_sect_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_GetTsect(obj.currentrow);
- }
- function lf_SetSectRowAdd(){
-
- var l_current = ds_grd_sect.addRow();
- // grd_sect.rowStatus(0) = 1;
-
- var today = utlf_getCurrentDate();
-
- ds_grd_sect.setColumn(l_current,"sectfromdd", today);
- ds_grd_sect.setColumn(l_current,"secttodd", "99991231");
- ds_grd_sect.setColumn(l_current,"sectabbrnm", "-");
- ds_grd_sect.setColumn(l_current,"sectprntnm", "-");
- ds_grd_sect.setColumn(l_current,"sectlblnm","-");
-
- // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectfromdd", today);
- // model.setValue("/root/main/sectlist["+grd_sect.row+"]/secttodd", "99991231");
- // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectabbrnm", "-");
- // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectprntnm", "-");
- // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectlblnm", "-");
-
- // model.removeNodeset("/root/main/tsectlist");
- // grd_tsect.refresh();
- }
- function lf_SetTsectRowAdd(){
-
- //grd_tsect.addRow();
- var l_current = ds_grd_tsect.addRow();
- var today = utlf_getCurrentDate();
-
- ds_grd_tsect.setColumn(l_current,"tsectfromdd", today);
- ds_grd_tsect.setColumn(l_current,"tsecttodd", "99991231");
- ds_grd_tsect.setColumn(l_current,"tsectabbrnm", "-");
- ds_grd_tsect.setColumn(l_current,"tsectprntnm", "-");
- ds_grd_tsect.setColumn(l_current,"tsectlblnm","-");
-
- // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectfromdd", today);
- // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsecttodd", "99991231");
- // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectabbrnm", "-");
- // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectprntnm", "-");
- // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectlblnm", "-");
-
- }
-
- function group3_btn_addnew1_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_SetSectRowAdd();
- }
- function group3_btn_addnew2_onclick(obj:Button, e:ClickEventInfo)
- {
- if(lf_GetSectNull()=="true"){
- lf_SetTsectRowAdd();
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(lf_NullCheck()=="true"){
- lf_ExeSectTsect();
- }
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetInit();
- }
- // 초기화 버튼
- function fSetInit()
- {
- ds_grd_sect.clearData();
- ds_grd_tsect.clearData();
- }
- ]]></Script>
- </Form>
- </FDL>
|