日期:2014-05-17 浏览次数:20495 次
<div > <table> <tr><td>慢性疾病 <asp:DropDownList ID="MXBList" runat="server"> </asp:DropDownList></td> <td>管理状态<asp:DropDownList ID="GLList" runat="server"> </asp:DropDownList></td> <td>确诊时间<asp:TextBox ID="QZtime" runat="server"></asp:TextBox></td> <td>其它说明<asp:TextBox ID="elesSm" runat="server"></asp:TextBox></td> <td><input type="button" value="增加" onclick="sent()"/></td> </tr> </table> </div> <div style="width:100%; height:144px;"> <yyc:SmartGridView ID="SmartGridView1" runat='server' AutoGenerateColumns="False" HeaderStyle-BackColor="#83bfe9" PageSize="4" Width="100%" CaptionAlign="Bottom" HorizontalAlign="Center" > <FixRowColumn FixRows="Header" FixRowType="Header" tablewidth="" /> <HeaderStyle BackColor="#83BFE9" VerticalAlign="Top" Wrap="False" /> <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Top" /> <Columns> <asp:BoundField DataField="名称" HeaderText="慢性病名" /> <asp:BoundField DataField="确诊时间" HeaderText="确诊时间" /> <asp:BoundField DataField="其它说明" HeaderText="其它说明" /> <asp:BoundField DataField="名称" HeaderText="管理状态" /> <asp:TemplateField HeaderText="操作"> <ItemTemplate> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td> <input type="button" value="删除" onclick="ss()" /> </td> </tr> </table> </ItemTemplate> <ItemStyle Font-Bold="False" HorizontalAlign="Center" Font-Names="Arial" /> <HeaderStyle BackColor="#83bfe9" HorizontalAlign="Center" BorderColor="#83bfe9" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true" Font-Names="Arial" Font-Size="12px" /> </asp:TemplateField> </Columns> </yyc:SmartGridView> </div>
var xRequest = null; function sent() { try{ alert("111"); if(document.getElementById("GR_JWBS1_MXBList").value=="无疾病") {alert("请选择要添加的疾病!");} else{ if (window.XMLHttpRequest) { xRequest = new XMLHttpRequest(); } else if (typeof ActiveXObject != "undefined") { xRequest = new ActiveXObject("Microsoft.XMLHTTP"); } if (xRequest) { var arr = new Array(); arr[0]=document.getElementById("GR_JWBS1_MXBList").value; arr[1]=document.getElementById("GR_JWBS1_GLList").value; arr[2]=document.getE