예제 #1
0
 public static void BuildingTextTitle(ref Label myTitle, string type, string userID, string category, string area, string code)
 {
     myTitle.Text = TitleContext.Content(type, userID, category, area, code);
     if (myTitle.Text.Length == 0)
     {
         myTitle.Visible = false;
     }
 }
예제 #2
0
            public override SequenceDiagramViewModel VisitTitle([NotNull] TitleContext context)
            {
                string title = GetMessage(context.message());

                // Update title (last instance wins)
                SequenceDiagram.Title = title;
                return(SequenceDiagram);
            }
예제 #3
0
        private static void BuildTitleService()
        {
            var optionsBuilder = new DbContextOptionsBuilder <TitleContext>();

            optionsBuilder.UseSqlServer(_config["WtowConnectionString"]);
            var context = new TitleContext(optionsBuilder.Options);

            _titleService = new TitleService(context);
        }
예제 #4
0
        static void Main(string[] args)
        {
            DbContextOptionsBuilder <TitleContext> optionsBuilder = new DbContextOptionsBuilder <TitleContext>();

            optionsBuilder.UseSqlServer(@"Server=titles-db;Database=Titles;User=sa;Password=Your_password123");

            using (TitleContext context = new TitleContext(optionsBuilder.Options)) {
                context.Database.Migrate();
            }
        }
예제 #5
0
 public string GetTitleContent(string operation, string userId, string categoryId, string areaId, string itemCode)
 {
     try
     {
         return(TitleContext.Content(operation, userId, categoryId, areaId, itemCode));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
예제 #6
0
        public static void BuildingTitleTab(ref HtmlGenericControl myDIV, string userID, string category, string area, string code)
        {
            myDIV.InnerHtml = "";

            string             title = TitleContext.Content("Title", userID, category, area, code); // AppraisalProcess.AppraisalPageTitle("0", category,area,code,role);
            HtmlGenericControl span  = new HtmlGenericControl("span");

            span.ID = "title_" + code;
            span.Attributes.Add("class", "pageTitle");
            span.InnerText = title;
            span.Attributes.Add("title", category + "-" + area + "-" + code);
            myDIV.Controls.Add(span);
            HtmlImage img = new HtmlImage();

            img.ID  = "img_" + code;
            img.Src = "../images/help2.png";
            img.Attributes.Add("class", "helpImg");


            myDIV.Controls.Add(img);
        }
            public override ITextArea[] VisitTitle([NotNull] TitleContext context)
            {
                var lineContext = context.lineNormal();

                if (lineContext != null)
                {
                    return(VisitLineNormal(lineContext));
                }

                var lineStarContext = context.lineStar();

                if (lineStarContext != null)
                {
                    return(VisitLineStar(lineStarContext));
                }

                return(new ITextArea[] { new TextArea(context.GetText(),
                                                      new Scope {
                        LineStart = context.Start.Line + 1, LineEnd = context.Stop.Line
                    }) });
            }
예제 #8
0
        // This function will get triggered/executed when a new message is written
        // on an Azure Queue called queue.
//		public static async Task ProcessQueueMessage([TimerTrigger("0 */10 * * * *")]TimerInfo timer)
        public static async void ProcessQueueMessage([TimerTrigger("0 0 12 1/3 * *")] TimerInfo timer)
        {
            var issueCommandRepository = new IssueCommandRepository();
            var issueQueryRepository   = new IssueQueryRepository();
            var issueContext           = new IssueContext(issueQueryRepository, issueCommandRepository);
            var issueFactory           = new IssueFactory(issueContext);

            var titleCommandRepository = new TitleCommandRepository();
            var titleQueryRepository   = new TitleQueryRepository();
            var titleContext           = new TitleContext(titleQueryRepository, titleCommandRepository);
            var titleFactory           = new TitleFactory(titleContext);

            var publisherQueryRepository = new PublisherQueryRepository();
            var publisherContext         = new PublisherContext(publisherQueryRepository);
            var publisherFactory         = new PublisherFactory(publisherContext);

            var catalogContext = new CatalogContext(publisherFactory, titleFactory, issueFactory);

            var Catalog = new CatalogObject(catalogContext);

            await Catalog.Commands.NewReleases(0);

            var end = string.Empty;
        }
예제 #9
0
 public TitleRepository(TitleContext titleContext)
 {
     this.titleContext = titleContext;
     this.titleContext.Database.EnsureCreated();
     Table = titleContext.Set <T>();
 }
예제 #10
0
 public TodoApiEntityFramework(TitleContext titleContext)
 {
     this.titleContext = titleContext;
 }
예제 #11
0
 public TitleRepository(TitleContext titleContext)
 {
     this._context = titleContext;
 }
예제 #12
0
 public TitlesController(TitleContext titleContext)
 {
     _titleContext = titleContext;
 }
예제 #13
0
 public TitlesController()
 {
     this.titleContext = new TitleContext();
 }
예제 #14
0
 public TitleService(TitleContext context)
 {
     _context = context;
 }
예제 #15
0
 public TitleManager(TitleContext titleContext)
 {
     this._context = titleContext;
 }