コード例 #1
0
        public void TransformToChangeOrderTest()
        {
            ConstructionChangeDirective ccd = ConstructionChangeDirectiveService.GetConstructionChangeDirective(new Guid("1a2bfe3b-7577-456d-8484-4f34f67ce42c"));
            ChangeOrder co = ccd.TransformToChangeOrder();

            Assert.AreEqual(6, co.Number);
        }
コード例 #2
0
 protected override List <ConstructionChangeDirective> GetEntitiesList()
 {
     return(new List <ConstructionChangeDirective>(
                ConstructionChangeDirectiveService.GetConstructionChangeDirectives(
                    UserSession.CurrentProject)));
 }
コード例 #3
0
 protected override void SaveCurrentEntity(object sender, EventArgs e)
 {
     base.SaveCurrentEntity(sender, e);
     ConstructionChangeDirectiveService.SaveConstructionChangeDirective(
         this.CurrentEntity);
 }