//根据传入的参数处理事情
 public void ProcessRequest(HttpContext context)
 {
     //清空之前数据
     context.Response.Clear();
     //检测是否含有session
     if (context.Session.Count < 5)
     {
         //跳转
         context.Response.Redirect("/Account/Login", true);
         //停止加载后续内容
         context.Response.End();
         //直接返回
         return;
     }
     //执行基类的方法
     if (!base.CheckIsLogin(context))
     {
         return;
     }
     //用户传入的查询参数
     //lot卡号
     string lotId = context.Request["lid"];
     if (string.IsNullOrWhiteSpace(lotId))
     {
         return;
     }
     //生产编号
     string productNum = context.Request["pnum"];
     if (string.IsNullOrWhiteSpace(productNum))
     {
         //从数据库获取当前lot卡号的生产编号
         using (var da = new v_ppc_lot_card_join_orderTableAdapter())
         {
             //获取数据
             var tab = da.GetDataByLotId(lotId);
             //检测有无数据
             if (tab.Rows.Count <= 0)
             {
                 return;
             }
             //取得首行数据
             var row = (DataSetPpcLotCardMgr.v_ppc_lot_card_join_orderRow)tab.Rows[0];
             //取得生产编号
             productNum = row.product_num;
             if (string.IsNullOrWhiteSpace(productNum))
             {
                 return;
             }
         }
     }
     //待输出到浏览器的数据
     string strResult = string.Empty;
     //获取汇总内容
     using (var da = new t_product_record_chongxingTableAdapter())
     {
         //取得结果
         strResult = da.GetToolNumAndPnlPunchCount(lotId, productNum).ToString();
         //写入数据到浏览器
         context.Response.Write(strResult);
     }
 }