ExtPB.Net:窗体应用技巧(2)在树形导航下打开弹出的win窗口

  ExtPB.Net的demo程序有个树形导航菜单,里面的菜单打开的窗口放在右边的TabStrip控件中。我们可以设计win通过导航打开,但有时我们希望以弹出窗口的形式打开它,但怎么办呢?
现在可以这样修改一下:
1. 数据结构更改:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxIAAADnCAIAAAAFEferAAAgAElEQVR4nO2dv67kuJLm9ajtNdrVO5R7yx7IaXOAamuMxkLmFgYXuINxFsJWAQ2MsV6p6x20BvUnSAYpKTMkRcT5fiCq8iiZjAgyRH1J6hw1f/z7v6GgoKCgoKCgoOyWZgIAAAAAAAdo/h7/QkFBQUFBQUFB2S2QTSgoKCgoKCgohwpkEwoKCgoKCgrKoRLJpn/+539M0/S4T7vlET/vMfqilW+///br79+fHheXI/JRnD+TQiec/5CZifK3wgz/kCGgiJd//ud/7Mmmb7//1gQ+fd1eN03TfP76pN9lP5um+fT1HqOx3d++/OsCK//649cm4bd/fJovRes16UNenPbSQCJFKx37Xp+XZuTvX35ppDIqT06hcE44zzYbDn77/Tca44fMYcfl4gznJkaJGfjGEO64bKGIlwOyaSxcm7/9/ttzyom/Xq6+ff3UXDD/cp3z5+fmlz++La//8ec1VrIA60PzYcpOGlydohfIpu9ffiGp++fntyZlLjmvlE288zsWP33+dXHyQ+aw43J9hv/193ht2lwewvWXLRTx8oZsyn+81+/a9XL883Pz6Wv0nWC9fogaXQylnqRG//y8fqPY67FDsml+vX3fitaf5EJWXvbSIE7duFu23Jjrb2P0+cvvv/36+x//aOYV1rAu8uunz0tvf/76F/2y+9qkuafCif+M9Syib6vPa508OanPf/7x66op//zc/PLH12JfyTn/yx/f/vr766e520OFr5+aWNKlpy1p4fPXOQS+E55OSBRars9w0sLc4L+4rN5r+cEQjly2viXTUeFcQLmrvCebWNFwl9+V62X8beCvv8e//l6nZlmj419fwzmwNU76hIib7SySlE35i9z6A6OjJA3IcGTd8u3335YjX//x6Ws028bLVFv9Za78+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qmfGef+AAEjsbM6XD8ydWhTteWwAtf4ecrouyEctMKqn7rWYeVR6Xj+2qZsyvZ/tx2BZJTokfDdKs6UB5wnmJNNqcPLvLb06/zLRm/LpkgZJJcIjmgSyBf/40khdZK6kScIbZr9Lp63TFqJLdO/kMK8JLaiG14SMzp/AdP06ZmFUFgSmn2WyfmkYeT8oZyPJgquzVOyifEzBX/uUp3Rkmxak7by2bxCwwmshN0G63UexEq6ssB5YyQ7SmAPB0lSWjC7CHUpps6hKzm8sAnZpM6olSHQgOm+gvNC0K/G8ssSpPWPcwGRQVOSvEhxwewSjptAzssydGf6ELJJnVErQ6AB030F54FvHCSJgxCAOJBN6oxaGQINmO4rOA984yBJHIQAxIFsUmfUyhBowHRfwXngGwdJ4iAEIE7z88d3FBQUFBQUFBSU3fL/AZDdfZ5bWCaIAAAAAElFTkSuQmCC" alt="" />
也就是增加一个OpenStyle=4的类型,然后将要打开的win窗口的路径写在ObjName里,再将该窗口的js文件路径写在OpenParm里,看上图的最后一行即是。

2. 修改w_index.win.js

else if (openStyle == "4") {
self.dynamicLoadJs(parm, function () {
try {
//获得除路径外的实际(.win)窗口名称
var temp = url.split('.');
var objwinName = temp[temp.length - 1];
//动态创建(.win)窗口对象
var iw_subwin = eval("new " + objwinName);
requestor.Open("/LoadWindow.ashx?name=" + url, iw_subwin);
}
catch (err) { requestor.MessageBox("提示", "打开窗口失败:" + err.message); }
});
}

新定义了一个函数: dynamicLoadJs

 this.dynamicLoadJs = function (jsurl, callback) {
if (jsLoadedFlag == jsurl) { //检查是否已经加载过
if (callback) {
callback();
return;
}
}
var Odoc = document.getElementsByTagName('HEAD')[0];
var oScript = document.createElement('script');
oScript.setAttribute('type', 'text/javascript');
oScript.setAttribute('src', jsurl);
//oScript.setAttribute('id', key);
Odoc.appendChild(oScript);
oScript.onload = oScript.onreadystatechange = function () {
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
jsLoadedFlag = jsurl; //设置加载标记
17 oScript.onload = oScript.onreadystatechange = null; 18 if (callback) {
callback();
}
}
}
}

另一点就是,加载的js如果设置一个唯一key值,也应该可以保证避免重复吧。那怎么设置呢?(是否可以将 jsurl 进行编码当做唯一key值)

限制:win窗口有参数的情况没处理。

上一篇:MongoDB:利用官方驱动改装为EF代码风格的MongoDB.Repository框架 一


下一篇:boostrap-非常好用但是容易让人忽略的地方------modal