public static string ProductionOrderSelect(HttpContext context) { ProductionOrderDAL productionOrderDAL = new ProductionOrderDAL(); ProductionOrderEntity data = new ProductionOrderEntity(); data.OP = context.Request.QueryString["OP"]; List <ProductionOrderEntity> list = new List <ProductionOrderEntity>(); list = productionOrderDAL.ProductionOrder_Select(data); var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); return(serializer.Serialize(list)); }
protected void Page_Load(object sender, EventArgs e) { try { ProductionOrderDAL productionOrderDAL = new ProductionOrderDAL(); ProductionOrderEntity data = new ProductionOrderEntity(); data.OP = "222"; List <ProductionOrderEntity> list = new List <ProductionOrderEntity>(); list = productionOrderDAL.ProductionOrder_Select(data); var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); Response.Write("Todo ok"); } catch (Exception ex) { Response.Write(ex); } }