Web/Admin/ajax/GetPrinterInfo.aspx.cs
(完整代码) 1KBusing System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WMPT.Common;
using WMPT.SQLServerDAL;
using WMPT.Model;
using System.Collections.Generic;
/// <summary>
/// 根据打印机num判断此打印机是否在使用
/// </summary>
public partial class qy_54tss_Admin_ajax_GetPrinterInfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string content = Request["num"];
if (content != null)
{
PrinterSecret ps = new PrinterSecret();
PrinterSecretInfo info = ps.GetModel(content);
if (info != null)
{
IList<TogoPrinterInfo> tps = new TogoPrinter().GetList(1, 1, " PrinterSn = '" + content + "'", "dataid", 1);
if (tps.Count > 0)
{
Response.Write("0");//此打印机已经在使用中不能作为商家的打印机
}
else
{
Response.Write(info.PrinterSn);
}
}
else
{
Response.Write("-1");//不存在此打印机
}
Response.End();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
