Exemplo n.º 1
0
        private void create(UnitInquiryConfigurationItem configurationItem)
        {
#if (DEBUG)
            inquiryUnitIndexPointService.Add(configurationItem, "80");
#else
            inquiryUnitIndexPointService.Add(configurationItem, string.Empty);
#endif
        }
Exemplo n.º 2
0
        public void CreateAllInquiryUnitIndexPoint(UnitInquiryConfigurationItem itm)
        {
            var inquryUnitIndexPoints = inquiryUnitIndexPointRep.GetBy(itm.Id);

            if (inquryUnitIndexPoints == null)
            {
                create(itm);
            }
        }
Exemplo n.º 3
0
 // public void Add(UnitInquiryConfigurationItem itm, AbstractUnitIndexId unitIndex, string value)
 public void Add(UnitInquiryConfigurationItem itm, string value)
 {
     using (var tr = new TransactionScope())
     {
         var id = inquiryUnitIndexPointRep.GetNextId();
         var inquiryIndexPoint = new InquiryUnitIndexPoint(new InquiryUnitIndexPointId(id), itm, value);
         inquiryUnitIndexPointRep.Add(inquiryIndexPoint);
         tr.Complete();
     }
 }
Exemplo n.º 4
0
        public InquiryUnitIndexPoint(InquiryUnitIndexPointId id, UnitInquiryConfigurationItem configurationItem,
                                     string unitIndexValue)
        {
            if (id == null)
            {
                throw new ArgumentNullException("inquiryUnitIndexPointId");
            }
            this.id = id;
            if (configurationItem == null)
            {
                throw new ArgumentNullException("configurationItem");
            }
            configurationItemId = configurationItem.Id;

            this.unitIndexValue = unitIndexValue;
        }