Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
            }
        }