示例#1
0
 public string AddConcreteIndication(DtoConcreteIndication dtoConcreteIndication)
 {
     var concreteIndication = new ConcreteIndication()
     {
         Order = new Order()
         {
             Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteIndication.Order.Number).Id
         },
         Indication = new Indication()
         {
             Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id
         }
     };
     return ConcreteIndicationMethods.Instance.InsertConcreteIndication(concreteIndication);
 }
示例#2
0
        public string AddConcreteIndication(DtoConcreteIndication dtoConcreteIndication)
        {
            var concreteIndication = new ConcreteIndication()
            {
                Order = new Order()
                {
                    Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteIndication.Order.Number).Id
                },
                Indication = new Indication()
                {
                    Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id
                }
            };

            return(ConcreteIndicationMethods.Instance.InsertConcreteIndication(concreteIndication));
        }
示例#3
0
        public bool EditConcreteIndication(DtoConcreteIndication dtoConcreteIndication)
        {
            var concreteIndication = new ConcreteIndication()
            {
                Id         = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Id,
                Code       = dtoConcreteIndication.Code,
                Indication = new Indication()
                {
                    Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id
                },
                Order = new Order()
                {
                    Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Order.Id
                }
            };

            return(ConcreteIndicationMethods.Instance.UpdateConcreteIndication(concreteIndication));
        }
示例#4
0
 public bool EditConcreteIndication(DtoConcreteIndication dtoConcreteIndication)
 {
     var concreteIndication = new ConcreteIndication()
     {
         Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Id,
         Code = dtoConcreteIndication.Code,
         Indication = new Indication()
         {
             Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id
         },
         Order = new Order()
         {
             Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Order.Id
         }
     };
     return ConcreteIndicationMethods.Instance.UpdateConcreteIndication(concreteIndication);
 }