一厂MES,含注塑,喷涂,冲孔
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

81 lines
2.4 KiB

using MESClassLibrary.BLL.BasicInfo;
using MESClassLibrary.BLL.Inspection;
using MESClassLibrary.BLL.Log;
using MESWebSite.CommonClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MESWebSite.Manage
{
public partial class CommonlyInspection : System.Web.UI.Page
{
public string strusername = "";
public string struserID = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["LoginUserInfo"] != null)
{
strusername = Request.Cookies["LoginUserInfo"]["RealName"].Trim();
struserID = Request.Cookies["LoginUserInfo"]["UserID"].Trim();
UserID.Value = struserID;
}
else
{
Response.Write("<script language=javascript>alert('您的登录信息已过期,请重新登录!');top.location.href='../Login.aspx';</script>");
}
}
[WebMethod]
public static string GetDate(string VersionID, string CheckDate,string CheckType)
{
try
{
CommonlyInspectionBLL bll = new CommonlyInspectionBLL();
return bll.GetDate(VersionID, CheckDate, CheckType);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return "";
}
}
[WebMethod]
public static string GetReportDate(string VersionID, string CheckDate)
{
try
{
CommonlyInspectionBLL bll = new CommonlyInspectionBLL();
return bll.GetReportDate(VersionID, CheckDate);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return "";
}
}
[WebMethod]
public static string QueryOne(string DeviceID)
{
try
{
DeviceBLL bll = new DeviceBLL();
return bll.SearchInfoByID(DeviceID);
}
catch (Exception ex)
{
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
return "";
}
}
}
}