// label_stuffID\r
// \r
this.label_stuffID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
- this.label_stuffID.Location = new System.Drawing.Point(8, 12);\r
+ this.label_stuffID.Location = new System.Drawing.Point(8, 5);\r
this.label_stuffID.Name = "label_stuffID";\r
this.label_stuffID.Size = new System.Drawing.Size(87, 13);\r
this.label_stuffID.TabIndex = 0;\r
// label_stuffDescription\r
// \r
this.label_stuffDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
- this.label_stuffDescription.Location = new System.Drawing.Point(8, 92);\r
+ this.label_stuffDescription.Location = new System.Drawing.Point(8, 83);\r
this.label_stuffDescription.Name = "label_stuffDescription";\r
this.label_stuffDescription.Size = new System.Drawing.Size(66, 13);\r
this.label_stuffDescription.TabIndex = 2;\r
// label_mediaID\r
// \r
this.label_mediaID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
- this.label_mediaID.Location = new System.Drawing.Point(8, 166);\r
+ this.label_mediaID.Location = new System.Drawing.Point(8, 205);\r
this.label_mediaID.Name = "label_mediaID";\r
this.label_mediaID.Size = new System.Drawing.Size(86, 13);\r
this.label_mediaID.TabIndex = 3;\r
// \r
this.label_mediaTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
this.label_mediaTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
- this.label_mediaTitle.Location = new System.Drawing.Point(8, 206);\r
+ this.label_mediaTitle.Location = new System.Drawing.Point(8, 244);\r
this.label_mediaTitle.Name = "label_mediaTitle";\r
this.label_mediaTitle.Size = new System.Drawing.Size(57, 13);\r
this.label_mediaTitle.TabIndex = 4;\r
// \r
this.label_mediaDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
this.label_mediaDescription.AutoSize = true;\r
- this.label_mediaDescription.Location = new System.Drawing.Point(8, 246);\r
+ this.label_mediaDescription.Location = new System.Drawing.Point(8, 283);\r
this.label_mediaDescription.Name = "label_mediaDescription";\r
this.label_mediaDescription.Size = new System.Drawing.Size(65, 13);\r
this.label_mediaDescription.TabIndex = 5;\r
// textBox_itemID\r
// \r
this.textBox_itemID.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_itemID.Location = new System.Drawing.Point(8, 28);\r
+ this.textBox_itemID.Location = new System.Drawing.Point(8, 21);\r
this.textBox_itemID.Name = "textBox_itemID";\r
this.textBox_itemID.ReadOnly = true;\r
- this.textBox_itemID.Size = new System.Drawing.Size(549, 20);\r
+ this.textBox_itemID.Size = new System.Drawing.Size(532, 20);\r
this.textBox_itemID.TabIndex = 6;\r
// \r
// textBox_itemTitle\r
// \r
this.textBox_itemTitle.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_itemTitle.Location = new System.Drawing.Point(8, 68);\r
+ this.textBox_itemTitle.Location = new System.Drawing.Point(8, 60);\r
this.textBox_itemTitle.Name = "textBox_itemTitle";\r
- this.textBox_itemTitle.Size = new System.Drawing.Size(549, 20);\r
+ this.textBox_itemTitle.Size = new System.Drawing.Size(532, 20);\r
this.textBox_itemTitle.TabIndex = 7;\r
// \r
// textBox_itemDescription\r
// \r
this.textBox_itemDescription.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_itemDescription.Location = new System.Drawing.Point(8, 108);\r
+ this.textBox_itemDescription.Location = new System.Drawing.Point(8, 99);\r
this.textBox_itemDescription.Multiline = true;\r
this.textBox_itemDescription.Name = "textBox_itemDescription";\r
this.textBox_itemDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
- this.textBox_itemDescription.Size = new System.Drawing.Size(549, 48);\r
+ this.textBox_itemDescription.Size = new System.Drawing.Size(532, 103);\r
this.textBox_itemDescription.TabIndex = 8;\r
// \r
// textBox_mediaID\r
// \r
this.textBox_mediaID.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_mediaID.Location = new System.Drawing.Point(8, 182);\r
+ this.textBox_mediaID.Location = new System.Drawing.Point(8, 221);\r
this.textBox_mediaID.Name = "textBox_mediaID";\r
this.textBox_mediaID.ReadOnly = true;\r
- this.textBox_mediaID.Size = new System.Drawing.Size(549, 20);\r
+ this.textBox_mediaID.Size = new System.Drawing.Size(532, 20);\r
this.textBox_mediaID.TabIndex = 9;\r
// \r
// textBox_mediaTitle\r
// \r
this.textBox_mediaTitle.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_mediaTitle.Location = new System.Drawing.Point(8, 222);\r
+ this.textBox_mediaTitle.Location = new System.Drawing.Point(8, 260);\r
this.textBox_mediaTitle.Name = "textBox_mediaTitle";\r
- this.textBox_mediaTitle.Size = new System.Drawing.Size(549, 20);\r
+ this.textBox_mediaTitle.Size = new System.Drawing.Size(532, 20);\r
this.textBox_mediaTitle.TabIndex = 10;\r
// \r
// textBox_mediaDescription\r
// \r
this.textBox_mediaDescription.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.textBox_mediaDescription.Location = new System.Drawing.Point(8, 262);\r
+ this.textBox_mediaDescription.Location = new System.Drawing.Point(8, 299);\r
this.textBox_mediaDescription.Multiline = true;\r
this.textBox_mediaDescription.Name = "textBox_mediaDescription";\r
this.textBox_mediaDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
- this.textBox_mediaDescription.Size = new System.Drawing.Size(549, 87);\r
+ this.textBox_mediaDescription.Size = new System.Drawing.Size(532, 216);\r
this.textBox_mediaDescription.TabIndex = 11;\r
// \r
// label_stuffTitle\r
// \r
this.label_stuffTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
this.label_stuffTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
- this.label_stuffTitle.Location = new System.Drawing.Point(8, 52);\r
+ this.label_stuffTitle.Location = new System.Drawing.Point(8, 44);\r
this.label_stuffTitle.Name = "label_stuffTitle";\r
this.label_stuffTitle.Size = new System.Drawing.Size(58, 13);\r
this.label_stuffTitle.TabIndex = 1;\r
this.groupBox1.Controls.Add(this.btnOk);\r
this.groupBox1.Controls.Add(this.btnCancel);\r
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;\r
- this.groupBox1.Location = new System.Drawing.Point(0, 357);\r
+ this.groupBox1.Location = new System.Drawing.Point(0, 523);\r
this.groupBox1.Name = "groupBox1";\r
- this.groupBox1.Size = new System.Drawing.Size(565, 48);\r
+ this.groupBox1.Size = new System.Drawing.Size(548, 48);\r
this.groupBox1.TabIndex = 1;\r
this.groupBox1.TabStop = false;\r
// \r
// btnOk\r
// \r
this.btnOk.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
- this.btnOk.Location = new System.Drawing.Point(484, 16);\r
+ this.btnOk.Location = new System.Drawing.Point(467, 16);\r
this.btnOk.Name = "btnOk";\r
this.btnOk.Size = new System.Drawing.Size(75, 23);\r
this.btnOk.TabIndex = 1;\r
// \r
this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
- this.btnCancel.Location = new System.Drawing.Point(405, 16);\r
+ this.btnCancel.Location = new System.Drawing.Point(388, 16);\r
this.btnCancel.Name = "btnCancel";\r
this.btnCancel.Size = new System.Drawing.Size(75, 23);\r
this.btnCancel.TabIndex = 0;\r
this.tableLayoutPanel1.Name = "tableLayoutPanel1";\r
this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(5);\r
this.tableLayoutPanel1.RowCount = 12;\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));\r
- this.tableLayoutPanel1.Size = new System.Drawing.Size(565, 357);\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(548, 523);\r
this.tableLayoutPanel1.TabIndex = 3;\r
// \r
// ArchiveMetadataForm\r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
this.CancelButton = this.btnCancel;\r
- this.ClientSize = new System.Drawing.Size(565, 405);\r
+ this.ClientSize = new System.Drawing.Size(548, 571);\r
this.Controls.Add(this.tableLayoutPanel1);\r
this.Controls.Add(this.groupBox1);\r
this.Icon = global::Maestro.Properties.Resources.AppIcon;\r
-\r
-{\r
+{\r
"title": "Szerkesztő",\r
"active": false,\r
- "startInTray": false,\r
+ "startInTray": true,\r
"enableCustomMetadataId": true,\r
"player": {\r
"enabled": true,\r
--- /dev/null
+{\r
+ "title": "NEXIO betöltő",\r
+ "active": true,\r
+ "startInTray": false,\r
+ "enableCustomMetadataId": true,\r
+ "player": {\r
+ "enabled": true,\r
+ "autoStart": false,\r
+ "segmentEditor": true\r
+ },\r
+ "source": {\r
+ "$type": "UNCSource",\r
+ "filter": "avi,wav,mxf",\r
+ "local": {\r
+ "address": "file://c:/x"\r
+ }\r
+ },\r
+ "metadatas": [\r
+ {\r
+ "$type": "OctopusMetadata",\r
+ "server": {\r
+ "address": "http://10.10.1.27/services/rest/octopus/",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "$type": "MediaCubeMetadata",\r
+ "server": {\r
+ "address": "http://10.10.1.27/services/rest/jobengine/",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ],\r
+ "targets": [\r
+ {\r
+ "label": "Stúdióba küldés",\r
+ "processor": "FTPTargetProcessor",\r
+ "outputFormat": "%ID%",\r
+ "tag": "Betöltés",\r
+ "nexioServer": true,\r
+ "killDateDays": 7,\r
+ "disableFileVersioning": true,\r
+ "agency": "HÍRADÓ TEST",\r
+ "remote": {\r
+ "address": "ftp://10.10.1.55:2098",\r
+ "userName": "administrator",\r
+ "password": "+QtkeQdCTiOvZOgK/kUND4pO4/D+//r7ZIyluwMMdiqMEgO8iJErAG10ooWhPfiljQeXrdeyMzo7gWEZtcWpNSomGeDIbdMyQwtpqmMo1VEM3A27ZfzigY09YD46ECRh",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ]\r
+}\r
--- /dev/null
+{\r
+ "title": "Lebony betöltő",\r
+ "active": true,\r
+ "startInTray": false,\r
+ "enableCustomMetadataId": true,\r
+ "player": {\r
+ "enabled": true,\r
+ "autoStart": false,\r
+ "segmentEditor": true\r
+ },\r
+ "source": {\r
+ "$type": "UNCSource",\r
+ "local": {\r
+ "address": "file://10.10.1.100/BRAAVOS/READY",\r
+ "userName": "mediacube",\r
+ "password": "Dn8t4gfHcK98o8hyPgLDhr5SgSji4JCxsfpMJsODikUp3nXgrM0UNCi45lLAK8ZOnmEneO44P9qpJ4QDqhctN6MxZodjJgdZTyoZKmSa+ECzEzLr/wPYNgxVaXrVotEy",\r
+ "timeout": 1000\r
+ },\r
+ "remote": {\r
+ "address": "ftp://10.10.1.100/READY",\r
+ "userName": "mediacube",\r
+ "password": "Dn8t4gfHcK98o8hyPgLDhr5SgSji4JCxsfpMJsODikUp3nXgrM0UNCi45lLAK8ZOnmEneO44P9qpJ4QDqhctN6MxZodjJgdZTyoZKmSa+ECzEzLr/wPYNgxVaXrVotEy",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ "metadatas": [\r
+ {\r
+ "$type": "TrafficMetadata",\r
+ "server": {\r
+ "address": "Data Source=10.10.1.45\\sql16;Initial Catalog=PA_Echo;Persist Security Info=True;",\r
+ "userName": "MAM",\r
+ "password": "7RKZYBzumKjL40SJwuwiFCvX57xuCN8zay6OttUm2wbrgImyYZBHyZTUUYrXX31Ge2Uwew07HYsqh2uzdJeDBDwcVntxaHg3nIpv9Dyq/odVoiC4tUF/K+lgvKWANcrZ",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "$type": "MediaCubeMetadata",\r
+ "server": {\r
+ "address": "http://10.10.1.27/services/rest/jobengine/",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ],\r
+ "targets": [\r
+ {\r
+ "label": "Adáskész",\r
+ "processor": "FXPTargetProcessor",\r
+ "outputFormat": "%ID%",\r
+ "saveSegments": true,\r
+ "tag": "Adáskész",\r
+ "disableFileVersioning": true,\r
+ "remote": {\r
+ "address": "ftp://10.10.1.100/PLAYOUT/IceGateway",\r
+ "userName": "mediacube",\r
+ "password": "Dn8t4gfHcK98o8hyPgLDhr5SgSji4JCxsfpMJsODikUp3nXgrM0UNCi45lLAK8ZOnmEneO44P9qpJ4QDqhctN6MxZodjJgdZTyoZKmSa+ECzEzLr/wPYNgxVaXrVotEy",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ]\r
+}\r
{\r
"title": "Adáslebony",\r
- "active": true,\r
+ "active": false,\r
"startInTray": true,\r
"enableCustomMetadataId": true,\r
"player": {\r
{\r
"$type": "MediaCubeMetadata",\r
"server": {\r
- "address": "http://10.10.1.28/services/rest/jobengine/",\r
+ "address": "http://10.10.1.27/services/rest/jobengine/",\r
"timeout": 1000\r
}\r
}\r
<Compile Include="MaestroForm.Source.cs">\r
<SubType>Form</SubType>\r
</Compile>\r
+ <None Include="Configuration\configuration-nexio-ingest.json">\r
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
+ </None>\r
<None Include="Configuration\configuration-editor.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
<None Include="Configuration\configuration-nle.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
+ <None Include="Configuration\configuration-playout-ingest.json">\r
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
+ </None>\r
<None Include="Connected Services\packages.config" />\r
<None Include="Maestro_TemporaryKey.pfx" />\r
<None Include="nlog.config">\r
this.splitContainer1 = new System.Windows.Forms.SplitContainer();\r
this.splitContainer3 = new System.Windows.Forms.SplitContainer();\r
this.groupMetadata = new System.Windows.Forms.GroupBox();\r
- this.tabControl1 = new System.Windows.Forms.TabControl();\r
+ this.tabMetadata = new System.Windows.Forms.TabControl();\r
this.tpOctopus = new System.Windows.Forms.TabPage();\r
this.octopusIDSelector = new OctopusClient.OctopusIDSelector();\r
this.tpTraffic = new System.Windows.Forms.TabPage();\r
this.dataGridMessages = new System.Windows.Forms.DataGridView();\r
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
- this.systemMessageBindingSource = new System.Windows.Forms.BindingSource(this.components);\r
- this.metadataInfoBindingSource = new System.Windows.Forms.BindingSource(this.components);\r
this.timeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
this.messageDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();\r
+ this.systemMessageBindingSource = new System.Windows.Forms.BindingSource(this.components);\r
+ this.metadataInfoBindingSource = new System.Windows.Forms.BindingSource(this.components);\r
this.groupSource.SuspendLayout();\r
((System.ComponentModel.ISupportInitialize)(this.dataGridSource)).BeginInit();\r
((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();\r
this.splitContainer3.Panel2.SuspendLayout();\r
this.splitContainer3.SuspendLayout();\r
this.groupMetadata.SuspendLayout();\r
- this.tabControl1.SuspendLayout();\r
+ this.tabMetadata.SuspendLayout();\r
this.tpOctopus.SuspendLayout();\r
this.tpTraffic.SuspendLayout();\r
this.tableLayoutPanel1.SuspendLayout();\r
// groupMetadata\r
// \r
this.groupMetadata.BackColor = System.Drawing.Color.Transparent;\r
- this.groupMetadata.Controls.Add(this.tabControl1);\r
+ this.groupMetadata.Controls.Add(this.tabMetadata);\r
this.groupMetadata.Controls.Add(this.tableLayoutPanel1);\r
this.groupMetadata.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.groupMetadata.Location = new System.Drawing.Point(0, 0);\r
this.groupMetadata.Enter += new System.EventHandler(this.groupBox_Enter);\r
this.groupMetadata.Leave += new System.EventHandler(this.groupBox_Leave);\r
// \r
- // tabControl1\r
+ // tabMetadata\r
// \r
- this.tabControl1.Controls.Add(this.tpOctopus);\r
- this.tabControl1.Controls.Add(this.tpTraffic);\r
- this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
- this.tabControl1.Location = new System.Drawing.Point(10, 23);\r
- this.tabControl1.Name = "tabControl1";\r
- this.tabControl1.SelectedIndex = 0;\r
- this.tabControl1.Size = new System.Drawing.Size(286, 376);\r
- this.tabControl1.TabIndex = 1;\r
+ this.tabMetadata.Controls.Add(this.tpOctopus);\r
+ this.tabMetadata.Controls.Add(this.tpTraffic);\r
+ this.tabMetadata.Dock = System.Windows.Forms.DockStyle.Fill;\r
+ this.tabMetadata.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
+ this.tabMetadata.Location = new System.Drawing.Point(10, 23);\r
+ this.tabMetadata.Name = "tabMetadata";\r
+ this.tabMetadata.SelectedIndex = 0;\r
+ this.tabMetadata.Size = new System.Drawing.Size(286, 376);\r
+ this.tabMetadata.TabIndex = 1;\r
// \r
// tpOctopus\r
// \r
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";\r
this.dataGridViewTextBoxColumn2.ReadOnly = true;\r
// \r
- // systemMessageBindingSource\r
- // \r
- this.systemMessageBindingSource.DataSource = typeof(Maestro.SystemMessage);\r
- // \r
- // metadataInfoBindingSource\r
- // \r
- this.metadataInfoBindingSource.DataSource = typeof(Maestro.Metadata.MetadataInfo);\r
- // \r
// timeDataGridViewTextBoxColumn\r
// \r
this.timeDataGridViewTextBoxColumn.DataPropertyName = "Time";\r
this.messageDataGridViewTextBoxColumn.ReadOnly = true;\r
this.messageDataGridViewTextBoxColumn.Width = 83;\r
// \r
+ // systemMessageBindingSource\r
+ // \r
+ this.systemMessageBindingSource.DataSource = typeof(Maestro.SystemMessage);\r
+ // \r
+ // metadataInfoBindingSource\r
+ // \r
+ this.metadataInfoBindingSource.DataSource = typeof(Maestro.Metadata.MetadataInfo);\r
+ // \r
// MaestroForm\r
// \r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();\r
this.splitContainer3.ResumeLayout(false);\r
this.groupMetadata.ResumeLayout(false);\r
- this.tabControl1.ResumeLayout(false);\r
+ this.tabMetadata.ResumeLayout(false);\r
this.tpOctopus.ResumeLayout(false);\r
this.tpTraffic.ResumeLayout(false);\r
this.tpTraffic.PerformLayout();\r
private System.Windows.Forms.GroupBox groupActions;\r
private System.Windows.Forms.DataGridView dataGridJobs;\r
private System.Windows.Forms.BindingSource bindingSourceJobs;\r
- private System.Windows.Forms.TabControl tabControl1;\r
+ private System.Windows.Forms.TabControl tabMetadata;\r
private System.Windows.Forms.TabPage tpOctopus;\r
private OctopusClient.OctopusIDSelector octopusIDSelector;\r
private System.Windows.Forms.TabPage tpTraffic;\r
\r
private void InitializeTrafficSelector() {\r
TrafficMetadata metadata = Configuration.GetMetadataProvider<TrafficMetadata>();\r
- if (metadata == null)\r
+ if (metadata == null) {\r
+ tabMetadata.TabPages.Remove(tpTraffic);\r
return;\r
+ }\r
trafficIDSelector.Configuration = new TrafficConfiguration() {\r
Address = metadata.Server.Address,\r
UserName = metadata.Server.UserName,\r
\r
private void InitializeOctopusSelector() {\r
OctopusMetadata metadata = Configuration.GetMetadataProvider<OctopusMetadata>();\r
- if (metadata == null)\r
+ if (metadata == null) {\r
+ tabMetadata.TabPages.Remove(tpOctopus);\r
return;\r
+ }\r
octopusIDSelector.Configuration = new OctopusConfiguration() {\r
Address = metadata.Server.Address,\r
UserName = metadata.Server.UserName,\r
if (String.IsNullOrEmpty(id))\r
return null;\r
OctopusAPI api = octopusIDSelector.GetClient();\r
- IEnumerable<Story> storyEnum = api.GetStoriesById(id);\r
- if (storyEnum != null)\r
- FillModelFromStories(result, storyEnum.ToList(), api);\r
- else {\r
- IEnumerable<Story> storiesEnum = api.GetStoriesByPlaceHolderId(id);\r
- if (storiesEnum != null) {\r
- List<Story> stories = storiesEnum.ToList();\r
- FillModelFromStories(result, stories, api);\r
- }\r
+ IEnumerable<Story> storiesEnum = api.GetStoriesByPlaceHolderId(id);\r
+ if (storiesEnum != null) {\r
+ List<Story> stories = storiesEnum.ToList();\r
+ FillModelFromStories(result, stories, api);\r
}\r
return result;\r
}\r
if (stories == null || stories.Count == 0)\r
return;\r
Story story = stories[0];\r
- if (story.StoryFolders != null) {\r
+ if (story.StoryFolders != null && story.StoryFolders.Length > 0) {\r
IEnumerable<StoryFolder> storyFoldersEnum = api.GetStoryFoldersByStoryID(story.ID);\r
if (storyFoldersEnum == null)\r
return;\r
}\r
\r
private string GetPrefix(string name) {\r
+ if (String.IsNullOrEmpty(name))\r
+ return null;\r
string[] byHyphen = name.Replace('_', '-').Replace('.', '-').Split('-');\r
return byHyphen.Length > 0 ? byHyphen[0] : null;\r
}\r
if (selectionPrefix == null)\r
selectionPrefix = currentPrefix;\r
else\r
- selectionPrefix = currentPrefix.Equals(selectionPrefix) ? selectionPrefix : null;\r
+ selectionPrefix = selectionPrefix.Equals(currentPrefix) ? selectionPrefix : null;\r
}\r
SelectedSource = new SourceInfo() {\r
Name = selectedNames,\r
InitializeMetadata();\r
InitializeTarget();\r
InitializeJobs();\r
- //InitializeMessages();\r
InitializeControlTexts();\r
}\r
\r
\r
}\r
\r
- private void InitializeMessages() {\r
- //dataGridMessages.Columns.AddRange(\r
- // new DataGridViewTextBoxColumn() {\r
- // AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells,\r
- // DataPropertyName = "Time",\r
- // HeaderText = StringResources.IDO\r
- // },\r
- // new DataGridViewTextBoxColumn() {\r
- // AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells,\r
- // DataPropertyName = "Message",\r
- // HeaderText = StringResources.UZENET\r
- // }\r
- //);\r
- }\r
-\r
private void InitializeJobs() {\r
bindingSourceJobs.DataSource = jobs;\r
foreach (DataGridViewColumn column in dataGridJobs.Columns) {\r
// You can specify all the values or you can default the Build and Revision Numbers\r
// by using the '*' as shown below:\r
// [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.9.3.0")]\r
-[assembly: AssemblyFileVersion("1.9.3.0")]\r
+[assembly: AssemblyVersion("1.9.4.0")]\r
+[assembly: AssemblyFileVersion("1.9.4.0")]\r
Name = d["name"].ToString(),\r
MosObjects = objs.ToArray()\r
};\r
- if (d["script"] != null) {\r
- r.Script = d["script"].ToString();\r
+ if (d["script_content"] != null) {\r
+ r.Script = d["script_content"].ToString();\r
}\r
if (d["story_folder"] != null)\r
r.StoryFolders = GetStoryFolderFromStory(d).ToArray();\r
this.dateScheduled.Format = System.Windows.Forms.DateTimePickerFormat.Short;\r
this.dateScheduled.Location = new System.Drawing.Point(6, 6);\r
this.dateScheduled.Name = "dateScheduled";\r
- this.dateScheduled.ShowUpDown = true;\r
this.dateScheduled.Size = new System.Drawing.Size(82, 20);\r
this.dateScheduled.TabIndex = 0;\r
this.dateScheduled.ValueChanged += new System.EventHandler(this.dateScheduled_ValueChanged);\r
private void refreshRundowns() {\r
ClearSelection();\r
Cursor.Current = Cursors.WaitCursor;\r
- IEnumerable<Rundown> rundowns = client.GetRundowns(dateScheduled.Value)?.ToArray();\r
+ IEnumerable<Rundown> rundowns = client.GetRundowns(dateScheduled.Value.Date)?.ToArray();\r
if (rundowns == null) {\r
bindingRundown.DataSource = null;\r
Cursor.Current = Cursors.Default;\r
else\r
IDChangedEvent?.Invoke(null, null);\r
}\r
-\r
- public void IDSelectedFromOutside(string id) {\r
- this.id = id;\r
- if (tabControl1.SelectedIndex == 0) {\r
- refreshStoryFolders();\r
- refreshRundowns();\r
- } else {\r
- refreshRundowns();\r
- refreshStoryFolders();\r
- }\r
- }\r
-\r
+ \r
public OctopusAPI GetClient() {\r
return client;\r
}\r
\r
-\r
private const int TVIF_STATE = 0x8;\r
private const int TVIS_STATEIMAGEMASK = 0xF000;\r
private const int TV_FIRST = 0x1100;\r
<metadata name="bindingRundown.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
<value>17, 17</value>\r
</metadata>\r
- <metadata name="bindingRundown.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
- <value>17, 17</value>\r
- </metadata>\r
- <metadata name="bindingStoryFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
- <value>155, 17</value>\r
- </metadata>\r
<metadata name="bindingStoryFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
<value>155, 17</value>\r
</metadata>\r
private CliFSPReader cliFSPReader;\r
private SqlConnection connection;\r
private static Logger logger = LogManager.GetCurrentClassLogger();\r
- private MaterialWorker broadcastWorker;\r
+ private MaterialWorker materialWorker;\r
private PromoWorker promoWorker;\r
private ADWorker adWorker;\r
private SegmentWorker segmentWorker;\r
\r
public TrafficAPI(string connString, string user, string password, int timeout, IMessageBus messageBus) {\r
- connectionString = String.Format("{0};User ID={1};Password={2};Connection Timeout={3}", connString, user, password, timeout/1000);\r
+ connectionString = String.Format("{0};User ID={1};Password={2};Connection Timeout={3}", connString, user, password, timeout / 1000);\r
connection = new SqlConnection(connectionString);\r
cliFSPReader = new CliFSPReader();\r
- broadcastWorker = new MaterialWorker(connection, cliFSPReader, messageBus);\r
+ materialWorker = new MaterialWorker(connection, cliFSPReader, messageBus);\r
promoWorker = new PromoWorker(connection, cliFSPReader, messageBus);\r
adWorker = new ADWorker(connection, cliFSPReader, messageBus);\r
segmentWorker = new SegmentWorker(connection, cliFSPReader, messageBus);\r
}\r
\r
public List<TrafficItem> GetMaterials(string strParam, bool problematic, DateTime? from = null, DateTime? to = null) {\r
- return broadcastWorker.GetMaterials(strParam, problematic, from, to);\r
+ return materialWorker.GetMaterials(strParam, problematic, from, to);\r
}\r
\r
public List<TrafficItemMetadata> GetMaterialMetadata(string strParam) {\r
- return broadcastWorker.GetMaterialArchiveMetadata(strParam);\r
+ return materialWorker.GetMaterialArchiveMetadata(strParam);\r
}\r
\r
public void UpdateTrafficInformation(int itemID, bool ready, TrafficMetadataType kind, List<Segment> segments) {\r
switch (kind) {\r
case TrafficMetadataType.TrafficMaterial: {\r
- broadcastWorker.SetMaterialOK(itemID, false);\r
+ materialWorker.SetMaterialOK(itemID, false);\r
segmentWorker.DeleteMaterialSegments(itemID);\r
foreach (Segment actualSegment in segments)\r
segmentWorker.AddMaterialSegment(itemID, actualSegment);\r
- broadcastWorker.SetMaterialOK(itemID, ready);\r
+ materialWorker.SetMaterialOK(itemID, ready);\r
break;\r
}\r
case TrafficMetadataType.TrafficAD: {\r
return segmentWorker.GetADSegments(strParam);\r
}\r
\r
- //public void DeleteMaterialSegments(int itemID) {\r
- // segmentWorker.DeleteMaterialSegments(itemID);\r
- //}\r
-\r
- //public void DeleteMaterialSegment(int itemID, int segmentID) {\r
- // segmentWorker.DeleteMaterialSegment(itemID, segmentID);\r
- //}\r
-\r
- //public void AddMaterialSegment(int itemID, Segment segment) {\r
- // segmentWorker.AddMaterialSegment(itemID, segment);\r
- //}\r
+ public string CreateMaterialVersion(string episodeID) {\r
+ return materialWorker.CreateMaterialVersion(episodeID);\r
+ }\r
}\r
}\r
private void InitializeComponent()\r
{\r
this.components = new System.ComponentModel.Container();\r
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();\r
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();\r
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();\r
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();\r
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();\r
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();\r
this.trafficAPIBindingSource = new System.Windows.Forms.BindingSource(this.components);\r
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();\r
this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker();\r
this.dgTraffic.BackgroundColor = System.Drawing.Color.White;\r
this.dgTraffic.BorderStyle = System.Windows.Forms.BorderStyle.None;\r
this.dgTraffic.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.Raised;\r
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;\r
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;\r
- dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;\r
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;\r
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;\r
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;\r
- this.dgTraffic.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;\r
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;\r
- dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;\r
- dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);\r
- dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;\r
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Gainsboro;\r
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.Black;\r
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;\r
- this.dgTraffic.DefaultCellStyle = dataGridViewCellStyle2;\r
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;\r
+ dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;\r
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
+ dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;\r
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;\r
+ dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;\r
+ dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;\r
+ this.dgTraffic.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;\r
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;\r
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;\r
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);\r
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;\r
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.Gainsboro;\r
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.Black;\r
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;\r
+ this.dgTraffic.DefaultCellStyle = dataGridViewCellStyle5;\r
this.dgTraffic.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.dgTraffic.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;\r
this.dgTraffic.EnableHeadersVisualStyles = false;\r
this.dgTraffic.MultiSelect = false;\r
this.dgTraffic.Name = "dgTraffic";\r
this.dgTraffic.RowHeadersVisible = false;\r
- dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);\r
- this.dgTraffic.RowsDefaultCellStyle = dataGridViewCellStyle3;\r
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);\r
+ this.dgTraffic.RowsDefaultCellStyle = dataGridViewCellStyle6;\r
this.dgTraffic.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);\r
this.dgTraffic.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;\r
this.dgTraffic.Size = new System.Drawing.Size(263, 217);\r
this.scheduledDate.Location = new System.Drawing.Point(3, 38);\r
this.scheduledDate.Name = "scheduledDate";\r
this.scheduledDate.ShowCheckBox = true;\r
- this.scheduledDate.ShowUpDown = true;\r
- this.scheduledDate.Size = new System.Drawing.Size(101, 20);\r
+ this.scheduledDate.Size = new System.Drawing.Size(103, 20);\r
this.scheduledDate.TabIndex = 3;\r
// \r
// textBox1\r
this.tableLayoutPanelSearch.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 42.1875F));\r
this.tableLayoutPanelSearch.Size = new System.Drawing.Size(263, 62);\r
this.tableLayoutPanelSearch.TabIndex = 10;\r
- this.tableLayoutPanelSearch.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanelSearch_Paint);\r
// \r
// pSearch\r
// \r
using System.Collections.Generic;\r
using System.Diagnostics;\r
using LinkDotNet.MessageHandling.Contracts;\r
+using System.ComponentModel;\r
\r
namespace TrafficClient {\r
public delegate void OnSelectedIDChanged(string ID, int variantID);\r
DateTime? scheduledDate = null;\r
if (this.scheduledDate.Checked)\r
scheduledDate = this.scheduledDate.Value.Date;\r
- \r
- List<TrafficItem> items = null;\r
+\r
+ BindingList<TrafficItem> items = null;\r
dgTraffic.Columns.Clear();\r
if (rbMaterial.Checked) {\r
dgTraffic.Columns.AddRange(GetMaterialColumns());\r
- items = trafficAPI.GetMaterials(searchText, chkProblematic.Checked, scheduledDate, scheduledDate);\r
+ items = new BindingList<TrafficItem>(trafficAPI.GetMaterials(searchText, chkProblematic.Checked, scheduledDate, scheduledDate));\r
} else if (rbAD.Checked) {\r
dgTraffic.Columns.AddRange(GetADColumns());\r
- items = trafficAPI.GetADs(searchText, chkProblematic.Checked, scheduledDate, scheduledDate);\r
+ items = new BindingList<TrafficItem>(trafficAPI.GetADs(searchText, chkProblematic.Checked, scheduledDate, scheduledDate));\r
} else if (rbPromo.Checked) {\r
dgTraffic.Columns.AddRange(GetPromoColumns());\r
- items = trafficAPI.GetPromos(searchText, chkProblematic.Checked, scheduledDate, scheduledDate);\r
- }\r
- if (items == null) {\r
- dgTraffic.DataSource = null;\r
- Cursor.Current = Cursors.Default;\r
- return;\r
+ items = new BindingList<TrafficItem>(trafficAPI.GetPromos(searchText, chkProblematic.Checked, scheduledDate, scheduledDate));\r
}\r
- //if (CanSort(list))\r
- // list.Sort((x, y) => DateTime.Compare(x.NextBroadcastDate.Value, y.NextBroadcastDate.Value));\r
- dgTraffic.DataSource = items;\r
+ trafficAPIBindingSource.DataSource = items;\r
+ dgTraffic.DataSource = trafficAPIBindingSource;\r
Cursor.Current = Cursors.Default;\r
}\r
\r
RefreshDataGridSource();\r
}\r
\r
- private void tableLayoutPanelSearch_Paint(object sender, PaintEventArgs e) {\r
- //var rectangle = e.ClipRectangle;\r
- //ControlPaint.DrawBorder(e.Graphics, rectangle, Color.LightGray, ButtonBorderStyle.Dotted); // dotted border\r
- }\r
-\r
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) {\r
if (e.RowIndex < 0 || e.ColumnIndex != 0)\r
return;\r
\r
private void OnSelectionChanged(DataGridViewRow actualRow) {\r
TrafficItem res = actualRow.DataBoundItem as TrafficItem;\r
- if (String.IsNullOrEmpty(res.MediaID))\r
- return;\r
+ if (String.IsNullOrEmpty(res.MediaID)) {\r
+ res.MediaID = trafficAPI.CreateMaterialVersion(res.EpisodeID);\r
+ if (String.IsNullOrEmpty(res.MediaID))\r
+ return;\r
+ }\r
DataGridViewCheckBoxCell actualCell = actualRow.Cells[0] as DataGridViewCheckBoxCell;\r
if (!actualCell.Equals(selectedCell)) {\r
ClearSelection();\r
TryConnect();\r
using (SqlCommand cmd = new SqlCommand("dbo.clIFsp_EC_MAM", connection)) {\r
cmd.CommandType = CommandType.StoredProcedure;\r
-// cmd.Parameters.AddWithValue("@Operation", 1001);\r
cmd.Parameters.AddWithValue("@Operation", 1002);\r
- //if (problematic)\r
- // cmd.Parameters.AddWithValue("@@@Options", 8);\r
- //else\r
- // cmd.Parameters.AddWithValue("@@@Options", 0);\r
if (problematic)\r
cmd.Parameters.AddWithValue("@@@Options", 1);\r
else\r
\r
\r
public List<TrafficItemMetadata> GetMaterialArchiveMetadata(string strParam) {\r
- List<clIFsp_EC_MAMBradocastResult> sqlResult = null;\r
List<TrafficItemMetadata> result = null;\r
try {\r
TryConnect();\r
return result;\r
}\r
\r
+ public string CreateMaterialVersion(string episodeID) {\r
+ string result = null;\r
+ try {\r
+ TryConnect();\r
+ using (SqlCommand cmd = new SqlCommand("dbo.clIFsp_EC_MAM", connection)) {\r
+ cmd.CommandType = CommandType.StoredProcedure;\r
+ cmd.Parameters.AddWithValue("@Operation", 1105);\r
+ cmd.Parameters.AddWithValue("@@@Options", DBNull.Value);\r
+ cmd.Parameters.AddWithValue("@@IntParam1", 1);\r
+ cmd.Parameters.AddWithValue("@@ItemID", DBNull.Value);\r
+ cmd.Parameters.AddWithValue("@@StrParam1", episodeID);\r
+ cmd.Parameters.AddWithValue("@@StrParam2", DBNull.Value);\r
+\r
+ using (SqlDataReader reader = cmd.ExecuteReader()) {\r
+ if (reader.Read()) {\r
+ if (!reader.IsDBNull(1))\r
+ result = reader.GetString(1);\r
+ }\r
+ }\r
+ }\r
+ }\r
+ catch (Exception e) {\r
+ OnError(logger, e);\r
+ }\r
+ finally {\r
+ connection.Close();\r
+ }\r
+ return result;\r
+ }\r
+\r
public void SetMaterialOK(int itemID, bool ok) {\r
try {\r
TryConnect();\r
\r
private static final Logger logger = LogManager.getLogger();\r
private static final String REGEXP_TRAFFIC = "^[MRP]{1}[0-9]{6}[A-Z]{1}$";\r
- private static final String REGEXP_OCTOPUSPLACEHOLDERID = "^[0-9]+_[0-9]+$";\r
- private static final String REGEXP_OCTOPUSPLACEHOLDERVERSIONEDID = "^[0-9]+_[0-9]+-[0-9]{3}$";\r
+ private static final String REGEXP_OCTOPUSID = "^[0-9]+$";\r
\r
private void check(String trafficOutputPath, String octopusOutputPath, String genericOutputPath, String houseId) {\r
if (StringUtils.isBlank(trafficOutputPath)) {\r
private MetadataType GuessMetadataType(String id) {\r
if (id.matches(REGEXP_TRAFFIC))\r
return MetadataType.TRAFFIC;\r
- if (id.matches(REGEXP_OCTOPUSPLACEHOLDERID))\r
- return MetadataType.OCTOPUS;\r
- if (id.matches(REGEXP_OCTOPUSPLACEHOLDERVERSIONEDID))\r
+ if (id.matches(REGEXP_OCTOPUSID))\r
return MetadataType.OCTOPUS;\r
return MetadataType.GENERIC;\r
}\r
eclipse.preferences.version=1\r
-encoding//pages/menu.zul=ISO-8859-2\r
encoding//src/user/jobengine/server/JobRuntime.java=UTF-8\r
<north border="0">\r
<div id="divMenu" apply="org.zkoss.bind.BindComposer" viewModel="@id('mvm') @init('user.jobengine.zk.model.MenuModel')">\r
<borderlayout height="50px">\r
- <west width="250px" border="0">\r
+ <west width="400px" border="0">\r
<div width="100%" height="100%" style="background: #008AC8;" >\r
- <image src="/img/mediacube_logo_v2_50x50.png" tooltiptext="MediaCube Server v2.1.0">\r
+ <image src="/img/mediacube_logo_v2_50x50.png">\r
<!-- <custom-attributes org.zkoss.zul.image.preload="true" /> -->\r
</image>\r
+ <label style="color:#e3e3e3;font-size:20px;font-weight:bold">MediaCube v2.1.1</label>\r
</div>\r
</west>\r
<center border="0">\r
-<?xml version="1.0" encoding="ISO-8859-2"?>\r
+<?xml version="1.0" encoding="UTF-8"?>\r
<?init class="user.jobengine.zk.util.AuthInitiator"?>\r
<zk>\r
<style>\r
<menubar id="menubar" hflex="max" sclass="redmenubar">\r
<menu sclass="whitemenu" label="Rendszer">\r
<menupopup>\r
- <menuitem sclass="rozsda" label="Kilépés" onClick="@command('doLogout',window=zkwindow)" disabled="false" />\r
+ <menuitem sclass="rozsda" label="Kilépés" onClick="@command('doLogout',window=zkwindow)" disabled="false" />\r
</menupopup>\r
</menu>\r
- <menu sclass="whitemenu" label="Archívum" >\r
+ <menu sclass="whitemenu" label="Archívum" >\r
<menupopup>\r
- <menuitem sclass="rozsda" label="Keresés" onClick='includeContent.src="/pages/search_items.zul"' disabled="false" />\r
- <menuitem sclass="rozsda" label="Statisztikák" onClick='includeContent.src="/pages/statistics.zul"' disabled="false" />\r
+ <menuitem sclass="rozsda" label="Keresés" onClick='includeContent.src="/pages/search_items.zul"' disabled="false" />\r
+ <menuitem sclass="rozsda" label="Statisztikák" onClick='includeContent.src="/pages/statistics.zul"' disabled="false" />\r
<menuitem sclass="rozsda" label="Folyamatok" onClick='includeContent.src="/pages/joblist.zul"' disabled="false" />\r
</menupopup>\r
</menu>\r
\r
- <!-- menu label="${labels.menu_admin}" image="/img/Centigrade-Widget-Icons/QuestionmarkButton-16x16.png" visible="true">\r
- <menupopup>\r
- <menu label="${labels.menu_admin_permissions}">\r
- <menupopup>\r
- <menuitem label="${labels.menu_admin_permissions_authorizations}" onClick='includeContent.src="/pages/perm_auth_list.zul"'/>\r
- <menuitem label="${labels.menu_admin_permissions_groups}" onClick='includeContent.src="/pages/perm_group_list.zul"'/>\r
- <menuitem label="${labels.menu_admin_permissions_users}" onClick='includeContent.src="/pages/perm_user_list.zul"' />\r
- </menupopup>\r
- </menu>\r
- <menu label="${labels.menu_admin_datastructure}">\r
- </menu>\r
- </menupopup>\r
- </menu -->\r
-\r
<menu sclass="whitemenu" label="${labels.menu_help}" >\r
<menupopup>\r
- <menuitem sclass="rozsda" label="${labels.menu_content}" href="/resource/help.html" />\r
+ <menuitem sclass="rozsda" label="${labels.menu_content}" href="http://10.10.1.27:90/docs" target="_blank" />\r
<menuitem sclass="rozsda" label="${labels.menu_version}" href="/resource/help.html" target="_blank" />\r
</menupopup>\r
</menu>\r
\r
import org.zkoss.bind.annotation.BindingParam;\r
import org.zkoss.bind.annotation.Command;\r
+import org.zkoss.zk.ui.Executions;\r
import org.zkoss.zk.ui.select.annotation.Wire;\r
import org.zkoss.zul.Include;\r
import org.zkoss.zul.Window;\r
return "Media archivum user"; //String.format(Labels.getLabel("header.userformat"), SessionUtil.getUserProfile().getDisplayName(), SessionUtil.getUserProfile().getUserName().toUpperCase());\r
}\r
\r
+ public void redirectToDocs() {\r
+ String serverName = Executions.getCurrent().getLocalAddr();\r
+ String serverName1 = Executions.getCurrent().getRemoteAddr();\r
+ String serverName2 = Executions.getCurrent().getBrowser();\r
+\r
+ }\r
+\r
}
\ No newline at end of file