Ejemplo n.º 1
0
        /// <summary>
        /// 页面加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Session["YJUser"] != null)
            //    YJUser = JsonHelper.JsonString(Session["YJUser"] as EDRS.Model.YX_DZJZ_LSAJBD);

            string type = Request["t"];

            if (!string.IsNullOrEmpty(type))
            {
                Response.ContentEncoding = Encoding.UTF8;
                Response.ContentType     = "application/json";

                if (type.Equals("ReadLogin"))
                {
                    Response.Write(ReadLogin());
                }
                if (type.Equals("GetMlTree"))
                {
                    EDRS.BLL.YX_DZJZ_JZML bll = new EDRS.BLL.YX_DZJZ_JZML(Request);
                    Response.Write(bll.GetMlTree(Request, false, true));
                }
                if (type.Equals("ListBind"))
                {
                    Response.Write(ListBind());
                }
                Response.End();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取案件目录
 /// </summary>
 /// <returns></returns>
 private string GetMlTree()
 {
     EDRS.BLL.YX_DZJZ_JZML bll = new EDRS.BLL.YX_DZJZ_JZML(Request);
     return(bll.GetMlTree(Request, false, false));
 }