123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLQP10500" position="absolute 0 0 1199 785" titletext="New Form" oninit="SMLQP10500_oninit" onload="SMLQP10500_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="장비QC 관리" class="tit_1" position="absolute 0 0 214 23"/>
- <Button id="button2" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 24 56 46"/>
- <Button id="button5" taborder="2" text="저장" class="btn4" position="absolute 1069 24 1125 46" anchor="top right" onclick="button5_onclick"/>
- <Button id="button10" taborder="3" text="초기화" class="btn4" position="absolute 1127 24 1195 46" anchor="top right" onclick="button10_onclick"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 45 1194 51" anchor="left top right"/>
- <Static id="caption31" text="장비QC 그래프" class="tit_2" position="absolute 0 378 125 400"/>
- <Shape id="line8" linetype="horizontal" class="line_10" position="absolute 0 394 1194 400" anchor="left top right"/>
- <Shape id="line9" linetype="horizontal" class="line_3" position="absolute 0 771 1194 777" anchor="left right bottom"/>
- <Div id="group4" taborder="5" class="div_SA" position="absolute 0 49 1195 84" anchor="left top right">
- <Layouts>
- <Layout>
- <Calendar id="todd" taborder="1" autoselect="true" autoskip="true" class="input_search" position="absolute 215 9 305 28" dateformat="yyyy-MM-dd"/>
- <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 500 10 594 27"/>
- <Static id="caption21" text="장비명 :" class="search_name" position="absolute 315 10 409 27"/>
- <Combo id="combo1" taborder="2" innerdataset="@ds_init_lb9997" codecolumn="nm" datacolumn="cd" class="combo_search" position="absolute 390 9 480 28" onitemchanged="group4_combo1_onitemchanged"/>
- <Static id="caption15" text="~" class="search_no_b" position="absolute 200 10 215 27"/>
- <Static id="caption17" text="측정일 :" class="search_name" position="absolute 15 10 109 27"/>
- <Calendar id="fromdd" taborder="3" autoselect="true" autoskip="true" class="input_search" position="absolute 105 8 195 27" dateformat="yyyy-MM-dd" value="null"/>
- <Button id="button1" taborder="4" text="조회" class="btn1" position="absolute 1119 9 1175 31" anchor="top right" onclick="group4_button1_onclick"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1106 9 1112 31" anchor="top right"/>
- <Combo id="combo2" taborder="5" innerdataset="@ds_init_lb9998" codecolumn="nm" datacolumn="cd" position="absolute 595 8 725 27" onitemchanged="group4_combo2_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="switch1" taborder="6" tabindex="0" class="tab_Normal" position="absolute 0 399 1195 771" anchor="all">
- <Tabpages>
- <Tabpage id="case1">
- <Layouts>
- <Layout>
- <ActiveX id="object1" position="absolute 1 0 1185 352" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" useautobitmapcache="1" taborder="0" anchor="all"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2">
- <Layouts>
- <Layout>
- <ActiveX id="object2" position="absolute 0 0 1184 352" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" useautobitmapcache="1" taborder="0" anchor="all" OnClick="switch1_case2_object2_OnClick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button id="btn_grprnt" taborder="8" text="출력" class="btn6" position="absolute 1070 375 1120 394" anchor="top right" onclick="btn_grprnt_onclick"/>
- <Button id="button11" taborder="9" text="그래프저장" class="btn5" position="absolute 1121 375 1196 394" anchor="top right" onclick="button11_onclick"/>
- <Button id="button7" taborder="10" text="그래프초기화" class="btn2" position="absolute 975 375 1069 394" anchor="top right" onclick="button7_onclick"/>
- <Button id="btn_grp" taborder="11" text="그래프" class="btn2" position="absolute 921 375 974 394" anchor="top right" onclick="btn_grp_onclick"/>
- <Button id="button6" taborder="13" text="엑셀" class="btn7" position="absolute 1146 87 1196 106" anchor="top right" onclick="button6_onclick"/>
- <Radio id="radio2" taborder="14" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 237 87 352 107" onitemchanged="radio2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">PEA</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">RES</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="radio1" taborder="15" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 130 87 245 107" onitemchanged="radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">CRF</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">RES</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption13" text="장비QC 상세정보" class="tit_2" position="absolute 0 89 125 110"/>
- <Grid id="datagrid2" taborder="16" binddataset="ds_main_getEqmtQcList" useinputpanel="false" position="absolute 0 107 1195 365" anchor="left top right" oncellclick="datagrid2_oncellclick" onkeydown="datagrid2_onkeydown" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="20"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="50"/>
- </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="측정량"/>
- <Cell col="4" text="D1"/>
- <Cell col="5" text="D2"/>
- <Cell col="6" text="D3"/>
- <Cell col="7" text="D4"/>
- <Cell col="8" text="D5"/>
- <Cell col="9" text="D6"/>
- <Cell col="10" text="D7"/>
- <Cell col="11" text="D8"/>
- <Cell col="12" text="D9"/>
- <Cell col="13" text="D10"/>
- <Cell col="14" text="D11"/>
- <Cell col="15" text="D12"/>
- <Cell col="16" text="D13"/>
- <Cell col="17" text="D14"/>
- <Cell col="18" text="D15"/>
- <Cell col="19" text="avg"/>
- <Cell col="20" text="avg2"/>
- <Cell col="21" text="low"/>
- <Cell col="22" text="high"/>
- <Cell col="23" text="HIGH"/>
- <Cell col="24" text="표준편차"/>
- <Cell col="25" text="변동계수"/>
- <Cell col="26" text="eqmtcd"/>
- <Cell col="27" text="gbn"/>
- <Cell col="28" text="seq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:mdd" calendardisplaynulltype="nulltext"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:mquan"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:d1"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:d2"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:d3"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:d4"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:d5"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:d6"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:d7"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:d8"/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:d9"/>
- <Cell col="13" displaytype="text" edittype="text" text="bind:d10"/>
- <Cell col="14" displaytype="text" edittype="text" text="bind:d11"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:d12"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:d13"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:d14"/>
- <Cell col="18" displaytype="text" edittype="text" text="bind:d15"/>
- <Cell col="19" text="bind:avg"/>
- <Cell col="20" text="bind:avg2"/>
- <Cell col="21" text="bind:low"/>
- <Cell col="22" text="bind:high"/>
- <Cell col="23" displaytype="text" edittype="text" text="bind:hv"/>
- <Cell col="24" text="bind:sd"/>
- <Cell col="25" text="bind:cv"/>
- <Cell col="26" text="bind:eqmtcd"/>
- <Cell col="27" text="bind:gbn"/>
- <Cell col="28" text="bind:seq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button3" taborder="17" text="행추가" class="btn2" position="absolute 1036 87 1089 106" anchor="top right" onclick="button3_onclick"/>
- <Button id="button4" taborder="18" text="행삭제" class="btn2" position="absolute 1091 87 1144 106" anchor="top right" onclick="button4_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="eqmtcd" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="cal" type="STRING" size="256"/>
- <Column id="cr" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="eqmtcd">N01</Col>
- <Col id="code">1</Col>
- <Col id="gbn">1</Col>
- <Col id="cal"/>
- <Col id="cr"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_getEqmtQcList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_getEqmtQcList_oncolumnchanged">
- <ColumnInfo>
- <Column id="MEASUERMENTDD" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb9997" 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_lb9998" 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_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="data" type="STRING" size="256"/>
- <Column id="basecdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codeflag"/>
- <Col id="data"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.fromdd" propid="value" datasetid="ds_hidden_ref" columnid="fromdd"/>
- <BindItem id="item1" compid="group4.todd" propid="value" datasetid="ds_hidden_ref" columnid="todd"/>
- <BindItem id="item2" compid="group4.combo1" propid="value" datasetid="ds_hidden_ref" columnid="eqmtcd"/>
- <BindItem id="item3" compid="group4.combo2" propid="value" datasetid="ds_hidden_ref" columnid="code"/>
- <BindItem id="item4" compid="radio1" propid="value" datasetid="ds_hidden_ref" columnid="cr"/>
- <BindItem id="item5" compid="radio2" propid="value" datasetid="ds_hidden_ref" columnid="cr"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLQP10500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLQP10500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(datagrid2);
- fSetInit();
- }
- function fSetInit()
- {
- ds_send.setColumn(0, "codeflag", "9997|9998");
- ds_send.setColumn(0, "basecdid", "N01");
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_lb9997=9997 ds_init_lb9998=9998";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- var toDay = utlf_getCurrentDate();
-
- ds_hidden_ref.setColumn(0, "fromdd", toDay);
- ds_hidden_ref.setColumn(0, "todd", toDay);
-
- fRegrid();
- }
- function fRegrid()
- {
- if(ds_hidden_ref.getColumn(0, "eqmtcd") == "N01")
- {
- if(ds_hidden_ref.getColumn(0, "code") == "1")
- {
- ds_hidden_ref.setColumn(0, "gbn", "1");
- }
- else if(ds_hidden_ref.getColumn(0, "code") == "2")
- {
- ds_hidden_ref.setColumn(0, "gbn", "2");
-
- radio1.visible = true;
- }
- else if(ds_hidden_ref.getColumn(0, "code") == "3")
- {
- ds_hidden_ref.setColumn(0, "gbn", "3");
- }
- }
- else if(ds_hidden_ref.getColumn(0, "eqmtcd") == "N02")
- {
- if(ds_hidden_ref.getColumn(0, "code") == "1")
- {
- ds_hidden_ref.setColumn(0, "gbn", "1");
- }
- else if(ds_hidden_ref.getColumn(0, "code") == "2")
- {
- ds_hidden_ref.setColumn(0, "gbn", "0");
-
- radio1.visible = true;
- }
- else if(ds_hidden_ref.getColumn(0, "code") == "3")
- {
- ds_hidden_ref.setColumn(0, "gbn", "3");
- }
- }
- else if(ds_hidden_ref.getColumn(0, "eqmtcd") == "N03")
- {
- if(ds_hidden_ref.getColumn(0, "code") == "1")
- {
- ds_hidden_ref.setColumn(0, "gbn", "4");
- }
- else if(ds_hidden_ref.getColumn(0, "code") == "2")
- {
- ds_hidden_ref.setColumn(0, "gbn", "5");
-
- radio1.visible = true;
- }
- else
- {
- ds_hidden_ref.setColumn(0, "gbn", "6");
- }
- }
- else
- {
- if(ds_hidden_ref.getColumn(0, "code") == "1")
- {
- ds_hidden_ref.setColumn(0, "gbn", "7");
- }
- else
- {
- ds_hidden_ref.setColumn(0, "gbn", "8");
- }
- }
- fReHeader();
- }
- function fReHeader()
- {
- var gbn = ds_hidden_ref.getColumn(0, "gbn");
- var newCap = "";
-
- if (gbn == "1")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
-
- datagrid2.setFormatColProperty(14, "size", 0);
- datagrid2.setFormatColProperty(15, "size", 0);
- datagrid2.setFormatColProperty(16, "size", 0);
- datagrid2.setFormatColProperty(17, "size", 0);
- datagrid2.setFormatColProperty(18, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
- if (gbn == "0" || gbn == "2")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
- datagrid2.setFormatColProperty(14, "size", 0);
- datagrid2.setFormatColProperty(15, "size", 0);
- datagrid2.setFormatColProperty(16, "size", 0);
- datagrid2.setFormatColProperty(17, "size", 0);
- datagrid2.setFormatColProperty(18, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
- if (gbn == "3")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
- datagrid2.setFormatColProperty(14, "size", 0);
- datagrid2.setFormatColProperty(15, "size", 0);
- datagrid2.setFormatColProperty(16, "size", 0);
- datagrid2.setFormatColProperty(17, "size", 0);
- datagrid2.setFormatColProperty(18, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
- if (gbn == "4")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
- datagrid2.setFormatColProperty(3, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
-
- if (gbn == "5")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
- datagrid2.setFormatColProperty(14, "size", 0);
- datagrid2.setFormatColProperty(15, "size", 0);
- datagrid2.setFormatColProperty(16, "size", 0);
- datagrid2.setFormatColProperty(17, "size", 0);
- datagrid2.setFormatColProperty(18, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
- if (gbn == "6")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
- datagrid2.setFormatColProperty(3, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
-
- if (gbn == "7")
- {
- for(var i = 1; i <= 28; i++)
- {
- datagrid2.setFormatColProperty(i, "size", 60);
- }
-
- datagrid2.setFormatColProperty(12, "size", 0);
- datagrid2.setFormatColProperty(13, "size", 0);
- datagrid2.setFormatColProperty(14, "size", 0);
- datagrid2.setFormatColProperty(15, "size", 0);
- datagrid2.setFormatColProperty(16, "size", 0);
- datagrid2.setFormatColProperty(17, "size", 0);
- datagrid2.setFormatColProperty(18, "size", 0);
- datagrid2.setFormatColProperty(19, "size", 0);
- datagrid2.setFormatColProperty(20, "size", 0);
- datagrid2.setFormatColProperty(21, "size", 0);
- datagrid2.setFormatColProperty(22, "size", 0);
- datagrid2.setFormatColProperty(23, "size", 0);
- datagrid2.setFormatColProperty(24, "size", 0);
- datagrid2.setFormatColProperty(25, "size", 0);
- datagrid2.setFormatColProperty(26, "size", 0);
- datagrid2.setFormatColProperty(27, "size", 0);
- datagrid2.setFormatColProperty(28, "size", 0);
- }
- }
- function group4_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- radio1.visible = false;
- radio2.visible = false;
- inff_clearTChart(switch1.case2.object2);
- fSetEqmtCd();
- }
- function fSetEqmtCd()
- {
- var eqmtcd = group4.combo1.value;
-
- ds_send.setColumn(0, "basecdid", eqmtcd);
- ds_send.setColumn(0, "codeflag", "9998|");
-
- ds_hidden_ref.setColumn(0, "code", "1");
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_lb9998=9998";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- fRegrid();
- }
- function group4_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- radio1.visible = false;
- radio2.visible = false;
- inff_clearTChart(switch1.case2.object2);
- fRegrid();
- }
- function group4_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeEqmtList();
- }
- function fExeEqmtList()
- {
- ds_main_getEqmtQcList.clearData();
-
- var oParam = {};
- oParam.id = "TRLQP00801";
- oParam.service = "grademngtacptrsltmngtapp.QCRsltMngt";
- oParam.method = "getEqmtQcList";
- oParam.inds = "cond=ds_hidden_ref";
- oParam.outds = "ds_main_getEqmtQcList=getEqmtQcList";
- oParam.async = false;
- //oParam.callback = "cf_TRLQP00801";
- tranf_submit(oParam);
-
- fLHcheck();
- }
- function fLHcheck()
- {
- if(ds_hidden_ref.getColumn(0, "gbn") == "1")
- {
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- var low = 0;
- var high = 100;
-
- for(j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn") == "4")
- {
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- var low = 0;
- var high = 100;
-
- for(var j = 6; j < 19; j= j+3)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn") == "3")
- {
- for(var i = 0 ; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- var low = 75;
- var high = 85;
-
- for(j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn") == "2")
- {
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, "mquan") == "CRF")
- {
- var low = 0.95;
- var high = 1.05;
-
- for(j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- else
- {
- var low = 20;
- var high = 34;
-
- for(var j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn")== "5" || ds_hidden_ref.getColumn(0, "gbn") == "7" || ds_hidden_ref.getColumn(0, "gbn")== "8")
- {
- var low = 0;
- var high = 5;
-
- for(var i = 0; ds_main_getEqmtQcList.rowcount; i++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, "cv") > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, "cv")))
- {
- //datagrid2.cellStyle("background-color", i , 25) = "#FFB6C1";
- }
-
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, "cv")))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn") == "0")
- {
- for(var i = 0; ds_main_getEqmtQcList.rowcount; i++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, "mquan") == "Peak Deviation")
- {
- var low = -5;
- var high = 5;
-
- for(j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- else
- {
- var low = 20;
- var high = 30;
-
- for(j = 4; j < 14; j++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- }
- else
- {
- for(vari = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- var low = parseFloat(ds_main_getEqmtQcList.getColumn(i, "low"));
- var high = parseFloat(ds_main_getEqmtQcList.getColumn(i, "high"));
-
- for(j = 5; j < 14; j = j+2)
- {
- if(ds_main_getEqmtQcList.getColumn(i, j) > high)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#FFB6C1";
- }
- }
- if(ds_main_getEqmtQcList.getColumn(i, j) < low)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(i, j)))
- {
- //datagrid2.cellStyle("background-color", i , j) = "#5ABEF5";
- }
- }
- }
- }
- }
- }
- function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(ds_hidden_ref.getColumn(0, "gbn")== "2")
- {
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "N");
-
- if(ds_main_getEqmtQcList.getColumn(i, "mquan") == "CRF")
- {
- if(ds_hidden_ref.getColumn(0, "cr") == "1")
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "Y");
- }
- }
- else
- {
- if(ds_hidden_ref.getColumn(0, "cr") == "2")
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "Y");
- }
- }
- }
- }
- }
- function radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(ds_hidden_ref.getColumn(0, "gbn") == "0")
- {
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "N");
-
- if(ds_main_getEqmtQcList.getColumn(i, "mquan") == "Peak Deviation")
- {
- if(ds_hidden_ref.getColumn(0, "cr") == "3")
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "Y");
- }
- }
- else
- {
- if(ds_hidden_ref.getColumn(0, "cr") == "4")
- {
- ds_main_getEqmtQcList.setColumn(i, "chk", "Y");
- }
- }
- }
- }
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsRowAdd();
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsRowdel();
- }
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(datagrid2, "", "", false, "", "", false);
- }
- function fInsRowAdd()
- {
- var gbn = ds_hidden_ref.getColumn(0, "gbn");
-
- if (gbn == "1")
- {
- var row = ds_main_getEqmtQcList.addRow();
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "mquan", "cpm");
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- }
- else if (gbn == "3")
- {
- var row = ds_main_getEqmtQcList.addRow();
-
- ds_main_getEqmtQcList.setColumn(row, "mquan", "%EFF");
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- }
- else if (gbn == "5" || gbn == "7" || gbn == "8")
- {
- var row = ds_main_getEqmtQcList.addRow();
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "mquan", "cpm");
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- }
- else if (gbn == "4" || gbn == "6")
- {
- var row = ds_main_getEqmtQcList.addRow();
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "mquan", "cpm");
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- }
- else if (gbn == "2")
- {
- var row = ds_main_getEqmtQcList.addRow();
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mquan", "CRF");
- var tDay = utlf_getCurrentDate();
-
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
-
- row = ds_main_getEqmtQcList.addRow();
-
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mquan", "Resolution");
-
- var tDay = utlf_getCurrentDate();
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- }
- else if (gbn == "0")
- {
- var row = ds_main_getEqmtQcList.addRow();
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mquan", "Peak Deviation");
-
- var tDay = utlf_getCurrentDate();
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
-
-
- var row = ds_main_getEqmtQcList.addRow();
- ds_main_getEqmtQcList.setColumn(row, "eqmtcd", ds_hidden_ref.getColumn(0, "eqmtcd"));
- ds_main_getEqmtQcList.setColumn(row, "gbn", ds_hidden_ref.getColumn(0, "gbn"));
- ds_main_getEqmtQcList.setColumn(row, "chk", "N");
- ds_main_getEqmtQcList.setColumn(row, "mquan", "Resolution");
-
- var tDay = utlf_getCurrentDate();
- ds_main_getEqmtQcList.setColumn(row, "mdd", tDay);
- }
- }
- function fInsRowdel()
- {
- if(sysf_messageBox("", "Q001")==6)
- {
- var row = ds_main_getEqmtQcList.rowposition;
- ds_main_getEqmtQcList.updatecontrol = false;
- ds_main_getEqmtQcList.setRowType(row, "d");
- ds_main_getEqmtQcList.updatecontrol = true;
- }
- else
- {
- return;
- }
- }
- function ds_main_getEqmtQcList_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
-
- if(e.col >= 4)
- {
- fSetRef();
- }
- }
- function fSetRef()
- {
- var gbn = ds_hidden_ref.getColumn(0, "gbn");
- var inptcnt = 0; // 결과값 col 수
- var inptsum = 0; // 결과값 sum
- var inptsd = 0; //결과값표준편차
- var ext = Math.pow(10, 2);
-
- if(gbn == "4")
- {
- var d1 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d1"));
- var d2 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d2"));
-
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d1")) && !utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d2")))
- {
- var d3 = (d1 + d2) / 2;
- d3 = Math.round(d3 * ext) / ext;;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "d3", d3);
- }
- var d4 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d4"));
- var d5 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d5"));
-
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d4")) && !utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d5")))
- {
- var d6 = (d4 + d5) / 2;
- d6 = Math.round(d6 * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "d6", d6);
- }
- var d7 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d7"));
- var d8 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d8"));
-
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d7")) && !utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d8")))
- {
- var d9 = (d7 + d8) / 2;
- d9 = Math.round(d9 * ext) / ext;;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "d9", d9);
- }
- var d10 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d10"));
- var d11 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d11"));
-
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d10")) && !utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d11")))
- {
- var d12 = (d10 + d11) / 2;
- d12 = Math.round(d12 * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "d12", d12);
- }
- var d13 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d13"));
- var d14 = parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d14"));
-
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d13")) && !utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d14")))
- {
- var d15 = (d13 + d14) / 2;
- d15 = Math.round(d15 * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "d15", d15);
- }
- }
-
- if(gbn == "5" || gbn == "7" || gbn == "8")
- {
- var cal = 0;
- var inptsd2 = 0;
- var inptsd3 = 0;
-
- if(gbn = "5")
- { // 평균
- for(var i = 1; i < 11; i++)
- {
- cal = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i);
- if(!utlf_isNull(cal))
- {
- inptcnt = inptcnt + 1; // 결과값 들어있는 칸 수
- inptsum += parseFloat(cal); // 결과값 sum
- avg = inptsum/inptcnt;
- }
- }
- }
- else
- {
- for(var i = 1; i < 9; i++)
- {
- cal = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i);
-
- if(!utlf_isNull(cal))
- {
- inptcnt = inptcnt + 1; // 결과값 들어있는 칸 수
- inptsum += parseFloat(cal); // 결과값 sum
- avg = inptsum/inptcnt;
-
- }
- }
- }
-
- if(gbn = "5")
- {
- for(var i=1; i < 11; i++)
- {
- cal = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i);
-
- if(!utlf_isNull(cal))
- {
- inptsd = parseFloat(cal)- parseFloat(avg);
- inptsd2 = inptsd * inptsd;
- inptsd3 += inptsd2;
- }
- }
- }
- else
- {
- for(var i=1; i < 9; i++)
- {
- cal = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i);
-
- if(!utlf_isNull(cal))
- {
- inptsd = parseFloat(cal)- parseFloat(avg);
- inptsd2 = inptsd * inptsd;
- inptsd3 += inptsd2;
-
- }
- }
- }
-
- avg2 = Math.round(avg * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "avg", avg2)
- ssd = inptsd3 / inptcnt;
- sd = Math.sqrt(ssd);
- sd = Math.round(sd * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "sd", sd);
-
- var cv = sd / avg * 100;
- cv = Math.round(cv * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "cv", cv);
- }
- if(gbn == "6")
- {
- for(var i=1; i < 11; i = i+2)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i)))
- {
- inptcnt = inptcnt + 1; // 결과값 들어있는 칸 수
- inptsum += parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i));
- }
- }
- if(inptcnt > 0)
- {
- var avg = inptsum / inptcnt ; // 평균
- avg = Math.round(avg * ext) / ext;
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "avg", avg);
- }
- var inptsum2 = 0;
- var inptcnt2 = 0;
- for(var i=2; i < 11; i = i+2)
- {
- if(!utlf_isNull(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition)))
- {
- inptcnt2 = inptcnt2 + 1; // 결과값 들어있는 칸 수
- inptsum2 += parseFloat(ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "d"+i));
- }
- }
- if(inptcnt2 > 0)
- {
- var avg2 = inptsum2 / inptcnt2 ; // 평균
-
- var high = avg2 + (avg2 * 0.25);
- var low = avg2 - (avg2 * 0.25);
- avg2 = Math.round(avg2 * ext) / ext;;
- high = Math.round(high * ext) / ext;;
- low = Math.round(low * ext) / ext;;
-
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "avg2", avg2);
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "low", low);
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "high", high);
- }
- }
- }
- function datagrid2_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_hidden_ref.getColumn(0, "gbn") == "2" || ds_hidden_ref.getColumn(0, "gbn") == "0")
- {
- if(e.col == 1)
- {
- var chk1, chk2;
- if(e.row == 1)
- {
- chk1 = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "chk");
- chk2 = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition+1, "chk");
- }
- else
- {
- chk1 = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition, "chk");
- chk2 = ds_main_getEqmtQcList.getColumn(ds_main_getEqmtQcList.rowposition-1, "chk");
- }
- if(chk1 == "Y")
- {
- if(chk1 == chk2)
- {
- alert("다른 항목은 선택할수 없습니다.");
- ds_main_getEqmtQcList.setColumn(ds_main_getEqmtQcList.rowposition, "chk", "N");
- }
- }
- }
- }
- }
- function datagrid2_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(obj.currentcol >= 3)
- {
- fGrdKeyEvent(e.row, obj.currentcol);
- }
- }
- }
- function fGrdKeyEvent(row, col)
- {
- if(ds_hidden_ref.getColumn(0, "gbn")== "6")
- {
- if(col=="13")
- {
- col += 10;
- }
- else
- {
- col = col + 1
-
- if(col=="24")
- {
- col = 4;
- row += 1;
- }
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn")== "4")
- {
- if(col=="5" || col=="8" || col=="11" || col=="14" || col=="17")
- {
- col = col + 2 ;
-
- if(col=="19")
- {
- col = 4;
- row += 1;
- }
- }
- else
- {
- col = col + 1 ;
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn")== "2")
- {
- if(col=="13")
- {
- col -= 9;
- row += 1;
- }
- else
- {
- col = col + 1 ;
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn")== "7" || ds_hidden_ref.getColumn(0, "gbn")== "8")
- {
- col = col + 1 ;
- if(col=="12")
- {
- col = 3;
- row += 1;
- }
- }
- else if(ds_hidden_ref.getColumn(0, "gbn")== "5")
- {
- col = col + 1 ;
- if(col=="14")
- {
- col = 3;
- row += 1;
- }
- }
- else
- {
- col = col + 1 ;
- if(col=="14")
- {
- col = 4;
- row += 1;
- }
- }
- }
- function btn_grp_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_getEqmtQcList.rowcount;
- var cnt = 0;
- var gbn = ds_hidden_ref.getColumn(0, "gbn");
-
- if(rows == 0)
- {
- alert("데이터가 없습니다.")
- return;
- }
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_getEqmtQcList.getColumn(i, "chk") == "Y")
- {
- cnt = cnt + 1; // 결과값 들어있는 칸 수
- }
- }
-
- if(cnt < 1)
- {
- alert("그래프를 작성할 항목을 선택하세요");
- return;
- }
- else
- {
- switch1.tabindex = 1;
- object2.Tools.Clear();
- object2.Axis.RemoveAllCustom();
- object2.Axis.Left.StartPosition = 0;
- inff_clearTChart(switch1.case2.object2); //챠트 초기화
-
- fInitChart(cnt, gbn);
- }
- }
- function fInitChart(cnt, gbn)
- {
- var cnt = cnt;
- var gbn = gbn;
- var sCol = 4;
- var eCols = 18;
-
- if(cnt == 0)
- {
- alert("그래프를 작성할 항목을 선택하세요");
- return;
- }
- else if(cnt ==1)
- {
- var vEnd = 0;
- var chkrow = datagrid2.findRow("Y", 1, 1);
-
- for(i = sCol; i <= eCols; i++)
- {
- var x = datagrid2.valueMatrix(chkrow, i);
- if(!utlf_isNull(x))
- {
- vEnd += 1;
- }
- }
- var v1SDH = vAvg + vSD;
- var v2SDH = vAvg + vSD*2;
- var v3SDH = vAvg + vSD*3;
- var v4SDH = vAvg + vSD*4;
- var v1SDL = vAvg - vSD;
- var v2SDL = vAvg - vSD*2;
- var v3SDL = vAvg - vSD*3;
- var v4SDL = vAvg - vSD*4;
- }
- else
- {
- var vEnd;
- }
-
- var Obj_Chart = object2;
- var vStart = 0; //시리즈 번호
-
- Obj_Chart.Aspect.View3D = 0; // 2d 로 표현하기
- Obj_Chart.Zoom.Enable = false; // zoom 사용하지 않기
- Obj_Chart.Scroll.Enable = 2;
- Obj_Chart.Environment.MouseWheelScroll = false;
- Obj_Chart.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
- Obj_Chart.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
- Obj_Chart.Panel.Gradient.StartColor = 0xffffff;
- Obj_Chart.Panel.Gradient.EndColor=0xffffff;
- Obj_Chart.Legend.Visible = true; //범례표시 여부
- Obj_Chart.Legend.Alignment = 3; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
- Obj_Chart.Legend.CheckBoxes = false; //범례 체크박스
-
- Obj_Chart.RemoveAllSeries();
- Obj_Chart.Axis.RemoveAllCustom();
- //margin 값 정하기
- Obj_Chart.Panel.MarginTop = 4;
- Obj_Chart.Panel.MarginLeft = 2;
- Obj_Chart.Panel.MarginRight = 4;
- Obj_Chart.Panel.MarginBottom = 2;
-
- Obj_Chart.Header.Visible = false;
- Obj_Chart.Axis.Left.Labels.Style = 2;
- Obj_Chart.Axis.Right.Labels.Style = 1;
-
- Obj_Chart.Axis.Bottom.Labels.Style = 4; // 0:auto or value, 1:No, 2 :민 맥스, 3: marks style, 4:text
- if(gbn == "5" || gbn == "7" || gbn == "8")
- {
- Obj_Chart.Axis.Bottom.Labels.Angle = 90;
- }
- else
- {
- Obj_Chart.Axis.Bottom.Labels.Angle = 0;
-
- }
- Obj_Chart.Axis.Bottom.Labels.Size = 95; //하단 라벨의 사이즈 조치사항 추가하면서 자동으로 늘어나서 추가함
-
- if (gbn == "1" || gbn == "4")
- {
- Obj_Chart.Axis.Left.Title.Caption = "( cpm )";
- }
- else if (gbn == "3")
- {
- Obj_Chart.Axis.Left.Title.Caption = "( %EFF )";
- }
- else
- {
- Obj_Chart.Axis.Left.Title.Caption = "";
- }
- Obj_Chart.Axis.Left.Automatic = true;
-
- //날짜그래프
- Obj_Chart.AddSeries(0); //asLine
- Obj_Chart.Series(0).asLine.LinePen.Width = 1; //펜 두께
- Obj_Chart.Series(0).asLine.Pointer.Visible = false; //값에 대한 포인터
- Obj_Chart.Series(0).ShowInLegend = false;
-
- var find, row, tmp;
- var findRows = "";
- var CRFYN = "";
- var PeakYN = "";
-
- for(var r = 0; r < ds_main_getEqmtQcList.rowcount; r++)
- {
- if(ds_main_getEqmtQcList.getColumn(r, "chk") == "Y")
- {
- findRows = findRows + r + "▦";
-
- if(ds_main_getEqmtQcList.getColumn(r, "mquan") == "CRF")
- {
- CRFYN = "Y";
- }
- else
- {
- CRFYN = "N";
- }
-
- if(ds_main_getEqmtQcList.getColumn(r, "mquan") == "Resolution")
- {
- PeakYN = "N";
- }
- else
- {
- PeakYN = "Y";
- }
- }
- }
-
- row = findRows.substr(0, findRows.length-1).split("▦"); //체크된 항목의 row▦row...
- if(row.length == 1)
- {
- if(gbn == "1")
- {
- var vAvg = 50;
- var vSD = 25;
- vLow = 0;
- vHigh = 100;
- }
- else if(gbn == "0")
- {
- if(PeakYN == "Y")
- {
- var vAvg = 0;
- var vSD = 10;
- vLow = -5;
- vHigh = 5;
- }
- else if(PeakYN == "N")
- {
- var vAvg = 25;
- var vSD = 10;
- vLow = 20;
- vHigh = 30;
- }
- }
- else if(gbn == "2")
- {
- if(CRFYN == "Y")
- {
- var vAvg = 1;
- var vSD = 0.2;
- vLow = 0.95;
- vHigh = 1.05;
- }
- else if(CRFYN == "N")
- {
- var vAvg = 27;
- var vSD = 10;
- vLow = 20;
- vHigh = 34;
- }
- }
- else if(gbn == "3")
- {
- var vAvg = 80;
- var vSD = 20;
- vLow = 75;
- vHigh = 85;
- }
- else if(gbn == "4")
- {
- var vAvg = 50;
- var vSD = 25;
- vLow = 0;
- vHigh = 100;
- }
- else if(gbn == "6")
- {
- var vAvg = 130;
- var vSD = 20;
- vLow = 110;
- vHigh = 150;
- }
- else
- {
- var vAvg = 2.5;
- var vSD = 10;
- vLow = 0;
- vHigh = 5;
- }
- fMakeLineLH(vAvg, vHigh, vLow, vStart, vEnd, gbn);
- }
- else
- {
- if(gbn == "1")
- {
- var vAvg = 50;
- var vSD = 20;
- vLow = 0;
- vHigh = 100;
- }
- else if(gbn == "0")
- {
- if(PeakYN == "Y")
- {
- var vAvg = 0;
- var vSD = 2;
- vLow = -5;
- vHigh = 5;
- }
- else if(PeakYN == "N")
- {
- var vAvg = 25;
- var vSD = 10;
- vLow = 20;
- vHigh = 30;
- }
- }
- else if(gbn == "2")
- {
- if(CRFYN == "Y")
- {
- var vAvg = 1;
- var vSD = 0.2;
- vLow = 0.95;
- vHigh = 1.05;
- }
- else if(CRFYN == "N")
- {
- var vAvg = 27;
- var vSD = 10;
- vLow = 20;
- vHigh = 34;
- }
- }
- else if(gbn == "3")
- {
- var vAvg = 80;
- var vSD = 20;
- vLow = 75;
- vHigh = 85;
- }
- else if(gbn == "4")
- {
- var vAvg = 50;
- var vSD = 20;
- vLow = 0;
- vHigh = 100;
- }
- else if(gbn == "6")
- {
- var vAvg = 130;
- var vSD = 20;
- vLow = 110;
- vHigh = 150;
- }
- else
- {
- var vAvg = 2.5;
- var vSD = 10;
- vLow = 0;
- vHigh = 5;
- }
- for(i = 0; i < row.length; i++)
- {
- tmp = 0;
- vEnd = 0; //각 검사항목의 라인 끝점
- for(j = sCol; j <= eCols; j++)
- { //4번째 컬럼부터 column0~ 시작
- x = datagrid2.valueMatrix(row[i], j);
-
- if(x != "")
- {
- vEnd += 1; //결과 값이 있다면 1씩 더해
- if(tmp == 0)
- {
- vStart = j - sCol; //라인의 시작점
- }
- tmp++;
- }
- }
- fMakeLineLH(vAvg, vHigh, vLow, vStart, vEnd, gbn);
- }
- }
- fMakeChartOrgRslt(row, gbn, vAvg, vSD, sCol, eCols, vStart, vEnd, vHigh, vLow);
- }
- function button7_onclick(obj:Button, e:ClickEventInfo)
- {
- inff_clearTChart(switch1.case2.object2);
- }
- function btn_grprnt_onclick(obj:Button, e:ClickEventInfo)
- {
- Obj_Chart = switch1.case2.object2;
-
- Obj_Chart.Printer.MarginLeft = 5 //여백
- Obj_Chart.Printer.MarginBottom = 25
- Obj_Chart.Printer.MarginRight = 5
- Obj_Chart.Printer.MarginTop = 25
- Obj_Chart.Printer.ShowPreview();
- }
- function button11_onclick(obj:Button, e:ClickEventInfo)
- {
- var Obj_Chart;
-
- Obj_Chart = switch1.case2.object2;
-
- Obj_Chart.Export.SaveChartDialog();
- }
- function switch1_case2_object2_OnClick(obj:ActiveX)
- {
- switch1.case2.object2.Tools.Clear()
- switch1.case2.object2.Tools.Add(10)
- switch1.case2.object2.Tools.Items(0).asAnnotation.Text = switch1.case2.object2.Series(SeriesIndex).PointLabel(ValueIndex)
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetList();
- }
- function fSetList()
- {
- if(sysf_messageBox("", "Q002")==6)
- {
- if(grdf_getGridUpdateData(datagrid2).rowcount == 0)
- {
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
-
- fcheckNull();
- var row = ds_main_getEqmtQcList.rowposition;
-
- for(var i = 0; i < ds_main_getEqmtQcList.rowcount; i++)
- {
- ds_main_getEqmtQcList.setColumn(i, "MEASUERMENTDD", ds_main_getEqmtQcList.getColumn(i, "mdd"));
- }
-
- var oParam = {};
- oParam.id = "TXLQJ00302";
- oParam.service = "grademngtacptrsltmngtapp.QCRsltMngt";
- oParam.method = "reqQcsave";
- oParam.inds = "cond=ds_main_getEqmtQcList:U";
- oParam.async = false;
- //oParam.callback = "cf_TXLQJ00302";
- tranf_submit(oParam);
-
- fExeEqmtList();
- }
- }
- function fcheckNull()
- {
- for(var row = 0; row < ds_main_getEqmtQcList.rowcount; row++)
- {
- for(i=1; i < 16; i++)
- {
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "d"+i)))
- {
- ds_main_getEqmtQcList.setColumn(row, "d"+i, "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "mquan")))
- {
- ds_main_getEqmtQcList.setColumn(row, "mquan", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "avg")))
- {
- ds_main_getEqmtQcList.setColumn(row, "avg", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "avg2")))
- {
- ds_main_getEqmtQcList.setColumn(row, "avg2", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "low")))
- {
- ds_main_getEqmtQcList.setColumn(row, "low", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "high")))
- {
- ds_main_getEqmtQcList.setColumn(row, "high", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "hv")))
- {
- ds_main_getEqmtQcList.setColumn(row, "hv", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "sd")))
- {
- ds_main_getEqmtQcList.setColumn(row, "sd", "-");
- }
- if(utlf_isNull(ds_main_getEqmtQcList.getColumn(row, "cv")))
- {
- ds_main_getEqmtQcList.setColumn(row, "cv", "-");
- }
- }
- }
- }
-
- function button10_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- ]]></Script>
- </Form>
- </FDL>
|