Created
June 7, 2011 21:15
-
-
Save diegodfsd/1013186 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (this.Usuarios != null) | |
| { | |
| Trace.WriteLine(DateTime.Now + " Sincronizando Usuarios..."); | |
| foreach (var item in this.Usuarios) | |
| { | |
| try | |
| { | |
| DateTime data = DateTime.Parse("1/1/1753"); | |
| if (item.dt_ads == DateTime.MinValue) | |
| { | |
| item.dt_ads = data; | |
| } | |
| if (item.dt_afa == DateTime.MinValue) | |
| { | |
| item.dt_afa = data; | |
| } | |
| if (item.dt_evl_cgo == DateTime.MinValue) | |
| { | |
| item.dt_evl_cgo = data; | |
| } | |
| new ViewFactory<RH102VWSEL01>().Send(PROC_USUARIOS, item); | |
| } | |
| catch (Exception) | |
| { | |
| this.Error = true; | |
| } | |
| } | |
| Trace.WriteLine(DateTime.Now + " Sincronizando Chefes..."); | |
| foreach (var item in this.Usuarios) | |
| { | |
| DateTime data = DateTime.Parse("1/1/1753"); | |
| if (item.dt_ads == DateTime.MinValue) | |
| { | |
| item.dt_ads = data; | |
| } | |
| if (item.dt_afa == DateTime.MinValue) | |
| { | |
| item.dt_afa = data; | |
| } | |
| if (item.dt_evl_cgo == DateTime.MinValue) | |
| { | |
| item.dt_evl_cgo = data; | |
| } | |
| try | |
| { | |
| new ViewFactory<RH102VWSEL01>().Send(PROC_PREENC_CHEFES, item); | |
| } | |
| catch (Exception) | |
| { | |
| this.Error = true; | |
| } | |
| } | |
| Trace.WriteLine(DateTime.Now + " Chefes Sincronizados."); | |
| } | |
| else | |
| { | |
| Trace.WriteLine(DateTime.Now + " Lista de Usuarios de custo não inicalizada."); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment