SPRAC00610_거래처Excel입력.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRAC00610" position="absolute 0 0 1197 780" titletext="거래처Excel입력" onload="SPRAC00610_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="1" position="absolute 0 25 832 85" class="div_SA"/>
  8. <Div position="absolute 0 25 1195 778" id="group2" scrollbars="autoboth" anchor="all">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 0 60 1195 66" id="line2" class="line_10" anchor="left top right"/>
  12. <Grid position="absolute 0 65 1195 297" id="grd_custchecklist" binddataset="ds_hidden_list_custchecklist" anchor="left top right">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25" band="left"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="100"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. <Column size="100"/>
  39. <Column size="100"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1" text="사업자등록번호"/>
  60. <Cell col="2" text="거래처명"/>
  61. <Cell col="3" text="시작일자"/>
  62. <Cell col="4" text="종료일자"/>
  63. <Cell col="5" text="대표자명"/>
  64. <Cell col="6" text="주민등록번호"/>
  65. <Cell col="7" text="업태"/>
  66. <Cell col="8" text="종목"/>
  67. <Cell col="9" text="주거래종목"/>
  68. <Cell col="10" text="매입/매출처"/>
  69. <Cell col="11" text="법인구분"/>
  70. <Cell col="12" text="우편번호1"/>
  71. <Cell col="13" text="우편번호2"/>
  72. <Cell col="14" text="우편번호일련번호"/>
  73. <Cell col="15" text="상위주소"/>
  74. <Cell col="16" text="하위주소"/>
  75. <Cell col="17" text="전화번호"/>
  76. <Cell col="18" text="팩스번호"/>
  77. <Cell col="19" text="은행코드"/>
  78. <Cell col="20" text="예금주"/>
  79. <Cell col="21" text="계좌번호"/>
  80. <Cell col="22" text="이메일주소"/>
  81. <Cell col="23" text="홈페이지주소"/>
  82. <Cell col="24" text="승계구사업자등록번호"/>
  83. <Cell col="25" text="지불조건"/>
  84. <Cell col="26" text="회계담당자명"/>
  85. <Cell col="27" text="회계담당자전화번호"/>
  86. <Cell col="28" text="회계담당자휴대폰번호"/>
  87. <Cell col="29" text="회계담당자이메일주소"/>
  88. <Cell col="30" text="거래상태"/>
  89. <Cell col="31" text="비고"/>
  90. <Cell col="32" text="법인명"/>
  91. <Cell col="33" text="출력순서"/>
  92. <Cell col="34" text="압류여부"/>
  93. <Cell col="35" text="유효여부"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell celltype="head"/>
  97. <Cell col="1" displaytype="text" text="bind:entrregno"/>
  98. <Cell col="2" displaytype="text" text="bind:custnm"/>
  99. <Cell col="3" displaytype="text" text="bind:fromdd"/>
  100. <Cell col="4" displaytype="text" text="bind:todd"/>
  101. <Cell col="5" displaytype="text" text="bind:prsdnm"/>
  102. <Cell col="6" displaytype="text" text="bind:rrgstno"/>
  103. <Cell col="7" displaytype="text" text="bind:bizcont"/>
  104. <Cell col="8" displaytype="text" text="bind:item"/>
  105. <Cell col="9" displaytype="text" text="bind:mainbizitem"/>
  106. <Cell col="10" displaytype="text" text="bind:custflag"/>
  107. <Cell col="11" displaytype="text" text="bind:instflag"/>
  108. <Cell col="12" displaytype="text" text="bind:zipcd1"/>
  109. <Cell col="13" displaytype="text" text="bind:zipcd2"/>
  110. <Cell col="14" displaytype="text" text="bind:zipcdseqno"/>
  111. <Cell col="15" displaytype="text" text="bind:supaddr"/>
  112. <Cell col="16" displaytype="text" text="bind:infaddr"/>
  113. <Cell col="17" displaytype="text" text="bind:cntctel"/>
  114. <Cell col="18" displaytype="text" text="bind:faxno"/>
  115. <Cell col="19" displaytype="text" text="bind:bankcd"/>
  116. <Cell col="20" displaytype="text" text="bind:depor"/>
  117. <Cell col="21" displaytype="text" text="bind:aactno"/>
  118. <Cell col="22" displaytype="text" text="bind:emailaddr"/>
  119. <Cell col="23" displaytype="text" text="bind:homepgaddr"/>
  120. <Cell col="24" displaytype="text" text="bind:oldentrregno"/>
  121. <Cell col="25" displaytype="text" text="bind:paycond"/>
  122. <Cell col="26" displaytype="text" text="bind:acntchrgnm"/>
  123. <Cell col="27" displaytype="text" text="bind:acntchrgtelno"/>
  124. <Cell col="28" displaytype="text" text="bind:acntchrgmpphonno"/>
  125. <Cell col="29" displaytype="text" text="bind:acntchrgemailaddr"/>
  126. <Cell col="30" displaytype="text" text="bind:custstat"/>
  127. <Cell col="31" displaytype="text" text="bind:cmt"/>
  128. <Cell col="32" displaytype="text" text="bind:cmpynm"/>
  129. <Cell col="33" displaytype="text" text="bind:prntseqno"/>
  130. <Cell col="34" displaytype="text" text="bind:seizureyn"/>
  131. <Cell col="35" displaytype="checkbox" edittype="checkbox" text="bind:validyn"/>
  132. </Band>
  133. </Format>
  134. </Formats>
  135. </Grid>
  136. <Button position="absolute 977 32 1019 54" id="btn_excel" class="btn2" taborder="-1" text="검사" anchor="default" onclick="group2_btn_excel_onclick"/>
  137. <Button position="absolute 977 8 1090 30" id="button1" class="btn7" taborder="-1" text="Excel 불러오기" anchor="default" onclick="group2_button1_onclick"/>
  138. <Button position="absolute 1135 8 1191 30" id="btn_save" class="btn4" enable="false" taborder="-1" text="저장" anchor="default" onclick="group2_btn_save_onclick"/>
  139. <Grid position="absolute 0 302 1195 753" id="grd_custlist" binddataset="ds_main_list_custlist" anchor="all">
  140. <Formats>
  141. <Format id="default">
  142. <Columns>
  143. <Column size="25" band="left"/>
  144. <Column size="100"/>
  145. <Column size="100"/>
  146. <Column size="100"/>
  147. <Column size="100"/>
  148. <Column size="100"/>
  149. <Column size="100"/>
  150. <Column size="100"/>
  151. <Column size="100"/>
  152. <Column size="100"/>
  153. <Column size="100"/>
  154. <Column size="100"/>
  155. <Column size="100"/>
  156. <Column size="100"/>
  157. <Column size="100"/>
  158. <Column size="100"/>
  159. <Column size="100"/>
  160. <Column size="100"/>
  161. <Column size="100"/>
  162. <Column size="100"/>
  163. <Column size="100"/>
  164. <Column size="100"/>
  165. <Column size="100"/>
  166. <Column size="100"/>
  167. <Column size="100"/>
  168. <Column size="100"/>
  169. <Column size="100"/>
  170. <Column size="100"/>
  171. <Column size="100"/>
  172. <Column size="100"/>
  173. <Column size="100"/>
  174. <Column size="100"/>
  175. <Column size="100"/>
  176. <Column size="100"/>
  177. <Column size="100"/>
  178. <Column size="100"/>
  179. </Columns>
  180. <Rows>
  181. <Row size="24" band="head"/>
  182. <Row size="24"/>
  183. </Rows>
  184. <Band id="head">
  185. <Cell/>
  186. <Cell col="1" text="사업자등록번호"/>
  187. <Cell col="2" text="거래처명"/>
  188. <Cell col="3" text="시작일자"/>
  189. <Cell col="4" text="종료일자"/>
  190. <Cell col="5" text="대표자명"/>
  191. <Cell col="6" text="주민등록번호"/>
  192. <Cell col="7" text="업태"/>
  193. <Cell col="8" text="종목"/>
  194. <Cell col="9" text="주거래종목"/>
  195. <Cell col="10" text="매입/매출처"/>
  196. <Cell col="11" text="법인구분"/>
  197. <Cell col="12" text="우편번호1"/>
  198. <Cell col="13" text="우편번호2"/>
  199. <Cell col="14" text="우편번호일련번호"/>
  200. <Cell col="15" text="상위주소"/>
  201. <Cell col="16" text="하위주소"/>
  202. <Cell col="17" text="전화번호"/>
  203. <Cell col="18" text="팩스번호"/>
  204. <Cell col="19" text="은행코드"/>
  205. <Cell col="20" text="예금주"/>
  206. <Cell col="21" text="계좌번호"/>
  207. <Cell col="22" text="이메일주소"/>
  208. <Cell col="23" text="홈페이지주소"/>
  209. <Cell col="24" text="승계구사업자등록번호"/>
  210. <Cell col="25" text="지불조건"/>
  211. <Cell col="26" text="회계담당자명"/>
  212. <Cell col="27" text="회계담당자전화번호"/>
  213. <Cell col="28" text="회계담당자휴대폰번호"/>
  214. <Cell col="29" text="회계담당자이메일주소"/>
  215. <Cell col="30" text="거래상태"/>
  216. <Cell col="31" text="비고"/>
  217. <Cell col="32" text="법인명"/>
  218. <Cell col="33" text="출력순서"/>
  219. <Cell col="34" text="압류여부"/>
  220. <Cell col="35" text="유효여부"/>
  221. </Band>
  222. <Band id="body">
  223. <Cell celltype="head"/>
  224. <Cell col="1" displaytype="text" text="bind:entrregno"/>
  225. <Cell col="2" displaytype="text" text="bind:custnm"/>
  226. <Cell col="3" displaytype="text" text="bind:fromdd"/>
  227. <Cell col="4" displaytype="text" text="bind:todd"/>
  228. <Cell col="5" displaytype="text" text="bind:prsdnm"/>
  229. <Cell col="6" displaytype="text" text="bind:rrgstno"/>
  230. <Cell col="7" displaytype="text" text="bind:bizcont"/>
  231. <Cell col="8" displaytype="text" text="bind:item"/>
  232. <Cell col="9" displaytype="text" text="bind:mainbizitem"/>
  233. <Cell col="10" displaytype="text" text="bind:custflag"/>
  234. <Cell col="11" displaytype="text" text="bind:instflag"/>
  235. <Cell col="12" displaytype="text" text="bind:zipcd1"/>
  236. <Cell col="13" displaytype="text" text="bind:zipcd2"/>
  237. <Cell col="14" displaytype="text" text="bind:zipcdseqno"/>
  238. <Cell col="15" displaytype="text" text="bind:supaddr"/>
  239. <Cell col="16" displaytype="text" text="bind:infaddr"/>
  240. <Cell col="17" displaytype="text" text="bind:cntctel"/>
  241. <Cell col="18" displaytype="text" text="bind:faxno"/>
  242. <Cell col="19" displaytype="text" text="bind:bankcd"/>
  243. <Cell col="20" displaytype="text" text="bind:depor"/>
  244. <Cell col="21" displaytype="text" text="bind:aactno"/>
  245. <Cell col="22" displaytype="text" text="bind:emailaddr"/>
  246. <Cell col="23" displaytype="text" text="bind:homepgaddr"/>
  247. <Cell col="24" displaytype="text" text="bind:oldentrregno"/>
  248. <Cell col="25" displaytype="text" text="bind:paycond"/>
  249. <Cell col="26" displaytype="text" text="bind:acntchrgnm"/>
  250. <Cell col="27" displaytype="text" text="bind:acntchrgtelno"/>
  251. <Cell col="28" displaytype="text" text="bind:acntchrgmpphonno"/>
  252. <Cell col="29" displaytype="text" text="bind:acntchrgemailaddr"/>
  253. <Cell col="30" displaytype="text" text="bind:custstat"/>
  254. <Cell col="31" displaytype="text" text="bind:cmt"/>
  255. <Cell col="32" displaytype="text" text="bind:cmpynm"/>
  256. <Cell col="33" displaytype="text" text="bind:prntseqno"/>
  257. <Cell col="34" displaytype="text" text="bind:seizureyn"/>
  258. <Cell col="35" displaytype="text" text="bind:statflag"/>
  259. </Band>
  260. </Format>
  261. </Formats>
  262. </Grid>
  263. <Shape position="absolute 0 297 1195 303" id="line1" class="line_10" anchor="left top right"/>
  264. <Button position="absolute 840 8 975 30" id="button2" class="btn7" taborder="-1" text="Excel 출력(오류분)" anchor="default" onclick="group2_button2_onclick"/>
  265. <Button position="absolute 840 32 975 54" id="button3" class="btn7" taborder="-1" text="Excel 출력(입력분)" anchor="default" onclick="group2_button3_onclick"/>
  266. <Button position="absolute 520 11 536 27" align="align:center middle;" id="btn_regnohelp" class="icon_search" taborder="11" text="" anchor="default" onclick="group2_btn_regnohelp_onclick"/>
  267. <Edit position="absolute 540 9 685 28" id="ipt_custnm" class="input_essential" taborder="12" anchor="default" onkeydown="group2_ipt_custnm_onkeydown"/>
  268. <Static text="최초입력일자 :" position="absolute 280 34 414 51" id="caption12" class="search_name" anchor="default"/>
  269. <Static text="~" position="absolute 522 35 542 50" id="caption13" anchor="default"/>
  270. <Static text="사업자등록번호 :" position="absolute 280 10 405 27" id="caption5" class="search_name" anchor="default"/>
  271. <Calendar position="absolute 540 33 645 52" id="ipt_inserttodd" class="input_essential" anchor="default"/>
  272. <MaskEdit position="absolute 409 9 514 28" align="align:center middle;" id="ipt_entrregno" class="input_essential" taborder="10" mask="999-99-99999" anchor="default" onkeydown="group2_ipt_entrregno_onkeydown"/>
  273. <Calendar position="absolute 409 33 514 52" id="ipt_insertfromdd" class="input_essential" anchor="default"/>
  274. <Combo position="absolute 95 9 270 28" id="cmb_instcd" class="combo_essential" taborder="1" anchor="default"/>
  275. <Static text="복사기관 :" position="absolute 6 10 92 27" id="caption14" class="search_name" anchor="default"/>
  276. <Button position="absolute 706 20 762 42" id="btn_search" class="btn1" taborder="15" text="조회" anchor="default" onclick="group2_btn_search_onclick"/>
  277. <Combo position="absolute 95 33 270 52" id="cmb_insertinstcd" class="combo_essential" enable="false" taborder="1" anchor="default"/>
  278. <Static text="기 관 :" position="absolute 6 34 92 51" id="caption1" class="search_name" anchor="default"/>
  279. <Button position="absolute 764 20 820 42" id="button4" class="btn4" taborder="-1" text="복사" anchor="default" onclick="group2_button4_onclick"/>
  280. <Shape id="line30" linetype="vertical" class="line_4" position="absolute 692 11 698 52"/>
  281. </Layout>
  282. </Layouts>
  283. </Div>
  284. <Static id="caption6" text="거래처 Excel 입력" class="tit_1" position="absolute 0 0 160 25"/>
  285. </Layout>
  286. </Layouts>
  287. <Objects>
  288. <Dataset id="ds_send_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  289. <ColumnInfo>
  290. <Column id="instcd" type="STRING" size="256"/>
  291. <Column id="entrregno" type="STRING" size="256"/>
  292. <Column id="custnm" type="STRING" size="256"/>
  293. <Column id="insertfromdd" type="STRING" size="256"/>
  294. <Column id="inserttodd" type="STRING" size="256"/>
  295. <Column id="insertinstcd" type="STRING" size="256"/>
  296. </ColumnInfo>
  297. <Rows>
  298. <Row>
  299. <Col id="instcd"/>
  300. <Col id="entrregno"/>
  301. <Col id="custnm"/>
  302. <Col id="insertfromdd">20080301</Col>
  303. <Col id="inserttodd"/>
  304. <Col id="insertinstcd"/>
  305. </Row>
  306. </Rows>
  307. </Dataset>
  308. <Dataset id="ds_hidden_list_custchecklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  309. <Dataset id="ds_send_list_custlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  310. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  311. <ColumnInfo>
  312. <Column id="temp" type="STRING" size="256"/>
  313. </ColumnInfo>
  314. </Dataset>
  315. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  316. <ColumnInfo/>
  317. </Dataset>
  318. <Dataset id="ds_main_list_custlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  319. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  320. <ColumnInfo>
  321. <Column id="init" type="STRING" size="256"/>
  322. </ColumnInfo>
  323. <Rows>
  324. <Row>
  325. <Col id="init"/>
  326. </Row>
  327. </Rows>
  328. </Dataset>
  329. </Objects>
  330. <Bind>
  331. <BindItem id="item0" compid="group2.ipt_custnm" propid="value" datasetid="ds_send_condition" columnid="custnm"/>
  332. <BindItem id="item1" compid="group2.ipt_inserttodd" propid="value" datasetid="ds_send_condition" columnid="inserttodd"/>
  333. <BindItem id="item2" compid="group2.ipt_entrregno" propid="value" datasetid="ds_send_condition" columnid="entrregno"/>
  334. <BindItem id="item3" compid="group2.ipt_insertfromdd" propid="value" datasetid="ds_send_condition" columnid="insertfromdd"/>
  335. <BindItem id="item4" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_condition" columnid="instcd"/>
  336. <BindItem id="item5" compid="group2.cmb_insertinstcd" propid="value" datasetid="ds_send_condition" columnid="insertinstcd"/>
  337. </Bind>
  338. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  339. * System Name :
  340. * Job Name :
  341. * Creator :
  342. * Make Date : 2017-06-19
  343. * Description :
  344. *---------------------------------------------------------------------------------------
  345. * Modify Date Modifier Modify Description
  346. *---------------------------------------------------------------------------------------
  347. * 2017-06-19 Live Converter TF->XP
  348. *
  349. *---------------------------------------------------------------------------------------
  350. ****************************************************************************************/
  351. //=======================================================================================
  352. // Lib Include
  353. //---------------------------------------------------------------------------------------
  354. include "com_commonxp::comm_main.xjs";
  355. include "mis_miscommonxp::MIS.xjs";
  356. include "mis_miscommonxp::RSZ001.xjs";
  357. include "mis_miscommonxp::RAC001.xjs";
  358. include "mis_acntcommonxp::RAD001.xjs";
  359. //=======================================================================================
  360. // Global Form Variable
  361. //---------------------------------------------------------------------------------------
  362. var arErrorCode = new HashArray();
  363. //=======================================================================================
  364. // Function
  365. //---------------------------------------------------------------------------------------
  366. /****************************************************************************************
  367. * Argument : N/A
  368. * Description : 초기화
  369. ****************************************************************************************/
  370. function fInitialize() {
  371. ds_hidden_list_custchecklist.clearData();
  372. ds_main_list_custlist.clearData();
  373. misfComboComCdList("Z0007", group2.cmb_instcd, "N");
  374. group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  375. misfComboComCdList("Z0007", group2.cmb_insertinstcd, "N");
  376. group2.cmb_insertinstcd.value = sysf_getUserInfo("dutplceinstcd");
  377. group2.ipt_inserttodd.value = utlf_getCurrentDate().toString();
  378. }
  379. /****************************************************************************************
  380. * Argument : N/A
  381. * Description : 저장
  382. ****************************************************************************************/
  383. function fSave()
  384. {
  385. var dsUpdate = grdf_getGridUpdateData(group2.grd_custlist, "all");
  386. if( utlf_isNull(dsUpdate) || dsUpdate.rowcount == 0 )
  387. {
  388. return false;
  389. }
  390. ds_send_list_custlist.copyData(ds_main_list_custlist);
  391. ds_send_list_custlist.updateColID("statflag","status");
  392. dsf_setDefaultVal(ds_send_list_custlist, "seizureyn:N,purcuseyn:N,nutruseyn:N,pharmuseyn:N,ctmsuseyn:N");
  393. var oParam = {};
  394. oParam.id = "TXRAC00601";
  395. oParam.service = "acntbaseinfoapp.AcntBaseInfo";
  396. oParam.method = "reqExeRacmCustlist";
  397. oParam.inds = "req=ds_send_list_custlist";
  398. //oParam.outds = "ds_hidden_return=return";
  399. oParam.async = false;
  400. //oParam.callback = "cf_TXRAC00601";
  401. tranf_submit(oParam);
  402. ds_hidden_list_custchecklist.applyChange();
  403. ds_main_list_custlist.applyChange();
  404. }
  405. /****************************************************************************************
  406. * Argument : N/A
  407. * Description : not null check
  408. ****************************************************************************************/
  409. function fDataCheck()
  410. {
  411. if(group2.grd_custlist.rowcount == 0) return;
  412. var bDataValidFlag = true;
  413. var bflag = true;
  414. for(var i = 0 ; i < ds_main_list_custlist.rowcount ; i++)
  415. {
  416. bflag = true;
  417. var sCustNm = dsf_getColumnNullToEmpty(ds_main_list_custlist, i, "custnm");
  418. if(sCustNm == "")
  419. {
  420. misfSetGridColor(group2.grd_custlist, "custnm", "#ff0000", "B" ,i);
  421. bflag = false;
  422. }
  423. else
  424. {
  425. misfSetGridColor(group2.grd_custlist, "custnm", "#ffff00", "B" ,i);
  426. }
  427. var sFromdd = dsf_getColumnNullToEmpty(ds_main_list_custlist, i, "fromdd");
  428. if(!utlf_isValidDateTime(sFromdd, "YYYYMMDD"))
  429. {
  430. misfSetGridColor(group2.grd_custlist, "fromdd", "#ff0000", "B" ,i);
  431. bflag = false;
  432. }
  433. else
  434. {
  435. misfSetGridColor(group2.grd_custlist, "fromdd", "#ffff00", "B" ,i);
  436. }
  437. var sTodd = dsf_getColumnNullToEmpty(ds_main_list_custlist, i, "todd");
  438. if(!utlf_isValidDateTime(sFromdd, "YYYYMMDD"))
  439. {
  440. misfSetGridColor(group2.grd_custlist, "todd", "#ff0000", "B" ,i);
  441. bflag = false;
  442. }
  443. else
  444. {
  445. misfSetGridColor(group2.grd_custlist, "todd", "#ffff00", "B" ,i);
  446. }
  447. if(bflag == false)
  448. {
  449. ds_main_list_custlist.setColumn(i, "validyn", "N");
  450. bDataValidFlag = false;
  451. }
  452. else
  453. {
  454. ds_main_list_custlist.setColumn(i, "validyn", "Y");
  455. }
  456. }
  457. if(bDataValidFlag == true)
  458. {
  459. group2.btn_save.enable = true;
  460. for(var i = 0 ; i < group2.grd_custlist.rowcount; i++)
  461. {
  462. grdf_setStatus(group2.grd_custlist, "I", [i]);
  463. }
  464. }
  465. }
  466. /****************************************************************************************
  467. * Argument : N/A
  468. * Description : 엑셀 입력
  469. ****************************************************************************************/
  470. function fInputExcel(pGrid)
  471. {
  472. grdf_ImportExcel(pGrid.binddataset, 2, pGrid, 0);
  473. if(eval(pGrid.binddataset).rowcount > 0) {
  474. eval(pGrid.binddataset).deleteRow(0);
  475. for(var i = 0; i < pGrid.rowcount; i++)
  476. {
  477. grdf_setStatus(pGrid, "I", [i]);
  478. }
  479. }
  480. }
  481. //=======================================================================================
  482. // Event
  483. //---------------------------------------------------------------------------------------
  484. /****************************************************************************************
  485. * Components : Form
  486. * Description : 화면 처음 초기화시 폼초기화
  487. ****************************************************************************************/
  488. function SPRAC00610_onload(obj:Form, e:LoadEventInfo) {
  489. frmf_initForm(obj);
  490. //grdf_initGrid(grd_XXX);
  491. //grdf_setGridSort(grd_XXX);
  492. grdf_setRowTypeIcon(group2.grd_custchecklist, 0);
  493. grdf_setRowTypeIcon(group2.grd_custlist, 0);
  494. fInitialize();
  495. }
  496. /****************************************************************************************
  497. * Components : Button
  498. * Description : 검사
  499. ****************************************************************************************/
  500. function group2_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  501. fDataCheck();
  502. }
  503. /****************************************************************************************
  504. * Components : Button
  505. * Description : Excel 불러오기
  506. ****************************************************************************************/
  507. function group2_button1_onclick(obj:Button, e:ClickEventInfo) {
  508. ds_hidden_list_custchecklist.clearData();
  509. ds_main_list_custlist.clearData();
  510. fInputExcel(group2.grd_custchecklist);
  511. group2.btn_save.enable = false;
  512. var instcd = sysf_getUserInfo("dutplceinstcd")
  513. var bflag = false;
  514. var vRowNumber = 0;
  515. for(var i = 0 ; i < ds_hidden_list_custchecklist.rowcount ; i++)
  516. {
  517. bflag = true;
  518. sValidYN = ds_hidden_list_custchecklist.getColumn(i, "validyn");
  519. if(sValidYN != "Y") continue;
  520. if(bflag && sValidYN != "Y")
  521. {
  522. misfSetGridColor(group3.grd_custchecklist, "all", "#333333", "B" ,i);
  523. bflag = false;
  524. }
  525. sEntrregno = ds_hidden_list_custchecklist.getColumn(i, "entrregno");
  526. if(bflag && !radfBizCheck(sEntrregno))
  527. {
  528. misfSetGridColor(group3.grd_custchecklist, "entrregno", "#ff0000", "B" ,i);
  529. ds_hidden_list_custchecklist.setColumn(i, "validyn", "ERROR");
  530. bflag = false;
  531. }
  532. if(bflag && !utlf_isNull(radfcheckCustExist(instcd, sEntrregno, "N")))
  533. {
  534. misfSetGridColor(group3.grd_custchecklist, "entrregno", "#00ff00", "B" ,i);
  535. ds_hidden_list_custchecklist.setColumn(i, "validyn", "EXIST");
  536. bflag = false;
  537. }
  538. if(bflag == true)
  539. {
  540. ds_main_list_custlist.insertRow(vRowNumber);
  541. ds_main_list_custlist.copyRow(vRowNumber, ds_hidden_list_custchecklist, i);
  542. dsf_makeValue(ds_main_list_custlist, "statflag", "string", "i", vRowNumber);
  543. vRowNumber++;
  544. }
  545. for(var j = i+1 ; j < ds_hidden_list_custchecklist.rowcount ; j++)
  546. {
  547. if(sEntrregno == ds_hidden_list_custchecklist.getColumn(j, "entrregno"))
  548. {
  549. ds_hidden_list_custchecklist.setColumn(j, "validyn", "D");
  550. misfSetGridColor(group3.grd_custchecklist, "all", "#800080", "B" ,j);
  551. }
  552. }
  553. }
  554. }
  555. /****************************************************************************************
  556. * Components : Button
  557. * Description : 저장
  558. ****************************************************************************************/
  559. function group2_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  560. fSave();
  561. group2.btn_save.enable = false;
  562. }
  563. /****************************************************************************************
  564. * Components : Button
  565. * Description : Excel 출력(오류분)
  566. ****************************************************************************************/
  567. function group2_button2_onclick(obj:Button, e:ClickEventInfo) {
  568. misfSaveExcel(group2.grd_custchecklist);
  569. }
  570. /****************************************************************************************
  571. * Components : Button
  572. * Description : Excel 출력(입력분)
  573. ****************************************************************************************/
  574. function group2_button3_onclick(obj:Button, e:ClickEventInfo) {
  575. misfSaveExcel(group2.grd_custlist);
  576. }
  577. /****************************************************************************************
  578. * Components : Button
  579. * Description : 사업자등록번호 조회팝업
  580. ****************************************************************************************/
  581. function group2_btn_regnohelp_onclick(obj:Button, e:ClickEventInfo) {
  582. misfOpenPopUpList("14", group2.ipt_entrregno, "", "entrregno,custnm", "cmb_custstat,cmb_instcd", "custuseyn,instcd");
  583. }
  584. /****************************************************************************************
  585. * Components : MaskEdit
  586. * Description : 사업자등록명 변경 후 조회
  587. ****************************************************************************************/
  588. function group2_ipt_custnm_onkeydown(obj:Edit, e:KeyEventInfo) {
  589. if(e.keycode == 13)
  590. {
  591. obj.updateToDataset();
  592. group2.btn_search.click();
  593. }
  594. }
  595. /****************************************************************************************
  596. * Components : MaskEdit
  597. * Description : 사업자등록번호 변경 후 조회
  598. ****************************************************************************************/
  599. function group2_ipt_entrregno_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  600. if(e.keycode == 13)
  601. {
  602. obj.updateToDataset();
  603. group2.btn_search.click();
  604. }
  605. }
  606. /****************************************************************************************
  607. * Components : Button
  608. * Description : 조회
  609. ****************************************************************************************/
  610. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  611. ds_hidden_list_custchecklist.clearData();
  612. ds_main_list_custlist.clearData();
  613. var oParam = {};
  614. oParam.id = "TRRAC00603";
  615. oParam.service = "acntbaseinfoapp.AcntBaseInfo";
  616. oParam.method = "reqGetRacmCopyCustList";
  617. oParam.inds = "req=ds_send_condition";
  618. oParam.outds = "ds_hidden_list_custchecklist=custchecklist";
  619. oParam.async = false;
  620. //oParam.callback = "cf_TRRAC00603";
  621. tranf_submit(oParam);
  622. }
  623. /****************************************************************************************
  624. * Components : Button
  625. * Description : 복사
  626. ****************************************************************************************/
  627. function group2_button4_onclick(obj:Button, e:ClickEventInfo) {
  628. ds_main_list_custlist.clearData();
  629. group2.btn_save.enable = false;
  630. var vRowNumber = 0;
  631. var bflag = true;
  632. for(var i = 0 ; i < ds_hidden_list_custchecklist.rowcount ; i++)
  633. {
  634. bflag = true;
  635. sValidYN = ds_hidden_list_custchecklist.getColumn(i, "validyn");
  636. if(!sValidYN)
  637. {
  638. misfSetGridColor(group3.grd_custchecklist, "all", "#333333", "B" ,i);
  639. bflag = false;
  640. }
  641. sEntrregno = ds_hidden_list_custchecklist.getColumn(i, "entrregno");
  642. if(bflag && !radfBizCheck(sEntrregno))
  643. {
  644. misfSetGridColor(group3.grd_custchecklist, "entrregno", "#ff0000", "B" ,i);
  645. ds_hidden_list_custchecklist.setColumn(i, "validyn", "E");
  646. bflag = false;
  647. }
  648. if(bflag)
  649. {
  650. ds_main_list_custlist.insertRow(vRowNumber);
  651. ds_main_list_custlist.copyRow(vRowNumber, ds_hidden_list_custchecklist, i);
  652. dsf_makeValue(ds_main_list_custlist, "statflag", "string", "i", vRowNumber);
  653. vRowNumber++;
  654. }
  655. }
  656. }
  657. ]]></Script>
  658. </Form>
  659. </FDL>