SPARC00102_신규병의원협약관리.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPARC00102" position="absolute 0 0 1200 800" titletext="신규병의원협약관리" ontimer="SMARC00101_ontimer" oninit="SPARC00102_oninit" onload="SPARC00102_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="신규병의원협약관리" class="tit_1" position="absolute 0 0 195 24"/>
  8. <Div id="group1" taborder="4" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption11" text="조회구분 :" class="search_name" position="absolute 9 11 103 28" anchor="default"/>
  12. <Button id="btn_search" taborder="2" position="absolute 1071 8 1128 34" class="btn1" text="조회" anchor="top right" onclick="group1_btn_search_onclick"/>
  13. <Button id="btn_save" taborder="3" text="저장" class="btn4" position="absolute 1130 8 1187 34" anchor="top right" onclick="group1_btn_save_onclick"/>
  14. <Combo id="cmb_gubun" taborder="4" position="absolute 93 8 218 32" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="01" text="등록일자">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn" size="256"/>
  18. <Column id="datacolumn" size="256"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">01</Col>
  23. <Col id="datacolumn">등록일자</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">02</Col>
  27. <Col id="datacolumn">협약서 발송날짜</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">03</Col>
  31. <Col id="datacolumn">지정서 발송날짜</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. <Calendar id="ipt_fromdd" taborder="5" position="absolute 227 9 345 32" autoselect="true" autoskip="true"/>
  37. <Static id="Static00" text="~" position="absolute 353 11 364 29"/>
  38. <Calendar id="ipt_todd" taborder="6" autoselect="true" position="absolute 371 9 489 32"/>
  39. <CheckBox id="chk_endyn" taborder="7" text="완료 포함" position="absolute 503 9 580 32" truevalue="Y" falsevalue="N"/>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Static id="caption8" text="병의원협약관리" class="tit_2" position="absolute 0 78 171 94"/>
  44. <Grid id="grd_list" taborder="5" useinputpanel="false" position="absolute 0 99 1195 793" anchor="all" cellsizingtype="row" extendsizetype="row" autoenter="select" cellclickbound="cell" binddataset="ds_main_contactlist">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="25" band="left"/>
  49. <Column size="28" band="left"/>
  50. <Column size="80" band="left"/>
  51. <Column size="200" band="left"/>
  52. <Column size="31" band="left"/>
  53. <Column size="40"/>
  54. <Column size="40"/>
  55. <Column size="50"/>
  56. <Column size="50"/>
  57. <Column size="40"/>
  58. <Column size="50"/>
  59. <Column size="50"/>
  60. <Column size="50"/>
  61. <Column size="40"/>
  62. <Column size="100"/>
  63. <Column size="100"/>
  64. <Column size="100"/>
  65. <Column size="40"/>
  66. <Column size="40"/>
  67. <Column size="190"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="35" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell/>
  75. <Cell col="1"/>
  76. <Cell col="2" text="등록일자"/>
  77. <Cell col="3" text="병원명"/>
  78. <Cell col="4" text="완료&#13;&#10;여부"/>
  79. <Cell col="5" text="신청서" wordwrap="word"/>
  80. <Cell col="6" text="허가증" wordwrap="word"/>
  81. <Cell col="7" text="회송&#13;&#10;(전원)"/>
  82. <Cell col="8" text="의료진&#13;&#10;현황"/>
  83. <Cell col="9" text="병원&#13;&#10;현황"/>
  84. <Cell col="10" text="심평원&#13;&#10;동의서"/>
  85. <Cell col="11" text="HIE&#13;&#10;신청서"/>
  86. <Cell col="12" text="HIE&#13;&#10;교류객체"/>
  87. <Cell col="13" text="폐업"/>
  88. <Cell col="14" text="협약서&#13;&#10;발송 날짜"/>
  89. <Cell col="15" text="협약서"/>
  90. <Cell col="16" text="지정서&#13;&#10;발송 날짜"/>
  91. <Cell col="17" text="본원" wordwrap="word"/>
  92. <Cell col="18" text="칠곡" wordwrap="word"/>
  93. <Cell col="19" text="주차"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell celltype="head"/>
  97. <Cell col="1" celltype="head" style="align:center middle;" expr="currow+1"/>
  98. <Cell col="2" displaytype="date" text="bind:recdd"/>
  99. <Cell col="3" displaytype="text" edittype="text" text="bind:coophospnm" wordwrap="word" autosizerow="limitmin"/>
  100. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:endyn" expr="expr:endyn == 'Y' ? 1 : 0"/>
  101. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:field01" expr="expr:field01 == 'Y' ? 1 : 0"/>
  102. <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:field02" expr="expr:field02 == 'Y' ? 1 : 0"/>
  103. <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:field03" expr="expr:field03 == 'Y' ? 1 : 0"/>
  104. <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:field04" expr="expr:field04 == 'Y' ? 1 : 0"/>
  105. <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:field05" expr="expr:field05 == 'Y' ? 1 : 0"/>
  106. <Cell col="10" displaytype="checkbox" edittype="checkbox" text="bind:field06" expr="expr:field06 == 'Y' ? 1 : 0"/>
  107. <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:field07" expr="expr:field07 == 'Y' ? 1 : 0"/>
  108. <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:field08" expr="expr:field08 == 'Y' ? 1 : 0"/>
  109. <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:isclose" expr="expr:isclose == 'Y' ? 1 : 0"/>
  110. <Cell col="14" displaytype="date" edittype="date" text="bind:senddd" calendardisplaynulltype="nulltext"/>
  111. <Cell col="15" displaytype="date" edittype="date" text="bind:contdd" calendardisplaynulltype="nulltext"/>
  112. <Cell col="16" displaytype="date" edittype="date" text="bind:formdd" calendardisplaynulltype="nulltext"/>
  113. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:ismang" expr="expr:ismang == 'Y' ? 1 : 0 "/>
  114. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:ischil" expr="expr:ischil == 'Y' ? 1 : 0"/>
  115. <Cell col="19" displaytype="text" edittype="text" text="bind:parrem" wordwrap="word"/>
  116. </Band>
  117. </Format>
  118. </Formats>
  119. </Grid>
  120. <Shape id="Shape00" position="absolute 0 93 1195 102" class="line_10" anchor="left top right"/>
  121. <Button id="btn_excel" taborder="6" text="엑셀" position="absolute 1139 70 1195 94" class="btn7" anchor="top right" onclick="btn_excel_onclick"/>
  122. <Button id="btn_add" taborder="7" text="행추가" position="absolute 1078 70 1138 94" class="btn2" onclick="btn_add_onclick"/>
  123. <Grid id="grd_excel" taborder="8" useinputpanel="false" position="absolute 190 142 613 453" binddataset="ds_temp_excellist" visible="false">
  124. <Formats>
  125. <Format id="default">
  126. <Columns>
  127. <Column size="28" band="left"/>
  128. <Column size="80" band="left"/>
  129. <Column size="200" band="left"/>
  130. <Column size="40"/>
  131. <Column size="40"/>
  132. <Column size="40"/>
  133. <Column size="50"/>
  134. <Column size="50"/>
  135. <Column size="40"/>
  136. <Column size="50"/>
  137. <Column size="50"/>
  138. <Column size="50"/>
  139. <Column size="40"/>
  140. <Column size="100"/>
  141. <Column size="100"/>
  142. <Column size="100"/>
  143. <Column size="40"/>
  144. <Column size="40"/>
  145. <Column size="190"/>
  146. </Columns>
  147. <Rows>
  148. <Row size="35" band="head"/>
  149. <Row size="24"/>
  150. </Rows>
  151. <Band id="head">
  152. <Cell/>
  153. <Cell col="1" text="등록일자"/>
  154. <Cell col="2" text="병원명"/>
  155. <Cell col="3" text="완료&#13;&#10;여부" wordwrap="word"/>
  156. <Cell col="4" text="신청서" wordwrap="word"/>
  157. <Cell col="5" text="허가증" wordwrap="word"/>
  158. <Cell col="6" text="회송&#13;&#10;(전원)"/>
  159. <Cell col="7" text="의료진&#13;&#10;현황"/>
  160. <Cell col="8" text="병원&#13;&#10;현황"/>
  161. <Cell col="9" text="심평원&#13;&#10;동의서"/>
  162. <Cell col="10" text="HIE&#13;&#10;신청서"/>
  163. <Cell col="11" text="HIE&#13;&#10;교류객체"/>
  164. <Cell col="12" text="폐업"/>
  165. <Cell col="13" text="협약서&#13;&#10;발송 날짜"/>
  166. <Cell col="14" text="협약서"/>
  167. <Cell col="15" text="지정서&#13;&#10;발송 날짜"/>
  168. <Cell col="16" text="본원" wordwrap="word"/>
  169. <Cell col="17" text="칠곡" wordwrap="word"/>
  170. <Cell col="18" text="주차"/>
  171. </Band>
  172. <Band id="body">
  173. <Cell celltype="head" style="align:center middle;" text="bind:seqno" expr="expr:utlf_isNull(seqno) ? currow+1 : seqno"/>
  174. <Cell col="1" displaytype="date" text="bind:recdd"/>
  175. <Cell col="2" displaytype="text" edittype="text" text="bind:coophospnm" wordwrap="word" autosizerow="limitmin"/>
  176. <Cell col="3" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:endyn"/>
  177. <Cell col="4" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field01"/>
  178. <Cell col="5" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field02"/>
  179. <Cell col="6" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field03"/>
  180. <Cell col="7" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field04"/>
  181. <Cell col="8" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field05"/>
  182. <Cell col="9" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field06"/>
  183. <Cell col="10" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field07"/>
  184. <Cell col="11" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:field08"/>
  185. <Cell col="12" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:isclose"/>
  186. <Cell col="13" displaytype="date" edittype="date" text="bind:senddd" calendardisplaynulltype="nulltext"/>
  187. <Cell col="14" displaytype="date" edittype="date" text="bind:contdd" calendardisplaynulltype="nulltext"/>
  188. <Cell col="15" displaytype="date" edittype="date" text="bind:formdd" calendardisplaynulltype="nulltext"/>
  189. <Cell col="16" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:ismang"/>
  190. <Cell col="17" displaytype="text" style="align:center middle;padding:0 0 0 0;" text="bind:ischil"/>
  191. <Cell col="18" displaytype="text" edittype="text" text="bind:parrem" wordwrap="word"/>
  192. </Band>
  193. </Format>
  194. </Formats>
  195. </Grid>
  196. <Button id="btn_delete" taborder="9" text="행삭제" class="btn2" position="absolute 1017 70 1077 94" onclick="btn_delete_onclick"/>
  197. </Layout>
  198. </Layouts>
  199. <Objects>
  200. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="instcd" type="STRING" size="256"/>
  203. <Column id="gubun" type="STRING" size="256"/>
  204. <Column id="fromdd" type="STRING" size="256"/>
  205. <Column id="todd" type="STRING" size="256"/>
  206. <Column id="endyn" type="STRING" size="256"/>
  207. </ColumnInfo>
  208. <Rows>
  209. <Row/>
  210. </Rows>
  211. </Dataset>
  212. <Dataset id="ds_main_contactlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_contactlist_oncolumnchanged">
  213. <ColumnInfo>
  214. <Column id="seqno" type="STRING" size="256"/>
  215. <Column id="recdd" type="STRING" size="256"/>
  216. <Column id="recid" type="STRING" size="256"/>
  217. <Column id="coophospnm" type="STRING" size="256"/>
  218. <Column id="field01" type="STRING" size="256"/>
  219. <Column id="field02" type="STRING" size="256"/>
  220. <Column id="field03" type="STRING" size="256"/>
  221. <Column id="field04" type="STRING" size="256"/>
  222. <Column id="field05" type="STRING" size="256"/>
  223. <Column id="field06" type="STRING" size="256"/>
  224. <Column id="field07" type="STRING" size="256"/>
  225. <Column id="field08" type="STRING" size="256"/>
  226. <Column id="isclose" type="STRING" size="256"/>
  227. <Column id="ismang" type="STRING" size="256"/>
  228. <Column id="ischil" type="STRING" size="256"/>
  229. <Column id="senddd" type="STRING" size="256"/>
  230. <Column id="contdd" type="STRING" size="256"/>
  231. <Column id="formdd" type="STRING" size="256"/>
  232. <Column id="parrem" type="STRING" size="256"/>
  233. </ColumnInfo>
  234. </Dataset>
  235. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  236. <Dataset id="ds_temp_excellist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_temp_excellist_oncolumnchanged"/>
  237. </Objects>
  238. <Bind>
  239. <BindItem id="item0" compid="group1.cmb_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
  240. <BindItem id="item1" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  241. <BindItem id="item2" compid="group1.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  242. <BindItem id="item3" compid="group1.chk_endyn" propid="value" datasetid="ds_send" columnid="endyn"/>
  243. </Bind>
  244. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  245. * System Name :
  246. * Job Name :
  247. * Creator :
  248. * Make Date : 2015-11-13
  249. * Description :
  250. *---------------------------------------------------------------------------------------
  251. * Modify Date Modifier Modify Description
  252. *---------------------------------------------------------------------------------------
  253. * 2015-11-13 Live Converter TF->XP
  254. *
  255. *---------------------------------------------------------------------------------------
  256. ****************************************************************************************/
  257. include "com_commonxp::comm_main.xjs";
  258. var arErrorCode = new HashArray();
  259. function SPARC00102_oninit(obj:Form, e:InitEventInfo)
  260. {
  261. frmf_initForm(obj);
  262. }
  263. function SPARC00102_onload(obj:Form, e:LoadEventInfo)
  264. {
  265. grdf_initGrid(grd_list);
  266. grdf_setRowTypeIcon(grd_list, 0);
  267. var CurDate = utlf_getCurrentDate();
  268. var Fromdd = ((CurDate.toDate()).getAddDate(-1,"M")).getDateFormat();
  269. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  270. ds_send.setColumn(0, "gubun", '01');
  271. ds_send.setColumn(0, "fromdd", Fromdd);
  272. ds_send.setColumn(0, "todd", CurDate);
  273. ds_send.setColumn(0, "endyn", 'N');
  274. }
  275. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  276. {
  277. var oParam = {};
  278. oParam.id = "TRMNB00001";
  279. oParam.service = "healcarecoopapp.CoopHospMngt";
  280. oParam.method = "reqGetContactList";
  281. oParam.inds = "req=ds_send";
  282. oParam.outds = "ds_main_contactlist=list";
  283. oParam.async = false;
  284. oParam.callback = "cf_TRMNB00001";
  285. tranf_submit(oParam);
  286. // if(arErrorCode.pop("TRMNB00001") > -1)
  287. // {
  288. // dsf_setDefaultVal(ds_main_contactlist, "field01:N,field02:N,field03:N,field04:N,field05:N,field06:N,field07:N,field08:N,isclose:N,ismang:N,ischil:N");
  289. // }
  290. }
  291. function cf_TRMNB00001(sSvcId, nErrorCode, sErrorMsg) {
  292. arErrorCode.push(sSvcId, nErrorCode);
  293. if(nErrorCode < 0) return;
  294. }
  295. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  296. {
  297. var addRow = ds_main_contactlist.addRow();
  298. ds_main_contactlist.setColumn(addRow, "recid", sysf_getUserInfo("userid"));
  299. ds_main_contactlist.setColumn(addRow, "recdd", utlf_getCurrentDate());
  300. }
  301. function ds_main_contactlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  302. {
  303. if(e.columnid == "field01"){
  304. obj.setColumn(e.row, "field01", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  305. }
  306. if(e.columnid == "field02"){
  307. obj.setColumn(e.row, "field02", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  308. }
  309. if(e.columnid == "field03"){
  310. obj.setColumn(e.row, "field03", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  311. }
  312. if(e.columnid == "field04"){
  313. obj.setColumn(e.row, "field04", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  314. }
  315. if(e.columnid == "field05"){
  316. obj.setColumn(e.row, "field05", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  317. }
  318. if(e.columnid == "field06"){
  319. obj.setColumn(e.row, "field06", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  320. }
  321. if(e.columnid == "field07"){
  322. obj.setColumn(e.row, "field07", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  323. }
  324. if(e.columnid == "field08"){
  325. obj.setColumn(e.row, "field08", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  326. }
  327. if(e.columnid == "isclose"){
  328. obj.setColumn(e.row, "isclose", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  329. }
  330. if(e.columnid == "ismang"){
  331. obj.setColumn(e.row, "ismang", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  332. }
  333. if(e.columnid == "ischil"){
  334. obj.setColumn(e.row, "ischil", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  335. }
  336. if(e.columnid == "endyn"){
  337. obj.setColumn(e.row, "endyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  338. }
  339. }
  340. function group1_btn_save_onclick(obj:Button, e:ClickEventInfo)
  341. {
  342. var updategrid = grdf_getGridUpdateData(grd_list);
  343. grdf_setStatusColumn(updategrid, "status");
  344. ds_send_save.copyData(updategrid, true);
  345. dsf_setDefaultVal(ds_send_save, "field01:N,field02:N,field03:N,field04:N,field05:N,field06:N,field07:N,field08:N,isclose:N,ismang:N,ischil:N,endyn:N");
  346. var oParam = {};
  347. oParam.id = "TRMNB00002";
  348. oParam.service = "healcarecoopapp.CoopHospMngt";
  349. oParam.method = "reqSetContactList";
  350. oParam.inds = "req=ds_send_save";
  351. oParam.outds = "";
  352. oParam.async = false;
  353. oParam.callback = "cf_TRMNB00001";
  354. tranf_submit(oParam);
  355. if(arErrorCode.pop("TRMNB00002") > -1)
  356. {
  357. group1.btn_search.click();
  358. }
  359. }
  360. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  361. {
  362. ds_temp_excellist.copyData(ds_main_contactlist);
  363. if(ds_temp_excellist.rowcount > 0)
  364. {
  365. grdf_exportExcel(grd_excel, "excel", "Sheet1", "true", "", "");
  366. }
  367. }
  368. function ds_temp_excellist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  369. {
  370. if(e.columnid == "field01"){
  371. obj.setColumn(e.row, "field01", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  372. }
  373. if(e.columnid == "field02"){
  374. obj.setColumn(e.row, "field02", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  375. }
  376. if(e.columnid == "field03"){
  377. obj.setColumn(e.row, "field03", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  378. }
  379. if(e.columnid == "field04"){
  380. obj.setColumn(e.row, "field04", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  381. }
  382. if(e.columnid == "field05"){
  383. obj.setColumn(e.row, "field05", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  384. }
  385. if(e.columnid == "field06"){
  386. obj.setColumn(e.row, "field06", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  387. }
  388. if(e.columnid == "field07"){
  389. obj.setColumn(e.row, "field07", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  390. }
  391. if(e.columnid == "field08"){
  392. obj.setColumn(e.row, "field08", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  393. }
  394. if(e.columnid == "isclose"){
  395. obj.setColumn(e.row, "isclose", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  396. }
  397. if(e.columnid == "ismang"){
  398. obj.setColumn(e.row, "ismang", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  399. }
  400. if(e.columnid == "ischil"){
  401. obj.setColumn(e.row, "ischil", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  402. }
  403. if(e.columnid == "endyn"){
  404. obj.setColumn(e.row, "endyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  405. }
  406. }
  407. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  408. {
  409. if(ds_main_contactlist.getRowType(ds_main_contactlist.rowposition) == 2){
  410. ds_main_contactlist.deleteRow();
  411. }
  412. else{
  413. ds_main_contactlist.updatecontrol = false;
  414. ds_main_contactlist.setRowType(ds_main_contactlist.rowposition, "d");
  415. ds_main_contactlist.updatecontrol = true;
  416. }
  417. }
  418. ]]></Script>
  419. </Form>
  420. </FDL>