`
cw_volcano
  • 浏览: 17592 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论
文章列表
//DfxRepository.cs #region 获取类别树         public string BuildCategoryTreeChildNode(string id, string pduid, string pduaddress, string selecttreeid)         {             List<ProductTreeClass> nodeList = new List<ProductTreeClass>();             List<Int32> expandidList = new List& ...
//获取知识库左侧文件夹树菜单节点数据 TreeController.cs         public ContentResult QueryProductTreeChildNode(string id, string pdu, string pduaddress, string selecttreeid, string from, string refresh)         {             string cnt = "[]";             try             {                 cnt = tree.BuildPr ...
function divClick(s) {     var selecttreeid = productTreeInfo.tree.getSelectedNode().id;     var url = productTreeInfo.tree.getSelectedNode().url;     if (url!=undefined) {         var treepath = url.substring(url.lastIndexOf('=') + 1);     }        switch (s) {         case 1:                      ...
//点击右键方法 function zTreeOnRightClick(event, treeId, treeNode) {     productTreeInfo.tree.selectNode(treeNode); } function zTreeOnBeforeClick(treeId, treeNode) {     if (treeNode.id=="0") {         if (!confirm("将服务器的全部文件显示出来,此操作的花费时间将依服务器文件数量而定!是否继续?")) {         } else {         ...
aspx:<ul id="productTree"></ul> js: var productTreeInfo = {     tree: null,     setting: null,     nodes: null,     treeId: "productTree",     nodeId: "",     nodeName: "",     nodeLevel: 0 }; jQuery(function ($) {     initTree(); }); //强制刷新树菜单 ...
jqGrid增加按钮: .navButtonAdd('#pager', { caption: "全部取消", buttonicon: "ui-icon-trash", onClickButton: function (id) {         cancelSelectedRows();     }, position: "last"     });  jqGrid单选选择行: var curSelRow=-1 onSelectRow: function (id) {             curSelRow = id;      ...
$("#navigatorInfo", window.parent.document)  查找iframe上一层的节点 $(window.frames["mainFrm"].document).find("#BtnAdd")  查找iframe内的节点 var jsonData = new             {                 list = nodeList.ToArray()             }; var list1 = treeconfig.INFO_SYS_TREE_CONFIG.Where(x ...
$('#loginForm').serialize()的值为"userName=zkf38667&password=123zxc!%40%23&rememberMe=on" slice(start,[end])  例如:选择前两个p元素$("p").slice(0, 2).wrapInner("<b></b>"); end() 选取所有的p元素,查找并选取span子元素,然后再回过来选取p元素 $("p").find("span").end() ...
<!--[if lt IE 7]><body class="ie ie6"><![endif]--><!--[if IE 7]><body class="ie ie7"><![endif]--><!--[if IE 8]><body class="ie ie8"><![endif]--><!--[if !IE]><!--><body class="standard">< ...
public bool ImportPurviewManIds(string fileName, string CurrentUserDomainId, string Pduid, string uploadtype)         {             try             {                 if (File.Exists(fileName))                 {                     //读取文件 一行一行读取                     StreamReader objReader = new StreamR ...
onSelectRow: function (id) {             curSelRow = id;         },         subGridRowExpanded: function (subgrid_id, row_id) {             var subgrid_table_id, pager_id;             subgrid_table_id = subgrid_id + "_t";             pager_id = "p_" + subgrid_table_id;             ...
public int ReadFromExcel(string fileName, string sheetName, System.Data.DataTable dataTable)         {             OleDbConnection connection = new System.Data.OleDb.OleDbConnection();             try             {                 string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data ...
private int ImportSheetData(string userno, string sheet, string bigT, DataTable dt, List<BigTColModel> lstColModel, ref string msg)         {             BigTColModel COL;             /**********   查找列表头对应的列序号   *******/             DataRow drTitle2 = dt.Rows[0];//二级表头             string colNam ...
cs:(上传文件并将Excel中的内容导入到数据库中) public JsonResult DoImport(string uploadtype, string q_t)         {             iPAL.Applications.Authen.LoginUser user = (iPAL.Applications.Authen.LoginUser)(Session["LoginUser"]);             m_userno = user.WorkNo;             AjaxCallResult result = new Ajax ...
aspx: <script src="/Content/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script src="/Content/Scripts/swfobject.js" type="text/javascript"></script> <script src="/Content/Scripts/jquery.uploadify.v2.1.0.min.js&q ...
Global site tag (gtag.js) - Google Analytics