示例#1
0
        public HttpResponseMessage GetTarget(string PlanNo, string Type, string Code)
        {
            TargetByCode ret = repository.GetTarget(pclsCache, PlanNo, Type, Code);

            return(new ExceptionHandler().toJson(ret));
        }
示例#2
0
        public HttpResponseMessage PostTarget(TargetByCode item)
        {
            int ret = repository.SetTarget(pclsCache, item.Plan, item.Type, item.Code, item.Value, item.Origin, item.Instruction, item.Unit, item.piUserId, item.piTerminalName, new CommonFunction().getRemoteIPAddress(), item.piDeviceType);

            return(new ExceptionHandler().SetData(Request, ret));
        }