提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+28 -1
View File
@@ -76,4 +76,31 @@ namespace Lskj.PubGetChipInfo
}
if (args.Length > 8 && !string.IsNullOrWhiteSpace(args[8]))
{
this.AfterSql = ar
this.AfterSql = args[8];
}
if (args.Length > 10)
{
this.Params = new string[args.Length];
for (int i = 10; i < args.Length; i++)
{
Params[i - 10] = args[i];
}
}
if (!string.IsNullOrEmpty(args[args.Length - 1]))
{
try
{
JObject rowObject = JsonConvert.DeserializeObject<JObject>(args[args.Length - 1]);
JArray jArray = new JArray();
jArray.Add(rowObject);
DataTable dataTable = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(jArray));
this.MaintabFocusedRow = dataTable.Rows[0];
}
catch (Exception)
{
}
}
}
}
}
}
+24 -1
View File
@@ -151,4 +151,27 @@ namespace Lskj.PubGetChipInfo
this.Controls.Add(this.lb_Bps);
this.Controls.Add(this.com_PortNum);
this.Controls.Add(this.lb_PortNum);
this.MaximizeBox = false
this.MaximizeBox = false;
this.Name = "FrmMain";
this.Text = "读取芯片数据";
((System.ComponentModel.ISupportInitialize)(this.com_Bps.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.com_PortNum.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtEdit_info.Properties)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label lb_PortNum;
private DevExpress.XtraEditors.ComboBoxEdit com_PortNum;
private DevExpress.XtraEditors.ComboBoxEdit com_Bps;
private System.Windows.Forms.Label lb_Bps;
private System.Windows.Forms.Label label2;
private DevExpress.XtraEditors.SimpleButton btn_Ok;
private DevExpress.XtraEditors.SimpleButton btn_Read;
private System.Windows.Forms.Label lb_info;
private DevExpress.XtraEditors.TextEdit txtEdit_info;
}
}
+30 -1
View File
@@ -370,4 +370,33 @@ namespace Lskj.PubGetChipInfo
{
if (txtEdit_info.InvokeRequired)
{
txtEdit_info.Invoke(new Action(() =>
{
txtEdit_info.Text = text;
}));
}
else
{
txtEdit_info.Text = text;
}
}
/// <summary>
/// 串口改变时
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnPortNumSelectedIndexChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("PubGetChipInfo_PortNum_{0}", this.GetChipInfoModel.ModuleCode), com_PortNum.Text);
}
/// <summary>
/// 波特率改变时
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnBpsSelectedIndexChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("PubGetChipInfo_Bps_{0}", this.GetChipInfoModel.ModuleCode), com_Bps.Text);
}
}
}
@@ -106,6 +106,7 @@
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
@@ -6,4 +6,31 @@ using System.Runtime.InteropServices;
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubGetChipInfo")]
[assembly: AssemblyDesc
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.PubGetChipInfo")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("c8e55459-4410-4f15-9017-4ea560036e19")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]