123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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;
- using System.IO;
- namespace HNWD.Pregrant.WebService.MgrCSharp
- {
- public partial class SetWD_PartInfo : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string actionflag = this.GetValueByKey("actionflag");
- string data = this.GetValueByKey("data");
- string id = this.GetValueByKey("id");
- if (string.IsNullOrEmpty(actionflag))
- {
- this.ResponseDefaultError();
- return;
- }
- WD_PartInfoBusinessLogic2 wd_PartInfoBusinessLogic2 = new WD_PartInfoBusinessLogic2(id);
- if (!wd_PartInfoBusinessLogic2.bSuccess)
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Message));
- return;
- }
- if (actionflag.ToLower() == "query")
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Query(id)));
- return;
- }
- if (actionflag.ToLower() == "business")
- {
- Response.Write(JsonHelper.SerializeWithSuffix(wd_PartInfoBusinessLogic2.Business(data)));
- return;
- }
- }
- }
- }
|