Beispiel #1
0
        public ResponseInfo <string> PostTruckVisualActivities(ReqPostTruckVisualActivities data)
        {
            ResponseInfo <string> res = new ResponseInfo <string>();

            try
            {
                EPODDAL.PostTruckVisualActivities(data);
                res.ResponseData = "Success";
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
Beispiel #2
0
        public ResponseInfo <ResSurverList> GetSurverList(SurverList data)
        {
            ResponseInfo <ResSurverList> res = new ResponseInfo <ResSurverList>();

            try
            {
                res.ResponseData = new ResSurverList();
                res.ResponseData.ObjSurverList = EPODDAL.GetSurveyList(data);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
Beispiel #3
0
        public ResponseInfo <ResActivitieList> GetActivitieList(ActivitieList data)
        {
            ResponseInfo <ResActivitieList> res = new ResponseInfo <ResActivitieList>();

            try
            {
                res.ResponseData = new ResActivitieList();
                res.ResponseData.ObjActivitiesList = EPODDAL.GetActivityList(data);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
Beispiel #4
0
        public ResponseInfo <ResponsePictureList <string> > GetPicturesList(RequestPictureList data)
        {
            ResponseInfo <ResponsePictureList <string> > response = new ResponseInfo <ResponsePictureList <string> >();
            ResponsePictureList <byte[]> resultDb = new ResponsePictureList <byte[]>();

            try
            {
                response.ResponseData          = new ResponsePictureList <string>();
                resultDb.pictures              = EPODDAL.GetPicturesList(data);
                response.ResponseData.pictures = HelperUtil.GeneratePictureListBase64String(resultDb.pictures);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(response);
        }
Beispiel #5
0
        public ResponseInfo <ResponseSODetails> GetDetailsFromJobOrderID(RequestDetailsFromJobOrderID data)
        {
            ResponseInfo <ResponseSODetails> response = new ResponseInfo <ResponseSODetails>();

            try
            {
                response.ResponseData = new ResponseSODetails();
                var listData = EPODDAL.GetDetailsFromJobOrderID(data);

                response.ResponseData.sODetails = HelperUtil.GenerateSoDetailBase64String(listData);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(response);
        }
Beispiel #6
0
        public ResponseStatus PostTruckVisualSurveys(List <PostTruckVisualServeysObj> data)
        {
            ResponseStatus res = new ResponseStatus();

            try
            {
                var result = EPODDAL.UpdateTruckVisualSurveys(data);
                if (result)
                {
                    res.status = new Status();
                }
                else
                {
                    res.status         = new Status();
                    res.status.code    = "01";
                    res.status.message = "can't update data";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }