This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component, OnInit, Inject, Output, EventEmitter} from '@angular/core'; | |
| import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material'; | |
| // Models | |
| import { Document } from './../../../binders/models/document.model'; | |
| import { DocumentContents } from '../../../models/document-contents.model'; | |
| // Enums | |
| import {FileEditorType} from './file-editor-type.enum'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div mat-dialog class="container"> | |
| <div mat-dialog-title class="dialog-title"> | |
| Edit - {{ documentContent.name }} | |
| <span class="title-spacer"></span> | |
| <button mat-icon-button mat-dialog-close> | |
| <mat-icon>close</mat-icon> | |
| </button> | |
| </div> | |
| <div mat-dialog-content fxLayout="column" fxLayoutAlign="space-between stretch"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Attachment(data) { | |
| this.id = ko.observable(data.AttachmentId); | |
| this.name = ko.observable(data.AttachmentName); | |
| this.size = ko.observable(data.AttachmentSizeText); | |
| this.isEmail = ko.observable(data.IsEmail); | |
| } | |
| // map data object from server to Knockout object | |
| var mappedAttachments = $.map(data.detail.Attachments, function (item) { return new Attachment(item); }); | |
| self.attachments(mappedAttachments); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section> | |
| <label class="label">To: </label> | |
| <label class="select"> | |
| <select class="form-control input-sm" data-bind="options: emailList, | |
| optionsText: 'Name', | |
| optionsValue: 'ID', | |
| optionsCaption: '-- Select --'"></select> | |
| <i></i> | |
| </label> | |
| </section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ko stopBinding: true --> | |
| <div id="TaskFilters"> | |
| <div class="tmsUIwidget" data-bind="css: { 'jarviswidget-color-chartergreen': (isSourceFilterSet() || isUserFilterSet() || isStatusFilterSet() || isSubStatusFilterSet() || isPriorityFilterSet() || | |
| isSupervisorFilterSet() || (isDateFilterActive())), | |
| 'jarviswidget-color-charterblue': (!isSourceFilterSet() && !isUserFilterSet() && !isStatusFilterSet() && !isSubStatusFilterSet() && !isPriorityFilterSet() && | |
| (!isDateFilterActive())), | |
| }" | |
| data-widget-colorbutton="false" data-widget-editbutton="false" data-widget-deletebutton="false" data-widget-fullscreenbutton="false" data-widget-custombutton="false" data-widget-sortable="false"> | |
| <header class="txt-color-white" data-toggle="collap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web.Mvc; | |
| using System.Threading.Tasks; | |
| using TMS.Automation.BLL.JobProfilesManager; | |
| using TMS.BLL.JobGroupManager; | |
| using TMS.Common; | |
| using TMS.Common.Enums; | |
| using TMS.Common.Extensions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var FilterViewModel = function (afterFilter) | |
| { | |
| /************************************************************* | |
| * Task Group Filters ** | |
| ************************************************************/ | |
| function TaskGroupFilters(data) | |
| { | |
| this.id = ko.observable(data.Id); | |
| this.name = ko.observable(data.Name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // define function | |
| public static void WriteEventLog(string Error) | |
| { | |
| // Create the source, if it does not already exist. | |
| if (!System.Diagnostics.EventLog.SourceExists("FEC Events")) | |
| { | |
| //An event log source should not be created and immediately used. | |
| //There is a latency time to enable the source, it should be created | |
| //prior to executing the application that uses the source. | |
| //Execute this sample a second time to use the new source. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type in filer box: ip.addr == 192.168.90.112 (your ip) | |
| Double click your NIC (Network Card) Not a VM but actual Ethernet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void DispatchIfNecessary(Action action) { | |
| if (!Dispatcher.CheckAccess()) | |
| Dispatcher.Invoke(action); | |
| else | |
| action.Invoke(); | |
| } | |
| // Invoke thread safe method | |
| DispatchIfNecessary(() => { | |
| methodCall(); |