| | |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | [Route("Cg_POOrderBill/distribut")] |
| | | [HttpPost] |
| | | [HttpGet] |
| | | public object distribut(string Hmainid, string HSupplierId) |
| | | { |
| | | try |
| | | { |
| | | string sql = $"update Cg_POOrderBillMain set HBusinessStatus = 2 ,HEmpID ={Hmainid} where HInterID in ({HSupplierId})"; |
| | | string sql = $"update Cg_POOrderBillMain set HBusinessStatus = 2 ,HEmpID ={HSupplierId} where HInterID in ({Hmainid})"; |
| | | oCN.RunProc(sql); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "操作成功!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 采购订单 发布 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | [Route("Cg_POOrderBill/release")] |
| | | [HttpGet] |
| | | public object release(string Hmainid) |
| | | { |
| | | try |
| | | { |
| | | string sql = $"update Cg_POOrderBillMain set HBusinessStatus = 3 where HInterID in ({Hmainid})"; |
| | | oCN.RunProc(sql); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "操作成功!"; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | // |
| | | } |
| | | } |