using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using HNWD.Pregrant.WebService; using HNWD.Pregrant.Model; using System.Text; using HNWD.Pregrant.DataAccess; using HNWD.Pregrant.Common; using HNWD.Pregrant.BusinessLogic; namespace HNWD.Pregrant.WebService.MgrCSharp { public partial class SetWD_VerInfo : PageBase { protected void Page_Load(object sender, EventArgs e) { string action = this.GetValueByKey("actionflag"); string data = this.GetValueByKey("data"); string devicetype = this.GetValueByKey("devicetype"); if (string.IsNullOrEmpty(action) || string.IsNullOrEmpty(devicetype)) { this.ResponseDefaultError(); return; } WD_VerInfoBusinessLogic wd_VerInfoBusinessLogic = new WD_VerInfoBusinessLogic(devicetype); if (!wd_VerInfoBusinessLogic.bSuccess) { Response.Write(JsonHelper.SerializeWithSuffix(wd_VerInfoBusinessLogic.Message)); return; } if (action.ToLower() == "query") { Response.Write(JsonHelper.SerializeWithSuffix(wd_VerInfoBusinessLogic.Query(devicetype))); return; } if (action.ToLower() == "business") { Response.Write(JsonHelper.SerializeWithSuffix(wd_VerInfoBusinessLogic.Business(data))); return; } } } }