SMMNG00500_CSR 마감 시간 등록.xfdl 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG00500" position="absolute 0 0 1200 784" titletext="CSR 마감시간 관리" oninit="SMMNG00500_oninit" onload="SMMNG00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 24" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="CSR 마감시간 관리" position="absolute 0 0 151 24" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Static text="기관코드 :" position="absolute 15 9 91 26" id="cap_instcd" class="search_name"/>
  21. <Shape position="absolute 997 5 1003 30" linetype="vertical" id="line13" class="line_4"/>
  22. <Static text="요일구분 :" position="absolute 650 10 724 27" id="cap_csrreqdeptcd" class="search_name"/>
  23. <Button position="absolute 1015 8 1071 30" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  24. <Combo position="absolute 92 8 250 27" id="cmb_instcd" class="combo_s_essential" innerdataset="@ds_hidden_common_instcdinfo_Z0007" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
  25. <Radio position="absolute 725 8 995 27" id="rdo_daykind" columncount="6" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_biz_grp_sea_rdo_daykind_onitemchanged">
  26. <Dataset id="innerdataset">
  27. <ColumnInfo>
  28. <Column id="codecolumn"/>
  29. <Column id="datacolumn"/>
  30. </ColumnInfo>
  31. <Rows>
  32. <Row>
  33. <Col id="codecolumn">
  34. </Col>
  35. <Col id="datacolumn">전체</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">1</Col>
  39. <Col id="datacolumn">평일</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">2</Col>
  43. <Col id="datacolumn">휴일</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">3</Col>
  47. <Col id="datacolumn">토요일</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">4</Col>
  51. <Col id="datacolumn">일요일</Col>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. </Radio>
  56. <Static text="부 서 명 :" position="absolute 270 10 343 27" id="caption2" class="search_name"/>
  57. <Edit position="absolute 458 8 630 27" id="ipt_reqdeptnm" class="input_search" autoselect="true"/>
  58. <Edit position="absolute 345 8 430 27" id="ipt_reqdeptcd" class="input_default" autoselect="true"/>
  59. <Button position="absolute 1073 8 1129 30" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_grp_sea_btn_excel_onclick"/>
  60. <Button position="absolute 1131 8 1187 30" id="btn_prt" class="btn6" text="출력" onclick="grp_biz_grp_sea_btn_prt_onclick"/>
  61. <Button position="absolute 435 10 451 26" id="btn_reqdept" class="icon_search" text="" onclick="grp_biz_grp_sea_btn_reqdept_onclick"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. <Shape position="absolute 226 74 1194 80" linetype="horizontal" id="line2" class="line_10"/>
  66. <Static text="부서구분" position="absolute 5 58 138 74" id="caption8" class="tit_2"/>
  67. <Button position="absolute 1062 54 1104 73" id="btn_grdadd" class="btn2" text="추가" onclick="grp_biz_btn_grdadd_onclick"/>
  68. <Button position="absolute 1107 54 1149 73" id="btn_grddel" class="btn5" text="삭제" onclick="grp_biz_btn_grddel_onclick"/>
  69. <Grid position="absolute 225 79 1195 741" id="grd_csrtmlist" class="datagrid2" binddataset="ds_main_csrtmlist" oncellclick="grp_biz_grd_csrtmlist_oncellclick" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband">
  70. <Formats>
  71. <Format id="default">
  72. <Columns>
  73. <Column size="20" band="left"/>
  74. <Column size="80"/>
  75. <Column size="60"/>
  76. <Column size="60"/>
  77. <Column size="123"/>
  78. <Column size="60"/>
  79. <Column size="80"/>
  80. <Column size="60"/>
  81. <Column size="17"/>
  82. <Column size="60"/>
  83. <Column size="167"/>
  84. <Column size="39"/>
  85. <Column size="70"/>
  86. <Column size="60"/>
  87. <Column size="80"/>
  88. <Column size="80"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. </Columns>
  93. <Rows>
  94. <Row size="26" band="head"/>
  95. <Row size="24"/>
  96. </Rows>
  97. <Band id="head">
  98. <Cell/>
  99. <Cell col="1" text="부서구분"/>
  100. <Cell col="2" text="요일구분"/>
  101. <Cell col="3" text="마감차수"/>
  102. <Cell col="4" text="마감차수명칭"/>
  103. <Cell col="5" text="마감시간"/>
  104. <Cell col="6" text="청구불가시간"/>
  105. <Cell col="7" colspan="3" text="청구가능시간" taborder="undefined"/>
  106. <Cell col="10" text="비고"/>
  107. <Cell col="11" text="멸균&#10;허용"/>
  108. <Cell col="12" text="수정자ID"/>
  109. <Cell col="13" text="수정자"/>
  110. <Cell col="14" text="수정일자"/>
  111. <Cell col="15" text="최초등록일자"/>
  112. <Cell col="16" text="instcd"/>
  113. <Cell col="17" text="csrreqdeptnm"/>
  114. <Cell col="18"/>
  115. </Band>
  116. <Band id="body">
  117. <Cell celltype="head"/>
  118. <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : ''" style="align:center;" text="bind:csrreqdeptcd" combodataset="ds_main_csrreqdeptlist" combocodecol="csrreqdeptcd" combodatacol="csrreqdeptnm" enable="false"/>
  119. <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : ''" style="align:center;" text="bind:daykind" combodataset="ds_daykind" combocodecol="value" combodatacol="label" enable="false"/>
  120. <Cell col="3" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : ''" style="align:center;" text="bind:reqseq" enable="false"/>
  121. <Cell col="4" displaytype="text" edittype="text" style="align:left;" text="bind:reqseqnm"/>
  122. <Cell col="5" displaytype="text" edittype="mask" style="align:center;" text="bind:clotm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  123. <Cell col="6" displaytype="text" edittype="mask" style="align:center;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  124. <Cell col="7" text="bind:reqposfromtm" mask="expr:utlf_isNull(reqposfromtm) ? '' : '##:##:##'" maskchar="_" enable="false"/>
  125. <Cell col="8" text="bind:bar"/>
  126. <Cell col="9" text="bind:reqpostotm" mask="expr:utlf_isNull(reqpostotm) ? '' : '##:##:##'" maskchar="_"/>
  127. <Cell col="10" displaytype="text" edittype="text" text="bind:cmt"/>
  128. <Cell col="11" displaytype="combo" edittype="combo" text="bind:dinfaplyn" combodataset="ds_dinfaplyn" combocodecol="value" combodatacol="label"/>
  129. <Cell col="12" text="bind:lastupdtrid" enable="false"/>
  130. <Cell col="13" text="bind:usernm" enable="false"/>
  131. <Cell col="14" displaytype="date" text="bind:lastupdtdt" calendardisplaynulltype="none" enable="false"/>
  132. <Cell col="15" displaytype="date" text="bind:fstrgstdt" calendardisplaynulltype="none" enable="false"/>
  133. <Cell col="16" text="bind:instcd"/>
  134. <Cell col="17" text="bind:csrreqdeptnm"/>
  135. <Cell col="18" text="bind:daykindnm"/>
  136. </Band>
  137. </Format>
  138. </Formats>
  139. </Grid>
  140. <Static text="마감 기준시간 등록" position="absolute 225 58 373 74" id="caption1" class="tit_2"/>
  141. <Shape position="absolute 5 74 220 80" linetype="horizontal" id="line1" class="line_10"/>
  142. <Grid position="absolute 5 79 220 741" id="grd_csrreqdeptlist" binddataset="ds_main_csrreqdeptlist" oncellclick="grp_biz_grd_csrreqdeptlist_oncellclick">
  143. <Formats>
  144. <Format id="default">
  145. <Columns>
  146. <Column size="196"/>
  147. <Column size="0"/>
  148. </Columns>
  149. <Rows>
  150. <Row size="24" band="head"/>
  151. <Row size="24"/>
  152. </Rows>
  153. <Band id="head">
  154. <Cell text="부서구분"/>
  155. <Cell col="1" text="caption1"/>
  156. </Band>
  157. <Band id="body">
  158. <Cell edittype="none" style="align:left;" text="bind:csrreqdeptnm" enable="false"/>
  159. <Cell col="1" text="bind:csrreqdeptcd"/>
  160. </Band>
  161. </Format>
  162. </Formats>
  163. </Grid>
  164. <Edit position="absolute 525 50 625 70" id="ipt_csrreqdeptcd2" visible="false" autoselect="true"/>
  165. <Button position="absolute 1007 54 1060 73" id="button1" class="btn2" text="초기화" onclick="grp_biz_button1_onclick"/>
  166. <Button position="absolute 1152 54 1194 73" id="btn_save" class="btn5" text="저장" onclick="grp_biz_btn_save_onclick"/>
  167. </Layout>
  168. </Layouts>
  169. </Div>
  170. </Layout>
  171. </Layouts>
  172. <Objects>
  173. <Dataset id="ds_hidden_common_instcdinfo_Z0007" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="cdnm" type="STRING"/>
  176. <Column id="cdid" type="STRING"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  180. <ColumnInfo>
  181. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  182. <Column id="daykind" type="STRING" size="256" sumtext="요일구분"/>
  183. <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 처구부서코드"/>
  184. <Column id="useyn" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row/>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_main_csrtmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_csrtmlist_oncolumnchanged">
  191. <ColumnInfo>
  192. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  193. <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 청구 부서 코드"/>
  194. <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
  195. <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
  196. <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
  197. <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
  198. <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
  199. <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
  200. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  201. <Column id="bar" type="STRING" size="256" sumtext="bar"/>
  202. <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
  203. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자ID"/>
  204. <Column id="usernm" type="STRING" size="256" sumtext="수정자명"/>
  205. <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일자"/>
  206. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
  207. <Column id="csrreqdeptnm" type="STRING" size="256" sumtext="CSR청구부서명"/>
  208. <Column id="daykindnm" type="STRING" size="256" sumtext="DAY구분"/>
  209. <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
  210. </ColumnInfo>
  211. </Dataset>
  212. <Dataset id="ds_main_csrreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_main_csrreqdeptlist_onrowposchanged">
  213. <ColumnInfo>
  214. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  215. <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 청구 부서 코드"/>
  216. <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
  217. <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
  218. <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
  219. <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
  220. <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
  221. <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
  222. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  223. <Column id="bar" type="STRING" size="256" sumtext="bar"/>
  224. <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
  225. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자ID"/>
  226. <Column id="usernm" type="STRING" size="256" sumtext="수정자명"/>
  227. <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일자"/>
  228. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
  229. <Column id="csrreqdeptnm" type="STRING" size="256" sumtext="CSR청구부서명"/>
  230. <Column id="daykindnm" type="STRING" size="256" sumtext="DAY구분"/>
  231. <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
  232. </ColumnInfo>
  233. </Dataset>
  234. <Dataset id="ds_send_reqdata_csrtmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  237. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  238. <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR청구부서코드"/>
  239. <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
  240. <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
  241. <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
  242. <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
  243. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  244. <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
  245. <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
  246. <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
  247. <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
  248. </ColumnInfo>
  249. </Dataset>
  250. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="daykind" type="STRING" size="256"/>
  253. </ColumnInfo>
  254. <Rows>
  255. <Row/>
  256. </Rows>
  257. </Dataset>
  258. <Dataset id="ds_send_reqData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="cdgrupid" type="STRING" size="256"/>
  261. <Column id="cdid" type="STRING" size="256"/>
  262. <Column id="cdnm" type="STRING" size="256"/>
  263. </ColumnInfo>
  264. <Rows>
  265. <Row/>
  266. </Rows>
  267. </Dataset>
  268. <Dataset id="ds_init_appendcd_R02701" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  269. <ColumnInfo>
  270. <Column id="cdid" type="STRING" size="256"/>
  271. <Column id="cdnm" type="STRING" size="256"/>
  272. </ColumnInfo>
  273. </Dataset>
  274. <Dataset id="ds_daykind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  275. <ColumnInfo>
  276. <Column id="label" type="STRING" size="256"/>
  277. <Column id="value" type="STRING" size="256"/>
  278. </ColumnInfo>
  279. <Rows>
  280. <Row>
  281. <Col id="label">평일</Col>
  282. <Col id="value">1</Col>
  283. </Row>
  284. <Row>
  285. <Col id="value">2</Col>
  286. <Col id="label">휴일</Col>
  287. </Row>
  288. <Row>
  289. <Col id="label">토요일</Col>
  290. <Col id="value">3</Col>
  291. </Row>
  292. <Row>
  293. <Col id="value">4</Col>
  294. <Col id="label">일요일</Col>
  295. </Row>
  296. </Rows>
  297. </Dataset>
  298. <Dataset id="ds_dinfaplyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  299. <ColumnInfo>
  300. <Column id="label" type="STRING" size="256"/>
  301. <Column id="value" type="STRING" size="256"/>
  302. </ColumnInfo>
  303. <Rows>
  304. <Row>
  305. <Col id="label">Y</Col>
  306. <Col id="value">Y</Col>
  307. </Row>
  308. <Row>
  309. <Col id="label">N</Col>
  310. <Col id="value">N</Col>
  311. </Row>
  312. </Rows>
  313. </Dataset>
  314. </Objects>
  315. <Bind>
  316. <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  317. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  318. <BindItem id="item2" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
  319. <BindItem id="item3" compid="grp_biz.grp_sea.rdo_daykind" propid="value" datasetid="ds_init" columnid="daykind"/>
  320. <BindItem id="item4" compid="grp_biz.ipt_csrreqdeptcd2" propid="value" datasetid="ds_send" columnid="csrreqdeptcd2"/>
  321. </Bind>
  322. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  323. * System Name : 경대 의료정보시스템
  324. * Job Name : emr_csrxp -> SMMNG00500
  325. * Creator : yjh
  326. * Make Date : 2017-07-04
  327. * Description :
  328. *---------------------------------------------------------------------------------------
  329. * Modify Date Modifier Modify Description
  330. *---------------------------------------------------------------------------------------
  331. * 2017-07-04 yjh TF->XP
  332. *
  333. *---------------------------------------------------------------------------------------
  334. ****************************************************************************************/
  335. //=======================================================================================
  336. // Lib Include
  337. //---------------------------------------------------------------------------------------
  338. include "com_commonxp::comm_main.xjs";
  339. include "mis_miscommonxp::MIS.xjs";
  340. //=======================================================================================
  341. // Global Form Variable
  342. //---------------------------------------------------------------------------------------
  343. //=======================================================================================
  344. // Function
  345. //---------------------------------------------------------------------------------------
  346. var searchFlag = "0";
  347. var curDept = -1;
  348. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  349. function fInitialize() {
  350. ds_main_csrtmlist.clearData();
  351. ds_send.clearData();
  352. ds_send.addRow();
  353. misfGridInit(grp_biz.grd_csrtmlist);
  354. misfGridInit(grp_biz.grd_csrreqdeptlist);
  355. var arrParam = [{dsNm: "ds_hidden_common_instcdinfo_Z0007", cdGrpId: "Z0007"}]
  356. appf_getCodeList(arrParam);
  357. grp_biz.grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  358. ds_send_reqdata_csrtmlist.clearData();
  359. //화면 권한 설정
  360. grp_biz.btn_save.enable = frmf_checkAuth("X");
  361. grp_biz.grp_sea.btn_prt.enable= frmf_checkAuth("P");
  362. }
  363. function fsearch(){
  364. // var updtdata = getGridUpdateData(grd_csrtmlist);
  365. //
  366. // //기관코드 값 체크
  367. // if ( updtdata != "") {
  368. // var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  369. // if (ret != 6) { // not OK
  370. // return;
  371. // }
  372. // }
  373. //
  374. var iRow = ds_main_csrreqdeptlist.rowposition;
  375. var iCol = grp_biz.grd_csrreqdeptlist.getBindCellIndex("body", "csrreqdeptcd");
  376. ds_send.setColumn(0, "instcd", grp_biz.grp_sea.cmb_instcd.value);
  377. ds_send.setColumn(0, "daykind", grp_biz.grp_sea.rdo_daykind.value);
  378. ds_send.setColumn(0, "csrreqdeptcd", ds_main_csrreqdeptlist.getColumn(iRow, "csrreqdeptcd"));
  379. var oParam = {};
  380. oParam.id = "TRMNG00501";
  381. oParam.service = "csrapp.CsrMngt";
  382. oParam.method = "reqGetCsrTmList";
  383. oParam.inds = "req=ds_send";
  384. oParam.outds = "ds_main_csrtmlist=csrtmlist";
  385. oParam.async = false;
  386. //oParam.callback = "cf_TRMNG00501";
  387. tranf_submit(oParam);
  388. if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("csrreqdeptnm")) ){
  389. ds_main_csrtmlist.addColumn("csrreqdeptnm", "string");
  390. }
  391. if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("daykindnm")) ){
  392. ds_main_csrtmlist.addColumn("daykindnm", "string");
  393. }
  394. if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("reqposfromtm")) ){
  395. ds_main_csrtmlist.addColumn("reqposfromtm", "string");
  396. }
  397. if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("reqpostotm")) ){
  398. ds_main_csrtmlist.addColumn("reqpostotm", "string");
  399. }
  400. var daykind;
  401. var csrreqdeptcd;
  402. ds_main_csrtmlist.enableevent = false;
  403. ds_main_csrtmlist.updatecontrol = false;
  404. for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
  405. daykind = ds_main_csrtmlist.getColumn(i, "daykind");
  406. csrreqdeptcd = ds_main_csrtmlist.getColumn(i, "csrreqdeptcd");
  407. ds_main_csrtmlist.setColumn(i, "csrreqdeptnm", ds_main_csrreqdeptlist.lookup("csrreqdeptcd", csrreqdeptcd, "csrreqdeptnm"));
  408. ds_main_csrtmlist.setColumn(i, "daykindnm", "");//ds_init_appendcd_R02701.lookup("cdid", daykind, "cdnm"));
  409. }
  410. //misfMsterDetailRetrieve();
  411. //misfSetReadOnlyCol(grd_csrtmlist, "csrreqdeptcd,daykind, reqseq", true);
  412. fChngReqPosTm();
  413. dsf_setDefaultVal(ds_main_csrtmlist, "bar:~");
  414. ds_main_csrtmlist.updatecontrol = true;
  415. ds_main_csrtmlist.enableevent = true;
  416. searchFlag = "1";
  417. }
  418. function fsave(){
  419. for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
  420. if( ds_main_csrtmlist.getRowType(i) == 2 ){
  421. if( utlf_isNull(ds_main_csrtmlist.getColumn(i, "csrreqdeptcd")) || utlf_isNull(ds_main_csrtmlist.getColumn(i, "daykind")) || utlf_isNull(ds_main_csrtmlist.getColumn(i, "reqseq")) ){
  422. return;
  423. }
  424. }
  425. }
  426. ds_main_csrtmlist.enableevent = false;
  427. ds_main_csrtmlist.updatecontrol = false;
  428. grdf_setStatusColumn(ds_main_csrtmlist, "status");
  429. ds_main_csrtmlist.updatecontrol = true;
  430. ds_main_csrtmlist.enableevent = true;
  431. var updtdata = grdf_getGridUpdateData(grp_biz.grd_csrtmlist);
  432. if( utlf_isNull(updtdata) || updtdata.rowcount < 1 )
  433. {
  434. sysf_messageBox("변경된 데이터가","I004");
  435. return;
  436. }
  437. rtn = sysf_messageBox("", "Q002");
  438. if(rtn != "6" ) return false;
  439. ds_send_reqdata_csrtmlist.assign(updtdata);
  440. var oParam = {};
  441. oParam.id = "TXMNG00501";
  442. oParam.service = "csrapp.CsrMngt";
  443. oParam.method = "reqExeSavereqGetCsrTmList";
  444. oParam.inds = "req=ds_send_reqdata_csrtmlist:A";
  445. oParam.outds = "";
  446. oParam.async = false;
  447. //oParam.callback = "cf_TXMNG00501";
  448. tranf_submit(oParam);
  449. grp_biz.grp_sea.btn_search.click();
  450. }
  451. function fCheckTime(sColumnID)
  452. {
  453. if( sColumnID == "clotm" )
  454. {
  455. var sTime = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(ds_main_csrtmlist.rowposition, "clotm"));
  456. if( utlf_isNull(sTime) )
  457. {
  458. return;
  459. }
  460. if( sTime.length != 4 )
  461. {
  462. sysf_messageBox("네자리를 ","C001");
  463. ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
  464. return;
  465. }
  466. var sFrontTime = sTime.substr(0, 2);
  467. var sBackTime = sTime.substr(2, 2);
  468. if( parseInt(sFrontTime) > 24 )
  469. {
  470. sysf_messageBox("24시를 ","E001");
  471. ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
  472. return;
  473. }
  474. if( parseInt(sBackTime) > 59 )
  475. {
  476. sysf_messageBox("59분을 ","E001");
  477. ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
  478. return;
  479. }
  480. }
  481. }
  482. function getCsrDeptList() {
  483. ds_send_reqData.setColumn(0, "cdgrupid", "R0269");
  484. ds_send_reqData.setColumn(0, "cdid", "%");
  485. ds_send_reqData.setColumn(0, "cdnm", "%");
  486. var oParam = {};
  487. oParam.id = "TRMNG00401";
  488. oParam.service = "csrapp.CsrMngt";
  489. oParam.method = "reqGetDeptFlagList";
  490. oParam.inds = "req=ds_send";
  491. oParam.outds = "ds_main_csrreqdeptlist=csrreqdeptlist";
  492. oParam.async = false;
  493. //oParam.callback = "cf_TRMNG00401";
  494. tranf_submit(oParam);
  495. ds_main_csrreqdeptlist.rowposition = -1;
  496. // submit("TRMNG00502");
  497. ds_main_csrtmlist.clearData();
  498. }
  499. function fChngReqPosTm() {
  500. var tempClotm;
  501. var tempReqImposTm;
  502. var clotm;
  503. var stdCnt = 0; //평일
  504. var spclCnt = 0; //휴일
  505. var spclCnt2 = 0; //토요일
  506. var spclCnt3 = 0; //일요일
  507. var daykind;
  508. for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
  509. daykind = ds_main_csrtmlist.getColumn(i, "daykind");
  510. switch(daykind) {
  511. case '1' :
  512. stdCnt++;
  513. break;
  514. case '2' :
  515. spclCnt++;
  516. break;
  517. case '3' :
  518. spclCnt2++;
  519. break;
  520. case '4' :
  521. spclCnt3++;
  522. break;
  523. }
  524. }
  525. for( var i=0 ; i<stdCnt + spclCnt + spclCnt2 + spclCnt3 ; i++ ){
  526. tempClotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(i, "clotm"));
  527. tmpReqImposTm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(i, "reqimpostm"));
  528. //평일에 등록된 수량중 마지막일때
  529. if((i+1) == stdCnt) {
  530. ds_main_csrtmlist.setColumn(0, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  531. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(0, "clotm"));
  532. ds_main_csrtmlist.setColumn(0, "reqpostotm", subTm(clotm) + "59");
  533. } else if ((i+1) < stdCnt) { //평일에 등록된 수량일때
  534. ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  535. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
  536. ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
  537. } else if((i+1) == stdCnt + spclCnt) { //휴일에 등록된 수량중 마지막일때
  538. ds_main_csrtmlist.setColumn(stdCnt, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  539. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt, "clotm"));
  540. ds_main_csrtmlist.setColumn(stdCnt, "reqpostotm", subTm(clotm) + "59");
  541. } else if((i+1) > stdCnt && (i+1) < stdCnt + spclCnt) { //휴일에 등록된 수량일때
  542. ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  543. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
  544. ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
  545. } else if((i+1) == stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량중 마지막일때.
  546. ds_main_csrtmlist.setColumn(stdCnt + spclCnt, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  547. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt + spclCnt, "clotm"));
  548. ds_main_csrtmlist.setColumn(stdCnt + spclCnt, "reqpostotm", subTm(clotm) + "59");
  549. } else if((i+1) > stdCnt + spclCnt && (i+1) < stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량일때.
  550. ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  551. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
  552. ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
  553. } else if((i+1) == stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량중 마지막일때.
  554. ds_main_csrtmlist.setColumn(stdCnt + spclCnt + spclCnt2, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  555. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt + spclCnt + spclCnt2, "clotm"));
  556. ds_main_csrtmlist.setColumn(stdCnt + spclCnt + spclCnt2, "reqpostotm", subTm(clotm) + "59");
  557. } else if((i+1) > stdCnt + spclCnt + spclCnt2 && (i+1) < stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량일때.
  558. ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
  559. clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
  560. ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
  561. }
  562. }
  563. // for(var i = 1; i <= grd_csrtmlist.rows - 1; i++) {
  564. // tempClotm = grd_csrtmlist.valueMatrix(i, grd_csrtmlist.colRef("clotm"));
  565. //
  566. // tmpReqImposTm = grd_csrtmlist.valueMatrix(i, grd_csrtmlist.colRef("reqimpostm"));
  567. //
  568. // if(i != grd_csrtmlist.rows-1) {
  569. // grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("reqposfromtm")) = addTm(tempClotm, tmpReqImposTm) + "01";
  570. // } else {
  571. // grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("reqposfromtm")) = addTm(tempClotm, tmpReqImposTm) + "01";
  572. // }
  573. //
  574. // if(i == grd_csrtmlist.rows - 1) {
  575. // clotm = grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("clotm"));
  576. // } else {
  577. // clotm = grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("clotm"));
  578. // }
  579. //
  580. // if(i != grd_csrtmlist.rows-1) {
  581. // grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("reqpostotm")) = subTm(clotm) + "59";
  582. // }else {
  583. // grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("reqpostotm")) = subTm(clotm) + "59";
  584. // }
  585. // }
  586. }
  587. function subTm(clotm) {
  588. var cloHour = clotm.substr(0,2);
  589. var cloTm = clotm.substr(2,2);
  590. var sumHour = Number(cloHour);
  591. var sumTm = Number(cloTm) - 1;
  592. var hr;
  593. var tm;
  594. if(sumTm == -1) {
  595. sumTm = 59;
  596. sumHour -= 1;
  597. }
  598. if(sumHour == -1) {
  599. sumHour = 23;
  600. }
  601. if(sumHour < 10) {
  602. hr= "0" + sumHour;
  603. } else {
  604. hr = String(sumHour);
  605. }
  606. if(sumTm < 10) {
  607. tm = "0" + sumTm;
  608. } else {
  609. tm = String(sumTm);
  610. }
  611. return hr + tm;
  612. }
  613. function addTm(fstTm, lastTm) {
  614. var fstHour = fstTm.substr(0,2);
  615. var fstTm = fstTm.substr(2,2);
  616. var lastHour = lastTm.substr(0,2);
  617. var lastTm = lastTm.substr(2,2);
  618. var sumHour = (Number(fstHour) + Number(lastHour));
  619. var sumTm = Number(fstTm) + Number(lastTm);
  620. var hour;
  621. var tm;
  622. if(sumTm >= 60) {
  623. sumHour += 1;
  624. sumTm %= 60;
  625. }
  626. if(sumHour >= 24) {
  627. sumHour %= 24;
  628. }
  629. if(sumHour < 10) {
  630. hour = "0" + sumHour;
  631. } else {
  632. hour = String(sumHour);
  633. }
  634. if(sumTm < 10) {
  635. tm = "0" + sumTm;
  636. } else {
  637. tm = String(sumTm);
  638. }
  639. return hour + tm
  640. }
  641. function fPrintRex() {
  642. var objDOM = rptf_createDOM(); // DOM 객체 설정
  643. rptf_setNodeListToDOM(objDOM, "/root/main/csrtmlist", ds_main_csrtmlist); // 데이터셋 1
  644. var objParam = new Object();
  645. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  646. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  647. rptf_exeReportPreview30(["RPMNG00500"],[objParam], option);
  648. }
  649. //=======================================================================================
  650. // Event
  651. //---------------------------------------------------------------------------------------
  652. /****************************************************************************************
  653. * Components : Form
  654. * Components ID : SMMNG00500
  655. * Event : oninit
  656. * Argument : 01.obj : Object Event has occurred
  657. * : 02.e : Event Object
  658. * Description : 화면 처음 초기화시
  659. ****************************************************************************************/
  660. function SMMNG00500_oninit(obj:Form, e:InitEventInfo)
  661. {
  662. frmf_initForm(obj); //폼 초기화
  663. }
  664. /****************************************************************************************
  665. * Components : Form
  666. * Components ID : SMMNG00500
  667. * Event : onload
  668. * Argument : 01.obj : Object Event has occurred
  669. * : 02.e : Event Object
  670. * Description : 화면 로딩 완료시
  671. ****************************************************************************************/
  672. function SMMNG00500_onload(obj:Form, e:LoadEventInfo)
  673. {
  674. grdf_setRowTypeIcon(grp_biz.grd_csrtmlist, 0);
  675. grp_biz.grp_sea.rdo_daykind.value = "";
  676. fInitialize();
  677. grp_biz.grp_sea.btn_search.click();
  678. }
  679. /****************************************************************************************
  680. * Components : Button
  681. * Components ID : btn_search
  682. * Event : onclick
  683. * Argument : 01.obj : Object Event has occurred
  684. * : 02.e : Event Object
  685. * Description : 조회버튼 클릭시
  686. ****************************************************************************************/
  687. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  688. {
  689. if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
  690. getCsrDeptList();
  691. if( utlf_isNull(grp_biz.grp_sea.ipt_reqdeptcd.value) || curDept != -1 ){
  692. ds_main_csrreqdeptlist.rowposition = curDept;
  693. fsearch();
  694. }
  695. }
  696. /****************************************************************************************
  697. * Components : Combo
  698. * Components ID : cmb_instcd
  699. * Event : onitemchanged
  700. * Argument : 01.obj : Object Event has occurred
  701. * : 02.e : Event Object
  702. * Description : 조회버튼 클릭시
  703. ****************************************************************************************/
  704. function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  705. {
  706. grp_biz.grp_sea.btn_search.click();
  707. }
  708. /****************************************************************************************
  709. * Components : Radio
  710. * Components ID : rdo_daykind
  711. * Event : onitemchanged
  712. * Argument : 01.obj : Object Event has occurred
  713. * : 02.e : Event Object
  714. * Description : 라디오 값 변경시
  715. ****************************************************************************************/
  716. function grp_biz_grp_sea_rdo_daykind_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  717. {
  718. if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
  719. //btn_search.dispatch("DOMActivate");
  720. getCsrDeptList();
  721. fsearch();
  722. }
  723. /****************************************************************************************
  724. * Components : Dataset
  725. * Components ID : ds_send
  726. * Event : oncolumnchanged
  727. * Argument : 01.obj : Object Event has occurred
  728. * : 02.e : Event Object
  729. * Description : 데이터셋 값 변경시
  730. ****************************************************************************************/
  731. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  732. {
  733. switch( e.columnid ){
  734. case "deptnm" :
  735. misfValidationCheck("02", "", "deptcd,deptnm");
  736. break;
  737. default :
  738. break;
  739. }
  740. }
  741. /****************************************************************************************
  742. * Components : Button
  743. * Components ID : btn_excel
  744. * Event : onclick
  745. * Argument : 01.obj : Object Event has occurred
  746. * : 02.e : Event Object
  747. * Description : 엑셀버튼 클릭시
  748. ****************************************************************************************/
  749. function grp_biz_grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  750. {
  751. if( grp_biz.grd_csrtmlist.rowcount > 0 ){
  752. grdf_exportExcel(grp_biz.grd_csrtmlist, "CSR마감시간등록", "청구현황List", false, "", "user", false);
  753. } else {
  754. sysf_messageBox("조회된 데이터가 ", "I004");
  755. return;
  756. }
  757. }
  758. /****************************************************************************************
  759. * Components : Button
  760. * Components ID : btn_prt
  761. * Event : onclick
  762. * Argument : 01.obj : Object Event has occurred
  763. * : 02.e : Event Object
  764. * Description : 출력버튼 클릭시
  765. ****************************************************************************************/
  766. function grp_biz_grp_sea_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  767. {
  768. fPrintRex();
  769. }
  770. /****************************************************************************************
  771. * Components : Button
  772. * Components ID : btn_reqdept
  773. * Event : onclick
  774. * Argument : 01.obj : Object Event has occurred
  775. * : 02.e : Event Object
  776. * Description : 돋보기버튼 클릭시
  777. ****************************************************************************************/
  778. function grp_biz_grp_sea_btn_reqdept_onclick(obj:Button, e:ClickEventInfo)
  779. {
  780. frmf_modal("SPMNG00300","SPMNG00300",null,"",1,1,1,"","","","","","M");
  781. grp_biz.grp_sea.ipt_reqdeptcd.value = sysf_getModelProperty("deptcd");
  782. grp_biz.grp_sea.ipt_reqdeptnm.value = sysf_getModelProperty("deptnm");
  783. grp_biz.ipt_csrreqdeptcd2.value = sysf_getModelProperty("csrreqdeptcd");
  784. for( var i=0 ; i<ds_main_csrreqdeptlist.rowcount ; i++ ){
  785. if( ds_main_csrreqdeptlist.getColumn(i, "csrreqdeptcd") == grp_biz.ipt_csrreqdeptcd2.value ){
  786. ds_main_csrreqdeptlist.rowposition = i;
  787. fsearch();
  788. curDept = ds_main_csrreqdeptlist.rowposition;
  789. break;
  790. }
  791. }
  792. }
  793. /****************************************************************************************
  794. * Components : Button
  795. * Components ID : btn_grdadd
  796. * Event : onclick
  797. * Argument : 01.obj : Object Event has occurred
  798. * : 02.e : Event Object
  799. * Description : 추가버튼 클릭시
  800. ****************************************************************************************/
  801. function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  802. {
  803. if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
  804. misfGridIUD(grp_biz.grd_csrtmlist, "A");
  805. var cur_row = ds_main_csrtmlist.rowposition;
  806. ds_main_csrtmlist.enableevent = false;
  807. ds_main_csrtmlist.updatecontrol = false;
  808. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  809. ds_main_csrtmlist.setColumn(cur_row, "instcd", grp_biz.grp_sea.cmb_instcd.value);
  810. ds_main_csrtmlist.setColumn(cur_row, "bar", "~");
  811. ds_main_csrtmlist.setColumn(cur_row, "csrreqdeptcd", ds_main_csrreqdeptlist.getColumn(ds_main_csrreqdeptlist.rowposition, "csrreqdeptcd"));
  812. ds_main_csrtmlist.setColumn(cur_row, "reqimpostm", "0000");
  813. ds_main_csrtmlist.setColumn(cur_row, "dinfaplyn", "Y");
  814. ds_main_csrtmlist.updatecontrol = true;
  815. ds_main_csrtmlist.enableevent = true;
  816. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  817. ds_main_csrtmlist.selectRow(ds_main_csrtmlist.rowcount - 1);
  818. grp_biz.grd_csrtmlist.showEditor(true);
  819. }
  820. /****************************************************************************************
  821. * Components : Button
  822. * Components ID : btn_grddel
  823. * Event : onclick
  824. * Argument : 01.obj : Object Event has occurred
  825. * : 02.e : Event Object
  826. * Description : 삭제버튼 클릭시
  827. ****************************************************************************************/
  828. function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  829. {
  830. if( ds_main_csrtmlist.rowposition > -1 ){
  831. var firstRow = grp_biz.grd_csrtmlist.selectstartrow[0];
  832. var lastRow = grp_biz.grd_csrtmlist.selectendrow[grp_biz.grd_csrtmlist.selectcount-1];
  833. for( var i=firstRow ; i<=lastRow ; i++ ){
  834. if( ds_main_csrtmlist.getRowType(i) == 2 ){
  835. ds_main_csrtmlist.deleteRow(i);
  836. } else {
  837. ds_main_csrtmlist.enableevent = false;
  838. ds_main_csrtmlist.updatecontrol = false;
  839. ds_main_csrtmlist.setRowType(i, 8);
  840. ds_main_csrtmlist.updatecontrol = true;
  841. ds_main_csrtmlist.enableevent = true;
  842. }
  843. }
  844. }
  845. }
  846. /****************************************************************************************
  847. * Components : Dataset
  848. * Components ID : ds_main_csrtmlist
  849. * Event : oncolumnchanged
  850. * Argument : 01.obj : Object Event has occurred
  851. * : 02.e : Event Object
  852. * Description : 데이터셋 값 변경시
  853. ****************************************************************************************/
  854. function ds_main_csrtmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  855. {
  856. if( e.columnid == "clotm" || e.columnid == "reqimpostm" ){
  857. fChngReqPosTm();
  858. }
  859. fCheckTime(e.columnid);
  860. }
  861. /****************************************************************************************
  862. * Components : Grid
  863. * Components ID : grd_csrtmlist
  864. * Event : oncellclick
  865. * Argument : 01.obj : Object Event has occurred
  866. * : 02.e : Event Object
  867. * Description : 그리드 셀 클릭시
  868. ****************************************************************************************/
  869. function grp_biz_grd_csrtmlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  870. {
  871. //
  872. //
  873. //
  874. // if(stat == 0) {
  875. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("clotm")) = true;
  876. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqimpostm")) = true;
  877. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqposfromtm")) = true;
  878. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqpostotm")) = true;
  879. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("cmt")) = true;
  880. //
  881. //
  882. //
  883. // } else if(stat == 2) {
  884. //
  885. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("clotm")) = false;
  886. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqimpostm")) = false;
  887. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqposfromtm")) = false;
  888. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqpostotm")) = false;
  889. // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("cmt")) = false;
  890. // }
  891. grp_biz.grd_csrtmlist.showEditor(true);
  892. }
  893. /****************************************************************************************
  894. * Components : Grid
  895. * Components ID : grd_csrreqdeptlist
  896. * Event : oncellclick
  897. * Argument : 01.obj : Object Event has occurred
  898. * : 02.e : Event Object
  899. * Description : 그리드 셀 클릭시
  900. ****************************************************************************************/
  901. function grp_biz_grd_csrreqdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  902. {
  903. fsearch();
  904. curDept = ds_main_csrreqdeptlist.rowposition;
  905. }
  906. /****************************************************************************************
  907. * Components : Dataset
  908. * Components ID : ds_main_csrreqdeptlist
  909. * Event : onrowposchanged
  910. * Argument : 01.obj : Object Event has occurred
  911. * : 02.e : Event Object
  912. * Description : 데이터셋 행위치 변경시
  913. ****************************************************************************************/
  914. function ds_main_csrreqdeptlist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
  915. {
  916. grp_biz.grp_sea.ipt_reqdeptcd.value = "";
  917. grp_biz.grp_sea.ipt_reqdeptnm.value = "";
  918. }
  919. /****************************************************************************************
  920. * Components : Button
  921. * Components ID : button1
  922. * Event : onclick
  923. * Argument : 01.obj : Object Event has occurred
  924. * : 02.e : Event Object
  925. * Description : 초기화버튼 클릭시
  926. ****************************************************************************************/
  927. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  928. {
  929. fInitialize();
  930. }
  931. /****************************************************************************************
  932. * Components : Button
  933. * Components ID : btn_save
  934. * Event : onclick
  935. * Argument : 01.obj : Object Event has occurred
  936. * : 02.e : Event Object
  937. * Description : 저장버튼 클릭시
  938. ****************************************************************************************/
  939. function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
  940. {
  941. fsave();
  942. }
  943. ]]></Script>
  944. </Form>
  945. </FDL>