123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986 |
- /** 2010.04.02 작성자 : 황신희 <행위재료 마스터> **/
- //코드 Validation Check한다.
- /*
- pvali_kind : Validation 종류(부서코드, 공통코드, 우편번호...)
- "01" - 사번조회
- "02" - 부서코드
- "03" - 공통코드
- "04" - 우편번호
- "05" - 계정코드
- "09" - 근무코드
- precv_list : 자료를 받을 Instance Node(콤마로 분류해서 넘기면됨)
- pPodeNames : 추가로 넘길 노드명
- pValueControl : 넘길 데이터
- */
- var MASTDETAIL_NODE = "/root/gridset/mastdetailset";
- var PURTARGET_NODE = "/root/target/defaultvalue";
- function smpfValidationCheck(pmapid, pmapresultlist, pmaprefcol , pmaprefvalue,pcdgrupid, precv_list , pcontrol_name,window_name,pdefault_node, pdefault_value,nodebigo) {
-
- try
- {
- var objID = event.currentTarget;
- var obj = document.controls(objID);
-
- var validation_node = "/root/send/validation";
- var validation_rsltnode = "/root/init/main";
-
- var recv_node = precv_list.split(",");
-
- model.removeNodeset(validation_node);
- model.removeNodeset(validation_rsltnode);
- model.makeNode(validation_node);
- model.makeNode(validation_rsltnode);
-
- if(pmaprefcol != "" && pmaprefcol != null) {
- pmaprefcol = pmaprefcol.split(",");
- }
-
- if(pmaprefvalue != "" && pmaprefvalue != null) {
- pmaprefvalue = pmaprefvalue.split(",");
- }
-
- if(pmaprefcol != "" && pmaprefcol != null) {
- for (var z = 0; z < pmaprefcol.length; z++) {
- model.makeValue(validation_node + "/" + pmaprefcol[z] , pmaprefvalue[z]);
- }
- }
-
- var result_path = "";
- if (obj.elementName == "xforms:datagrid")result_path = obj.nodeset;
- else {
- var node_path = obj.attribute("ref").split("/");
- result_path = "/root";
-
- for (var i = 2 ; i < node_path.length - 1; i++) {
- result_path = result_path + "/" + node_path[i];
- }
- }
-
- model.removeChild(pmapid);
-
- model.createChild("xforms:submission", "id:" +pmapid + ";mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit(pmapid);
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/" + pmapresultlist +"/*");
-
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/" + pmapresultlist + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/" + pmapresultlist + "/" + node.item(j).nodeName);
- }
- }
-
-
- var node1 = instance1.selectNodes(validation_rsltnode + "/*");
-
- if (node1.length != 1) {
- model.removeNodeset("/root/source/validation");
- model.makeNode("/root/source/validation")
- model.copyNode("/root/source/validation", validation_rsltnode);
-
- rszfOpenPopUpListByWndName(pcontrol_name, pcdgrupid, precv_list , window_name, pdefault_node, pdefault_value,nodebigo)
- }
- else {
-
- if(nodebigo != null && nodebigo == "Y")
- {
- for (var i = 0; i < recv_node.length; i++) {
- if (obj.elementName == "xforms:datagrid") {
-
- //if(obj.colRef(recv_node[i]) != -1)model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- if(obj.colRef(recv_node[i]) != -1)model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], model.getValue(validation_rsltnode + "/" + pmapresultlist + "/" + recv_node[i]));
- }
- else {
- model.setValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
-
- }
- else
- {
- for (var i = 0; i < recv_node.length; i++) {
-
- if (obj.elementName == "xforms:datagrid") {
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- }
- else {
- model.setValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
- }
- }
- }
- catch(Exception)
- {
- }
- }
- /* Grid 입력,삭제 처리.
- pGrid_Name : 입력,삭제할 Grid id명
- pIAD_Flag : 행추가,행삽입,행삭제 여부("A","I","D")
- pRefresh_Flag : 행추가, 삽입후 misfGridDefaultSet (Default 값 셋팅 유무 Y, N ) default : Y(사용)
- */
- function smfGridIUD(pGrid_Name, pIAD_Flag, pRefresh_Flag ) {
-
- if (pGrid_Name.elementName != "xforms:datagrid") {
- return;
- }
-
- model.setfocus(pGrid_Name.attribute("id"));
- if (pIAD_Flag == "I")
- {
- pGrid_Name.insertRow(pGrid_Name.row, "below", false);
- pGrid_Name.select(pGrid_Name.row, pGrid_Name.col) = true;
- }
- else if (pIAD_Flag == "D")
- {
- var sRowIdxes = "";
- var iSelectedCnt = pGrid_Name.selectedCells.length;
-
- for(var i=0; i<iSelectedCnt; i++)
- {
- var iRowIdx = pGrid_Name.selectedCells.item(i).row;
- if(!misfGetRowIdxExists(sRowIdxes, iRowIdx)) continue;
- sRowIdxes = sRowIdxes + iRowIdx + ",";
- if (pGrid_Name.rowstatus(iRowIdx) == 4)
- {
- pGrid_Name.removeStatus(iRowIdx,"delete");
- }
- else
- {
- if (misfCheckDeleteYN(pGrid_Name) == "Y")
- {
- // 1 : 초기 insert 한상태, 3 : insert한 Row를 Edit 한경우 3으로 변경됨
- if(pGrid_Name.rowstatus(iRowIdx) == 1 || pGrid_Name.rowstatus(iRowIdx) == 3)
- {
- pGrid_Name.deleteRow(pGrid_Name.row, false);
- if(i+1 == iSelectedCnt) pGrid_Name.select(pGrid_Name.row, pGrid_Name.col) = true;
- }
- else
- {
- pGrid_Name.addStatus(iRowIdx,"delete");
- }
- }
- else
- {
- messageBox("세부내역이 존재 하므로 삭제 ", "E001");
- }
- }
- }
- }
- else if (pIAD_Flag == "A") {
- pGrid_Name.addRow(false);
- pGrid_Name.select(pGrid_Name.row, pGrid_Name.col) = true;
- // pGrid_Name.refresh();
- }
-
- if ( pRefresh_Flag != "N" ) {
-
- if (pIAD_Flag == "A" || pIAD_Flag == "I") {
- // pGrid_Name.dispatch("onrowchanged");
- misfGridDefaultSet(pGrid_Name);
-
- pGrid_Name.col = 1;
- }
- }
- }
-
- function fSmMatch(){
-
- for(i=grd_hidactmatr.fixedRows; i < grd_hidactmatr.rows;i++){
-
- var actcd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("actcd"));
- var actdeptcd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("actdeptcd"));
- var actdeptnm = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("actdeptnm"));
- var actprcpdrid = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("actprcpdrid"));
- var actprcpdrnm = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("actprcpdrnm"));
- var fromdd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("fromdd"));
- var todd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("todd"));
- var goodcd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("goodcd"));
- var goodnm = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("goodnm"));
- var allsizespecid = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("allsizespecid"));
- var goodmodel = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("goodmodel"));
- var goodspec = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("goodspec"));
- var maincustlastsuplplcenm = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("maincustlastsuplplcenm"));
- var suppcustnm = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("suppcustnm"));
- var edicd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("edicd"));
- var prcpexchqty = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("prcpexchqty"));
- var goodunitcost = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("goodunitcost"));
- var qty = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("qty"));
- var fstrgstrid = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("fstrgstrid"));
- var fstrgstdt = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("fstrgstdt"));
- var lastupdtrid = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("lastupdtrid"));
- var lastupdtdt = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("lastupdtdt"));
- var instcd = grd_hidactmatr.valueMatrix(i,grd_hidactmatr.colRef("instcd"));
- //grd_actmaster.addRow(false);
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("actcd")) = actcd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("actdeptcd")) = actdeptcd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("actdeptnm")) = actdeptnm;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("actprcpdrid")) = actprcpdrid;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("actprcpdrnm")) = actprcpdrnm;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("fromdd")) = fromdd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("todd")) = todd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("goodcd")) = goodcd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("goodnm")) = goodnm;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("allsizespecid")) = allsizespecid;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("goodmodel")) = goodmodel;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("goodspec")) = goodspec;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("maincustlastsuplplcenm")) = maincustlastsuplplcenm;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("suppcustnm")) = suppcustnm;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("edicd")) = edicd;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("prcpexchqty")) = prcpexchqty;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("goodunitcost")) = goodunitcost;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("qty")) = qty;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("fstrgstrid")) = fstrgstrid;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("fstrgstdt")) = fstrgstdt;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("lastupdtrid")) = lastupdtrid;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("lastupdtdt")) = lastupdtdt;
- grd_actmaster.valueMatrix(i,grd_actmaster.colRef("instcd")) = instcd;
- grd_actmaster.rowStatus(i) = 0;
- var status = grd_actmaster.valueMatrix(i, grd_actmaster.colRef("m")); //상태설정
-
-
-
- grd_actmaster.refresh();
- }
- }
-
- // popup,입력폼 간 값 셋팅
- function fSmSet(){
- var actcd = getParameter("actcd");
- var hngnm = getParameter("hngnm");
- var engnm = getParameter("engnm");
- var ordnm = getParameter("ordnm");
- model.setValue("/root/send/actmatrlist/actcd",actcd );
- model.setValue("/root/send/actmatrlist/actnm",hngnm );
- ipt_actcd.refresh();
- ipt_actnm.refresh();
- }
- // Grid, 입력폼 간 값 셋팅 (grd_actnmview - ipt_)
- function fSmInput(){
- var actcd = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/actcd");
- var actdeptcd = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/actdeptcd");
- var actdeptnm = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/actdeptnm");
- var actprcpdrid = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/actprcpdrid");
- var actprcpdrnm = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/actprcpdrnm");
- var fromdd = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/fromdd");
- var todd = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/todd");
- var fstrgstrid = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/fstrgstrid");
- var fstrgstdt = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/fstrgstdt");
- var lastupdtrid = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/lastupdtrid");
- var lastupdtdt = model.getValue("/root/main/actdefalut/actdefalutlist["+grd_actnmview.row+"]/lastupdtdt");
-
- model.setValue("/root/send/reslist/actcd",actcd);
- model.setValue("/root/send/reslist/actdeptcd",actdeptcd);
- model.setValue("/root/send/reslist/actdeptnm",actdeptnm);
- model.setValue("/root/send/reslist/actprcpdrid",actprcpdrid);
- model.setValue("/root/send/reslist/actprcpdrnm",actprcpdrnm);
- model.setValue("/root/send/reslist/fromdd",fromdd);
- model.setValue("/root/send/reslist/todd",todd);
- model.setValue("/root/send/reslist/fstrgstrid",fstrgstrid);
- model.setValue("/root/send/reslist/fstrgstdt",fstrgstdt);
- model.setValue("/root/send/reslist/lastupdtrid",lastupdtrid);
- model.setValue("/root/send/reslist/lastupdtdt",lastupdtdt);
-
- opt_actcd.refresh();
- opt_actdeptnm.refresh();
- opt_actdeptcd.refresh();
- opt_actprcpdrid.refresh();
- opt_actprcpdrnm.refresh();
- opt_fromdd.refresh();
- opt_todd.refresh();
- opt_hngnm.refresh();
- opt_fstrgstrid.refresh();
- opt_fstrgstdt.refresh();
- opt_lastupdtrid.refresh();
- opt_lastupdtdt.refresh();
-
-
- }
- function fSmOpenPopUpListByWndName(pcontrol_name, pcdgrupid, precv_list , window_name, pdefault_node, pdefault_value,nodebigo) {
- if( precv_list != "")
- var recv_list = precv_list.split(",");
-
- if(pdefault_value != "" && pdefault_value != null) {
- var default_value = pdefault_value.split(",");
- }
-
- if(pdefault_node != "" && pdefault_node != null) {
- var pdefault_node = pdefault_node.split(",");
- }
-
- //send/target는 mis.js와 연계되는 부분이 있어 같이 수정하기로 함
- //이 인스턴스 구문 오류는 mis.js 수정후 수정
- var recvref_node = "/root/source/recvref";
- var cdgrupid_node = "/root/source/cdgrupid";
- var recvitem_node = "/root/source/recvitem"
- var default_node = "/root/source/defaultvalue";
- var checkyn_node = "/root/source/checkyn";
-
- //resetInstanceNode는 노드가 생성된 후에 초기화 하는 작업이므로
- //여기서는 처음 함수 호출시 생성되어 있는 노드가 존재하지 않아
- //makenode로 노드 생성하는 로직으로 구현
- model.removeNodeset(recvref_node);
- model.removeNodeset(cdgrupid_node);
- model.removeNodeset(recvitem_node);
- model.removeNodeset(default_node);
- model.removeNodeset(checkyn_node);
-
- model.makeNode(recvref_node);
- model.makeNode(cdgrupid_node);
- model.makeNode(recvitem_node);
- model.makeNode(default_node);
- model.makeNode(checkyn_node);
-
- if ( precv_list != "" && recv_list.length > 0 ) {
- for (var k = 0; k <= recv_list.length - 1; k++) {
- model.makeValue(recvitem_node + "/" + recv_list[k], recv_list[k]);
- // model.setValue("/root/source/recvitem/" + recv_list[k],recv_list[k] );
- }
- }
-
- var obj = null;
- if (pcontrol_name.elementName == "xforms:datagrid") {
- //grid에서 호출하였을 경우
-
- pcontrol_name.endEditCell();
- if(pdefault_value != "" && pdefault_value != null) {
- for (var z = 0; z < default_value.length; z++) {
- obj = document.controls(default_value[z]);
- if (obj != null && obj.elementName != "xforms:datagrid" ) {
- model.makeValue(default_node + "/" + pdefault_node[z] , model.getValue(obj.attribute("ref")));
- // model.makeValue(default_node + default_value[z] ,
- // model.getValue(pcontrol_name.nodeset + "[" + (pcontrol_name.row - pcontrol_name.fixedRows + 1) "/" + default_value[z]));
-
- }
- else {
- if(model.getValue(pcontrol_name.nodeset + "[" + (pcontrol_name.row - pcontrol_name.fixedRows + 1)+ "]/" + default_value[z]).length > 0)
- {
- model.makeValue(default_node + "/" + pdefault_node[z] ,
- model.getValue(pcontrol_name.nodeset + "[" + (pcontrol_name.row - pcontrol_name.fixedRows + 1)+ "]/" + default_value[z]));
- }
- else
- {
- model.makeValue(default_node + "/" + pdefault_node[z] ,default_value[z]);
- }
- }
- }
- }
-
- model.setValue(recvref_node ,pcontrol_name.nodeset + "[" + (pcontrol_name.row - pcontrol_name.fixedRows + 1) + "]");
-
-
- }
- else {
-
- var node_path = pcontrol_name.attribute("ref").split("/");
- var source_path = "/root";
-
- for (var i = 2 ; i < node_path.length - 1; i++) {
- source_path = source_path + "/" + node_path[i];
- }
-
- if(pdefault_value != "" && pdefault_value != null) {
- for (var z = 0; z < default_value.length; z++) {
- obj = document.controls(default_value[z]);
-
- if (obj != null) {
- model.makeValue(default_node + "/" + pdefault_node[z] , model.getValue(obj.attribute("ref")));
-
- }
- else {
- model.makeValue(default_node + "/" + pdefault_node[z] , default_value[z]);
- }
- }
- }
-
- model.setValue(recvref_node ,source_path);
- }
-
-
- if (pcdgrupid.length > 0 ) {
- model.setValue(cdgrupid_node ,pcdgrupid);
- }
-
- if(nodebigo != null && nodebigo.length > 0)model.makeValue(default_node +"/nodebigo",nodebigo);
- modal(window_name,"","","","","/root/source", "/root/target" );
- }
- // Validation Check??.
- /*
- fSmValidationCheck("TRRSD00181", "agtplcelist", "refcond,instcd,goodflag,prodcmpycd,agtplcenm","," + model.getValue(opt_instcd.attribute("ref")) +"," + model.getValue(cmb_goodflag.attribute("ref")) +"," +
- model.getValue(ipt_prodcmpycd.attribute("ref")) +"," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- */
- function fSmValidationCheck(pmapid, pmapresultlist, pmaprefcol , pmaprefvalue,pcdgrupid, precv_list , pcontrol_name,window_name,pdefault_node, pdefault_value,nodebigo) {
-
- try
- {
- var objID = event.currentTarget;
- var obj = document.controls(objID);
-
- var validation_node = "/root/send/validation";
- var validation_rsltnode = "/root/init/main";
-
- var recv_node = precv_list.split(",");
- //resetInstanceNode는 노드가 생성된 후에 초기화 하는 작업이므로
- //여기서는 처음 함수 호출시 생성되어 있는 노드가 존재하지 않아
- //makenode로 노드 생성하는 로직으로 구현
- model.removeNodeset(validation_node);
- model.removeNodeset(validation_rsltnode);
- model.makeNode(validation_node);
- model.makeNode(validation_rsltnode);
- if(pmaprefcol != "" && pmaprefcol != null) {
- pmaprefcol = pmaprefcol.split(",");
- }
-
- if(pmaprefvalue != "" && pmaprefvalue != null) {
- pmaprefvalue = pmaprefvalue.split(",");
- }
-
- if(pmaprefcol != "" && pmaprefcol != null) {
- for (var z = 0; z < pmaprefcol.length; z++) {
- model.makeValue(validation_node + "/" + pmaprefcol[z] , pmaprefvalue[z]);
- }
- }
-
- var result_path = "";
- if (obj.elementName == "xforms:datagrid")result_path = obj.nodeset;
- else {
- var node_path = obj.attribute("ref").split("/");
- result_path = "/root";
-
- for (var i = 2 ; i < node_path.length - 1; i++) {
- result_path = result_path + "/" + node_path[i];
- }
- }
-
- model.removeChild(pmapid);
-
- model.createChild("xforms:submission", "id:" +pmapid + ";mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit(pmapid);
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/" + pmapresultlist +"/*");
-
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/" + pmapresultlist + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/" + pmapresultlist + "/" + node.item(j).nodeName);
- }
- }
-
- var node1 = instance1.selectNodes(validation_rsltnode + "/*");
- if (node1.length != 1) {
- model.removeNodeset("/root/source/validation");
- model.makeNode("/root/source/validation")
- model.copyNode("/root/source/validation", validation_rsltnode);
-
- rszfOpenPopUpListByWndName(pcontrol_name, pcdgrupid, precv_list , window_name, pdefault_node, pdefault_value,nodebigo)
- }
- else {
- if(nodebigo != null && nodebigo == "Y")
- {
- for (var i = 0; i < recv_node.length; i++) {
- if (obj.elementName == "xforms:datagrid") {
-
- //if(obj.colRef(recv_node[i]) != -1)model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- if(obj.colRef(recv_node[i]) != -1)model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], model.getValue(validation_rsltnode + "/" + pmapresultlist + "/" + recv_node[i]));
- }
- else {
- model.setValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
-
- }
- else
- {
- for (var i = 0; i < recv_node.length; i++) {
-
- if (obj.elementName == "xforms:datagrid") {
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- }
- else {
- model.setValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
- }
- }
- }
- catch(Exception)
- {
- }
- }
- //화면에서 Grid초기화
- /*
- pGrid_name : 최기화할 Grid id명
- */
- function fSmGridInit(pGrid_name) {
-
- model.removeNodeset(pGrid_name.nodeset);
- pGrid_name.refresh();
- }
- //fSmMsterDetailSet Method에서 설정한 기준으로 Data를 조회.
- function fSmMsterDetailRetrieve() {
- var objID = event.target;
- var obj = document.controls(objID);
-
- // var ins = document.models( 0 ).instances( 0 );
- var node = instance1.selectNodes(MASTDETAIL_NODE + "/*");
- var node_detail = null;
- var master_name = new Array();
- var current_name = new Array();
- var submit_id = new Array();
- var resetgridID = null;
-
- for (var i = 0; i < node.length ; i++) {
- node_detail = instance1.selectNodes(MASTDETAIL_NODE + "/" + node.item(i).nodeName + "/*");
-
- for (var j = 0; j < node_detail.length; j++) {
-
- if ( node_detail.item(j).nodeName == "master") {
- master_name[i] = model.getValue(MASTDETAIL_NODE + "/" + node.item(i).nodeName + "/" + node_detail.item(j).nodeName);
- }
- else if ( node_detail.item(j).nodeName == "current") {
- current_name[i] = model.getValue(MASTDETAIL_NODE + "/" + node.item(i).nodeName + "/" + node_detail.item(j).nodeName);
- }
- else if ( node_detail.item(j).nodeName == "submit") {
- submit_id[i] = model.getValue(MASTDETAIL_NODE + "/" + node.item(i).nodeName + "/" + node_detail.item(j).nodeName);
- }
-
- }
- }
-
- var send_node = null;
- var send_node_detail = null;
- var grid_nodeset = null;
- var exec_submit = new Array();
- var exec_cnt = 0;
- var exec_yn = "Y";
-
-
- if (obj != null && obj.elementName == "xforms:datagrid") {
- if (obj.row < 0) {
- return;
- }
-
-
-
- var fixed_row = obj.fixedRows - 1;
-
- // alert(fixed_row + "^" + obj.row + "^" + (obj.row - fixed_row) );
- for (var h = 0; h < master_name.length; h++) {
- exec_yn = "Y";
- if (objID == master_name[h] ) {
- send_node = model.children(submit_id[h]).attribute("ref");
-
- send_node_detail = instance1.selectNodes(send_node + "/*");
-
- for (var p = 0; p < send_node_detail.length; p++) {
- model.setValue(send_node + "/" + send_node_detail.item(p).nodeName, model.getValue(obj.nodeset + "[" + (obj.row - obj.fixedRows + 1) + "]/" + send_node_detail.item(p).nodeName));
-
- }
- if (getGridUpdateData(document.controls(current_name[h])) != "") {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
-
- }
- /* 현재 조회 하고 있는 Grid와 연결된 Detail Grid Reset한다 */
- for (z = 0; z < master_name.length; z++) {
- if (current_name[h] == master_name[z]) {
- resetgridID = document.controls(current_name[z]);
- model.removeNodeset(resetgridID.nodeset);
- }
- }
-
- if (submit_id[h] != "" && submit_id[h] != null) {
- //한번실행된 Submit_id는 다시실행하지 않는다.
- for (var q = 0; q < exec_submit.length; q++) {
- if (exec_submit[q] == submit_id[h]) {
- exec_yn = "N";
- break;
- }
- }
-
- if (exec_yn == "Y") {
- exec_submit[exec_cnt] = submit_id[h];
- exec_cnt++;
- submit(submit_id[h]);
- }
- }
- }
- }
-
- }
- else {
- for (var q = 0; q < master_name.length; q++) {
- resetgridID = document.controls(current_name[q]);
- model.removeNodeset(resetgridID.nodeset);
- }
- // model.refresh();
-
- for (var k = 0; k < master_name.length; k++) {
-
- var gridID = document.controls(current_name[k]);
- //model.removeNodeset(gridID.nodeset);
-
- if ((master_name[k] == "" || master_name[k] == null) && submit_id[k] != "" && submit_id[k] != null) {
- //한번실행된 Submit_id는 다시실행하지 않는다.
- for (var q = 0; q < exec_submit.length; q++) {
- if (exec_submit[q] == submit_id[k]) {
- exec_yn = "N";
- break;
- }
- }
-
- if (exec_yn == "Y") {
- exec_submit[exec_cnt] = submit_id[k];
- exec_cnt++;
- submit(submit_id[k]);
-
-
- if (gridID.rows - gridID.fixedRows > 0) {
- gridID.row = gridID.fixedRows;
- gridID.dispatch("onrowchanged");
- }
- }
-
- }
- }
- }
-
- if (obj != null) {
- obj.dispatch("onmouseup");
- }
-
- }
- //코드 Validation Check한다.
- /*
- pvali_kind : Validation 종류(부서코드, 공통코드, 우편번호...)
- "01" - 사번조회
- "02" - 부서코드
- "03" - 공통코드
- "04" - 우편번호
- "05" - 계정코드
- "09" - 근무코드
- precv_list : 자료를 받을 Instance Node(콤마로 분류해서 넘기면됨)
- pPodeNames : 추가로 넘길 노드명
- pValueControl : 넘길 데이터
- */
- function fSmCodeValidationCheck(pvali_kind, pcdgrupid, precv_list, pValueControl, pNodeNames, pRetrKind, pInstcd)
- {
- var objID = event.currentTarget;
- var obj = document.controls(objID);
-
- var arrCtrlNames = null;
- var arrNodeNames = null;
-
- if(obj != null && obj.elementName == "xforms:group")
- {
- objID = event.Target;
- obj = document.controls(objID);
- }
-
- if(pValueControl != null && pValueControl != "")
- {
- arrCtrlNames = pValueControl.split(",");
- }
-
- if(pNodeNames != null && pValueControl != "")
- {
- arrNodeNames = pNodeNames.split(",");
- }
-
- var vali_kind = pvali_kind.substr(0,2);
- // alert(obj.elementName);
-
-
- var validation_node = "/root/send/validation";
- var validation_rsltnode = "/root/init/validation";
-
- var recv_node = precv_list.split(",");
-
- model.removeNodeset(validation_node);
- model.removeNodeset(validation_rsltnode);
- model.makeNode(validation_node);
-
- if (pInstcd != null) {
- model.makeValue(validation_node + "/instcd", pInstcd);
- }
- model.makeValue(validation_node + "/cdgrupid", pcdgrupid);
- model.makeNode(validation_rsltnode);
-
- var result_path = "";
- model.makeValue(validation_node + "/getcond", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/retrkind", pRetrKind);
- model.makeValue(validation_node + "/systemflag", "");
- model.makeValue(validation_node + "/classicyn", "Y");
- if (obj.elementName == "xforms:datagrid") {
- result_path = obj.nodeset;
- model.makeValue(validation_node + "/getcond", model.getValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + obj.colAttribute(obj.col,"ref")));
- }
- else {
- var node_path = obj.attribute("ref").split("/");
- result_path = "/root";
-
- for (var i = 2 ; i < node_path.length - 1; i++) {
- result_path = result_path + "/" + node_path[i];
- }
- /*
- model.makeValue(validation_node + "/getcond", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/retrkind", pRetrKind);
- model.makeValue(validation_node + "/systemflag", "");
- model.makeValue(validation_node + "/classicyn", "Y");
- */
- }
- if (model.getValue(validation_node + "/getcond") == null || model.getValue(validation_node + "/getcond") == "")
- {
- for (var i = 0; i < recv_node.length; i++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], "");
- }
- else
- {
- model.setValue(result_path + "/" + recv_node[i], "");
- }
- }
- return;
- }
- if (pvali_kind == "01-1") { //사원번호
-
- model.setValue(validation_node + "/retrkind", "code");
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00102");
- model.createChild("xforms:submission", "id:TRRPZ00102;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00102");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "01-2") //성명
- {
-
- model.setValue(validation_node + "/retrkind", "name");
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00103");
- model.createChild("xforms:submission", "id:TRRPZ00103;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00103");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "02") //부서코드
- {
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- model.makeValue(validation_node + "/" + arrNodeNames[i], arrCtrlNames[i]);
- }
- }
- model.removeChild("TRRPZ00202");
- model.createChild("xforms:submission", "id:TRRPZ00202;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00202");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/deptcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/deptcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/deptcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "03") { //공통코드
- model.removeChild("TRRPZ00303");
- model.createChild("xforms:submission", "id:TRRPZ00303;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00303");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/comcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/comcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/comcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "04") { //우편번호
- model.removeChild("TRRPZ00402");
- model.createChild("xforms:submission", "id:TRRPZ00402;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00402");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/zipcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/zipcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/zipcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "09") { //근무코드
- model.removeChild("TRRPC90302");
- model.createChild("xforms:submission", "id:TRRPC90302;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPC90302");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/dutcdlist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/dutcdlist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/dutcdlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "05") //계정코드
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90105");
- model.createChild("xforms:submission", "id:TRRAC90105;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90105");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/acntlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "06") //기재사항코드
- {
- model.removeChild("TRRAC90305");
- model.createChild("xforms:submission", "id:TRRAC90305;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90305");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/notelist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/notelist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/notelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "14") // 거래처
- {
- model.removeChild("TRRAC90605");
- model.createChild("xforms:submission", "id:TRRAC90605;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90605");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/custlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/custlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/custlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "15") // 계좌번호
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90405");
- model.createChild("xforms:submission", "id:TRRAC90405;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90405");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/aactlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/aactlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/aactlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "23") // Project ID Validation
- {
- validation_rsltnode = "/root/main/list"
-
- model.removenode(validation_node + "/flag");
- model.removenode(validation_node + "/retrnm");
- model.makeValue(validation_node + "/flag", pRetrKind);
- model.makeValue(validation_node + "/retrnm", model.getValue(validation_node + "/getcond"));
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC00801");
- model.createChild("xforms:submission", "id:TRRAC00801;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC00801");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/projectidlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/projectidlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/projectidlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "31") // 소득자
- {
- model.makeValue(validation_node + "/retrnm", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/refcond", pRetrKind);
-
- validation_rsltnode = "/root/main/list/incmpsn";
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
- model.removeChild("TRRAC90901");
- model.createChild("xforms:submission", "id:TRRAC90901;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90901");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/incmpsnlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/incmpsnlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/incmpsnlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "24") // 이체계좌내역
- {
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- model.makeValue(validation_node + "/" + arrNodeNames[i], arrCtrlNames[i]);
- }
- }
- validation_rsltnode = "/root/list";
- model.removeChild("TRRAD00110");
- model.createChild("xforms:submission", "id:TRRAD00110;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAD00110");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/transacntinfo" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/transacntinfo" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/transacntinfo" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "21-1") { //사원번호
-
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRPIC90401");
- model.createChild("xforms:submission", "id:TRPIC90401;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRPIC90401"); //submit("TRRPZ00102");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "21-2") { //성명
-
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00103");
- model.createChild("xforms:submission", "id:TRRPZ00103;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00103");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "47") //예산관리부서
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90905");
- model.createChild("xforms:submission", "id:TRRAC90905;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90905");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/bugtdeptlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/bugtdeptlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/bugtdeptlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "48") //예산 편성 코드
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
- model.removeChild("TRRAC91005");
- model.createChild("xforms:submission", "id:TRRAC91005;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91005");
-
-
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/acntcodelist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "49") { //사원번호 (근로소득)
-
-
- model.removeChild("TRRPZ00105");
- model.createChild("xforms:submission", "id:TRRPZ00105;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00105");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "50") { //차입금관리
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC91101");
- model.createChild("xforms:submission", "id:TRRAC91101;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91101");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/loanlist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/loanlist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/loanlist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "51") { //유가증권관리
-
-
- model.removeChild("TRRAC91201");
- model.createChild("xforms:submission", "id:TRRAC91201;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91201");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/wtpplist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/wtpplist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/wtpplist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
-
- var node1 = instance1.selectNodes(validation_rsltnode + "/*");
- //alert(node1.length);
- if (node1.length != 1)
- {
- model.removeNodeset("/root/source/validation");
- model.makeNode("/root/source/validation")
- model.copyNode("/root/source/validation", validation_rsltnode);
- misfOpenPopUpList(vali_kind, obj, pcdgrupid, precv_list, pValueControl, pNodeNames)
- }
- else
- {
- for (var i = 0; i < recv_node.length; i++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- //alert(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i] + "*****" + rslt_node[i]);
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- }
- else
- {
- model.makeValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
- }
- }
- function fSmCodeValidationCheck2(pvali_kind, pcdgrupid, precv_list, pValueControl, pNodeNames, pRetrKind, pInstcd)
- {
- var objID = event.currentTarget;
- var obj = document.controls(objID);
-
- var arrCtrlNames = null;
- var arrNodeNames = null;
-
- if(obj != null && obj.elementName == "xforms:group")
- {
- objID = event.Target;
- obj = document.controls(objID);
- }
-
- if(pValueControl != null && pValueControl != "")
- {
- arrCtrlNames = pValueControl.split(",");
- }
-
- if(pNodeNames != null && pValueControl != "")
- {
- arrNodeNames = pNodeNames.split(",");
- }
-
- var vali_kind = pvali_kind.substr(0,2);
- // alert(obj.elementName);
-
-
- var validation_node = "/root/send/validation";
- var validation_rsltnode = "/root/init/validation";
-
- var recv_node = precv_list.split(",");
-
- model.removeNodeset(validation_node);
- model.removeNodeset(validation_rsltnode);
- model.makeNode(validation_node);
-
- if (pInstcd != null) {
- model.makeValue(validation_node + "/instcd", pInstcd);
- }
- model.makeValue(validation_node + "/cdgrupid", pcdgrupid);
- model.makeNode(validation_rsltnode);
-
- var result_path = "";
- model.makeValue(validation_node + "/getcond", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/retrkind", pRetrKind);
- model.makeValue(validation_node + "/systemflag", "");
- model.makeValue(validation_node + "/classicyn", "Y");
- if (obj.elementName == "xforms:datagrid") {
- result_path = obj.nodeset;
- model.makeValue(validation_node + "/getcond", model.getValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + obj.colAttribute(obj.col,"ref")));
- }
- else {
- var node_path = obj.attribute("ref").split("/");
- result_path = "/root";
-
- for (var i = 2 ; i < node_path.length - 1; i++) {
- result_path = result_path + "/" + node_path[i];
- }
- /*
- model.makeValue(validation_node + "/getcond", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/retrkind", pRetrKind);
- model.makeValue(validation_node + "/systemflag", "");
- model.makeValue(validation_node + "/classicyn", "Y");
- */
- }
- if (model.getValue(validation_node + "/getcond") == null || model.getValue(validation_node + "/getcond") == "")
- {
- for (var i = 0; i < recv_node.length; i++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], "");
- }
- else
- {
- model.setValue(result_path + "/" + recv_node[i], "");
- }
- }
- return;
- }
- /* if (pvali_kind == "01-1") { //사원번호
-
- model.setValue(validation_node + "/retrkind", "code");
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00102");
- model.createChild("xforms:submission", "id:TRRPZ00102;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00102");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "01-2") //성명
- {
-
- model.setValue(validation_node + "/retrkind", "name");
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00103");
- model.createChild("xforms:submission", "id:TRRPZ00103;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00103");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }*/
- if (pvali_kind == "02") //부서코드
- {
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- model.makeValue(validation_node + "/" + arrNodeNames[i], arrCtrlNames[i]);
- }
- }
- model.removeChild("TRPIC90401");
- model.createChild("xforms:submission", "id:TRPIC90401;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
-
-
- submit("TRPIC90401");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/deptcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/deptcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/deptcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- /* else if (pvali_kind == "03") { //공통코드
- model.removeChild("TRRPZ00303");
- model.createChild("xforms:submission", "id:TRRPZ00303;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00303");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/comcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/comcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/comcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "04") { //우편번호
- model.removeChild("TRRPZ00402");
- model.createChild("xforms:submission", "id:TRRPZ00402;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00402");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/zipcodelist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/zipcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/zipcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "09") { //근무코드
- model.removeChild("TRRPC90302");
- model.createChild("xforms:submission", "id:TRRPC90302;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPC90302");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/dutcdlist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/dutcdlist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/dutcdlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "05") //계정코드
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90105");
- model.createChild("xforms:submission", "id:TRRAC90105;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90105");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/acntlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "06") //기재사항코드
- {
- model.removeChild("TRRAC90305");
- model.createChild("xforms:submission", "id:TRRAC90305;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90305");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/notelist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/notelist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/notelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "14") // 거래처
- {
- model.removeChild("TRRAC90605");
- model.createChild("xforms:submission", "id:TRRAC90605;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90605");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/custlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/custlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/custlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "15") // 계좌번호
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90405");
- model.createChild("xforms:submission", "id:TRRAC90405;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90405");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/aactlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/aactlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/aactlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "23") // Project ID Validation
- {
- validation_rsltnode = "/root/main/list"
-
- model.removenode(validation_node + "/flag");
- model.removenode(validation_node + "/retrnm");
- model.makeValue(validation_node + "/flag", pRetrKind);
- model.makeValue(validation_node + "/retrnm", model.getValue(validation_node + "/getcond"));
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC00801");
- model.createChild("xforms:submission", "id:TRRAC00801;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC00801");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/projectidlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/projectidlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/projectidlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "31") // 소득자
- {
- model.makeValue(validation_node + "/retrnm", model.getValue(obj.attribute("ref")));
- model.makeValue(validation_node + "/refcond", pRetrKind);
-
- validation_rsltnode = "/root/main/list/incmpsn";
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
- model.removeChild("TRRAC90901");
- model.createChild("xforms:submission", "id:TRRAC90901;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90901");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/incmpsnlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/incmpsnlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/incmpsnlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "24") // 이체계좌내역
- {
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- model.makeValue(validation_node + "/" + arrNodeNames[i], arrCtrlNames[i]);
- }
- }
- validation_rsltnode = "/root/list";
- model.removeChild("TRRAD00110");
- model.createChild("xforms:submission", "id:TRRAD00110;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAD00110");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/transacntinfo" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
-
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/transacntinfo" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/transacntinfo" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "21-1") { //사원번호
-
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00102");
- model.createChild("xforms:submission", "id:TRRPZ00102;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00102");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "21-2") { //성명
-
- model.makeValue(validation_node + "/emplno", "");
- model.makeValue(validation_node + "/emplnm", "");
- model.removeChild("TRRPZ00103");
- model.createChild("xforms:submission", "id:TRRPZ00103;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00103");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
- for (var j = 0; j < node.length; j++) {
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "47") //예산관리부서
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC90905");
- model.createChild("xforms:submission", "id:TRRAC90905;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC90905");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/bugtdeptlist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/bugtdeptlist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/bugtdeptlist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "48") //예산 편성 코드
- {
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
- model.removeChild("TRRAC91005");
- model.createChild("xforms:submission", "id:TRRAC91005;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91005");
-
-
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/acntcodelist" + "/*");
-
- for (var j = 0; j < node.length; j++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntcodelist" + "[1]/" + node.item(j).nodeName);
- }
- else
- {
- rslt_node[j] = model.getValue(validation_rsltnode + "/acntcodelist" + "/" + node.item(j).nodeName);
- }
- }
- }
- else if (pvali_kind == "49") { //사원번호 (근로소득)
-
-
- model.removeChild("TRRPZ00105");
- model.createChild("xforms:submission", "id:TRRPZ00105;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRPZ00105");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/empllist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/empllist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "50") { //차입금관리
-
- var oCtrl
- if(arrCtrlNames != null && arrNodeNames != null)
- {
- for(var i=0; i<arrCtrlNames.length; i++)
- {
- oCtrl = document.controls(arrCtrlNames[i]);
- model.makeValue(validation_node + "/" + arrNodeNames[i], model.getValue(oCtrl.attribute("ref")));
- }
- }
-
- model.removeChild("TRRAC91101");
- model.createChild("xforms:submission", "id:TRRAC91101;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91101");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/loanlist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/loanlist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/loanlist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
- else if (pvali_kind == "51") { //유가증권관리
-
-
- model.removeChild("TRRAC91201");
- model.createChild("xforms:submission", "id:TRRAC91201;mediatype:application/x-www-form-urlencoded; method:post; ref:" + validation_node + "; resultref:" + validation_rsltnode + "; ");
- submit("TRRAC91201");
-
- var rslt_node = new Array();
- var node = instance1.selectNodes(validation_rsltnode + "/wtpplist" + "/*");
-
-
- for (var j = 0; j < node.length; j++) {
-
- if (obj.elementName == "xforms:datagrid") {
- rslt_node[j] = model.getValue(validation_rsltnode + "/wtpplist" + "[1]/" + node.item(j).nodeName);
- }
- else {
- rslt_node[j] = model.getValue(validation_rsltnode + "/wtpplist" + "/" + node.item(j).nodeName);
- }
- }
-
- }
-
- var node1 = instance1.selectNodes(validation_rsltnode + "/*");
- //alert(node1.length);
- if (node1.length != 1)
- {
- model.removeNodeset("/root/source/validation");
- model.makeNode("/root/source/validation")
- model.copyNode("/root/source/validation", validation_rsltnode);
- misfOpenPopUpList(vali_kind, obj, pcdgrupid, precv_list, pValueControl, pNodeNames)
- }
- else
- {
- for (var i = 0; i < recv_node.length; i++)
- {
- if (obj.elementName == "xforms:datagrid")
- {
- //alert(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i] + "*****" + rslt_node[i]);
- model.setValue(result_path + "[" + (obj.row - obj.fixedRows + 1) + "]/" + recv_node[i], rslt_node[i]);
- }
- else
- {
- model.makeValue(result_path + "/" + recv_node[i], rslt_node[i]);
- }
- }
- }*/
- }
|