Listc.aspx 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Listc.aspx.cs" Inherits="Com.Jpsoft.Hospital.Web.Module.ExamineInfo.SORIS.Listc" %>
  2. <%@ Register Assembly="ZqWebControlLibrary" Namespace="FrameWork.WebControls" TagPrefix="cc1" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head runat="server">
  6. <title></title>
  7. <link type="text/css" rel="Stylesheet" href="<%=Page.ResolveClientUrl("~/") %>Css/main.css" />
  8. <script src='<%=Page.ResolveClientUrl("~/js/My97DatePicker/WdatePicker.js") %>' type="text/javascript"></script>
  9. <script src='<%=Page.ResolveClientUrl("~/js/jquery.js") %>' type="text/javascript"></script>
  10. <script>
  11. $(function () {
  12. $("#pro").css("display", "none");
  13. $("#tip").css("height", "0px");
  14. Warning();
  15. setInterval("Warning()", 6000);
  16. });
  17. function Warning() {
  18. $.ajax({
  19. url: "../../Proxy/Get.ashx",
  20. type: "GET",
  21. data: {
  22. rad: Math.random()
  23. },
  24. success: function (count) {
  25. if (count > 0) {
  26. $("#divContext").html(" 有 <font color='red'>" + count + "</font> 条投诉待处理!");
  27. start();
  28. }
  29. }
  30. });
  31. }
  32. function Procee(uid, name) {
  33. $("#pro").css("display", "");
  34. $("#txtUID").val(uid);
  35. $("#txtName").text(name);
  36. }
  37. var handle;
  38. function start() {
  39. var obj = document.getElementById("tip");
  40. var play = document.getElementById("player");
  41. if (parseInt(obj.style.height) == 0 || obj.style.height == "") {
  42. obj.style.display = "block";
  43. play.controls.play();
  44. // $("#player1").attr("src", "08022913363013.wav");
  45. handle = setInterval("changeH('up')", 10);
  46. } else {
  47. play.controls.stop();
  48. // $("#player1").attr("src", "");
  49. handle = setInterval("changeH('down')", 10);
  50. }
  51. }
  52. function changeH(str) {
  53. var obj = document.getElementById("tip");
  54. if (str == "up") {
  55. if (parseInt(obj.style.height) > 120)
  56. clearInterval(handle);
  57. else
  58. obj.style.height = (parseInt(obj.style.height) + 8).toString() + "px";
  59. }
  60. if (str == "down") {
  61. if (parseInt(obj.style.height) < 5) {
  62. clearInterval(handle);
  63. obj.style.display = "none";
  64. }
  65. else
  66. obj.style.height = (parseInt(obj.style.height) - 8).toString() + "px";
  67. }
  68. }
  69. function showwin() {
  70. document.getElementsByTagName("html")[0].style.overflow = "hidden";
  71. start();
  72. document.getElementById("shadow").style.display = "block";
  73. document.getElementById("detail").style.display = "block";
  74. }
  75. function recover() {
  76. document.getElementsByTagName("html")[0].style.overflow = "auto";
  77. document.getElementById("shadow").style.display = "none";
  78. document.getElementById("detail").style.display = "none";
  79. }
  80. </script>
  81. <style>
  82. #tip
  83. {
  84. position: absolute;
  85. right: 0px;
  86. bottom: 0px;
  87. height: 0px;
  88. width: 180px;
  89. border: 1px solid #CCCCCC;
  90. background-color: #eeeeee;
  91. padding: 1px;
  92. overflow: hidden;
  93. font-size: 12px;
  94. z-index: 10000;
  95. }
  96. #tip p
  97. {
  98. padding: 6px;
  99. }
  100. #tip h1, #detail h1
  101. {
  102. font-size: 14px;
  103. height: 25px;
  104. line-height: 25px;
  105. background-color: #0066CC;
  106. color: #FFFFFF;
  107. padding: 0px 3px 0px 3px;
  108. filter: Alpha(Opacity=100);
  109. }
  110. #tip h1 a, #detail h1 a
  111. {
  112. float: right;
  113. text-decoration: none;
  114. color: #FFFFFF;
  115. }
  116. #shadow
  117. {
  118. position: absolute;
  119. width: 100%;
  120. height: 100%;
  121. background-color: #000000;
  122. z-index: 11;
  123. filter: Alpha(Opacity=70);
  124. display: none;
  125. overflow: hidden;
  126. }
  127. #detail
  128. {
  129. width: 500px;
  130. height: 200px;
  131. border: 3px double #ccc;
  132. background-color: #FFFFFF;
  133. position: absolute;
  134. z-index: 30;
  135. left: 30%;
  136. top: 30%;
  137. }
  138. </style>
  139. <script>
  140. function chkAllBox() {
  141. var f = document.forms['operate'];
  142. var ischecked = f.checkall.checked;
  143. for (var i = 0; i < f.elements.length; i++) {
  144. if (f.elements[i].type.toLowerCase() == "checkbox") {
  145. f.elements[i].checked = ischecked;
  146. }
  147. }
  148. }
  149. function ChooseAll() {
  150. //alert("ChooseAll");
  151. var cbs = document.getElementsByName("imagebox");
  152. for (var i = 0; i < cbs.length; i++) {
  153. cbs[i].checked = true;
  154. }
  155. }
  156. function UnChoose() {
  157. var cbs = document.getElementsByName("imagebox");
  158. for (var i = 0; i < cbs.length; i++) {
  159. cbs[i].checked = !cbs[i].checked;
  160. }
  161. }
  162. function DeleteChoose(curpage) {
  163. var cbs = document.getElementsByName("imagebox");
  164. var ids = "";
  165. var chooseid = "";
  166. for (var i = 0; i < cbs.length; i++) {
  167. if (cbs[i].checked == true) {
  168. chooseid = chooseid + "," + cbs[i].value;
  169. }
  170. }
  171. ids = chooseid.substring(1);
  172. //alert(ids);
  173. if (ids == "") {
  174. alert("未选择任意项!");
  175. }
  176. else {
  177. if (confirm("是否删除选择项?")) {
  178. document.location = "?CMD=Deletes&LCurPage=" + curpage + "&ids=" + ids;
  179. }
  180. }
  181. }
  182. </script>
  183. </head>
  184. <body>
  185. <form id="form1" runat="server">
  186. <div id="main">
  187. <div class="main_title">
  188. <div class="mainborder1">
  189. </div>
  190. <div class="mainborder3">
  191. </div>
  192. <div class="mainborder2">
  193. <div class="pagetitle">
  194. <div style="float: left">
  195. 医德医风>>批评</div>
  196. <div style="float: right">
  197. <!--<a href="Insert.aspx" style="text-align: right">新增</a>-->
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="main_body">
  203. <table border="0" cellpadding="0" cellspacing="1" width="100%">
  204. <tr>
  205. <td>
  206. <%-- <table border="0" cellpadding="0" cellspacing="1" width="100%">
  207. <tr>
  208. <td width="200px" align="right">
  209. 时间:
  210. </td>
  211. <td width="30%">
  212. <asp:TextBox runat="server" ID="txtDate1" onclick="WdatePicker();"></asp:TextBox>
  213. 至<asp:TextBox runat="server" ID="txtDate2" onclick="WdatePicker();"></asp:TextBox>
  214. </td>
  215. <td>
  216. <asp:Button ID="Button1" runat="server" Text="查询" CssClass="BtnNormal" OnClick="Button1_Click" />
  217. </td>
  218. </tr>
  219. </table>--%>
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>
  224. <input id="Button2" type="button" class="BtnNormal" value="全选" onclick="ChooseAll()" />
  225. <input id="Button3" type="button" class="BtnNormal" value="反选" onclick="UnChoose()" />
  226. <input id="Button4" type="button" class="BtnNormal" value="删除选择项" onclick="DeleteChoose(<%=AspNetPager1.CurrentPageIndex%>)" /><br />
  227. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" SkinID="gvskin">
  228. <Columns>
  229. <asp:TemplateField>
  230. <ItemTemplate>
  231. <input id="Checkbox1" name="imagebox" style="border: 0px;" value='<%#Eval("UID") %>'
  232. type="checkbox" />
  233. </ItemTemplate>
  234. <ItemStyle HorizontalAlign="Center" />
  235. </asp:TemplateField>
  236. <asp:BoundField DataField="UID" HeaderText="编号" />
  237. <asp:BoundField DataField="Zyh" HeaderText="住院号" />
  238. <asp:BoundField DataField="Mzh" HeaderText="门诊卡号" />
  239. <asp:BoundField DataField="Ygh" HeaderText="员工号" />
  240. <asp:TemplateField HeaderText="姓名">
  241. <ItemTemplate>
  242. <asp:Label ID="Labe31" runat="server" Text='<%# GetName(Eval("Zyh"),Eval("Mzh"),Eval("Ygh")) %>'></asp:Label>
  243. </ItemTemplate>
  244. </asp:TemplateField>
  245. <asp:BoundField DataField="Complaintime" HeaderText="时间" />
  246. <asp:BoundField DataField="Complainphone" HeaderText="电话" />
  247. <asp:BoundField DataField="TypeName" HeaderText="类别" />
  248. <asp:BoundField DataField="ygdm" HeaderText="员工工号" />
  249. <asp:BoundField DataField="ygxm" HeaderText="员工姓名" />
  250. <asp:BoundField DataField="ksmc" HeaderText="科室" />
  251. <asp:TemplateField HeaderText="是否处理">
  252. <ItemTemplate>
  253. <asp:Label ID="Label1" runat="server" Text='<%# GetBoolCN(Eval("Isprocess")) %>'></asp:Label>
  254. </ItemTemplate>
  255. </asp:TemplateField>
  256. <asp:TemplateField HeaderText="处理">
  257. <ItemTemplate>
  258. <div onclick='Procee(<%#Eval("UID") %>,"<%#Eval("ygxm") %>")' style="cursor: pointer">
  259. 处理</div>
  260. </ItemTemplate>
  261. </asp:TemplateField>
  262. </Columns>
  263. </asp:GridView>
  264. <cc1:AspNetPager ID="AspNetPager1" runat="server" PageSize="18" OnPageChanged="AspNetPager1_PageChanged">
  265. </cc1:AspNetPager>
  266. </td>
  267. </tr>
  268. <tr id="pro">
  269. <td>
  270. <br />
  271. <br />
  272. <br />
  273. <asp:TextBox ID="txtUID" Style="display: none" runat="server"></asp:TextBox>
  274. 投诉
  275. <asp:Label runat="server" Text="" ID="txtName"></asp:Label>
  276. &nbsp;的意见:<br />
  277. <asp:TextBox runat="server" ID="txtContext" TextMode="MultiLine" Width="60%" Height="80"></asp:TextBox>
  278. <br />
  279. <asp:CheckBox ID="cbxZBY" runat="server" Text="转表扬" /><br />
  280. 联系人:<asp:TextBox runat="server" ID="txtLinkman"></asp:TextBox>
  281. <br />
  282. 联系时间:<asp:TextBox runat="server" ID="txtLinktime" onclick="WdatePicker();"></asp:TextBox>
  283. <asp:Button runat="server" Text="处理" OnClick="Unnamed1_Click" />
  284. </td>
  285. </tr>
  286. </table>
  287. </div>
  288. <div class="main_foot">
  289. <div class="mainborder4">
  290. </div>
  291. <div class="mainborder6">
  292. </div>
  293. <div class="mainborder5">
  294. </div>
  295. </div>
  296. </div>
  297. <div id="shadow">
  298. </div>
  299. <div id="tip" onclick="start()">
  300. <h1>
  301. <a href="javascript:void(0)" onclick="start()">×</a>提醒</h1>
  302. <div style="display: block;">
  303. <object id="player" height="266" width="360" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
  304. style="display: none">
  305. <param name="AutoStart" value="0">
  306. <!--是否自动播放;0则不自动播放-->
  307. <param name="Balance" value="0">
  308. <!--调整左右声道平衡,同上面旧播放器代码-->
  309. <param name="enabled" value="-1">
  310. <!--播放器是否可人为控制;0是人为不能控件-->
  311. <param name="EnableContextMenu" value="-1">
  312. <!--是否启用上下文菜单-->
  313. <param name="url" value="08022913363013.wav">
  314. <!--播放的文件地址-->
  315. <param name="PlayCount" value="100000">
  316. <!--播放次数控制,为整数-->
  317. <param name="rate" value="1">
  318. <!--播放速率控制,1为正常,允许小数,1.0-2.0-->
  319. <param name="currentPosition" value="0">
  320. <!--控件设置:当前位置-->
  321. <param name="currentMarker" value="0">
  322. <!--控件设置:当前标记-->
  323. <param name="defaultFrame" value="">
  324. <!--显示默认框架-->
  325. <param name="invokeURLs" value="0">
  326. <!--脚本命令设置:是否调用URL-->
  327. <param name="baseURL" value="">
  328. <!--脚本命令设置:被调用的URL-->
  329. <param name="stretchToFit" value="0">
  330. <!--是否按比例伸展-->
  331. <param name="volume" value="50">
  332. <!--默认声音大小0%-100%,50则为50%-->
  333. <param name="mute" value="0">
  334. <!--是否静音-->
  335. <param name="uiMode" value="Full">
  336. <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
  337. <param name="windowlessVideo" value="0">
  338. <!--如果是0可以允许全屏,否则只能在窗口中查看-->
  339. <param name="fullScreen" value="0">
  340. <!--开始播放是否自动全屏-->
  341. <param name="enableErrorDialogs" value="-1">
  342. <!--是否启用错误提示报告-->
  343. <param name="SAMIStyle" value>
  344. <!--SAMI样式-->
  345. <param name="SAMILang" value>
  346. <!--SAMI语言-->
  347. <param name="SAMIFilename" value>
  348. <!--字幕ID-->
  349. </object>
  350. <div id="divContext" style="margin-left: 10px;">
  351. </div>
  352. </div>
  353. </div>
  354. </form>
  355. </body>
  356. </html>