SMRSC08200_구매인터페이스거래처정보.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC08200" position="absolute 0 0 1198 630" titletext="구매 인터페이스 거래처정보" oninit="SMRSC08200_oninit" onload="SMRSC08200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="구매 인터페이스 거래처정보" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Div id="grp_title" anchor="left top right" taborder="1" class="div_SA2" position="absolute 0 35 1195 75">
  9. <Layouts>
  10. <Layout>
  11. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 10 101 27"/>
  12. <Combo id="cmb_instcd" taborder="1" innerdataset="ds_init_cmb_instcd" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 100 10 265 29" onitemchanged="grp_title_cmb_instcd_onitemchanged"/>
  13. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 940 9 996 31" anchor="top right" onclick="grp_title_btn_search_onclick"/>
  14. <Shape id="line_title" linetype="vertical" class="line_4" position="absolute 926 7 932 33" anchor="top right"/>
  15. <Button id="btn_save" taborder="3" text="저장" class="btn4" position="absolute 1050 9 1106 31" anchor="top right" onclick="grp_title_btn_save_onclick"/>
  16. <Button id="btn_clear" taborder="4" text="초기화" class="btn4" position="absolute 1108 9 1176 31" anchor="top right" onclick="grp_title_btn_clear_onclick"/>
  17. <Button id="btn_maindeptcd" taborder="5" class="icon_search" position="absolute 509 10 525 26" onclick="grp_title_btn_maindeptcd_onclick"/>
  18. <Edit id="ipt_maindeptcd" taborder="6" class="input_essential" position="absolute 420 10 505 29" autoselect="true" autoskip="true"/>
  19. <Edit id="opt_mngtdeptnm" taborder="7" readonly="true" position="absolute 532 10 656 29" class="output"/>
  20. <Static id="caption1" text="기관코드 :" class="search_name" position="absolute 330 10 416 27"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Grid id="grd_rscifcust" taborder="2" binddataset="ds_main_RscifcustLists_rscifcustlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 105 1195 624" anchor="all" onexpanddown="grd_rscifcust_onexpanddown">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="22"/>
  29. <Column size="66"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="73"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. <Column size="111"/>
  39. <Column size="72"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" text="기관코드"/>
  56. <Cell col="2" text="거래처"/>
  57. <Cell col="3" text="거래처명"/>
  58. <Cell col="4" text="관리부서"/>
  59. <Cell col="5" text="관리부서명"/>
  60. <Cell col="6" text="담당자명"/>
  61. <Cell col="7" text="담당전화"/>
  62. <Cell col="8" text="담당휴대폰"/>
  63. <Cell col="9" text="담당자이메일"/>
  64. <Cell col="10" text="IFDB_IP"/>
  65. <Cell col="11" text="IFDB_PORT"/>
  66. <Cell col="12" text="IFDB_SERVICE"/>
  67. <Cell col="13" text="IFDB_USERID"/>
  68. <Cell col="14" text="IFDB_PASSWD"/>
  69. <Cell col="15" text="거래상태"/>
  70. <Cell col="16" text="비고"/>
  71. <Cell col="17"/>
  72. <Cell col="18"/>
  73. <Cell col="19"/>
  74. </Band>
  75. <Band id="body">
  76. <Cell celltype="head"/>
  77. <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:instcd"/>
  78. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:entrregno" expandshow="show"/>
  79. <Cell col="3" displaytype="none" edittype="none" text="bind:entrregnonnm"/>
  80. <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:maindeptcd" expandshow="show"/>
  81. <Cell col="5" displaytype="none" edittype="none" text="bind:maindeptcdnm"/>
  82. <Cell col="6" displaytype="text" edittype="text" text="bind:ifchrgnm"/>
  83. <Cell col="7" displaytype="text" edittype="text" text="bind:ifchrgtelno"/>
  84. <Cell col="8" displaytype="text" edittype="text" text="bind:ifchrgcelphon"/>
  85. <Cell col="9" displaytype="text" edittype="text" text="bind:ifchrgemail"/>
  86. <Cell col="10" displaytype="text" edittype="text" text="bind:ifdbip"/>
  87. <Cell col="11" displaytype="text" edittype="text" text="bind:ifdbport"/>
  88. <Cell col="12" displaytype="text" edittype="text" text="bind:ifdbsvcnm"/>
  89. <Cell col="13" displaytype="text" edittype="text" text="bind:ifdbuid"/>
  90. <Cell col="14" displaytype="text" edittype="text" text="bind:ifdbpwd"/>
  91. <Cell col="15" displaytype="text" edittype="text" text="bind:custstat"/>
  92. <Cell col="16" displaytype="text" edittype="text" text="bind:cmt"/>
  93. <Cell col="17" text="bind:oinstcd"/>
  94. <Cell col="18" text="bind:oentrregno"/>
  95. <Cell col="19" text="bind:omaindeptcd"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Shape id="line3" class="line_10" position="absolute 0 100 1195 106" anchor="left top right"/>
  101. <Static id="caption8" text="구매 인터페이스 거래처정보" class="tit_2" position="absolute 0 84 215 105"/>
  102. <Button id="button8" taborder="3" text="행추가" class="btn2" position="absolute 1087 81 1140 100" anchor="top right" onclick="button8_onclick"/>
  103. <Button id="button9" taborder="4" text="행삭제" class="btn2" position="absolute 1142 81 1195 100" anchor="top right" onclick="button9_onclick"/>
  104. </Layout>
  105. </Layouts>
  106. <Objects>
  107. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  108. <ColumnInfo>
  109. <Column id="instcd" type="STRING" size="256"/>
  110. <Column id="maindeptcd" type="STRING" size="256"/>
  111. <Column id="maindeptcdnm" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row>
  115. <Col id="instcd"/>
  116. <Col id="maindeptcd"/>
  117. <Col id="maindeptcdnm"/>
  118. </Row>
  119. </Rows>
  120. </Dataset>
  121. <Dataset id="ds_main_RscifcustLists_rscifcustlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_RscifcustLists_rscifcustlist_oncolumnchanged">
  122. <ColumnInfo>
  123. <Column id="instcd" type="STRING" size="256" sumtext=" 01 기관코드 "/>
  124. <Column id="entrregno" type="STRING" size="256" sumtext=" 02 거래처 "/>
  125. <Column id="entrregnonnm" type="STRING" size="256" sumtext=" 03 거래처명 "/>
  126. <Column id="maindeptcd" type="STRING" size="256" sumtext=" 04 관리부서코드 "/>
  127. <Column id="maindeptcdnm" type="STRING" size="256" sumtext=" 05 관리부서코드명 "/>
  128. <Column id="ifchrgnm" type="STRING" size="256" sumtext=" 06 담당자명 "/>
  129. <Column id="ifchrgtelno" type="STRING" size="256" sumtext=" 07 담당자전화번호 "/>
  130. <Column id="ifchrgcelphon" type="STRING" size="256" sumtext=" 08 담당자휴대폰번호 "/>
  131. <Column id="ifchrgemail" type="STRING" size="256" sumtext=" 09 담당자이메일주소 "/>
  132. <Column id="ifdbip" type="STRING" size="256" sumtext=" 10 인터페이스DB IP "/>
  133. <Column id="ifdbport" type="STRING" size="256" sumtext=" 11 인터페이스DB PORT "/>
  134. <Column id="ifdbsvcnm" type="STRING" size="256" sumtext=" 12 인터페이스DB SERVICE NAME "/>
  135. <Column id="ifdbuid" type="STRING" size="256" sumtext=" 13 인터페이스DB USERID "/>
  136. <Column id="ifdbpwd" type="STRING" size="256" sumtext=" 14 인터페이스DB PASSWD "/>
  137. <Column id="custstat" type="STRING" size="256" sumtext=" 15 거래상태(1:거래중, 2:거래종료) "/>
  138. <Column id="cmt" type="STRING" size="256" sumtext=" 16 비고 "/>
  139. <Column id="fstrgstrid" type="STRING" size="256" sumtext=" 17 최초등록자ID "/>
  140. <Column id="fstrgstdt" type="STRING" size="256" sumtext=" 18 최초등록일시 "/>
  141. <Column id="lastupdtrid" type="STRING" size="256" sumtext=" 19 최종수정자ID "/>
  142. <Column id="lastupdtdt" type="STRING" size="256" sumtext=" 20 최종수정일시 "/>
  143. <Column id="oinstcd" type="STRING" size="256" sumtext=" 01 기관코드 "/>
  144. <Column id="oentrregno" type="STRING" size="256" sumtext=" 02 거래처 "/>
  145. <Column id="omaindeptcd" type="STRING" size="256" sumtext=" 04 관리부서코드 "/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_init_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="cdnm" type="STRING" size="256"/>
  151. <Column id="cdid" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. </Dataset>
  154. </Objects>
  155. <Bind>
  156. <BindItem id="item0" compid="grp_title.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  157. <BindItem id="item1" compid="grp_title.ipt_maindeptcd" propid="value" datasetid="ds_send" columnid="maindeptcd"/>
  158. <BindItem id="item2" compid="grp_title.opt_mngtdeptnm" propid="value" datasetid="ds_send" columnid="maindeptcdnm"/>
  159. </Bind>
  160. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  161. * System Name :
  162. * Job Name :
  163. * Creator :
  164. * Make Date : 2017-06-19
  165. * Description :
  166. *---------------------------------------------------------------------------------------
  167. * Modify Date Modifier Modify Description
  168. *---------------------------------------------------------------------------------------
  169. * 2017-06-19 Live Converter TF->XP
  170. *
  171. *---------------------------------------------------------------------------------------
  172. ****************************************************************************************/
  173. include "com_commonxp::comm_main.xjs";
  174. include "mis_miscommonxp::MIS.xjs";
  175. include "mis_miscommonxp::RSZ001.xjs";
  176. var vGoodNew = "U";
  177. function SMRSC08200_oninit(obj:Form, e:InitEventInfo)
  178. {
  179. frmf_initForm(obj);
  180. }
  181. function SMRSC08200_onload(obj:Form, e:LoadEventInfo)
  182. {
  183. grdf_initGrid(grd_rscifcust);
  184. grdf_setRowTypeIcon(grd_rscifcust, 0);
  185. fInitForm();
  186. }
  187. function fInitForm()
  188. {
  189. fInitialize();
  190. }
  191. function fInitialize()
  192. {
  193. ds_send.clearData();
  194. ds_send.addRow();
  195. misfGridInit(grd_rscifcust);
  196. rszfUserInstList(grp_title.cmb_instcd,sysf_getUserInfo("userid"));
  197. var instcd = sysf_getUserInfo("dutplceinstcd");
  198. var instnm = sysf_getUserInfo("dutplceinstnm");
  199. grp_title.ipt_maindeptcd.value = sysf_getUserInfo("dutplcecd");
  200. grp_title.opt_mngtdeptnm.value = sysf_getUserInfo("dutplcenm");
  201. if(String(instcd).length > 0)
  202. {
  203. grp_title.cmb_instcd.value = instcd;
  204. }
  205. else
  206. {
  207. if(ds_init_comcd.rowcount > 0)
  208. {
  209. grp_title.cmb_instcd.index = 0;
  210. }
  211. }
  212. misfMsterDetailSet(grd_rscifcust,null, "TRRSC08200" ,"Y");
  213. }
  214. function grp_title_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  215. {
  216. misfGridInit(grd_rscifcust);
  217. grp_title.btn_search.click();
  218. }
  219. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  220. {
  221. if(e.columnid == "maindeptcd")
  222. {
  223. grp_title.ipt_maindeptcd.value = e.newvalue;
  224. grp_title.ipt_maindeptcd.setFocus();
  225. misfValidationCheck("02", "", "maindeptcd,maindeptcdnm" );
  226. }
  227. }
  228. function grp_title_btn_maindeptcd_onclick(obj:Button, e:ClickEventInfo)
  229. {
  230. var recv_list = "maindeptcd,maindeptcdnm";
  231. misfOpenPopUpList("02", grp_title.ipt_maindeptcd,"", recv_list) ;
  232. }
  233. function grp_title_btn_search_onclick(obj:Button, e:ClickEventInfo)
  234. {
  235. misfGridInit(grd_rscifcust);
  236. misfMsterDetailRetrieve();
  237. }
  238. function grp_title_btn_save_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. var oParam = {};
  241. oParam.id = "TXRSC08200";
  242. oParam.service = "purcbaseapp.PurcBaseMngt";
  243. oParam.method = "reqExSaveRscifcust";
  244. oParam.inds = "rscifcustlist=ds_main_RscifcustLists_rscifcustlist:u";
  245. oParam.outds = "";
  246. oParam.async = false;
  247. oParam.callback = "cf_TXRSC08200";
  248. tranf_submit(oParam);
  249. }
  250. function cf_TXRSC08200(sSvcId, nErrorCode, sErrorMsg)
  251. {
  252. if(nErrorCode < 0) return;
  253. else grp_title.btn_search.click();
  254. }
  255. function grp_title_btn_clear_onclick(obj:Button, e:ClickEventInfo)
  256. {
  257. fInitialize();
  258. }
  259. function button8_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. misfGridIUD(grd_rscifcust, "A");
  262. }
  263. function button9_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. misfGridIUD(grd_rscifcust, "D");
  266. }
  267. function grd_rscifcust_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  268. {
  269. if (e.cell == obj.getBindCellIndex("Body","entrregno"))
  270. {
  271. rszfOpenPopUpListByWndName(obj,"","entrregno,entrregnonnm","SPRSD00220","instcd","instcd");
  272. }
  273. if (e.cell == obj.getBindCellIndex("Body","maindeptcd"))
  274. {
  275. misfOpenPopUpList("02", obj,"", "maindeptcd,maindeptcdnm",ds_main_RscifcustLists_rscifcustlist.getColumn(ds_main_RscifcustLists_rscifcustlist.rowposition, "instcd"),"instcd" );
  276. }
  277. }
  278. function ds_main_RscifcustLists_rscifcustlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  279. {
  280. if (e.columnid == "entrregno")
  281. {
  282. rszfOpenPopUpListByWndName(grd_rscifcust,"","entrregno,entrregnonnm","SPRSD00220","instcd","instcd");
  283. }
  284. if (e.columnid == "maindeptcd")
  285. {
  286. misfValidationCheck("02", "", "maindeptcd,maindeptcdnm" );
  287. }
  288. }
  289. ]]></Script>
  290. </Form>
  291. </FDL>