| | |
| | | using System.Data.SqlClient; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | using WebAPI.Utility; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | [Permission(HModName = "YS_ReceiveOtherBillMain")] |
| | | //其他应收单Controller |
| | | public class YS_ReceiveOtherBillController : ApiController |
| | | { |
| | |
| | | /// </summary> |
| | | [Route("YS_ReceiveOtherBill/YS_ReceiveOtherBillMainList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "YS_ReceiveOtherBillMain_Query")] |
| | | public object YS_ReceiveOtherBillMainList(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | #region 其他应收单保存 新增/编辑 |
| | | [Route("YS_ReceiveOtherBill/SaveYS_ReceiveOtherBillMain")] |
| | | [HttpPost] |
| | | [Permission(HModName = "YS_ReceiveOtherBillMain_Edit")] |
| | | public object SaveYS_ReceiveOtherBillMain([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | /// </summary> |
| | | [Route("YS_ReceiveOtherBill/DeleteYS_ReceiveOtherBillMain")] |
| | | [HttpGet] |
| | | [Permission(HModName = "YS_ReceiveOtherBillMain_Drop")] |
| | | public object DeleteYS_ReceiveOtherBillMain(string HInterID, string user) |
| | | { |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [Route("YS_ReceiveOtherBill/AuditYS_ReceiveOtherBillMain")] |
| | | [HttpGet] |
| | | [Permission(HModName = "YS_ReceiveOtherBillMain_Check")] |
| | | public object AuditYS_ReceiveOtherBillMain(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YS_ReceiveOtherBillMain_Check"; |
| | |
| | | /// <returns></returns> |
| | | [Route("YS_ReceiveOtherBill/CloseYS_ReceiveOtherBill")] |
| | | [HttpGet] |
| | | [Permission(HModName = "YS_ReceiveOtherBill_Close")] |
| | | public object CloseYS_ReceiveOtherBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YS_ReceiveOtherBill_Close"; |
| | |
| | | /// <returns></returns> |
| | | [Route("YS_ReceiveOtherBill/DeleteYS_ReceiveOtherBill")] |
| | | [HttpGet] |
| | | [Permission(HModName = "YS_ReceiveOtherBill_Delete")] |
| | | public object DeleteYS_ReceiveOtherBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YS_ReceiveOtherBill_Delete"; |