12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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 GetWD_LatticeDeviceInfo : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string deviceType = this.GetValueByKey("DEVICE_TYPE");
- string partID = this.GetValueByKey("partid");
- if (string.IsNullOrEmpty(deviceType))
- {
- deviceType = "6";
- }
- if (!this.InitializeDataAccess())
- {
- this.ResponseDefaultError(PromptingMessage.Error_Data_Initialized);
- return;
- }
- if (string.IsNullOrEmpty(partID) || partID == "-1" )
- {
- wd_DeviceInfoDataAccess.ext.messageDataList = wd_DeviceInfoDataAccess.ext.messageDataList.FindAll(f => f.DEVICE_TYPE == deviceType);
- }
- else
- {
- wd_DeviceInfoDataAccess.ext.messageDataList = wd_DeviceInfoDataAccess.ext.messageDataList.FindAll(f => f.DEVICE_TYPE == deviceType && f.PARTID == partID);
- wd_DeviceInfoDataAccess.ext.messageDataList.ForEach(f => f.id = f.ID);
- }
-
- wd_DeviceInfoDataAccess.ext.Rows = wd_DeviceInfoDataAccess.ext.messageDataList.Count;
- wd_DeviceInfoDataAccess.ext.BedInfoArray = wd_DeviceInfoDataAccess.ext.messageDataList;
- wd_DeviceInfoDataAccess.ext.DeviceInfoArray = wd_DeviceInfoDataAccess.ext.messageDataList;
- this.Response.Write(JsonHelper.SerializeWithSuffix(wd_DeviceInfoDataAccess.ext));
- ///////////////////////////////////////////
- WD_SysLogInfo wd_SysLogInfo = new WD_SysLogInfo();
- wd_SysLogInfo.LOG_TYPE = "3";
- wd_SysLogInfo.LOG_SOURCE ="MGR";
- wd_SysLogInfo.LOG_CONTENT ="下载了【DEVICE_TYPE】为" + deviceType + "的设备数据";
- this.DataBaseLog(wd_SysLogInfo);
-
- }
- }
- }
|