コード例 #1
0
ファイル: Gs1Util.cs プロジェクト: lulzzz/openiz
 /// <summary>
 /// GS1 Utility class
 /// </summary>
 public Gs1Util()
 {
     this.m_actRepository      = ApplicationContext.Current.GetService <IActRepositoryService>();
     this.m_materialRepository = ApplicationContext.Current.GetService <IMaterialRepositoryService>();
     this.m_placeRepository    = ApplicationContext.Current.GetService <IPlaceRepositoryService>();
     this.m_stockService       = ApplicationContext.Current.GetService <IStockManagementRepositoryService>();
 }
コード例 #2
0
        public Act CreateAct([RestMessage(RestMessageFormat.SimpleJson)] Act actToInsert)
        {
            IActRepositoryService actService = ApplicationContext.Current.GetService <IActRepositoryService>();

            return(actService.Insert(actToInsert));
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImmunizationRecommendationResourceHandler"/> class.
 /// </summary>
 public ImmunizationRecommendationResourceHandler()
 {
     ApplicationContext.Current.Started += (o, e) => this.repository = ApplicationContext.Current.GetService <IActRepositoryService>();
 }