--
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using ADSNetLibrary.SIGAPI.Models.RH.Request;
|
||||
using ADSUtileriasWF.Views.RelojChecador.Gluyas;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
@@ -134,12 +136,12 @@ namespace ADSUtileriasWF.Helpers
|
||||
|
||||
|
||||
|
||||
public static WCF_Checador.PersonalChecadorIDResponse[] PersonalChecadorID(int CveChecador )
|
||||
public static WCF_Checador.PersonalChecadorIDResponse[] PersonalChecadorID(int CveChecador,int CvePersonal =-1,string ChecadorID = "-1")
|
||||
{
|
||||
try
|
||||
{
|
||||
WCF_Checador.ChecadorServiceClient client = new WCF_Checador.ChecadorServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
|
||||
return client.PersonalChecadorID(CveChecador);
|
||||
WCF_Checador.ChecadorServiceClient client = new WCF_Checador.ChecadorServiceClient();
|
||||
return client.PersonalChecadorID(new WCF_Checador.RequestPersonalChecadorID() { CvePersonal = CvePersonal, ChecadorID = ChecadorID, CveChecador = CveChecador });
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -149,6 +151,21 @@ namespace ADSUtileriasWF.Helpers
|
||||
}
|
||||
}
|
||||
|
||||
public static bool AddUpPersonalChecadorVinculo(WCF_Checador.RequestPersonalChecadorVinculoAddUp request)
|
||||
{
|
||||
try
|
||||
{
|
||||
WCF_Checador.ChecadorServiceClient client = new WCF_Checador.ChecadorServiceClient();// new WCF_Service.ChecadorServiceClient(WCF_Service.ChecadorServiceClient.EndpointConfiguration.BasicHttpBinding_IChecadorService, ModVarsPV.Address);
|
||||
return client.AddUpPersonalChecadorVinculo(request);
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
GuardaLog(string.Format("Ocurrió un error al iniciar el servicio\r\n{0}", e));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user