using MESClassLibrary; using MESClassLibrary.BLL.Injection; using MESClassLibrary.BLL.Log; using MESClassLibrary.Model; 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 MaterialAvailabilityDay : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Request.Cookies["LoginUserInfo"] == null) { Response.Write(""); } } [WebMethod] public static string GetDate(string StartTime) { try { InjectionRecordBLL bll = new InjectionRecordBLL(); return bll.SearchMaterialAvailabilityDay(StartTime); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return ""; } } [WebMethod] public static string GetBarDate(string StartTime) { try { InjectionRecordBLL bll = new InjectionRecordBLL(); EcharBarModel md = bll.SearchMaterialAvailabilityDayBar(StartTime); return JSONTools.ScriptSerialize(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return ""; } } } }