AutoComplete verworfen
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
<link rel="stylesheet" type="text/css" href="../css/navbarsidebar2.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/Customers/Invoices.css"/>
|
||||
|
||||
|
||||
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
||||
@@ -217,249 +217,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate></asp:UpdatePanel>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
BindControls();
|
||||
BindControls_M();
|
||||
BindControls2();
|
||||
BindControls2_M();
|
||||
BindControls3();
|
||||
BindControls3_M();
|
||||
BindControls4();
|
||||
BindControls4_M();
|
||||
});
|
||||
|
||||
function BindControls() {
|
||||
$("#txt_LKW").autocomplete({
|
||||
source: function(request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowLKWs",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function(data) { return data; },
|
||||
success: function(data) {
|
||||
response($.map(data.d, function(item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls_M() {
|
||||
$("#txt_LKW_M").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowLKWs",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
|
||||
function BindControls2() {
|
||||
$("#txt_KdNrAuftrag").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowKdNrAuftrag",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls2_M() {
|
||||
$("#txt_KdNrAuftrag_M").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowKdNrAuftrag",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 3 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls3() {
|
||||
$("#txt_Absender").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowAbsender",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls3_M() {
|
||||
$("#txt_Absender_M").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowAbsender",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 3 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls4() {
|
||||
$("<%=txt_Empfaenger.ClientID%>").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowEmpfaenger",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls4_M() {
|
||||
$("<%=txt_Empfaenger_M.ClientID%>").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowEmpfaenger",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}function BindControls5() {
|
||||
$("<%=txt_ReNr.ClientID%>").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowRENr",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls5_M() {
|
||||
$("<%=txt_ReNr_M.ClientID%>").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "../App_Code/WebService.asmx/ShowRENr",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function (data) { return data; },
|
||||
success: function (data) {
|
||||
response($.map(data.d, function (item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 3 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Globalization
|
||||
Imports System.Web.Services
|
||||
|
||||
Partial Class Customers_Default3
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
<%@ WebService Language="VB" CodeBehind="~/App_Code/WebService.vb" Class="WebService" %>
|
||||
Imports System.Web
|
||||
Imports System.Web.Services
|
||||
Imports System.Web.Services.Protocols
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
<System.Web.Script.Services.ScriptService()>
|
||||
Public Class WebService
|
||||
Inherits System.Web.Services.WebService
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user