我目前尚未确定CRM.它对于商业用户来说是一个很好的工具,但到目前为止,对于开发而言,它有点不利于它.我需要解决的下一个问题是如何轻松地获取表单中使用的控件javascript.我们使用TFS进行源代码控制.
任何人都有经验或有任何想法如何做到这一点?
明显的选择是将JS复制并粘贴到源代码控制中,但这也是后方明显的痛苦.
我正在寻找一种方法来为我的解决方案添加嵌入式资源.此资源将是包含大量文件的文件夹.根据用户需求,他们需要解压缩.
我正在寻找一种方法来存储这样的文件夹在可执行文件中而不涉及第三方库(看起来相当愚蠢,但这是任务).
我发现,我可以使用标准库GZip和UnGZip.但是GZip只处理单个文件.在这种情况下,TAR应该来到现场.但我没有在标准类中找到TAR实现.
也许有可能用裸露的C#解压缩TAR?
有没有办法检查冲突列表(冲突文件的名称和冲突数量)?
我发现的唯一的事情是审查预先创建的.git/MERGE_MSG
文件......但这不是我真正寻找的...
Chrome扩展程序包含在zip存档中.安装后,它安装在文件夹上,用户可以访问它.他也可以重写扩展甚至克隆到新扩展.
我如何保护用户修改和克隆的扩展?我发现dll文件的可能性(可以编译) - 但它不是很好.
在Dynamics CRM中,我经常从业务用户那里获得创建报告的要求.业务用户了解并谈论实体显示名称和属性标签.要编写查询,我需要将它们映射到实体名称和属性名称.我想用一个查询来查看.
我将如何加入dbo.LocalizedLabelView视图以获取以下查询中的AttributeLabel列?我无法弄清楚ObjectId应该引用什么.(如果你能告诉我你是如何找到答案我会特别感激的!)
select
[EntityName] = entityNames.Name,
[EntityDisplayName] = entityDisplayNames.Label,
[AttributeName] = attributeNames.PhysicalName,
[AttributeDisplayName] = attributeDisplayNames.Label
--[AttributeLabel] = attributeLabels.Label
from
dbo.EntityView entityNames
inner join dbo.LocalizedLabelView entityDisplayNames
on entityDisplayNames.ObjectId = entityNames.EntityId
and entityDisplayNames.ObjectColumnName = 'LocalizedName'
left outer join dbo.AttributeView attributeNames
on attributeNames.EntityID = entityNames.EntityID
inner join dbo.LocalizedLabelView attributeDisplayNames
on attributeDisplayNames.ObjectId = attributeNames.AttributeID
and attributeDisplayNames.ObjectColumnName = 'DisplayName'
and attributeDisplayNames.LanguageID = entityDisplayNames.LanguageID
--inner join dbo.LocalizedLabelView attributeLabels
-- on attributeLabels.ObjectId = ?????
-- and attributeLabels.LanguageID = …
Run Code Online (Sandbox Code Playgroud) 关于在TinyIoc中注册其他依赖项以便在NancyFX中使用,我还有另一个新手问题.
运行应用程序时,我将继续获得以下异常...
Unable to resolve type: AdvancedSearchService.Interfaces.IResponseFactory
Exception Details: TinyIoC.TinyIoCResolutionException: Unable to resolve type: AdvancedSearchService.Interfaces.IResponseFactory
Source Error:
Line 25: var container = TinyIoCContainer.Current;
Line 26:
Line 27: _responseFactory = container.Resolve<IResponseFactory>();
Line 28:
Line 29:
Run Code Online (Sandbox Code Playgroud)
我目前正在错误地注册我的依赖项,但我似乎无法弄清楚正确的方法.下面是我的自定义引导程序中的代码.另请注意,我目前没有调用base.ConfigureRequestContainer方法,因为我似乎无法弄清楚如何将当前上下文传递给它.
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
{
container.Register<IRavenSessionManager>(new RavenSessionManager());
base.ConfigureApplicationContainer(container);
ConfigureRequestContainer(container);
}
protected void ConfigureRequestContainer(TinyIoCContainer applicationContainer)
{
var requestContainer = applicationContainer.GetChildContainer();
requestContainer.Register<ISearchRepository>(new SearchRepository(requestContainer.Resolve<IRavenSessionManager>().GetSession()));
requestContainer.Register<IResponseFactory>(new ResponseFactory(requestContainer.Resolve<ISearchRepository>()));
//base.ConfigureRequestContainer(requestContainer,[I NEED THE CONTEXT])
}
Run Code Online (Sandbox Code Playgroud)
真的很感激任何帮助......显然我的无知没有限制:)
从我的mainform我打电话给以下打开一个新表格
MyForm sth = new MyForm();
sth.show();
Run Code Online (Sandbox Code Playgroud)
一切都很好但是这个表单有一个组合框,当我将其AutoCompleteMode切换为建议和附加时,我在显示表单时遇到了这个异常:
在进行OLE调用之前,必须将当前线程设置为单线程单元(STA)模式.确保您的Main函数标记了STAThreadAttribute.
我已根据异常的请求在我的main函数上设置了此属性:
[STAThread]
static void Main(string[] args)
{ ...
Run Code Online (Sandbox Code Playgroud)
我可以请一些帮助来了解可能出错的地方.
示例代码:
private void mainFormButtonCLick (object sender, EventArgs e)
{
// System.Threading.Thread.CurrentThread.SetApartmentState(ApartmentState.STA); ?
MyForm form = new MyForm();
form.show();
}
Run Code Online (Sandbox Code Playgroud)
设计师:
this.myCombo.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.myCombo.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.myCombo.FormattingEnabled = true;
this.myCombo.Location = new System.Drawing.Point(20, 12);
this.myCombo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.myCombo.Name = "myCombo";
this.myCombo.Size = new System.Drawing.Size(430, 28);
this.myCombo.Sorted = true;
this.myCombo.TabIndex = 0; phrase";
Run Code Online (Sandbox Code Playgroud)
设置数据源
public MyForm(List<string> elem)
{
InitializeComponent(); …
Run Code Online (Sandbox Code Playgroud) 我有这个代码,它将一个zip文件写入磁盘,将其读回,上传到s3,然后删除该文件:
compressed_file = some_temp_path
Zip::ZipOutputStream.open(compressed_file) do |zos|
some_file_list.each do |file|
zos.put_next_entry(file.some_title)
zos.print IO.read(file.path)
end
end # Write zip file
s3 = Aws::S3.new(S3_KEY, S3_SECRET)
bucket = Aws::S3::Bucket.create(s3, S3_BUCKET)
bucket.put("#{BUCKET_PATH}/archive.zip", IO.read(compressed_file), {}, 'authenticated-read')
File.delete(compressed_file)
Run Code Online (Sandbox Code Playgroud)
这段代码已经可以使用,但我想要的是不再创建zip文件,以节省一些步骤.我想知道是否有办法将zipfile数据直接导出到s3而不必先创建一个tmp文件,读回来然后删除它?
在GitHub上对组织有没有办法,看看你的组织是在其所有的里程碑同时做,而不是让浏览到每个回购并单击issues->的里程碑,只看见那一个?
如果这是不可能从界面我可能会去设置基于API的解决方案,如果这是唯一的方法.
我和我的团队正在使用CRM SDK中的SolutionPackager工具来版本化CRM 2011解决方案.
我们遇到了很多问题; 例如,语言的导出顺序取决于每个组织,另一个问题是每个实体的实体类型代码也取决于每个组织等等.
在我的团队中我们也使用相同类型的组织UR(Update Rollup)6,每个开发都有其虚拟机开发,所有VM都具有相同的配置,安装相同的语言包,我的意思是,我们也在相同的环境中工作.但现在我们面临另一个我们无法弄清楚的问题.从一个组织,我们说OrgA,我导出一个解决方案,应用解决方案包装器,然后从我们的一个实体获得一个XML,如:
<attribute PhysicalName="OrganizationId">
<Type>lookup</Type>
<Name>organizationid</Name>
<LogicalName>organizationid</LogicalName>
<RequiredLevel>none</RequiredLevel>
<ImeMode>auto</ImeMode>
<ValidForReadApi>1</ValidForReadApi>
<IsCustomField>0</IsCustomField>
<IsAuditEnabled>1</IsAuditEnabled>
<IsSecured>0</IsSecured>
<IsCustomizable>1</IsCustomizable>
<IsRenameable>1</IsRenameable>
<CanModifySearchSettings>1</CanModifySearchSettings>
<CanModifyRequirementLevelSettings>1</CanModifyRequirementLevelSettings>
<CanModifyAdditionalSettings>1</CanModifyAdditionalSettings>
<ReferencedEntityObjectTypeCode>1019</ReferencedEntityObjectTypeCode>
<LookupStyle>single</LookupStyle>
<LookupTypes />
<displaynames>
<displayname description="Organisations-ID" languagecode="1031" />
<displayname description="Organization Id" languagecode="1033" />
<displayname description="ID d'organisation " languagecode="1036" />
<displayname description="ID da Organização" languagecode="1046" />
<displayname description="Id. de la organización" languagecode="3082" />
</displaynames>
<Descriptions>
<Description description="Eindeutiger Bezeichner für die Organisation." languagecode="1031" />
<Description description="Unique identifier for the organization" languagecode="1033" />
<Description description="Identificateur unique de l'organisation" languagecode="1036" …
Run Code Online (Sandbox Code Playgroud)