摘要: // 获取执行上下文IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));//创建SERVICEIOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));_service = serviceFact 阅读全文
posted @ 2012-07-19 13:23 刘满意 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 此PlugIn 是update的时候执行的// 获取执行上下文IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));// InputParameters属性包含所有输入参数数据if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entit 阅读全文
posted @ 2012-07-19 13:10 刘满意 阅读(830) 评论(0) 推荐(0) 编辑
摘要: //分配客户给某个负责人AssignRequest request = new AssignRequest();//分配请求request.Assignee = new EntityReference("systemuser", new Guid(manage));//分配给谁request.Target = new EntityReference("account", new Guid(ids));//分配的客户method.Execute(request);//执行 阅读全文
posted @ 2012-07-19 13:03 刘满意 阅读(176) 评论(0) 推荐(0) 编辑
摘要: MS CRM2011 共享客户权限给用户GrantAccessRequest grantRequest = new GrantAccessRequest(){ Target = new EntityReference("account", new Guid(ids)),//要共享的对象,此处为客户 PrincipalAccess = new PrincipalAccess() { Principal = new EntityReference("systemuser", new Guid(manage)),//共享给某个用户 AccessMask = A 阅读全文
posted @ 2012-07-19 13:01 刘满意 阅读(333) 评论(1) 推荐(0) 编辑
摘要: DataSet ds = DbHelperOleDb.Query(sbSql.ToString()); DataTable dt = ds.Tables[0]; string[] agencyname = new string[6]; double[] sumshares = new double[6]; sumshares[5] = 0; for (int i = 0; i < dt.Rows.Count; i++) { if (i < 5) { agencyname[i] = dt.Rows[i]["fund_Name"].ToString(); sumsh 阅读全文
posted @ 2012-07-19 12:47 刘满意 阅读(2763) 评论(1) 推荐(1) 编辑
摘要: DataSet ds = DbHelperOleDb.Query(sbSql.ToString());//获取数据源Chart1.Series.Clear();//清空Series集合,自我感觉显示用例的时候清空下,重新添加容易控制 foreach (DataRow item in ds.Tables[0].Rows)//添加设置用例图标 { Chart1.Series.Add(item["fund_code"].ToString());//添加一个Series Chart1.Series[item["fund_code"].ToString()].Le 阅读全文
posted @ 2012-07-19 12:45 刘满意 阅读(2257) 评论(0) 推荐(1) 编辑