123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="css/mui.css" rel="stylesheet" />
- <script src="assets/js/jquery-3.1.0.js"></script>
- <script src="js/mui.js"></script>
- <script src="CommonJS/Data_ProcessJS/CommonData.js"></script>
- <script src="CommonJS/Config_JS/Config_Load.js"></script>
- <script src="CommonJS/DBUtil_JS/WsCommonClassAsmx.js"></script>
- <script src="CommonJS/HTML_ElementCommonJS/Select_Common.js"></script>
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- html,
- body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .logon_bg{
- position: absolute;
- width:100%;
- bottom: 0;
- }
- .mainDiv{
- top: 0;
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .bak{
- width: 100%;
- height: 100%;
- }
- .loginmain{
- margin-top: 6.25rem;
- margin-left: 0.3125rem;
- margin-right: 0.3125rem;
- }
- .loginbtn{
- margin-top: 3.125rem;
- width: 95%;
- height: 2.5rem;
- margin-left: 0.3125rem;
- margin-right: 0.3125rem;
- }
- .loginbtn2{
- margin-top: 1.125rem;
- width: 95%;
- height: 2.5rem;
- margin-left: 0.3125rem;
- margin-right: 0.3125rem;
- }
- </style>
- <script>
- function queryInfo(){
- var whereStr = "";
- var district = Select_GetSelectText("select_district");
- var street = Select_GetSelectText("select_street");
- var state = Select_GetSelectText("select_state");
- var major = Select_GetSelectText("select_major");
- var idcard = $("#txt_idcarid").val();
- var name = $("#txt_name").val();
-
- if(district!="全部" ){
- whereStr += " and countysstring ='"+district+"'";
- }
- if(street!="全部" ){
- whereStr += " and street ='"+street+"'";
- }
- if(state!="全部" ){
- whereStr += " and 巡检状态 ='"+state+"'";
- }
- if(major!="全部" ){
- whereStr += " and 专业='"+major+"'";
- }
- if(idcard!= ""){
- whereStr += " and num like '%"+idcard+"%'";
- }
- if(name!=""){
- whereStr += " and name like '%"+name+"%'";
- }
- var username = localStorage.getItem("username");
- localStorage.setItem("whereStr",whereStr);
- window.location="main.html";
- }
-
- function querySuccess(evt,keyvalue){
- var jsonData = evt.data;
- if(jsonData != null){
- switch (keyvalue){
- case "queryDistrict":
- Select_DyCreate("select_district",jsonData,"所属区县","所属区县",true);
- break;
- case "queryStreet":
- Select_DyCreate("select_street",jsonData,"所属街道","所属街道",true);
- break;
- case "queryMajor":
- Select_DyCreate("select_major",jsonData,"code","name",true);
- break;
- case "queryState":
- Select_DyCreate("select_state",jsonData,"ID","状态",true);
- break;
- case "AddInfo":
- mui.toast("密码修改成功!");
- window.location="main.html";
- break;
- }
- }
- }
-
- function loadInfo(){
- var strSql = "select distinct 所属区县 from 村居委会 t";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryDistrict");
- strSql = "SELECT distinct 所属街道 FROM 村居委会 where 1=1";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryStreet");
- strSql = "select t.编码 as code,t.名称 as name,t.备注 as memo from view_编码表无证对象专业 t order by code ";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryMajor");
- strSql = "select t.* from 编码表巡检状态 t";
- new WsCommonClass("QueryDataBaseJson",["sql"],[strSql],querySuccess,"queryState");
- }
-
- window.onload = function init(){
- loadInfo();
- }
-
- function clear(){
- Select_SetSelectedByText("select_district","全部");
- Select_SetSelectedByText("select_street","全部");
- Select_SetSelectedByText("select_state","全部");
- Select_SetSelectedByText("select_major","全部");
- $("#txt_idcard").val("");
- $("#txt_name").val("");
- localStorage.setItem("whereStr","");
- }
- </script>
- </head>
- <body>
- <script type="text/javascript">
- mui.init()
- </script>
- <div class="logon_bg">
- <img src="assets/image/login.png" class="bak"/>
- </div>
- <div class="mainDiv">
- <header class="mui-bar mui-bar-nav">
- <a id="back" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">条件查询</h1>
- </header>
-
- <div class="mui-input-group loginmain" >
- <div class="mui-input-row">
- <label>地区:</label>
- <select id="select_district" class="mui-btn-block" ></select>
- </div>
- <div class="mui-input-row">
- <label>街道:</label>
- <select id="select_street" class="mui-btn-block" ></select>
- </div>
- <div class="mui-input-row">
- <label>状态:</label>
- <select id="select_state" class="mui-btn-block" ></select>
- </div>
- <div class="mui-input-row">
- <label>证件号:</label>
- <input id="txt_idcarid" type="text" class="mui-input-clear" value="" placeholder="证件号">
- </div>
- <div class="mui-input-row">
- <label>从事专业:</label>
- <select id="select_major" class="mui-btn-block" ></select>
- </div>
- <div class="mui-input-row">
- <label>姓名:</label>
- <input id="txt_name" type="text" class="mui-input-clear" value="" placeholder="姓名">
- </div>
- </div>
- <button type="button" class="mui-btn mui-btn-primary loginbtn" onclick="clear()" >重置 </button>
- <button type="button" class="mui-btn mui-btn-primary loginbtn2" onclick="queryInfo()" >查询 </button>
- </div>
-
- </body>
- </html>
|