摘要:
// 获取执行上下文IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));//创建SERVICEIOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));_service = serviceFact 阅读全文
摘要:
此PlugIn 是update的时候执行的// 获取执行上下文IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));// InputParameters属性包含所有输入参数数据if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entit 阅读全文
摘要:
//分配客户给某个负责人AssignRequest request = new AssignRequest();//分配请求request.Assignee = new EntityReference("systemuser", new Guid(manage));//分配给谁request.Target = new EntityReference("account", new Guid(ids));//分配的客户method.Execute(request);//执行 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文