123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZUR00300" position="absolute 0 0 600 450" titletext="출력바코드프린터설정" class="frm_POP" onload="SPZUR00300_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_2" position="absolute 12 46 154 66" anchor="default" positiontype="position" text="바코드프린터 설정"/>
- <Tab id="switch1" position="absolute 12 107 591 380" anchor="all" positiontype="position" class="tab_Normal" taborder="1">
- <Tabpages>
- <Tabpage id="case1" class="tab_Normal">
- <Layouts>
- <Layout>
- <Static id="caption16" position="absolute 1 59 111 79" anchor="default" positiontype="position" text="※ 프린터 개별 설정"/>
- <Button id="btn_AddRow" class="btn2" taborder="4" position="absolute 519 56 575 76" style="align:center middle;" anchor="top right" positiontype="position" text="행추가" onclick="switch1_case1_btn_AddRow_onclick"/>
- <Button id="btn_DelRow" class="btn2" taborder="5" position="absolute 460 56 516 76" style="align:center middle;" anchor="top right" positiontype="position" text="행삭제" onclick="switch1_case1_btn_DelRow_onclick"/>
- <Grid id="grd_pcllist" position="absolute 0 79 579 263" anchor="all" positiontype="position" binddataset="ds_grid_grd_pcllist" autoenter="select" taborder="3" cellsizingtype="col" autofittype="none">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="496"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="바코드명"/>
- <Cell col="1" text="X"/>
- <Cell col="2" text="Y"/>
- <Cell row="1" colspan="3" text="프린터명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" text="bind:barnm" combodataset="ds_init_pcllist" combocodecol="scrncd" combodatacol="scrnnm" combotype="search"/>
- <Cell col="1" edittype="masknumber" text="bind:xpos"/>
- <Cell col="2" edittype="masknumber" text="bind:ypos"/>
- <Cell row="1" colspan="3" displaytype="combo" edittype="combo" text="bind:prtnm" combodataset="ds_init_prntList" combocodecol="COL0" combodatacol="COL0"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static03" class="sta_DA_box" position="absolute 0 0 579 51" anchor="left top right"/>
- <Static id="caption18" text="TOP" class="cell_1" position="absolute 294 26 379 50"/>
- <Edit id="ipt_left" taborder="1" position="absolute 87 28 290 48" imemode="direct"/>
- <Static id="caption17" text="LEFT" class="cell_1" position="absolute 1 26 86 50"/>
- <Static id="caption15" text="기본프린터" class="cell_1" position="absolute 1 1 86 25"/>
- <Combo id="cmb_setupval" taborder="6" innerdataset="ds_init_prntList" codecolumn="COL0" datacolumn="COL0" onitemchanged="switch1_case1_cmb_setupval_onitemchanged" class="combo_default" position="absolute 87 3 574 23"/>
- <Edit id="ipt_left00" taborder="7" imemode="direct" position="absolute 380 28 574 48"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" class="tab_Normal">
- <Layouts>
- <Layout>
- <Static id="caption2" class="tit_2" position="absolute 0 117 95 137" anchor="default" positiontype="position" text="설정정보"/>
- <Static id="caption7" class="tit_2" position="absolute 0 61 95 81" anchor="default" positiontype="position" text="여백"/>
- <Static id="cap_b472" visible="false" position="absolute 139 59 191 78" anchor="top right" positiontype="position" text="용지size"/>
- <Radio id="rdo_b472" visible="false" columncount="2" position="absolute 191 59 333 78" anchor="top right" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" taborder="2">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">3.5 X 5.5</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">3.2 X 6.3</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="Static03" class="sta_DA_box" position="absolute 0 0 336 51" anchor="left top right"/>
- <Radio id="rdo_commkind" taborder="1" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 104 27 333 46" onitemchanged="switch1_case2_rdo_commkind_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">PRT</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">COM</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">TCP/IP</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cmb_prntkind" taborder="0" class="combo_default" position="absolute 104 3 333 23" onitemchanged="switch1_case2_cmb_prntkind_onitemchanged" innerdataset="@ds_init_prntkind" codecolumn="value" datacolumn="label" anchor="left top right"/>
- <Static id="caption3" text="프린터종류" class="cell_1" position="absolute 1 1 101 25"/>
- <Static id="caption4" text="통신유형" class="cell_1" position="absolute 1 26 101 50"/>
- <Static id="Static01" class="sta_DA_box" position="absolute 0 81 336 107" anchor="left top right"/>
- <Edit id="ipt_top" taborder="4" position="absolute 216 84 333 104" imemode="direct" anchor="left top right"/>
- <Static id="caption9" text="TOP" class="cell_1" position="absolute 154 82 214 106"/>
- <Edit id="ipt_left" taborder="3" position="absolute 64 84 152 104" imemode="direct"/>
- <Static id="caption8" text="LEFT" class="cell_1" position="absolute 1 82 61 106"/>
- <Div id="grp_comm01" taborder="5" position="absolute 0 137 336 163" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="Static00" class="sta_DA_box" position="absolute 0 0 336 26" anchor="left top right"/>
- <Static id="caption5" text="설정정보" class="cell_1" position="absolute 1 1 100 25" anchor="default"/>
- <Edit id="ipt_setupval01" taborder="0" position="absolute 104 3 333 23" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_comm02" taborder="8" position="absolute 0 137 336 263" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="Static00" class="sta_DA_box" position="absolute 0 0 336 126" anchor="left top right"/>
- <Static id="caption10" text="Data bit" class="cell_1" position="absolute 1 26 100 50" anchor="default"/>
- <Static id="caption11" text="Stop Bit" class="cell_1" position="absolute 1 51 100 75" anchor="default"/>
- <Static id="caption12" text="Baud Rate" class="cell_1" position="absolute 1 76 100 100" anchor="default"/>
- <Static id="caption13" text="Parity" class="cell_1" position="absolute 1 101 100 125" anchor="default"/>
- <Combo id="cmb_stopbit" taborder="2" class="combo_default" position="absolute 104 54 332 74" anchor="left top right" innerdataset="@ds_init_stopbit" codecolumn="value" datacolumn="label"/>
- <Combo id="cmb_parity" taborder="4" class="combo_default" position="absolute 104 103 332 123" anchor="left top right" innerdataset="@ds_init_parity" codecolumn="value" datacolumn="label"/>
- <Combo id="cmb_databit" taborder="1" class="combo_default" position="absolute 104 29 332 49" anchor="left top right" innerdataset="@ds_init_databit" codecolumn="value" datacolumn="label"/>
- <Static id="caption14" text="COM Port" class="cell_1" position="absolute 1 1 100 25" anchor="default"/>
- <Combo id="cmb_comport" taborder="0" class="combo_default" position="absolute 104 3 332 23" anchor="left top right" innerdataset="@ds_init_comm" codecolumn="value" datacolumn="label"/>
- <Edit id="ipt_raudrate" taborder="3" position="absolute 104 79 332 99" anchor="left top right" imemode="hangul"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_comm03" taborder="6" position="absolute 0 137 336 163" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="Static00" class="sta_DA_box" position="absolute 0 0 336 26" anchor="left top right"/>
- <Static id="caption6" text="IP Address" class="cell_1" position="absolute 1 1 100 25" anchor="default"/>
- <Edit id="ipt_setupval03" taborder="0" position="absolute 104 3 333 23" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="stt_titleText" text="출력바코드프린터설정" class="sta_POP_title" position="absolute 12 8 185 28" transparenthittest="true" anchor="left top right"/>
- <Button id="btn_Close" taborder="3" class="btn_POP_cls" position="absolute 577 11 591 24" onclick="btn_Close_onclick" anchor="top right"/>
- <Div id="group1" taborder="0" class="div_SA" position="absolute 12 65 592 107" anchor="left top right">
- <Layouts>
- <Layout>
- <Radio id="rdo_rexgbn" taborder="0" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 10 10 142 30" anchor="default" onitemchanged="group1_rdo_rexgbn_onitemchanged" index="0" value="1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">PCL</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Port</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cnfm" taborder="2" text="확인" class="btn4" position="absolute 536 422 592 442" onclick="btn_cnfm_onclick" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_pcllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="barnm" type="STRING"/>
- <Column id="xpos" type="STRING"/>
- <Column id="ypos" type="STRING"/>
- <Column id="prtnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_BarCdPrntSetupInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrnid" type="STRING" size="256"/>
- <Column id="prntsetupinfo" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_pcllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqparam" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_pcllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrncd" type="STRING" size="256"/>
- <Column id="scrnnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_Data_setupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setupval" type="STRING" size="256"/>
- <Column id="prntkind" type="STRING" size="256"/>
- <Column id="commkind" type="STRING" size="256"/>
- <Column id="setupval02" type="STRING" size="256"/>
- <Column id="comm" type="STRING" size="256"/>
- <Column id="databit" type="STRING" size="256"/>
- <Column id="stopbit" type="STRING" size="256"/>
- <Column id="baudrate" type="STRING" size="256"/>
- <Column id="parity" type="STRING" size="256"/>
- <Column id="setupval03" type="STRING" size="256"/>
- <Column id="left" type="STRING" size="256"/>
- <Column id="top" type="STRING" size="256"/>
- <Column id="b472size" type="STRING" size="256"/>
- <Column id="rexgbn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_comm" 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">COM1</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">COM2</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">COM3</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">COM4</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">COM5</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">COM6</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">COM7</Col>
- <Col id="value">7</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_databit" 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">7 bit</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">8 bit</Col>
- <Col id="value">8</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_stopbit" 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">1 bit</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">2 bit</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_parity" 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">None</Col>
- <Col id="value">n</Col>
- </Row>
- <Row>
- <Col id="label">Even</Col>
- <Col id="value">e</Col>
- </Row>
- <Row>
- <Col id="value">o</Col>
- <Col id="label">Odd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_Data_prntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrnid" type="STRING" size="256"/>
- <Column id="prntsetupinfo" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_prntkind" 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="value">1</Col>
- <Col id="label">Zebra</Col>
- </Row>
- <Row>
- <Col id="value">5</Col>
- <Col id="label">Zebra(한글내장형)</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">SATO</Col>
- </Row>
- <Row>
- <Col id="value">6</Col>
- <Col id="label">SATO(CT400)</Col>
- </Row>
- <Row>
- <Col id="value">3</Col>
- <Col id="label">Auto labeler</Col>
- </Row>
- <Row>
- <Col id="value">7</Col>
- <Col id="label">SATO(old)</Col>
- </Row>
- <Row>
- <Col id="value">8</Col>
- <Col id="label">B472</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prntList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="COL0" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="case1_left" compid="switch1.case1.ipt_left" propid="value" datasetid="ds_Data_setupinfo" columnid="left"/>
- <BindItem id="rexgbn" compid="group1.rdo_rexgbn" propid="value" datasetid="ds_Data_setupinfo" columnid="rexgbn"/>
- <BindItem id="case2_prntkind" compid="switch1.case2.cmb_prntkind" propid="value" datasetid="ds_Data_setupinfo" columnid="prntkind"/>
- <BindItem id="case2_commkind" compid="switch1.case2.rdo_commkind" propid="value" datasetid="ds_Data_setupinfo" columnid="commkind"/>
- <BindItem id="case2_b472size" compid="switch1.case2.rdo_b472" propid="value" datasetid="ds_Data_setupinfo" columnid="b472size"/>
- <BindItem id="case2_left" compid="switch1.case2.ipt_left" propid="value" datasetid="ds_Data_setupinfo" columnid="left"/>
- <BindItem id="case2_top" compid="switch1.case2.ipt_top" propid="value" datasetid="ds_Data_setupinfo" columnid="top"/>
- <BindItem id="case2_setupval01" compid="switch1.case2.grp_comm01.ipt_setupval01" propid="value" datasetid="ds_Data_setupinfo" columnid="setupval"/>
- <BindItem id="case2_setupval03" compid="switch1.case2.grp_comm03.ipt_setupval03" propid="value" datasetid="ds_Data_setupinfo" columnid="setupval03"/>
- <BindItem id="case2_comm" compid="switch1.case2.grp_comm02.cmb_comport" propid="value" datasetid="ds_Data_setupinfo" columnid="comm"/>
- <BindItem id="case2_databit" compid="switch1.case2.grp_comm02.cmb_databit" propid="value" datasetid="ds_Data_setupinfo" columnid="databit"/>
- <BindItem id="case2_stopbit" compid="switch1.case2.grp_comm02.cmb_stopbit" propid="value" datasetid="ds_Data_setupinfo" columnid="stopbit"/>
- <BindItem id="case2_baudrate" compid="switch1.case2.grp_comm02.ipt_raudrate" propid="value" datasetid="ds_Data_setupinfo" columnid="baudrate"/>
- <BindItem id="case2_parity" compid="switch1.case2.grp_comm02.cmb_parity" propid="value" datasetid="ds_Data_setupinfo" columnid="parity"/>
- <BindItem id="item0" compid="switch1.case1.cmb_setupval" propid="value" datasetid="ds_Data_setupinfo" columnid="setupval"/>
- <BindItem id="item1" compid="switch1.case1.ipt_left00" propid="value" datasetid="ds_Data_setupinfo" columnid="left"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : HIT
- * Job Name : 바코드프린터설정.
- * File Name : SPZUR00300_바코드프린터설정_knuh.xfdl
- * Creator :
- * Make Date : 2014-04-11
- *
- * Description : 바코드프린터설정
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-03-04 HIT Converting Program(TF->XP)
- * 2014-04-11 Change TF to Xp Script
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- // 전체공통 스크립트
- include "com_commonxp::comm_main.xjs";
- // Dataset 뷰어용
- include "com_commodulexp::SSZFM00401.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var p_nEnterKeyCode = 13;
- var p_sSetupInfo;
- var p_sCallBackFunction;
- var p_nRexgbn;
- var p_nPcl;
- var objExtCommon = new ExtCommon();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : Boolen Type
- * Description : Dataset 초기화.
- ****************************************************************************************/
- function lf_setInitDataset(objDS, bAddrow)
- {
- var nRow;
- objDS.clearData();
- if(bAddrow){
- nRow = objDS.addRow();
- }
- return nRow;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 부모창에서 받은 XML을 파싱한다.
- ****************************************************************************************/
- function lf_getClobPasing()
- {
- if(utlf_isNull(p_sSetupInfo)){
- lf_setInitDataset(ds_Data_setupinfo, true);
- return;
- }
-
- // Parsing
- var sColID;
- var domDoc, domElement1, domElement2;
- var domPar = new DomParser;
- domDoc = domPar.parseFromString(p_sSetupInfo);
- // 최상위 노드
- for(var i=0; i<domDoc.childNodes.length; i++){
- domElement1 = domDoc.childNodes[i];
- // 상위 노드
- for(var j=0; j<domElement1.childNodes.length; j++){
- domElement2 = domElement1.childNodes[j];
- if(domElement2.childNodes.length>1||domElement2.nodeName=="pcl"){
- lf_getFindElement(domElement2);
- }else{
- sColID = domElement2.nodeName;
- if(sColID=="comm01"){
- sColID="setupval";
- }else if(sColID=="comm03"){
- sColID="setupval03";
- }
- lf_setDatasetMapping(sColID, domElement2.textContent);
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : Element Object
- * Description : 파싱된 상위 노드에 하위노드가 존재하면 값을 가져온다.
- ****************************************************************************************/
- function lf_getFindElement(domElement)
- {
- var domElementChildNode;
- if(domElement.childNodes.length>1||domElement.nodeName=="pcl"){
- // 하위 노드
- for(var i=0; i<domElement.childNodes.length; i++){
- domElementChildNode = domElement.childNodes[i];
- if(domElementChildNode.childNodes.length>1){
- lf_getFindElement(domElementChildNode);
- }else{
- sColID = domElementChildNode.nodeName;
- if(sColID=="setupval"){
- sColID="setupval02";
- }
- lf_setDatasetMapping(sColID, domElementChildNode.textContent);
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : sColID - Dataset Column Name , sValue - 해당 컬럼값
- * Description : 파싱된 상위 노드에 하위노드가 존재하면 값을 가져온다.
- ****************************************************************************************/
- function lf_setDatasetMapping(sColID, sValue)
- {
- var nRow, objColinfo;
- if(!utlf_isNull(sColID)){
- objColinfo = ds_Data_setupinfo.getColumnInfo(sColID);
- if(!utlf_isNull(objColinfo)){
- nRow = ds_Data_setupinfo.rowposition;
- if(nRow<0){
- nRow = ds_Data_setupinfo.addRow();
- }
- ds_Data_setupinfo.setColumn(nRow, sColID, sValue);
- }
-
- objColinfo = ds_grid_grd_pcllist.getColumnInfo(sColID);
- if(!utlf_isNull(objColinfo)){
- nRow = ds_grid_grd_pcllist.rowposition;
- if(nRow<0||sColID=="barnm"){
- nRow = ds_grid_grd_pcllist.addRow();
- }
- ds_grid_grd_pcllist.setColumn(nRow, sColID, sValue);
- }
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기값 설정.
- ****************************************************************************************/
- function lf_getSetUpInfo()
- {
- var nRow = ds_Data_setupinfo.rowposition;
- var nRexgbn = ds_Data_setupinfo.getColumn(nRow, "rexgbn");
- if(utlf_isNull(nRexgbn)||nRexgbn==0){
- nRexgbn = 1;
- ds_Data_setupinfo.setColumn(nRow, "rexgbn", nRexgbn);
- }
- switch1.tabindex = (nRexgbn-1);
-
- var nLeft = ds_Data_setupinfo.getColumn(nRow, "left");
- if(utlf_isNull(nLeft)) {
- ds_Data_setupinfo.setColumn(nRow, "left", "0");
- }
-
- var nTop = ds_Data_setupinfo.getColumn(nRow, "left");
- if(utlf_isNull(nTop)) {
- ds_Data_setupinfo.setColumn(nRow, "top", "0");
- }
-
- lf_setB472size();
- var nB472size = ds_Data_setupinfo.getColumn(nRow, "b472size");
- if(utlf_isNull(nB472size)){
- ds_Data_setupinfo.setColumn(nRow, "b472size", "1");
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회.
- ****************************************************************************************/
- function lf_setInitionalData()
- {
- // tranf_submit({
- // id : "TRAER01205"
- // , service : "examcureacptexecapp.ExamCureAcpt"
- // , method : "reqGetPclList"
- // , inds : "reqparam=ds_cond_pcllist"
- // , outds : "ds_init_pcllist=pcllist"
- // , callback: "cbf_SPZUR00300"
- // , async : true
- // });
-
-
- tranf_submit({
- id : "TRAER01205"
- , service : "pharmacybaseapp.DrugInfo"
- , method : "reqGetPrtList"
- , outds : "ds_init_pcllist=item"
- , callback: "cbf_SPZUR00300"
- , async : true
- });
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 통신유형 기본값 설정.
- ****************************************************************************************/
- function lf_setInitCommKind()
- {
- var arrColID = ["prntkind", "commkind", "setupval", "comm", "databit", "stopbit", "baudrate", "parity", "setupval02", "setupval03","left", "top"];
- var arrValue = ["0", "01", "", "1", "8", "1", "9600", "n", "", "", "0", "0"];
- var nInstcd = sysf_getUserInfo("dutplceinstcd");
- if( nInstcd == "012") {
- arrValue[0] = "1";
- arrValue[1] = "02";
- arrValue[3] = "2";
- }
-
- var nRow = ds_Data_setupinfo.rowposition;
- if(utlf_isNull(p_sSetupInfo)){
- if(nRow<0){
- nRow = lf_setInitDataset(ds_Data_setupinfo, true);
- }
-
- for(var i=0; i<arrColID.length; i++){
- ds_Data_setupinfo.setColumn(nRow, arrColID[i], arrValue[i]);
- }
- }
-
- // 통신유형 설정정보 컴포넌트 변경
- var sCommKind = ds_Data_setupinfo.getColumn(nRow, "commkind");
- lf_setCommKind_Select(sCommKind);
- }
- /****************************************************************************************
- * Argument : sCommKind - 통신유형 선택 값.
- * Description : 설정정보 변경.
- ****************************************************************************************/
- function lf_setCommKind_Select(sCommKind)
- {
- if(sCommKind=="01"){
- switch1.case2.grp_comm01.visible = true;
- switch1.case2.grp_comm02.visible = false;
- switch1.case2.grp_comm03.visible = false;
-
- switch1.case2.grp_comm01.ipt_setupval01.setFocus();
- }else if(sCommKind=="02"){
- switch1.case2.grp_comm01.visible = false;
- switch1.case2.grp_comm02.visible = true;
- switch1.case2.grp_comm03.visible = false;
- }else if(sCommKind == "03"){
- switch1.case2.grp_comm01.visible = false;
- switch1.case2.grp_comm02.visible = false;
- switch1.case2.grp_comm03.visible = true;
-
- switch1.case2.grp_comm03.ipt_setupval03.setFocus();
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 부모창 ID를 가져온다.
- ****************************************************************************************/
- function lf_getOpenFormID()
- {
- if(utlf_isNull(this.opener.url)){
- return this.opener.name;
- }else{
- var sFormName = (this.opener.url.split("::")[1]).split("_")[0];
- sFormName = sFormName.replace(".xfdl", "");
- return sFormName;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 저장.
- ****************************************************************************************/
- function lf_getPrintSetupInfoXML()
- {
- var sReplace, sValue;
- var sXML = "<setupinfo></setupinfo>";
- var nRow = ds_Data_setupinfo.rowposition;
- var arrColID = ["prntkind", "commkind", "comm01", "comm02", "comm03", "blank", "rexgbn", "pcl"];
- var arrComm02 = ["comm", "databit", "stopbit", "baudrate", "parity", "setupval02"];
- var arrBlank = ["left", "top", "b472size"];
- var arrPcllist = ["barnm", "xpos", "ypos", "prtnm"];
- for(var i=0; i<arrColID.length; i++){
- if(arrColID[i]=="prntkind"||arrColID[i]=="commkind"||arrColID[i]=="rexgbn"){
- sValue = ds_Data_setupinfo.getColumn(nRow, arrColID[i]);
- if(utlf_isNull(sValue)){
- sReplace = "<"+arrColID[i]+"/></setupinfo>";
- }else{
- sReplace = "<"+arrColID[i]+">"+sValue+"</"+arrColID[i]+"></setupinfo>";
- }
- }else if(arrColID[i]=="comm01"){
- sValue = ds_Data_setupinfo.getColumn(nRow, "setupval");
- if(utlf_isNull(sValue)){
- sReplace = "<"+arrColID[i]+"/></setupinfo>";
- }else{
- sReplace = "<"+arrColID[i]+"><setupval>"+sValue+"</setupval></"+arrColID[i]+"></setupinfo>";
- }
- }else if(arrColID[i]=="comm02"){
- sReplace = "";
- for(var j=0; j<arrComm02.length; j++){
- sValue = ds_Data_setupinfo.getColumn(nRow, arrComm02[j]);
- if(utlf_isNull(sValue)){
- sReplace += "<"+arrComm02[j]+"/>";
- }else{
- sReplace += "<"+arrComm02[j]+">"+sValue+"</"+arrComm02[j]+">";
- }
- }
- sReplace = "<"+arrColID[i]+">"+sReplace+"</"+arrColID[i]+"></setupinfo>";
- }else if(arrColID[i]=="comm03"){
- sValue = ds_Data_setupinfo.getColumn(nRow, "setupval03");
- if(utlf_isNull(sValue)){
- sReplace = "<"+arrColID[i]+"/></setupinfo>";
- }else{
- sReplace = "<"+arrColID[i]+"><setupval>"+sValue+"</setupval></"+arrColID[i]+"></setupinfo>";
- }
- }else if(arrColID[i]=="blank"){
- sReplace = "";
- for(var j=0; j<arrBlank.length; j++){
- sValue = ds_Data_setupinfo.getColumn(nRow, arrBlank[j]);
- if(utlf_isNull(sValue)){
- sReplace += "<"+arrBlank[j]+"/>";
- }else{
- sReplace += "<"+arrBlank[j]+">"+sValue+"</"+arrBlank[j]+">";
- }
- }
- sReplace = "<"+arrColID[i]+">"+sReplace+"</"+arrColID[i]+"></setupinfo>";
- }else if(arrColID[i]=="pcl"){
- sReplace = "";
- var nRowCnt = ds_grid_grd_pcllist.getRowCount();
- if(nRowCnt>0){
- for(var k=0; k<nRowCnt; k++){
- sReplace += "<pclist>";
- for(var j=0; j<arrPcllist.length; j++){
- sValue = ds_grid_grd_pcllist.getColumn(k, arrPcllist[j]);
- if(utlf_isNull(sValue)){
- sReplace += "<"+arrPcllist[j]+"/>";
- }else{
- sReplace += "<"+arrPcllist[j]+">"+sValue+"</"+arrPcllist[j]+">";
- }
- }
- sReplace += "</pclist>";
- }
- sReplace = "<"+arrColID[i]+">"+sReplace+"</"+arrColID[i]+"></setupinfo>";
- }else{
- sReplace = "<"+arrColID[i]+"/></setupinfo>";
- }
- }
- sXML = sXML.replace("</setupinfo>", sReplace);
- }
- return sXML;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 저장.
- ****************************************************************************************/
- function lf_setbarcdprt()
- {
- var nRow = lf_setInitDataset(ds_Data_prntsetup, true);
-
- // 부모 화면 아이디를 가져온다.
- var sOpenScrnid = lf_getOpenFormID();
- ds_Data_prntsetup.setColumn(nRow, "scrnid", sOpenScrnid);
-
- // 저장할 내용을 XML형태로 생성.
- p_sSetupInfo = lf_getPrintSetupInfoXML();
- ds_Data_prntsetup.setColumn(nRow, "prntsetupinfo", p_sSetupInfo);
-
- // 신규저장 유무(0 - 신규).
- var nFlag = 1;
- if(utlf_isNull(p_sSetupInfo)){
- nFlag = 0;
- }
- ds_Data_prntsetup.setColumn(nRow, "flag", nFlag);
-
- tranf_submit({
- id : "TXAER01204"
- , service : "examcureacptexecapp.ExamCureAcpt"
- , method : "reqExeBarCdPrntSetup"
- , inds : "BarCdPrntSetupInfo=ds_Data_prntsetup:U"
- , callback: "cbf_SPZUR00300"
- //, async : true
- });
-
- this.opener.lf_chkPrint(sOpenScrnid); //프린터 설정 재조회
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 저장.
- ****************************************************************************************/
- function lf_setB472size()
- {
- var nVisible = false;
- var nRow = ds_Data_setupinfo.rowposition;
- var nPrntkind = ds_Data_setupinfo.getColumn(nRow, "prntkind");
- if(nPrntkind=="8"){
- nVisible = true;
- }
- switch1.case2.cap_b472.visible = nVisible;
- switch1.case2.rdo_b472.visible = nVisible;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 프린터 목록에서 기본프린터 표시하기.
- ****************************************************************************************/
- function fn_controlPrinter()
- {
- ds_init_prntList.clearData();
- var arrRtn = objExtCommon.getPrinterList();
- var nDrow, nArow ;
- var nCrow = objExtCommon.getPrinterList().length;
-
- for (var i = 0; i < nCrow; i++)
- {
- nArow = ds_init_prntList.addRow();
- ds_init_prntList.setColumn(nArow, "COL0", arrRtn[i]);
-
- if (arrRtn[i] == objExtCommon.getDefaultPrinter())
- {
- nDrow = i;
- }
- }
- ds_init_prntList.rowposition = nDrow;
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : tr_getCodeList의 콜백함수
- ****************************************************************************************/
- function cbf_SPZUR00300(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode!=0){
- if(sSvcId=="TXAER01204"){
- sysf_messageBox("바코드프린터 설정에", "E009");
- }else{
- sysf_messageBox(sErrorMsg, "E000");
- }
- return;
- }
-
- switch(sSvcId)
- {
- case "TRAER01205":
- lf_getClobPasing();
-
- // 초기값 설정
- lf_getSetUpInfo();
-
- lf_setInitCommKind();
- break;
-
- case "TXAER01204":
- // if(!utlf_isNull(p_sCallBackFunction)){
- // eval("this.opener."+p_sCallBackFunction+"('"+p_sSetupInfo+"');");
- // }
- this.close();
- break;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPZUR00300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 최초 OnLoad Event
- ****************************************************************************************/
- function SPZUR00300_onload(obj:Form, e:LoadEventInfo)
- {
- // 화면공통
- frmf_initForm(obj);
-
- // DataSet 조회;
- lf_commoduleDataSetShow();
-
- // Opener에서 받은 Param Pasing
- try{
- p_sSetupInfo = plgv_sSetupInfo;
- }catch(e){
- p_sSetupInfo = "";
- }
-
- try{
- p_sCallBackFunction = plgv_sCallBackFunction;
- }catch(e){
- p_sCallBackFunction = "";
- }
-
-
- switch1.enableredraw = false;
-
- lf_setInitionalData(); // 출력물 리스트 조회
-
- fn_controlPrinter();//해당 피시의 프린터 리스트 노드셑으로 받아옴
-
- switch1.enableredraw = true;
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_rexgbn
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function group1_rdo_rexgbn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- switch1.tabindex = e.postindex;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cnfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setbarcdprt();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_AddRow
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function switch1_case1_btn_AddRow_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_pcllist.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_DelRow
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function switch1_case1_btn_DelRow_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_pcllist.deleteRow(ds_grid_grd_pcllist.rowposition);
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_prntkind
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 여백 컴포넌트 설정.
- ****************************************************************************************/
- function switch1_case2_cmb_prntkind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_setB472size();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_commkind
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 설정정보 컴포넌트 변경
- ****************************************************************************************/
- function switch1_case2_rdo_commkind_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- lf_setCommKind_Select(e.postvalue);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_Close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면종료.
- ****************************************************************************************/
- function btn_Close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }]]></Script>
- </Form>
- </FDL>
|