|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题菜单|控件用户自界说控件代码以下:
usingSystem;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.ComponentModel;
usingSystem.IO;
namespaceEWFS.CL
{
publicstructstuTreeNodes
{
publicstringstrKey;
publicstringstrDispVal;
publicstringstrParentKey;
publicstringstrJavaScriptCmd;
}
publicstructstuTreeNodesIcons
{
publicstringstrTreeCaptionIcon;
publicstringstrTreeContentOpenIcon;
publicstringstrTreeContentCloseIcon;
}
publicstructstuTreePopMenu
{
publicstringstrMenuItemImg;
publicstringstrMenuItemText;
publicstringstrMenuItemCmd;
}
[DefaultProperty("Text"),
ToolboxData("<{0}:TreeViewrunat=server></{0}:TreeView>")]
publicclassTreeView:System.Web.UI.WebControls.WebControl
{
privatestringm_TreeCaption;//题目
privatestuTreeNodes[]m_stuTreeNodes;//节点内容
privatestuTreeNodesIconsm_stuTreeNodesIcons;//节点图标
privatestringm_TreeChangedPostURL;//修正后的树传送的地点
privateboolm_TreeAddDir;
privateboolm_TreeRenDir;
privateboolm_TreeDelDir;
privatestuTreePopMenu[]m_stuTreePopMenu;
privatestringm_GotoID;
privateboolm_TreeRootPopMenu;
privateSystem.Data.DataSetm_dsTreeNodes;
protectedSystem.Web.UI.WebControls.TableTreeTable;
publicstringTreeGotoID//定位ID
{
get{returnm_GotoID;}
set{m_GotoID=value;}
}
[Bindable(true),
Category("Appearance"),
DefaultValue(true)]
publicboolTreeRootPopMenu
{
get{returnm_TreeRootPopMenu;}
set{m_TreeRootPopMenu=value;}
}
[Bindable(true),
Category("Appearance"),
DefaultValue("")]
publicboolTreeAddDir
{
get{returnm_TreeAddDir;}
set{m_TreeAddDir=value;}
}
publicboolTreeRenDir
{
get{returnm_TreeRenDir;}
set{m_TreeRenDir=value;}
}
publicboolTreeDelDir
{
get{returnm_TreeDelDir;}
set{m_TreeDelDir=value;}
}
publicstuTreePopMenu[]StuTreePopMenu
{
get{returnm_stuTreePopMenu;}
set{m_stuTreePopMenu=value;}
}
publicstringTreeChangedPostURL
{
get{returnm_TreeChangedPostURL;}
set{m_TreeChangedPostURL=value;}
}
publicstuTreeNodesIconsStuTreeNodesIcons
{
get{returnm_stuTreeNodesIcons;}
set{m_stuTreeNodesIcons=value;}
}
publicstuTreeNodes[]StuTreeNodes
{
get
{
returnm_stuTreeNodes;
}
set
{
m_stuTreeNodes=value;
}
}
publicstringTreeCaption
{
get
{
returnm_TreeCaption;
}
set
{
m_TreeCaption=value;
}
}
///<summary>
///猎取节点内容
///</summary>
publicSystem.Data.DataSetdsTreeNodes
{
get{returnthis.m_dsTreeNodes;}
set
{
this.m_dsTreeNodes=value;
SetTreeNodes();
}
}
privatevoidSetTreeNodes()
{
this.m_stuTreeNodes=newstuTreeNodes[m_dsTreeNodes.Tables[0].Rows.Count];
for(inti=0;i<m_dsTreeNodes.Tables[0].Rows.Count;i++)
{
this.m_stuTreeNodes[i].strKey=m_dsTreeNodes.Tables[0].Rows[i][0].ToString();
this.m_stuTreeNodes[i].strParentKey=m_dsTreeNodes.Tables[0].Rows[i][1].ToString()=="0"?"":m_dsTreeNodes.Tables[0].Rows[i][1].ToString();
this.m_stuTreeNodes[i].strDispVal=m_dsTreeNodes.Tables[0].Rows[i][2].ToString();
this.m_stuTreeNodes[i].strJavaScriptCmd=m_dsTreeNodes.Tables[0].Rows[i][3].ToString();
}
}
///<summary>
///将此控件出现给指定的输入参数。
///</summary>
///<paramname="output">要写出到的HTML编写器</param>
protectedoverridevoidCreateChildControls()
{
System.Web.UI.WebControls.TableoTB=newTable();
System.Web.UI.WebControls.TableoTB1=newTable();
System.Web.UI.WebControls.TableRowoTR=newTableRow();
System.Web.UI.WebControls.TableCelloTD=newTableCell();
System.Web.UI.WebControls.UnitoU=newUnit(&qu</p>asp可以使用微软的activeX使得网页功能无比强大,不过安全性也较差,而且是基于的windows服务器,所以性能稳定性也一般 |
|