Exemple #1
0
        public BasicResponse <JC_AlarmNotificationPersonnelConfigInfo> GetJC_AlarmNotificationPersonnelConfigById(AlarmNotificationPersonnelConfigGetRequest jC_Alarmnotificationpersonnelconfigrequest)
        {
            var result = _Repository.GetJC_AlarmNotificationPersonnelConfigById(jC_Alarmnotificationpersonnelconfigrequest.Id);
            var jC_AlarmnotificationpersonnelconfigInfo = ObjectConverter.Copy <JC_AlarmnotificationpersonnelconfigModel, JC_AlarmNotificationPersonnelConfigInfo>(result);

            IList <JC_AlarmNotificationPersonnelModel> alarmNotificationPersonnelModelList = _AlarmNotificationPersonnelRepository.GetJC_AlarmNotificationPersonnelListByAlarmConfigId(jC_AlarmnotificationpersonnelconfigInfo.Id);

            if (alarmNotificationPersonnelModelList != null)
            {
                jC_AlarmnotificationpersonnelconfigInfo.JC_AlarmNotificationPersonnelInfoList = ObjectConverter.CopyList <JC_AlarmNotificationPersonnelModel, JC_AlarmNotificationPersonnelInfo>(alarmNotificationPersonnelModelList).ToList();
            }
            var jC_Alarmnotificationpersonnelconfigresponse = new BasicResponse <JC_AlarmNotificationPersonnelConfigInfo>();

            jC_Alarmnotificationpersonnelconfigresponse.Data = jC_AlarmnotificationpersonnelconfigInfo;
            return(jC_Alarmnotificationpersonnelconfigresponse);
        }
 public BasicResponse <JC_AlarmNotificationPersonnelConfigInfo> GetJC_AlarmNotificationPersonnelConfigById(AlarmNotificationPersonnelConfigGetRequest jC_Alarmnotificationpersonnelconfigrequest)
 {
     return(_AlarmNotificationPersonnelConfigService.GetJC_AlarmNotificationPersonnelConfigById(jC_Alarmnotificationpersonnelconfigrequest));
 }
        public BasicResponse <JC_AlarmNotificationPersonnelConfigInfo> GetJC_AlarmNotificationPersonnelConfigById(AlarmNotificationPersonnelConfigGetRequest jC_Alarmnotificationpersonnelconfigrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/AlarmNotificationPersonnelConfig/GetJC_AlarmNotificationPersonnelConfigById?token=" + Token, JSONHelper.ToJSONString(jC_Alarmnotificationpersonnelconfigrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <JC_AlarmNotificationPersonnelConfigInfo> >(responseStr));
        }