Esempio n. 1
0
        internal static void UpdateData(DateTime dateFrom, DateTime dateTo)
        {
            NewAdvices = new List <Model.WebModel.DocumentInfo>();

            NewAdvices = EdiService.ListMBEx(
                SelectedRelationship?.partnerIln
                , SelectedRelationship?.documentType
                , ""
                , ""
                , ""
                , $"{dateFrom.Year}-{dateFrom.Month}-{dateFrom.Day}"
                , $"{dateTo.Year}-{dateTo.Month}-{dateTo.Day}"
                , ""
                , ""
                , "") ?? throw new Exception("При загрузке новых уведомлений об отгрузке возникла ошибка");
            //LogService.Log($"[INFO] {MethodBase.GetCurrentMethod().DeclaringType} {MethodBase.GetCurrentMethod().Name} args:{LogService.FormatArgsArray(MethodBase.GetCurrentMethod().GetGenericArguments())}", 2);
        }
Esempio n. 2
0
        internal static void UpdateData(DateTime dateFrom, DateTime dateTo)
        {
            if (SelectedRelationship == null)
            {
                return;
            }
            if (SelectedRelationship.partnerIln == null || SelectedRelationship.documentType == null)
            {
                return;
            }

            NewOrders = EdiService.ListMBEx(
                SelectedRelationship.partnerIln
                , SelectedRelationship.documentType
                , ""
                , ""
                , ""
                , $"{dateFrom.Year}-{dateFrom.Month}-{dateFrom.Day}"
                , $"{dateTo.Year}-{dateTo.Month}-{dateTo.Day}"
                , ""
                , ""
                , "").Where(x => x?.documentStatus != "Ошибка" || !string.IsNullOrEmpty(x.fileName)).ToList();
        }