MRF00400.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. /**
  2. * @group :
  3. * @ver : 2007.02.27
  4. * @by : ??????
  5. * @---------------------------------------------------
  6. * @desc : ???? ??????
  7. * @
  8. * @param :
  9. * @return :
  10. * @---------------------------------------------------
  11. */
  12. function fInitialize(){
  13. model.setValue("/root/main/imginfo/imgefromdt", getCurrentDate());
  14. model.setValue("/root/main/imginfo/imgetodt","99991231");
  15. model.refresh();
  16. }
  17. function fremoveBlank(str){
  18. str = str.replace(/\s/g,'');
  19. return str;
  20. }
  21. /**
  22. * @group :
  23. * @ver : 2007.02.27
  24. * @by : ??????
  25. * @---------------------------------------------------
  26. * @type : function
  27. * @access : public
  28. * @desc : ?????? ???? ????
  29. * @param :
  30. * @return :
  31. * @---------------------------------------------------
  32. */
  33. function fSearch(){
  34. // 온전한단어 검색
  35. var cond = model.getValue("/root/main/cond");
  36. // 한글은 1글자,영어는2글자 이상 조회
  37. var reqdata = model.getValue("/root/main/cond/reqdata");
  38. if(cond !="word")
  39. {
  40. if(ipt_srchnm.currentText.length < 2)
  41. {
  42. if(reqdata.charCodeAt(0) > 255)
  43. {
  44. }
  45. else
  46. {
  47. messageBox(radio1.label +" 2자리 이상", "C001");
  48. return;
  49. }
  50. }
  51. }
  52. /*
  53. var tmpStr = model.getValue("/root/main/cond/reqdata");
  54. var tmpStr2 = model.getValue("/root/main/cond/reqdata");
  55. tmpStr = fremoveBlank(tmpStr);
  56. model.makeValue("/root/main/cond/reqdata", tmpStr);
  57. model.copyNode("/root/send/reqdata", "/root/main/cond");
  58. */
  59. model.removenodeset("/root/main/list");
  60. //if(model.getValue("/root/main/cond/imgenm") != ""){
  61. var reqflag = model.getValue("/root/main/cond/reqflag")
  62. if(reqflag == "imgcd")
  63. {
  64. var sCode = model.getValue("/root/main/cond/reqdata");
  65. var sTmp = "";
  66. var iTmp = 0;
  67. // 이미지코드 입력시 자릿수 채워준다
  68. var iCodeLength = sCode.length;
  69. if(iCodeLength ==0){
  70. return;
  71. }else if(iCodeLength > 10){
  72. return;
  73. }
  74. //var temp = 10 - iCodeLength
  75. // 2009-08-10 이경희
  76. // 뒷자리 3자리(이력코드)를 빼고 검색함.
  77. var temp = 7 - iCodeLength;
  78. for(var i = 1; i <= temp; i++){
  79. sTmp += "0";
  80. }
  81. sTmp = sTmp + sCode;
  82. model.setValue("/root/main/cond/reqdata",sTmp);
  83. }
  84. else
  85. {
  86. if(model.getValue("/root/main/cond/reqdata") == "")
  87. {
  88. model.makeValue("/root/main/cond/reqdata", "%");
  89. }
  90. }
  91. /*
  92. if(model.getValue("/root/main/cond/reqflag/imgenm") != ""){
  93. model.makeValue("/root/send/imgenm", model.getValue("/root/main/cond/imgenm"));
  94. }else{
  95. model.makeValue("/root/send/imgenm", "%");
  96. }
  97. model.makeValue("/root/send/reqstatus",model.getValue("/root/main/cond/reqstatus"));
  98. submit("TRMRF00401");
  99. model.removenodeset("/root/send/imgenm");
  100. */
  101. /////////////////////////////
  102. //debugger;
  103. var imgnm = model.getValue("/root/main/cond/reqdata");
  104. model.setValue("/root/main/cond/reqdata", imgnm);
  105. //model.setValue("/root/main/cond/reqdata", imgnm.toUpperCase());
  106. copyNode(model, model, "/root/send", "/root/main/cond");
  107. submit("TRMRF00401");
  108. model.removenodeset("/root/send");
  109. if(reqflag == "imgnm")
  110. {
  111. //model.setValue("/root/main/cond/reqdata", "");
  112. model.refresh();
  113. }
  114. }
  115. /**
  116. * @group :
  117. * @ver : 2007.02.27
  118. * @by : ??????
  119. * @---------------------------------------------------
  120. * @type : function
  121. * @access : public
  122. * @desc : ?????? ???? ??????
  123. * @param :
  124. * @return :
  125. * @---------------------------------------------------
  126. */
  127. function fClearImgInfo(){
  128. var xPath ="/root/main/imginfo";
  129. model.setValue(xPath+"/imgecd","");
  130. model.setValue(xPath+"/imgenm","");
  131. model.setValue(xPath+"/anatclsseq","");
  132. model.setValue(xPath+"/imgefromdt",getCurrentDate());
  133. model.setValue(xPath+"/imgetodt","99991231");
  134. model.setValue(xPath+"/fstrgstrnm","");
  135. model.setValue(xPath+"/fstrgstdt","");
  136. model.setValue(xPath+"/updtresncnts","");
  137. model.setValue(xPath+"/rem","");
  138. model.setValue(xPath+"/imgedata","");
  139. model.setValue(xPath+"/deptcd","");
  140. model.refresh();
  141. }
  142. function fClearInfo()
  143. {
  144. var xPath ="/root/main/imginfo";
  145. model.setValue(xPath+"/status","i");
  146. model.setValue(xPath+"/imgecd","");
  147. model.setValue(xPath+"/deptcd","");
  148. model.setValue(xPath+"/imgecnts","");
  149. model.setValue(xPath+"/imgenm","");
  150. model.setValue(xPath+"/updtresncnts","");
  151. model.setValue(xPath+"/anatclsseq","");
  152. model.setValue(xPath+"/imgefromdt", "");
  153. model.setValue(xPath+"/imgetodt","");
  154. //model.setValue(xPath+"/fstrgstrnm",getUserName());
  155. model.setValue(xPath+"/rem","");
  156. model.setValue(xPath+"/imgedata","");
  157. model.setValue(xPath+"/fstrgstdt","");
  158. model.setValue(xPath+"/fstrgstrid", "");
  159. model.setValue(xPath+"/fstrgstrnm", "");
  160. //model.setValue(xPath+"/instcd", model.getValue("/root/main/userinfo/dutplcd"));
  161. model.setValue(xPath+"/lastupdtrid", "");
  162. model.setValue(xPath+"/lastupdtrnm", "");
  163. model.setValue(xPath+"/lastupdtdt", "");
  164. model.setValue(xPath+"/idximgenm","");
  165. model.setValue(xPath+"/imgeclscd", "");
  166. model.setValue(xPath+"/depthnm1", "");
  167. model.setValue(xPath+"/depthnm2", "");
  168. model.setValue(xPath+"/depthnm3", "");
  169. model.setValue(xPath+"/deptnm", "");
  170. model.setValue(xPath+"/anatclsseq", "");
  171. model.setValue(xPath+"/imgeclscd", "");
  172. model.refresh();
  173. }
  174. /**
  175. * @group :
  176. * @ver : 2007.02.27
  177. * @by :
  178. * @---------------------------------------------------
  179. * @type : function
  180. * @access : public
  181. * @desc : ?????? ???? ????
  182. * @param :
  183. * @return :
  184. * @---------------------------------------------------
  185. */
  186. function fSetImgelist(){
  187. fSetCtrlDisabled(false);
  188. model.makeValue("/root/main/imginfo/status" , "u");
  189. model.setValue("/root/main/imginfo/lastupdtrid", model.getValue("/root/main/userinfo/userid"));
  190. model.setValue("/root/main/imginfo/lastupdtrnm", model.getValue("/root/main/userinfo/usernm"));
  191. model.setValue("/root/main/imginfo/lastupdtdt",getCurrentDate());
  192. iRow = grd_imglist.row;
  193. if(iRow < 1){
  194. return;
  195. }
  196. grd_imglist.rowStatus(iRow) = 2;
  197. fSetCtrlDisabled(false);
  198. model.setFocus("ipt_unitnm");
  199. model.refresh();
  200. }
  201. /**
  202. * @group :
  203. * @ver : 2007.02.27
  204. * @by : ??????
  205. * @---------------------------------------------------
  206. * @type : function
  207. * @access : public
  208. * @desc : ?????? ???? ????
  209. * @param :
  210. * @return :
  211. * @---------------------------------------------------
  212. */
  213. function fSave(){
  214. var imgenm = model.getValue("/root/main/imginfo/imgenm");
  215. if(imgenm == "" || imgenm== null){
  216. return;
  217. }
  218. var status = model.getValue("/root/main/imginfo/status");
  219. if(status == "u"){
  220. //2009.01.22 강지훈 수정
  221. //변경이력을 남기지 않고 Update.
  222. var ret = messageBox("변경 이력을 저장", "S001");
  223. if(ret == "6"){
  224. model.makeValue("/root/main/imginfo/histsaveyn", "Y");
  225. }
  226. else if(ret == "7"){
  227. model.makeValue("/root/main/imginfo/histsaveyn", "N");
  228. }
  229. else{
  230. return;
  231. }
  232. }
  233. // 대문자 변경
  234. var tmpStr = fremoveBlank(imgenm);
  235. var idximgenm = tmpStr.toUpperCase();
  236. model.setValue("/root/main/imginfo/idximgenm", idximgenm);
  237. var xPath = "/root/main/imginfo";
  238. model.setValue("/root/main/cond/reqdata","");
  239. model.makeValue("/root/send/imginfo","");
  240. // Int?? data?? Null?? ???? ???? 0???? ????
  241. if(model.getValue("/root/main/imginfo/imgeclscd") == ""){
  242. model.setValue("/root/main/imginfo/imgeclscd", 0);
  243. }
  244. if(model.getValue("/root/main/imginfo/partlrgclscd") == ""){
  245. model.setValue("/root/main/imginfo/partlrgclscd", 0);
  246. }
  247. if(model.getValue("/root/main/imginfo/partmdlclscd") == ""){
  248. model.setValue("/root/main/imginfo/partmdlclscd", 0);
  249. }
  250. if(model.getValue("/root/main/imginfo/partsmlclscd") == ""){
  251. model.setValue("/root/main/imginfo/partsmlclscd", 0);
  252. }
  253. model.copyNode("/root/send/imginfo","/root/main/imginfo");
  254. submit("TXMRF00401");
  255. /*
  256. model.removenodeset("/root/main/list");
  257. */
  258. messageBox("저장이", "I002");
  259. fClearInfo();
  260. model.removenodeset("/root/send/imginfo");
  261. model.refresh();
  262. }
  263. /**
  264. * @group :
  265. * @ver : 2007.02.27
  266. * @by : ??????
  267. * @---------------------------------------------------
  268. * @type : function
  269. * @access : public
  270. * @desc : ?????? ???? ????
  271. * @param :
  272. * @return :
  273. * @---------------------------------------------------
  274. */
  275. function fSave_Old(){
  276. var imgenm = model.getValue("/root/main/imginfo/imgenm");
  277. if(imgenm == "" || imgenm== null){
  278. return;
  279. }
  280. // 대문자 변경
  281. var idximgenm = imgenm.toUpperCase();
  282. model.setValue("/root/main/imginfo/idximgenm", idximgenm);
  283. var xPath = "/root/main/imginfo";
  284. model.setValue("/root/main/cond/reqdata","");
  285. model.makeValue("/root/send/imginfo","");
  286. // Int?? data?? Null?? ???? ???? 0???? ????
  287. if(model.getValue("/root/main/imginfo/imgeclscd") == ""){
  288. model.setValue("/root/main/imginfo/imgeclscd", 0);
  289. }
  290. if(model.getValue("/root/main/imginfo/partlrgclscd") == ""){
  291. model.setValue("/root/main/imginfo/partlrgclscd", 0);
  292. }
  293. if(model.getValue("/root/main/imginfo/partmdlclscd") == ""){
  294. model.setValue("/root/main/imginfo/partmdlclscd", 0);
  295. }
  296. if(model.getValue("/root/main/imginfo/partsmlclscd") == ""){
  297. model.setValue("/root/main/imginfo/partsmlclscd", 0);
  298. }
  299. model.copyNode("/root/send/imginfo","/root/main/imginfo");
  300. submit("TXMRF00401");
  301. model.removenodeset("/root/main/list");
  302. fClearImgInfo();
  303. model.removenodeset("/root/send/imginfo");
  304. model.refresh();
  305. }
  306. /**
  307. * @group :
  308. * @ver : 2007.02.27
  309. * @by : ??????
  310. * @---------------------------------------------------
  311. * @type : function
  312. * @access : public
  313. * @desc : ???? ????
  314. * @param :
  315. * @return :
  316. * @---------------------------------------------------
  317. */
  318. function fOpenFile(){
  319. var file =openImageFileDialog(1048576); // image ?????? ???? ???? submit ?????? ???? ????(5??????) ???????? ?????? ???????? ???? ????????.
  320. if (file == "") {
  321. return;
  322. }
  323. img_hidden.src=file; // ???????? ???? ???????? base64 encoding ???? ???????? ???? ?????? ??????
  324. var data = img_hidden.getbase64data(); // base64 encoding ???????? ????????.
  325. model.setValue("/root/main/imginfo/imgedata",data,true); // ???????? ???????? ?????? view?? ?????????????? ref instance?? ???? ????
  326. setImageRefInstance("/root/main/imginfo/imgedata");
  327. model.refresh();
  328. }
  329. function fAppImgToPltte(destGrdID, srcGrdID, curRow)
  330. {
  331. var destModel = null;
  332. var destGrd = null;
  333. var srcGrd = null;
  334. if(isPopup())
  335. {
  336. destModel = opener.model;
  337. destGrd = opener.document.controls(destGrdID);
  338. }
  339. else
  340. {
  341. destModel = model;
  342. destGrd = document.controls(destGrdID);
  343. }
  344. srcGrd = document.controls(srcGrdID);
  345. if(destGrd == null || srcGrd == null)
  346. return;
  347. if(curRow == null)
  348. {
  349. curRow = srcGrd.row - srcGrd.fixedRows + 1;
  350. }
  351. if(curRow < 1){
  352. return;
  353. }
  354. var cnt = destModel.instances(0).selectNodes(destGrd.attribute("nodeset")).length + 1;
  355. var destPath = destGrd.attribute("nodeset") + "[" + cnt + "]";
  356. var srcPath = srcGrd.attribute("nodeset") + "[" + curRow + "]";
  357. //var degnitemseqno = destModel.getXPathValue("max(" + destPath + "/degnitemseqno)");
  358. var formdegnseqno = destModel.getValue("/root/main/FormDegnInfo/FormDegn/formdegnseqno");
  359. var degnitemseqno = destModel.getXPathValue("max(" + destGrd.attribute("nodeset") + "/degnitemseqno)");
  360. if(degnitemseqno == "NaN")
  361. degnitemseqno = 1;
  362. else
  363. degnitemseqno = parseInt(degnitemseqno) + 1;
  364. var degnitemrowno = destModel.getXPathValue("max(" + destGrd.attribute("nodeset") + "/degnitemrowno)");
  365. if(degnitemrowno == "NaN")
  366. degnitemrowno = 1;
  367. else
  368. degnitemrowno = parseInt(degnitemrowno) + 1;
  369. destModel.makeValue(destPath + "/degnitemcd", model.getValue(srcPath + "/imgcd"));
  370. destModel.makeValue(destPath + "/termcd", "");
  371. destModel.makeValue(destPath + "/degnitemtype", "IMG");
  372. destModel.makeValue(destPath + "/degntermnm", model.getValue(srcPath + "/imgenm"));
  373. destModel.makeValue(destPath + "/degnvallistno", "");
  374. destModel.makeValue(destPath + "/formdegnseqno", formdegnseqno);
  375. destModel.makeValue(destPath + "/chk", "");
  376. destModel.makeValue(destPath + "/degnitemseqno", degnitemseqno);
  377. destModel.makeValue(destPath + "/supdegnitemcd", "");
  378. destModel.makeValue(destPath + "/degnitemlevlcd", model.getValue(srcPath + "/imgcd"));
  379. destModel.makeValue(destPath + "/xpos", "0");
  380. destModel.makeValue(destPath + "/ypos", "0");
  381. destModel.makeValue(destPath + "/degnviewyn", "Y");
  382. destModel.makeValue(destPath + "/degnlblviewyn", "Y");
  383. destModel.makeValue(destPath + "/degnessnyn", "");
  384. destModel.makeValue(destPath + "/essnrecyn", "");
  385. destModel.makeValue(destPath + "/userdegnyn", "");
  386. destModel.makeValue(destPath + "/degnunitcd", "");
  387. destModel.makeValue(destPath + "/seq", destGrd.rows);
  388. destModel.makeValue(destPath + "/fstrgstdt", "");
  389. destModel.makeValue(destPath + "/fstrgstrid", "");
  390. destModel.makeValue(destPath + "/lastupdtdt", "");
  391. destModel.makeValue(destPath + "/lastupdtid", "");
  392. destModel.makeValue(destPath + "/rowstatus", "");
  393. destModel.makeValue(destPath + "/cntrtype", "IMG");
  394. destModel.makeValue(destPath + "/degnitemlevlno", "1");
  395. destModel.makeValue(destPath + "/degnitemrowno", degnitemrowno);
  396. destGrd.rebuild();
  397. setTree(destGrd, destGrd.colref("degnitemlevlno"), 1, true);
  398. }
  399. /**
  400. * @desc : ???????????? ????????
  401. * @
  402. * @param :
  403. * @return :
  404. * @---------------------------------------------------
  405. */
  406. function fShowImgInfo(){
  407. if(grd_imglist.isCell(event.target) && grd_imglist.row >= grd_imglist.fixedRows ){
  408. fSetCtrlDisabled(true);
  409. var sRow = grd_imglist.row;
  410. var xImglistPath = "/root/main/list/imglist";
  411. var xImgInfoPath = "/root/main/imginfo";
  412. var currDT = getCurrentDate() + getCurrentTime();
  413. model.setValue(xImgInfoPath+"/imgecd",model.getValue(xImglistPath+"["+sRow+"]/imgecd"));
  414. model.setValue(xImgInfoPath+"/imgebasecd",model.getValue(xImglistPath+"["+sRow+"]/imgebasecd"));
  415. model.setValue(xImgInfoPath+"/imgefromdt",model.getValue(xImglistPath+"["+sRow+"]/imgefromdt"));
  416. model.setValue(xImgInfoPath+"/imgetodt",model.getValue(xImglistPath+"["+sRow+"]/imgetodt"));
  417. model.setValue(xImgInfoPath+"/deptcd",model.getValue(xImglistPath+"["+sRow+"]/deptcd"));
  418. model.setValue(xImgInfoPath+"/deptnm",model.getValue(xImglistPath+"["+sRow+"]/deptnm"));
  419. model.setValue(xImgInfoPath+"/partlrgclscd", model.getValue(xImglistPath+"["+sRow+"]/partlrgclscd"));
  420. model.setValue(xImgInfoPath+"/partmdlclscd", model.getValue(xImglistPath+"["+sRow+"]/partmdlclscd"));
  421. model.setValue(xImgInfoPath+"/partsmlclscd", model.getValue(xImglistPath+"["+sRow+"]/partsmlclscd"));
  422. model.setValue(xImgInfoPath+"/depthnm1", model.getValue(xImglistPath+"["+sRow+"]/partlrgclsnm"));
  423. model.setValue(xImgInfoPath+"/depthnm2", model.getValue(xImglistPath+"["+sRow+"]/partmdlclsnm"));
  424. model.setValue(xImgInfoPath+"/depthnm3", model.getValue(xImglistPath+"["+sRow+"]/partsmlclsnm"));
  425. model.setValue(xImgInfoPath+"/imgenm",model.getValue(xImglistPath+"["+sRow+"]/imgenm"));
  426. model.setValue(xImgInfoPath+"/imgecnts",model.getValue(xImglistPath+"["+sRow+"]/imgecnts"));
  427. model.setValue(xImgInfoPath+"/imgeclscd",model.getValue(xImglistPath+"["+sRow+"]/imgeclscd"));
  428. model.setValue(xImgInfoPath+"/anatclsseq",model.getValue(xImglistPath+"["+sRow+"]/anatclsseq"));
  429. model.setValue(xImgInfoPath+"/updtresncnts",model.getValue(xImglistPath+"["+sRow+"]/updtresncnts"));
  430. model.setValue(xImgInfoPath+"/rem",model.getValue(xImglistPath+"["+sRow+"]/rem"));
  431. //model.setValue(xImgInfoPath+"/imgedata",model.getValue(xImglistPath+"["+sRow+"]/imgedata"));
  432. model.setValue(xImgInfoPath+"/instcd",model.getValue(xImglistPath+"["+sRow+"]/instcd"));
  433. model.setValue(xImgInfoPath+"/instnm",model.getValue(xImglistPath+"["+sRow+"]/instnm"));
  434. model.setValue(xImgInfoPath+"/fstrgstrid",model.getValue(xImglistPath+"["+sRow+"]/fstrgstrid"));
  435. model.setValue(xImgInfoPath+"/fstrgstrnm",model.getValue(xImglistPath+"["+sRow+"]/fstrgstrnm"));
  436. model.setValue(xImgInfoPath+"/fstrgstdt",model.getValue(xImglistPath+"["+sRow+"]/fstrgstdt"));
  437. model.setValue(xImgInfoPath+"/lastupdtrid",model.getValue(xImglistPath+"["+sRow+"]/lastupdtrid"));
  438. model.setValue(xImgInfoPath+"/lastupdtrnm",model.getValue(xImglistPath+"["+sRow+"]/lastupdtrnm"));
  439. model.setValue(xImgInfoPath+"/lastupdtdt",model.getValue(xImglistPath+"["+sRow+"]/lastupdtdt"));
  440. if((model.getValue(xImgInfoPath+"/imgefromdt") <= (getCurrentDate()+getCurrentTime())) &&
  441. (model.getValue(xImgInfoPath+"/imgetodt") > (getCurrentDate()+getCurrentTime()))){
  442. model.setValue("/root/temp/valiyn", "Y");
  443. } else {
  444. model.setValue("/root/temp/valiyn", "N");
  445. }
  446. //alert(xImgInfoPath+"/imgdata");
  447. //var src = "http://160.1.102.140/Img/0000" + model.getValue(xImglistPath+"["+sRow+"]/imgecd").substr(1, 6) + ".jpg";
  448. //img_imgView.attribute("src") = src;
  449. model.makeNode("/root/send/imgecd");
  450. model.setValue("/root/send/imgecd", model.getValue(xImgInfoPath + "/imgecd"));
  451. submit("TRMRF00402");
  452. setImageRefInstance(xImgInfoPath + "/imgedata");
  453. model.refresh();
  454. //alert("3 : " + model.getValue(xImgInfoPath+"/imgecd"));
  455. }
  456. }
  457. /**
  458. * @desc : ???????????? ????
  459. * @
  460. * @param :
  461. * @return :
  462. * @---------------------------------------------------
  463. */
  464. function fAddImgelist(){
  465. fSetCtrlDisabled(false);
  466. var xPath ="/root/main/imginfo";
  467. model.setValue(xPath+"/status","i");
  468. model.setValue(xPath+"/imgecd","");
  469. model.setValue(xPath+"/deptcd","");
  470. model.setValue(xPath+"/imgecnts","");
  471. model.setValue(xPath+"/imgenm","");
  472. model.setValue(xPath+"/updtresncnts","");
  473. model.setValue(xPath+"/anatclsseq","");
  474. model.setValue(xPath+"/imgefromdt",getCurrentDate());
  475. model.setValue(xPath+"/imgetodt","99991231");
  476. //model.setValue(xPath+"/fstrgstrnm",getUserName());
  477. model.setValue(xPath+"/rem","");
  478. model.setValue(xPath+"/imgedata","");
  479. model.setValue(xPath+"/fstrgstdt",getCurrentDate());
  480. model.setValue(xPath+"/fstrgstrid", model.getValue("/root/main/userinfo/userid"));
  481. model.setValue(xPath+"/fstrgstrnm", model.getValue("/root/main/userinfo/usernm"));
  482. //model.setValue(xPath+"/instcd", model.getValue("/root/main/userinfo/dutplcd"));
  483. model.setValue(xPath+"/lastupdtrid", model.getValue("/root/main/userinfo/userid"));
  484. model.setValue(xPath+"/lastupdtrnm", model.getValue("/root/main/userinfo/usernm"));
  485. model.setValue(xPath+"/lastupdtdt",getCurrentDate());
  486. model.setValue(xPath+"/idximgenm","");
  487. model.refresh();
  488. }
  489. /**
  490. * @desc : ???????????? ???? disabled
  491. * @
  492. * @param :
  493. * @return :
  494. * @---------------------------------------------------
  495. */
  496. function fSetCtrlDisabled(bool){
  497. btn_searchdept.disabled = bool;
  498. btn_searchcls.disabled = bool;
  499. ipt_imgenm.disabled = bool;
  500. ipt_imgecnts.disabled = bool;
  501. ipt_updtresncnts.disabled = bool;
  502. ipt_imgefromdt.disabled = bool;
  503. ipt_imgetodt.disabled = bool;
  504. cmb_anatclss.disabled = bool;
  505. ipt_rem.disabled = bool;
  506. ipt_updtresncnts.disabled = bool;
  507. cmb_imgeclscd.disabled = bool;
  508. btn_save.disabled = bool;
  509. cmb_valiyn.disabled = bool;
  510. }
  511. function fCallDeptInfo(){
  512. var search_condition = "deptcd";
  513. var search_term = "";
  514. var receive_deptcd_path = "/root/main/imginfo/deptcd";
  515. var receive_deptnm_path = "/root/main/imginfo/deptnm";
  516. var standard_yn = "";
  517. var ord_deptflag = "";
  518. // Edited by nj 2007-06-25
  519. // Standard ??? ?? ??? ??
  520. //zbcfOpenInstDeptCodeList(search_condition, search_term, receive_deptcd_path, receive_deptnm_path, standard_yn, ord_deptflag, new Array("deptcd", "depthngnm"));
  521. zbcfOpenInstDeptCodeList(search_condition, search_term, receive_deptcd_path, receive_deptnm_path, 'orduseyn', ord_deptflag, new Array("deptcd", "depthngnm"));
  522. }