牌位版型設計,增加刪除版型跟紙張尺寸

This commit is contained in:
2026-06-16 09:44:16 +08:00
parent c249e84240
commit 5f3ac3ec7f
4 changed files with 219 additions and 15 deletions
+28
View File
@@ -299,4 +299,32 @@ public class designerController : ApiController
}
}
[HttpPost]
[Route("api/tablet/DelPaperSize")]
public IHttpActionResult DelPaperSize([FromBody] dynamic data)
{
LogUtility log = new LogUtility();
var json = data;
log.writeLogPath((string)json.paperSize);
string paperSize = (json == null || json.paperSize == null) ? "" : (string)json.paperSize;
//先檢查有沒有用過
object[] obj = new StyleDataAccess().DelTabletPaper(paperSize);
return Ok(new { result = obj[0].ToString(), message = obj[1].ToString() });
}
[HttpPost]
[Route("api/tablet/DelTabletStyle")]
public IHttpActionResult DelTabletStyle([FromBody] dynamic data)
{
LogUtility log = new LogUtility();
var json = data;
log.writeLogPath((string)json.styleID);
string StyleID = (json == null || json.styleID == null) ? "" : (string)json.styleID;
//先檢查有沒有用過
object[] obj = new StyleDataAccess().DelTabletStyle(StyleID);
return Ok(new { result = obj[0].ToString(), message = obj[1].ToString() });
}
}