SMRAC00600_거래처관리.xrw 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>거래처 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <custlist>
  11. </custlist>
  12. <racmcust>
  13. <custcode/>
  14. <entrregno/>
  15. <custnm/>
  16. <cmpynm/>
  17. <fromdd/>
  18. <todd/>
  19. <prsdnm/>
  20. <rrgstno/>
  21. <custstat/>
  22. <bizcont/>
  23. <item/>
  24. <mainbizitem/>
  25. <oldentrregno/>
  26. <custflag/>
  27. <instflag/>
  28. <zipcd/>
  29. <zipcd1/>
  30. <zipcd2/>
  31. <zipcdseqno/>
  32. <supaddr/>
  33. <infaddr/>
  34. <cntctel/>
  35. <faxno/>
  36. <emailaddr/>
  37. <homepgaddr/>
  38. <bankcd/>
  39. <banknm/>
  40. <depor/>
  41. <paycond/>
  42. <aactno/>
  43. <cmt/>
  44. <acntchrgnm/>
  45. <acntchrgtelno/>
  46. <acntchrgmpphonno/>
  47. <acntchrgemailaddr/>
  48. <statflag/>
  49. <modifytodd/>
  50. <fstrgstrid/>
  51. <fstrgstrnm/>
  52. <fstrgstdt/>
  53. <lastupdtrid/>
  54. <lastupdtrnm/>
  55. <lastupdtdt/>
  56. <prntseqno/>
  57. <seizureyn/>
  58. <purcuseyn/>
  59. <nutruseyn/>
  60. <pharmuseyn/>
  61. <ctmsuseyn/>
  62. <seizurecmt/>
  63. <seizurepaydd/>
  64. </racmcust>
  65. <racdcustlist>
  66. </racdcustlist>
  67. </main>
  68. <send>
  69. <custlist>
  70. <entrregno/>
  71. <todd/>
  72. <custcode/>
  73. </custlist>
  74. <save>
  75. <racmcust/>
  76. <racdcustlist/>
  77. </save>
  78. <retrlist>
  79. <entrregno/>
  80. <custnm/>
  81. <custflag/>
  82. <custstat/>
  83. <todd/>
  84. <insertfromdd>20080301</insertfromdd>
  85. <inserttodd/>
  86. <purcuseyn/>
  87. <nutruseyn/>
  88. <pharmuseyn/>
  89. </retrlist>
  90. <data3>
  91. <instcd/>
  92. <mngtcd/>
  93. </data3>
  94. <custcodelist>
  95. <custcode/>
  96. <instcd/>
  97. <custcode/>
  98. </custcodelist>
  99. </send>
  100. <init>
  101. <init_R0015list>
  102. <item>
  103. <label>법인사업자</label>
  104. <value>1</value>
  105. </item>
  106. <item>
  107. <label>일반과세자</label>
  108. <value>2</value>
  109. </item>
  110. <item>
  111. <label>간이과세자</label>
  112. <value>3</value>
  113. </item>
  114. <item>
  115. <label>과세특례자</label>
  116. <value>4</value>
  117. </item>
  118. </init_R0015list>
  119. <R0015list>
  120. <R0015>
  121. <cdnm/>
  122. <cdid/>
  123. </R0015>
  124. </R0015list>
  125. <R0025list>
  126. <R0025>
  127. <cdnm/>
  128. <cdid/>
  129. </R0025>
  130. </R0025list>
  131. <custflaglist>
  132. <custflag>
  133. <cdid/>
  134. <cdnm/>
  135. </custflag>
  136. <custflag>
  137. <cdid>1</cdid>
  138. <cdnm>매입처</cdnm>
  139. </custflag>
  140. <custflag>
  141. <cdid>2</cdid>
  142. <cdnm>매출처</cdnm>
  143. </custflag>
  144. <custflag>
  145. <cdid>3</cdid>
  146. <cdnm>매입/매출처</cdnm>
  147. </custflag>
  148. <custflag>
  149. <cdid>4</cdid>
  150. <cdnm>기타</cdnm>
  151. </custflag>
  152. </custflaglist>
  153. <code>
  154. <codelist/>
  155. </code>
  156. <R0001list>
  157. <R0001/>
  158. </R0001list>
  159. </init>
  160. <hidden>
  161. <return>
  162. <custcnt/>
  163. </return>
  164. <custnminfo>
  165. <custnm/>
  166. </custnminfo>
  167. </hidden>
  168. <temp>
  169. <racdcustlist/>
  170. <condition>
  171. <tempcreate/>
  172. </condition>
  173. </temp>
  174. </root>
  175. </instance>
  176. <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
  177. <submission id="TRRAC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrlist" resultref="/root/main/custlist"/>
  178. <submission id="TRRAC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/custlist" resultref="/root/main/racmcust"/>
  179. <submission id="TXRAC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  180. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/init/code/codelist"/>
  181. <script type="javascript" ev:event="xforms-ready">
  182. <![CDATA[
  183. fCheckAuth();
  184. fInitialize();
  185. ]]>
  186. </script>
  187. <submission id="TRRAC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/custcodelist" resultref="/root/hidden"/>
  188. </model>
  189. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  191. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  192. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  193. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  194. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  195. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  196. <script type="javascript">
  197. <![CDATA[
  198. var acntdept = "";
  199. //========================================================================================
  200. //화면 권한 체크
  201. //========================================================================================
  202. function fCheckAuth() {
  203. btn_search.disabled = !checkAuth("R") ;
  204. btn_save.disabled = !checkAuth("X") ;
  205. }
  206. //========================================================================================
  207. //초기화
  208. //========================================================================================
  209. function fInitialize() {
  210. var instcd = getUserInfo("dutplceinstcd");
  211. var deptcd = getUserInfo("dutplcecd");
  212. model.setValue(ipt_inserttodd.attribute("ref"), getCurrentDate().toString());
  213. // 은행코드 조회
  214. zbcfGetCodeList(new Array("R0001"), new Array("/root/init/R0001list"));
  215. model.refresh();
  216. model.setValue("/root/send/data3/instcd", instcd);
  217. model.setValue("/root/send/data3/mngtcd", "acntdept");
  218. submit("TRRAZ00001");
  219. var acntdept = model.getValue("/root/init/code/code/codelist[1]/cdid");
  220. model.removenode("/root/init/code/code/codelist[1]/cdid")
  221. model.setValue("/root/send/data3/mngtcd", "custaactnomodifydeptcd");
  222. submit("TRRAZ00001");
  223. var purchasedept = model.getValue("/root/init/code/code/codelist[1]/cdid");
  224. model.removenode("/root/init/code/code/codelist[1]/cdid")
  225. if (instance1.selectNodes("root/init/code/code/codelist").length != 0)
  226. {
  227. if (deptcd != acntdept && deptcd != purchasedept)
  228. {
  229. ipt_bankcd.disabled = true;
  230. btn_bankhelp.disabled = true;
  231. ipt_banknm.disabled = true;
  232. ipt_depor.disabled = true;
  233. ipt_paycond.disabled = true;
  234. ipt_aactno.disabled = true;
  235. chk_seizureyn.disabled = true;
  236. chk_tempcreate.disabled = true;
  237. }
  238. }
  239. model.setValue("/root/send/retrlist/custstat","1");
  240. model.removenode("/root/main/custlist");
  241. model.copyNode("/root/temp/racdcustlist", "/root/main/racdcustlist");
  242. model.removenode("/root/main/racdcustlist");
  243. //콩통코드 자료
  244. zbcfGetCodeList(new Array("R0015"), new Array("/root/init/R0015list"));
  245. zbcfGetCodeList(new Array("R0025"), new Array("/root/init/R0025list"));
  246. model.setValue("/root/main/racmcust/custstat", "1");
  247. model.makeValue("/root/main/racmcust/statflag","u");
  248. ipt_custcode.disabled = true;
  249. // ipt_entrregno2.disabled = true;
  250. //ipt_todd.disabled = true;
  251. misfMsterDetailSet(grd_custlist, null, "TRRAC00601", "N");
  252. misfMsterDetailSet(grd_racdcustlist, grd_custlist, "TRRAC00602", "Y");
  253. //misfMsterDetailRetrieve();
  254. model.refresh();
  255. }
  256. //========================================================================================
  257. //우편번호 Help Open
  258. //========================================================================================
  259. function fOpenPopupZipHelp(pControl, pInstance)
  260. {
  261. //04 우편번호 Helper
  262. misfOpenPopUpList("04", pControl, "", pInstance);
  263. var sZipcd = model.getValue("/root/main/racmcust/zipcd1") + '-' + model.getValue("/root/main/racmcust/zipcd2");
  264. model.setValue("/root/main/racmcust/zipcd", sZipcd);
  265. model.refresh();
  266. }
  267. ]]>
  268. </script>
  269. </xhtml:head>
  270. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  271. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  272. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">거래처 관리</caption>
  273. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  274. </group>
  275. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  276. <datagrid id="grd_custlist" nodeset="/root/main/custlist" caption="거래처코드^사업자등록번호^거래처명^시작일자^종료일자^상호명^대표자명^업태^종목^우편번호^주소1^주소2^전화번호^팩스번호^은행명^계좌번호^예금주^거래처번호유효성" colsep="^" colwidth="80, 118, 208, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:1px; top:143px; width:558px; height:564px; ">
  277. <col class="text_center" ref="custcode"/>
  278. <col class="text_center" ref="entrregno" format="999-99-99999"/>
  279. <col ref="custnm"/>
  280. <col class="text_center" ref="fromdd" format="yyyy-mm-dd"/>
  281. <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
  282. <col ref="custnm" visibility="hidden"/>
  283. <col ref="prsdnm" visibility="hidden"/>
  284. <col ref="bizcont" visibility="hidden"/>
  285. <col ref="item" visibility="hidden"/>
  286. <col ref="zipcd1" visibility="hidden"/>
  287. <col ref="supaddr" visibility="hidden"/>
  288. <col ref="infaddr" visibility="hidden"/>
  289. <col ref="cntctel" visibility="hidden"/>
  290. <col ref="faxno" visibility="hidden"/>
  291. <col disabled="true" ref="bankcd" type="combo">
  292. <choices>
  293. <itemset nodeset="/root/init/R0001list/R0001">
  294. <label ref="cdnm"/>
  295. <value ref="cdid"/>
  296. </itemset>
  297. </choices>
  298. </col>
  299. <col ref="aactno"/>
  300. <col ref="depor"/>
  301. <col ref="validyn" visibility="hidden"/>
  302. <script type="javascript" ev:event="onrowchanged">
  303. <![CDATA[
  304. model.removeNodeset("/root/main/racdcustlist");
  305. model.setValue("/root/send/custlist/entrregno", grd_custlist.valueMatrix(grd_custlist.row, grd_custlist.colRef("entrregno")));
  306. model.setValue("/root/send/custlist/custcode", grd_custlist.valueMatrix(grd_custlist.row, grd_custlist.colRef("custcode")));
  307. model.setValue("/root/send/custlist/todd", grd_custlist.valueMatrix(grd_custlist.row, grd_custlist.colRef("todd")));
  308. misfMsterDetailRetrieve();
  309. model.makeValue("/root/main/racmcust/statflag", "u");
  310. misfSetReadOnlyCol(grd_racdcustlist, "goodflag");
  311. ipt_custcode.disabled = true;
  312. //ipt_entrregno2.disabled = true;
  313. //ipt_todd.disabled = true;
  314. model.refresh();
  315. grd_racdcustlist.rebuild();
  316. ]]>
  317. </script>
  318. <script type="javascript" ev:event="onaftersort">
  319. <![CDATA[
  320. grd_custlist.gridToInstance();
  321. ]]>
  322. </script>
  323. </datagrid>
  324. <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:558px; y2:138px; "/>
  325. <group id="group4" style="left:0px; top:7px; width:558px; height:107px; vertical-align:top; ">
  326. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:558px; height:107px; background-color:#fffbf2; border-color:#ffd799; "/>
  327. <caption id="caption5" class="search_name" style="left:6px; top:9px; width:125px; height:17px; ">사업자등록번호 :</caption>
  328. <caption id="caption1" class="search_name" style="left:6px; top:34px; width:126px; height:17px; ">거래 상태 :</caption>
  329. <button id="btn_regnohelp" class="icon_search" style="left:246px; top:10px; width:16px; height:16px; text-align:center; ">
  330. <caption/>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. misfOpenPopUpList("14", ipt_entrregno, "", "entrregno,custnm", cmb_custstat.value, "custuseyn");
  334. model.refresh();
  335. ]]>
  336. </script>
  337. </button>
  338. <input id="ipt_entrregno" ref="/root/send/retrlist/entrregno" class="input_s_essential" navindex="1" format="999-99-99999" style="left:135px; top:8px; width:105px; height:19px; text-align:center; ">
  339. <script type="javascript" ev:event="onkeypress">
  340. <![CDATA[
  341. if(event.keyCode == 13)
  342. {
  343. // racfCustValidCheck("entrregno,custnm", "code");
  344. ipt_entrregno.value = ipt_entrregno.currentText;
  345. btn_search.dispatch("DOMActivate");
  346. }
  347. ]]>
  348. </script>
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. // racfCustValidCheck("entrregno,custnm", "code");
  352. btn_search.dispatch("DOMActivate");
  353. ]]>
  354. </script>
  355. </input>
  356. <input id="ipt_custnm" ref="/root/send/retrlist/custnm" class="input_s_essential" navindex="2" style="left:266px; top:8px; width:194px; height:19px; ">
  357. <script type="javascript" ev:event="onkeypress">
  358. <![CDATA[
  359. if(event.keyCode == 13)
  360. {
  361. // racfCustValidCheck("entrregno,custnm", "name");
  362. ipt_custnm.value = ipt_custnm.currentText;
  363. btn_search.dispatch("DOMActivate");
  364. }
  365. ]]>
  366. </script>
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. // racfCustValidCheck("entrregno,custnm", "name");
  370. btn_search.dispatch("DOMActivate");
  371. ]]>
  372. </script>
  373. </input>
  374. <select1 id="cmb_custstat" ref="/root/send/retrlist/custstat" class="combo_s_essential" navindex="4" appearance="minimal" style="left:135px; top:33px; width:105px; height:19px; text-align:center; ">
  375. <choices>
  376. <item>
  377. <label>거래중</label>
  378. <value>1</value>
  379. </item>
  380. <item>
  381. <label>거래종료</label>
  382. <value>2</value>
  383. </item>
  384. </choices>
  385. </select1>
  386. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:487px; top:19px; width:56px; height:22px; ">
  387. <caption>조회</caption>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. model.removeNodeset(grd_custlist.nodeset);
  391. grd_custlist.refresh();
  392. misfMsterDetailRetrieve();
  393. for(var i = grd_custlist.fixedRows ; i <= grd_custlist.rows ; i ++)
  394. {
  395. if(grd_custlist.valueMatrix(i, grd_custlist.colRef("fromdd")) >= grd_custlist.valueMatrix(i, grd_custlist.colRef("todd")))
  396. {
  397. grd_custlist.rowStyle(i, "data", "background-color") = "#00ffff";
  398. }
  399. }
  400. model.refresh();
  401. ]]>
  402. </script>
  403. </button>
  404. <line id="line30" class="line_4" style="x1:471px; y1:8px; x2:471px; y2:51px; "/>
  405. <caption id="caption9" class="search_name" style="left:250px; top:34px; width:95px; height:17px; ">종료일자 :</caption>
  406. <input id="ipt_unsldd" ref="/root/send/retrlist/todd" class="input_s_essential" navindex="5" inputtype="date" style="left:340px; top:33px; width:120px; height:19px; "/>
  407. <input id="ipt_insertfromdd" ref="/root/send/retrlist/insertfromdd" class="input_s_essential" navindex="6" inputtype="date" style="left:135px; top:58px; width:105px; height:19px; "/>
  408. <caption id="caption12" class="search_name" style="left:6px; top:59px; width:134px; height:17px; ">최초입력일자 :</caption>
  409. <input id="ipt_inserttodd" ref="/root/send/retrlist/inserttodd" class="input_s_essential" navindex="7" inputtype="date" style="left:266px; top:58px; width:105px; height:19px; "/>
  410. <caption id="caption13" style="left:247px; top:63px; width:20px; height:15px; ">~</caption>
  411. <caption id="caption15" class="search_name" style="left:6px; top:84px; width:134px; height:17px; ">업무구분 :</caption>
  412. <select1 id="combo1" ref="/root/send/retrlist/purcuseyn" class="combo_s_essential" navindex="8" appearance="minimal" style="left:190px; top:83px; width:70px; height:19px; text-align:center; ">
  413. <choices>
  414. <item>
  415. <label>전체</label>
  416. <value/>
  417. </item>
  418. <item>
  419. <label>사용</label>
  420. <value>Y</value>
  421. </item>
  422. <item>
  423. <label>사용않함</label>
  424. <value>N</value>
  425. </item>
  426. </choices>
  427. </select1>
  428. <caption id="caption16" style="left:150px; top:85px; width:40px; height:15px; font-weight:bold; text-align:center; ">구매</caption>
  429. <caption id="caption17" style="left:279px; top:85px; width:40px; height:15px; font-weight:bold; text-align:center; ">영양</caption>
  430. <caption id="caption18" style="left:408px; top:85px; width:40px; height:15px; font-weight:bold; text-align:center; ">약국</caption>
  431. <select1 id="combo2" ref="/root/send/retrlist/pharmuseyn" class="combo_s_essential" navindex="10" appearance="minimal" style="left:450px; top:83px; width:70px; height:19px; text-align:center; ">
  432. <choices>
  433. <item>
  434. <label>전체</label>
  435. <value/>
  436. </item>
  437. <item>
  438. <label>사용</label>
  439. <value>Y</value>
  440. </item>
  441. <item>
  442. <label>사용않함</label>
  443. <value>N</value>
  444. </item>
  445. </choices>
  446. </select1>
  447. <select1 id="combo3" ref="/root/send/retrlist/nutruseyn" class="combo_s_essential" navindex="9" appearance="minimal" style="left:320px; top:83px; width:70px; height:19px; text-align:center; ">
  448. <choices>
  449. <item>
  450. <label>전체</label>
  451. <value/>
  452. </item>
  453. <item>
  454. <label>사용</label>
  455. <value>Y</value>
  456. </item>
  457. <item>
  458. <label>사용않함</label>
  459. <value>N</value>
  460. </item>
  461. </choices>
  462. </select1>
  463. </group>
  464. <line id="line4" class="line_1" style="x1:561px; y1:25px; x2:1188px; y2:25px; "/>
  465. <line id="line13" class="line_2" style="x1:562px; y1:79px; x2:1194px; y2:79px; "/>
  466. <input id="ipt_entrregno2" ref="/root/main/racmcust/entrregno" class="input_essential" navindex="14" format="999-99-99999" style="left:698px; top:58px; width:175px; height:19px; ">
  467. <script type="javascript" ev:event="xforms-value-changed">
  468. <![CDATA[
  469. /* if(radfcheckCustExist(getUserInfo("dutplceinstcd"), ipt_entrregno2.value, "Y") != "")
  470. {
  471. model.setValue("/root/send/custlist/entrregno", ipt_entrregno2.value);
  472. submit("TRRAC00602");
  473. model.makeValue("/root/main/racmcust/statflag", "u");
  474. ipt_entrregno2.disabled = true;
  475. }*/
  476. ]]>
  477. </script>
  478. </input>
  479. <caption id="cap_entrregno" class="cell_1" style="left:561px; top:56px; width:135px; height:23px; text-align:left; vertical-align:middle; ">사업자등록번호</caption>
  480. <line id="line5" class="line_2" style="x1:563px; y1:104px; x2:1195px; y2:104px; "/>
  481. <input id="ipt_custnm2" ref="/root/main/racmcust/custnm" class="input_essential" navindex="15" style="left:698px; top:83px; width:315px; height:19px; "/>
  482. <caption id="cap_custnm" class="cell_1" style="left:561px; top:81px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래처명</caption>
  483. <caption id="cap_fromdd" class="cell_1" style="left:561px; top:106px; width:135px; height:23px; text-align:left; vertical-align:middle; ">상호명</caption>
  484. <line id="line6" class="line_2" style="x1:562px; y1:129px; x2:1194px; y2:129px; "/>
  485. <caption id="cap_prsdnm" class="cell_1" style="left:561px; top:155px; width:135px; height:23px; text-align:left; vertical-align:middle; ">대표자명</caption>
  486. <line id="line8" class="line_2" style="x1:562px; y1:178px; x2:1194px; y2:178px; "/>
  487. <input id="ipt_prsdnm" ref="/root/main/racmcust/prsdnm" class="input_default" navindex="19" style="left:698px; top:157px; width:175px; height:19px; "/>
  488. <line id="line9" class="line_2" style="x1:563px; y1:203px; x2:1195px; y2:203px; "/>
  489. <input id="ipt_rrgstno" ref="/root/main/racmcust/rrgstno" class="input_default" navindex="20" format="999999-9999999" style="left:1014px; top:157px; width:175px; height:19px; "/>
  490. <caption id="cap_rrgstno" class="cell_1" style="left:877px; top:155px; width:135px; height:23px; text-align:left; vertical-align:middle; ">주민등록번호</caption>
  491. <line id="line10" class="line_3" style="x1:561px; y1:228px; x2:1193px; y2:228px; "/>
  492. <caption id="cap_custstat" class="cell_1" style="left:561px; top:180px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래상태</caption>
  493. <line id="line11" class="line_3" style="x1:561px; y1:206px; x2:1193px; y2:206px; "/>
  494. <line id="line14" class="line_3" style="x1:561px; y1:304px; x2:1193px; y2:304px; "/>
  495. <input id="ipt_mainbizitem" ref="/root/main/racmcust/mainbizitem" class="input_default" navindex="25" style="left:698px; top:234px; width:175px; height:19px; "/>
  496. <caption id="cap_bizcont" class="cell_1" style="left:561px; top:207px; width:135px; height:23px; text-align:left; vertical-align:middle; ">업태</caption>
  497. <line id="line15" class="line_2" style="x1:560px; y1:254px; x2:1192px; y2:254px; "/>
  498. <input id="ipt_item" ref="/root/main/racmcust/item" class="input_default" navindex="24" style="left:1014px; top:209px; width:175px; height:19px; "/>
  499. <line id="line16" class="line_2" style="x1:559px; y1:249px; x2:1190px; y2:249px; "/>
  500. <line id="line17" class="line_3" style="x1:561px; y1:307px; x2:1193px; y2:307px; "/>
  501. <input id="ipt_supaddr" ref="/root/main/racmcust/supaddr" class="input_default" navindex="34" style="left:698px; top:335px; width:491px; height:19px; "/>
  502. <line id="line18" class="line_2" style="x1:560px; y1:381px; x2:1192px; y2:381px; "/>
  503. <line id="line19" class="line_2" style="x1:560px; y1:406px; x2:1192px; y2:406px; "/>
  504. <line id="line20" class="line_2" style="x1:560px; y1:331px; x2:1192px; y2:331px; "/>
  505. <line id="line21" class="line_2" style="x1:561px; y1:356px; x2:1193px; y2:356px; "/>
  506. <caption id="cap_zipcd" class="cell_1" style="left:561px; top:308px; width:135px; height:23px; text-align:left; vertical-align:middle; ">우편번호</caption>
  507. <input id="ipt_cntctel" ref="/root/main/racmcust/infaddr" class="input_default" navindex="35" style="left:698px; top:360px; width:340px; height:19px; "/>
  508. <input id="ipt_faxno" ref="/root/main/racmcust/faxno" class="input_default" navindex="37" style="left:1014px; top:385px; width:175px; height:19px; "/>
  509. <line id="line22" class="line_2" style="x1:560px; y1:559px; x2:1192px; y2:559px; "/>
  510. <line id="line23" class="line_2" style="x1:560px; y1:581px; x2:1192px; y2:581px; "/>
  511. <caption id="cap_aactno" class="cell_1" style="left:561px; top:507px; width:135px; height:23px; text-align:left; vertical-align:middle; ">계좌번호</caption>
  512. <caption id="cap_cmt" class="cell_1" style="left:876px; top:507px; width:135px; height:23px; text-align:left; vertical-align:middle; ">비고</caption>
  513. <input id="ipt_cmt" ref="/root/main/racmcust/cmt" class="input_default" navindex="50" style="left:1014px; top:507px; width:175px; height:19px; "/>
  514. <caption id="cap_bankcd" class="cell_1" style="left:561px; top:458px; width:135px; height:23px; text-align:left; vertical-align:middle; ">은행</caption>
  515. <caption id="cap_depor" class="cell_1" style="left:561px; top:483px; width:135px; height:23px; text-align:left; vertical-align:middle; ">예금주</caption>
  516. <line id="line29" class="line_2" style="x1:560px; y1:534px; x2:1192px; y2:534px; "/>
  517. <button id="btn_init" class="btn2_letter2" style="left:1147px; top:5px; width:42px; height:19px; ">
  518. <caption>신규</caption>
  519. <script type="javascript" ev:event="DOMActivate">
  520. <![CDATA[
  521. model.resetInstanceNode("/root/main/racmcust");
  522. for(var i=0; i<grd_racdcustlist.rows; i++)
  523. {
  524. model.removenode("/root/main/racdcustlist");
  525. }
  526. model.setValue("/root/main/racmcust/custstat", "1");
  527. model.makeValue("/root/main/racmcust/statflag", "i");
  528. model.setValue("/root/main/racmcust/fromdd", getCurrentDate().toString());
  529. model.setValue("/root/main/racmcust/todd","99991231");
  530. model.setValue("/root/main/racmcust/modifytodd","99991231");
  531. //ipt_entrregno2.disabled = false;
  532. ipt_custcode.disabled = false;
  533. //ipt_todd.disabled = false;
  534. model.setFocus("ipt_custcode");
  535. model.refresh();
  536. ]]>
  537. </script>
  538. </button>
  539. <caption id="cap_mainbizitem" class="cell_1" style="left:561px; top:231px; width:135px; height:23px; text-align:left; vertical-align:middle; ">주거래종목</caption>
  540. <caption id="cap_custflag" class="cell_1" style="left:561px; top:256px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래처구분</caption>
  541. <caption id="cap_item" class="cell_1" style="left:877px; top:207px; width:135px; height:23px; text-align:left; vertical-align:middle; ">종목</caption>
  542. <caption id="cap_supaddr" class="cell_1" style="left:561px; top:333px; width:135px; height:23px; text-align:left; vertical-align:middle; ">주소</caption>
  543. <caption id="cap_infaddr" class="cell_1" style="left:561px; top:358px; width:135px; height:23px; text-align:left; vertical-align:middle; ">상세주소</caption>
  544. <caption id="cap_faxno" class="cell_1" style="left:877px; top:383px; width:135px; height:23px; text-align:left; vertical-align:middle; ">팩스번호</caption>
  545. <caption id="cap_emailaddr" class="cell_1" style="left:561px; top:408px; width:135px; height:23px; text-align:left; vertical-align:middle; ">이메일주소</caption>
  546. <line id="line3" class="line_2" style="x1:560px; y1:430px; x2:1192px; y2:430px; "/>
  547. <caption id="cap_homepgaddr" class="cell_1" style="left:561px; top:432px; width:135px; height:23px; text-align:left; vertical-align:middle; ">홈페이지주소</caption>
  548. <line id="line31" class="line_3" style="x1:561px; y1:455px; x2:1193px; y2:455px; "/>
  549. <caption id="cap_acntchrgemailaddr" class="cell_1" visibility="hidden" style="left:5px; top:555px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래담당자이메일</caption>
  550. <input id="ipt_acntchrgemailaddr" ref="/root/main/racmcust/acntchrgemailaddr" class="input_default" navindex="44" visibility="hidden" style="left:142px; top:557px; width:175px; height:19px; "/>
  551. <line id="line32" class="line_3" style="x1:561px; y1:554px; x2:1193px; y2:554px; "/>
  552. <caption id="cap_acntchrgnm" class="cell_1" visibility="hidden" style="left:5px; top:480px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래담당자명</caption>
  553. <caption id="cap_acntchrgtelno" class="cell_1" visibility="hidden" style="left:5px; top:530px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래담당자전화번호</caption>
  554. <line id="line33" class="line_2" style="x1:560px; y1:482px; x2:1192px; y2:482px; "/>
  555. <caption id="cap_acntchrgmpphonno" class="cell_1" visibility="hidden" style="left:5px; top:505px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래담당자휴대폰</caption>
  556. <input id="ipt_acntchrgmpphonno" ref="/root/main/racmcust/acntchrgmpphonno" class="input_default" navindex="43" visibility="hidden" style="left:142px; top:507px; width:175px; height:19px; "/>
  557. <input id="ipt_acntchrgtelno" ref="/root/main/racmcust/acntchrgtelno" class="input_default" navindex="42" visibility="hidden" style="left:142px; top:532px; width:175px; height:19px; "/>
  558. <input id="ipt_acntchrgnm" ref="/root/main/racmcust/acntchrgnm" class="input_default" navindex="41" visibility="hidden" style="left:142px; top:482px; width:175px; height:19px; "/>
  559. <input id="ipt_aactno" ref="/root/main/racmcust/aactno" class="input_default" navindex="49" style="left:698px; top:507px; width:172px; height:19px; "/>
  560. <input id="ipt_depor" ref="/root/main/racmcust/depor" class="input_default" navindex="47" style="left:698px; top:485px; width:172px; height:19px; "/>
  561. <input id="ipt_bankcd" ref="/root/main/racmcust/bankcd" class="input_default" navindex="45" style="left:698px; top:460px; width:115px; height:19px; ">
  562. <script type="javascript" ev:event="onkeypress">
  563. <![CDATA[
  564. if(event.keyCode == 13)
  565. {
  566. ipt_bankcd.value = ipt_bankcd.currentText.substr(0, 2);
  567. misfValidationCheck("03", "R0001", "bankcd,banknm");
  568. model.refresh();
  569. }
  570. ]]>
  571. </script>
  572. </input>
  573. <input id="ipt_banknm" ref="/root/main/racmcust/banknm" class="input_default" navindex="46" style="left:835px; top:460px; width:180px; height:19px; ">
  574. <script type="javascript" ev:event="onkeypress">
  575. <![CDATA[
  576. if(event.keyCode == 13)
  577. {
  578. ipt_banknm.value = ipt_banknm.currentText.substr(0, 2);
  579. misfValidationCheck("03", "R0001", "bankcd,banknm");
  580. model.refresh();
  581. }
  582. ]]>
  583. </script>
  584. </input>
  585. <input id="ipt_emailaddr" ref="/root/main/racmcust/emailaddr" class="input_default" navindex="38" style="left:698px; top:410px; width:175px; height:19px; "/>
  586. <input id="ipt_homepgaddr" ref="/root/main/racmcust/homepgaddr" class="input_default" navindex="40" style="left:698px; top:434px; width:317px; height:19px; "/>
  587. <button id="button1" class="icon_search" style="left:816px; top:312px; width:16px; height:16px; ">
  588. <caption/>
  589. <script type="javascript" ev:event="DOMActivate">
  590. <![CDATA[
  591. fOpenPopupZipHelp(opt_zipcd1,"zipcd1,zipcd2,supaddr,zipcdseqno");
  592. ]]>
  593. </script>
  594. </button>
  595. <input id="ipt_zipcd" ref="/root/main/racmcust/zipcd" class="input_default" navindex="33" style="left:698px; top:310px; width:115px; height:19px; "/>
  596. <select1 id="cmb_custflag2" ref="/root/main/racmcust/custflag" class="combo_essential" navindex="27" appearance="minimal" style="left:698px; top:258px; width:175px; height:19px; ">
  597. <choices>
  598. <item>
  599. <label/>
  600. <value/>
  601. </item>
  602. <item>
  603. <label>매입처</label>
  604. <value>1</value>
  605. </item>
  606. <item>
  607. <label>매출처</label>
  608. <value>2</value>
  609. </item>
  610. <item>
  611. <label>매입/매출처</label>
  612. <value>3</value>
  613. </item>
  614. <item>
  615. <label>기타</label>
  616. <value>4</value>
  617. </item>
  618. </choices>
  619. </select1>
  620. <input id="ipt_bizcont" ref="/root/main/racmcust/bizcont" class="input_default" navindex="23" style="left:698px; top:209px; width:175px; height:19px; "/>
  621. <input id="ipt_fromdd" ref="/root/main/racmcust/fromdd" class="input_essential" navindex="17" inputtype="date" style="left:698px; top:132px; width:135px; height:19px; "/>
  622. <select1 id="rdo_custstat2" ref="/root/main/racmcust/custstat" navindex="21" overflow="visible" appearance="full" cellspacing="50" cols="2" style="left:698px; top:182px; width:182px; height:20px; border-style:none; ">
  623. <choices>
  624. <item>
  625. <label>거래중</label>
  626. <value>1</value>
  627. </item>
  628. <item>
  629. <label>거래종료</label>
  630. <value>2</value>
  631. </item>
  632. </choices>
  633. <script type="javascript" ev:event="xforms-value-changed">
  634. <![CDATA[
  635. // if(rdo_custstat2.value == "1")
  636. // {
  637. // ipt_todd.disabled = true;
  638. // }
  639. // else
  640. // {
  641. // ipt_todd.disabled = false;
  642. // }
  643. ]]>
  644. </script>
  645. </select1>
  646. <caption id="caption35" class="tit_2" style="left:5px; top:121px; width:118px; height:13px; ">거래처 목록</caption>
  647. <caption id="caption36" class="tit_2" style="left:567px; top:10px; width:118px; height:13px; ">거래처 정보</caption>
  648. <button id="button3" class="btn2_letter4" navindex="13" style="left:495px; top:117px; width:64px; height:19px; text-align:left; ">
  649. <caption>엑셀출력</caption>
  650. <script type="javascript" ev:event="DOMActivate">
  651. <![CDATA[
  652. misfSaveExcel(grd_custlist);
  653. ]]>
  654. </script>
  655. </button>
  656. <datagrid id="grd_racdcustlist" nodeset="/root/main/racdcustlist" caption="사업자등록번호^종료일자^물품 구분^담당종료^담당자명^담당자 전화번호^담당자 휴대폰^담당자 이메일주소^담당직위^담당업무^담당순번^비고" colsep="^" colwidth="0, 0, 118, 55, 73, 97, 110, 126, 63, 87, 0, 122" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="56" style="left:561px; top:607px; width:632px; height:108px; ">
  657. <col ref="entrregno"/>
  658. <col ref="todd"/>
  659. <col ref="goodflag" type="combo" _key="true" style="left:20px; top:23px; width:118px; height:23px; ">
  660. <choices>
  661. <itemset nodeset="/root/init/R0025list/R0025">
  662. <label ref="cdnm"/>
  663. <value ref="cdid"/>
  664. </itemset>
  665. </choices>
  666. </col>
  667. <col checkvalue="Y,N" ref="chrgtoyn" type="checkbox"/>
  668. <col ref="chrgnm" type="input"/>
  669. <col ref="chrgtel" type="input"/>
  670. <col ref="chrgmpphon" type="input"/>
  671. <col ref="chrgemailaddr" type="input"/>
  672. <col ref="chrgplce" type="input"/>
  673. <col ref="chrgbiz" type="input"/>
  674. <col ref="chrgseq"/>
  675. <col ref="cmt" type="input"/>
  676. <col ref="goodflagold" visibility="hidden"/>
  677. </datagrid>
  678. <caption id="cap_todd" class="cell_1" style="left:561px; top:131px; width:135px; height:23px; text-align:left; vertical-align:middle; ">시작일자</caption>
  679. <line id="line7" class="line_2" style="x1:562px; y1:153px; x2:1194px; y2:153px; "/>
  680. <input id="ipt_todd" ref="/root/main/racmcust/modifytodd" class="input_essential" navindex="18" inputtype="date" style="left:1014px; top:132px; width:135px; height:19px; "/>
  681. <caption id="cap_instflag" class="cell_1" style="left:877px; top:256px; width:135px; height:23px; text-align:left; vertical-align:middle; ">법인구분</caption>
  682. <select1 id="cmb_instflag" ref="/root/main/racmcust/instflag" class="combo_essential" navindex="28" appearance="minimal" style="left:1014px; top:258px; width:175px; height:19px; ">
  683. <choices>
  684. <itemset nodeset="/root/init/init_R0015list/item">
  685. <label ref="label"/>
  686. <value ref="value"/>
  687. </itemset>
  688. </choices>
  689. </select1>
  690. <caption id="cap_oldentrregno" class="cell_1" style="left:877px; top:231px; width:135px; height:23px; text-align:left; vertical-align:middle; ">승계구거래처번호</caption>
  691. <input id="ipt_oldentrregno" ref="/root/main/racmcust/oldentrregno" class="input_default" navindex="26" style="left:1014px; top:233px; width:175px; height:19px; "/>
  692. <caption id="cap_cntctel" class="cell_1" style="left:561px; top:383px; width:135px; height:23px; text-align:left; vertical-align:middle; ">전화번호</caption>
  693. <input id="input1" ref="/root/main/racmcust/cntctel" class="input_default" navindex="36" style="left:698px; top:385px; width:175px; height:19px; "/>
  694. <button id="but_grddel" class="btn2_letter3" navindex="55" visibility="hidden" style="left:1137px; top:585px; width:53px; height:19px; ">
  695. <caption>행삭제</caption>
  696. <script type="javascript" ev:event="DOMActivate">
  697. <![CDATA[
  698. misfGridIUD(grd_racdcustlist, "D");
  699. ]]>
  700. </script>
  701. </button>
  702. <button id="but_grdinst" class="btn2_letter3" navindex="54" visibility="hidden" style="left:1081px; top:585px; width:53px; height:19px; ">
  703. <caption>행삽입</caption>
  704. <script type="javascript" ev:event="DOMActivate">
  705. <![CDATA[
  706. if(ipt_entrregno2.value.replace(" ", "") == "")
  707. {
  708. messageBox("사업자등록번호가 ", "I004");
  709. return;
  710. }
  711. misfGridIUD(grd_racdcustlist, "I");
  712. grd_racdcustlist.valueMatrix(grd_racdcustlist.row, grd_racdcustlist.colRef("entrregno")) = ipt_entrregno2.value;
  713. grd_racdcustlist.valueMatrix(grd_racdcustlist.row, grd_racdcustlist.colRef("goodflag")) = "Y";
  714. model.refresh();
  715. ]]>
  716. </script>
  717. </button>
  718. <output id="opt_zipcdseqno" ref="/root/main/racmcust/zipcdseqno" visibility="hidden" style="left:860px; top:311px; width:10px; height:19px; text-align:left; "/>
  719. <output id="opt_zipcd1" ref="/root/main/racmcust/zipcd1" visibility="hidden" style="left:840px; top:311px; width:10px; height:19px; text-align:left; "/>
  720. <output id="opt_zipcd2" ref="/root/main/racmcust/zipcd2" visibility="hidden" style="left:850px; top:311px; width:10px; height:19px; text-align:left; "/>
  721. <caption id="cap_paycond" class="cell_1" style="left:876px; top:483px; width:135px; height:23px; text-align:left; vertical-align:middle; ">지불조건</caption>
  722. <input id="ipt_paycond" ref="/root/main/racmcust/paycond" class="input_default" navindex="48" format="9" style="left:1014px; top:485px; width:121px; height:19px; text-align:right; "/>
  723. <button id="btn_bankhelp" class="icon_search" style="left:816px; top:461px; width:16px; height:16px; ">
  724. <caption/>
  725. <script type="javascript" ev:event="DOMActivate">
  726. <![CDATA[
  727. misfOpenPopUpList("03", ipt_bankcd, "R0001", "bankcd,banknm");
  728. model.refresh()
  729. ]]>
  730. </script>
  731. </button>
  732. <caption id="caption2" class="cell_1" style="left:877px; top:131px; width:135px; height:23px; text-align:left; vertical-align:middle; ">종료일자</caption>
  733. <input id="ipt_cmpynm" ref="/root/main/racmcust/cmpynm" class="input_essential" navindex="16" style="left:698px; top:107px; width:315px; height:19px; "/>
  734. <caption id="caption8" class="cell_1" visibility="hidden" style="left:877px; top:180px; width:135px; height:23px; text-align:left; vertical-align:middle; ">기존종료일자</caption>
  735. <input id="input2" ref="/root/main/racmcust/todd" class="input_essential" navindex="22" visibility="hidden" inputtype="date" style="left:1014px; top:181px; width:135px; height:19px; "/>
  736. <button id="button2" class="btn2_letter4" navindex="12" style="left:425px; top:117px; width:64px; height:19px; text-align:left; ">
  737. <caption>엑셀입력</caption>
  738. <script type="javascript" ev:event="DOMActivate">
  739. <![CDATA[
  740. modal("SPRAC00610");
  741. ]]>
  742. </script>
  743. </button>
  744. <button id="btn_del" class="btn4_letter2" visibility="hidden" style="left:1139px; top:457px; width:56px; height:22px; ">
  745. <caption>삭제</caption>
  746. <script type="javascript" ev:event="DOMActivate">
  747. <![CDATA[
  748. // 1개일때도 삭제됨 검증 필요
  749. if(ipt_entrregno2.value != "" && ipt_todd.value != "" && model.getValue("/root/main/racmcust/statflag") != "i")
  750. {
  751. ret = messageBox("삭제하시겠습니까?","Q999");
  752. if (ret == "6")
  753. {
  754. model.makeValue("/root/main/racmcust/statflag", "d");
  755. model.copyNode("/root/send/save/racmcust", "/root/main/racmcust");
  756. for(var i = grd_racdcustlist.fixedRows ; i < grd_racdcustlist.rows ; i++)
  757. {
  758. grd_racdcustlist.rowStatus(i) = 4;
  759. }
  760. model.setValue("/root/send/save/racdcustlist", grd_racdcustlist.getUpdateData());
  761. misfSave("TXRAC00601");
  762. if(model.getValue("/root/hidden/return/custcnt") == "1")
  763. {
  764. messageBox("거래처가 1개 존재합니다.\n삭제할 수 없습니다.","I000");
  765. }
  766. else
  767. {
  768. btn_search.dispatch("DOMActivate");
  769. }
  770. //btn_search.dispatch("DOMActivate");
  771. }
  772. }
  773. ]]>
  774. </script>
  775. </button>
  776. <input id="input3" ref="/root/main/racmcust/fstrgstrid" class="input_default" editable="false" style="left:697px; top:559px; width:98px; height:19px; text-align:center; vertical-align:middle; "/>
  777. <caption id="caption7" class="cell_1" style="left:560px; top:557px; width:135px; height:23px; text-align:left; vertical-align:middle; ">최초작성자</caption>
  778. <caption id="caption10" class="cell_1" style="left:560px; top:582px; width:135px; height:23px; text-align:left; vertical-align:middle; ">최종작성자</caption>
  779. <input id="input4" ref="/root/main/racmcust/lastupdtrid" class="input_default" editable="false" style="left:697px; top:584px; width:98px; height:19px; text-align:center; vertical-align:middle; "/>
  780. <input id="input5" ref="/root/main/racmcust/fstrgstrnm" class="input_default" editable="false" style="left:800px; top:559px; width:98px; height:19px; text-align:center; vertical-align:middle; "/>
  781. <input id="input6" ref="/root/main/racmcust/lastupdtrnm" class="input_default" editable="false" style="left:800px; top:584px; width:98px; height:19px; text-align:center; vertical-align:middle; "/>
  782. <input id="input7" ref="/root/main/racmcust/fstrgstdt" class="input_default" editable="false" style="left:903px; top:559px; width:168px; height:19px; text-align:center; vertical-align:middle; "/>
  783. <input id="input8" ref="/root/main/racmcust/lastupdtdt" class="input_default" editable="false" style="left:903px; top:584px; width:168px; height:19px; text-align:center; vertical-align:middle; "/>
  784. <input id="ipt_prntseqno" ref="/root/main/racmcust/prntseqno" class="input_default" navindex="39" format="9999999999" style="left:1014px; top:410px; width:175px; height:19px; "/>
  785. <caption id="caption11" class="cell_1" style="left:877px; top:408px; width:135px; height:23px; text-align:left; vertical-align:middle; ">출력순서</caption>
  786. <select id="chk_seizureyn" ref="/root/main/racmcust/seizureyn" navindex="51" visibility="visible" overflow="visible" appearance="full" cellspacing="70" cols="4" style="left:700px; top:532px; width:75px; height:19px; border-style:none; ">
  787. <choices>
  788. <item>
  789. <label>압류여부</label>
  790. <value>Y</value>
  791. </item>
  792. </choices>
  793. <script type="javascript" ev:event="xforms-select">
  794. <![CDATA[
  795. model.setValue("/root/main/racmcust/seizureyn", 'Y');
  796. ]]>
  797. </script>
  798. </select>
  799. <button id="button4" class="btn2_letter10" navindex="11" style="left:105px; top:117px; width:130px; height:19px; text-align:left; ">
  800. <caption>사업자등록번호 검사</caption>
  801. <script type="javascript" ev:event="DOMActivate">
  802. <![CDATA[
  803. openLoadingBar("작업중");
  804. for(var i = grd_custlist.fixedRows ; i <= grd_custlist.rows ; i++)
  805. {
  806. sEntrregno = grd_custlist.valueMatrix(i, grd_custlist.colRef("entrregno"));
  807. if(!radfBizCheck(sEntrregno))
  808. {
  809. grd_custlist.rowStyle(i, "data", "background-color") = "#ff99cc";
  810. model.setValue(grd_custlist.nodeset + "[" + i + "]/validyn", "N");
  811. }
  812. grd_custlist.refresh();
  813. }
  814. closeLoadingBar();
  815. ]]>
  816. </script>
  817. </button>
  818. <select id="chk_purcuseyn" ref="/root/main/racmcust/purcuseyn" navindex="29" overflow="visible" appearance="full" cellspacing="0" cols="4" style="left:700px; top:283px; width:95px; height:20px; border-style:none; ">
  819. <choices>
  820. <item>
  821. <label>구매 사용여부</label>
  822. <value>Y</value>
  823. </item>
  824. </choices>
  825. <script type="javascript" ev:event="xforms-select">
  826. <![CDATA[
  827. model.setValue(chk_purcuseyn.attribute("ref"), 'Y');
  828. ]]>
  829. </script>
  830. </select>
  831. <select id="chk_nutruseyn" ref="/root/main/racmcust/nutruseyn" navindex="30" overflow="visible" appearance="full" cellspacing="0" cols="4" style="left:805px; top:283px; width:95px; height:20px; border-style:none; ">
  832. <choices>
  833. <item>
  834. <label>영양 사용여부</label>
  835. <value>Y</value>
  836. </item>
  837. </choices>
  838. <script type="javascript" ev:event="xforms-select">
  839. <![CDATA[
  840. model.setValue(chk_nutruseyn.attribute("ref"), 'Y');
  841. ]]>
  842. </script>
  843. </select>
  844. <caption id="caption14" class="cell_1" style="left:561px; top:281px; width:135px; height:23px; text-align:left; vertical-align:middle; ">업무구분</caption>
  845. <select id="chk_pharmuseyn" ref="/root/main/racmcust/pharmuseyn" navindex="31" overflow="visible" appearance="full" cellspacing="0" cols="4" style="left:910px; top:283px; width:100px; height:20px; border-style:none; ">
  846. <choices>
  847. <item>
  848. <label>약국 사용여부</label>
  849. <value>Y</value>
  850. </item>
  851. </choices>
  852. <script type="javascript" ev:event="xforms-select">
  853. <![CDATA[
  854. model.setValue(chk_pharmuseyn.attribute("ref"), 'Y');
  855. ]]>
  856. </script>
  857. </select>
  858. <caption id="caption19" class="cell_1" style="left:561px; top:532px; width:135px; height:19px; text-align:left; vertical-align:middle; ">압류</caption>
  859. <caption id="caption20" class="cell_1" style="left:785px; top:532px; width:85px; height:19px; text-align:left; vertical-align:middle; ">압류내용</caption>
  860. <input id="ipt_seizurecmt" ref="/root/main/racmcust/seizurecmt" class="input_default" navindex="52" style="left:875px; top:532px; width:140px; height:19px; "/>
  861. <caption id="caption21" class="cell_1" style="left:1020px; top:532px; width:70px; height:19px; text-align:left; vertical-align:middle; ">압류지급일</caption>
  862. <input id="ipt_seizurepaydd" ref="/root/main/racmcust/seizurepaydd" class="input_essential" navindex="53" inputtype="date" style="left:1090px; top:532px; width:99px; height:19px; "/>
  863. <button id="button5" class="icon_search" visibility="hidden" style="left:1017px; top:84px; width:16px; height:16px; text-align:center; ">
  864. <caption/>
  865. <script type="javascript" ev:event="DOMActivate">
  866. <![CDATA[
  867. setParameter("PPRAC00600_custnm", model.getValue("/root/main/racmcust/custnm") );
  868. modalUrl("../../../mis/miscommonweb/xrw/PPRAC00600_거래처코드HELP.xrw", 1, 0, 0, "", "", "");
  869. ]]>
  870. </script>
  871. </button>
  872. <select id="chk_tempcreate" ref="/root/temp/condition/tempcreate" overflow="visible" appearance="full" cellspacing="0" cols="4" style="left:1100px; top:462px; width:95px; height:20px; border-style:none; ">
  873. <choices>
  874. <item>
  875. <label>임시 생성</label>
  876. <value>Y</value>
  877. </item>
  878. </choices>
  879. <script type="javascript" ev:event="xforms-select">
  880. <![CDATA[
  881. model.setValue(chk_purcuseyn.attribute("ref"), 'Y');
  882. ]]>
  883. </script>
  884. </select>
  885. <select id="chk_ctmsuseyn" ref="/root/main/racmcust/ctmsuseyn" navindex="32" overflow="visible" appearance="full" cellspacing="0" cols="4" style="left:1020px; top:283px; width:115px; height:20px; border-style:none; ">
  886. <choices>
  887. <item>
  888. <label>CTMS 사용여부</label>
  889. <value>Y</value>
  890. </item>
  891. </choices>
  892. <script type="javascript" ev:event="xforms-select">
  893. <![CDATA[
  894. model.setValue(chk_ctmsuseyn.attribute("ref"), 'Y');
  895. ]]>
  896. </script>
  897. </select>
  898. <caption id="caption3" style="left:1129px; top:487px; width:40px; height:15px; text-align:center; ">개월</caption>
  899. <input id="ipt_custcode" ref="/root/main/racmcust/custcode" class="input_essential" navindex="14" style="left:698px; top:32px; width:175px; height:19px; ">
  900. <script type="javascript" ev:event="xforms-value-changed">
  901. <![CDATA[
  902. model.setValue("/root/send/custcodelist/custcode", ipt_custcode.value);
  903. if(submit("TRRAC00604"))
  904. {
  905. if(model.getValue("/root/hidden/custnminfo/custnm") != ""){
  906. model.setValue("/root/send/custlist/custcode", ipt_custcode.value);
  907. submit("TRRAC00602");
  908. model.makeValue("/root/main/racmcust/statflag", "u");
  909. ipt_custcode.disabled = true;
  910. }
  911. }
  912. ]]>
  913. </script>
  914. </input>
  915. <caption id="caption22" class="cell_1" style="left:561px; top:30px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래처코드</caption>
  916. <line id="line12" class="line_2" style="x1:562px; y1:54px; x2:1194px; y2:54px; "/>
  917. </group>
  918. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  919. <button id="btn_save" class="btn4_letter2" navindex="57" style="left:1136px; top:3; width:56px; height:22px; ">
  920. <caption>저장</caption>
  921. <script type="javascript" ev:event="DOMActivate">
  922. <![CDATA[
  923. if(!isRequiredControls("ipt_entrregno2","ipt_custnm2","ipt_fromdd","ipt_todd","cmb_custflag2"))
  924. {
  925. return false;
  926. }
  927. for(var i = grd_racdcustlist.fixedRows ; i < grd_racdcustlist.rows ; i++)
  928. {
  929. if(grd_racdcustlist.valueMatrix(i, grd_racdcustlist.colRef("goodflag")) == "")
  930. {
  931. messageBox("물품구분은 필수입력입니다. ", "I000");
  932. return false;
  933. }
  934. }
  935. sEntrregno = model.getValue("/root/main/racmcust/entrregno");
  936. if(!radfBizCheck(sEntrregno) && model.getValue("/root/temp/condition/tempcreate") != "Y")
  937. {
  938. messageBox("틀린 사업자 번호 입니다.\n다시 확인하세요 ", "I000");
  939. return false;
  940. }
  941. for(var i = grd_custlist.fixedRows ; i <= grd_custlist.rows ; i ++)
  942. {
  943. if(grd_custlist.valueMatrix(i, grd_custlist.colRef("fromdd")) >= grd_custlist.valueMatrix(i, grd_custlist.colRef("todd")))
  944. {
  945. grd_custlist.rowStyle(i, "data", "background-color") = "#00ffff";
  946. }
  947. }
  948. model.copyNode("/root/send/save/racmcust", "/root/main/racmcust");
  949. // model.copyNode("/root/send/save/racdcustlist", "/root/main/racdcustlist");
  950. model.setValue("/root/send/save/racdcustlist", grd_racdcustlist.getUpdateData());
  951. if(misfSave("TXRAC00601"))
  952. {
  953. if(model.getValue("/root/main/racmcust/statflag") == "i")
  954. {
  955. messageBox("저장되었습니다.", "I000");
  956. }
  957. else if(model.getValue("/root/main/racmcust/statflag") == "u")
  958. {
  959. messageBox("수정되었습니다.", "I000");
  960. }
  961. }
  962. model.makeValue("/root/main/racmcust/statflag", "u");
  963. ipt_custcode.disabled = true;
  964. //ipt_entrregno2.disabled = true;
  965. ]]>
  966. </script>
  967. </button>
  968. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  969. <button id="button23" class="btn6_letter2" style="left:2; top:3; width:56px; height:22px; ">
  970. <caption>출력</caption>
  971. </button>
  972. </group>
  973. </xhtml:body>
  974. </xhtml:html>