예제 #1
0
        public void InsertarEmpleado(int intDpto)
        {
            DataTable dtbAuditoria = new DataTable("Auditoria");

            ServicioProperTime.ServicioProperTimeClient objServicioProperTime;
            objServicioProperTime = new ServicioProperTime.ServicioProperTimeClient();
            try
            {
                objServicioProperTime.Open();
                objServicioProperTime.InsertarEmpleado_v1(intDpto);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (objServicioProperTime != null && objServicioProperTime.State == System.ServiceModel.CommunicationState.Opened)
                {
                    objServicioProperTime.Close();
                }
            }
        }