-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contexto.vb
5920 lines (5204 loc) · 160 KB
/
Contexto.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'------------------------------------------------------------------------------
' <auto-generated>
' Este código fue generado por una herramienta.
' Versión del motor en tiempo de ejecución:2.0.50727.5420
'
' Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
' se vuelve a generar el código.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.Linq
Imports System.Data.Linq.Mapping
Imports System.Linq
Imports System.Linq.Expressions
Imports System.Reflection
Namespace Database
<System.Data.Linq.Mapping.DatabaseAttribute(Name:="EfectiOro")> _
Partial Public Class Contexto
Inherits System.Data.Linq.DataContext
Private Shared mappingSource As System.Data.Linq.Mapping.MappingSource = New AttributeMappingSource
#Region "Extensibility Method Definitions"
Partial Private Sub OnCreated()
End Sub
Partial Private Sub InsertAdelantos(instance As Adelantos)
End Sub
Partial Private Sub UpdateAdelantos(instance As Adelantos)
End Sub
Partial Private Sub DeleteAdelantos(instance As Adelantos)
End Sub
Partial Private Sub InsertAgencia(instance As Agencia)
End Sub
Partial Private Sub UpdateAgencia(instance As Agencia)
End Sub
Partial Private Sub DeleteAgencia(instance As Agencia)
End Sub
Partial Private Sub InsertCaja(instance As Caja)
End Sub
Partial Private Sub UpdateCaja(instance As Caja)
End Sub
Partial Private Sub DeleteCaja(instance As Caja)
End Sub
Partial Private Sub InsertCliente(instance As Cliente)
End Sub
Partial Private Sub UpdateCliente(instance As Cliente)
End Sub
Partial Private Sub DeleteCliente(instance As Cliente)
End Sub
Partial Private Sub InsertCompras(instance As Compras)
End Sub
Partial Private Sub UpdateCompras(instance As Compras)
End Sub
Partial Private Sub DeleteCompras(instance As Compras)
End Sub
Partial Private Sub InsertDescargues(instance As Descargues)
End Sub
Partial Private Sub UpdateDescargues(instance As Descargues)
End Sub
Partial Private Sub DeleteDescargues(instance As Descargues)
End Sub
Partial Private Sub InsertDet_compra(instance As Det_compra)
End Sub
Partial Private Sub UpdateDet_compra(instance As Det_compra)
End Sub
Partial Private Sub DeleteDet_compra(instance As Det_compra)
End Sub
Partial Private Sub InsertDetacaja(instance As Detacaja)
End Sub
Partial Private Sub UpdateDetacaja(instance As Detacaja)
End Sub
Partial Private Sub DeleteDetacaja(instance As Detacaja)
End Sub
Partial Private Sub InsertEstado(instance As Estado)
End Sub
Partial Private Sub UpdateEstado(instance As Estado)
End Sub
Partial Private Sub DeleteEstado(instance As Estado)
End Sub
Partial Private Sub InsertForma_pago(instance As Forma_pago)
End Sub
Partial Private Sub UpdateForma_pago(instance As Forma_pago)
End Sub
Partial Private Sub DeleteForma_pago(instance As Forma_pago)
End Sub
Partial Private Sub InsertIds(instance As Ids)
End Sub
Partial Private Sub UpdateIds(instance As Ids)
End Sub
Partial Private Sub DeleteIds(instance As Ids)
End Sub
Partial Private Sub InsertMcaja(instance As Mcaja)
End Sub
Partial Private Sub UpdateMcaja(instance As Mcaja)
End Sub
Partial Private Sub DeleteMcaja(instance As Mcaja)
End Sub
Partial Private Sub InsertMovcaja(instance As Movcaja)
End Sub
Partial Private Sub UpdateMovcaja(instance As Movcaja)
End Sub
Partial Private Sub DeleteMovcaja(instance As Movcaja)
End Sub
Partial Private Sub InsertPica(instance As Pica)
End Sub
Partial Private Sub UpdatePica(instance As Pica)
End Sub
Partial Private Sub DeletePica(instance As Pica)
End Sub
Partial Private Sub InsertPrecioKilate(instance As PrecioKilate)
End Sub
Partial Private Sub UpdatePrecioKilate(instance As PrecioKilate)
End Sub
Partial Private Sub DeletePrecioKilate(instance As PrecioKilate)
End Sub
Partial Private Sub InsertPrecios(instance As Precios)
End Sub
Partial Private Sub UpdatePrecios(instance As Precios)
End Sub
Partial Private Sub DeletePrecios(instance As Precios)
End Sub
Partial Private Sub InsertRubro(instance As Rubro)
End Sub
Partial Private Sub UpdateRubro(instance As Rubro)
End Sub
Partial Private Sub DeleteRubro(instance As Rubro)
End Sub
Partial Private Sub InsertTipoCambio(instance As TipoCambio)
End Sub
Partial Private Sub UpdateTipoCambio(instance As TipoCambio)
End Sub
Partial Private Sub DeleteTipoCambio(instance As TipoCambio)
End Sub
Partial Private Sub InsertTipoPreciosPagados(instance As TipoPreciosPagados)
End Sub
Partial Private Sub UpdateTipoPreciosPagados(instance As TipoPreciosPagados)
End Sub
Partial Private Sub DeleteTipoPreciosPagados(instance As TipoPreciosPagados)
End Sub
Partial Private Sub InsertUsuario(instance As Usuario)
End Sub
Partial Private Sub UpdateUsuario(instance As Usuario)
End Sub
Partial Private Sub DeleteUsuario(instance As Usuario)
End Sub
#End Region
Public Sub New(ByVal connection As String)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As System.Data.IDbConnection)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As String, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As System.Data.IDbConnection, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public ReadOnly Property Adelantos() As System.Data.Linq.Table(Of Adelantos)
Get
Return Me.GetTable(Of Adelantos)
End Get
End Property
Public ReadOnly Property Agencia() As System.Data.Linq.Table(Of Agencia)
Get
Return Me.GetTable(Of Agencia)
End Get
End Property
Public ReadOnly Property Caja() As System.Data.Linq.Table(Of Caja)
Get
Return Me.GetTable(Of Caja)
End Get
End Property
Public ReadOnly Property Cliente() As System.Data.Linq.Table(Of Cliente)
Get
Return Me.GetTable(Of Cliente)
End Get
End Property
Public ReadOnly Property ClientePica() As System.Data.Linq.Table(Of ClientePica)
Get
Return Me.GetTable(Of ClientePica)
End Get
End Property
Public ReadOnly Property Compras() As System.Data.Linq.Table(Of Compras)
Get
Return Me.GetTable(Of Compras)
End Get
End Property
Public ReadOnly Property DescargueByCompra() As System.Data.Linq.Table(Of DescargueByCompra)
Get
Return Me.GetTable(Of DescargueByCompra)
End Get
End Property
Public ReadOnly Property Descargues() As System.Data.Linq.Table(Of Descargues)
Get
Return Me.GetTable(Of Descargues)
End Get
End Property
Public ReadOnly Property Det_compra() As System.Data.Linq.Table(Of Det_compra)
Get
Return Me.GetTable(Of Det_compra)
End Get
End Property
Public ReadOnly Property Detacaja() As System.Data.Linq.Table(Of Detacaja)
Get
Return Me.GetTable(Of Detacaja)
End Get
End Property
Public ReadOnly Property Estado() As System.Data.Linq.Table(Of Estado)
Get
Return Me.GetTable(Of Estado)
End Get
End Property
Public ReadOnly Property Forma_pago() As System.Data.Linq.Table(Of Forma_pago)
Get
Return Me.GetTable(Of Forma_pago)
End Get
End Property
Public ReadOnly Property Ids() As System.Data.Linq.Table(Of Ids)
Get
Return Me.GetTable(Of Ids)
End Get
End Property
Public ReadOnly Property Mcaja() As System.Data.Linq.Table(Of Mcaja)
Get
Return Me.GetTable(Of Mcaja)
End Get
End Property
Public ReadOnly Property Movcaja() As System.Data.Linq.Table(Of Movcaja)
Get
Return Me.GetTable(Of Movcaja)
End Get
End Property
Public ReadOnly Property MovimientosCajaSelect() As System.Data.Linq.Table(Of MovimientosCajaSelect)
Get
Return Me.GetTable(Of MovimientosCajaSelect)
End Get
End Property
Public ReadOnly Property Pagos_adelantados() As System.Data.Linq.Table(Of Pagos_adelantados)
Get
Return Me.GetTable(Of Pagos_adelantados)
End Get
End Property
Public ReadOnly Property Pica() As System.Data.Linq.Table(Of Pica)
Get
Return Me.GetTable(Of Pica)
End Get
End Property
Public ReadOnly Property PrecioKilate() As System.Data.Linq.Table(Of PrecioKilate)
Get
Return Me.GetTable(Of PrecioKilate)
End Get
End Property
Public ReadOnly Property Precios() As System.Data.Linq.Table(Of Precios)
Get
Return Me.GetTable(Of Precios)
End Get
End Property
Public ReadOnly Property ReporteCaja() As System.Data.Linq.Table(Of ReporteCaja)
Get
Return Me.GetTable(Of ReporteCaja)
End Get
End Property
Public ReadOnly Property RptMovimientosCaja() As System.Data.Linq.Table(Of RptMovimientosCaja)
Get
Return Me.GetTable(Of RptMovimientosCaja)
End Get
End Property
Public ReadOnly Property Rubro() As System.Data.Linq.Table(Of Rubro)
Get
Return Me.GetTable(Of Rubro)
End Get
End Property
Public ReadOnly Property Rubros_caja() As System.Data.Linq.Table(Of Rubros_caja)
Get
Return Me.GetTable(Of Rubros_caja)
End Get
End Property
Public ReadOnly Property TipoCambio() As System.Data.Linq.Table(Of TipoCambio)
Get
Return Me.GetTable(Of TipoCambio)
End Get
End Property
Public ReadOnly Property TipoPreciosPagados() As System.Data.Linq.Table(Of TipoPreciosPagados)
Get
Return Me.GetTable(Of TipoPreciosPagados)
End Get
End Property
Public ReadOnly Property TransaccionEfectivo() As System.Data.Linq.Table(Of TransaccionEfectivo)
Get
Return Me.GetTable(Of TransaccionEfectivo)
End Get
End Property
Public ReadOnly Property Usuario() As System.Data.Linq.Table(Of Usuario)
Get
Return Me.GetTable(Of Usuario)
End Get
End Property
Public ReadOnly Property Vdetacaja() As System.Data.Linq.Table(Of Vdetacaja)
Get
Return Me.GetTable(Of Vdetacaja)
End Get
End Property
Public ReadOnly Property VVariacionesCliente() As System.Data.Linq.Table(Of VVariacionesCliente)
Get
Return Me.GetTable(Of VVariacionesCliente)
End Get
End Property
End Class
<Table(Name:="dbo.adelantos")> _
Partial Public Class Adelantos
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _Idsalida As String
Private _Codcliente As String
Private _Numcompra As String
Private _Fecha As Date
Private _Monto As System.Nullable(Of Decimal)
Private _Saldo As Decimal
Private _Efectivo As System.Nullable(Of Decimal)
Private _Cheque As System.Nullable(Of Decimal)
Private _Transferencia As System.Nullable(Of Decimal)
Private _Codcaja As String
Private _Usuario As String
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnIdsalidaChanging(value As String)
End Sub
Partial Private Sub OnIdsalidaChanged()
End Sub
Partial Private Sub OnCodclienteChanging(value As String)
End Sub
Partial Private Sub OnCodclienteChanged()
End Sub
Partial Private Sub OnNumcompraChanging(value As String)
End Sub
Partial Private Sub OnNumcompraChanged()
End Sub
Partial Private Sub OnFechaChanging(value As Date)
End Sub
Partial Private Sub OnFechaChanged()
End Sub
Partial Private Sub OnMontoChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnMontoChanged()
End Sub
Partial Private Sub OnSaldoChanging(value As Decimal)
End Sub
Partial Private Sub OnSaldoChanged()
End Sub
Partial Private Sub OnEfectivoChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnEfectivoChanged()
End Sub
Partial Private Sub OnChequeChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnChequeChanged()
End Sub
Partial Private Sub OnTransferenciaChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnTransferenciaChanged()
End Sub
Partial Private Sub OnCodcajaChanging(value As String)
End Sub
Partial Private Sub OnCodcajaChanged()
End Sub
Partial Private Sub OnUsuarioChanging(value As String)
End Sub
Partial Private Sub OnUsuarioChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Column(Name:="idsalida", Storage:="_Idsalida", DbType:="VarChar(20) NOT NULL", CanBeNull:=false, IsPrimaryKey:=true)> _
Public Property Idsalida() As String
Get
Return Me._Idsalida
End Get
Set
If (String.Equals(Me._Idsalida, value) = false) Then
Me.OnIdsalidaChanging(value)
Me.SendPropertyChanging
Me._Idsalida = value
Me.SendPropertyChanged("Idsalida")
Me.OnIdsalidaChanged
End If
End Set
End Property
<Column(Name:="codcliente", Storage:="_Codcliente", DbType:="VarChar(20) NOT NULL", CanBeNull:=false)> _
Public Property Codcliente() As String
Get
Return Me._Codcliente
End Get
Set
If (String.Equals(Me._Codcliente, value) = false) Then
Me.OnCodclienteChanging(value)
Me.SendPropertyChanging
Me._Codcliente = value
Me.SendPropertyChanged("Codcliente")
Me.OnCodclienteChanged
End If
End Set
End Property
<Column(Name:="numcompra", Storage:="_Numcompra", DbType:="VarChar(MAX) NOT NULL", CanBeNull:=false, UpdateCheck:=UpdateCheck.Never)> _
Public Property Numcompra() As String
Get
Return Me._Numcompra
End Get
Set
If (String.Equals(Me._Numcompra, value) = false) Then
Me.OnNumcompraChanging(value)
Me.SendPropertyChanging
Me._Numcompra = value
Me.SendPropertyChanged("Numcompra")
Me.OnNumcompraChanged
End If
End Set
End Property
<Column(Name:="fecha", Storage:="_Fecha", DbType:="Date NOT NULL")> _
Public Property Fecha() As Date
Get
Return Me._Fecha
End Get
Set
If ((Me._Fecha = value) _
= false) Then
Me.OnFechaChanging(value)
Me.SendPropertyChanging
Me._Fecha = value
Me.SendPropertyChanged("Fecha")
Me.OnFechaChanged
End If
End Set
End Property
<Column(Name:="monto", Storage:="_Monto", DbType:="Decimal(18,2)")> _
Public Property Monto() As System.Nullable(Of Decimal)
Get
Return Me._Monto
End Get
Set
If (Me._Monto.Equals(value) = false) Then
Me.OnMontoChanging(value)
Me.SendPropertyChanging
Me._Monto = value
Me.SendPropertyChanged("Monto")
Me.OnMontoChanged
End If
End Set
End Property
<Column(Name:="saldo", Storage:="_Saldo", DbType:="Decimal(18,2) NOT NULL")> _
Public Property Saldo() As Decimal
Get
Return Me._Saldo
End Get
Set
If ((Me._Saldo = value) _
= false) Then
Me.OnSaldoChanging(value)
Me.SendPropertyChanging
Me._Saldo = value
Me.SendPropertyChanged("Saldo")
Me.OnSaldoChanged
End If
End Set
End Property
<Column(Name:="efectivo", Storage:="_Efectivo", DbType:="Decimal(18,2)")> _
Public Property Efectivo() As System.Nullable(Of Decimal)
Get
Return Me._Efectivo
End Get
Set
If (Me._Efectivo.Equals(value) = false) Then
Me.OnEfectivoChanging(value)
Me.SendPropertyChanging
Me._Efectivo = value
Me.SendPropertyChanged("Efectivo")
Me.OnEfectivoChanged
End If
End Set
End Property
<Column(Name:="cheque", Storage:="_Cheque", DbType:="Decimal(18,2)")> _
Public Property Cheque() As System.Nullable(Of Decimal)
Get
Return Me._Cheque
End Get
Set
If (Me._Cheque.Equals(value) = false) Then
Me.OnChequeChanging(value)
Me.SendPropertyChanging
Me._Cheque = value
Me.SendPropertyChanged("Cheque")
Me.OnChequeChanged
End If
End Set
End Property
<Column(Name:="transferencia", Storage:="_Transferencia", DbType:="Decimal(18,2)")> _
Public Property Transferencia() As System.Nullable(Of Decimal)
Get
Return Me._Transferencia
End Get
Set
If (Me._Transferencia.Equals(value) = false) Then
Me.OnTransferenciaChanging(value)
Me.SendPropertyChanging
Me._Transferencia = value
Me.SendPropertyChanged("Transferencia")
Me.OnTransferenciaChanged
End If
End Set
End Property
<Column(Name:="codcaja", Storage:="_Codcaja", DbType:="VarChar(10)")> _
Public Property Codcaja() As String
Get
Return Me._Codcaja
End Get
Set
If (String.Equals(Me._Codcaja, value) = false) Then
Me.OnCodcajaChanging(value)
Me.SendPropertyChanging
Me._Codcaja = value
Me.SendPropertyChanged("Codcaja")
Me.OnCodcajaChanged
End If
End Set
End Property
<Column(Name:="usuario", Storage:="_Usuario", DbType:="VarChar(50)")> _
Public Property Usuario() As String
Get
Return Me._Usuario
End Get
Set
If (String.Equals(Me._Usuario, value) = false) Then
Me.OnUsuarioChanging(value)
Me.SendPropertyChanging
Me._Usuario = value
Me.SendPropertyChanged("Usuario")
Me.OnUsuarioChanged
End If
End Set
End Property
Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Protected Overridable Sub SendPropertyChanging()
If ((Me.PropertyChangingEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
End If
End Sub
Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
If ((Me.PropertyChangedEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End If
End Sub
End Class
<Table(Name:="dbo.Agencia")> _
Partial Public Class Agencia
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _Codagencia As String
Private _Nomagencia As String
Private _Diragencia As String
Private _Disagencia As String
Private _Telagencia As String
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnCodagenciaChanging(value As String)
End Sub
Partial Private Sub OnCodagenciaChanged()
End Sub
Partial Private Sub OnNomagenciaChanging(value As String)
End Sub
Partial Private Sub OnNomagenciaChanged()
End Sub
Partial Private Sub OnDiragenciaChanging(value As String)
End Sub
Partial Private Sub OnDiragenciaChanged()
End Sub
Partial Private Sub OnDisagenciaChanging(value As String)
End Sub
Partial Private Sub OnDisagenciaChanged()
End Sub
Partial Private Sub OnTelagenciaChanging(value As String)
End Sub
Partial Private Sub OnTelagenciaChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Column(Name:="codagencia", Storage:="_Codagencia", DbType:="VarChar(10) NOT NULL", CanBeNull:=false, IsPrimaryKey:=true)> _
Public Property Codagencia() As String
Get
Return Me._Codagencia
End Get
Set
If (String.Equals(Me._Codagencia, value) = false) Then
Me.OnCodagenciaChanging(value)
Me.SendPropertyChanging
Me._Codagencia = value
Me.SendPropertyChanged("Codagencia")
Me.OnCodagenciaChanged
End If
End Set
End Property
<Column(Name:="nomagencia", Storage:="_Nomagencia", DbType:="VarChar(150) NOT NULL", CanBeNull:=false)> _
Public Property Nomagencia() As String
Get
Return Me._Nomagencia
End Get
Set
If (String.Equals(Me._Nomagencia, value) = false) Then
Me.OnNomagenciaChanging(value)
Me.SendPropertyChanging
Me._Nomagencia = value
Me.SendPropertyChanged("Nomagencia")
Me.OnNomagenciaChanged
End If
End Set
End Property
<Column(Name:="diragencia", Storage:="_Diragencia", DbType:="VarChar(MAX) NOT NULL", CanBeNull:=false, UpdateCheck:=UpdateCheck.Never)> _
Public Property Diragencia() As String
Get
Return Me._Diragencia
End Get
Set
If (String.Equals(Me._Diragencia, value) = false) Then
Me.OnDiragenciaChanging(value)
Me.SendPropertyChanging
Me._Diragencia = value
Me.SendPropertyChanged("Diragencia")
Me.OnDiragenciaChanged
End If
End Set
End Property
<Column(Name:="disagencia", Storage:="_Disagencia", DbType:="VarChar(100) NOT NULL", CanBeNull:=false)> _
Public Property Disagencia() As String
Get
Return Me._Disagencia
End Get
Set
If (String.Equals(Me._Disagencia, value) = false) Then
Me.OnDisagenciaChanging(value)
Me.SendPropertyChanging
Me._Disagencia = value
Me.SendPropertyChanged("Disagencia")
Me.OnDisagenciaChanged
End If
End Set
End Property
<Column(Name:="telagencia", Storage:="_Telagencia", DbType:="VarChar(20) NOT NULL", CanBeNull:=false)> _
Public Property Telagencia() As String
Get
Return Me._Telagencia
End Get
Set
If (String.Equals(Me._Telagencia, value) = false) Then
Me.OnTelagenciaChanging(value)
Me.SendPropertyChanging
Me._Telagencia = value
Me.SendPropertyChanged("Telagencia")
Me.OnTelagenciaChanged
End If
End Set
End Property
Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Protected Overridable Sub SendPropertyChanging()
If ((Me.PropertyChangingEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
End If
End Sub
Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
If ((Me.PropertyChangedEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End If
End Sub
End Class
<Table(Name:="dbo.caja")> _
Partial Public Class Caja
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _Codcaja As String
Private _Descripcion As String
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnCodcajaChanging(value As String)
End Sub
Partial Private Sub OnCodcajaChanged()
End Sub
Partial Private Sub OnDescripcionChanging(value As String)
End Sub
Partial Private Sub OnDescripcionChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Column(Name:="codcaja", Storage:="_Codcaja", DbType:="VarChar(10) NOT NULL", CanBeNull:=false, IsPrimaryKey:=true)> _
Public Property Codcaja() As String
Get
Return Me._Codcaja
End Get
Set
If (String.Equals(Me._Codcaja, value) = false) Then
Me.OnCodcajaChanging(value)
Me.SendPropertyChanging
Me._Codcaja = value
Me.SendPropertyChanged("Codcaja")
Me.OnCodcajaChanged
End If
End Set
End Property
<Column(Name:="descripcion", Storage:="_Descripcion", DbType:="VarChar(50) NOT NULL", CanBeNull:=false)> _
Public Property Descripcion() As String
Get
Return Me._Descripcion
End Get
Set
If (String.Equals(Me._Descripcion, value) = false) Then
Me.OnDescripcionChanging(value)
Me.SendPropertyChanging
Me._Descripcion = value
Me.SendPropertyChanged("Descripcion")
Me.OnDescripcionChanged
End If
End Set
End Property
Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Protected Overridable Sub SendPropertyChanging()
If ((Me.PropertyChangingEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
End If
End Sub
Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
If ((Me.PropertyChangedEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End If
End Sub
End Class
<Table(Name:="dbo.Cliente")> _
Partial Public Class Cliente
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _Codcliente As String
Private _Nombres As String
Private _Apellidos As String
Private _Numcedula As String
Private _F_emision As System.Nullable(Of Date)
Private _F_vencimiento As System.Nullable(Of Date)
Private _Direccion As String
Private _F_nacimiento As System.Nullable(Of Date)
Private _Estadocivil As String
Private _Ciudad As String
Private _Telefono As String
Private _Celular As String
Private _Email As String
Private _F_ingreso As System.Nullable(Of Date)
Private _Ocupacion As String
Private _Direccion_negocio As String
Private _Tiempo_neg As String
Private _Otra_ae As String
Private _Desc_otra As String
Private _Nom_cuenta As String
Private _Num_cuenta As String
Private _Nom_banco As String
Private _Monto_mensual As System.Nullable(Of Decimal)
Private _Total_operaciones As System.Nullable(Of Decimal)
Private _Actua_por As String
Private _Nombre_tercero As String
Private _Direccion_tercero As String
Private _Pica As System.Nullable(Of Integer)
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnCodclienteChanging(value As String)
End Sub
Partial Private Sub OnCodclienteChanged()
End Sub
Partial Private Sub OnNombresChanging(value As String)
End Sub
Partial Private Sub OnNombresChanged()
End Sub
Partial Private Sub OnApellidosChanging(value As String)
End Sub
Partial Private Sub OnApellidosChanged()
End Sub
Partial Private Sub OnNumcedulaChanging(value As String)
End Sub
Partial Private Sub OnNumcedulaChanged()
End Sub
Partial Private Sub OnF_emisionChanging(value As System.Nullable(Of Date))
End Sub
Partial Private Sub OnF_emisionChanged()
End Sub
Partial Private Sub OnF_vencimientoChanging(value As System.Nullable(Of Date))
End Sub
Partial Private Sub OnF_vencimientoChanged()
End Sub
Partial Private Sub OnDireccionChanging(value As String)
End Sub
Partial Private Sub OnDireccionChanged()
End Sub
Partial Private Sub OnF_nacimientoChanging(value As System.Nullable(Of Date))
End Sub
Partial Private Sub OnF_nacimientoChanged()
End Sub
Partial Private Sub OnEstadocivilChanging(value As String)
End Sub
Partial Private Sub OnEstadocivilChanged()
End Sub
Partial Private Sub OnCiudadChanging(value As String)
End Sub
Partial Private Sub OnCiudadChanged()
End Sub
Partial Private Sub OnTelefonoChanging(value As String)
End Sub
Partial Private Sub OnTelefonoChanged()
End Sub
Partial Private Sub OnCelularChanging(value As String)
End Sub
Partial Private Sub OnCelularChanged()
End Sub
Partial Private Sub OnEmailChanging(value As String)
End Sub
Partial Private Sub OnEmailChanged()
End Sub
Partial Private Sub OnF_ingresoChanging(value As System.Nullable(Of Date))
End Sub
Partial Private Sub OnF_ingresoChanged()
End Sub
Partial Private Sub OnOcupacionChanging(value As String)
End Sub
Partial Private Sub OnOcupacionChanged()