\r
[TestMethod]\r
public void DeleteSegmentTest() {\r
+ //Fixture\r
const int segmentID = 82454;\r
\r
//Exercise\r
}\r
\r
[TestMethod]\r
- public void TestGetList() {\r
- //TrafficAPI sut = new TrafficAPI();\r
- //var result = sut.GetList();\r
- //Assert.IsNotNull(result);\r
+ public void SearchPromotionalsTest() {\r
+ //Fixture\r
+ const string STR_PARAM = "";\r
+\r
+ //Exercise\r
+ List<MamResultWrapper> actual = sut.SearchPromotional(STR_PARAM);\r
}\r
\r
+ [TestMethod]\r
+ public void SearchAdvertisementTest() {\r
+ //Fixture\r
+ const string STR_PARAM = "";\r
+\r
+ //Exercise\r
+ List<MamResultWrapper> actual = sut.SearchAdvertisement(STR_PARAM);\r
+ }\r
}\r
}\r
}\r
\r
private void OnInfoTextChanged(object sender, EventArgs e) {\r
- //ApplyProcessorButtonsLogic();\r
+ ApplyProcessorButtonsLogic();\r
ApplyMetaDataButtonLogic();\r
}\r
\r
\r
if (Configuration.Player != null)\r
ctxiDefineSegments.Enabled = SelectedSource?.FileInfo != null && Configuration.Player.SegmentEditor && MetadataType.Traffic.Equals(SelectedMetadata?.Kind);\r
+ //todo\r
IsSelectedFileAnID();\r
EnableArchiveMetadataButtonAndCreateMetadataModel();\r
}\r
private void SetTrafficIDToMetadataText() {\r
TrafficAPI api = trafficIDSelector.trafficAPI;\r
Cursor.Current = Cursors.WaitCursor;\r
- List<MamResultWrapper> result = api.Search(startingName, null, null, true);\r
+ List<MamResultWrapper> result = api.SearchBroadcast(startingName, null, null, true);\r
ProcessMamResults(result);\r
}\r
\r
return result;\r
}\r
\r
- public clIFsp_EC_MAMResult ToclIFsp_MAMResult(SqlDataReader reader) {\r
- clIFsp_EC_MAMResult item = new clIFsp_EC_MAMResult();\r
+ public clIFsp_EC_MAMBradocastResult ToclIFsp_MAMBroadcastResult(SqlDataReader reader) {\r
+ clIFsp_EC_MAMBradocastResult item = new clIFsp_EC_MAMBradocastResult();\r
int f = 0;\r
- //TODO check\r
item.v_ProgrammeID = (int)ReadInt(reader, ref f);\r
item.v_Live = (bool)ReadBool(reader, ref f);\r
item.v_EpisodeID = ReadString(reader, ref f);\r
return item;\r
}\r
\r
+ public clIFsp_EC_MAMPromotionalResult ToclIFsp_MAMPromotionalResult(SqlDataReader reader) {\r
+ clIFsp_EC_MAMPromotionalResult item = new clIFsp_EC_MAMPromotionalResult();\r
+ int f = 0;\r
+ item.t_SpotID = (int)ReadInt(reader, ref f);\r
+ item.t_MediaID = ReadString(reader, ref f);\r
+ item.v_Title = ReadString(reader, ref f);\r
+ item.v_PromoType = ReadString(reader, ref f);\r
+ item.v_ProgTitle = ReadString(reader, ref f);\r
+ item.v_Episode = ReadShort(reader, ref f);\r
+ item.t_PSStart = ReadDateTime(reader, ref f);\r
+ item.t_PSEnd = ReadDateTime(reader, ref f);\r
+ item.v_EstimatedDuration = ReadInt(reader, ref f);\r
+ item.t_TcIn = ReadInt(reader, ref f);\r
+ item.t_TcOut = ReadInt(reader, ref f);\r
+ item.t_Duration = ReadInt(reader, ref f);\r
+ item.v_TcIn = ReadString(reader, ref f);\r
+ item.v_TcOut = ReadString(reader, ref f);\r
+ item.v_Duration = ReadString(reader, ref f);\r
+ item.v_Stations = ReadString(reader, ref f);\r
+ item.t_OkForAir = ReadBool(reader, ref f);\r
+ item.v_OkForAirs = ReadBool(reader, ref f);\r
+ item.v_IsInactive = ReadBool(reader, ref f);\r
+ return item;\r
+ }\r
+\r
+ public clIFsp_EC_MAMAdvertismentResult ToclIFsp_MAMAdvertisementResult(SqlDataReader reader) {\r
+ clIFsp_EC_MAMAdvertismentResult item = new clIFsp_EC_MAMAdvertismentResult();\r
+ int f = 0;\r
+ item.t_SpotID = (int)ReadInt(reader, ref f);\r
+ item.t_MediaID = ReadString(reader, ref f);\r
+ item.v_Title = ReadString(reader, ref f);\r
+ item.t_Advertiser = ReadString(reader, ref f);\r
+ item.v_EstimatedDuration = ReadInt(reader, ref f);\r
+ item.t_TcIn = ReadInt(reader, ref f);\r
+ item.t_TcOut = ReadInt(reader, ref f);\r
+ item.t_Duration = ReadInt(reader, ref f);\r
+ item.v_TcIn = ReadString(reader, ref f);\r
+ item.v_TcOut = ReadString(reader, ref f);\r
+ item.v_Duration = ReadString(reader, ref f);\r
+ item.t_OkForAir = ReadBool(reader, ref f);\r
+ item.v_OkForAirs = ReadBool(reader, ref f);\r
+ return item;\r
+ }\r
+\r
public clIFsp_EC_SegmentResult ToclIFsp_SegmentResult(SqlDataReader reader) {\r
clIFsp_EC_SegmentResult item = new clIFsp_EC_SegmentResult();\r
int f = 0;\r
cliFSPReader = new CliFSPReader();\r
}\r
\r
- public List<MamResultWrapper> Search(string strParam, DateTime? from, DateTime? to, bool missingCopia) {\r
- List<clIFsp_EC_MAMResult> sqlResult = null;\r
+ public List<MamResultWrapper> SearchBroadcast(string strParam, DateTime? from, DateTime? to, bool missingCopia) {\r
+ List<clIFsp_EC_MAMBradocastResult> sqlResult = null;\r
List<MamResultWrapper> result = null;\r
try {\r
TryConnect();\r
cmd.Parameters.AddWithValue("@@DateParam2", to.Value.Date);\r
}\r
}\r
- sqlResult = ExecuteAndRead(cmd);\r
- result = ProcessMamResult(sqlResult);\r
+ sqlResult = ExecuteAndReadBradcast(cmd);\r
+ result = ProcessMamBroadcastResult(sqlResult);\r
}\r
}\r
catch (Exception e) {\r
}\r
}\r
\r
- private List<MamResultWrapper> ProcessMamResult(List<clIFsp_EC_MAMResult> sqlResult) {\r
+ private List<MamResultWrapper> ProcessMamBroadcastResult(List<clIFsp_EC_MAMBradocastResult> sqlResult) {\r
if (sqlResult == null)\r
return null;\r
List<MamResultWrapper> result = new List<MamResultWrapper>();\r
- foreach (clIFsp_EC_MAMResult actual in sqlResult) {\r
+ foreach (clIFsp_EC_MAMBradocastResult actual in sqlResult) {\r
MamResultWrapper actualObject = new MamResultWrapper() {\r
MediaID = actual.v_MediaID,\r
EpisodeTitle = actual.v_EpTitle,\r
return result;\r
}\r
\r
- private List<clIFsp_EC_MAMResult> ExecuteAndRead(SqlCommand cmd) {\r
- List<clIFsp_EC_MAMResult> result = null;\r
+ private List<clIFsp_EC_MAMBradocastResult> ExecuteAndReadBradcast(SqlCommand cmd) {\r
+ List<clIFsp_EC_MAMBradocastResult> result = null;\r
using (SqlDataReader reader = cmd.ExecuteReader()) {\r
while (reader.Read()) {\r
if (result == null)\r
- result = new List<clIFsp_EC_MAMResult>();\r
- clIFsp_EC_MAMResult item = cliFSPReader.ToclIFsp_MAMResult(reader);\r
+ result = new List<clIFsp_EC_MAMBradocastResult>();\r
+ clIFsp_EC_MAMBradocastResult item = cliFSPReader.ToclIFsp_MAMBroadcastResult(reader);\r
result.Add(item);\r
}\r
}\r
}\r
\r
public List<ArchiveMatadataWrapper> SearchArchiveMetadata(string strParam) {\r
- List<clIFsp_EC_MAMResult> sqlResult = null;\r
+ List<clIFsp_EC_MAMBradocastResult> sqlResult = null;\r
List<ArchiveMatadataWrapper> result = null;\r
try {\r
TryConnect();\r
cmd.Parameters.AddWithValue("@@@Options", 40);\r
cmd.Parameters.AddWithValue("@@ItemID", DBNull.Value);\r
cmd.Parameters.AddWithValue("@@StrParam1", strParam);\r
- sqlResult = ExecuteAndRead(cmd);\r
+ sqlResult = ExecuteAndReadBradcast(cmd);\r
result = ProcessArchiveResult(sqlResult);\r
}\r
}\r
return result;\r
}\r
\r
- private List<ArchiveMatadataWrapper> ProcessArchiveResult(List<clIFsp_EC_MAMResult> sqlResult) {\r
+ private List<ArchiveMatadataWrapper> ProcessArchiveResult(List<clIFsp_EC_MAMBradocastResult> sqlResult) {\r
if (sqlResult == null)\r
return null;\r
List<ArchiveMatadataWrapper> result = new List<ArchiveMatadataWrapper>();\r
- foreach (clIFsp_EC_MAMResult actual in sqlResult) {\r
+ foreach (clIFsp_EC_MAMBradocastResult actual in sqlResult) {\r
ArchiveMatadataWrapper actualObject = new ArchiveMatadataWrapper() {\r
EpisodeID = actual.v_EpisodeID,\r
EpisodeTitle = actual.v_EpTitle,\r
}\r
return result;\r
}\r
+\r
+ public List<MamResultWrapper> SearchPromotional(string strParam) {\r
+ List<clIFsp_EC_MAMPromotionalResult> sqlResult = null;\r
+ List<MamResultWrapper> 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", 2001);\r
+ cmd.Parameters.AddWithValue("@@@Options", 40);\r
+ cmd.Parameters.AddWithValue("@@ItemID", DBNull.Value);\r
+ cmd.Parameters.AddWithValue("@@StrParam1", strParam);\r
+ sqlResult = ExecuteAndReadPromotionals(cmd);\r
+ result = ProcessMamPromotionalResult(sqlResult);\r
+ }\r
+ }\r
+ catch (Exception e) {\r
+ logger.Error(e.Message);\r
+ throw e;\r
+ }\r
+ finally {\r
+ connection.Close();\r
+ }\r
+ return result;\r
+ }\r
+\r
+ private List<clIFsp_EC_MAMPromotionalResult> ExecuteAndReadPromotionals(SqlCommand cmd) {\r
+ List<clIFsp_EC_MAMPromotionalResult> result = null;\r
+ using (SqlDataReader reader = cmd.ExecuteReader()) {\r
+ while (reader.Read()) {\r
+ if (result == null)\r
+ result = new List<clIFsp_EC_MAMPromotionalResult>();\r
+ clIFsp_EC_MAMPromotionalResult item = cliFSPReader.ToclIFsp_MAMPromotionalResult(reader);\r
+ result.Add(item);\r
+ }\r
+ }\r
+ return result;\r
+ }\r
+\r
+ private List<MamResultWrapper> ProcessMamPromotionalResult(List<clIFsp_EC_MAMPromotionalResult> sqlResult) {\r
+ if (sqlResult == null)\r
+ return null;\r
+ List<MamResultWrapper> result = new List<MamResultWrapper>();\r
+ foreach (clIFsp_EC_MAMPromotionalResult actual in sqlResult) {\r
+ //MamResultWrapper actualObject = new MamResultWrapper() {\r
+ // MediaID = actual.v_MediaID,\r
+ // EpisodeTitle = actual.v_EpTitle,\r
+ // Title = actual.v_ProgTitle,\r
+ // EpisodeNumber = actual.v_EpisodeID,\r
+ // VariantID = actual.v_VariantID.HasValue ? actual.v_VariantID.Value : -1,\r
+ // Episode = actual.v_Episode.HasValue ? actual.v_Episode.Value : (short)-1,\r
+ // NextBroadcastDate = actual.v_NextBroadcastDate\r
+ //};\r
+ //result.Add(actualObject);\r
+ }\r
+ return result;\r
+ }\r
+\r
+ public List<MamResultWrapper> SearchAdvertisement(string strParam) {\r
+ List<clIFsp_EC_MAMAdvertismentResult> sqlResult = null;\r
+ List<MamResultWrapper> 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", 3001);\r
+ cmd.Parameters.AddWithValue("@@@Options", 40);\r
+ cmd.Parameters.AddWithValue("@@ItemID", DBNull.Value);\r
+ cmd.Parameters.AddWithValue("@@StrParam1", strParam);\r
+ sqlResult = ExecuteAndReadAdvertisement(cmd);\r
+ result = ProcessMamAdvertismentResult(sqlResult);\r
+ }\r
+ }\r
+ catch (Exception e) {\r
+ logger.Error(e.Message);\r
+ throw e;\r
+ }\r
+ finally {\r
+ connection.Close();\r
+ }\r
+ return result;\r
+ }\r
+\r
+ private List<clIFsp_EC_MAMAdvertismentResult> ExecuteAndReadAdvertisement(SqlCommand cmd) {\r
+ List<clIFsp_EC_MAMAdvertismentResult> result = null;\r
+ using (SqlDataReader reader = cmd.ExecuteReader()) {\r
+ while (reader.Read()) {\r
+ if (result == null)\r
+ result = new List<clIFsp_EC_MAMAdvertismentResult>();\r
+ clIFsp_EC_MAMAdvertismentResult item = cliFSPReader.ToclIFsp_MAMAdvertisementResult(reader);\r
+ result.Add(item);\r
+ }\r
+ }\r
+ return result;\r
+ }\r
+\r
+ private List<MamResultWrapper> ProcessMamAdvertismentResult(List<clIFsp_EC_MAMAdvertismentResult> sqlResult) {\r
+ if (sqlResult == null)\r
+ return null;\r
+ List<MamResultWrapper> result = new List<MamResultWrapper>();\r
+ foreach (clIFsp_EC_MAMAdvertismentResult actual in sqlResult) {\r
+ //MamResultWrapper actualObject = new MamResultWrapper() {\r
+ // MediaID = actual.v_MediaID,\r
+ // EpisodeTitle = actual.v_EpTitle,\r
+ // Title = actual.v_ProgTitle,\r
+ // EpisodeNumber = actual.v_EpisodeID,\r
+ // VariantID = actual.v_VariantID.HasValue ? actual.v_VariantID.Value : -1,\r
+ // Episode = actual.v_Episode.HasValue ? actual.v_Episode.Value : (short)-1,\r
+ // NextBroadcastDate = actual.v_NextBroadcastDate\r
+ //};\r
+ //result.Add(actualObject);\r
+ }\r
+ return result;\r
+ }\r
}\r
}\r
}\r
\r
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.clIFsp_EC_MAM")]\r
- public ISingleResult<clIFsp_EC_MAMResult> clIFsp_EC_MAM([global::System.Data.Linq.Mapping.ParameterAttribute(Name="Operation", DbType="Int")] System.Nullable<int> operation, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@@Options", DbType="Int")] System.Nullable<int> @__Options, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@ItemID", DbType="Int")] System.Nullable<int> _ItemID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam1", DbType="Int")] System.Nullable<int> _IntParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam2", DbType="Int")] System.Nullable<int> _IntParam2, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam3", DbType="Int")] System.Nullable<int> _IntParam3, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@StrParam1", DbType="VarChar(200)")] string _StrParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@StrParam2", DbType="VarChar(MAX)")] string _StrParam2, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@DateParam1", DbType="DateTime")] System.Nullable<System.DateTime> _DateParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@DateParam2", DbType="DateTime")] System.Nullable<System.DateTime> _DateParam2)\r
+ public ISingleResult<clIFsp_EC_MAMBradocastResult> clIFsp_EC_MAM([global::System.Data.Linq.Mapping.ParameterAttribute(Name="Operation", DbType="Int")] System.Nullable<int> operation, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@@Options", DbType="Int")] System.Nullable<int> @__Options, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@ItemID", DbType="Int")] System.Nullable<int> _ItemID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam1", DbType="Int")] System.Nullable<int> _IntParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam2", DbType="Int")] System.Nullable<int> _IntParam2, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@IntParam3", DbType="Int")] System.Nullable<int> _IntParam3, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@StrParam1", DbType="VarChar(200)")] string _StrParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@StrParam2", DbType="VarChar(MAX)")] string _StrParam2, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@DateParam1", DbType="DateTime")] System.Nullable<System.DateTime> _DateParam1, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="@DateParam2", DbType="DateTime")] System.Nullable<System.DateTime> _DateParam2)\r
{\r
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), operation, @__Options, _ItemID, _IntParam1, _IntParam2, _IntParam3, _StrParam1, _StrParam2, _DateParam1, _DateParam2);\r
- return ((ISingleResult<clIFsp_EC_MAMResult>)(result.ReturnValue));\r
+ return ((ISingleResult<clIFsp_EC_MAMBradocastResult>)(result.ReturnValue));\r
}\r
}\r
\r
- public partial class clIFsp_EC_MAMResult\r
+ public partial class clIFsp_EC_MAMBradocastResult\r
{\r
\r
private int _v_ProgrammeID;\r
\r
private string _v_MediaID;\r
\r
- public clIFsp_EC_MAMResult()\r
+ public clIFsp_EC_MAMBradocastResult()\r
{\r
}\r
\r
<Reference Include="System.Xml" />\r
</ItemGroup>\r
<ItemGroup>\r
+ <Compile Include="clIFsp_EC_MAMAdvertismentsResult.cs" />\r
+ <Compile Include="clIFsp_EC_MAMPromotionalResult.cs" />\r
<Compile Include="clIFsp_EC_SegmentResult.cs" />\r
<Compile Include="CustomDataGridView.cs">\r
<SubType>Component</SubType>\r
AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells,\r
DataPropertyName = "MediaID",\r
HeaderText = Resources.TRAFFIC_ID,\r
- \r
+\r
},\r
new DataGridViewTextBoxColumn() {\r
AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells,\r
from = scheduledDate.Value;\r
to = scheduledDate.Value.AddDays(1);\r
}\r
- var result = trafficAPI.Search(searchText, from, to, copiaCheckBox.Checked)?.ToArray();\r
-\r
+ MamResultWrapper[] result = null;\r
+ if (radioButtonBroadCast.Checked)\r
+ result = trafficAPI.SearchBroadcast(searchText, from, to, copiaCheckBox.Checked)?.ToArray();\r
+ else if(radioButtonAD.Checked)\r
+ result = trafficAPI.SearchAdvertisement(searchText)?.ToArray();\r
+ else if(radioButtonPromo.Checked)\r
+ result = trafficAPI.SearchPromotional(searchText)?.ToArray();\r
if (result == null) {\r
dataGridView1.DataSource = null;\r
return;\r
--- /dev/null
+using System;\r
+using System.Collections.Generic;\r
+using System.Linq;\r
+using System.Text;\r
+using System.Threading.Tasks;\r
+\r
+namespace TrafficClient {\r
+ public partial class clIFsp_EC_MAMAdvertismentResult {\r
+\r
+ private int _t_SpotID;\r
+\r
+ private string _t_MediaID;\r
+\r
+ private string _v_Title;\r
+\r
+ private string _t_Advertiser;\r
+\r
+ private System.Nullable<int> _v_EstimatedDuration;\r
+\r
+ private System.Nullable<int> _t_TcIn;\r
+\r
+ private System.Nullable<int> _t_TcOut;\r
+\r
+ private System.Nullable<int> _t_Duration;\r
+\r
+ private string _v_TcIn;\r
+\r
+ private string _v_TcOut;\r
+\r
+ private string _v_Duration;\r
+\r
+ private System.Nullable<bool> _t_OkForAir;\r
+\r
+ private System.Nullable<bool> _v_OkForAirs;\r
+\r
+ public clIFsp_EC_MAMAdvertismentResult() {\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_SpotID", DbType = "Int NOT NULL")]\r
+ public int t_SpotID {\r
+ get {\r
+ return this._t_SpotID;\r
+ }\r
+ set {\r
+ if ((this._t_SpotID != value)) {\r
+ this._t_SpotID = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_MediaID", DbType = "VarChar(8) NOT NULL")]\r
+ public string t_MediaID {\r
+ get {\r
+ return this._t_MediaID;\r
+ }\r
+ set {\r
+ if ((this._t_MediaID != value)) {\r
+ this._t_MediaID = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Title", DbType = "NVarChar(60)", CanBeNull = false)]\r
+ public string v_Title {\r
+ get {\r
+ return this._v_Title;\r
+ }\r
+ set {\r
+ if ((this._v_Title != value)) {\r
+ this._v_Title = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_Advertiser", DbType = "NvarChar(60)")]\r
+ public string t_Advertiser {\r
+ get {\r
+ return this._t_Advertiser;\r
+ }\r
+ set {\r
+ if ((this._t_Advertiser != value)) {\r
+ this._t_Advertiser = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_EstimatedDuration", DbType = "Int")]\r
+ public System.Nullable<int> v_EstimatedDuration {\r
+ get {\r
+ return this._v_EstimatedDuration;\r
+ }\r
+ set {\r
+ if ((this._v_EstimatedDuration != value)) {\r
+ this._v_EstimatedDuration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_TcIn", DbType = "Int")]\r
+ public System.Nullable<int> t_TcIn {\r
+ get {\r
+ return this._t_TcIn;\r
+ }\r
+ set {\r
+ if ((this._t_TcIn != value)) {\r
+ this._t_TcIn = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_TcOut", DbType = "Int")]\r
+ public System.Nullable<int> t_TcOut {\r
+ get {\r
+ return this._t_TcOut;\r
+ }\r
+ set {\r
+ if ((this._t_TcOut != value)) {\r
+ this._t_TcOut = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_Duration", DbType = "Int")]\r
+ public System.Nullable<int> t_Duration {\r
+ get {\r
+ return this._t_Duration;\r
+ }\r
+ set {\r
+ if ((this._t_Duration != value)) {\r
+ this._t_Duration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_TcIn", DbType = "Varchar(40)")]\r
+ public string v_TcIn {\r
+ get {\r
+ return this._v_TcIn;\r
+ }\r
+ set {\r
+ if ((this._v_TcIn != value)) {\r
+ this._v_TcIn = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_TcOut", DbType = "Varchar(40)")]\r
+ public string v_TcOut {\r
+ get {\r
+ return this._v_TcOut;\r
+ }\r
+ set {\r
+ if ((this._v_TcOut != value)) {\r
+ this._v_TcOut = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Duration", DbType = "Varchar(40)")]\r
+ public string v_Duration {\r
+ get {\r
+ return this._v_Duration;\r
+ }\r
+ set {\r
+ if ((this._v_Duration != value)) {\r
+ this._v_Duration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_OkForAir", DbType = "Bit")]\r
+ public System.Nullable<bool> t_OkForAir {\r
+ get {\r
+ return this._t_OkForAir;\r
+ }\r
+ set {\r
+ if ((this._t_OkForAir != value)) {\r
+ this._t_OkForAir = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_OkForAirs", DbType = "Bit")]\r
+ public System.Nullable<bool> v_OkForAirs {\r
+ get {\r
+ return this._v_OkForAirs;\r
+ }\r
+ set {\r
+ if ((this._v_OkForAirs != value)) {\r
+ this._v_OkForAirs = value;\r
+ }\r
+ }\r
+ }\r
+ }\r
+}\r
--- /dev/null
+namespace TrafficClient {\r
+ public partial class clIFsp_EC_MAMPromotionalResult {\r
+\r
+ private int _t_SpotID;\r
+\r
+ private string _t_MediaID;\r
+\r
+ private string _v_Title;\r
+\r
+ private string _v_PromoType;\r
+\r
+ private string _v_ProgTitle;\r
+\r
+ private System.Nullable<short> _v_Episode;\r
+\r
+ private System.Nullable<System.DateTime> _t_PSStart;\r
+\r
+ private System.Nullable<System.DateTime> _t_PSEnd;\r
+\r
+ private System.Nullable<int> _v_EstimatedDuration;\r
+\r
+ private System.Nullable<int> _t_TcIn;\r
+\r
+ private System.Nullable<int> _t_TcOut;\r
+\r
+ private System.Nullable<int> _t_Duration;\r
+\r
+ private string _v_TcIn;\r
+\r
+ private string _v_TcOut;\r
+\r
+ private string _v_Duration;\r
+\r
+ private string _v_Stations;\r
+\r
+ private System.Nullable<bool> _t_OkForAir;\r
+\r
+ private System.Nullable<bool> _v_OkForAirs;\r
+\r
+ private System.Nullable<bool> _v_IsInactive;\r
+\r
+ public clIFsp_EC_MAMPromotionalResult() {\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_SpotID", DbType = "Int NOT NULL")]\r
+ public int t_SpotID {\r
+ get {\r
+ return this._t_SpotID;\r
+ }\r
+ set {\r
+ if ((this._t_SpotID != value)) {\r
+ this._t_SpotID = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_MediaID", DbType = "VarChar(8) NOT NULL")]\r
+ public string t_MediaID {\r
+ get {\r
+ return this._t_MediaID;\r
+ }\r
+ set {\r
+ if ((this._t_MediaID != value)) {\r
+ this._t_MediaID = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Title", DbType = "NVarChar(60)", CanBeNull = false)]\r
+ public string v_Title {\r
+ get {\r
+ return this._v_Title;\r
+ }\r
+ set {\r
+ if ((this._v_Title != value)) {\r
+ this._v_Title = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_PromoType", DbType = "NvarChar(60)")]\r
+ public string v_PromoType {\r
+ get {\r
+ return this._v_PromoType;\r
+ }\r
+ set {\r
+ if ((this._v_PromoType != value)) {\r
+ this._v_PromoType = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_ProgTitle", DbType = "NVarChar(60)")]\r
+ public string v_ProgTitle {\r
+ get {\r
+ return this._v_ProgTitle;\r
+ }\r
+ set {\r
+ if ((this._v_ProgTitle != value)) {\r
+ this._v_ProgTitle = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Episode", DbType = "SmallInt")]\r
+ public System.Nullable<short> v_Episode {\r
+ get {\r
+ return this._v_Episode;\r
+ }\r
+ set {\r
+ if ((this._v_Episode != value)) {\r
+ this._v_Episode = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_PSStart", DbType = "DateTime")]\r
+ public System.Nullable<System.DateTime> t_PSStart {\r
+ get {\r
+ return this._t_PSStart;\r
+ }\r
+ set {\r
+ if ((this._t_PSStart != value)) {\r
+ this._t_PSStart = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_PSEnd", DbType = "DateTime")]\r
+ public System.Nullable<System.DateTime> t_PSEnd {\r
+ get {\r
+ return this._t_PSEnd;\r
+ }\r
+ set {\r
+ if ((this._t_PSEnd != value)) {\r
+ this._t_PSEnd = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_EstimatedDuration", DbType = "Int")]\r
+ public System.Nullable<int> v_EstimatedDuration {\r
+ get {\r
+ return this._v_EstimatedDuration;\r
+ }\r
+ set {\r
+ if ((this._v_EstimatedDuration != value)) {\r
+ this._v_EstimatedDuration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_TcIn", DbType = "Int")]\r
+ public System.Nullable<int> t_TcIn {\r
+ get {\r
+ return this._t_TcIn;\r
+ }\r
+ set {\r
+ if ((this._t_TcIn != value)) {\r
+ this._t_TcIn = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_TcOut", DbType = "Int")]\r
+ public System.Nullable<int> t_TcOut {\r
+ get {\r
+ return this._t_TcOut;\r
+ }\r
+ set {\r
+ if ((this._t_TcOut != value)) {\r
+ this._t_TcOut = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_Duration", DbType = "Int")]\r
+ public System.Nullable<int> t_Duration {\r
+ get {\r
+ return this._t_Duration;\r
+ }\r
+ set {\r
+ if ((this._t_Duration != value)) {\r
+ this._t_Duration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_TcIn", DbType = "Varchar(40)")]\r
+ public string v_TcIn {\r
+ get {\r
+ return this._v_TcIn;\r
+ }\r
+ set {\r
+ if ((this._v_TcIn != value)) {\r
+ this._v_TcIn = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_TcOut", DbType = "Varchar(40)")]\r
+ public string v_TcOut {\r
+ get {\r
+ return this._v_TcOut;\r
+ }\r
+ set {\r
+ if ((this._v_TcOut != value)) {\r
+ this._v_TcOut = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Duration", DbType = "Varchar(40)")]\r
+ public string v_Duration {\r
+ get {\r
+ return this._v_Duration;\r
+ }\r
+ set {\r
+ if ((this._v_Duration != value)) {\r
+ this._v_Duration = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_Stations", DbType = "VarChar(100)")]\r
+ public string v_Stations {\r
+ get {\r
+ return this._v_Stations;\r
+ }\r
+ set {\r
+ if ((this._v_Stations != value)) {\r
+ this._v_Stations = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_t_OkForAir", DbType = "Bit")]\r
+ public System.Nullable<bool> t_OkForAir {\r
+ get {\r
+ return this._t_OkForAir;\r
+ }\r
+ set {\r
+ if ((this._t_OkForAir != value)) {\r
+ this._t_OkForAir = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_OkForAirs", DbType = "Bit")]\r
+ public System.Nullable<bool> v_OkForAirs {\r
+ get {\r
+ return this._v_OkForAirs;\r
+ }\r
+ set {\r
+ if ((this._v_OkForAirs != value)) {\r
+ this._v_OkForAirs = value;\r
+ }\r
+ }\r
+ }\r
+\r
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_v_IsInactive", DbType = "Bit")]\r
+ public System.Nullable<bool> v_IsInactive {\r
+ get {\r
+ return this._v_IsInactive;\r
+ }\r
+ set {\r
+ if ((this._v_IsInactive != value)) {\r
+ this._v_IsInactive = value;\r
+ }\r
+ }\r
+ }\r
+ }\r
+}\r