modificacion a la orden de servicio

This commit is contained in:
Antonio Gonzalez
2019-10-25 15:56:58 -05:00
parent 3d3499b3f5
commit 9d270f5b95
2 changed files with 372 additions and 64 deletions

View File

@@ -2991,34 +2991,41 @@ Partial Class PopUpVerFactura
params.Add(New ReportParameter("LogoPath", ""))
End If
If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
TmpDTOS = ObjOS.DtResultados
End If
'If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
' TmpDTOS = ObjOS.DtResultados
'End If
If ObjOS.GetDetalleMateriales(-1, CveOS) Then
TmpDTMaterialesOS = ObjOS.DtResultados
End If
'If ObjOS.GetDetalleMateriales(-1, CveOS) Then
' TmpDTMaterialesOS = ObjOS.DtResultados
'End If
Dim lrds As New List(Of ReportDataSource)
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
'Dim lrds As New List(Of ReportDataSource)
'Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
'Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
lrds.Add(rds)
lrds.Add(rds2)
ObjOS.Dispose()
'lrds.Add(rds)
'lrds.Add(rds2)
'ObjOS.Dispose()
ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
Else
Dim lrds As New List(Of ReportDataSource)
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
lrds.Add(rds)
lrds.Add(rds2)
ObjOS.Dispose()
ImprimirPDF(String.Format("Empresas/{0}/Formatos/OrdenServicio.rdlc", UsuarioActual.CveEmpresa), lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
'ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
End If
If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
TmpDTOS = ObjOS.DtResultados
End If
If ObjOS.GetDetalleMateriales(-1, CveOS) Then
TmpDTMaterialesOS = ObjOS.DtResultados
End If
Dim lrds As New List(Of ReportDataSource)
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
lrds.Add(rds)
lrds.Add(rds2)
ObjOS.Dispose()
ImprimirPDF(String.Format("Empresas/{0}/Formatos/OrdenServicio.rdlc", UsuarioActual.CveEmpresa), lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
End Sub
Private Sub CreaDT()
TmpDTOS = New DataTable

View File

@@ -23,7 +23,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>3.63358cm</Top>
<Left>0.07cm</Left>
<Left>0.11767cm</Left>
<Height>0.47364cm</Height>
<Width>18.64497cm</Width>
<Style>
@@ -78,7 +78,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>0.5338cm</Top>
<Left>8.84441cm</Left>
<Left>8.89208cm</Left>
<Height>0.47364cm</Height>
<Width>4.43083cm</Width>
<ZIndex>1</ZIndex>
@@ -134,7 +134,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>6.93966cm</Top>
<Left>0.07344cm</Left>
<Left>0.12111cm</Left>
<Height>0.48cm</Height>
<Width>18.65153cm</Width>
<ZIndex>2</ZIndex>
@@ -190,7 +190,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>2.08369cm</Top>
<Left>8.84441cm</Left>
<Left>8.89208cm</Left>
<Height>0.47364cm</Height>
<Width>4.43083cm</Width>
<ZIndex>3</ZIndex>
@@ -246,7 +246,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>0.5338cm</Top>
<Left>13.45163cm</Left>
<Left>13.4993cm</Left>
<Height>0.47364cm</Height>
<Width>5.24334cm</Width>
<ZIndex>4</ZIndex>
@@ -302,7 +302,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>1.00743cm</Top>
<Left>13.45163cm</Left>
<Left>13.4993cm</Left>
<Height>0.97042cm</Height>
<Width>5.26334cm</Width>
<ZIndex>5</ZIndex>
@@ -358,7 +358,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>2.62788cm</Top>
<Left>13.45163cm</Left>
<Left>13.4993cm</Left>
<Height>0.89986cm</Height>
<Width>5.26334cm</Width>
<ZIndex>6</ZIndex>
@@ -414,7 +414,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>2.15424cm</Top>
<Left>13.45163cm</Left>
<Left>13.4993cm</Left>
<Height>0.47364cm</Height>
<Width>5.25334cm</Width>
<ZIndex>7</ZIndex>
@@ -454,7 +454,7 @@
<Value>Logo1</Value>
<Sizing>FitProportional</Sizing>
<Top>0.1546in</Top>
<Left>0.07918in</Left>
<Left>0.09795in</Left>
<Height>1.2065in</Height>
<Width>1.21875in</Width>
<ZIndex>8</ZIndex>
@@ -503,7 +503,7 @@
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>1.00743cm</Top>
<Left>3.29673cm</Left>
<Left>3.3444cm</Left>
<Height>2.52032cm</Height>
<Width>5.37129cm</Width>
<ZIndex>9</ZIndex>
@@ -560,8 +560,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>9.69619cm</Top>
<Left>0.07cm</Left>
<Top>11.33661cm</Top>
<Height>0.44775cm</Height>
<Width>18.65497cm</Width>
<ZIndex>10</ZIndex>
@@ -616,8 +615,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>13.43126cm</Top>
<Left>0.07cm</Left>
<Top>15.07168cm</Top>
<Height>0.99688cm</Height>
<Width>18.64497cm</Width>
<ZIndex>11</ZIndex>
@@ -672,8 +670,7 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>12.95762cm</Top>
<Left>0.07cm</Left>
<Top>14.59804cm</Top>
<Height>0.47364cm</Height>
<Width>18.64497cm</Width>
<ZIndex>12</ZIndex>
@@ -744,8 +741,8 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>15.56836cm</Top>
<Left>0.20112cm</Left>
<Top>17.20878cm</Top>
<Left>0.39722cm</Left>
<Height>0.89754cm</Height>
<Width>6.17587cm</Width>
<ZIndex>13</ZIndex>
@@ -816,8 +813,8 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>15.56836cm</Top>
<Left>6.67991cm</Left>
<Top>17.20878cm</Top>
<Left>6.87601cm</Left>
<Height>0.89754cm</Height>
<Width>6.17587cm</Width>
<ZIndex>14</ZIndex>
@@ -873,8 +870,8 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>15.56836cm</Top>
<Left>13.29827cm</Left>
<Top>17.20878cm</Top>
<Left>13.22827cm</Left>
<Height>0.89754cm</Height>
<Width>5.28334cm</Width>
<ZIndex>15</ZIndex>
@@ -929,8 +926,8 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>16.4659cm</Top>
<Left>0.20112cm</Left>
<Top>18.10632cm</Top>
<Left>0.13112cm</Left>
<Height>0.47421cm</Height>
<Width>18.64497cm</Width>
<ZIndex>16</ZIndex>
@@ -999,8 +996,8 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox165</rd:DefaultName>
<Top>16.94011cm</Top>
<Left>0.20112cm</Left>
<Top>18.58053cm</Top>
<Left>0.13112cm</Left>
<Height>7.1417cm</Height>
<Width>17.72549cm</Width>
<ZIndex>17</ZIndex>
@@ -1052,8 +1049,8 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</Paragraph>
</Paragraphs>
<rd:DefaultName>Copia</rd:DefaultName>
<Top>24.08181cm</Top>
<Left>0.20112cm</Left>
<Top>25.72223cm</Top>
<Left>0.13112cm</Left>
<Height>0.6cm</Height>
<Width>18.38049cm</Width>
<ZIndex>18</ZIndex>
@@ -1466,8 +1463,8 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName>
<Top>4.10722cm</Top>
<Left>0.07cm</Left>
<Height>2.26772cm</Height>
<Left>0.11767cm</Left>
<Height>2.26771cm</Height>
<Width>18.62496cm</Width>
<ZIndex>19</ZIndex>
<Style>
@@ -1525,7 +1522,7 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</Paragraphs>
<rd:DefaultName>Textbox21</rd:DefaultName>
<Top>6.37494cm</Top>
<Left>0.07cm</Left>
<Left>0.11767cm</Left>
<Height>0.49417cm</Height>
<Width>18.64497cm</Width>
<ZIndex>20</ZIndex>
@@ -1712,7 +1709,7 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName>
<Top>1.00743cm</Top>
<Left>8.84441cm</Left>
<Left>8.89208cm</Left>
<Height>0.97042cm</Height>
<Width>4.43082cm</Width>
<ZIndex>21</ZIndex>
@@ -1895,7 +1892,7 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName>
<Top>2.55733cm</Top>
<Left>8.84441cm</Left>
<Left>8.89208cm</Left>
<Height>0.97042cm</Height>
<Width>4.43082cm</Width>
<ZIndex>22</ZIndex>
@@ -2106,9 +2103,9 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName>
<Top>7.41966cm</Top>
<Left>0.07344cm</Left>
<Height>1.09417cm</Height>
<Width>18.65497cm</Width>
<Left>0.12111cm</Left>
<Height>1.09416cm</Height>
<Width>18.65498cm</Width>
<ZIndex>23</ZIndex>
<Style>
<Border>
@@ -2214,7 +2211,7 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</TablixMembers>
</TablixRowHierarchy>
<Top>8.58438cm</Top>
<Left>0.07344cm</Left>
<Left>0.12111cm</Left>
<Height>1.04125cm</Height>
<Width>9.30904cm</Width>
<ZIndex>24</ZIndex>
@@ -2318,8 +2315,8 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox32</rd:DefaultName>
<Top>10.32033cm</Top>
<Left>0.20112cm</Left>
<Top>11.78436cm</Top>
<Left>0.13112cm</Left>
<Height>2.63729cm</Height>
<Width>3.53804cm</Width>
<ZIndex>25</ZIndex>
@@ -2331,11 +2328,315 @@ Compuproveeores no se hace responsable por el resguardo de su equipo.</Value>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<Tablix Name="Tablix4">
<TablixBody>
<TablixColumns>
<TablixColumn>
<Width>1.64066cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.82591cm</Width>
</TablixColumn>
<TablixColumn>
<Width>8.24827cm</Width>
</TablixColumn>
<TablixColumn>
<Width>6.93013cm</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
<TablixRow>
<Height>0.6cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
<Textbox Name="Textbox14">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Cantidad</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox14</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<BackgroundColor>Silver</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Textbox18">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>UM</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox18</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<BackgroundColor>Silver</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Textbox25">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Descripcion</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox25</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<BackgroundColor>Silver</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Textbox27">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Observaciones</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox27</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<BackgroundColor>Silver</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
</TablixCells>
</TablixRow>
<TablixRow>
<Height>0.6cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
<Textbox Name="Cantidad">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!Cantidad.Value</Value>
<Style>
<FontSize>7pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Cantidad</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="UM">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!UM.Value</Value>
<Style>
<FontSize>7pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>UM</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="PS">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!PS.Value</Value>
<Style>
<FontSize>7pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>PS</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Observaciones">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!Observaciones.Value</Value>
<Style>
<FontSize>7pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Observaciones</rd:DefaultName>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
</TablixCells>
</TablixRow>
</TablixRows>
</TablixBody>
<TablixColumnHierarchy>
<TablixMembers>
<TablixMember />
<TablixMember />
<TablixMember />
<TablixMember />
</TablixMembers>
</TablixColumnHierarchy>
<TablixRowHierarchy>
<TablixMembers>
<TablixMember>
<KeepWithGroup>After</KeepWithGroup>
</TablixMember>
<TablixMember>
<Group Name="Details1" />
</TablixMember>
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>DataSet1</DataSetName>
<Top>9.80202cm</Top>
<Left>0.13112cm</Left>
<Height>1.2cm</Height>
<Width>18.64497cm</Width>
<ZIndex>26</ZIndex>
<Style>
<Border>
<Style>Solid</Style>
</Border>
<FontSize>7pt</FontSize>
</Style>
</Tablix>
</ReportItems>
<Height>9.8435in</Height>
<Height>10.79142in</Height>
<Style />
</Body>
<Width>7.48268in</Width>
<Width>7.54841in</Width>
<Page>
<PageHeight>27.94cm</PageHeight>
<PageWidth>21.59cm</PageWidth>