SMRPD04000_개인복무계획신청인사팀승인.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPD04000" position="absolute 0 0 1201 778" titletext="개인복무계획신청인사팀승인" oninit="SMRPD04000_oninit" onload="SMRPD04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="개인복무계획신청인사팀승인" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Shape id="line75" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 23 1195 45" anchor="top right" onclick="btn_save_onclick"/>
  10. <Div id="group4" taborder="2" class="div_SA2" position="absolute 0 48 1195 108" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 8 1113 51" anchor="top right"/>
  14. <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 1125 19 1181 41" anchor="top right" onclick="group4_btn_search_onclick"/>
  15. <Static id="caption1" text="사원번호 :" class="search_name" position="absolute 388 35 474 52"/>
  16. <Edit id="ipt_emplno" taborder="5" autoselect="true" autoskip="true" class="input_search" position="absolute 473 34 568 53" onkeyup="group4_ipt_emplno_onkeyup" style="align:center middle;"/>
  17. <Button id="btn_emplno" taborder="6" class="icon_search" position="absolute 572 36 588 52" onclick="group4_btn_emplno_onclick"/>
  18. <Edit id="ipt_emplnm" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 590 34 772 53" onkeyup="group4_ipt_emplnm_onkeyup"/>
  19. <Static id="caption2" text="적용년월 :" class="search_name" position="absolute 388 10 491 27"/>
  20. <Calendar id="ipt_srvarmapfromdd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 473 8 568 27" mask="yyyy-mm" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="group4_ipt_srvarmapfromdd_onchanged" style="align:center middle;"/>
  21. <Calendar id="ipt_srvarmaptodd" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 590 8 685 27" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center middle;"/>
  22. <Combo id="cmb_instcd" taborder="10" class="combo_s_essential" position="absolute 100 8 358 27"/>
  23. <Static id="caption5" text="기 관 :" class="search_name" position="absolute 15 10 100 27"/>
  24. <Static id="caption7" text="근무부서 :" class="search_name" position="absolute 15 35 101 52"/>
  25. <Edit id="ipt_dutdeptnm" taborder="11" autoselect="true" autoskip="true" class="input_search" position="absolute 208 34 358 53" onkeyup="group4_ipt_dutdeptnm_onkeyup"/>
  26. <Button id="btn_dutdeptcd" taborder="12" class="icon_search" position="absolute 188 35 204 51" onclick="group4_btn_dutdeptcd_onclick"/>
  27. <Edit id="ipt_dutdeptcd" taborder="13" autoselect="true" autoskip="true" class="input_search" position="absolute 100 34 185 53" onkeyup="group4_ipt_dutdeptcd_onkeyup" style="align:center middle;"/>
  28. <Radio id="rdo_deprtmangraprvyn" taborder="14" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 881 7 1055 26">
  29. <Dataset id="innerdataset">
  30. <ColumnInfo>
  31. <Column id="codecolumn"/>
  32. <Column id="datacolumn"/>
  33. </ColumnInfo>
  34. <Rows>
  35. <Row>
  36. <Col id="codecolumn">Y</Col>
  37. <Col id="datacolumn">승인</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">N</Col>
  41. <Col id="datacolumn">미승인</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">%</Col>
  45. <Col id="datacolumn">전체</Col>
  46. </Row>
  47. </Rows>
  48. </Dataset>
  49. </Radio>
  50. <Static id="caption8" text="~" position="absolute 573 11 587 25"/>
  51. <Static id="caption9" text="승인여부 :" class="search_name" position="absolute 796 10 882 27"/>
  52. <CheckBox id="chk_nursall" taborder="15" visible="false" position="absolute 795 32 880 52" text="간호부전체" truevalue="Y" onclick="group4_chk_nursall_onclick"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Button id="btn_grdadddutschepsnworkcnfmlist" taborder="3" text="행추가" class="btn2" visible="false" position="absolute 1007 114 1060 133" anchor="top right" onclick="btn_grdadddutschepsnworkcnfmlist_onclick"/>
  57. <Button id="btn_grddeldutschepsnworkcnfmlist" taborder="4" text="행삭제" class="btn2" visible="false" position="absolute 1061 114 1114 133" anchor="top right" onclick="btn_grddeldutschepsnworkcnfmlist_onclick"/>
  58. <Grid id="grd_dutschepsnworkcnfmlist" taborder="5" binddataset="ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist" autoenter="select" useinputpanel="false" position="absolute 0 138 1195 773" anchor="all" cellsizingtype="col" oncellclick="grd_dutschepsnworkcnfmlist_oncellclick">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="23"/>
  63. <Column size="100"/>
  64. <Column size="100"/>
  65. <Column size="73"/>
  66. <Column size="80"/>
  67. <Column size="65"/>
  68. <Column size="90"/>
  69. <Column size="92"/>
  70. <Column size="99"/>
  71. <Column size="58"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="45"/>
  77. <Column size="45"/>
  78. <Column size="323"/>
  79. </Columns>
  80. <Rows>
  81. <Row size="24" band="head"/>
  82. <Row size="24" band="head"/>
  83. <Row size="24"/>
  84. </Rows>
  85. <Band id="head">
  86. <Cell rowspan="2" taborder="undefined"/>
  87. <Cell col="1" rowspan="2" text="기관" taborder="undefined"/>
  88. <Cell col="2" rowspan="2" text="부서명" taborder="undefined"/>
  89. <Cell col="3" rowspan="2" text="사원번호" taborder="undefined"/>
  90. <Cell col="4" rowspan="2" text="성명" taborder="undefined"/>
  91. <Cell col="5" rowspan="2" text="근무코드" taborder="undefined"/>
  92. <Cell col="6" rowspan="2" text="신청일" taborder="undefined"/>
  93. <Cell col="7" colspan="2" text="신청기간" taborder="undefined"/>
  94. <Cell col="9" rowspan="2" text="신청일수" taborder="undefined"/>
  95. <Cell col="10" text="연차"/>
  96. <Cell col="11" text="연차"/>
  97. <Cell col="12" text="보휴"/>
  98. <Cell col="13" text="보휴"/>
  99. <Cell col="14" rowspan="2" text="부서장&#13;&#10;승인" taborder="undefined"/>
  100. <Cell col="15" text="승인"/>
  101. <Cell col="16" rowspan="2" text="신청사유" taborder="undefined"/>
  102. <Cell row="1" col="7" text="From"/>
  103. <Cell row="1" col="8" text="To"/>
  104. <Cell row="1" col="10" text="사용"/>
  105. <Cell row="1" col="11" text="잔여"/>
  106. <Cell row="1" col="12" text="사용"/>
  107. <Cell row="1" col="13" text="잔여"/>
  108. <Cell row="1" col="15"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell celltype="head"/>
  112. <Cell col="1" style="align:left middle;" text="bind:instcd"/>
  113. <Cell col="2" style="align:left middle;" text="bind:dutplcedeptnm"/>
  114. <Cell col="3" style="align:left middle;" text="bind:emplno"/>
  115. <Cell col="4" style="align:left middle;" text="bind:name"/>
  116. <Cell col="5" style="align:left middle;" text="bind:dutcd"/>
  117. <Cell col="6" displaytype="date" edittype="expr:getRowType(currow) == 2 ? 'date' : 'none'" style="align:left middle;" text="bind:srvarmappdd" calendardisplaynulltype="nulltext" enable="false"/>
  118. <Cell col="7" displaytype="date" edittype="expr:getRowType(currow) == 2 ? 'date' : 'none'" style="align:left middle;" text="bind:srvarmfromdd" calendardisplaynulltype="nulltext" enable="false"/>
  119. <Cell col="8" displaytype="date" edittype="expr:getRowType(currow) == 2 ? 'date' : 'none'" style="align:left middle;" text="bind:srvarmtodd" calendardisplaynulltype="nulltext" enable="false"/>
  120. <Cell col="9" style="align:left middle;" text="bind:srvarmdayno"/>
  121. <Cell col="10"/>
  122. <Cell col="11"/>
  123. <Cell col="12"/>
  124. <Cell col="13"/>
  125. <Cell col="14" displaytype="checkbox" style="controlbackground:darkgray;controlborder:1 solid #808080ff ;" text="bind:deprtmangraprvyn" expr="expr:deprtmangraprvyn == 'Y' ? 1 : 0" enable="false"/>
  126. <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:psnworkapryn" expr="expr:psnworkapryn == 'Y' ? 1 : 0"/>
  127. <Cell col="16" edittype="none" style="align:left middle;" text="bind:appresn"/>
  128. </Band>
  129. </Format>
  130. </Formats>
  131. </Grid>
  132. <Shape id="line1" class="line_10" position="absolute 0 133 1195 139" anchor="left top right"/>
  133. <Static id="caption3" text="개인신청현황" class="tit_2" position="absolute 0 117 108 138"/>
  134. <CheckBox id="bool1" taborder="6" position="absolute 839 164 854 184" onclick="bool1_onclick"/>
  135. <Button id="btn_excel" taborder="7" text="엑셀저장" class="btn7" position="absolute 1115 114 1195 133" anchor="top right" onclick="btn_excel_onclick"/>
  136. <Grid id="grd_excelsave" taborder="8" binddataset="ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist" useinputpanel="false" visible="false" position="absolute 20 238 1095 539">
  137. <Formats>
  138. <Format id="default">
  139. <Columns>
  140. <Column size="100"/>
  141. <Column size="84"/>
  142. <Column size="80"/>
  143. <Column size="65"/>
  144. <Column size="100"/>
  145. <Column size="100"/>
  146. <Column size="100"/>
  147. <Column size="58"/>
  148. <Column size="45"/>
  149. <Column size="45"/>
  150. <Column size="270"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24" band="head"/>
  155. <Row size="24"/>
  156. </Rows>
  157. <Band id="head">
  158. <Cell text="부서명"/>
  159. <Cell col="1" text="사원번호"/>
  160. <Cell col="2" text="성명"/>
  161. <Cell col="3" text="근무코드"/>
  162. <Cell col="4" text="신청일"/>
  163. <Cell col="5" text="신청기간"/>
  164. <Cell col="6" text="신청기간"/>
  165. <Cell col="7" text="신청일수"/>
  166. <Cell col="8" text="부서장승인"/>
  167. <Cell col="9" text="승인"/>
  168. <Cell col="10" text="신청사유"/>
  169. <Cell row="1" text="부서명"/>
  170. <Cell row="1" col="1" text="사원번호"/>
  171. <Cell row="1" col="2" text="성명"/>
  172. <Cell row="1" col="3" text="근무코드"/>
  173. <Cell row="1" col="4" text="신청일"/>
  174. <Cell row="1" col="5" text="From"/>
  175. <Cell row="1" col="6" text="To"/>
  176. <Cell row="1" col="7" text="신청일수"/>
  177. <Cell row="1" col="8" text="부서장승인"/>
  178. <Cell row="1" col="9" text="승인"/>
  179. <Cell row="1" col="10" text="신청사유"/>
  180. </Band>
  181. <Band id="body">
  182. <Cell text="bind:dutplcedeptnm"/>
  183. <Cell col="1" text="bind:emplno"/>
  184. <Cell col="2" text="bind:emplnm"/>
  185. <Cell col="3" text="bind:dutcd"/>
  186. <Cell col="4" enable="false" text="bind:srvarmappdd" edittype="date" displaytype="date"/>
  187. <Cell col="5" enable="false" text="bind:srvarmfromdd" edittype="date" displaytype="date"/>
  188. <Cell col="6" enable="false" text="bind:srvarmtodd" edittype="date" displaytype="date"/>
  189. <Cell col="7" text="bind:srvarmdayno"/>
  190. <Cell col="8" enable="false" text="bind:deprtmangraprvyn" edittype="checkbox" displaytype="checkbox"/>
  191. <Cell col="9" text="bind:psnworkapryn" edittype="checkbox" displaytype="checkbox"/>
  192. <Cell col="10" text="bind:appresn" edittype="none" displaytype="none"/>
  193. </Band>
  194. </Format>
  195. </Formats>
  196. </Grid>
  197. </Layout>
  198. </Layouts>
  199. <Objects>
  200. <Dataset id="ds_send_dutschepsnworkcnfm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_dutschepsnworkcnfm_oncolumnchanged">
  201. <ColumnInfo>
  202. <Column id="instcd" type="STRING" size="256"/>
  203. <Column id="srvarmapfromdd" type="STRING" size="256"/>
  204. <Column id="srvarmaptodd" type="STRING" size="256"/>
  205. <Column id="dutunitcd" type="STRING" size="256"/>
  206. <Column id="dutunitnm" type="STRING" size="256"/>
  207. <Column id="emplno" type="STRING" size="256"/>
  208. <Column id="emplnm" type="STRING" size="256"/>
  209. <Column id="deprtmangraprvyn" type="STRING" size="256"/>
  210. <Column id="nursall" type="STRING" size="256"/>
  211. </ColumnInfo>
  212. <Rows>
  213. <Row>
  214. <Col id="instcd"/>
  215. <Col id="srvarmapfromdd"/>
  216. <Col id="srvarmaptodd"/>
  217. <Col id="dutunitcd"/>
  218. <Col id="dutunitnm"/>
  219. <Col id="emplno"/>
  220. <Col id="emplnm"/>
  221. <Col id="deprtmangraprvyn">N</Col>
  222. <Col id="nursall"/>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. <Dataset id="ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist_oncolumnchanged">
  227. <ColumnInfo>
  228. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  229. <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="사원번호"/>
  230. <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
  231. <Column id="name" type="STRING" size="256" sumtext="성명"/>
  232. <Column id="dutcd" type="STRING" size="256" sumtext="근무코드"/>
  233. <Column id="srvarmappdd" type="STRING" size="256" sumtext="복무신청일자"/>
  234. <Column id="srvarmfromdd" type="STRING" size="256" sumtext="복무시작일자"/>
  235. <Column id="srvarmtodd" type="STRING" size="256" sumtext="복무종료일자"/>
  236. <Column id="srvarmdayno" type="STRING" size="256" sumtext="복무일수"/>
  237. <Column id="deprtmangraprvyn" type="STRING" size="256" sumtext="부서장승인여부"/>
  238. <Column id="psnworkapryn" type="STRING" size="256" sumtext="인사팀승인"/>
  239. <Column id="appresn" type="STRING" size="256" sumtext="신청사유"/>
  240. <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무지부서코드"/>
  241. </ColumnInfo>
  242. </Dataset>
  243. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="check" type="STRING" size="256"/>
  246. </ColumnInfo>
  247. <Rows>
  248. <Row/>
  249. </Rows>
  250. </Dataset>
  251. </Objects>
  252. <Bind>
  253. <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="instcd"/>
  254. <BindItem id="item1" compid="group4.ipt_srvarmapfromdd" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="srvarmapfromdd"/>
  255. <BindItem id="item2" compid="group4.ipt_srvarmaptodd" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="srvarmaptodd"/>
  256. <BindItem id="item3" compid="group4.rdo_deprtmangraprvyn" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="deprtmangraprvyn"/>
  257. <BindItem id="item4" compid="group4.chk_nursall" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="nursall"/>
  258. <BindItem id="item5" compid="group4.ipt_emplnm" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="emplnm"/>
  259. <BindItem id="item6" compid="group4.ipt_emplno" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="emplno"/>
  260. <BindItem id="item7" compid="group4.ipt_dutdeptnm" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="dutunitnm"/>
  261. <BindItem id="item8" compid="group4.ipt_dutdeptcd" propid="value" datasetid="ds_send_dutschepsnworkcnfm" columnid="dutunitcd"/>
  262. <BindItem id="item9" compid="bool1" propid="value" datasetid="ds_hidden" columnid="check"/>
  263. </Bind>
  264. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  265. * System Name :
  266. * Job Name :
  267. * Creator :
  268. * Make Date : 2017-06-19
  269. * Description :
  270. *---------------------------------------------------------------------------------------
  271. * Modify Date Modifier Modify Description
  272. *---------------------------------------------------------------------------------------
  273. * 2017-06-19 Live Converter TF->XP
  274. *
  275. *---------------------------------------------------------------------------------------
  276. ****************************************************************************************/
  277. include "com_commonxp::comm_main.xjs";
  278. include "mis_miscommonxp::MIS.xjs";
  279. include "mis_humtrafactmngtxp::RPB001.xjs";
  280. include "mis_dligclaznsmngtxp::RPD001.xjs";
  281. function SMRPD04000_oninit(obj:Form, e:InitEventInfo)
  282. {
  283. frmf_initForm(obj);
  284. }
  285. function SMRPD04000_onload(obj:Form, e:LoadEventInfo)
  286. {
  287. grdf_initGrid(grd_dutschepsnworkcnfmlist);
  288. grdf_setRowTypeIcon(grd_dutschepsnworkcnfmlist, 0);
  289. misfGridInit(grd_dutschepsnworkcnfmlist);
  290. //misfMsterDetailSet(grd_dutschepsnworkcnfmlist, null, "TRRPD04001" ,"Y");
  291. misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
  292. ds_send_dutschepsnworkcnfm.setColumn(0, "srvarmapfromdd", String(utlf_getCurrentDate()).substr(0, 6));
  293. ds_send_dutschepsnworkcnfm.setColumn(0, "srvarmaptodd", String(utlf_getCurrentDate()).substr(0, 6));
  294. group4.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  295. group4.btn_search.enable = frmf_checkAuth("R");
  296. btn_save.enable = frmf_checkAuth("X");
  297. misfGetAndSetUserInfo();
  298. if ( DUT_DEPT_CD == "3040200000" )
  299. {
  300. group4.chk_nursall.value = "Y"
  301. group4.chk_nursall.enable = false;
  302. btn_save.enable = false;
  303. btn_grdadddutschepsnworkcnfmlist.enable = false;
  304. btn_grddeldutschepsnworkcnfmlist.enable = false;
  305. }
  306. }
  307. function group4_ipt_srvarmapfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  308. {
  309. var instcd = group4.cmb_instcd.value;
  310. var date = String(obj.value).substr(0,6)
  311. if( utlf_getStringLength(date) == "6" )
  312. {
  313. group4.cmb_instcd.value = "";
  314. ds_send_dutschepsnworkcnfm.setColumn(0, "instcd", "");
  315. misfComboInstCdListMulti("group4.cmb_instcd",date+"31","","N");
  316. group4.cmb_instcd.value = instcd;
  317. }
  318. }
  319. function ds_send_dutschepsnworkcnfm_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  320. {
  321. if(e.columnid == "dutunitcd")
  322. {
  323. group4.ipt_dutdeptcd.value = e.newvalue;
  324. group4.ipt_dutdeptcd.setFocus();
  325. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd");
  326. }
  327. if(e.columnid == "dutunitnm")
  328. {
  329. group4.ipt_dutdeptnm.value = e.newvalue;
  330. group4.ipt_dutdeptnm.setFocus();
  331. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
  332. }
  333. if(e.columnid == "emplno")
  334. {
  335. group4.ipt_emplno.value = e.newvalue;
  336. group4.ipt_emplno.setFocus();
  337. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  338. }
  339. if(e.columnid == "emplnm")
  340. {
  341. group4.ipt_emplnm.value = e.newvalue;
  342. group4.ipt_emplnm.setFocus();
  343. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  344. }
  345. }
  346. function group4_ipt_dutdeptcd_onkeyup(obj:Edit, e:KeyEventInfo)
  347. {
  348. if(e.keycode == 13)
  349. {
  350. obj.updateToDataset();
  351. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd");
  352. }
  353. }
  354. function group4_btn_dutdeptcd_onclick(obj:Button, e:ClickEventInfo)
  355. {
  356. misfOpenPopUpList("02", group4.ipt_dutdeptcd, "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd");
  357. }
  358. function group4_ipt_dutdeptnm_onkeyup(obj:Edit, e:KeyEventInfo)
  359. {
  360. if(e.keycode == 13)
  361. {
  362. obj.updateToDataset();
  363. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
  364. }
  365. }
  366. function group4_ipt_emplno_onkeyup(obj:Edit, e:KeyEventInfo)
  367. {
  368. if(e.keycode == 13)
  369. {
  370. obj.updateToDataset();
  371. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  372. }
  373. }
  374. function group4_btn_emplno_onclick(obj:Button, e:ClickEventInfo)
  375. {
  376. rpbfOpenPopUpList("SPRPB00101", group4.ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  377. }
  378. function group4_ipt_emplnm_onkeyup(obj:Edit, e:KeyEventInfo)
  379. {
  380. if(e.keycode == 13)
  381. {
  382. obj.updateToDataset();
  383. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  384. }
  385. }
  386. function group4_chk_nursall_onclick(obj:CheckBox, e:ClickEventInfo)
  387. {
  388. if(obj.value == "Y")
  389. {
  390. }
  391. else
  392. {
  393. ds_send_dutschepsnworkcnfm.setColumn(0, "nursall", "");
  394. }
  395. }
  396. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  397. {
  398. var oParam = {};
  399. oParam.id = "TRRPD04001";
  400. oParam.service = "dligclaznsmngtapp.DutAppMngt";
  401. oParam.method = "reqGetDutSchePsnWorkCnfmList";
  402. oParam.inds = "req=ds_send_dutschepsnworkcnfm";
  403. oParam.outds = "ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist=dutschepsnworkcnfmlist";
  404. oParam.async = false;
  405. //oParam.callback = "cf_TRRPD04001";
  406. tranf_submit(oParam);
  407. }
  408. function ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  409. {
  410. if(e.columnid == "deprtmangraprvyn")
  411. {
  412. obj.setColumn(e.row, "deprtmangraprvyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  413. }
  414. if(e.columnid == "psnworkapryn")
  415. {
  416. obj.setColumn(e.row, "psnworkapryn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  417. }
  418. }
  419. function bool1_onclick(obj:CheckBox, e:ClickEventInfo)
  420. {
  421. if(obj.value == true)
  422. {
  423. for(var i = 0; i < ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.rowcount; i++)
  424. {
  425. if(ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.getColumn(i, "psnworkapryn") != "Y")
  426. {
  427. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.setColumn(i, "psnworkapryn", "Y");
  428. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = false;
  429. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.setRowType(i, "u");
  430. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = true;
  431. }
  432. }
  433. }
  434. else
  435. {
  436. for(var i = 0; i < ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.rowcount; i++)
  437. {
  438. if(ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.getColumn(i, "psnworkapryn") == "Y")
  439. {
  440. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.setColumn(i, "psnworkapryn", "N");
  441. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = false;
  442. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.setRowType(i, "u");
  443. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = true;
  444. }
  445. }
  446. }
  447. }
  448. function grd_dutschepsnworkcnfmlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  449. {
  450. if(e.row >= 0)
  451. {
  452. ds_send_dutschepsnworkcnfm.enableevent = false;
  453. ds_send_dutschepsnworkcnfm.setColumn(0, "emplno", ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.getColumn(ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.rowposition, "emplno"));
  454. ds_send_dutschepsnworkcnfm.setColumn(0, "emplnm", ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.getColumn(ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.rowposition, "name"));
  455. ds_send_dutschepsnworkcnfm.enableevent = true;
  456. }
  457. if(e.row <= 0 && e.cell == grd_dutschepsnworkcnfmlist.getBindCellIndex("Body", "psnworkapryn"))
  458. {
  459. for(var i = 0; i < ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.rowcount; i++)
  460. {
  461. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = false;
  462. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.setRowType(i, "u");
  463. ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist.updatecontrol = true;
  464. }
  465. }
  466. }
  467. function btn_grdadddutschepsnworkcnfmlist_onclick(obj:Button, e:ClickEventInfo)
  468. {
  469. misfGridIUD(grd_dutschepsnworkcnfmlist, "A");
  470. }
  471. function btn_grddeldutschepsnworkcnfmlist_onclick(obj:Button, e:ClickEventInfo)
  472. {
  473. misfGridIUD(grd_dutschepsnworkcnfmlist, "D");
  474. }
  475. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  476. {
  477. misfSaveExcel(grd_excelsave);
  478. }
  479. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  480. {
  481. var oParam = {};
  482. oParam.id = "TXRPD04001";
  483. oParam.service = "dligclaznsmngtapp.DutAppMngt";
  484. oParam.method = "reqExeSaveDutSchePsnWorkCnfmList";
  485. oParam.inds = "req=ds_main_dutschepsnworkcnfm_dutschepsnworkcnfmlist:u";
  486. oParam.outds = "";
  487. oParam.async = false;
  488. oParam.callback = "cf_TXRPD04001";
  489. tranf_submit(oParam);
  490. }
  491. function cf_TXRPD04001(sSvcId, nErrorCode, sErrorMsg)
  492. {
  493. if(nErrorCode < 0)
  494. {
  495. return;
  496. }
  497. else
  498. {
  499. group4.btn_search.click();
  500. }
  501. }
  502. ]]></Script>
  503. </Form>
  504. </FDL>