SPMQP03700_컨설트등록.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMQP03700" position="absolute 0 0 628 520" titletext="컨설트 등록" oninit="SPMQP03700_oninit" onload="SPMQP03700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="컨설트 등록" position="absolute 243 9 348 25" id="cap_outlineinfo" class="tit_2"/>
  8. <Shape position="absolute 0 22 240 28" linetype="vertical" id="line1" class="line_1"/>
  9. <Shape position="absolute 243 25 625 31" linetype="horizontal" id="line2" class="line_10"/>
  10. <Shape position="absolute 243 75 625 81" linetype="horizontal" id="line13" class="line_2"/>
  11. <Static text="제목" position="absolute 243 54 328 77" id="cap_slipnm2" class="cell_1"/>
  12. <Shape position="absolute 243 100 625 106" linetype="horizontal" id="line3" class="line_2"/>
  13. <Static text="수신과" position="absolute 243 78 328 101" id="caption1" class="cell_1"/>
  14. <Static text="수신자" position="absolute 243 103 328 126" id="caption2" class="cell_1"/>
  15. <Shape position="absolute 243 124 625 130" linetype="horizontal" id="line7" class="line_2"/>
  16. <Static text="의뢰 내용" position="absolute 243 128 328 490" id="caption3" class="cell_1"/>
  17. <TextArea position="absolute 330 129 625 491" id="textarea1"/>
  18. <Shape position="absolute 243 50 625 56" linetype="horizontal" id="line4" class="line_2"/>
  19. <Static text="스텝명" position="absolute 243 30 328 53" id="caption4" class="cell_1"/>
  20. <Edit position="absolute 330 56 625 75" id="ipt_cnstclsnm"/>
  21. <Tab position="absolute 0 3 240 515" id="switch1" onchanged="switch1_onchanged">
  22. <Tabpages>
  23. <Tabpage text="진료의뢰" id="case1">
  24. <Layouts>
  25. <Layout>
  26. <Grid position="absolute 0 0 240 485" id="grd_cnstlist" binddataset="ds_cnstformlist" scrollbars="autovert" oncelldblclick="switch1_case1_grd_cnstlist_oncelldblclick">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="211"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="진료과"/>
  44. <Cell col="1" text="caption2"/>
  45. <Cell col="2" text="caption3"/>
  46. <Cell col="3" text="caption1"/>
  47. <Cell col="4" text="caption4"/>
  48. <Cell col="5" text="caption5"/>
  49. <Cell col="6" text="caption6"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell displaytype="text" text="bind:cnstdeptnm"/>
  53. <Cell col="1" text="bind:cnstdeptcd"/>
  54. <Cell col="2" text="bind:formcd"/>
  55. <Cell col="3" text="bind:formnm"/>
  56. <Cell col="4" text="bind:cnstflag"/>
  57. <Cell col="5" text="bind:cnstclsnm"/>
  58. <Cell col="6" text="bind:replflag"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. </Layout>
  64. </Layouts>
  65. </Tabpage>
  66. <Tabpage text="지원부서의뢰" id="case2">
  67. <Layouts>
  68. <Layout>
  69. <Grid position="absolute 0 0 240 485" id="grd_cnstlist2" scrollbars="autovert" binddataset="ds_cnstformlist" oncelldblclick="switch1_case2_grd_cnstlist2_oncelldblclick">
  70. <Formats>
  71. <Format id="default">
  72. <Columns>
  73. <Column size="79"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="142"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. </Columns>
  81. <Rows>
  82. <Row size="24" band="head"/>
  83. <Row size="24"/>
  84. </Rows>
  85. <Band id="head">
  86. <Cell text="분류"/>
  87. <Cell col="1" text="caption2"/>
  88. <Cell col="2" text="caption3"/>
  89. <Cell col="3" text="상세"/>
  90. <Cell col="4" text="caption4"/>
  91. <Cell col="5" text="caption5"/>
  92. <Cell col="6" text="caption6"/>
  93. </Band>
  94. <Band id="body">
  95. <Cell displaytype="text" text="bind:cnstclsnm" wordwrap="char" suppress="1" suppressalign="middle,over"/>
  96. <Cell col="1" text="bind:cnstdeptcd"/>
  97. <Cell col="2" text="bind:formcd"/>
  98. <Cell col="3" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:formnm" wordwrap="char"/>
  99. <Cell col="4" text="bind:cnstflag"/>
  100. <Cell col="5" text="bind:cnstdeptnm"/>
  101. <Cell col="6" text="bind:replflag"/>
  102. </Band>
  103. </Format>
  104. </Formats>
  105. </Grid>
  106. </Layout>
  107. </Layouts>
  108. </Tabpage>
  109. </Tabpages>
  110. </Tab>
  111. <Combo position="absolute 330 105 625 124" id="cmb_user" innerdataset="@ds_init_userlist" datacolumn="usernm" codecolumn="userid"/>
  112. <Shape position="absolute 243 490 625 496" linetype="horizontal" id="line5" class="line_2"/>
  113. <Button position="absolute 569 495 625 517" id="btn_attrapp" class="btn4" taborder="6" text="확인" onclick="btn_attrapp_onclick"/>
  114. <Edit readonly="true" position="absolute 330 31 625 50" id="output1"/>
  115. <Combo position="absolute 330 81 625 100" id="cmb_orddept" enable="false" innerdataset="@ds_init_orddept" datacolumn="depthngnm" codecolumn="deptcd"/>
  116. </Layout>
  117. </Layouts>
  118. <Objects>
  119. <Dataset id="ds_cnstformlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="cnstclsnm" type="STRING"/>
  122. <Column id="cnstdeptcd" type="STRING"/>
  123. <Column id="formcd" type="STRING"/>
  124. <Column id="formnm" type="STRING"/>
  125. <Column id="cnstflag" type="STRING"/>
  126. <Column id="cnstdeptnm" type="STRING"/>
  127. <Column id="replflag" type="STRING"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_init_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="usernm" type="STRING"/>
  133. <Column id="userid" type="STRING"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="depthngnm" type="STRING"/>
  139. <Column id="deptcd" type="STRING"/>
  140. </ColumnInfo>
  141. </Dataset>
  142. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="cpgno" type="STRING" size="256"/>
  145. <Column id="cpghistseq" type="STRING" size="256"/>
  146. <Column id="stepnm" type="STRING" size="256"/>
  147. <Column id="formseq" type="STRING" size="256"/>
  148. <Column id="formcd" type="STRING" size="256"/>
  149. <Column id="formwritflag" type="STRING" size="256"/>
  150. <Column id="cnstflag" type="STRING" size="256"/>
  151. <Column id="cnstclsnm" type="STRING" size="256"/>
  152. <Column id="recvdeptcd" type="STRING" size="256"/>
  153. <Column id="recvuserid" type="STRING" size="256"/>
  154. <Column id="cnstcnts" type="STRING" size="256"/>
  155. <Column id="recvdeptnm" type="STRING" size="256"/>
  156. </ColumnInfo>
  157. <Rows>
  158. <Row>
  159. <Col id="cpgno"/>
  160. <Col id="cpghistseq"/>
  161. <Col id="stepnm"/>
  162. <Col id="formseq"/>
  163. <Col id="formcd"/>
  164. <Col id="formwritflag"/>
  165. <Col id="cnstflag"/>
  166. <Col id="cnstclsnm"/>
  167. <Col id="recvdeptcd"/>
  168. <Col id="recvuserid"/>
  169. <Col id="cnstcnts"/>
  170. <Col id="recvdeptnm"/>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  175. <Dataset id="ds_init_stepinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  176. </Objects>
  177. <Bind>
  178. <BindItem id="item0" compid="output1" propid="value" datasetid="ds_cond" columnid="stepnm"/>
  179. <BindItem id="item1" compid="ipt_cnstclsnm" propid="value" datasetid="ds_cond" columnid="cnstclsnm"/>
  180. <BindItem id="item2" compid="cmb_orddept" propid="value" datasetid="ds_cond" columnid="recvdeptcd"/>
  181. <BindItem id="item3" compid="cmb_user" propid="value" datasetid="ds_cond" columnid="recvuserid"/>
  182. <BindItem id="item4" compid="textarea1" propid="value" datasetid="ds_cond" columnid="cnstcnts"/>
  183. </Bind>
  184. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  185. * System Name :
  186. * Job Name :
  187. * Creator :
  188. * Make Date : 2015-03-12
  189. * Description :
  190. *---------------------------------------------------------------------------------------
  191. * Modify Date Modifier Modify Description
  192. *---------------------------------------------------------------------------------------
  193. * 2015-03-12 Live Converter TF->XP
  194. *
  195. *---------------------------------------------------------------------------------------
  196. ****************************************************************************************/
  197. include "com_commonxp::comm_main.xjs";
  198. include "emr_prcpmngtxp::MMOCommon.xjs";
  199. include "emr_prcpmngtxp::MMO001.xjs";
  200. var arErrorCode = new HashArray();
  201. function SPMQP03700_oninit(obj:Form, e:InitEventInfo)
  202. {
  203. frmf_initForm(obj);
  204. }
  205. function SPMQP03700_onload(obj:Form, e:LoadEventInfo)
  206. {
  207. //copyNodeListType("/root/init/stepinfo", "root/temp/steplist/stepinfo", "after", model, opener.model);
  208. ds_init_stepinfo.copyData(opener.ds_temp_steplist_stepinfo);
  209. var stepno = opener.ds_send_reqdata.getColumn(0,"stepno");
  210. ds_cond.setColumn(0,"stepnm", ds_init_stepinfo.lookup("stepno", stepno , "stepnm"));
  211. lf_mmbfGetDeptCodeComboList(ds_init_orddept, "A"); //부서코드 콤보
  212. var editmode = opener.frmf_getParameter("SPMQP03700_edit");
  213. if (utlf_isNull(editmode)) {
  214. ds_cond.setColumn(0,"cnstflag" , "1");
  215. switch1.tabindex = 0;
  216. } else {
  217. var cnstflag = opener.frmf_getParameter("SPMQP03700_cnstflag");
  218. ds_cond.setColumn(0,"cnstflag" , cnstflag);
  219. ds_cond.setColumn(0,"formcd" , opener.frmf_getParameter("SPMQP03700_formcd"));
  220. ds_cond.setColumn(0,"cnstclsnm" , opener.frmf_getParameter("SPMQP03700_cnstclsnm"));
  221. ds_cond.setColumn(0,"recvdeptcd" , opener.frmf_getParameter("SPMQP03700_recvdeptcd"));
  222. ds_cond.setColumn(0,"cnstcnts" , opener.frmf_getParameter("SPMQP03700_cnstcnts"));
  223. if (cnstflag =="1" ) {
  224. cmb_user.enable = true;
  225. lf_mmbfGetUserComboList(ds_init_userlist, ds_cond.getColumn(0,"recvdeptcd"), "0330");
  226. ds_cond.setColumn(0,"recvuserid" , opener.frmf_getParameter("SPMQP03700_recvuserid"));
  227. switch1.tabindex = 0;
  228. } else {
  229. switch1.tabindex = 1;
  230. cmb_user.enable = false;
  231. }
  232. }
  233. fGetCnstFormList() ;
  234. dsf_createDs("ds_temp_cond");
  235. ds_temp_cond.copyData(ds_cond);
  236. }
  237. function fGetCnstFormList() {
  238. ds_send_reqdata.clear();
  239. dsf_makeValue(ds_send_reqdata,"cnstflag", "string", ds_cond.getColumn(0,"cnstflag"));
  240. var oParam = {};
  241. oParam.id = "TRMQP03701";
  242. oParam.service = "prcpbaseapp.CpMngt";
  243. oParam.method = "reqGetCnstFormList";
  244. oParam.inds = "req=ds_send_reqdata";
  245. oParam.outds = "ds_cnstformlist=cnstformlist";
  246. oParam.async = true;
  247. oParam.callback = "cf_TRMQP03701";
  248. tranf_submit(oParam);
  249. }
  250. function cf_TRMQP03701(sSvcId, nErrorCode, sErrorMsg) {
  251. if(nErrorCode < 0) return;
  252. }
  253. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  254. {
  255. if(e.postindex == 0)
  256. {
  257. ds_cond.setColumn(0,"cnstflag" , "1");
  258. fGetCnstFormList() ;
  259. }
  260. else
  261. {
  262. ds_cond.setColumn(0,"cnstflag" , "3");
  263. fGetCnstFormList() ;
  264. }
  265. }
  266. function switch1_case1_grd_cnstlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  267. {
  268. var recvdeptnm = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstdeptnm");
  269. var recvdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstdeptcd");
  270. if( ds_cond.getColumn(0,"cnstflag") == "1" ){
  271. var cnstclsnm = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstclsnm") + "(" + recvdeptnm + ")";
  272. }else{
  273. var cnstclsnm = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstclsnm");
  274. }
  275. var formcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"formcd");
  276. ds_cond.setColumn(0,"recvdeptnm" , recvdeptnm);
  277. ds_cond.setColumn(0,"recvdeptcd" , recvdeptcd);
  278. ds_cond.setColumn(0,"cnstclsnm" , cnstclsnm);
  279. ds_cond.setColumn(0,"cnstcnts" , "");
  280. ds_cond.setColumn(0,"formcd" , formcd);
  281. var cnstflag = ds_cond.getColumn(0,"cnstflag");
  282. if (cnstflag =="1" ) {
  283. cmb_user.enable = true;
  284. lf_mmbfGetUserComboList(ds_init_userlist, ds_cond.getColumn(0,"recvdeptcd"), "0330");
  285. } else {
  286. cmb_user.enable = false;
  287. }
  288. cmb_user.index = 0;
  289. }
  290. function switch1_case2_grd_cnstlist2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  291. {
  292. var recvdeptnm = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstdeptnm");
  293. var recvdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"cnstdeptcd");
  294. var cnstclsnm = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"formnm");
  295. var formcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition,"formcd");
  296. ds_cond.setColumn(0,"recvdeptnm" , recvdeptnm);
  297. ds_cond.setColumn(0,"recvdeptcd" , recvdeptcd);
  298. ds_cond.setColumn(0,"cnstclsnm" , cnstclsnm);
  299. ds_cond.setColumn(0,"formcd" , formcd);
  300. cmb_user.enable = false;
  301. }
  302. function btn_attrapp_onclick(obj:Button, e:ClickEventInfo)
  303. {
  304. var formcd = ds_cond.getColumn(0,"formcd");
  305. var cnstflag = ds_cond.getColumn(0,"cnstflag");
  306. var cnstclsnm = ds_cond.getColumn(0,"cnstclsnm");
  307. var recvdeptcd = ds_cond.getColumn(0,"recvdeptcd");
  308. var recvuserid = ds_cond.getColumn(0,"recvuserid");
  309. var cnstcnts = ds_cond.getColumn(0,"cnstcnts");
  310. if (utlf_isNull(formcd)) {
  311. sysf_messageBox("진료과는 필수입니다.","");
  312. return;
  313. }
  314. if (utlf_isNull(cnstclsnm)) {
  315. sysf_messageBox("제목은 필수입니다.","");
  316. ipt_cnstclsnm.setFocus();
  317. return;
  318. }
  319. if (utlf_isNull(recvdeptcd)) {
  320. sysf_messageBox("수신과는 필수입니다.","");
  321. cmb_orddept.setFocus();
  322. return;
  323. }
  324. if (utlf_isNull(cnstcnts)) {
  325. sysf_messageBox("의뢰내용은 필수입니다.","");
  326. textarea1.setFocus();
  327. return;
  328. }
  329. var updateflag = lf_compareNodeVal(ds_cond, ds_temp_cond);
  330. if (updateflag == true) {
  331. opener.frmf_setParameter("SPMQP03700_rtn" , "Y");
  332. }
  333. opener.frmf_setParameter("SPMQP03700_formcd" , formcd);
  334. opener.frmf_setParameter("SPMQP03700_cnstflag" , cnstflag);
  335. opener.frmf_setParameter("SPMQP03700_cnstclsnm" , cnstclsnm);
  336. opener.frmf_setParameter("SPMQP03700_recvdeptcd" , recvdeptcd);
  337. opener.frmf_setParameter("SPMQP03700_recvuserid" , recvuserid);
  338. opener.frmf_setParameter("SPMQP03700_cnstcnts" , cnstcnts);
  339. this.close();
  340. }
  341. ]]></Script>
  342. </Form>
  343. </FDL>