| | |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | using WebAPI.Utility; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | [Permission(HModName = "Xs_OutDoorCheckBill")] |
| | | //出门确认单Controller |
| | | public class Xs_OutDoorBillController : ApiController |
| | | { |
| | |
| | | /// </summary> |
| | | [Route("Xs_OutDoorBill/list")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBillList")] |
| | | public object getXs_OutDoorBill(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xs_OutDoorBill/list_checked")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBillList")] |
| | | public object getXs_OutDoorBill_Checked(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | #region 出门确认单保存 新增/编辑 |
| | | [Route("Xs_OutDoorBill/SaveXs_OutDoorBill")] |
| | | [HttpPost] |
| | | [Permission(HModName = "Xs_OutDoorCheckBill_Edit")] |
| | | public object SaveXs_OutDoorBill([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | /// </summary> |
| | | [Route("Xs_OutDoorBill/delete")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBill_Drop")] |
| | | public object deleteXs_OutDoorBill(string HInterID, string user) |
| | | { |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [Route("Xs_OutDoorBill/AuditXs_OutDoorBill")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBill_Check")] |
| | | public object AuditXs_OutDoorBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "Xs_OutDoorCheckBill_Check"; |
| | |
| | | /// <returns></returns> |
| | | [Route("Xs_OutDoorBill/CloseXs_OutDoorBill")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBill_Close")] |
| | | public object CloseXs_OutDoorBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "Xs_OutDoorCheckBill_Close"; |
| | |
| | | /// <returns></returns> |
| | | [Route("Xs_OutDoorBill/DeleteXs_OutDoorBill")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorCheckBill_Delete")] |
| | | public object DeleteXs_OutDoorBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "Xs_OutDoorCheckBill_Delete"; |
| | |
| | | #region 出门确认单报表 |
| | | [Route("Xs_OutDoorBill/Xs_OutDoorBillReport")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xs_OutDoorBillReport")] |
| | | |
| | | public object Xs_OutDoorBillReport(string HBeginDate, string HEndDate, string sWhere, string user,int HOperationType) |
| | | { |
| | | try |