123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHB01000" position="absolute 0 0 1196 764" titletext="RFID 코드관리" onload="SMAHB01000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="중앙관제관리" class="tit_1" position="absolute 0 0 120 25"/>
- <Div id="group6" taborder="3" style="align: top;" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="1" text="조회" onclick="group6_btn_search_onclick" class="btn1" position="absolute 1122 9 1178 31" anchor="top right"/>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1106 9 1109 31" anchor="top right"/>
- <Static id="caption59" text="코드 :" class="search_name" position="absolute 16 11 76 28" anchor="default"/>
- <Edit id="ipt_cd" taborder="2" onkeyup="group6_ipt_cd_onkeyup" class="input_essential" position="absolute 80 10 220 29" anchor="default" autoselect="true"/>
- <Edit id="ipt_nm" taborder="3" onkeyup="group6_ipt_nm_onkeyup" class="input_essential" position="absolute 362 10 655 29" anchor="default" autoselect="true"/>
- <Static id="caption21" text="명칭 :" class="search_name" position="absolute 300 11 373 28" anchor="default"/>
- <Static id="caption10" text="건진장소:" class="search_name" position="absolute 730 11 811 28" anchor="default"/>
- <Combo id="combo1" taborder="4" innerdataset="ds_init_S600" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 825 10 925 29" columncount="-1" rowcount="-1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="sw_rfid" taborder="4" tabindex="0" position="absolute 602 79 1194 747" class="tab_Normal" anchor="all">
- <Tabpages>
- <Tabpage id="case_pretest" selected="true">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_10" position="absolute 0 23 592 29" anchor="left top right"/>
- <Static id="caption1" text="선행검사" class="tit_2" position="absolute 0 7 155 24"/>
- <Button id="btn_pretestadd" taborder="1" text="행추가" onclick="sw_rfid_case_pretest_btn_pretestadd_onclick" class="btn2" position="absolute 484 1 537 23" anchor="top right"/>
- <Button id="btn_pretestdel" taborder="2" text="행삭제" onclick="sw_rfid_case_pretest_btn_pretestdel_onclick" class="btn2" position="absolute 539 1 592 23" anchor="top right"/>
- <Grid id="grd_pretestlst" taborder="3" binddataset="ds_main_pretestlst_item" useinputpanel="false" oncellclick="sw_rfid_case_pretest_grd_pretestlst_oncellclick" position="absolute 0 28 592 641" selecttype="multirow" cellclickbound="cell" autoenter="key" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- </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="원본검사코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" text="bind:examroomid"/>
- <Cell col="2" displaytype="text" text="bind:examroomnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:preexamid" combodataset="ds_init_room_chngexamlst_itemexam" combocodecol="examid" combodatacol="examnm"/>
- <Cell col="4" text="bind:avgtime"/>
- <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:waitshowyn"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:baryn"/>
- <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:nameyn"/>
- <Cell col="8" text="bind:hoscode"/>
- <Cell col="9" text="bind:orgexamid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_pkgtest">
- <Layouts>
- <Layout>
- <Grid id="grd_pkgtestlst" taborder="1" binddataset="ds_main_testrmlst_pkg" useinputpanel="false" oncellclick="sw_rfid_case_pkgtest_grd_pkgtestlst_oncellclick" position="absolute 0 51 592 641">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <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="실행구분"/>
- </Band>
- <Band id="body">
- <Cell text="bind:sel"/>
- <Cell col="1" text="bind:examroomid"/>
- <Cell col="2" text="bind:examroomnm"/>
- <Cell col="3" text="bind:examid"/>
- <Cell col="4" text="bind:examnm"/>
- <Cell col="5" text="bind:avgtime"/>
- <Cell col="6" text="bind:waitshowyn"/>
- <Cell col="7" text="bind:baryn"/>
- <Cell col="8" text="bind:nameyn"/>
- <Cell col="9" text="bind:hoscode"/>
- <Cell col="10" text="bind:m"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="패키지별 검사항목" class="tit_2" position="absolute 0 7 131 24"/>
- <Shape id="line2" class="line_10" position="absolute 0 23 592 29"/>
- <Button id="btn_pkg" taborder="2" text="패키지선택" onclick="sw_rfid_case_pkgtest_btn_pkg_onclick" class="btn2" position="absolute 517 1 592 23"/>
- <Static id="caption3" text="패키지 코드" class="cell_1" position="absolute 0 28 76 48" style="padding:0 0 0 4;"/>
- <Static id="caption7" text="패키지 명" class="cell_1" position="absolute 289 28 357 48" style="padding:0 0 0 4;"/>
- <Edit id="opt_pkgcd" taborder="3" readonly="true" class="output_fix" position="absolute 79 28 286 47"/>
- <Edit id="opt_pkgnm" taborder="4" readonly="true" class="output_fix" position="absolute 360 28 592 47"/>
- <Shape id="line7" class="line_3" position="absolute 0 49 592 52"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_addtest" text="추가검사">
- <Layouts>
- <Layout>
- <Edit id="opt_testcd" taborder="1" readonly="true" class="output_fix" position="absolute 82 28 289 48"/>
- <Grid id="grd_addtestlst" taborder="2" binddataset="ds_main_addtestlst_item" useinputpanel="false" position="absolute 5 53 592 641">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="185"/>
- <Column size="185"/>
- <Column size="183"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="처방코드"/>
- <Cell col="1" text="검사실번호"/>
- <Cell col="2" text="검사코드"/>
- <Cell col="3" text="기관코드"/>
- <Cell col="4" text="원본방번호"/>
- <Cell col="5" text="원본검사번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:testcd"/>
- <Cell col="1" text="bind:examroomid"/>
- <Cell col="2" text="bind:examid"/>
- <Cell col="3" text="bind:hoscode"/>
- <Cell col="4" text="bind:orgexamroomid"/>
- <Cell col="5" text="bind:orgexamid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button6" taborder="3" text="추가처방" onclick="sw_rfid_case_addtest_button6_onclick" class="btn2" position="absolute 418 1 482 23"/>
- <Static id="caption5" text="추가항목관리" class="tit_2" position="absolute 5 7 136 24"/>
- <Static id="caption8" text="처방 코드" class="cell_1" position="absolute 5 28 81 48"/>
- <Shape id="line3" class="line_10" position="absolute 5 24 592 29"/>
- <Static id="caption9" text="처방 명" class="cell_1" position="absolute 291 28 359 48"/>
- <Edit id="opt_testnm" taborder="4" readonly="true" class="output_fix" position="absolute 360 28 592 48"/>
- <Button id="btn_testdel" taborder="5" text="행삭제" onclick="sw_rfid_case_addtest_btn_testdel_onclick" class="btn2" position="absolute 539 1 592 23"/>
- <Button id="btn_testadd" taborder="6" text="행추가" onclick="sw_rfid_case_addtest_btn_testadd_onclick" class="btn2" position="absolute 484 1 537 23"/>
- <Shape id="line00" class="line_10" position="absolute 5 49 592 54"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Tab id="switch1" taborder="6" tabindex="0" position="absolute 0 79 599 747" class="tab_Normal" anchor="left top bottom">
- <Tabpages>
- <Tabpage id="case_exam" text="중앙관제 검사정보" selected="true">
- <Layouts>
- <Layout>
- <Shape id="line20" class="line_10" position="absolute 0 23 599 29"/>
- <Grid id="grd_testrmlst" taborder="1" binddataset="ds_main_testrmlst_exam" useinputpanel="false" oncelldblclick="switch1_case_exam_grd_testrmlst_oncelldblclick" position="absolute 0 28 599 641" autoenter="select" cellclickbound="cell" anchor="left top bottom" oncloseup="switch1_case_exam_grd_testrmlst_oncloseup" onselectchanged="switch1_case_exam_grd_testrmlst_onselectchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="76"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="중앙관제 검사실번호" wordwrap="char"/>
- <Cell col="2" text="중앙관제 검사실명" wordwrap="char"/>
- <Cell col="3" text="검사실코드" wordwrap="char"/>
- <Cell col="4" text="검사실명" wordwrap="char"/>
- <Cell col="5" text="건진장소" wordwrap="char"/>
- <Cell col="6" text="소요시간" wordwrap="char"/>
- <Cell col="7" text="대기자표시" wordwrap="char"/>
- <Cell col="8" text="바코드자동출력" wordwrap="char"/>
- <Cell col="9" text="네임지자동출력" wordwrap="char"/>
- <Cell col="10" text="기관코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" text="bind:examroomid"/>
- <Cell col="2" displaytype="text" edittype="expr:getRowType(currow) == '2' ? 'combo' : 'none'" text="bind:examroomnm" combodataset="ds_init_room_roomlst_itemroom" combocodecol="examroomid" combodatacol="examroomnm" combodisplayrowcount="100"/>
- <Cell col="3" displaytype="text" text="bind:examid"/>
- <Cell col="4" displaytype="text" edittype="expr:getRowType(currow) == '2' ? 'combo' : 'none'" text="bind:examnm" combodataset="ds_main_roomlst_item" combocodecol="testroomcd" combodatacol="cdnm"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:healexamplacecd" combodataset="ds_init_S600" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="6" text="bind:avgtime"/>
- <Cell col="7" displaytype="checkbox" edittype="expr:getRowType(currow) == '2' ? 'checkbox' : 'none'" style="controlbackground:silver;controlborder:1 solid #808080ff ;" text="bind:waitshowyn" expr="expr:(waitshowyn=="Y"||waitshowyn==1)?1:0"/>
- <Cell col="8" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #808080ff ;" text="bind:baryn" expr="expr:(baryn=="Y"||baryn==1)?1:0"/>
- <Cell col="9" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #808080ff ;" text="bind:nameyn" expr="expr:(nameyn=="Y"||nameyn==1)?1:0"/>
- <Cell col="10" text="bind:hoscode"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" text="검사정보" class="tit_2" position="absolute 0 7 144 24"/>
- <Button id="btn_testrmlstadd" taborder="2" text="행추가" class="btn2" position="absolute 491 1 544 23" anchor="top right" onclick="switch1_case_exam_btn_testrmlstadd_onclick"/>
- <Button id="btn_testrmlstdel" taborder="3" text="행삭제" class="btn2" position="absolute 546 1 599 23" anchor="top right" onclick="switch1_case_exam_btn_testrmlstdel_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_room" text="중앙관제 검사실정보">
- <Layouts>
- <Layout>
- <Shape id="line4" class="line_10" position="absolute 0 23 599 29"/>
- <Static id="caption11" text="검사정보" class="tit_2" position="absolute 0 7 144 23"/>
- <Button id="button3" taborder="1" text="행삭제" onclick="switch1_case_room_button3_onclick" class="btn2" position="absolute 546 1 599 23"/>
- <Button id="button4" taborder="2" text="행추가" onclick="switch1_case_room_button4_onclick" class="btn2" position="absolute 491 1 544 23"/>
- <Grid id="grd_roomlst" taborder="3" binddataset="ds_main_testrmlst_room" useinputpanel="false" position="absolute 0 28 599 641" cellclickbound="cell" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="140"/>
- <Column size="200"/>
- <Column size="130"/>
- <Column size="90"/>
- <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="floorno"/>
- <Cell col="6" text="examroomidkey"/>
- <Cell col="7" text="healexamplacecdkey"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="padding:0 0 0 3;" text="bind:examroomid"/>
- <Cell col="2" displaytype="text" edittype="text" style="padding:0 0 0 3;" text="bind:examroomnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:healexamplacecd" combodataset="ds_init_S600" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:waitshowyn" expr="expr:(waitshowyn=="Y"||waitshowyn==1)?1:0"/>
- <Cell col="5" text="bind:floorno"/>
- <Cell col="6" text="bind:examroomidkey"/>
- <Cell col="7" text="bind:healexamplacecdkey"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Div id="group4" taborder="9" position="absolute 0 733 1194 760" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="0" text="저장" onclick="group4_btn_save_onclick" class="btn4" position="absolute 1138 5 1194 27" anchor="right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_switch1" taborder="10" position="absolute 0 67 599 95">
- <Layouts>
- <Layout>
- <Button id="button2" taborder="59" text="중앙관제 검사정보" class="btn_tab_S" position="absolute 0 0 132 24" anchor="default" onclick="grp_switch1_button2_onclick"/>
- <Button id="button1" taborder="60" text="중앙관제 검사실정보" class="btn_tab" position="absolute 133 0 265 24" anchor="default" onclick="grp_switch1_button1_onclick"/>
- <Shape id="line01" position="absolute 0 22 599 28" anchor="left top right" style="strokepen:3 solid #07a693ff;background:transparent;"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_sw_rfid" anchor="left top right" taborder="11" position="absolute 602 67 1194 95">
- <Layouts>
- <Layout>
- <Button id="btn_pretest" taborder="61" text="선행검사" class="btn_tab_S" position="absolute 0 0 84 24" anchor="default" onclick="grp_sw_rfid_btn_pretest_onclick"/>
- <Button id="btn_pkgtest" taborder="62" text="패키지별 검사" class="btn_tab" position="absolute 85 0 177 24" anchor="default" visible="false" onclick="grp_sw_rfid_btn_pkgtest_onclick"/>
- <Button id="button5" taborder="63" text="추가검사" class="btn_tab" position="absolute 178 0 254 24" anchor="default" visible="false" onclick="grp_sw_rfid_button5_onclick"/>
- <Shape id="line01" position="absolute 0 22 592 28" anchor="left top right" style="strokepen:3 solid #07a693ff;background:transparent;"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_room_examlst_itemexam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_addtestlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examid" type="STRING" size="256"/>
- <Column id="hoscode" type="STRING" size="256"/>
- <Column id="orgexamroomid" type="STRING" size="256"/>
- <Column id="orgexamid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="testcd"/>
- <Col id="examroomid"/>
- <Col id="examid"/>
- <Col id="hoscode"/>
- <Col id="orgexamroomid"/>
- <Col id="orgexamid"/>
- </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_init_baseinfo_healexamplacelst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_testrmlst_pkg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examroomnm" type="STRING" size="256"/>
- <Column id="examid" type="STRING" size="256"/>
- <Column id="examnm" type="STRING" size="256"/>
- <Column id="avgtime" type="STRING" size="256"/>
- <Column id="waitshowyn" type="STRING" size="256"/>
- <Column id="baryn" type="STRING" size="256"/>
- <Column id="nameyn" type="STRING" size="256"/>
- <Column id="hoscode" type="STRING" size="256"/>
- <Column id="m" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="examroomid"/>
- <Col id="examroomnm"/>
- <Col id="examid"/>
- <Col id="examnm"/>
- <Col id="avgtime"/>
- <Col id="waitshowyn"/>
- <Col id="baryn"/>
- <Col id="nameyn"/>
- <Col id="hoscode"/>
- <Col id="m"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pretestlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examroomnm" type="STRING" size="256"/>
- <Column id="preexamid" type="STRING" size="256"/>
- <Column id="avgtime" type="STRING" size="256"/>
- <Column id="waitshowyn" type="STRING" size="256"/>
- <Column id="baryn" type="STRING" size="256"/>
- <Column id="nameyn" type="STRING" size="256"/>
- <Column id="hoscode" type="STRING" size="256"/>
- <Column id="orgexamid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="examroomid"/>
- <Col id="examroomnm"/>
- <Col id="preexamid"/>
- <Col id="avgtime"/>
- <Col id="waitshowyn"/>
- <Col id="baryn"/>
- <Col id="nameyn"/>
- <Col id="hoscode"/>
- <Col id="orgexamid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pkgtestlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="examroomid"/>
- <Col id="examid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_testrmlst_exam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_testrmlst_exam_oncolumnchanged">
- <ColumnInfo>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examroomnm" type="STRING" size="256"/>
- <Column id="examid" type="STRING" size="256"/>
- <Column id="examnm" type="STRING" size="256"/>
- <Column id="healexamplacecd" type="STRING" size="256"/>
- <Column id="avgtime" type="STRING" size="256"/>
- <Column id="waitshowyn" type="STRING" size="256"/>
- <Column id="baryn" type="STRING" size="256"/>
- <Column id="nameyn" type="STRING" size="256"/>
- <Column id="hoscode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="examroomid"/>
- <Col id="examroomnm"/>
- <Col id="examid"/>
- <Col id="examnm"/>
- <Col id="healexamplacecd"/>
- <Col id="avgtime"/>
- <Col id="waitshowyn"/>
- <Col id="baryn"/>
- <Col id="nameyn"/>
- <Col id="hoscode"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_room_chngexamlst_itemexam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="itemexam" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="itemexam"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save_roominfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save_pretest" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pkgtest" type="STRING" size="256"/>
- <Column id="addtest" type="STRING" size="256"/>
- <Column id="examroom" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pkgtest"/>
- <Col id="addtest"/>
- <Col id="examroom"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchtestroomcd" type="STRING" size="256"/>
- <Column id="srchtestroomnm" type="STRING" size="256"/>
- <Column id="srchhealexamplacecd" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="pkgnm" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="testnm" type="STRING" size="256"/>
- <Column id="srchexamid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchtestroomcd"/>
- <Col id="srchtestroomnm"/>
- <Col id="srchhealexamplacecd"/>
- <Col id="srchinstcd"/>
- <Col id="pkgcd"/>
- <Col id="pkgnm"/>
- <Col id="testcd"/>
- <Col id="testnm"/>
- <Col id="srchexamid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_testrmlst_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="examroomid" type="STRING" size="256"/>
- <Column id="examroomnm" type="STRING" size="256"/>
- <Column id="healexamplacecd" type="STRING" size="256"/>
- <Column id="waitshowyn" type="STRING" size="256"/>
- <Column id="floorno" type="STRING" size="256"/>
- <Column id="examroomidkey" type="STRING" size="256"/>
- <Column id="healexamplacecdkey" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="examroomid"/>
- <Col id="examroomnm"/>
- <Col id="healexamplacecd"/>
- <Col id="waitshowyn"/>
- <Col id="floorno"/>
- <Col id="examroomidkey"/>
- <Col id="healexamplacecdkey"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_room_roomlst_itemroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="itemroom" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="itemroom"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_roomlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testroomcd" type="STRING" size="256"/>
- <Column id="testroomabbrnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_S600" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group6.ipt_nm" propid="value" datasetid="ds_send" columnid="srchtestroomnm"/>
- <BindItem id="item1" compid="group6.ipt_cd" propid="value" datasetid="ds_send" columnid="srchtestroomcd"/>
- <BindItem id="item2" compid="group6.combo1" propid="value" datasetid="ds_send" columnid="srchhealexamplacecd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_healexamxp::AHA001.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //include "ast_healexamxp::healexam.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInit() {
- var arrParam = [{dsNm: "ds_init_S600", cdGrpId: "S600"}
- ];
- healGetCodeList(arrParam);
- // 검사실 정보조회
- fGetRoomList();
- fGetExamRoomList();
- // 검사실 코드
- var ret = false;
- var oParam = {};
- oParam.id = "TRAHB01002";
- oParam.service = "healexambaseapp.RfidCode";
- oParam.method = "reqGetExamList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_room_examlst_itemexam=itemexam";
- oParam.async = false;
- oParam.callback = "cf_TRAHB01002";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAHB01002") > -1) ret = true;
- else ret = false;
- fn_TRAHR00101();
- // 그리드 초기화
- ds_main_pretestlst_item.clearData();
- ds_main_addtestlst_item.clearData();
- //초기화시 검사정보 클릭되도록 수정(2016_12_06)
- grp_switch1.button2.click();
- //초기화시 검사정보 클릭되도록 수정(2016_12_06)
- }
- function cf_TRAHB01002(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 검사실 정보 조회
- ****************************************************************************************/
- function fGetRoomList() {
- ds_send.setColumn( 0, "srchinstcd",sysf_getUserInfo("dutplceinstcd"));
- var oParam = {};
- oParam.id = "TRAHB01001";
- oParam.service = "healexambaseapp.RfidCode";
- oParam.method = "reqGetRoomList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_testrmlst_exam=exam ds_main_testrmlst_room=room ds_main_testrmlst_pkg=pkg";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01001";
- tranf_submit(oParam);
- }
- function fGetExamRoomList(){
- ds_main_roomlst_item.clearData();
- var oParam = {};
- oParam.id = "TRAHB00401";
- oParam.service = "healexambaseapp.RoomCode";
- oParam.method = "reqGetRoomList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_roomlst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00401";
- tranf_submit(oParam);
- }
- function cf_TRAHB00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- ds_main_roomlst_item.filter("");
- ds_main_roomlst_item.addColumn("cdnm","string");
- for(var i = 0 ; i < ds_main_roomlst_item.rowcount ; i++) {
- ds_main_roomlst_item.setColumn(i, "cdnm", ds_main_roomlst_item.getColumn(i, "testroomcd")+" "
- +ds_main_roomlst_item.getColumn(i, "testroomabbrnm"));
- }
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선행검사 리스트 조회
- ****************************************************************************************/
- function fGetPreExamList() {
- var sel = sw_rfid.tabindex;
- var row = ds_main_testrmlst_exam.rowposition;
- if(sel == 0 && row >= 0) {
- var examid = ds_main_testrmlst_exam.getColumn(row , "examid");
- var healexamplacecd = ds_main_testrmlst_exam.getColumn(row , "healexamplacecds");
- ds_send.setColumn( 0, "srchexamid" , examid);
-
- var oParam = {};
- oParam.id = "TRAHB01003";
- oParam.service = "healexambaseapp.RfidCode";
- oParam.method = "reqGetPreExamList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_pretestlst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01003";
- tranf_submit(oParam);
-
- var ret = false;
- if(arErrorCode.pop("TRAHB01003") > -1) ret = true;
- if(ret) {
- sw_rfid.case_pretest.btn_pretestadd.enable = true;
- sw_rfid.case_pretest.btn_pretestdel.enable = true;
- ds_init_room_chngexamlst_itemexam.clearData();
- ds_init_room_examlst_itemexam.filter("healexamplacecd=='"+healexamplacecd+"'");
- ds_init_room_chngexamlst_itemexam.copyData(ds_init_room_examlst_itemexam, true);
- ds_init_room_examlst_itemexam.filter("");
- }
- }
- }
- /*
- * 정보조회
- * 패키지 등록 검사조회 및 등록
- */
- // function fGetPkgExamList() {
- // // var ret = submit("TRAHB01004");
- // var oParam = {};
- // oParam.id = "TRAHB01004";
- // oParam.service = "healexambaseapp.RfidCode";
- // oParam.method = "reqGetPkgExamList";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=item";
- // oParam.async = false;
- // oParam.callback = "cf_TRAHB01004";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRAHB01004(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRAHB01004(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRAHB01004") > -1
- // arErrorCode.pop("TRAHB01004") < 0
- // */
- //
- //
- // var pkgNodeList = instance1.selectNodes("ds_main_pkgtestlst_item");
- // if(ret) {
- // for(var i=1; i < sw_rfid.case_pkgtest.grd_pkgtestlst.rows; i++) {
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(i,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("sel")) = "N";
- // var roomid = sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(i,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("examroomid"));
- // var examid = sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(i,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("examid"));
- // for(var j=1; j< pkgNodeList.length; j++) {
- // var pkgRoomid = ds_main_pkgtestlst_item.getColumn(j, "examroomid");
- // var pkgExamid = ds_main_pkgtestlst_item.getColumn(j, "examid");
- // if(roomid == pkgRoomid && pkgExamid == examid) {
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(i,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("sel")) = "Y";
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(i,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m")) = "u";
- // }
- // }
- // }
- // }
- // }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 검사실 저장 체크
- ****************************************************************************************/
- function fChkSaveRoom() {
- var chkVal = true;
- for(var i = 0; i < ds_main_testrmlst_room.rowcount; i++) {
- var examroomid = ds_main_testrmlst_room.getColumn(i, "examroomid");
- var examroomnm = ds_main_testrmlst_room.getColumn(i, "examroomnm");
- var healexamplacecd = ds_main_testrmlst_room.getColumn(i, "healexamplacecd");
- var nodeList = ds_main_testrmlst_room.getCaseCount("healexamplacecd=='"+ healexamplacecd +"' && examroomid=='" + examroomid + "'");
- if(utlf_isNull(examroomid)) {
- sysf_messageBox("검사실을","C001");
- chkVal = false;
- break;
- }
- if(utlf_isNull(examroomnm)) {
- sysf_messageBox("검사실명을","C001");
- chkVal = false;
- break;
- }
- if(utlf_isNull(healexamplacecd)) {
- sysf_messageBox("건진장소를","C002");
- chkVal = false;
- break;
- }
- if(nodeList > 1) {
- sysf_messageBox("검사실이","E006");
- chkVal = false;
- break;
- }
- }
- return chkVal;
- }
- /*
- * 추가검사 별 검사실,검사정보 조회
- */
- // function fGetAddExamList() {
- // // submit("TRAHB01005");
- // var oParam = {};
- // oParam.id = "TRAHB01005";
- // oParam.service = "healexambaseapp.RfidCode";
- // oParam.method = "reqGetAddExamList";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=item";
- // oParam.async = false;
- // oParam.callback = "cf_TRAHB01005";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRAHB01005(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRAHB01005(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRAHB01005") > -1
- // arErrorCode.pop("TRAHB01005") < 0
- // */
- //
- //
- // }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선행검사를 추가한다.
- ****************************************************************************************/
- function fAddExam(vGrd , vRow) {
- var examRow = ds_main_testrmlst_exam.rowposition;
- var rowStat = objects[vGrd.binddataset].getRowType(vRow);
- var preexamid = objects[vGrd.binddataset].getColumn(vRow,"preexamid");
- var chkRow = 0;
- var count = 0;
- //선행검사 중복체크
- while(chkRow >= 0) {
- chkRow = objects[vGrd.binddataset].findRow("preexamid",preexamid,chkRow+1);
- count++;
- }
- if(count > 1) {
- sysf_messageBox("검사가 ","E006");
- if(rowStat == 2) {
- // model.resetInstanceNode(objects[vGrd.binddataset].nodeset + "[" + vRow + "]");
- objects[vGrd.binddataset].deleteRow(vRow);
- }else if(rowStat == 4) {
- objects[vGrd.binddataset].setColumn(vRow, "preexamid", objects[vGrd.binddataset].getColumn(vRow,"orgexamid"));
- fAddExam(objects[vGrd.binddataset] , vRow);
- }
- return;
- }
- var findRow = ds_main_testrmlst_exam.findRow("examid",preexamid);
- // 선행검사 등록
- if(findRow > 0 ) {
- objects[vGrd.binddataset].setColumn(vRow, "examroomid" , ds_main_testrmlst_exam.getColumn(findRow, "examroomid"));
- objects[vGrd.binddataset].setColumn(vRow, "examroomnm" , ds_main_testrmlst_exam.getColumn(findRow, "examroomnm"));
- objects[vGrd.binddataset].setColumn(vRow, "avgtime" , ds_main_testrmlst_exam.getColumn(findRow, "avgtime"));
- objects[vGrd.binddataset].setColumn(vRow, "waitshowyn" , ds_main_testrmlst_exam.getColumn(findRow, "waitshowyn"));
- objects[vGrd.binddataset].setColumn(vRow, "baryn" , ds_main_testrmlst_exam.getColumn(findRow, "baryn"));
- objects[vGrd.binddataset].setColumn(vRow, "nameyn" , ds_main_testrmlst_exam.getColumn(findRow, "nameyn"));
- objects[vGrd.binddataset].setColumn(vRow, "hoscode" , ds_main_testrmlst_exam.getColumn(findRow, "hoscode"));
- objects[vGrd.binddataset].setColumn(vRow, "orgexamid" , objects[vGrd.binddataset].getColumn(vRow, "orgexamid"));
- }
- }
- /*-**************************************************************************************
- * Argument : vMod (A : 전체 B: 선행검사 C: 패키지 검사 D: 추가검사)
- * Description : RFID 코드 저장
- ****************************************************************************************/
- function fSaveRfid(vMod) {
- //초기화
- ds_send_save.clearData(); ds_send_save.addRow();
- dsf_makeValue( ds_send_save, "instcd", "string", ds_send.getColumn(0, "srchinstcd"));
- var dsUpdate = null;
- //검사실 정보
- dsUpdate = grdf_getGridUpdateData(switch1.case_exam.grd_testrmlst, "all")
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_save_roominfo.copyData(dsUpdate, true);
- dsf_setDefaultVal(ds_send_save_roominfo, "useyn:Y");
- // 선행검사
- if(vMod == "A" || vMod == "B") {
- fChkSavePreExam();
- dsf_makeValue( ds_send_save, "examid", "string", ds_send.getColumn(0, "srchexamid"));
- dsUpdate = grdf_getGridUpdateData(sw_rfid.case_pretest.grd_pretestlst, "all")
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_save_pretest.copyData(dsUpdate, true);
- if ( fChkSaveRoom() ) {
- dsUpdate = grdf_getGridUpdateData(switch1.case_room.grd_roomlst, "all")
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_save_room.copyData(dsUpdate, true);
- if(ds_send_save_room.rowcount == 0) {
- ds_send_save_room.addRow();
- dsf_setDefaultVal(ds_send_save_room, "all");
- }
- }else {
- return ;
- }
- }
-
- dsf_createDsRow("ds_pkgtest", [
- {col:"examid", type:"STRING", size:256, val:""}
- , {col:"m", type:"STRING", size:256, val:""}
- , {col:"hoscode", type:"STRING", size:256, val:""}
- ]);
- dsf_createDsRow("ds_addtest", [
- {col:"testcd", type:"STRING", size:256, val:""}
- , {col:"examroomid", type:"STRING", size:256, val:""}
- , {col:"examid", type:"STRING", size:256, val:""}
- , {col:"m", type:"STRING", size:256, val:""}
- , {col:"hoscode", type:"STRING", size:256, val:""}
- , {col:"orgexamroomid", type:"STRING", size:256, val:""}
- , {col:"orgexamid", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TXAHB01001";
- oParam.service = "healexambaseapp.RfidCode";
- oParam.method = "reqExeRfidInfo";
- oParam.inds = "req=ds_send_save roominfo=ds_send_save_roominfo pretest=ds_send_save_pretest room=ds_send_save_room pkgtest=ds_pkgtest addtest=ds_addtest";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXAHB01001";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAHB01001") > -1) {
- if(vMod == "A" || vMod == "B") {
- fGetPreExamList();
- fGetRoomList();
- fn_TRAHR00101();
- }
- }
- }
- function cf_TXAHB01001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선행검사 저장 체크
- ****************************************************************************************/
- function fChkSavePreExam() {
- var rows = ds_main_pretestlst_item.rowcount;
- for(var i = 0; i < rows; i++) {
- var rowStat = ds_main_pretestlst_item.getRowType(i);
- if(rowStat == 2) {
- var preExamid = ds_main_pretestlst_item.getColumn(i, "preexamid");
- if(utlf_isNull(preExamid)) {
- sysf_messageBox("선행검사를 선택하지","E007");
- return;
- }
- }
- }
- }
- /*
- * 추가검사 저장 체크
- */
- // function fChkSaveAddExam() {
- // var rows = sw_rfid.case_addtest.grd_addtestlst.rows;
- // for(var i=1; i < rows; i++) {
- // var rowStat = sw_rfid.case_addtest.grd_addtestlst.rowStatus(i);
- // if(rowStat == 1 || rowStat == 3) {
- // var roomId = sw_rfid.case_addtest.grd_addtestlst.valueMatrix(i,sw_rfid.case_addtest.grd_addtestlst.colRef("examroomid"));
- // var examId = sw_rfid.case_addtest.grd_addtestlst.valueMatrix(i,sw_rfid.case_addtest.grd_addtestlst.colRef("examid"));
- // if(roomId == "") {
- // sysf_messageBox("검사실 번호를 선택하지 ","E007");
- // return;
- // }
- // if(examId == "") {
- // sysf_messageBox("검사 번호를 선택하지 ","E007");
- // return;
- // }
- // }
- // }
- // }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 검사대기자 표시여부를 셋팅한다.
- ****************************************************************************************/
- function fSetWaitYN() {
- var idx = ds_main_testrmlst_exam.rowposition;
- var waitYN = ds_main_testrmlst_exam.getColumn( idx , "waitshowyn" );
- var room_id_src = ds_main_testrmlst_exam.getColumn( idx , "examroomid" );
- for(var i=0; i < ds_main_testrmlst_exam.rowcount; i++) {
- var room_id_des = ds_main_testrmlst_exam.getColumn( i , "examroomid" );
- if(room_id_src == room_id_des) {
- ds_main_testrmlst_exam.setColumn( i , "waitshowyn", waitYN);
- }
- }
- }
- function fn_TRAHR00101() {
- var oParam = {};
- oParam.id = "TRAHR00101";
- oParam.service = "healexamrsltjudgapp.TestProgrs";
- oParam.method = "reqGetRoomList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_room_roomlst_itemroom=itemroom";
- oParam.async = false;
- //oParam.callback = "cf_TRAHR00101";
- tranf_submit(oParam);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAHB01000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(switch1.case_exam.grd_testrmlst, 0);
- grdf_setRowTypeIcon(switch1.case_room.grd_roomlst, 0);
- grdf_setRowTypeIcon(sw_rfid.case_pretest.grd_pretestlst, 0);
- fInit();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group6_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetRoomList();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 엔터로 조회
- ****************************************************************************************/
- function group6_ipt_cd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group6.btn_search.click();
- }
- }
- function group6_ipt_nm_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group6.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 선행검사 행추가
- ****************************************************************************************/
- function sw_rfid_case_pretest_btn_pretestadd_onclick(obj:Button, e:ClickEventInfo) {
- var addRow = ds_main_pretestlst_item.addRow();
- misfSetReadOnlyCol(sw_rfid.case_pretest.grd_pretestlst, "waitshowyn,baryn,nameyn", true, addRow);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 선행검사 행삭제
- ****************************************************************************************/
- function sw_rfid_case_pretest_btn_pretestdel_onclick(obj:Button, e:ClickEventInfo) {
- var objGrd = sw_rfid.case_pretest.grd_pretestlst
- var selectedRows = grdf_getSelectedRows(objGrd);
- for (var i = selectedRows.length-1; i >= 0; i--){
- if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
- objects[objGrd.binddataset].deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(objGrd, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 선행검사 리스트 선택
- ****************************************************************************************/
- function sw_rfid_case_pretest_grd_pretestlst_oncellclick(obj:Grid, e:GridClickEventInfo) {
- var col = e.col;
- var row = e.row;
- if(col == obj.getBindCellIndex("body","preexamid")) {
- fAddExam(obj, row);
- }
- }
- // function sw_rfid_case_pkgtest_grd_pkgtestlst_oncellclick(obj:Grid, e:GridClickEventInfo) {
- //
- // var row = sw_rfid.case_pkgtest.grd_pkgtestlst.row;
- // var col = sw_rfid.case_pkgtest.grd_pkgtestlst.col;
- // if(col == sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("sel")) {
- // var selYN = sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("sel"));
- // var mode = sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m"));
- //
- // if(selYN == "Y" && mode == "s") {
- // // 새로 등록시
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m")) = "i"
- // }else if(selYN == "N" && mode == "i") {
- // // 새로 등록 취소
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m")) = "s"
- // }else if(selYN == "Y" && mode == "d") {
- // // 기존 내역 취소 후 선택
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m")) = "u"
- // }else if(selYN == "N" && mode == "u") {
- // // 기존 내역 취소
- // sw_rfid.case_pkgtest.grd_pkgtestlst.valueMatrix(row,sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("m")) = "d"
- // }
- // }
- //
- // }
- // function sw_rfid_case_pkgtest_btn_pkg_onclick(obj:Button, e:ClickEventInfo) {
- //
- // fGetPkgCd("SMAHA02300", "P", "N","nm" ,"" , "", "","ds_send" );
- //
- // //sw_rfid.case_pkgtest.opt_pkgcd.refresh();
- //
- // //sw_rfid.case_pkgtest.opt_pkgnm.refresh();
- //
- // if(sw_rfid.case_pkgtest.opt_pkgcd.value != "") {
- // fGetPkgExamList();
- // sw_rfid.case_pkgtest.grd_pkgtestlst.colDisabled(sw_rfid.case_pkgtest.grd_pkgtestlst.colRef("sel")) = false;
- // }
- //
- // }
- // function sw_rfid_case_addtest_button6_onclick(obj:Button, e:ClickEventInfo) {
- //
- // fGetPkgCd("SMAHA02300", "A", "N","nm" ,"" , "", "","ds_send","N" );
- //
- // //sw_rfid.case_addtest.opt_testcd.refresh();
- //
- // //sw_rfid.case_addtest.opt_testnm.refresh();
- //
- // fGetAddExamList();
- // if(sw_rfid.case_addtest.opt_testcd.value != "") {
- // sw_rfid.case_addtest.btn_testadd.enable = true;
- // }
- //
- // }
- // function sw_rfid_case_addtest_btn_testdel_onclick(obj:Button, e:ClickEventInfo) {
- //
- // var row = sw_rfid.case_addtest.grd_addtestlst.row;
- // var rowStat = sw_rfid.case_addtest.grd_addtestlst.rowStatus(row);
- // if(rowStat == 3 || rowStat == 1) {
- // sw_rfid.case_addtest.grd_addtestlst.deleteRow(row);
- // }else if(rowStat == 0 || rowStat == 2) {
- // sw_rfid.case_addtest.grd_addtestlst.rowStatus(row) = 4;
- // }
- //
- // }
- // function sw_rfid_case_addtest_btn_testadd_onclick(obj:Button, e:ClickEventInfo) {
- //
- // sw_rfid.case_addtest.grd_addtestlst.addRow();
- // var addRow = sw_rfid.case_addtest.grd_addtestlst.rows - 1;
- // sw_rfid.case_addtest.grd_addtestlst.valueMatrix(addRow,sw_rfid.case_addtest.grd_addtestlst.colRef("testcd")) = sw_rfid.case_addtest.opt_testcd.value;
- // sw_rfid.case_addtest.grd_addtestlst.valueMatrix(addRow,sw_rfid.case_addtest.grd_addtestlst.colRef("hoscode")) = ds_send.getColumn(0, "srchinstcd");
- //
- // }
- // function button5_onclick(obj:Button, e:ClickEventInfo) {
- //
- // //fGetAddExamList();
- //
- // }
- /****************************************************************************************
- * Components : Grid
- * Description : 검사정보 선택
- ****************************************************************************************/
- function switch1_case_exam_grd_testrmlst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fGetPreExamList();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 검사정보 행삭제
- ****************************************************************************************/
- function switch1_case_room_button3_onclick(obj:Button, e:ClickEventInfo) {
- var objGrd = switch1.case_room.grd_roomlst;
- var selectedRows = grdf_getSelectedRows(objGrd);
- for (var i = selectedRows.length-1; i >= 0; i--){
- if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
- objects[objGrd.binddataset].deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(objGrd, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 검사정보 행추가
- ****************************************************************************************/
- function switch1_case_room_button4_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_testrmlst_room.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group4_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- fSaveRfid("A");
- }
- function ds_main_testrmlst_exam_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="waitshowyn" || e.columnid=="baryn" || e.columnid=="nameyn") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
-
- if(e.columnid == "waitshowyn") {
- fSetWaitYN();
- }
-
- if(e.columnid == "examroomnm") {
- obj.setColumn(e.row, "examroomid", e.newvalue);
- obj.setColumn(e.row, "examroomnm", ds_init_room_roomlst_itemroom.getColumn(ds_init_room_roomlst_itemroom.findRow("examroomid", e.newvalue), "examroomnm"));
- obj.setColumn(e.row, "healexamplacecd", ds_main_testrmlst_room.lookup("examroomid", e.newvalue, "healexamplacecd"));
- ds_main_roomlst_item.filter("cntrroomcd=='"+e.newvalue+"'");
- }
-
- if(e.columnid == "examnm") {
- obj.setColumn(e.row, "examid", e.newvalue);
- obj.setColumn(e.row, "examnm", ds_main_roomlst_item.getColumn(ds_main_roomlst_item.findRow("testroomcd", e.newvalue), "testroomabbrnm"));
- switch1.case_exam.grd_testrmlst.redraw();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 탭버튼 클릭
- ****************************************************************************************/
- function grp_switch1_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_switch1, obj);
- switch1.tabindex = 0;
- }
- function grp_switch1_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_switch1, obj);
- switch1.tabindex = 1;
- }
- function grp_sw_rfid_btn_pretest_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_sw_rfid, obj);
- sw_rfid.tabindex = 0;
- }
- function grp_sw_rfid_btn_pkgtest_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_sw_rfid, obj);
- sw_rfid.tabindex = 1;
- }
- function grp_sw_rfid_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_sw_rfid, obj);
- sw_rfid.tabindex = 2;
- }
- function switch1_case_exam_btn_testrmlstadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_testrmlst_exam.addRow();
- }
- function switch1_case_exam_btn_testrmlstdel_onclick(obj:Button, e:ClickEventInfo)
- {
- var grdObj = switch1.case_exam.grd_testrmlst;
- var dsObj = this.objects[grdObj.binddataset];
- var cRow = dsObj.rowposition;
- if( dsObj.getRowType(cRow) == 2 ) {
- dsObj.deleteRow(cRow);
- }else{
- grdf_setStatus(grdObj, "D", [cRow]);
- }
- }
- function switch1_case_exam_grd_testrmlst_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- obj.updateToDataset();
- //obj.setCellPos(obj.getBindCellIndex("body","examid"));
- if(e.col == obj.getBindCellIndex("body","examroomid")) {
- ds_main_roomlst_item.filter("cntrroomcd=='"+ds_main_testrmlst_exam.getColumn(e.row, "examroomid")+"'");
- }
- // obj.setCellPos(obj.getBindCellIndex("body","examnm"));
- // obj.showEditor(true);
- }
- function switch1_case_exam_grd_testrmlst_onselectchanged(obj:Grid, e:GridSelectEventInfo)
- {
- ds_main_roomlst_item.filter("cntrroomcd=='"+ds_main_testrmlst_exam.getColumn(e.row, "examroomid")+"'");
- }
- ]]></Script>
- </Form>
- </FDL>
|