123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF10500" position="absolute 0 0 1196 789" titletext="New Form" oninit="SMLLF10500_oninit" onload="SMLLF10500_onload">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1068 2 1124 24" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1127 2 1195 24" anchor="top right" onclick="btn_reset_onclick"/>
- <Static id="caption6" text="검사코드관리" class="tit_1" position="absolute 0 0 121 25" anchor="left top"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 90 860 96" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Shape id="line11" linetype="vertical" position="absolute 1105 34 1111 56" anchor="top right"/>
- <Static id="caption2" text="검사분류상세내역" class="tit_2" position="absolute 1 74 132 90" anchor="left top"/>
- <Grid id="grd_tclscd" taborder="3" binddataset="ds_main_tclslist_tclscdlist1" useinputpanel="false" position="absolute 0 95 860 764" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="150"/>
- <Column size="65"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="검사명(약어)"/>
- <Cell col="9" text="검사명(출력)"/>
- <Cell col="10" text="검사명(라벨)"/>
- <Cell col="11" text="검사방법"/>
- <Cell col="12" text="본원"/>
- <Cell col="13" text="칠곡"/>
- <Cell col="14" text="의정부"/>
- <Cell col="15" text="부천성모"/>
- <Cell col="16" text="성바오로"/>
- <Cell col="17" text="성모자애"/>
- <Cell col="18" text="성빈센트"/>
- <Cell col="19" text="대전"/>
- <Cell col="20" text="EDI코드"/>
- <Cell col="21" text="대분류"/>
- <Cell col="22" text="level"/>
- <Cell col="23" text="htclscd"/>
- <Cell col="24" text="hspccd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:tclscdfromdd" mask="yyyy-MM-dd"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:tclscdtodd" mask="yyyy-MM-dd"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:testmdlcd" combodataset="ds_init_LB3102" combocodecol="cd" combodatacol="nm" combodisplayrowcount="20"/>
- <Cell col="4" displaytype="text" edittype="text" editfilter="upper,number,char" text="bind:tclscd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:tclsnm"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_choices" combocodecol="value" combodatacol="label" combodisplayrowcount="7"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:tclsscrnnm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:tclsabbrnm"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:tclsprntnm"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:tclslblnm"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:testmthd"/>
- <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:his011" expr="expr:his011 == 'Y' ? '1' : '0'"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:his012" expr="expr:his012 == 'Y' ? '1' : '0'"/>
- <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:his013"/>
- <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:his014"/>
- <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:his015"/>
- <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:his016"/>
- <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:his017"/>
- <Cell col="19" displaytype="checkbox" edittype="checkbox" text="bind:his018"/>
- <Cell col="20" text="bind:testlrgcd"/>
- <Cell col="21" text="bind:level"/>
- <Cell col="22" text="bind:htclscd"/>
- <Cell col="23" text="bind:hspccd"/>
- <Cell col="24" text="bind:htodd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group1" taborder="4" position="absolute 0 26 1195 66" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 642 11 732 28" anchor="top right"/>
- <Static id="caption4" text="조회항목구분 :" class="search_name" position="absolute 12 11 110 28" anchor="left top"/>
- <Combo id="cmb_mdl" taborder="1" innerdataset="@ds_init_LB3102" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 298 8 448 27" anchor="default"/>
- <Combo id="cmb_lrg" taborder="2" innerdataset="@ds_init_LB3104" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 298 8 448 27" anchor="left top"/>
- <Radio id="rdo_lrgmdl" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" onitemclick="group3_group1_rdo_lrgmdl_onitemclick" onitemchanged="group3_group1_rdo_lrgmdl_onitemchanged" class="radio_search" position="absolute 118 10 281 27" anchor="left top">
- <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>
- </Radio>
- <Combo id="cmb_refgbn" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 735 10 885 29" anchor="top right">
- <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>
- <Edit id="ipt_search" taborder="5" class="input_s_button" position="absolute 888 10 998 29" anchor="top right" onkeyup="group1_ipt_search_onkeyup"/>
- <Button id="btn_ref" taborder="6" text="조회" onclick="group3_group1_btn_ref_onclick" class="btn1" position="absolute 1125 9 1181 31" anchor="top right"/>
- <Button id="btn_reftext" taborder="7" position="absolute 980 12 996 27" anchor="top right" onclick="group1_btn_reftext_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button6" taborder="5" text="* 임시 r" class="btn2" visible="false" position="absolute 850 69 936 88" anchor="top right"/>
- <Grid id="grd_calc" taborder="6" binddataset="ds_main_tclslist_tclscdlist2" useinputpanel="false" position="absolute 865 95 1194 764" anchor="top right bottom" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="160"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="level"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:calcscorcd"/>
- <Cell col="2" text="bind:insuedicd"/>
- <Cell col="3" text="bind:ordnm"/>
- <Cell col="4" text="bind:grupsnglflag"/>
- <Cell col="5" text="bind:tclscd"/>
- <Cell col="6" text="bind:spccd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_insert" taborder="7" text="행삽입" onclick="group3_btn_insert_onclick" class="btn2" position="absolute 1141 69 1194 88" anchor="top right"/>
- <Button id="btn_add" taborder="8" text="행추가" onclick="group3_btn_add_onclick" class="btn2" position="absolute 1085 69 1138 88" anchor="top right"/>
- <Button id="btn_del" taborder="9" text="행삭제" onclick="group3_btn_del_onclick" class="btn2" visible="false" position="absolute 1029 69 1082 88" anchor="top right"/>
- <Shape id="line00" class="line_1" position="absolute 865 90 1194 96" style="strokepen:3 solid #33bbbbff;" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_tclslist_tclscdlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_tclslist_tclscdlist1_oncolumnchanged">
- <ColumnInfo>
- <Column id="tclscdfromdd" type="STRING"/>
- <Column id="tclscdtodd" type="STRING"/>
- <Column id="testmdlcd" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- <Column id="tclsscrnnm" type="STRING"/>
- <Column id="tclsabbrnm" type="STRING"/>
- <Column id="tclsprntnm" type="STRING"/>
- <Column id="tclslblnm" type="STRING"/>
- <Column id="testmthd" type="STRING"/>
- <Column id="his011" type="STRING"/>
- <Column id="his012" type="STRING"/>
- <Column id="his013" type="STRING"/>
- <Column id="his014" type="STRING"/>
- <Column id="his015" type="STRING"/>
- <Column id="his016" type="STRING"/>
- <Column id="his017" type="STRING"/>
- <Column id="his018" type="STRING"/>
- <Column id="testlrgcd" type="STRING"/>
- <Column id="level" type="STRING"/>
- <Column id="htclscd" type="STRING"/>
- <Column id="hspccd" type="STRING"/>
- <Column id="htodd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_tclslist_tclscdlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="calcscorcd" type="STRING"/>
- <Column id="insuedicd" type="STRING"/>
- <Column id="ordnm" type="STRING"/>
- <Column id="grupsnglflag" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="codeflag" type="STRING" size="256"/>
- <Column id="refgbn" type="STRING" size="256"/>
- <Column id="searchgbn" type="STRING" size="256"/>
- <Column id="lrgselect" type="STRING" size="256"/>
- <Column id="mdlselect" type="STRING" size="256"/>
- <Column id="grddata" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="searchtext" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refgbn" type="STRING" size="256"/>
- <Column id="searchgbn" type="STRING" size="256"/>
- <Column id="searchselect" type="STRING" size="256"/>
- <Column id="lrgselect" type="STRING" size="256"/>
- <Column id="mdlselect" type="STRING" size="256"/>
- <Column id="spclist" type="STRING" size="256"/>
- <Column id="searchtext" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refgbn">1</Col>
- <Col id="searchgbn">1</Col>
- <Col id="searchselect">1</Col>
- <Col id="lrgselect">00</Col>
- <Col id="mdlselect">00</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_LB3102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_LB3104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </ColumnInfo>
- </Dataset>
- <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" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_choices" firefirstcount="0" firenextcount="0" useclientlayout="false" 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">Group</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">Panel</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">Single</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">Parent</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">Child</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">Abnormal</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">성분제제</Col>
- <Col id="value">6</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.rdo_lrgmdl" propid="value" datasetid="ds_hidden" columnid="searchgbn"/>
- <BindItem id="item1" compid="group1.cmb_lrg" propid="value" datasetid="ds_hidden" columnid="lrgselect"/>
- <BindItem id="item2" compid="group1.cmb_refgbn" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
- <BindItem id="item3" compid="group1.ipt_search" propid="value" datasetid="ds_hidden" columnid="searchtext"/>
- <BindItem id="item4" compid="group1.cmb_mdl" propid="value" datasetid="ds_hidden" columnid="mdlselect"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator : SMLLF10500_통합검사코드관리.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 SMLLF10500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLLF10500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_tclscd);
- grdf_initGrid(grd_calc);
- grdf_setRowTypeIcon(grd_tclscd, 0);
-
- // 초기정보 조회
- ds_send.setColumn(0, "codeflag", "3102|3104|0000|"); // 3102= [CMCDB]중분류 // 3104 [CMCDB]대분류
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_LB3102=3102 ds_init_LB3104=3104 ds_init_LB0000=0000";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- }
- function group3_group1_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTclscdList();
- }
- function fGetTclscdList()
- {
- ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "refgbn"));
- ds_send.setColumn(0, "searchgbn", ds_hidden.getColumn(0, "searchgbn"));
- ds_send.setColumn(0, "lrgselect", ds_hidden.getColumn(0, "lrgselect"));
- ds_send.setColumn(0, "mdlselect", ds_hidden.getColumn(0, "mdlselect"));
- ds_send.setColumn(0, "searchtext", ds_hidden.getColumn(0, "searchtext"));
- ds_send.setColumn(0, "deptflag", ds_init_LB0000.getColumn(0, "nm"));
-
- var oParam = {};
- oParam.id = "TRLLF00501";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnityTclscdList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_main_tclslist_tclscdlist1=gettclscd ds_main_tclslist_tclscdlist2=gettclscd";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF00501";
- tranf_submit(oParam);
-
- }
- function group3_group1_rdo_lrgmdl_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSetLrgMdlflag();
- }
- // 조회항목구분 (대분류/중분류)
- function fSetLrgMdlflag(lrgmdlflag)
- {
- var lrgmdlflag = ds_hidden.getColumn(0, "searchgbn");
-
-
- if(lrgmdlflag == "1") // 대분류
- {
- group1.cmb_lrg.visible = true;
- group1.cmb_mdl.visible = false;
-
- }
- else if(lrgmdlflag == "2") // 중분류
- {
- group1.cmb_lrg.visible = false;
- group1.cmb_mdl.visible = true;
- }
- }
- //행추가
- function group3_btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetAddRow("A");
- }
- //행삽입
- function group3_btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- fSeInsertRow("I");
- }
- // 행추가
- function fSetAddRow(ref)
- {
- ds_main_tclslist_tclscdlist1.addRow();
- ds_main_tclslist_tclscdlist2.addRow();
-
- var row = ds_main_tclslist_tclscdlist1.rowcount;
- fSetRowData(row-1);
- ds_main_tclslist_tclscdlist1.rowposition = ds_main_tclslist_tclscdlist1.rowcount-1;
- }
- // 행삽입
- function fSeInsertRow(ref)
- {
- var row = ds_main_tclslist_tclscdlist1.rowposition;
- ds_main_tclslist_tclscdlist1.insertRow(row+1);
- ds_main_tclslist_tclscdlist2.insertRow(row+1);
- fSetRowData(row+1);
- }
- // 행추가, 행삽입 됐을때 초기값
- function fSetRowData(row)
- {
- var today = utlf_getCurrentDate();
- ds_main_tclslist_tclscdlist1.setColumn(row, "tclscdfromdd", today);
- ds_main_tclslist_tclscdlist1.setColumn(row, "tclscdtodd", "99991231");
- ds_main_tclslist_tclscdlist1.setColumn(row, "tclsabbrnm", "-");
- ds_main_tclslist_tclscdlist1.setColumn(row, "tclsprntnm", "-");
- ds_main_tclslist_tclscdlist1.setColumn(row, "tclslblnm", "-");
-
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeTclscdSave();
- }
- // 통합검사코드 수정,등록
- function fExeTclscdSave()
- {
- //필수항목 체크
- if(fExeNotNull())
- {
- dsf_createDsRow("ds_temp", [{col : "gbn", val : ds_hidden.getColumn(0, "refgbn")}
- ,{col : "deptflag", val : ds_init_LB0000.getColumn(0, "nm")}]);
-
- var oParam = {};
- oParam.id = "TXLLF00501";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqExeUnitySaveTclscdInfo";
- oParam.inds = "cond=ds_temp tclscdlist=ds_main_tclslist_tclscdlist1:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXLLF00501";
- tranf_submit(oParam);
- }
- }
- function cf_TXLLF00501(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- fGetTclscdList();
- }
- }
- // 필수입력항목 체크
- function fExeNotNull()
- {
- var msg = "";
- var status;
- for(i = 0; i < ds_main_tclslist_tclscdlist1.rowcount; i++)
- {
- status = ds_main_tclslist_tclscdlist1.getRowType(i);
- if(status == 1 || status == 2 || status == 4)
- {
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscd")))
- {
- msg = "[검사코드] 는 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscdfromdd")))
- {
- msg = "[사용시작일자] 는 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscdtodd")))
- {
- msg = "[사용종료일자] 는 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclsnm")))
- {
- msg = "[검사명] 은 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclsscrnnm")))
- {
- msg = "[검사화면명] 은 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "testmdlcd")))
- {
- msg = "[검사중분류코드] 는 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclskind")))
- {
- msg = "[검사구분] 은 " ;
- sysf_messageBox(msg , "I003", "");
- ds_main_tclslist_tclscdlist1.rowposition = i;
- return false;
- }
- }
- }
- return true;
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- LLZ_reset();
- }
- // 초기화
- function LLZ_reset()
- {
- this.reload();
- }
- function group1_btn_reftext_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_hidden.setColumn(0, "searchtext", group1.ipt_search.text);
- fGetTclscdList();
- }
- function group1_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- ds_hidden.setColumn(0, "searchtext", group1.ipt_search.text);
- fGetTclscdList();
- }
- }
- function ds_main_tclslist_tclscdlist1_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "his011" )
- {
- obj.setColumn(e.row, "his011", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if( e.columnid == "his012" )
- {
- obj.setColumn(e.row, "his012", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|