Esempio n. 1
0
        public Order(bool init)
        {
            ClientOrderId = "1234";
            SubmittedDate = new DateTime(2004, 1, 19, 3, 50, 0, 0);
            Requirement aps = new Requirement();

            aps.ClientUniqueId     = "2468";
            aps.ProcessingUniqueId = "923232";
            aps.Type               = new RequirementType(11, "APS");
            aps.RequestedDate      = new DateTime(2005, 1, 29, 0, 56, 0, 0);
            aps.CompletedDate      = aps.RequestedDate.AddDays(3);
            aps.State              = new RequirementState();
            aps.State.StateCode    = new RequirementStateCode(75, "Accepted");
            aps.State.SubStateCode = new RequirementSubStateCode(3, "Reviewing");
            aps.Order              = this;
            Requirement mvr = new Requirement();

            mvr.ClientUniqueId     = "124692";
            mvr.RequestedDate      = new DateTime(2004, 1, 1, 19, 20, 0, 0);
            mvr.ProcessingUniqueId = "18342";
            mvr.Type            = new RequirementType(4, "MVR");
            mvr.State           = new RequirementState();
            mvr.State.StateCode = new RequirementStateCode(3, "Completed");
            mvr.Order           = this;
            OrderTransaction tx = new OrderTransaction();

            tx.Type               = new OrderTransactionType(1, "Create");
            tx.Timestamp          = new DateTime(2004, 1, 1, 19, 46, 13);
            tx.ConfirmationNumber = "123456";
            XmlDocument clientRequest = new XmlDocument();

            clientRequest.LoadXml(@"<AnyClientRequest foo='bar' xmlns='kaitlyn'>Brenda</AnyClientRequest>");
            tx.ClientRequest = clientRequest.DocumentElement;
            tx.Order         = this;
        }
Esempio n. 2
0
 public Order( bool init )
 {
     ClientOrderId = "1234";
     SubmittedDate = new DateTime(2004, 1, 19, 3, 50, 0, 0);
     Requirement aps = new Requirement();
     aps.ClientUniqueId = "2468";
     aps.ProcessingUniqueId = "923232";
     aps.Type = new RequirementType(11, "APS");
     aps.RequestedDate = new DateTime(2005, 1, 29, 0, 56, 0, 0);
     aps.CompletedDate = aps.RequestedDate.AddDays(3);
     aps.State = new RequirementState();
     aps.State.StateCode = new RequirementStateCode(75, "Accepted");
     aps.State.SubStateCode = new RequirementSubStateCode(3, "Reviewing");
     aps.Order = this;
     Requirement mvr = new Requirement();
     mvr.ClientUniqueId = "124692";
     mvr.RequestedDate = new DateTime(2004, 1, 1, 19, 20, 0, 0);
     mvr.ProcessingUniqueId = "18342";
     mvr.Type = new RequirementType(4, "MVR");
     mvr.State = new RequirementState();
     mvr.State.StateCode = new RequirementStateCode(3, "Completed");
     mvr.Order = this;
     OrderTransaction tx = new OrderTransaction();
     tx.Type = new OrderTransactionType(1, "Create");
     tx.Timestamp = new DateTime(2004, 1, 1, 19, 46, 13);
     tx.ConfirmationNumber = "123456";
     XmlDocument clientRequest = new XmlDocument();
     clientRequest.LoadXml(@"<AnyClientRequest foo='bar' xmlns='kaitlyn'>Brenda</AnyClientRequest>");
     tx.ClientRequest = clientRequest.DocumentElement;
     tx.Order = this;
 }