123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /* ---------------------------------------------------------------------
-
- SMRSC05304_통합물품기관적용내역조회.xrw (SMRSC05304.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By HR Choi
- : 2015.05.02
- ---------------------------------------------------------------------- */
-
- var xAuth = !(checkAuth("X"));
- var rAuth = !(checkAuth("R"));
-
- // --------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- // --------------------------------------------------
- function fInstInitForm() {
-
- misfGridInit(grd_allsize);
- misfGridInit(grd_applist);
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/goodlist/filecls", "S");
-
- rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"1","N");
- misfMsterDetailSet(grd_applist,null, "TRRPZ00302" ,"N");
- misfGridComboComCdList("R0032",grd_allsize , "goodunit");
-
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_goodflag_search.length> 0) cmb_goodflag_search.selectedindex= 0;
-
- model.removeNodeset(grd_goodlist.nodeset);
- model.removeNodeset(grd_instinfo.nodeset);
-
- // 대분류 코드 콤보 설정.
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
-
- misfMsterDetailSet(grd_goodlist,null , "TRRSC05309" ,"Y", "byrow");
- misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05308" ,"N", "byrow");
-
- // 물품구분별 권한
- //fSetGoodFlagAuth();
-
- grd_goodlist.explorerbar = "sortshow";
- model.setFocus("ipt_goodcd");
- var curdate = getCurrentDate();
-
- model.setValue("/root/send/goodlist/fr_fromdd", curdate.substr(0,8));
- model.setValue("/root/send/goodlist/to_fromdd", curdate.substr(0,8));
-
- misfComboComCdListMulti("Z0007", "cmb_instcd_search");
- model.setValue("/root/send/goodlist/instcd", getUserInfo("dutplceinstcd"));
- model.refresh();
- }
-
- // --------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- // 화면 전체 조회
- // --------------------------------------------------
- function fInstRetrGoodList(nodecopy) {
- model.setValue("/root/send/goodlist/filecls" ,"S");
- misfMsterDetailRetrieve();
-
- fAppInstcdGridSet(model.getValue(ipt_appinstdata.attribute("ref")));
- fInstAllSizeRead();
- }
-
- //----------------------------
- // Check All Size Data
- //----------------------------
- function fInstAllSizeRead()
- {
- model.setValue("/root/send/allsizelist/goodcd" ,grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")));
- model.setValue("/root/send/allsizelist/instflag","1");
- submit("TRRSC00211");
- grd_allsize.refresh();
- }
- function fAppInstcdClear() {
- for (var i = 1 ; i < grd_applist.rows ; i++) {
- model.setValue(grd_applist.nodeset+"["+ i +"]/minval", "N");
- }
-
- // grd_applist.refresh();
- }
-
- function fAppInstcdSet() {
- var vAppinstdata = "";
-
- for (var i = 1 ; i < grd_applist.rows ; i++) {
- if (model.getValue(grd_applist.nodeset+"["+ i +"]/minval") == "Y") {
- vAppinstdata += model.getValue(grd_applist.nodeset+"["+ i +"]/cdid") + " ";
- }
- }
-
- return vAppinstdata;
- }
-
- //
- function fAppInstcdGridSet(pAppinstdata) {
- var vAppinstdata = pAppinstdata.split(" ");
-
- fAppInstcdClear();
-
- for (var j=0; j < vAppinstdata.length; j++){
- if (vAppinstdata[j] != "") {
- model.setValue(grd_applist.nodeset+"[cdid ='"+ vAppinstdata[j] + "']/minval", "Y");
- }
- }
-
- grd_applist.refresh();
- }
-
- /* ------------------------------------------------- */
- /* ------End Of List ------------------------------- */
- /* -------------------------------------------------- */
|