Commit 94090af3 by mahaisong

fix: 过去手工梳理时错误减去了头部。

现在新增1个快速增加头部的功能。
parent a5924d38
...@@ -74,7 +74,7 @@ namespace StockListingRelatedCode ...@@ -74,7 +74,7 @@ namespace StockListingRelatedCode
if (!String.IsNullOrWhiteSpace(item12.QueryRule)) if (!String.IsNullOrWhiteSpace(item12.QueryRule))
{ {
string oldcontent = Util.DecodeRule(item12.QueryRule)[0]; string oldcontent = Util.DecodeRule(item12.QueryRule)[0];
if (oldcontent.Length > 1) if (oldcontent.Length > 1 && oldcontent.IndexOf("(")==0)
{ {
oldcontent = oldcontent.Remove(0, 1); oldcontent = oldcontent.Remove(0, 1);
updateDic.TryAdd(item12.OrganizationID, oldcontent.Replace("'", "")); //将数据中的单引号去除。 没办法,要执行update语句,就不能用单引号。 updateDic.TryAdd(item12.OrganizationID, oldcontent.Replace("'", "")); //将数据中的单引号去除。 没办法,要执行update语句,就不能用单引号。
......
namespace StockListingRelatedCode
{
partial class Form3
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.listBox1 = new System.Windows.Forms.ListBox();
this.button_OK = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// listBox1
//
this.listBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.listBox1.FormattingEnabled = true;
this.listBox1.ItemHeight = 16;
this.listBox1.Location = new System.Drawing.Point(38, 55);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(398, 228);
this.listBox1.TabIndex = 4;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// button_OK
//
this.button_OK.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button_OK.Location = new System.Drawing.Point(38, 12);
this.button_OK.Name = "button_OK";
this.button_OK.Size = new System.Drawing.Size(116, 31);
this.button_OK.TabIndex = 3;
this.button_OK.Text = "开始执行";
this.button_OK.UseVisualStyleBackColor = true;
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
//
// Form3
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(485, 324);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button_OK);
this.Name = "Form3";
this.Text = "对港股中没有后缀,却手工调试时减去的头部,补充上";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Button button_OK;
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
...@@ -546,5 +546,18 @@ namespace StockListingRelatedCode ...@@ -546,5 +546,18 @@ namespace StockListingRelatedCode
} }
} }
private void toolStripButton3_Click(object sender, EventArgs e)
{
Form3 shlog = new Form3();
shlog.FormClosing += new FormClosingEventHandler(Form3_FormClosing);
toolStripButton3.Enabled = false;
shlog.Show();
}
void Form3_FormClosing(object sender, FormClosingEventArgs e)
{
toolStripButton3.Enabled = true;
}
} }
} }
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.label5 = new System.Windows.Forms.Label();
this.textBox_ID = new System.Windows.Forms.TextBox();
this.button_Reset = new System.Windows.Forms.Button(); this.button_Reset = new System.Windows.Forms.Button();
this.button_OK = new System.Windows.Forms.Button(); this.button_OK = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
...@@ -44,8 +46,7 @@ ...@@ -44,8 +46,7 @@
this.textBox_HK = new System.Windows.Forms.TextBox(); this.textBox_HK = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox(); this.listBox1 = new System.Windows.Forms.ListBox();
this.button_Query = new System.Windows.Forms.Button(); this.button_Query = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.textBox_ID = new System.Windows.Forms.TextBox();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
...@@ -57,7 +58,8 @@ ...@@ -57,7 +58,8 @@
// //
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1, this.toolStripButton1,
this.toolStripButton2}); this.toolStripButton2,
this.toolStripButton3});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(905, 25); this.toolStrip1.Size = new System.Drawing.Size(905, 25);
...@@ -114,6 +116,22 @@ ...@@ -114,6 +116,22 @@
this.splitContainer1.SplitterDistance = 29; this.splitContainer1.SplitterDistance = 29;
this.splitContainer1.TabIndex = 0; this.splitContainer1.TabIndex = 0;
// //
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(11, 61);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(78, 13);
this.label5.TabIndex = 16;
this.label5.Text = "结果:港股ID";
//
// textBox_ID
//
this.textBox_ID.Location = new System.Drawing.Point(132, 58);
this.textBox_ID.Name = "textBox_ID";
this.textBox_ID.Size = new System.Drawing.Size(209, 20);
this.textBox_ID.TabIndex = 15;
//
// button_Reset // button_Reset
// //
this.button_Reset.Location = new System.Drawing.Point(494, 25); this.button_Reset.Location = new System.Drawing.Point(494, 25);
...@@ -221,21 +239,15 @@ ...@@ -221,21 +239,15 @@
this.button_Query.UseVisualStyleBackColor = true; this.button_Query.UseVisualStyleBackColor = true;
this.button_Query.Click += new System.EventHandler(this.button_Query_Click); this.button_Query.Click += new System.EventHandler(this.button_Query_Click);
// //
// label5 // toolStripButton3
// //
this.label5.AutoSize = true; this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.label5.Location = new System.Drawing.Point(11, 61); this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.label5.Name = "label5"; this.toolStripButton3.Name = "toolStripButton3";
this.label5.Size = new System.Drawing.Size(78, 13); this.toolStripButton3.Size = new System.Drawing.Size(100, 22);
this.label5.TabIndex = 16; this.toolStripButton3.Text = "补充头部引号";
this.label5.Text = "结果:港股ID"; this.toolStripButton3.ToolTipText = "补充头部引号";
// this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
// textBox_ID
//
this.textBox_ID.Location = new System.Drawing.Point(132, 58);
this.textBox_ID.Name = "textBox_ID";
this.textBox_ID.Size = new System.Drawing.Size(209, 20);
this.textBox_ID.TabIndex = 15;
// //
// MainForm // MainForm
// //
...@@ -280,6 +292,7 @@ ...@@ -280,6 +292,7 @@
private System.Windows.Forms.Button button_Reset; private System.Windows.Forms.Button button_Reset;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox_ID; private System.Windows.Forms.TextBox textBox_ID;
private System.Windows.Forms.ToolStripButton toolStripButton3;
} }
} }
...@@ -151,4 +151,19 @@ ...@@ -151,4 +151,19 @@
TgDQASA1MVpwzwAAAABJRU5ErkJggg== TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
</root> </root>
\ No newline at end of file
...@@ -71,6 +71,12 @@ ...@@ -71,6 +71,12 @@
<Compile Include="Form1.Designer.cs"> <Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form3.Designer.cs">
<DependentUpon>Form3.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs"> <Compile Include="Form2.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -90,6 +96,9 @@ ...@@ -90,6 +96,9 @@
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx"> <EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon> <DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
++ "b/9.StockListingRelatedCode/StockListingRelatedCode/bin/Debug/17_50_41_438\345\210\240\351\231\244\346\216\222\351\231\244\347\232\204\350\247\204\345\210\231-\346\211\247\350\241\214update\350\247\204\345\210\231\347\232\204SQL\350\257\255\345\217\245.txt"
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\StockListingRelatedCode.exe.config
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\StockListingRelatedCode.exe
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\StockListingRelatedCode.pdb
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\Dapper.dll
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\Google.Protobuf.dll
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\MySql.Data.dll
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\Dapper.xml
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\Google.Protobuf.xml
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\bin\Debug\MySql.Data.xml
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.Form1.resources
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.Form3.resources
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.Form2.resources
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.MainForm.resources
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.Properties.Resources.resources
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.csproj.GenerateResource.Cache
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.exe
D:\smallproject\9.StockListingRelatedCode\StockListingRelatedCode\obj\Debug\StockListingRelatedCode.pdb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment