1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 시행부서 ( SPMMB02500_시행부서.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var sEXECDEPTLIST_PATH = "/root/main/orddept/dept";
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize_SPMMB02500(){
- model.removeNodeset(sEXECDEPTLIST_PATH);
- model.refresh();
- }
- /**
- * @desc : 시행부서 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqExecDeptList(){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/stnddd", getCurrentDate());
- if(submit("TRMMB02501")){
- var levelcol = grd_execdeptlist.colRef("depth");
- var targetcol = grd_execdeptlist.colRef("outline");
- setTree(grd_execdeptlist, levelcol , targetcol, true);
- }
- }
- /**
- * @desc : 시행부서 선택
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectExecDeptList(grdobj){
- var currow = grdobj.row;
- if(currow < 1){
- return;
- }
-
- var useyn = model.getValue(sEXECDEPTLIST_PATH + "[" + currow + "]/useyn");
- if(useyn != "Y"){ //depth 1인 값을 선택한 경우
- return;
- }
-
- var deptcd = model.getValue(sEXECDEPTLIST_PATH + "[" + currow + "]/deptcd");
- model.copyNode(opener.root.orddept, root.main.orddept);
- opener.model.setValue("/root/main/prcp/prcplist/prcpexecdeptcd", deptcd);
- opener.model.refresh();
- window.close();
- }
|