SPMRH00100.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * @desc : 초기화
  3. * @
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize(){
  9. var fromdd = getCurrentDate().substr(0,6)+"0101";
  10. var todd = getCurrentDate();
  11. model.setValue("/root/main/cond/fromdd", fromdd);
  12. model.setValue("/root/main/cond/todd", todd);
  13. model.setValue("/root/main/cond/recflag", "F");
  14. model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
  15. model.refresh();
  16. }
  17. /**
  18. * @desc : 미비 확인
  19. * @
  20. * @param :
  21. * @return :
  22. * @---------------------------------------------------
  23. */
  24. function fCnfmBtn(){
  25. var fromdd = model.getValue("/root/main/cond/fromdd");
  26. var todd = model.getValue("/root/main/cond/todd");
  27. if( getDateInterval(fromdd, todd) > 31 ){
  28. messageBox("배치 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  29. return false;
  30. }
  31. if (submit("TXMRH00101") == true){
  32. alert("미비 배치가 성공하였습니다. ");
  33. }
  34. else {
  35. alert("미비 배치가 실패하였습니다. 담당자에게 문의 바랍니다. ");
  36. }
  37. }
  38. /**
  39. * @desc : Close
  40. * @
  41. * @param :
  42. * @return :
  43. * @---------------------------------------------------
  44. */
  45. function fClose(){
  46. model.close();
  47. }