SMMNE05000_사용자정보.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE05000" position="absolute 0 0 948 647" titletext="근무자등록관리" oninit="SMMNE05000_oninit" onload="SMMNE05000_onload" onclose="SMMNE05000_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="1" position="absolute 0 0 269 263">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" text="근무자 등록 관리" class="tit_1" position="absolute 0 0 137 24" anchor="default"/>
  11. <Combo id="combo3" taborder="6" innerdataset="@ds_init_orddeptcd" codecolumn="cd" datacolumn="nm" position="absolute 101 130 259 150" anchor="default" onitemchanged="grp_sea_combo3_onitemchanged"/>
  12. <Static id="caption2" text="사 번 :" class="cell_1" position="absolute 5 80 95 100" anchor="default"/>
  13. <Static id="caption3" text="이 름 :" class="cell_1" position="absolute 5 105 95 125" anchor="default"/>
  14. <Static id="caption4" text="BP 번 호 :" class="cell_1" position="absolute 5 205 95 225" anchor="default"/>
  15. <Static id="caption5" text="핸 드 폰 :" class="cell_1" position="absolute 5 155 95 175" anchor="default"/>
  16. <Static id="caption7" text="진 료 과 :" class="cell_1" position="absolute 5 130 95 150" anchor="default"/>
  17. <Edit id="opt_drid" taborder="7" readonly="true" position="absolute 101 80 259 100" anchor="default"/>
  18. <Edit id="opt_drnm" taborder="8" readonly="true" position="absolute 101 105 259 125" anchor="default"/>
  19. <Edit id="ipt_hp" taborder="9" position="absolute 101 155 259 175" anchor="default" onkeydown="grp_sea_ipt_hp_onkeydown"/>
  20. <Edit id="ipt_bp" taborder="10" position="absolute 101 205 259 225" anchor="default" onkeydown="grp_sea_ipt_bp_onkeydown"/>
  21. <Static id="caption8" text="호출 구분 :" class="cell_1" position="absolute 5 180 95 200" anchor="default"/>
  22. <Combo id="cmb_acall" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 101 180 259 200" anchor="default">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn"/>
  26. <Column id="datacolumn"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn">S</Col>
  31. <Col id="datacolumn">당직자호출</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">A</Col>
  35. <Col id="datacolumn">OneTime호출</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">P</Col>
  39. <Col id="datacolumn">담당자 OneTime호출</Col>
  40. </Row>
  41. </Rows>
  42. </Dataset>
  43. </Combo>
  44. <Shape id="line5" linetype="horizontal" class="line_3" position="absolute 4 200 259 206"/>
  45. <Shape id="line3" linetype="horizontal" class="line_3" position="absolute 4 175 259 181"/>
  46. <Shape id="line8" linetype="horizontal" class="line_3" position="absolute 4 150 259 156"/>
  47. <Shape id="line2" linetype="horizontal" class="line_3" position="absolute 4 125 259 131"/>
  48. <Shape id="line7" linetype="horizontal" class="line_3" position="absolute 4 100 259 106"/>
  49. <Shape id="line00" class="line_3" position="absolute 4 74 259 80" style="strokepen:3 solid #9ebed4ff;"/>
  50. <Div id="grp_srch" taborder="14" text="Div00" position="absolute 0 24 264 69" class="div_SA">
  51. <Layouts>
  52. <Layout>
  53. <Static id="caption1" text="사 번 :" class="search_name" position="absolute 10 15 100 32" anchor="default"/>
  54. <Edit id="ipt_drid" taborder="1" position="absolute 100 14 227 33" anchor="default" onkeydown="grp_sea_grp_srch_ipt_drid_onkeydown"/>
  55. <Button id="btn_srchcalllist" taborder="2" text="조회" class="btn1" visible="false" position="absolute 208 22 264 44" anchor="default" onclick="grp_sea_grp_srch_btn_srchcalllist_onclick"/>
  56. </Layout>
  57. </Layouts>
  58. </Div>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. <Static id="caption16" text="근무자" class="tit_2" position="absolute 270 24 400 40"/>
  63. <Grid id="grd_ordcalllistinfo" taborder="2" binddataset="ds_main_ordcalllistinfo" useinputpanel="false" position="absolute 270 41 945 641" autofittype="col" oncelldblclick="grd_ordcalllistinfo_oncelldblclick">
  64. <Formats>
  65. <Format id="default">
  66. <Columns>
  67. <Column size="30"/>
  68. <Column size="97"/>
  69. <Column size="88"/>
  70. <Column size="125"/>
  71. <Column size="141"/>
  72. <Column size="100"/>
  73. <Column size="100"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell/>
  81. <Cell col="1" text="사번"/>
  82. <Cell col="2" text="이름"/>
  83. <Cell col="3" text="부서"/>
  84. <Cell col="4" text="HP번호"/>
  85. <Cell col="5" text="BP번호"/>
  86. <Cell col="6" text="호출구분"/>
  87. </Band>
  88. <Band id="body">
  89. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
  90. <Cell col="1" text="bind:drid"/>
  91. <Cell col="2" text="bind:drnm"/>
  92. <Cell col="3" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  93. <Cell col="4" text="bind:hp"/>
  94. <Cell col="5" text="bind:bp"/>
  95. <Cell col="6" text="bind:acall"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Button id="button1" taborder="3" text="초기화" class="btn4" position="absolute 5 230 73 252" onclick="button1_onclick"/>
  101. <Button id="button3" taborder="4" text="저장" class="btn4" position="absolute 79 230 135 252" onclick="button3_onclick"/>
  102. <Button id="button4" taborder="5" text="삭제" class="btn4" position="absolute 141 230 197 252" onclick="button4_onclick"/>
  103. <Button id="button2" taborder="6" text="닫기" class="btn4" position="absolute 203 230 259 252" onclick="button2_onclick"/>
  104. <Shape id="line4" linetype="horizontal" class="line_3" position="absolute 1 645 945 646" style="strokepen:2 solid #9ebed4ff;"/>
  105. <Shape id="line6" linetype="horizontal" class="line_3" position="absolute 4 225 259 231"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="nm" type="STRING"/>
  112. <Column id="cd" type="STRING"/>
  113. </ColumnInfo>
  114. </Dataset>
  115. <Dataset id="ds_main_ordcalllistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="drid" type="STRING"/>
  118. <Column id="drnm" type="STRING"/>
  119. <Column id="orddeptcd" type="STRING"/>
  120. <Column id="hp" type="STRING"/>
  121. <Column id="bp" type="STRING"/>
  122. <Column id="acall" type="STRING"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. <Dataset id="ds_hidden_con" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="orddd" type="STRING" size="256"/>
  128. <Column id="centcd" type="STRING" size="256"/>
  129. <Column id="orddeptcd" type="STRING" size="256"/>
  130. <Column id="subdeptcd" type="STRING" size="256"/>
  131. <Column id="orddrid" type="STRING" size="256"/>
  132. <Column id="chrgempid" type="STRING" size="256"/>
  133. <Column id="basedd" type="STRING" size="256"/>
  134. <Column id="ordroomcd" type="STRING" size="256"/>
  135. <Column id="ordflag" type="STRING" size="256"/>
  136. <Column id="orddrnm" type="STRING" size="256"/>
  137. <Column id="ordnurnm" type="STRING" size="256"/>
  138. <Column id="status" type="STRING" size="256"/>
  139. <Column id="msgflag" type="STRING" size="256"/>
  140. <Column id="autoflag" type="STRING" size="256"/>
  141. <Column id="statflag" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. </Dataset>
  144. <Dataset id="ds_main_ordschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  145. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. <Dataset id="ds_init_centcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  147. <Dataset id="ds_init_ordroomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  148. <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="drid" type="STRING" size="256" sumtext="진료의id"/>
  151. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  152. <Column id="hp" type="STRING" size="256" sumtext="핸드폰번호"/>
  153. <Column id="bp" type="STRING" size="256" sumtext="bp번호"/>
  154. <Column id="insdelflag" type="STRING" size="256" sumtext="데이터처리구분"/>
  155. <Column id="acall" type="STRING" size="256" sumtext="호출 구분 "/>
  156. </ColumnInfo>
  157. </Dataset>
  158. <Dataset id="ds_main_drinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="drid" type="STRING" size="256" sumtext="진료의id"/>
  161. <Column id="drnm" type="STRING" size="256" sumtext="진료의명"/>
  162. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  163. <Column id="hp" type="STRING" size="256" sumtext="핸드폰번호"/>
  164. <Column id="bp" type="STRING" size="256" sumtext="bp번호"/>
  165. <Column id="oldorddeptcd" type="STRING" size="256" sumtext="구진료과코드"/>
  166. <Column id="acall" type="STRING" size="256" sumtext="호출구분"/>
  167. <Column id="insdelflag" type="STRING" size="256" sumtext=""/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row/>
  171. </Rows>
  172. </Dataset>
  173. </Objects>
  174. <Bind>
  175. <BindItem id="item0" compid="grp_sea.grp_srch.ipt_drid" propid="value" datasetid="ds_main_search" columnid="drid"/>
  176. <BindItem id="item1" compid="grp_sea.opt_drid" propid="value" datasetid="ds_main_drinfo" columnid="drid"/>
  177. <BindItem id="item2" compid="grp_sea.opt_drnm" propid="value" datasetid="ds_main_drinfo" columnid="drnm"/>
  178. <BindItem id="item3" compid="grp_sea.combo3" propid="value" datasetid="ds_main_drinfo" columnid="orddeptcd"/>
  179. <BindItem id="item4" compid="grp_sea.ipt_hp" propid="value" datasetid="ds_main_drinfo" columnid="hp"/>
  180. <BindItem id="item5" compid="grp_sea.cmb_acall" propid="value" datasetid="ds_main_drinfo" columnid="acall"/>
  181. <BindItem id="item6" compid="grp_sea.ipt_bp" propid="value" datasetid="ds_main_drinfo" columnid="bp"/>
  182. </Bind>
  183. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  184. * System Name :
  185. * Job Name :
  186. * Creator :
  187. * Make Date : 2015-01-26
  188. * Description :
  189. *---------------------------------------------------------------------------------------
  190. * Modify Date Modifier Modify Description
  191. *---------------------------------------------------------------------------------------
  192. * 2015-01-26 Live Converter TF->XP
  193. *
  194. *---------------------------------------------------------------------------------------
  195. ****************************************************************************************/
  196. //=======================================================================================
  197. // Lib Include
  198. //---------------------------------------------------------------------------------------
  199. include "com_commonxp::comm_main.xjs"
  200. var saveyn = "N";
  201. var arErrorCode = new HashArray();
  202. //=======================================================================================
  203. // Event
  204. //---------------------------------------------------------------------------------------
  205. /****************************************************************************************
  206. * Components : Form
  207. * Components ID : SMMNE05000
  208. * Event : oninit
  209. * Argument : 01.obj : Object Event has occurred
  210. * : 02.e : Event Object
  211. * Description : 화면 처음 초기화시 폼초기화
  212. ****************************************************************************************/
  213. function SMMNE05000_oninit(obj:Form, e:InitEventInfo)
  214. {
  215. frmf_initForm(obj); // 폼 초기화
  216. }
  217. /****************************************************************************************
  218. * Components : Form
  219. * Components ID : SMMNE05000
  220. * Event : onload
  221. * Argument : 01.obj : Object Event has occurred
  222. * : 02.e : Event Object
  223. * Description : 화면 로드시 초기화 함수 실행
  224. ****************************************************************************************/
  225. function SMMNE05000_onload(obj:Form, e:LoadEventInfo)
  226. {
  227. fInit();
  228. }
  229. /****************************************************************************************
  230. * Components : Form
  231. * Components ID : SMMNE05000
  232. * Event : onclose
  233. * Argument : 01.obj : Object Event has occurred
  234. * : 02.e : Event Object
  235. * Description : 화면 전환시 실행
  236. ****************************************************************************************/
  237. function SMMNE05000_onclose(obj:Form, e:CloseEventInfo)
  238. {
  239. opener.frmf_setParameter("closeyn","Y");
  240. opener.frmf_setParameter("saveyn",saveyn);
  241. }
  242. /****************************************************************************************
  243. * Components : Edit
  244. * Components ID : grp_sea.grp_srch.ipt_drid
  245. * Event : onkeydown
  246. * Argument : 01.obj : Object Event has occurred
  247. * : 02.e : Event Object
  248. * Description : 조회조건 사번 입력후 엔터
  249. ****************************************************************************************/
  250. function grp_sea_grp_srch_ipt_drid_onkeydown(obj:Edit, e:KeyEventInfo)
  251. {
  252. if(e.keycode == 13) {
  253. var ev = new ClickEventInfo;
  254. frmf_inputEnterKey("grp_sea.grp_srch.btn_srchcalllist", "onclick", ev );
  255. }
  256. }
  257. /****************************************************************************************
  258. * Components : Button
  259. * Components ID : grp_sea.grp_srch.btn_srchcalllist
  260. * Event : onclick
  261. * Argument : 01.obj : Object Event has occurred
  262. * : 02.e : Event Object
  263. * Description : 조회버튼 클릭
  264. ****************************************************************************************/
  265. function grp_sea_grp_srch_btn_srchcalllist_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. srchcallorddr();
  268. }
  269. /****************************************************************************************
  270. * Components : Combo
  271. * Components ID : grp_sea.combo3
  272. * Event : onitemchanged
  273. * Argument : 01.obj : Object Event has occurred
  274. * : 02.e : Event Object
  275. * Description : 진료과 콤보 변경
  276. ****************************************************************************************/
  277. function grp_sea_combo3_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  278. {
  279. grp_sea.ipt_hp.setFocus();
  280. }
  281. /****************************************************************************************
  282. * Components : Edit
  283. * Components ID : grp_sea.ipt_hp
  284. * Event : onkeydown
  285. * Argument : 01.obj : Object Event has occurred
  286. * : 02.e : Event Object
  287. * Description : 핸드폰 입력후 엔터
  288. ****************************************************************************************/
  289. function grp_sea_ipt_hp_onkeydown(obj:Edit, e:KeyEventInfo)
  290. {
  291. if(e.keycode == 13) {
  292. grp_sea.ipt_bp.setFocus();
  293. }
  294. }
  295. /****************************************************************************************
  296. * Components : Edit
  297. * Components ID : grp_sea.ipt_bp
  298. * Event : onkeydown
  299. * Argument : 01.obj : Object Event has occurred
  300. * : 02.e : Event Object
  301. * Description : BP번호 입력후 엔터
  302. ****************************************************************************************/
  303. function grp_sea_ipt_bp_onkeydown(obj:Edit, e:KeyEventInfo)
  304. {
  305. if(e.keycode == 13) {
  306. var ev = new ClickEventInfo;
  307. frmf_inputEnterKey("grp_sea.grp_srch.btn_srchcalllist", "onclick", ev );
  308. }
  309. }
  310. /****************************************************************************************
  311. * Components : Grid
  312. * Components ID : grd_ordcalllistinfo
  313. * Event : oncelldblclick
  314. * Argument : 01.obj : Object Event has occurred
  315. * : 02.e : Event Object
  316. * Description : 근무자 리스트 더블클릭
  317. ****************************************************************************************/
  318. function grd_ordcalllistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  319. {
  320. if(e.row > -1) {
  321. var drid = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"drid");
  322. var drnm = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"drnm");
  323. var orddeptcd = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"orddeptcd");
  324. var hp = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"hp");
  325. var bp = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"bp");
  326. var acall = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"acall");
  327. dsf_makeValue(ds_main_drinfo,"drid" ,"string",drid);
  328. dsf_makeValue(ds_main_drinfo,"drnm" ,"string",drnm);
  329. dsf_makeValue(ds_main_drinfo,"orddeptcd" ,"string",orddeptcd);
  330. dsf_makeValue(ds_main_drinfo,"hp" ,"string",hp);
  331. dsf_makeValue(ds_main_drinfo,"bp" ,"string",bp);
  332. dsf_makeValue(ds_main_drinfo,"oldorddeptcd" ,"string",orddeptcd);
  333. dsf_makeValue(ds_main_drinfo,"acall" ,"string",acall);
  334. }
  335. }
  336. /****************************************************************************************
  337. * Components : Button
  338. * Components ID : button1
  339. * Event : onclick
  340. * Argument : 01.obj : Object Event has occurred
  341. * : 02.e : Event Object
  342. * Description : 초기화 버튼 클릭
  343. ****************************************************************************************/
  344. function button1_onclick(obj:Button, e:ClickEventInfo)
  345. {
  346. iptclear();
  347. }
  348. /****************************************************************************************
  349. * Components : Button
  350. * Components ID : button3
  351. * Event : onclick
  352. * Argument : 01.obj : Object Event has occurred
  353. * : 02.e : Event Object
  354. * Description :저장 버튼 클릭
  355. ****************************************************************************************/
  356. function button3_onclick(obj:Button, e:ClickEventInfo)
  357. {
  358. fErSmsMasterSave(); // 진료의 Call 기준마스터 저장
  359. }
  360. /****************************************************************************************
  361. * Components : Button
  362. * Components ID : button4
  363. * Event : onclick
  364. * Argument : 01.obj : Object Event has occurred
  365. * : 02.e : Event Object
  366. * Description : 삭제 버튼 클릭
  367. ****************************************************************************************/
  368. function button4_onclick(obj:Button, e:ClickEventInfo)
  369. {
  370. fErSmsMasterDel(); // 진료의 Call 기준마스터 삭제
  371. }
  372. /****************************************************************************************
  373. * Components : Button
  374. * Components ID : button2
  375. * Event : onclick
  376. * Argument : 01.obj : Object Event has occurred
  377. * : 02.e : Event Object
  378. * Description : 닫기 버튼 클릭
  379. ****************************************************************************************/
  380. function button2_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. opener.frmf_setParameter("closeyn","Y");
  383. opener.frmf_setParameter("saveyn",saveyn);
  384. this.close();
  385. }
  386. //=======================================================================================
  387. // Function
  388. //---------------------------------------------------------------------------------------
  389. /****************************************************************************************
  390. * Function : fInit
  391. * Description : 화면초기화
  392. * Argument :
  393. * return type :
  394. * Creator :
  395. ****************************************************************************************/
  396. function fInit() {
  397. var CurrentDate = utlf_getCurrentDate();
  398. dsf_makeValue(ds_hidden_con,"orddd","string",CurrentDate);
  399. // model.removeNodeset("/root/main/ordschelist");
  400. ds_main_ordschelist.clear();
  401. ds_send_reqdata.copyData(ds_hidden_con);
  402. // submit("TRMNE05003"); //센터, 진료과 정보 가져옴
  403. var oParam = {};
  404. oParam.id = "TRMNE05003";
  405. oParam.service = "ercareapp.ERSmsCallBase";
  406. oParam.method = "reqGetComCD";
  407. oParam.inds = "req=ds_send_reqdata";
  408. oParam.outds = "ds_init_centcdlist=centcd ds_init_ordroomlist=ordroomlist ds_init_orddeptcd=orddeptcd";
  409. oParam.async = false;
  410. oParam.callback = "";
  411. tranf_submit(oParam);
  412. // model.copyNode("/root/send/reqdata","/root/hidden/con");
  413. ds_send_reqdata.copyData(ds_hidden_con);
  414. //그리드 sort속성적용
  415. // grd_ordcalllistinfo.explorerbar = "sort"; ???
  416. grdf_setGridSort(grd_ordcalllistinfo); // 그리드 소트만
  417. //param set
  418. var drid = opener.frmf_getParameter("drid");
  419. var drnm = opener.frmf_getParameter("drnm");
  420. var deptcd = opener.frmf_getParameter("deptcd");
  421. var phone = opener.frmf_getParameter("phone");
  422. var bbtel = opener.frmf_getParameter("bbtel");
  423. var acall = opener.frmf_getParameter("acall");
  424. //sysf_trace(drid+"/"+drnm+"/"+deptcd+"/"+phone+"/"+bbtel+"/"+acall);
  425. dsf_makeValue(ds_main_search,"drid","string",drid);
  426. if(!utlf_isNull(ds_main_search.getColumn(0,"drid"))){
  427. srchcallorddr();
  428. dsf_makeValue(ds_main_drinfo,"orddeptcd", "string",deptcd);
  429. dsf_makeValue(ds_main_drinfo,"oldorddeptcd","string",deptcd);
  430. }
  431. //진료의call 기준자료 조회
  432. // 요청사항: 근무자 등록관리 시 사번, 진료과, 핸드폰, 호출구분, BP번호 저장에 대한 권한 관리
  433. // 수 정 일: 2010.05.17
  434. // 수 정 자: 김광성 kskim
  435. fCheckIptDataAuthor();
  436. srchcalllist();
  437. }
  438. /****************************************************************************************
  439. * Function : srchcallorddr
  440. * Description : 조회 실행
  441. * Argument :
  442. * return type :
  443. * Creator :
  444. ****************************************************************************************/
  445. function srchcallorddr(){
  446. ds_main_search.setColumn(0,"insdelflag","S");
  447. ds_main_search.setColumn(0, "drid", grp_sea.grp_srch.ipt_drid.value);
  448. var oParam = {};
  449. oParam.id = "TRMNE05002";
  450. oParam.service = "ercareapp.ERSmsCallBase";
  451. oParam.method = "reqSetSmsCallInfo";
  452. oParam.inds = "req=ds_main_search";
  453. oParam.outds = "ds_main_drinfo=drinfo";
  454. oParam.async = false;
  455. oParam.callback = "cf_TRMNE05002";
  456. tranf_submit(oParam);
  457. if(ds_main_drinfo.rowcount < 1) {
  458. sysf_messageBox("조회된 사원이 없습니다.", "E999");
  459. //dsf_createDs("ds_main_drinfo");
  460. }
  461. ds_main_search.setColumn(0,"drid","");
  462. saveyn = "S";
  463. }
  464. /****************************************************************************************
  465. * Function : cf_TRMNE05002
  466. * Description : TRMNE05002 콜백함수
  467. * Argument :
  468. * return type :
  469. * Creator :
  470. ****************************************************************************************/
  471. function cf_TRMNE05002(sSvcId, nErrorCode, sErrorMsg) {
  472. if(nErrorCode < 0) {
  473. sysf_messageBox("조회를 실패하였습니다.", "E999");
  474. return;
  475. }
  476. }
  477. /****************************************************************************************
  478. * Function : fCheckIptDataAuthor
  479. * Description : 화면초기화
  480. * Argument : 근무자 등록관리 시 사번, 진료과, 핸드폰, 호출구분, BP번호
  481. * : 저장에 대한 권한 관리
  482. * return type :
  483. * Creator :
  484. ****************************************************************************************/
  485. function fCheckIptDataAuthor() {
  486. var openerParam = opener.frmf_getParameter("SMMNE05000_param");
  487. var screenMenuParam = frmf_getMenuParam();
  488. if (!utlf_isNull(openerParam)) var paramArr = openerParam.split("^");
  489. else var paramArr = screenMenuParam.split("^");
  490. var dridFlag = paramArr[0];
  491. var orddeptFlag = paramArr[1];
  492. var hpFlag = paramArr[2];
  493. var callTypeFlag = paramArr[3];
  494. var bpFlag = paramArr[4];
  495. var saveBtnFlag = paramArr[5];
  496. var delBtnFlag = paramArr[6];
  497. if( orddeptFlag == "N" ) grp_sea.combo3.enable = false; // 진료과
  498. if( hpFlag == "N" ) grp_sea.ipt_hp.enable = false; // 핸드폰
  499. if( callTypeFlag == "N" ) grp_sea.cmb_acall.enable = false; // 호출구분
  500. if( bpFlag == "N" ) grp_sea.ipt_bp.enable = false; // bp번호
  501. if( saveBtnFlag == "N" ) button3.enable = false; // 저장버튼
  502. if( delBtnFlag == "N" ) button4.enable = false; // 삭제버튼
  503. }
  504. /****************************************************************************************
  505. * Function : srchcalllist
  506. * Description : 진료의 Call 기준자료조회
  507. * Argument :
  508. * return type :
  509. * Creator :
  510. ****************************************************************************************/
  511. function srchcalllist() {
  512. var oParam = {};
  513. oParam.id = "TRMNE05001";
  514. oParam.service = "ercareapp.ERSmsCallBase";
  515. oParam.method = "reqGetErCallMaster";
  516. oParam.inds = "null";
  517. oParam.outds = "ds_main_ordcalllistinfo=ordcalllistinfo";
  518. oParam.async = false;
  519. oParam.callback = "cf_TRMNE05001";
  520. tranf_submit(oParam);
  521. }
  522. /****************************************************************************************
  523. * Function : cf_TRMNE05001
  524. * Description : TRMNE05001 콜백함수
  525. * Argument :
  526. * return type :
  527. * Creator :
  528. ****************************************************************************************/
  529. function cf_TRMNE05001(sSvcId, nErrorCode, sErrorMsg) {
  530. if(nErrorCode < 0) {
  531. sysf_messageBox("조회를 실패하였습니다.", "E999");
  532. return;
  533. }
  534. }
  535. /****************************************************************************************
  536. * Function : iptclear
  537. * Description : 근무자 등록란 초기화
  538. * Argument :
  539. * return type :
  540. * Creator :
  541. ****************************************************************************************/
  542. function iptclear() {
  543. dsf_makeValue(ds_main_search,"drid","string","");
  544. dsf_makeValue(ds_main_drinfo,"drid","");
  545. dsf_makeValue(ds_main_drinfo,"drnm" ,"string","");
  546. dsf_makeValue(ds_main_drinfo,"orddeptcd" ,"string","");
  547. dsf_makeValue(ds_main_drinfo,"hp" ,"string","");
  548. dsf_makeValue(ds_main_drinfo,"bp" ,"string","");
  549. dsf_makeValue(ds_main_drinfo,"oldorddeptcd" ,"string","");
  550. dsf_makeValue(ds_main_drinfo,"acall" ,"string","");
  551. }
  552. /****************************************************************************************
  553. * Function : fErSmsMasterSave
  554. * Description : 근무자 정보 저장
  555. * Argument :
  556. * return type :
  557. * Creator :
  558. ****************************************************************************************/
  559. function fErSmsMasterSave() {
  560. if(utlf_isNull(ds_main_drinfo.getColumn(0,"drid"))){
  561. sysf_messageBox("사번은 필수항목입니다.", "E");
  562. grp_sea.opt_drid.setFocus();
  563. return;
  564. }
  565. if(utlf_isNull(ds_main_drinfo.getColumn(0,"orddeptcd"))){
  566. sysf_messageBox("진료과는 필수입력 항목입니다.", "E");
  567. grp_sea.combo3.setFocus();
  568. return;
  569. }
  570. if(utlf_isNull(ds_main_drinfo.getColumn(0,"hp"))){
  571. sysf_messageBox("핸드폰번호는 필수입력 항목입니다.", "E");
  572. grp_sea.ipt_hp.setFocus();
  573. return;
  574. }
  575. if(utlf_isNull(ds_main_drinfo.getColumn(0,"acall"))) {
  576. sysf_messageBox("호출구분 선택은 필수 입력 입니다.","E");
  577. grp_sea.cmb_acall.setFocus();
  578. return;
  579. }
  580. dsf_makeValue(ds_main_drinfo,"insdelflag","string","I");
  581. //전화번호의 '-'를 제거한다.
  582. var telnum = ds_main_drinfo.getColumn(0,"hp");
  583. telnum = telnum.replace(/-/gi, '');
  584. dsf_makeValue(ds_main_drinfo,"hp","string",telnum);
  585. var oParam = {};
  586. oParam.id = "TXMNE05001";
  587. oParam.service = "ercareapp.ERSmsCallBase";
  588. oParam.method = "reqSetSmsCallInfo";
  589. oParam.inds = "req=ds_main_drinfo";
  590. oParam.outds = "null";
  591. oParam.async = false;
  592. oParam.callback = "cf_TXMNE05001";
  593. tranf_submit(oParam);
  594. if(arErrorCode.pop("TXMNE05001") >= 0){
  595. sysf_messageBox("저장되었습니다.", "I");
  596. }else{
  597. sysf_messageBox('저장을 실패하였습니다.', 'E999');
  598. return;
  599. }
  600. iptclear();//입력창 초기화
  601. srchcalllist();//진료의 Call 기준자료조회
  602. saveyn = "Y";
  603. }
  604. /****************************************************************************************
  605. * Function : fErSmsMasterDel
  606. * Description : 근무자 정보 삭제
  607. * Argument :
  608. * return type :
  609. * Creator :
  610. ****************************************************************************************/
  611. function fErSmsMasterDel() {
  612. if(utlf_isNull(ds_main_drinfo.getColumn(0,"drid"))){
  613. sysf_messageBox("사번은 필수항목입니다.", "E");
  614. grp_sea.opt_drid.setFocus();
  615. return;
  616. }
  617. if(utlf_isNull(ds_main_drinfo.getColumn(0,"orddeptcd"))){
  618. sysf_messageBox("진료과는 필수입력 항목입니다.", "E");
  619. grp_sea.combo3.setFocus();
  620. return;
  621. }
  622. if(utlf_isNull(ds_main_drinfo.getColumn(0,"hp"))){
  623. sysf_messageBox("핸드폰번호는 필수입력 항목입니다.", "E");
  624. grp_sea.ipt_hp.setFocus();
  625. return;
  626. }
  627. if(sysf_messageBox("", "Q001", "") == 6) { // 메세지박스 ("삭제 하시겠습니까?") (return : yes=6, no=7)
  628. dsf_makeValue(ds_main_drinfo,"insdelflag","string","D");
  629. var oParam = {};
  630. oParam.id = "TXMNE05001";
  631. oParam.service = "ercareapp.ERSmsCallBase";
  632. oParam.method = "reqSetSmsCallInfo";
  633. oParam.inds = "req=ds_main_drinfo";
  634. oParam.outds = "null";
  635. oParam.async = false;
  636. oParam.callback = "cf_TXMNE05001";
  637. tranf_submit(oParam);
  638. if(arErrorCode.pop("TXMNE05001") >= 0){
  639. sysf_messageBox("삭제 되었습니다.", "I");
  640. }else{
  641. sysf_messageBox('삭제를 실패하였습니다.', 'E999');
  642. return;
  643. }
  644. iptclear();//입력창초기화
  645. srchcalllist();//진료의 Call 기준자료조회
  646. saveyn = "D";
  647. }else{
  648. return;
  649. }
  650. }
  651. /****************************************************************************************
  652. * Function : cf_TXMNE05001
  653. * Description : TXMNE05001 콜백함수
  654. * Argument :
  655. * return type :
  656. * Creator :
  657. ****************************************************************************************/
  658. function cf_TXMNE05001(sSvcId, nErrorCode, sErrorMsg) {
  659. arErrorCode.push(sSvcId, nErrorCode);
  660. }
  661. ]]></Script>
  662. </Form>
  663. </FDL>