SMRSC00800_제조회사코드등록.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC00800" position="absolute 0 0 1197 788" titletext="제조회사코드 등록" onload="SMRSC00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 51 1195 786" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 1195 40" id="grp_sea" class="div_SA2" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Static text="제조회사 명 :" position="absolute 15 11 119 28" id="cap_prodcmpynm" class="search_name" anchor="default"/>
  14. <Shape position="absolute 1107 9 1113 31" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  15. <Button position="absolute 1124 9 1180 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  16. <Edit position="absolute 125 10 385 29" align="align:center middle;" id="ipt_prodcmpynm" class="input_default" anchor="default" onkeydown="grp_biz_grp_sea_ipt_prodcmpynm_onkeydown" autoselect="true"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Static text="제조회사 list" position="absolute 0 53 157 70" id="caption1" class="tit_2" anchor="default"/>
  21. <Shape position="absolute 0 69 1195 75" id="line1" class="line_10" anchor="left top right"/>
  22. <Grid position="absolute 0 74 1195 735" id="grd_rscmpcomlist" binddataset="ds_main_rscmpcomlist" anchor="all" autoenter="key">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="25" band="left"/>
  27. <Column size="100"/>
  28. <Column size="300"/>
  29. <Column size="160"/>
  30. <Column size="290"/>
  31. <Column size="300"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="제조회사코드"/>
  40. <Cell col="2" text="제조회사명"/>
  41. <Cell col="3" text="전화번호"/>
  42. <Cell col="4" text="주소"/>
  43. <Cell col="5" text="비고"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head"/>
  47. <Cell col="1" style="background:URL('IMG::com/input_essential.png');background2:URL('IMG::com/input_essential.png');" class="input_essential" text="bind:prodcmpycd" enable="false"/>
  48. <Cell col="2" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:URL('IMG::com/input_essential.png');background2:URL('IMG::com/input_essential.png');" class="input_essential" text="bind:prodcmpynm" wordwrap="word" editautoselect="true"/>
  49. <Cell col="3" displaytype="text" edittype="text" style="background:white;background2:white;" text="bind:prodcmpytel" mask="expr:utlf_isNull(prodcmpytel) ? '' : '##########'" maskchar=" " editautoselect="true"/>
  50. <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:white;background2:white;" text="bind:prodcmpyaddr" wordwrap="word" editautoselect="true"/>
  51. <Cell col="5" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:white;background2:white;" text="bind:cmt" wordwrap="word" editautoselect="true"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. <Button position="absolute 1027 47 1080 69" id="btn_grdadd1" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_btn_grdadd1_onclick"/>
  57. <Button position="absolute 1082 47 1135 69" id="btn_grddel1" class="btn2" text="행삭제" anchor="top right" onclick="grp_biz_btn_grddel1_onclick"/>
  58. <Button position="absolute 1137 47 1195 69" id="btn_excel" class="btn7" text="엑셀" anchor="top right" onclick="grp_biz_btn_excel_onclick"/>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. <Div position="absolute 0 25 1195 53" id="group4" anchor="left top right">
  63. <Layouts>
  64. <Layout>
  65. <Button position="absolute 1069 1 1125 23" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group4_btn_save_onclick"/>
  66. <Shape position="absolute 0 22 1195 28" id="line14" class="line_6" anchor="left top right"/>
  67. <Button position="absolute 1127 1 1195 23" id="btn_clear" class="btn4" text="초기화" anchor="top right" onclick="group4_btn_clear_onclick"/>
  68. <Button position="absolute 0 1 56 23" id="btn_prt" class="btn6" visible="false" text="출력" anchor="default"/>
  69. <Button position="absolute 58 1 138 23" id="btn_scrnmove" class="btn3" visible="false" text="화면이동" anchor="default"/>
  70. </Layout>
  71. </Layouts>
  72. </Div>
  73. <Static id="caption6" text="제조회사코드 등록" class="tit_1" position="absolute 0 0 160 25"/>
  74. </Layout>
  75. </Layouts>
  76. <Objects>
  77. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  78. <ColumnInfo>
  79. <Column id="prodcmpynm" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row>
  83. <Col id="prodcmpynm"/>
  84. </Row>
  85. </Rows>
  86. </Dataset>
  87. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  88. <ColumnInfo>
  89. <Column id="temp" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  93. <ColumnInfo>
  94. <Column id="hidden" type="STRING" size="256"/>
  95. </ColumnInfo>
  96. <Rows>
  97. <Row>
  98. <Col id="hidden"/>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_main_rscmpcomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  103. <ColumnInfo>
  104. <Column id="prodcmpycd" type="STRING" size="255"/>
  105. <Column id="prodcmpynm" type="STRING" size="255"/>
  106. <Column id="prodcmpytel" type="STRING" size="255"/>
  107. <Column id="prodcmpyaddr" type="STRING" size="255"/>
  108. <Column id="cmt" type="STRING" size="255"/>
  109. <Column id="goodflag" type="STRING" size="255"/>
  110. <Column id="fstrgstrid" type="STRING" size="255"/>
  111. <Column id="fstrgstdt" type="STRING" size="255"/>
  112. <Column id="lastupdtrid" type="STRING" size="255"/>
  113. <Column id="lastupdtdt" type="STRING" size="255"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  117. <ColumnInfo>
  118. <Column id="init" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row>
  122. <Col id="init"/>
  123. </Row>
  124. </Rows>
  125. </Dataset>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_prodcmpynm" propid="value" datasetid="ds_send" columnid="prodcmpynm"/>
  129. </Bind>
  130. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  131. * System Name :
  132. * Job Name :
  133. * Creator :
  134. * Make Date : 2017-06-19
  135. * Description :
  136. *---------------------------------------------------------------------------------------
  137. * Modify Date Modifier Modify Description
  138. *---------------------------------------------------------------------------------------
  139. * 2017-06-19 Live Converter TF->XP
  140. *
  141. *---------------------------------------------------------------------------------------
  142. ****************************************************************************************/
  143. //=======================================================================================
  144. // Lib Include
  145. //---------------------------------------------------------------------------------------
  146. include "com_commonxp::comm_main.xjs";
  147. include "mis_miscommonxp::MIS.xjs";
  148. include "mis_miscommonxp::RSZ001.xjs";
  149. //=======================================================================================
  150. // Global Form Variable
  151. //---------------------------------------------------------------------------------------
  152. var arErrorCode = new HashArray();
  153. //=======================================================================================
  154. // Function
  155. //---------------------------------------------------------------------------------------
  156. /****************************************************************************************
  157. * Argument : N/A
  158. * Description : 초기화
  159. ****************************************************************************************/
  160. function fInitialize() {
  161. misfGridInit(grp_biz.grd_rscmpcomlist);
  162. }
  163. //=======================================================================================
  164. // Event
  165. //---------------------------------------------------------------------------------------
  166. /****************************************************************************************
  167. * Components : Form
  168. * Description : 화면 처음 초기화시 폼초기화
  169. ****************************************************************************************/
  170. function SMRSC00800_onload(obj:Form, e:LoadEventInfo) {
  171. frmf_initForm(obj);
  172. //grdf_initGrid(grd_XXX);
  173. //grdf_setGridSort(grd_XXX);
  174. grdf_setRowTypeIcon(grp_biz.grd_rscmpcomlist, 0);
  175. fInitialize();
  176. misfMsterDetailSet(grp_biz.grd_rscmpcomlist, null, "TRRSC00803", "Y");
  177. //화면 권한 설정
  178. group4.btn_save.enable = frmf_checkAuth("X");
  179. group4.btn_prt.enable = frmf_checkAuth("P");
  180. }
  181. /****************************************************************************************
  182. * Components : Button
  183. * Description : 조회
  184. ****************************************************************************************/
  185. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  186. var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_rscmpcomlist, "all");
  187. if( !utlf_isNull(dsUpdate) && dsUpdate.rowcount > 0 )
  188. {
  189. if( sysf_messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
  190. misfMsterDetailRetrieve();
  191. }else{
  192. return;
  193. }
  194. }else{
  195. //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
  196. misfMsterDetailRetrieve();
  197. }
  198. misfSetReadOnlyCol(grp_biz.grd_rscmpcomlist,"prodcmpycd", true);
  199. }
  200. /****************************************************************************************
  201. * Components : Edit
  202. * Description : 제조회사 명 입력 후 조회
  203. ****************************************************************************************/
  204. function grp_biz_grp_sea_ipt_prodcmpynm_onkeydown(obj:Edit, e:KeyEventInfo) {
  205. if(e.keycode == 13) {
  206. obj.updateToDataset();
  207. grp_biz.grp_sea.btn_search.click();
  208. }
  209. }
  210. /****************************************************************************************
  211. * Components : Button
  212. * Description : 행추가
  213. ****************************************************************************************/
  214. function grp_biz_btn_grdadd1_onclick(obj:Button, e:ClickEventInfo) {
  215. misfGridIUD(grp_biz.grd_rscmpcomlist, "A");
  216. }
  217. /****************************************************************************************
  218. * Components : Button
  219. * Description : 행삭제
  220. ****************************************************************************************/
  221. function grp_biz_btn_grddel1_onclick(obj:Button, e:ClickEventInfo) {
  222. misfGridIUD(grp_biz.grd_rscmpcomlist, "D");
  223. }
  224. /****************************************************************************************
  225. * Components : Button
  226. * Description : 엑셀저장
  227. ****************************************************************************************/
  228. function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  229. misfSaveExcel(grp_biz.grd_rscmpcomlist, "제조회사코드내역");
  230. }
  231. /****************************************************************************************
  232. * Components : Button
  233. * Description : 저장
  234. ****************************************************************************************/
  235. function group4_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  236. var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_rscmpcomlist, "all");
  237. if( utlf_isNull(dsUpdate) || dsUpdate.rowcount < 1 ) {
  238. sysf_messageBox("업데이트 된 내용이", "I004");
  239. return;
  240. }
  241. var success = misfSave("TXRSC00802");
  242. if(success) grp_biz.grp_sea.btn_search.click();
  243. }
  244. /****************************************************************************************
  245. * Components : Button
  246. * Description : 초기화
  247. ****************************************************************************************/
  248. function group4_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
  249. fInitialize();
  250. }
  251. ]]></Script>
  252. </Form>
  253. </FDL>