| | |
| | | } |
| | | } |
| | | |
| | | [HttpPost("SavePlan")] |
| | | public ResponseResult SavePlan([FromBody] JObject data) |
| | | { |
| | | decimal pid = Convert.ToDecimal(data["pid"]); |
| | | string planName = data["planName"].ToString(); |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var XJ = new XJService(); |
| | | decimal res = XJ.SavePlan(pid, planName); |
| | | resultInfos.res = res; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | [HttpPost("saveItem")] |
| | | public ResponseResult saveItem([FromBody] XJDto xjDto) |
| | | { |