Ejemplo n.º 1
0
        public override void ToJSON(JObject ParentObject)
        {
            CswDateTime CswDate = new CswDateTime(_CswNbtResources, DateTimeValue);

            ParentObject[_DateValueSubField.ToXmlNodeName(true)] = CswDate.ToClientAsDateTimeJObject();
            ParentObject["displaymode"] = DisplayMode.ToString();
        }
Ejemplo n.º 2
0
        public override void ToJSON(JObject ParentObject)
        {
            ParentObject[_AnswerSubField.ToXmlNodeName(true)] = Answer;
            if (IsEditModeEditable)
            {
                ParentObject["allowedanswers"]   = "," + AllowedAnswersString;
                ParentObject["compliantanswers"] = CompliantAnswersString;
            }
            ParentObject[_CommentsSubField.ToXmlNodeName(true)]         = Comments;
            ParentObject[_CorrectiveActionSubField.ToXmlNodeName(true)] = CorrectiveAction;
            ParentObject[_IsCompliantSubField.ToXmlNodeName(true)]      = IsCompliant;

            ParentObject["isactionrequired"] = IsActionRequired;
            ParentObject["isanswereditable"] = IsAnswerEditable;

            CswDateTime CswDateAnswered = new CswDateTime(_CswNbtResources, DateAnswered);

            ParentObject[_DateAnsweredSubField.ToXmlNodeName(true)] = CswDateAnswered.ToClientAsDateTimeJObject();
            CswDateTime CswDateCorrected = new CswDateTime(_CswNbtResources, DateCorrected);

            ParentObject[_DateCorrectedSubField.ToXmlNodeName(true)] = CswDateCorrected.ToClientAsDateTimeJObject();
        }
Ejemplo n.º 3
0
        } // _countProblems()

        public override void ToJSON(JObject ParentObject)
        {
            CswDateTime CswDate = new CswDateTime(_CswNbtResources, StartDateTime);

            ParentObject.Add(new JProperty(_StartDateTimeSubField.ToXmlNodeName(true), CswDate.ToClientAsDateTimeJObject()));

            ParentObject[_ValueSubField.ToXmlNodeName(true)] = CachedValue.ToString();
            ParentObject[_UnitsSubField.ToXmlNodeName(true)] = Units;
        }