/// <summary> /// Obtiene el reporte de Equity /// </summary> /// <param name="membershipNum">Numero de membrecia</param> /// <param name="company">Compania del guest</param> /// <param name="club">Club</param> /// <history> /// [ecanul] 05/04/2016 Created /// </history> public static RptEquity GetRptEquity(string membershipNum, int company, EnumClub club) { QueryRequest request = new QueryRequest(); RptEquityResponse response = null; RptEquity report = null; //Se configura el request request.InfoQuery = new InfoQuery(); request.InfoQuery.Application = membershipNum; request.InfoQuery.Compania = company.ToString(); //se invoca al servicio response = Current(club).GetRptEquity(request); //si ocurrio un error if (response.HasErrors) { throw new Exception(response.ExceptionInfo.Message); } else { report = response.Data; } return(report); }
/// <summary> /// Obtiene el reporte de equity /// </summary> /// <param name="membershipNum">Numero de membrecia</param> /// <param name="company">Compania del guest</param> /// <param name="club">Club</param> /// <history> /// [ecanul] 07/04/207 /// </history> public static RptEquity GetRptEquity(string membershipNum, int company, EnumClub club) { MemberRequest request = new MemberRequest(); RptEquityResponse response = null; RptEquity report = null; //configuramos el request request.Member = new Member(); request.Member.Application = membershipNum; request.Member.Company = company; // invocamos el servicio web response = Current(club).GetRptEquity(request); // Si ocurrio un error if (response.HasErrors) { throw new Exception(response.ExceptionInfo.Message); } var data = response.Data; if (data.Length > -1) { report = data[0]; } return(report); }