博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  JavaScript

摘要:/*-说明:通用JS函数库创建者:创建时间:2012-05-08-*/// tab键从左到右。windows onload时调用function TabOrderLefttoRight() {for (var i = 0; i 0) {for (var j = 0; j 0) {var filter_roleIds = "";for (var i = 0; i 0) {for (var j = 0; j 0) {return lookupitem[0];}}/*自动展开表单中,对指定lookup字段模糊快速查找后的下拉列表如:showLookupQuickFindList( 阅读全文

posted @ 2013-01-31 22:55 Hamilton Tan 阅读(1259) 评论(3) 推荐(1)

摘要:/*获取查找类型字段值的对象(适用于表单)如:var entityReferent=getEntityReferenceObject(accountid,"account","CRM客户");*/function getEntityReferenceObject(id, entityType, name) { var lookupReference = []; lookupReference[0] = {}; lookupReference[0].id = id; lookupReference[0].entityType = entityType; l 阅读全文

posted @ 2013-01-31 22:54 Hamilton Tan 阅读(375) 评论(0) 推荐(0)

摘要:var mnuBar1 = window.document.getElementById("mnuBar1"); var mnuBar1_UL = mnuBar1.getElementsByTagName("ul"); var mnuBar1_LIs = mnuBar1.getElementsByTagName("li"); if (mnuBar1_LIs != null && mnuBar1_LIs.length > 0) { for (var i = 0; i < mnuBar1_LIs.length; 阅读全文

posted @ 2012-11-09 23:55 Hamilton Tan 阅读(294) 评论(0) 推荐(0)

摘要:PopupsHandler.ashx:using System;using System.Collections.Generic;using System.Web;using System.Collections;using Microsoft.Crm.Sdk;using Microsoft.Crm.Sdk.Query;using Microsoft.Crm.Sdk.Utility;using Microsoft.Crm.SdkTypeProxy;using Frensworkz.CRM.XCMGCC.Web.Common;namespace Frensworkz.CRM.XCMGCC.Web 阅读全文

posted @ 2012-10-31 22:11 Hamilton Tan 阅读(284) 评论(0) 推荐(0)

摘要:/*说明:获取产品配置方案明细分组类型参数:IsBeiji 是否备机,IsDonate是否赠送,IsService是否服务,IsBaseService是否基本服务,TypeCode产品类型值 输出:int1 正常销售产品2 备机3 赠送4 基本保修服务5 收费服务6 赠送服务7 赠送-其他公司产品注意:TypeCode 为产品配置方案明细中的 产品类型*/function getGroupTypeCode(IsBeiji, IsDonate, IsService, IsBasicService, TypeCode) { if ((!IsBeiji) && ... 阅读全文

posted @ 2012-10-25 13:59 Hamilton Tan 阅读(389) 评论(0) 推荐(0)

摘要:typeof运算符介 绍:typeof 是一个一元运算,放在一个运算数之前,运算数可以是任意类型。它返回值是一个字符串,该字符串说明运算数的类型。你 知道下面typeof运算的结果吗?typeof(1);typeof(NaN);typeof(Number.MIN_VALUE);typeof(Infinity);typeof("123");typeof(true);typeof(window);typeof(document);typeof(null);typeof(eval);typeof(Date);typeof(sss);typeof(undefined);看 看你会几 阅读全文

posted @ 2012-10-22 20:43 Hamilton Tan 阅读(159) 评论(0) 推荐(0)

摘要:1. 简述 private、 protected、 public、 internal 修饰符的访问权限。答 . private :是一个成员访问修饰符。 私有访问是允许的最低访问级别。 私有成员只有在声明它们的类和结构体中才是可访问的。 protected :是一个成员访问修饰符。 受保护成员在其所 阅读全文

posted @ 2012-10-12 17:34 Hamilton Tan 阅读(299) 评论(0) 推荐(0)