| | |
| | | using System.Net.Http; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | using WebAPI.Utility; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | [Permission(HModName = "OpenPrintTmp")] |
| | | public class Open_PrintTemController : ApiController |
| | | { |
| | | private JsonResult objJsonResult = new JsonResult(); |
| | |
| | | { |
| | | sWhere = " Where 1=1 "; |
| | | //sWhere = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + DBUtility.ClsPub.HORGANIZATIONSID.ToString(); |
| | | if (HNumber != "") |
| | | if (HNumber != "" && HNumber != null && HNumber != "undefined") |
| | | { |
| | | sWhere = sWhere + " and ( HNumber = '" + HNumber + "') "; |
| | | } |
| | |
| | | /// <returns></returns> |
| | | [Route("Open_PrintTem/SaveOpenTmp")] |
| | | [HttpGet] |
| | | [Permission(HModName = "OpenPrintTmp", Operate = "_Edit")] |
| | | public object SaveOpenTmp(string HNumber, string HName,string user) |
| | | { |
| | | //ClsCNSRM oCn = new ClsCNSRM(); |
| | |
| | | /// <returns></returns> |
| | | [Route("Open_PrintTem/DelOpenTmp")] |
| | | [HttpGet] |
| | | [Permission(HModName = "OpenPrintTmp", Operate = "_Delete")] |
| | | public object DelOpenTmp(string HItemID, string user) |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |