Example #1
0
        protected override bool Execute(CodeActivityContext context)
        {
            int pId = PsId.Get(context);

            try
            {
                //TODO часовой пояс
                var res = ARM_Service.Monit_GetStatisticInformationByPs(pId,
                                                                        StartDateTime.Get(context),
                                                                        EndDateTime.Get(context),
                                                                        null, TIType.Get(context));

                StatisticInfo.Set(context, res);
            }
            catch (Exception ex)
            {
                Error.Set(context, ex.Message);
                if (!HideException.Get(context))
                {
                    throw ex;
                }
            }

            return(string.IsNullOrEmpty(Error.Get(context)));
        }
Example #2
0
        //[Category(ActivitiesSettings.PropertyGridCategoryName_Out)]
        //[DisplayName("Имя файла документа")]
        //public OutArgument<string> DocumentFileName { get; set; }

        protected override bool Execute(CodeActivityContext context)
        {
            int      ps_id      = PsId.Get(context);
            DateTime _EventDate = EventDate.Get(context);
            bool     roundData  = RoundData.Get(context);

            try
            {
                XMLATSExportSingleObjectResult Res = ARM_Service.XMLExportGetPS80020(_EventDate, ps_id, DataSourceType, requiredATSCode, isReadCalculatedValues, roundData, false, false, UTCTimeShiftFromMoscow, false, false, 1, true);
                Document.Set(context, Res.XMLStream);
                //DocumentFileName.Set(context, Res.FileName);
            }

            catch (Exception ex)
            {
                Error.Set(context, ex.Message);
                if (!HideException.Get(context))
                {
                    throw ex;
                }
            }

            return(string.IsNullOrEmpty(Error.Get(context)));
        }