dwz简单配置与操作_.NET_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > .NET > dwz简单配置与操作

dwz简单配置与操作

 2013/10/22 18:55:34  农村小伙  博客园  我要评论(0)
  • 摘要:1.首先将dwz的文件放到你的项目中(http://yunpan.cn/QbTH4kN6UXX9B)2.在页面中将前台数据复制到页面中,将js,css等路径配置好3.这个地方一定要配置好,xml文件目录4.5.6.AjaxDoneJson类///<summary>///为DWZ封装Ajax返回Json格式///</summary>///Createbyjerry.2011/6/2714:25publicclassAjaxDoneJson
  • 标签:配置 操作

1.首先将dwz的文件放到你的项目中(http://yunpan.cn/QbTH4kN6UXX9B)

2.在页面中将前台数据复制到页面中,将js,css等路径配置好

3.这个地方一定要配置好,xml文件目录

4.

5.

6.AjaxDoneJson类

class="code_img_closed" src="/Upload/Images/2013102218/0015B68B3C38AA5B.gif" />logs_code_hide('d4141212-f113-4a95-ac02-6a41343da572',event)" src="/Upload/Images/2013102218/2B1B950FA3DF188F.gif" />
 /// <summary>
    /// 为DWZ封装Ajax返回Json格式
    /// </summary>
    /// Create by jerry. 2011/6/27 14:25
    public class AjaxDoneJson
    {
        public string statusCode { get; set; }
        public string message { get; set; }
        public string navTabId { get; set; }
        public string forwardUrl { get; set; }
        public string callbackType { get; set; }
        public AjaxDoneJson(string statusCode, string message, string navTabId, string forwardUrl, string callbackType)
        {
            this.statusCode = statusCode;
            this.message = message;
            this.navTabId = navTabId;
            this.forwardUrl = forwardUrl;
            this.callbackType = callbackType;
        }
        public AjaxDoneJson(string statusCode, string message)
        {
            this.statusCode = statusCode;
            this.message = message;
            this.navTabId = "";
            this.forwardUrl = "";
            this.callbackType = "";
        }
        public AjaxDoneJson(string statusCode, string message, string navTabId)
        {
            this.statusCode = statusCode;
            this.message = message;
            this.navTabId = navTabId;
            this.forwardUrl = "";
            this.callbackType = "";
        }
        public AjaxDoneJson(string statusCode, string message, string navTabId, string forwardUrl)
        {
            this.statusCode = statusCode;
            this.message = message;
            this.navTabId = navTabId;
            this.forwardUrl = forwardUrl;
            this.callbackType = "";
        }
    }
View Code

7.添加
8.如果添加的页面时navtab页面(普通打开的)form表单就用onsubmit="return validateCallback(this, navTabAjaxDone)"

如果在dialog上form表单就用onsubmit="return validateCallback(this, dialogAjaxDone)"

 

发表评论
用户名: 匿名