123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLQF00700" position="absolute 0 0 1197 772" titletext="QC물질별검사관리" oninit="SMLQF00700_oninit" onload="SMLQF00700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="QC물질별검사관리" class="tit_1" position="absolute 0 0 150 25"/>
- <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1122 23 1190 45" onclick="btn_init_onclick"/>
- <Button id="btn_exec" taborder="2" text="저장" class="btn4" position="absolute 1063 23 1119 45" onclick="btn_exec_onclick"/>
- <Shape id="line3" linetype="horizontal" class="line_6" position="absolute 0 45 1190 51" style="strokepen:3 solid #9ebed4ff;"/>
- <Shape id="line7" class="line_1" position="absolute 0 417 1194 423"/>
- <Static id="cap_regno" text="사용시작일자" class="cell_1" position="absolute 0 420 190 443"/>
- <Div id="group4" taborder="3" class="div_SA2" position="absolute 0 49 550 84">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 473 7 529 29" onclick="group4_btn_sea_onclick"/>
- <Static id="caption15" text="조회구분 :" class="search_name" position="absolute 15 9 101 27"/>
- <Edit id="ipt_search" taborder="2" class="input_s_button" position="absolute 313 8 413 27" onkeyup="group4_ipt_search_onkeyup"/>
- <Combo id="cbo_searchFlag" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 103 8 203 27" onitemchanged="group4_cbo_searchFlag_onitemchanged">
- <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>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 455 6 461 28"/>
- <Combo id="combo1" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 208 8 308 27">
- <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>
- <Grid id="grd_matrList" taborder="4" binddataset="ds_grd_matrList" useinputpanel="false" position="absolute 0 114 890 390" autofittype="none" oncelldblclick="grd_matrList_oncelldblclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="107"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="88"/>
- <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="QC물질코드"/>
- <Cell col="2" text="QC물질명"/>
- <Cell col="3" text="levlcd"/>
- <Cell col="4" text="레벨명"/>
- <Cell col="5" text="LOT번호"/>
- <Cell col="6" text="사용시작일시"/>
- <Cell col="7" text="사용종료일시"/>
- <Cell col="8" text="Expire Date"/>
- <Cell col="9" text="제조회사"/>
- <Cell col="10" text="제조일시"/>
- <Cell col="11" text="입고일시"/>
- <Cell col="12" text="IF코드"/>
- <Cell col="13" text="등록자"/>
- <Cell col="14" text="등록일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:left middle;" text="bind:matrcd"/>
- <Cell col="2" style="align:left middle;" text="bind:matrnm"/>
- <Cell col="3" text="bind:levlcd"/>
- <Cell col="4" style="align:left middle;" text="bind:levlnm"/>
- <Cell col="5" style="align:left middle;" text="bind:lotno"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:left middle;" text="bind:matrfromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" text="bind:matrtodd" mask="yyyy-mm-dd"/>
- <Cell col="8" displaytype="date" edittype="date" style="align:left middle;" text="bind:validd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" style="align:left middle;" text="bind:prodcmpy"/>
- <Cell col="10" text="bind:proddt" mask="yyyy-mm-dd"/>
- <Cell col="11" displaytype="date" edittype="date" style="align:left middle;" text="bind:windt" calendardisplaynulltype="nulltext"/>
- <Cell col="12" style="align:left middle;" text="bind:matrifcd"/>
- <Cell col="13" text="bind:fstrgstrid"/>
- <Cell col="14" text="bind:fstrgstdt" mask="yyyy-mm-dd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 110 890 116" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="QC 물질 정보" class="tit_2" position="absolute 0 399 106 415"/>
- <Static id="cap_sexage" text="QC물질코드" class="cell_1" position="absolute 396 420 586 443"/>
- <Static id="cap_psnno" text="레벨코드" class="cell_1" position="absolute 792 420 982 443"/>
- <MaskEdit id="opt_matrfromdd" taborder="5" readonly="true" mask="####-##-##" position="absolute 193 421 393 440" type="string" maskchar=" " trimtype="both"/>
- <Edit id="out_matrcd" taborder="6" readonly="true" position="absolute 589 421 789 440"/>
- <Edit id="out_levlcd" taborder="7" readonly="true" position="absolute 985 421 1194 440"/>
- <Shape id="line9" class="line_3" position="absolute 0 440 1194 446"/>
- <Static id="caption7" text="QC 물질 리스트" class="tit_2" position="absolute 0 94 115 110"/>
- <Div id="group3" taborder="8" class="div_SA2" position="absolute 555 49 1190 84">
- <Layouts>
- <Layout>
- <Static id="caption4" text="검사코드 :" class="search_name" position="absolute 35 9 115 26"/>
- <Edit id="ipt_searchTestCd" taborder="1" class="input_s_button" position="absolute 118 8 218 27" onkeyup="group3_ipt_searchTestCd_onkeyup"/>
- <Combo id="cmb_testLrgCd" taborder="2" innerdataset="ds_init_cmb_testLrgCd" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 389 8 499 27" onitemchanged="group3_cmb_testLrgCd_onitemchanged"/>
- <Combo id="cmb_testMdlCd" taborder="3" innerdataset="ds_init_cmb_testMdlCd" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 510 8 625 27" onitemchanged="group3_cmb_testMdlCd_onitemchanged"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 246 6 252 28"/>
- <Combo id="cmb_selectgbn" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 285 8 375 27" onitemchanged="group3_cmb_selectgbn_onitemchanged">
- <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>
- <Grid id="grd_testList" taborder="9" binddataset="ds_grd_testList" useinputpanel="false" position="absolute 895 114 1194 390" autofittype="none" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="139"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="검사코드"/>
- <Cell col="3" text="검사명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:testcd"/>
- <Cell col="3" style="align:left middle;" text="bind:testnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line14" class="line_1" position="absolute 895 110 1194 116" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption3" text="검사항목 리스트" class="tit_2" position="absolute 896 94 1013 110"/>
- <Grid id="grd_matrTclsList" taborder="10" binddataset="ds_grd_matrTclsList" useinputpanel="false" position="absolute 0 472 1194 771" selecttype="multirow" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="39"/>
- <Column size="80"/>
- <Column size="135"/>
- </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="WGMR범위"/>
- <Cell col="18" text="판정유형"/>
- <Cell col="19" text="반올림옵션"/>
- <Cell col="20" text="그래프"/>
- <Cell col="21" text="등록자"/>
- <Cell col="22" text="등록일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:testcd"/>
- <Cell col="2" text="bind:testnm"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:testfromdd" mask="yyyy-MM-dd"/>
- <Cell col="4" displaytype="date" edittype="date" text="bind:testtodd" mask="yyyy-MM-dd"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:rsltkind" combodataset="ds_rsltkind" combocodecol="value" combodatacol="label"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:refkind" combodataset="ds_refkind" combocodecol="value" combodatacol="label"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:refflag" combodataset="ds_refflag" combocodecol="value" combodatacol="label"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:refl"/>
- <Cell col="9" displaytype="combo" edittype="combo" text="bind:refls" combodataset="ds_refls" combocodecol="value" combodatacol="label"/>
- <Cell col="10" displaytype="combo" edittype="combo" text="bind:refhs" combodataset="ds_refhs" combocodecol="value" combodatacol="label"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:refh"/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:refcval"/>
- <Cell col="13" displaytype="combo" edittype="combo" text="bind:intrsltfrmt" combodataset="ds_intrsltfrmt" combocodecol="value" combodatacol="label"/>
- <Cell col="14" displaytype="text" edittype="text" text="bind:rsltunit"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:avg"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:sdval"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:wgmrscop"/>
- <Cell col="18" displaytype="combo" edittype="combo" text="bind:judgkind" combodataset="ds_judgkind" combocodecol="value" combodatacol="value"/>
- <Cell col="19" displaytype="combo" edittype="combo" text="bind:rundkind" combodataset="ds_rundkind" combocodecol="value" combodatacol="label"/>
- <Cell col="20" displaytype="checkbox" edittype="checkbox" text="bind:graphdispyn" expr="graphdispyn == 'N' ? '0' : (graphdispyn == 'Y' ? '1' : (graphdispyn == '0' ? '0' : '1'))"/>
- <Cell col="21" text="bind:fstrgstrid"/>
- <Cell col="22" displaytype="date" edittype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button52" taborder="11" text="행추가" class="btn2" enable="false" position="absolute 1085 446 1138 465" onclick="button52_onclick"/>
- <Button id="button53" taborder="12" text="행삭제" class="btn2" position="absolute 1141 446 1194 465" onclick="button53_onclick"/>
- <Button id="btn_up" taborder="13" class="icon_bottom" position="absolute 1035 393 1061 412" onclick="btn_up_onclick"/>
- <Static id="caption2" text="QC 물질별 검사항목 설정" class="tit_2" position="absolute 0 451 178 467"/>
- <Shape id="line4" class="line_1" position="absolute 0 468 1194 474" linetype="horizontal" style="strokepen:3 solid #33bbbbff;"/>
- <Button id="button1" taborder="14" text="복사" class="btn2" position="absolute 180 447 233 466" onclick="button1_onclick"/>
- <Button id="button2" taborder="15" text="붙이기" class="btn2" position="absolute 235 447 288 466" onclick="button2_onclick"/>
- <Button id="button4" taborder="16" text="삭제" class="btn2" position="absolute 290 447 343 466" onclick="button4_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_matrList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrcd" type="STRING"/>
- <Column id="matrnm" type="STRING"/>
- <Column id="levlcd" type="STRING"/>
- <Column id="levlnm" type="STRING"/>
- <Column id="lotno" type="STRING"/>
- <Column id="matrfromdd" type="STRING"/>
- <Column id="matrtodd" type="STRING"/>
- <Column id="validd" type="STRING"/>
- <Column id="prodcmpy" type="STRING"/>
- <Column id="proddt" type="STRING"/>
- <Column id="windt" type="STRING"/>
- <Column id="matrifcd" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_testLrgCd" 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_init_cmb_testMdlCd" 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_grd_testList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_matrTclsList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="testfromdd" type="STRING"/>
- <Column id="testtodd" type="STRING"/>
- <Column id="rsltkind" type="STRING"/>
- <Column id="refkind" type="STRING"/>
- <Column id="refflag" type="STRING"/>
- <Column id="refl" type="STRING"/>
- <Column id="refls" type="STRING"/>
- <Column id="refhs" type="STRING"/>
- <Column id="refh" type="STRING"/>
- <Column id="refcval" type="STRING"/>
- <Column id="intrsltfrmt" type="STRING"/>
- <Column id="rsltunit" type="STRING"/>
- <Column id="avg" type="STRING"/>
- <Column id="sdval" type="STRING"/>
- <Column id="wgmrscop" type="STRING"/>
- <Column id="judgkind" type="STRING"/>
- <Column id="rundkind" type="STRING"/>
- <Column id="graphdispyn" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0106" 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_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="refcont" type="STRING" size="256"/>
- <Column id="searchflag" type="STRING" size="256"/>
- <Column id="searchtestcd" type="STRING" size="256"/>
- <Column id="testlrg" type="STRING" size="256"/>
- <Column id="selectgbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refgbn">1</Col>
- <Col id="searchflag">1</Col>
- <Col id="testlrg">00</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_testmdl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">00</Col>
- </Row>
- </Rows>
- </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="refcont" type="STRING" size="256"/>
- <Column id="refgbn" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="searchflag" type="STRING" size="256"/>
- <Column id="matrtclslist" type="STRING" size="256"/>
- <Column id="matrfromdd" type="STRING" size="256"/>
- <Column id="matrcd" type="STRING" size="256"/>
- <Column id="levlcd" type="STRING" size="256"/>
- <Column id="matrinfo" type="STRING" size="256"/>
- <Column id="testlrgcd" type="STRING" size="256"/>
- <Column id="testmdlcd" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="tsectcd" type="STRING" size="256"/>
- <Column id="selectgbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codeflag"/>
- <Col id="refcont"/>
- <Col id="refgbn"/>
- <Col id="deptflag"/>
- <Col id="searchflag"/>
- <Col id="matrtclslist"/>
- <Col id="matrfromdd"/>
- <Col id="matrcd"/>
- <Col id="levlcd"/>
- <Col id="matrinfo"/>
- <Col id="testlrgcd"/>
- <Col id="testmdlcd"/>
- <Col id="sectcd"/>
- <Col id="tsectcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_matrtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="matrfromdd" type="STRING" size="256" sumtext="사용시작일자"/>
- <Column id="matrcd" type="STRING" size="256" sumtext=""/>
- <Column id="levlcd" type="STRING" size="256" sumtext="레벨코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_rsltkind" 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">문자+숫자</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">숫자</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refkind" 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">없음</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">문자</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">숫자</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refflag" 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">사용안함</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">하한만사용</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">상한만사용</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">모두사용</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refls" 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"><</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label"><=</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refhs" 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"><</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label"><=</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_intrsltfrmt" 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">-</Col>
- <Col id="value">-</Col>
- </Row>
- <Row>
- <Col id="label">0</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">1</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">2</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">3</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">4</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">5</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">6</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">7</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">8</Col>
- <Col id="value">8</Col>
- </Row>
- <Row>
- <Col id="label">9</Col>
- <Col id="value">9</Col>
- </Row>
- <Row>
- <Col id="label">10</Col>
- <Col id="value">10</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_judgkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <choices>
- <item>
- <label>미사용</label>
- <value>0</value>
- </item>
- <item>
- <label><![CDATA[L/H]]></label>
- <value>1</value>
- </item>
- </choices>
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">미사용</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">L/H</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rundkind" 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">사용안함</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">반올림</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">올림</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">내림</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_copy_matrTclsList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="testfromdd" type="STRING"/>
- <Column id="testtodd" type="STRING"/>
- <Column id="rsltkind" type="STRING"/>
- <Column id="refkind" type="STRING"/>
- <Column id="refflag" type="STRING"/>
- <Column id="refl" type="STRING"/>
- <Column id="refls" type="STRING"/>
- <Column id="refhs" type="STRING"/>
- <Column id="refh" type="STRING"/>
- <Column id="refcval" type="STRING"/>
- <Column id="intrsltfrmt" type="STRING"/>
- <Column id="rsltunit" type="STRING"/>
- <Column id="avg" type="STRING"/>
- <Column id="sdval" type="STRING"/>
- <Column id="wgmrscop" type="STRING"/>
- <Column id="judgkind" type="STRING"/>
- <Column id="rundkind" type="STRING"/>
- <Column id="graphdispyn" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cbo_searchFlag" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
- <BindItem id="item1" compid="group4.combo1" propid="value" datasetid="ds_hidden" columnid="searchflag"/>
- <BindItem id="item2" compid="group4.ipt_search" propid="value" datasetid="ds_hidden" columnid="refcont"/>
- <BindItem id="item3" compid="group3.ipt_searchTestCd" propid="value" datasetid="ds_hidden" columnid="searchtestcd"/>
- <BindItem id="item4" compid="group3.cmb_selectgbn" propid="value" datasetid="ds_hidden" columnid="selectgbn"/>
- <BindItem id="item5" compid="group3.cmb_testLrgCd" propid="value" datasetid="ds_hidden" columnid="testlrg"/>
- <BindItem id="item6" compid="group3.cmb_testMdlCd" propid="value" datasetid="ds_hidden_testmdl" columnid="cd"/>
- <BindItem id="item7" compid="opt_matrfromdd" propid="value" datasetid="ds_matrtinfo" columnid="matrfromdd"/>
- <BindItem id="item8" compid="out_matrcd" propid="value" datasetid="ds_matrtinfo" columnid="matrcd"/>
- <BindItem id="item9" compid="out_levlcd" propid="value" datasetid="ds_matrtinfo" columnid="levlcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLQF00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLQF00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_matrList);
- grdf_initGrid(grd_matrTclsList);
- grdf_initGrid(grd_testList);
- grdf_setRowTypeIcon(grd_matrTclsList, 0);
- fSetInit();
- }
- function fSetInit()
- {
- ds_grd_matrList.clearData();
- ds_grd_matrTclsList.clearData();
- ds_grd_testList.clearData();
-
- //model.setValue("/root/send/codeflag", "0102|0104|0000|0111|0106|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
- dsf_createDsRow("ds_temp_search", [{col : "codeflag", val : "0102|0104|0000|0111|0106|"}]);
-
- //submit("TRLZZ00101");
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_temp_search";
- oParam.outds = "ds_init_lb0102=0102 ds_init_lb0104=0104 ds_init_lb0000=0000 ds_init_lb0111=0111 ds_init_lb0106=0106";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
-
-
- //model.setValue("/root/hidden/selectgbn","1");
- ds_hidden.setColumn(0, "selectgbn", "1");
- fSelectGbn();
-
-
- fGetMatrList(); //물질리스트조회
- fGetTestList(2); //검사항목리스트조회
- }
- function fSelectGbn()
- {
- //검사분류 선택
- if(group3.cmb_selectgbn.value == "1")
- {
- //첫번째 콤보에 대분류 셋팅
- ds_init_cmb_testLrgCd.copyData(ds_init_lb0104);
- //두번째 콤보에 중분류 셋팅
- ds_init_cmb_testMdlCd.copyData(ds_init_lb0102);
- }
- //시행부서 선택
- else if(group3.cmb_selectgbn.value == "2")
- {
- //첫번째 콤보에 계코드 셋팅
- ds_init_cmb_testLrgCd.copyData(ds_init_lb0111);
- //두번째 콤보에 검사계코드 셋팅
- ds_init_cmb_testMdlCd.copyData(ds_init_lb0106);
- }
- ds_hidden.setColumn(0, "testlrg", "00");
- ds_hidden_testmdl.setColumn(0, "cd", "00");
- }
- //물질 리스트 조회
- function fGetMatrList()
- {
- ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "refgbn")); //전체, 사용가능자료 구분
- ds_send.setColumn(0, "searchflag", ds_hidden.getColumn(0, "searchflag")); //물질코드, 물질명 구분
- ds_send.setColumn(0, "refcont", ds_hidden.getColumn(0, "refcont")); //입력Text
- ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm")); //사용자 부서코드
- //submit("TRLQF00701");
- var oParam = {};
- oParam.id = "TRLQF00701";
- oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
- oParam.method = "reqGetMatrList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_matrList=matrlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLQF00701";
- tranf_submit(oParam);
- }
- //검사항목 리스트 조회
- function fGetTestList(i)
- {
- if( i == "2")
- {
- ds_send.setColumn(0, "refcont", ds_hidden.getColumn(0, "searchtestcd")); //입력Text
- }
- ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm")); //사용자 부서코드
-
- //submit("TRLQF00702");
- var oParam = {};
- oParam.id = "TRLQF00702";
- oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
- oParam.method = "reqGetTestList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_testList=testlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLQF00702";
- tranf_submit(oParam);
- }
- function grd_matrList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetMatrTclsList();
- }
- //물질별 검사항목 조회
- function fGetMatrTclsList()
- {
- var row = ds_grd_matrList.rowposition;
- // model.setValue("/root/send/matrfromdd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrfromdd"));
- // model.setValue("/root/send/matrcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrcd"));
- // model.setValue("/root/send/levlcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/levlcd"));
- // model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
- ds_send.setColumn(0, "matrfromdd", ds_grd_matrList.getColumn(row, "matrfromdd"));
- ds_send.setColumn(0, "matrcd", ds_grd_matrList.getColumn(row, "matrcd"));
- ds_send.setColumn(0, "levlcd", ds_grd_matrList.getColumn(row, "levlcd"));
- ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm"));
-
- var oParam = {};
- oParam.id = "TRLQF00703";
- oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
- oParam.method = "reqGetMatrTclsList";
- oParam.inds = "matrinfo=ds_send";
- oParam.outds = "ds_grd_matrTclsList=matrtclslist ds_matrtinfo=matrfromdd";
- oParam.async = false;
- //oParam.callback = "cf_TRLQF00703";
- tranf_submit(oParam);
- fSetMatrCopy(); //조회 데이터가 없으면 물질목록 복사
- }
- //물질목록 복사
- function fSetMatrCopy()
- {
- //model.setValue("/root/main/matrinfo/matrfromdd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrfromdd"));
- //model.setValue("/root/main/matrinfo/matrcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrcd"));
- //model.setValue("/root/main/matrinfo/levlcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/levlcd"));
- ds_matrtinfo.setColumn(0 ,"matrfromdd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "matrfromdd"));
- ds_matrtinfo.setColumn(0 ,"matrcd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "matrcd"));
- ds_matrtinfo.setColumn(0 ,"levlcd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "levlcd"));
-
- }
- function group4_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- //model.setValue("/root/hidden/refcont", ipt_search.currentText);
- ds_hidden.setColumn(0, "refcont", group4.ipt_search.text);
- fGetMatrList();
- }
- }
- function group3_ipt_searchTestCd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- ds_hidden.setColumn(0, "refcont", group3.ipt_searchTestCd.text);
- fGetTestList(1);
- }
- }
- function btn_exec_onclick(obj:Button, e:ClickEventInfo)
- {
- var j=0;
- for(var i = 0; i<ds_grd_matrTclsList.rowcount; i++)
- {
- if(ds_grd_matrTclsList.getRowType(i) == "1")
- {
- j++;
- }
- }
-
- if(sysf_messageBox("", "Q002")==6)
- {
- if(j == ds_grd_matrTclsList.rowcount)
- {
- sysf_messageBox("저장할 자료가 존재하지 않아 실행", "E001");
- return;
- }
- }
- for(var i = 0; i < ds_grd_matrTclsList.rowcount; i++)
- {
- if(ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "Y" || ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "1")
- {
- ds_grd_matrTclsList.setColumn(i, "graphdispyn", "Y");
- }
- else if(ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "N" || ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "0")
- {
- ds_grd_matrTclsList.setColumn(i, "graphdispyn", "N");
- }
- }
-
-
- //저장버튼
- fExeMatrTclsList();
- }
- //물질별 검사 정보 저장
- function fExeMatrTclsList()
- {
- if(utlf_isNull(opt_matrfromdd.value) || utlf_isNull(out_levlcd.value) || utlf_isNull(out_matrcd.value))
- {
- sysf_messageBox("필수 항목이 입력되지 않았습니다.","I007");
- return false;
- }
-
- dsf_createDsRow("ds_temp_search1", [{col: "matrfromdd", val:ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrfromdd")}
- , {col: "matrcd", val: out_matrcd.value}
- , {col: "levlcd", val: out_levlcd.value}]);
-
- dsf_createDsRow("ds_temp_search2", [{col: "deptflag", val: ds_init_lb0000.getColumn(0,"nm")}]);
-
- var oParam = {};
- oParam.id = "TXLQF00701";
- oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
- oParam.method = "reqExeMatrTclsList";
- oParam.inds = "matrtclslist=ds_grd_matrTclsList:A matrinfo=ds_temp_search1 cond=ds_temp_search2";
- oParam.async = false;
- //oParam.callback = "cf_TXLQF00701";
- tranf_submit(oParam);
- }
- //조회버튼
- function group4_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMatrList();
- }
- //초기화버튼
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- function btn_up_onclick(obj:Button, e:ClickEventInfo)
- {
- fCopyTestList();
- }
- //선택 항목 복사함
- function fCopyTestList()
- {
- var vChk = ""
- var vTestCd = ""
- var vTestNm = ""
-
- if( !utlf_isNull(ds_matrtinfo.getColumn(0, "matrfromdd"))) //물질이 선택되어있지 않은 상태에서 검사코드 추가하고자 할때 알림..
- {
- //for ( i = 1; i < grd_testList.rows; i++)
- for( i = 0; i < ds_grd_testList.rowcount; i++)
- {
- //vChk = model.getValue("/root/main/testlist[" + i + "]/chk");
- //vTestCd = model.getValue("/root/main/testlist[" + i + "]/testcd");
- //vTestNm = model.getValue("/root/main/testlist[" + i + "]/testnm");
- vChk = ds_grd_testList.getColumn(i, "chk");
- vTestCd = ds_grd_testList.getColumn(i, "testcd");
- vTestNm = ds_grd_testList.getColumn(i, "testnm");
-
- if( vChk == "1") //검사항목 선택된놈들
- {
- if(ds_grd_matrTclsList.findRow("testcd", vTestCd) == "-1") //물질별 검사항목에 등록되어있지 않은 항목만
- {
- var nRow = ds_grd_matrTclsList.addRow();
-
- ds_grd_matrTclsList.setColumn(nRow, "testcd", vTestCd);
- ds_grd_matrTclsList.setColumn(nRow, "testnm", vTestNm);
- ds_grd_matrTclsList.setColumn(nRow, "testfromdd", ds_matrtinfo.getColumn(0, "matrfromdd"));
- ds_grd_matrTclsList.setColumn(nRow, "testtodd", '99991231');
-
- //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
- ds_grd_testList.setColumn(i, "chk", "0");
- }
- else
- {
- alert(vTestCd + " 항목이 중복되었습니다");
- //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
- ds_grd_testList.setColumn(i, "chk", "0");
- }
- }
- }//end for
- }
- else
- {
- alert("물질을 먼저 선택하세요");
- }
- }
- //복사
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- // 물질검사항목 복사
- fMatTestCopy();
- }
- // 물질검사항목 복사
- function fMatTestCopy()
- {
- ds_grid_copy_matrTclsList.clearData();
- var rows = grdf_getSelectedRows(grd_matrTclsList);
- //
- // var selectStart = grd_matrTclsList.selectstartrow;
- // var selectEnd = grd_matrTclsList.selectendrow;
-
- if(rows.length > 0)
- {
- for(var i = 0; i < rows.length; i++)
- {
- var j = rows[i];
- var nRow = ds_grid_copy_matrTclsList.addRow();
- ds_grid_copy_matrTclsList.setColumn(nRow, "testcd", ds_grd_matrTclsList.getColumn(j,"testcd"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "testnm", ds_grd_matrTclsList.getColumn(j,"testnm"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "testfromdd", ds_grd_matrTclsList.getColumn(j,"testfromdd"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "testtodd", ds_grd_matrTclsList.getColumn(j,"testtodd"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "rsltkind", ds_grd_matrTclsList.getColumn(j,"rsltkind"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refkind", ds_grd_matrTclsList.getColumn(j,"refkind"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refflag", ds_grd_matrTclsList.getColumn(j,"refflag"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refl", ds_grd_matrTclsList.getColumn(j,"refl"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refls", ds_grd_matrTclsList.getColumn(j,"refls"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refhs", ds_grd_matrTclsList.getColumn(j,"refhs"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refh", ds_grd_matrTclsList.getColumn(j,"refh"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "refcval", ds_grd_matrTclsList.getColumn(j,"refcval"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "intrsltfrmt", ds_grd_matrTclsList.getColumn(j,"intrsltfrmt"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "rsltunit", ds_grd_matrTclsList.getColumn(j,"rsltunit"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "avg", ds_grd_matrTclsList.getColumn(j,"avg"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "sdval", ds_grd_matrTclsList.getColumn(j,"sdval"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "wgmrscop", ds_grd_matrTclsList.getColumn(j,"wgmrscop"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "judgkind", ds_grd_matrTclsList.getColumn(j,"judgkind"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "rundkind", ds_grd_matrTclsList.getColumn(j,"rundkind"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "graphdispyn", ds_grd_matrTclsList.getColumn(j,"graphdispyn"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "fstrgstrid", ds_grd_matrTclsList.getColumn(j,"fstrgstrid"));
- ds_grid_copy_matrTclsList.setColumn(nRow, "fstrgstdt", ds_grd_matrTclsList.getColumn(j,"fstrgstdt"));
- }
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- // 물질검사항목 붙여넣기
- fMatTestPaste();
- }
- function fMatTestPaste()
- {
- if(ds_grid_copy_matrTclsList.rowcount > 0)
- {
- for(var i=0; i<ds_grid_copy_matrTclsList.rowcount; i++)
- {
- var nRow = ds_grd_matrTclsList.addRow();
-
- // var sRow = ds_grd_matrTclsList.findRow("testcd",ds_grid_copy_matrTclsList.getColumn(i,"testcd"));
- // ds_grd_matrTclsList.setColumn(sRow,"testtodd",utlf_getCurrentDate());
-
- ds_grd_matrTclsList.setColumn(nRow,"testcd",ds_grid_copy_matrTclsList.getColumn(i,"testcd"));
- ds_grd_matrTclsList.setColumn(nRow,"testnm",ds_grid_copy_matrTclsList.getColumn(i,"testnm"));
- //ds_grd_matrTclsList.setColumn(nRow,"testfromdd",utlf_addDate(utlf_getCurrentDate(),1));
- ds_grd_matrTclsList.setColumn(nRow,"testfromdd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrfromdd"));
- ds_grd_matrTclsList.setColumn(nRow,"testtodd","99991231");
- ds_grd_matrTclsList.setColumn(nRow,"rsltkind",ds_grid_copy_matrTclsList.getColumn(i,"rsltkind"));
- ds_grd_matrTclsList.setColumn(nRow,"refkind",ds_grid_copy_matrTclsList.getColumn(i,"refkind"));
- ds_grd_matrTclsList.setColumn(nRow,"refflag",ds_grid_copy_matrTclsList.getColumn(i,"refflag"));
- ds_grd_matrTclsList.setColumn(nRow,"refl",ds_grid_copy_matrTclsList.getColumn(i,"refl"));
- ds_grd_matrTclsList.setColumn(nRow,"refls",ds_grid_copy_matrTclsList.getColumn(i,"refls"));
- ds_grd_matrTclsList.setColumn(nRow,"refhs",ds_grid_copy_matrTclsList.getColumn(i,"refhs"));
- ds_grd_matrTclsList.setColumn(nRow,"refh",ds_grid_copy_matrTclsList.getColumn(i,"refh"));
- ds_grd_matrTclsList.setColumn(nRow,"refcval",ds_grid_copy_matrTclsList.getColumn(i,"refcval"));
- ds_grd_matrTclsList.setColumn(nRow,"intrsltfrmt",ds_grid_copy_matrTclsList.getColumn(i,"intrsltfrmt"));
- ds_grd_matrTclsList.setColumn(nRow,"rsltunit",ds_grid_copy_matrTclsList.getColumn(i,"rsltunit"));
- ds_grd_matrTclsList.setColumn(nRow,"avg",ds_grid_copy_matrTclsList.getColumn(i,"avg"));
- ds_grd_matrTclsList.setColumn(nRow,"sdval",ds_grid_copy_matrTclsList.getColumn(i,"sdval"));
- ds_grd_matrTclsList.setColumn(nRow,"wgmrscop",ds_grid_copy_matrTclsList.getColumn(i,"wgmrscop"));
- ds_grd_matrTclsList.setColumn(nRow,"judgkind",ds_grid_copy_matrTclsList.getColumn(i,"judgkind"));
- ds_grd_matrTclsList.setColumn(nRow,"rundkind",ds_grid_copy_matrTclsList.getColumn(i,"rundkind"));
- ds_grd_matrTclsList.setColumn(nRow,"graphdispyn",ds_grid_copy_matrTclsList.getColumn(i,"graphdispyn"));
- // ds_grd_matrTclsList.setColumn(nRow,"matrcd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrcd"));
- // ds_grd_matrTclsList.setColumn(nRow,"levlcd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"levlcd"));
- }
- }
- }
- //삭제
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fMatTestDel();
- }
- // 물질검사항목 삭제(붙어넣기 한것만)
- function fMatTestDel()
- {
- //var r = grd_matrTclsList.row;
- var r = ds_grd_matrTclsList.rowposition;
- if ( r > -1 )
- {
- //if ( model.getValue("/root/main/matrtclslist["+ (r) +"]/fstrgstrid") == "" )
- if( utlf_isNull(ds_grd_matrTclsList.getColumn(r, "fstrgstrid")))
- {
- //grd_matrTclsList.deleteRow(r);
- ds_grd_matrTclsList.deleteRow(r);
- }
- else
- {
- }
- }
- }
- function button52_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_matrTclsList.addRow();
- }
- function button53_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_grd_matrTclsList.getRowType(ds_grd_matrTclsList.rowposition)== "2")
- {
- ds_grd_matrTclsList.deleteRow(ds_grd_matrTclsList.rowposition);
- }
- else
- {
- var arrPostion = new Array();
- arrPostion[0] = ds_grd_matrTclsList.rowposition;
- grdf_setStatus(grd_matrTclsList, "D", arrPostion);
- }
- }
- function group3_cmb_testLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSetSelect02();
- }
- function fSetSelect02()
- {
- var select01 = ds_hidden.getColumn(0, "testlrg");
-
- //검사분류선택
- if(group3.cmb_selectgbn.value == "1")
- {
- if(select01 == "00")
- {
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
- ds_init_lb0102.filterstr = "";
- }
- else
- {
- ds_init_lb0102.filterstr = "cd=='00' || etc01=='" + select01 +"'";
-
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
- //ds_init_lb0102.filterstr = "";
- }
- }
- //시행부서 선택
- else if(group3.cmb_selectgbn.value == "2")
- {
- if(select01 == "00")
- {
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
- ds_init_lb0106.filterstr = "";
- }
- else
- {
- ds_init_lb0106.filter("cd == '00' || etc01 =='" + select01 +"'");
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
-
- }
- }
-
- fGetTclscdList();
- }
- // 검사코드 리스트 조회
- function fGetTclscdList()
- {
- ds_grd_testList.clearData();
-
- ds_send.setColumn(0, "selectgbn", ds_hidden.getColumn(0, "selectgbn"));
-
- if(group3.cmb_selectgbn.value == "1")
- {
- ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "testlrg"));
- ds_send.setColumn(0, "testmdlcd", ds_hidden_testmdl.getColumn(0, "cd"));
- }
- //조회구분 시행부서 선택시
- else if(group3.cmb_selectgbn.value == "2")
- {
- ds_send.setColumn(0, "sectcd", ds_hidden.getColumn(0, "testlrg"));
- ds_send.setColumn(0, "tsectcd", ds_hidden_testmdl.getColumn(0, "cd"));
- }
- ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm"));
- var oParam = {};
- oParam.id = "TRLQF00704";
- oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
- oParam.method = "reqGetTestKindList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_testList=gettestcd";
- oParam.async = false;
- //oParam.callback = "cf_TRLQF00704";
- tranf_submit(oParam);
- }
- function group4_cbo_searchFlag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetMatrList();
- }
- function fSelectGbn()
- {
- //검사분류 선택
- if(group3.cmb_selectgbn.value == "1")
- {
- //첫번째 콤보에 대분류 셋팅
- group3.cmb_testLrgCd.innerdataset = ds_init_lb0104;
- //두번째 콤보에 중분류 셋팅
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
- }
- //시행부서 선택
- else if(group3.cmb_selectgbn.value == "2")
- {
- //첫번째 콤보에 계코드 셋팅
- group3.cmb_testLrgCd.innerdataset = ds_init_lb0111;
- //두번째 콤보에 검사계코드 셋팅
- group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
- }
- ds_hidden.setColumn(0, "testlrg", "00");
- ds_hidden_testmdl.setColumn(0, "cd", "00");
-
- }
- function group3_cmb_selectgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSelectGbn();
- }
- function group3_cmb_testMdlCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetTclscdList();
- }
- ]]></Script>
- </Form>
- </FDL>
|