예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] t = Request.PathInfo.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);

            string type = Request["t"];

            if (!string.IsNullOrEmpty(type))
            {
                Response.ContentEncoding = Encoding.UTF8;
                Response.ContentType     = "application/json";
                if (type.Equals("ListBind"))
                {
                    int            count = 0;
                    TYYW_GG_AJJBXX bll   = new TYYW_GG_AJJBXX(Request);
                    DataTable      dt    = bll.ListBind(this.Request, UserInfo.DWBM, UserInfo.GH, "2,3,4,5,6", "", ref count);
                    Response.Write("{\"Total\":" + count + ",\"Rows\":" + JsonHelper.JsonString(dt) + "}");
                }
                if (type.Equals("GetMlTree"))
                {
                    EDRS.BLL.YX_DZJZ_JZML bll = new EDRS.BLL.YX_DZJZ_JZML(Request);
                    Response.Write(bll.GetMlTree(Request, false, true));
                }
                Response.End();
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string type = Request["t"];

            if (!string.IsNullOrEmpty(type))
            {
                Response.ContentEncoding = Encoding.UTF8;
                Response.ContentType     = "application/json";
                if (type.Equals("ListBind"))
                {
                    Response.Write(ListBind());
                }
                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.GetMlTreeEx(Request, false, true));
                }
                if (type.Equals("applypass"))
                {
                    Response.Write(applypass());
                }

                Response.End();
            }
        }