I want to calculate the sum of certain operation values in the JobEntry screen.
I can simply do this by looping through all the JobOper EpiDataViews rows under normal circumstances.
My issue is if the job has multiple sub assemblies. How can I run through all operations in all subassemblies and the regular assembly?
Here is the sample of the code for just the normal operations currently in JobEntry.
Dim JobOperVar As EpiDataView
Dim NumberOfOps as Integer
Dim EstSetupHoursTtl as Decimal = 0
JobOperVar = CType(oTrans.EpiDataViews("JobOper"), EpiDataView)
NumberOfOps = JobOperVar.dataView.count
For I as integer = 0 to NumberOfOps - 1
EstSetupHoursTtl = EstSetupHoursTtl + JobOperVar.dataView(I)("EstSetHours")
Next
How do I loop through each job sub assembly?
I can simply do this by looping through all the JobOper EpiDataViews rows under normal circumstances.
My issue is if the job has multiple sub assemblies. How can I run through all operations in all subassemblies and the regular assembly?
Here is the sample of the code for just the normal operations currently in JobEntry.
Dim JobOperVar As EpiDataView
Dim NumberOfOps as Integer
Dim EstSetupHoursTtl as Decimal = 0
JobOperVar = CType(oTrans.EpiDataViews("JobOper"), EpiDataView)
NumberOfOps = JobOperVar.dataView.count
For I as integer = 0 to NumberOfOps - 1
EstSetupHoursTtl = EstSetupHoursTtl + JobOperVar.dataView(I)("EstSetHours")
Next
How do I loop through each job sub assembly?