First create solution
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
Nuvolar_Scanner_Android.StoragePDACollectionSelect = function (params) {
|
||||
// = ko.observable([{ "key": 1, "title": "a" }, { "key": 2, "title": "b" }]);
|
||||
var viewModel = {
|
||||
|
||||
viewShown: function (e) {
|
||||
dxListDataSource = null;
|
||||
currentnavigate("StoragePDACollectionSelect");
|
||||
if (IsLoggedOn == false) {
|
||||
Nuvolar_Scanner_Android.app.navigate("Login",{ root: false });
|
||||
}
|
||||
else
|
||||
{
|
||||
SimpleQuery.UserName = username();
|
||||
SimpleQuery.Password = password();
|
||||
SimpleQuery.Database = database();
|
||||
SimpleQuery.Query = 'DX_GetStoragePDACollectionHeader_dxList';
|
||||
JSON_Text = JSON.stringify(SimpleQuery, null);
|
||||
$.getJSON(URL(), 'id='+JSON_Text, function (results) {
|
||||
dxListDataSource = JSON.parse(JSON.parse(results).Result);
|
||||
$("#dxlist").dxList({ dataSource: dxListDataSource });
|
||||
}).done(function () {
|
||||
//alert("second success");
|
||||
}).fail(function (jqXHR, textStatus, errorThrown) {
|
||||
DevExpress.ui.notify("Kapcsolati hiba, próbálja meg újra!", "error", 2000);
|
||||
});
|
||||
};
|
||||
},
|
||||
dxListItemClickAction: function (e) {
|
||||
if (e.itemData.key != '') {
|
||||
//alert(e.itemData.key);
|
||||
Nuvolar_Scanner_Android.app.navigate({ view: "StoragePDACollectionEdit", id: e.itemData.key });
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
return viewModel;
|
||||
};
|
||||
Reference in New Issue
Block a user