| | |
| | | /// <returns></returns> |
| | | [Route("Open_PrintTem/SaveOpenTmp")] |
| | | [HttpGet] |
| | | public object SaveOpenTmp(string HNumber, string HName) |
| | | public object SaveOpenTmp(string HNumber, string HName,string user) |
| | | { |
| | | //ClsCNSRM oCn = new ClsCNSRM(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("OpenPrintTmp_Edit", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无保存权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Insert into SRM_OpenTmp " + |
| | |
| | | /// <returns></returns> |
| | | [Route("Open_PrintTem/DelOpenTmp")] |
| | | [HttpGet] |
| | | public object DelOpenTmp(string HItemID) |
| | | public object DelOpenTmp(string HItemID, string user) |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("OpenPrintTmp_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无删除权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Delete from SRM_OpenTmp where HItemID='" + DBUtility.ClsPub.isLong(HItemID) + "'", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | oCn.Commit(); |