Änderungen bzw Erweiterungen der KI für Autokorrektur
This commit is contained in:
@@ -130,8 +130,7 @@
|
||||
<asp:TextBox ID="txt_ReNr" runat="server" PlaceHolder="invoice number" style="width:145px;" AutoCompleteType="Notes"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_ReNr" runat="server" ID="reqval_txt_ReNr" Display="Dynamic" ForeColor="Red" Enabled="false" ></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ControlToValidate="txt_ReNr" runat="server" ID="regex_txt_ReNr" ForeColor="Red" ValidationExpression="[0-9]{1,8}" Display="Dynamic" ErrorMessage="Please stay in the range of 8 numbers!"></asp:RegularExpressionValidator>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
<!-- Mobil -->
|
||||
@@ -216,6 +215,9 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
BindControls();
|
||||
BindControls_M();
|
||||
BindControls2();
|
||||
BindControls2_M();
|
||||
});
|
||||
|
||||
function BindControls() {
|
||||
@@ -240,7 +242,77 @@
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
}
|
||||
function BindControls_M() {
|
||||
$("#txt_LKW_M").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "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: "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: 3 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
function BindControls2() {
|
||||
$("#txt_KdNrAuftrag_M").autocomplete({
|
||||
source: function (request, response) {
|
||||
$.ajax({
|
||||
url: "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: 3 // MINIMUM 3 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user