MRF03200.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @desc : 사용자정보
  3. * @
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fSendUserInfo()
  9. {
  10. var rowpos = grd_userlist.row;
  11. var userid = model.getValue("/root/main/indxlist/item" + "[" + rowpos + "]/userid");
  12. var usernm = model.getValue("/root/main/indxlist/item" + "[" + rowpos + "]/usernm");
  13. var deptcd = model.getValue("/root/main/indxlist/item" + "[" + rowpos + "]/deptcd");
  14. var instcd = model.getValue("/root/main/indxlist/item" + "[" + rowpos + "]/instcd");
  15. var depthngnm = model.getValue("/root/main/indxlist/item" + "[" + rowpos + "]/depthngnm");
  16. if (userid != "") {
  17. parent.window.javascript.fGetUserInfo(userid,usernm,deptcd,depthngnm);
  18. window.close();
  19. }
  20. }
  21. function fReqUserInfo()
  22. {
  23. //debugger;
  24. var srchcond = model.getValue("/root/cond/reqflag");
  25. if(srchcond == "usernm")
  26. {
  27. // 한글은 2글자,영어는2글자 이상 조회
  28. var reqdata = model.getValue("/root/cond/reqdata");
  29. if(reqdata.charCodeAt(0) > 255) // 한글
  30. {
  31. if(ipt_srchdata.currentText.length < 2)
  32. {
  33. messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
  34. return;
  35. }
  36. }
  37. else // 영문
  38. {
  39. if(ipt_srchdata.currentText.length < 2)
  40. {
  41. messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
  42. return;
  43. }
  44. }
  45. }
  46. submit("TRMRF03201");
  47. }