SMRSC00810_약국제조회사코드등록.xfdl 13 KB

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