1 Star 0 Fork 2

zkleaf/ PDA解决方案:活字格设计器插件( PDA(Android)交互命令)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Upsert_LocalKv.cs 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
using GrapeCity.Forguncy.Commands;
using GrapeCity.Forguncy.Plugin;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AndroidPDACommand
{
[Icon("pack://application:,,,/AndroidPDACommand;component/Resources/Icon_Kv.png")]
[Category("活字格安卓容器(HAC)")]
[OrderWeight(401)]
public class Upsert_LocalKv : Command, IPropertySearchable, IForceGenerateCell
{
[FormulaProperty]
[DisplayName("键(大小写敏感)")]
public object KeyString { get; set; }
[FormulaProperty]
[DisplayName("值")]
public object ValueString { get; set; }
public override string ToString()
{
return "将键值存入离线存储";
}
public override CommandScope GetCommandScope()
{
return CommandScope.All;
}
public IEnumerable<FindResultItem> EnumSearchableProperty(LocationIndicator location)
{
List<FindResultItem> result = new List<FindResultItem>();
result.Add(new FindResultItem() {
Location = location.AppendProperty("键"),
Value = KeyString?.ToString()
});
result.Add(new FindResultItem()
{
Location = location.AppendProperty("值"),
Value = ValueString?.ToString()
});
return result;
}
public IEnumerable<GenerateCellInfo> GetForceGenerateCells()
{
List<GenerateCellInfo> result = new List<GenerateCellInfo>();
if (KeyString is IFormulaReferObject formulaReferObject)
{
var kString = formulaReferObject.GetGenerateCellInfo();
if (kString != null)
{
result.Add(kString);
}
}
if (ValueString is IFormulaReferObject formulaReferObject2)
{
var vString = formulaReferObject2.GetGenerateCellInfo();
if (vString != null)
{
result.Add(vString);
}
}
return result;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/zkleaf/huozige-hac-plugin.git
git@gitee.com:zkleaf/huozige-hac-plugin.git
zkleaf
huozige-hac-plugin
PDA解决方案:活字格设计器插件( PDA(Android)交互命令)
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385