1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /**
- * @desc : 초기화
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/main/cond/userid", getUserInfo("userid"));
- model.setValue("/root/main/cond/fromdd", getCurrentDate());
- model.setValue("/root/main/cond/todd", getCurrentDate());
-
- fGetHardCDList("N", 5666, 0 , "/root/init/bathexec");
- model.refresh();
- }
- /**
- * @desc : 미비 확인
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCnfmBtn(){
-
- if(isNull(model.getValue("/root/main/cond/pid").getTrim())){
-
- if(isNull(model.getValue("/root/init/bathexec/hardcd[ hardcd = '"+getUserId()+"' ]/hardcd"))){
- if( getDateInterval(model.getValue("/root/main/cond/fromdd"), model.getValue("/root/main/cond/todd")) > 31 ){
- messageBox("배치 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
- }
- }
-
- model.resetInstanceNode("/root/temp/countinfo/count");
- submit("TRMQI04100");
-
- var count = model.getValue("/root/temp/countinfo/count");
-
- if(count > 0){
- var flag = messageBox(model.getValue("/root/main/cond/fromdd")+" ~ "+ model.getValue("/root/main/cond/todd")+" 사이에 "+ count + "건의 배치정보가 존재 합니다. \n" , "Q003");
- if(flag == "6"){
- fExecute();
- }
- }else{
- fExecute();
- }
-
-
- }
- function fExecute(){
- if (submit("TXMQI04100") == true){
- alert("미비 배치가 성공하였습니다. ");
- }else {
- alert("미비 배치가 실패하였습니다. 담당자에게 문의 바랍니다. ");
- }
- }
- /**
- * @desc : Close
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClose(){
-
- model.close();
- }
|