예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dto"></param>
 /// <returns></returns>
 internal static bool PeriodsNotRepeated(PxPeriodListDTO dto)
 {
     foreach (var per in dto.Periods)
     {
         if (!CustomValidations.PeriodCodeNotRepeatedInList(dto.Periods) || !CustomValidations.PeriodValueNotRepeatedInList(dto.Periods))
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
0
        internal static bool FormatExistsReadDataset(RESTful_API api)
        {
            if (api.parameters.Count < Convert.ToInt32(Utility.GetCustomConfig("APP_REST_READ_DATASET_PARAMETER_COUNT")))
            {
                return(false);
            }
            Format_DTO_Read dto = new Format_DTO_Read()
            {
                FrmType = api.parameters[2], FrmVersion = api.parameters[3] == "" ? "none" : api.parameters[3]
            };

            return(CustomValidations.FormatExists(dto));
        }