Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A kliens oldali releváns kód:
- proxy.AutoImportGetProtokollsCompleted += (sender, args) =>
- {
- try
- {
- if (args.res.Succeeded)
- {
- AutomationLogs.Clear();
- foreach (var result in args.Result)
- {
- AutomationLogs.Add(result);
- }
- }
- }
- catch (Exception)
- {
- }
- };
- proxy.AutoImportGetProtokollsAsync();
- Szerver oldali service és a hozzá tartozó cucc:
- [OperationContract]
- public List<sp_AutoImport_GetProtokolls_Result> AutoImportGetProtokolls(out ErrorCustomModel res)
- {
- return M8500.AutoImportGetProtokolls(out res);
- }
- public static List<sp_AutoImport_GetProtokolls_Result> AutoImportGetProtokolls(out ErrorCustomModel res)
- {
- res = new ErrorCustomModel();
- try
- {
- List<sp_AutoImport_GetProtokolls_Result> list = null;
- EKOEntities db = new EKOEntities();
- list = (from row in db.sp_AutoImport_GetProtokolls()
- select new sp_AutoImport_GetProtokolls_Result
- {
- //row.Datum.Value.ToString("dd/MM/yy HH:mm")
- DT_Beginn = row.DT_Beginn,
- KEY_SAP_Import_MessageTyp = row.KEY_SAP_Import_MessageTyp,
- TXT_Beschreibung = row.TXT_Beschreibung
- }
- ).ToList();
- return list;
- }
- catch (Exception ex)
- {
- res = ExceptionHelper.GetTranslatedSQLErrorMessage(ex);
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement