Example #1
0
        public BasicResponse <List <Jc_HourInfo> > GetJc_HourList(Jc_HourGetListRequest jc_Hourrequest)
        {
            var jc_Hourresponse = new BasicResponse <List <Jc_HourInfo> >();

            jc_Hourrequest.PagerInfo.PageIndex = jc_Hourrequest.PagerInfo.PageIndex - 1;
            if (jc_Hourrequest.PagerInfo.PageIndex < 0)
            {
                jc_Hourrequest.PagerInfo.PageIndex = 0;
            }
            int rowcount          = 0;
            var jc_HourModelLists = _Repository.GetJc_HourList(jc_Hourrequest.PagerInfo.PageIndex, jc_Hourrequest.PagerInfo.PageSize, out rowcount);
            var jc_HourInfoLists  = new List <Jc_HourInfo>();

            foreach (var item in jc_HourModelLists)
            {
                var Jc_HourInfo = ObjectConverter.Copy <Jc_HourModel, Jc_HourInfo>(item);
                jc_HourInfoLists.Add(Jc_HourInfo);
            }
            jc_Hourresponse.Data = jc_HourInfoLists;
            return(jc_Hourresponse);
        }
Example #2
0
 BasicResponse <List <Jc_HourInfo> > IJc_HourService.GetJc_HourList(Jc_HourGetListRequest jc_Hourrequest)
 {
     return(hourService.GetJc_HourList(jc_Hourrequest));
 }
Example #3
0
        public BasicResponse <List <Jc_HourInfo> > GetJc_HourList(Jc_HourGetListRequest jc_Hourrequest)
        {
            var responsestr = HttpClientHelper.Post(Webapi + "/v1/HourService/GetJc_HourList?token=" + Token, JSONHelper.ToJSONString(jc_Hourrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <Jc_HourInfo> > >(responsestr));
        }