⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zhyf.aspx

📁 ASP.NET开发实战详解
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                     seldb.selectedindex=0
                  end if
               case "天花板"
                  thb_zhyj.text=Iif(IsDbNull(datar("zhyj")),"",datar("zhyj"))
                  thb_glyyj.text=Iif(IsDbNull(datar("glyyj")),"",datar("glyyj"))
                  if datar("hg")="不合格" then
                     selthb.selectedindex=1
                  else  
                     selthb.selectedindex=0
                  end if
               end select               
            loop
         else
            page.registerstartupscript("",getalertinfo("该单元不存在,请重新输入!"))	
         end if
         datar.close()
      end if
    End Sub  	

    Sub del_click(Sender As Object, E As EventArgs)
      dim sql as string
      dim dystr as string=dyname.text
      if trim(dystr)="" then
 	 page.registerstartupscript("",getalertinfo("请输入单元名称!"))
      else
         cnn=new sqlconnection(configurationsettings.appsettings("connection"))
         sql="delete from zh_zhyf where cellcode in (select code from fc_cell where name='" & trim(dystr) & "')"
         cmd=new sqlcommand(sql,cnn)
         cnn.open
         cmd.executenonquery
         cnn.close
         dyname.text=""
         call cleardata()
      end if
    End Sub 
</script>
<html>
<head>
    <title>住户验房</title>
    <link href="../Main.css" type="text/css" rel="stylesheet" />
</head>
<body background="../images/1.jpg">
    <form runat="server">
        <table id="search" cellspacing="1" cellpadding="0" width="90%" align="center" border="0">
            <tbody>
                <tr class="tr4">
                    <td width="34%" height="30">
                        单元名称 
                        <asp:TextBox class="input_text" id="dyname" runat="server" width="130"></asp:TextBox>
                    </td>
                    <td>
                        <asp:button class="input_button" id="SureBtn" onclick="Sure_Click" runat="server" text="确  定"></asp:button>
                    </td>
                    <td></td>
                </tr>		
                <tr><td colspan=3><hr></td></tr>
                <tr>
                    <td width="34%" height="30">
                        验房日期
                        <asp:TextBox class="input_text" id="yfdate" runat="server" width="130"></asp:TextBox>
                    </td>
                    <td width="33%">
                        收楼日期 
                        <asp:TextBox class="input_text" id="sldate" runat="server" width="130"></asp:TextBox>
                    </td>
                    <td width="33%"></td>
                </tr>
                <tr class="tr4">
                    <td colspan="3" height="30">
                        备注信息
                        <asp:TextBox class="input_text" id="memo" runat="server" width="640"></asp:TextBox>
                    </td>
                </tr>
                <tr class="tr4">
                    <td colspan="3">
                        验房信息<br>
                        <table cellspacing="2" cellpadding="1" width="100%" align="center" border="1">
                           <tr>
                              <th width="15%">验房项目</th>
                              <th width="15%">是否合格</th>
                              <th width="35%">住户意见</th>
                              <th width="35%">房管员意见</th>
                           </tr>
                           <tr>
                              <td align=center><b>窗  户</b></td>
                              <td align=center>
                                 <asp:DropDownList class="input_text" id="selch" runat="server" width="90">
	                           <asp:ListItem Value="合格" selected="true">合格</asp:ListItem>
		 	           <asp:ListItem Value="不合格">不合格</asp:ListItem>
                		 </asp:DropDownList>                                 
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="ch_zhyj" runat="server" width="250"></asp:TextBox>
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="ch_glyyj" runat="server" width="250"></asp:TextBox>
                              </td>
                           </tr>
                           <tr>
                              <td align=center><b>窗  台</b></td>
                              <td align=center>
                                 <asp:DropDownList class="input_text" id="selct" runat="server" width="90">
	                           <asp:ListItem Value="合格" selected="true">合格</asp:ListItem>
		 	           <asp:ListItem Value="不合格">不合格</asp:ListItem>
                		 </asp:DropDownList>                                 
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="ct_zhyj" runat="server" width="250"></asp:TextBox>
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="ct_glyyj" runat="server" width="250"></asp:TextBox>
                              </td>
                           </tr>
                           <tr>
                              <td align=center><b>地  板</b></td>
                              <td align=center>
                                 <asp:DropDownList class="input_text" id="seldb" runat="server" width="90">
	                           <asp:ListItem Value="合格" selected="true">合格</asp:ListItem>
		 	           <asp:ListItem Value="不合格">不合格</asp:ListItem>
                		 </asp:DropDownList>                                 
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="db_zhyj" runat="server" width="250"></asp:TextBox>
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="db_glyyj" runat="server" width="250"></asp:TextBox>
                              </td>
                           </tr>
                           <tr>
                              <td align=center><b>墙  面</b></td>
                              <td align=center>
                                 <asp:DropDownList class="input_text" id="selqm" runat="server" width="90">
	                           <asp:ListItem Value="合格" selected="true">合格</asp:ListItem>
		 	           <asp:ListItem Value="不合格">不合格</asp:ListItem>
                		 </asp:DropDownList>                                 
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="qm_zhyj" runat="server" width="250"></asp:TextBox>
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="qm_glyyj" runat="server" width="250"></asp:TextBox>
                              </td>
                           </tr>
                           <tr>
                              <td align=center><b>天花板</b></td>
                              <td align=center>
                                 <asp:DropDownList class="input_text" id="selthb" runat="server" width="90">
	                           <asp:ListItem Value="合格" selected="true">合格</asp:ListItem>
		 	           <asp:ListItem Value="不合格">不合格</asp:ListItem>
                		 </asp:DropDownList>                                 
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="thb_zhyj" runat="server" width="250"></asp:TextBox>
                              </td>
                              <td>
                                 <asp:TextBox class="input_text" id="thb_glyyj" runat="server" width="250"></asp:TextBox>
                              </td>
                           </tr>
                         </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <p align=center>
          <asp:button class="input_button" id="SaveBtn" onclick="Save_Click" runat="server" text="保  存"></asp:button>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <asp:button class="input_button" id="DelBtn" onclick="Del_Click" runat="server" text="删  除"></asp:button> 
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -