SPMQI03000.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. function fInitialize() {
  2. copyNodesetType("/root/init/recflaglist", "/root/init/recflaglist", "replace", model, opener.model);
  3. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","D","/root/init/orddeptlist","depthngnm","asc");
  4. addComboItem("cmb_deptcd", "전체", "ALL");
  5. model.setValue("/root/main/cond/searchkind" , opener.model.getValue("/root/main/cond/searchkind"));
  6. model.setValue("/root/main/cond/fromdd" , opener.model.getValue("/root/main/cond/fromdd"));
  7. model.setValue("/root/main/cond/todd" , opener.model.getValue("/root/main/cond/todd"));
  8. model.setValue("/root/main/cond/ddflag" , "D");
  9. model.setValue("/root/main/cond/orddeptcd" , "ALL");
  10. model.refresh();
  11. }
  12. function fCnfmBtn() {
  13. if( getDateInterval(model.getValue("/root/main/cond/fromdd"), model.getValue("/root/main/cond/todd")) >= 31 ){
  14. messageBox("배치 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  15. return;
  16. }else{
  17. if ( 6 != messageBox("날짜 구간이 길면 늦어질 수 있습니다 진행할까요?","Q999")) {
  18. return;
  19. }
  20. }
  21. if (submit("TXMQI00200")) {
  22. var iCnt = model.getValue("/root/create/rslt/cnt");
  23. messageBox("["+iCnt + "]건 생성되었습니다.","I999");
  24. }
  25. }
  26. function fClose(){
  27. window.close();
  28. }