hubs removed
This commit is contained in:
+23
-37
@@ -20,16 +20,17 @@
|
||||
public CordonelRequirements FindByPcbId(string pcbid)
|
||||
=> this.sqlConnection
|
||||
.CreateCommand($@"
|
||||
SELECT cr.SpecialId
|
||||
SELECT DISTINCT
|
||||
cr.SpecialId
|
||||
, cr.SpecialVersion
|
||||
, cr.StandardId
|
||||
, cr.StandardVersion
|
||||
, cr.Region
|
||||
, cr.Size
|
||||
, cr.PoNr
|
||||
, aap.FertigungsauftragNr
|
||||
, aap.FertigungsauftragNr
|
||||
, cr.PcbId
|
||||
, map.MapPcbIdToSerialNumber_PcbId
|
||||
, map.MapPcbIdToSerialNumber_PcbId
|
||||
, cr.SkipCalibration
|
||||
, cr.SkipRadioCheck
|
||||
, cr.FwVersion
|
||||
@@ -38,10 +39,10 @@
|
||||
, cr.RLTYS
|
||||
, cr.MDBLPA
|
||||
, cr.MDBLPS
|
||||
, CASE WHEN aap.Menge < 6
|
||||
THEN MSM
|
||||
ELSE MSMBO
|
||||
END AS MaxStorageMonths
|
||||
, CASE WHEN aap.Menge < 6
|
||||
THEN MSM
|
||||
ELSE MSMBO
|
||||
END AS MaxStorageMonths
|
||||
, cr.QuiescentCurrent_uA
|
||||
, cr.EPBLP
|
||||
, cr.Timestamp
|
||||
@@ -53,40 +54,33 @@
|
||||
, cr.IsStdApproved
|
||||
, cr.RegionSizeKey
|
||||
FROM Cordonel_Requirements AS cr
|
||||
JOIN AlleIdentNrVakoMerkmale AS idn
|
||||
ON cr.IdentNr = idn.IdentNr
|
||||
AND idn.Stelle = 4
|
||||
AND idn.Laenge = 2
|
||||
JOIN AlleAuftragPositionen AS aap
|
||||
ON idn.IdentNr = aap.IdentNr
|
||||
ON cr.IdentNr = aap.IdentNr
|
||||
AND (cr.PoNr = aap.FertigungsauftragNr OR cr.PoNr IS NULL)
|
||||
JOIN AuftragPositionSerienNr AS aps
|
||||
ON aap.AuftragNr = aps.AuftragNr
|
||||
ON aap.AuftragNr = aps.AuftragNr
|
||||
AND aap.PositionNr = aps.PositionNr
|
||||
JOIN MapPcbIdToSerialNumber AS map
|
||||
ON aps.SerienNr = map.MapPcbIdToSerialNumber_SerialNumber
|
||||
AND (cr.PcbId = map.MapPcbIdToSerialNumber_PcbId OR cr.PcbId IS NULL)
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = @{nameof(pcbid)}
|
||||
ORDER BY SpecialId DESC
|
||||
, SpecialVersion DESC
|
||||
, StandardId DESC
|
||||
, StandardVersion DESC")
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = '212120036'")
|
||||
.SetParameter(nameof(pcbid), pcbid)
|
||||
.FirstOrDefault(this.ParseCordonelRequirements);
|
||||
|
||||
public CordonelRequirements FindByPoNo(string pono)
|
||||
=> this.sqlConnection
|
||||
.CreateCommand($@"
|
||||
SELECT cr.SpecialId
|
||||
SELECT DISTINCT
|
||||
cr.SpecialId
|
||||
, cr.SpecialVersion
|
||||
, cr.StandardId
|
||||
, cr.StandardVersion
|
||||
, cr.Region
|
||||
, cr.Size
|
||||
, cr.PoNr
|
||||
, aap.FertigungsauftragNr
|
||||
, NULL
|
||||
, NULL
|
||||
, aap.FertigungsauftragNr
|
||||
, cr.PcbId
|
||||
, map.MapPcbIdToSerialNumber_PcbId
|
||||
, cr.SkipCalibration
|
||||
, cr.SkipRadioCheck
|
||||
, cr.FwVersion
|
||||
@@ -95,10 +89,10 @@
|
||||
, cr.RLTYS
|
||||
, cr.MDBLPA
|
||||
, cr.MDBLPS
|
||||
, CASE WHEN aap.Menge < 6
|
||||
THEN MSM
|
||||
ELSE MSMBO
|
||||
END AS MaxStorageMonths
|
||||
, CASE WHEN aap.Menge < 6
|
||||
THEN MSM
|
||||
ELSE MSMBO
|
||||
END AS MaxStorageMonths
|
||||
, cr.QuiescentCurrent_uA
|
||||
, cr.EPBLP
|
||||
, cr.Timestamp
|
||||
@@ -110,24 +104,16 @@
|
||||
, cr.IsStdApproved
|
||||
, cr.RegionSizeKey
|
||||
FROM Cordonel_Requirements AS cr
|
||||
JOIN AlleIdentNrVakoMerkmale AS idn
|
||||
ON cr.IdentNr = idn.IdentNr
|
||||
AND idn.Stelle = 4
|
||||
AND idn.Laenge = 2
|
||||
JOIN AlleAuftragPositionen AS aap
|
||||
ON idn.IdentNr = aap.IdentNr
|
||||
ON cr.IdentNr = aap.IdentNr
|
||||
AND (cr.PoNr = aap.FertigungsauftragNr OR cr.PoNr IS NULL)
|
||||
JOIN AuftragPositionSerienNr AS aps
|
||||
ON aap.AuftragNr = aps.AuftragNr
|
||||
ON aap.AuftragNr = aps.AuftragNr
|
||||
AND aap.PositionNr = aps.PositionNr
|
||||
JOIN MapPcbIdToSerialNumber AS map
|
||||
ON aps.SerienNr = map.MapPcbIdToSerialNumber_SerialNumber
|
||||
AND (cr.PcbId = map.MapPcbIdToSerialNumber_PcbId OR cr.PcbId IS NULL)
|
||||
WHERE aap.FertigungsauftragNr = @{nameof(pono)}
|
||||
ORDER BY SpecialId DESC
|
||||
, SpecialVersion DESC
|
||||
, StandardId DESC
|
||||
, StandardVersion DESC")
|
||||
WHERE aap.FertigungsauftragNr = @{nameof(pono)}")
|
||||
.SetParameter(nameof(pono), pono)
|
||||
.FirstOrDefault(this.ParseCordonelRequirements);
|
||||
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
namespace LaaProductionWeb.Hubs
|
||||
{
|
||||
//using InspectionUI.RemoteControl.Interfaces;
|
||||
//using InspectionUI.RemoteControl.Messages;
|
||||
|
||||
using Microsoft.AspNet.SignalR;
|
||||
|
||||
//using System;
|
||||
//using System.Threading.Tasks;
|
||||
|
||||
public class RemoteControl : Hub//, IRemoteConnectionEvents
|
||||
{
|
||||
//protected string ConnectionId
|
||||
// => this.Context.ConnectionId;
|
||||
|
||||
//protected string GroupName
|
||||
// => this.Context
|
||||
// .QueryString
|
||||
// .Get(nameof(GroupName));
|
||||
|
||||
//public void Disposed()
|
||||
//{
|
||||
// var groupName = this.GroupName;
|
||||
|
||||
// this.Clients
|
||||
// .OthersInGroup(groupName)
|
||||
// .Disposed();
|
||||
|
||||
// this.Groups
|
||||
// .Remove(this.ConnectionId, groupName);
|
||||
//}
|
||||
|
||||
//public override async Task OnConnected()
|
||||
// => await this.Groups.Add(this.ConnectionId, this.GroupName);
|
||||
|
||||
//public override async Task OnDisconnected(bool stopCalled)
|
||||
// => await this.Groups.Remove(this.ConnectionId, this.GroupName);
|
||||
|
||||
//public override async Task OnReconnected()
|
||||
// => await this.Groups.Add(this.ConnectionId, this.GroupName);
|
||||
|
||||
//public void StartFlow(FlowMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .StartFlow(message);
|
||||
|
||||
//public void GetFlow(FlowMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .GetFlow(message);
|
||||
|
||||
//public void StopFlow(FlowMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .StopFlow(message);
|
||||
|
||||
//public void StartRM(ReferenceMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .StartRM(message);
|
||||
|
||||
//public void GetRM(ReferenceMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .GetRM(message);
|
||||
|
||||
//public void StopRM(ReferenceMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .StopRM(message);
|
||||
|
||||
//public void GetInfo(InfoMessage message)
|
||||
// => this.Clients
|
||||
// .OthersInGroup(this.GroupName)
|
||||
// .GetInfo(message);
|
||||
}
|
||||
}
|
||||
@@ -242,7 +242,6 @@
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Hubs\RemoteControl.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="App_Start\StartupConfig.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user