浏览代码

上传文件至 ''

Joey 6 月之前
父节点
当前提交
9c31c0acfa
共有 5 个文件被更改,包括 2476 次插入1 次删除
  1. 926 0
      DataManager.Designer.cs
  2. 581 0
      DataManager.cs
  3. 843 0
      UIFund.Designer.cs
  4. 6 1
      UIFund.cs
  5. 120 0
      UIFund.resx

+ 926 - 0
DataManager.Designer.cs

@@ -0,0 +1,926 @@
+namespace DataManager
+{
+    partial class frmDataManager
+    {
+        /// <summary>
+        /// 必需的设计器变量。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// 清理所有正在使用的资源。
+        /// </summary>
+        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows 窗体设计器生成的代码
+
+        /// <summary>
+        /// 设计器支持所需的方法 - 不要修改
+        /// 使用代码编辑器修改此方法的内容。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.ctnDataCollection = new System.Windows.Forms.SplitContainer();
+            this.dtpCollectionTaskDate = new System.Windows.Forms.DateTimePicker();
+            this.btnCollectionSearch = new System.Windows.Forms.Button();
+            this.txtCollectionProvider = new System.Windows.Forms.TextBox();
+            this.lblProvider = new System.Windows.Forms.Label();
+            this.txtCollectionEntity = new System.Windows.Forms.TextBox();
+            this.lblEntityKeyword = new System.Windows.Forms.Label();
+            this.cmbCollectionTaskStatus = new System.Windows.Forms.ComboBox();
+            this.lblTaskStatus = new System.Windows.Forms.Label();
+            this.cmbCollectionTaskType = new System.Windows.Forms.ComboBox();
+            this.lblTaskType = new System.Windows.Forms.Label();
+            this.lblUpdateDate = new System.Windows.Forms.Label();
+            this.cmbCollector = new System.Windows.Forms.ComboBox();
+            this.lblDataAnalyst = new System.Windows.Forms.Label();
+            this.grdCollectionTask = new System.Windows.Forms.DataGridView();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.lblCollectionTaskCount = new System.Windows.Forms.Label();
+            this.label11 = new System.Windows.Forms.Label();
+            this.btnAddCollectionTask = new System.Windows.Forms.Button();
+            this.tbcMain = new System.Windows.Forms.TabControl();
+            this.tbpContact = new System.Windows.Forms.TabPage();
+            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+            this.dtpContactFollowUpDate = new System.Windows.Forms.DateTimePicker();
+            this.dtpContactTaskDate = new System.Windows.Forms.DateTimePicker();
+            this.cmbContactCompanySize = new System.Windows.Forms.ComboBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.cmbContactPriority = new System.Windows.Forms.ComboBox();
+            this.label7 = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
+            this.btnContactSearch = new System.Windows.Forms.Button();
+            this.txtContactCompany = new System.Windows.Forms.TextBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.cmbContactTaskStatus = new System.Windows.Forms.ComboBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.cmbContactTaskType = new System.Windows.Forms.ComboBox();
+            this.label4 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.cmbContactor = new System.Windows.Forms.ComboBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.lblContactTaskCount = new System.Windows.Forms.Label();
+            this.label9 = new System.Windows.Forms.Label();
+            this.btnAddContactTask = new System.Windows.Forms.Button();
+            this.grdContactTask = new System.Windows.Forms.DataGridView();
+            this.tbpCollection = new System.Windows.Forms.TabPage();
+            this.tbpData = new System.Windows.Forms.TabPage();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tbpFund = new System.Windows.Forms.TabPage();
+            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+            this.btnSearchFund = new System.Windows.Forms.Button();
+            this.txtFundKeyword = new System.Windows.Forms.TextBox();
+            this.label10 = new System.Windows.Forms.Label();
+            this.grdFundList = new System.Windows.Forms.DataGridView();
+            this.tbpCompany = new System.Windows.Forms.TabPage();
+            this.splitContainer3 = new System.Windows.Forms.SplitContainer();
+            this.btnSearchCompany = new System.Windows.Forms.Button();
+            this.txtCompanyKeyword = new System.Windows.Forms.TextBox();
+            this.label12 = new System.Windows.Forms.Label();
+            this.grdCompanyList = new System.Windows.Forms.DataGridView();
+            this.tbpPeople = new System.Windows.Forms.TabPage();
+            this.sstData = new System.Windows.Forms.StatusStrip();
+            ((System.ComponentModel.ISupportInitialize)(this.ctnDataCollection)).BeginInit();
+            this.ctnDataCollection.Panel1.SuspendLayout();
+            this.ctnDataCollection.Panel2.SuspendLayout();
+            this.ctnDataCollection.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdCollectionTask)).BeginInit();
+            this.panel1.SuspendLayout();
+            this.tbcMain.SuspendLayout();
+            this.tbpContact.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+            this.splitContainer1.Panel1.SuspendLayout();
+            this.splitContainer1.Panel2.SuspendLayout();
+            this.splitContainer1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdContactTask)).BeginInit();
+            this.tbpCollection.SuspendLayout();
+            this.tbpData.SuspendLayout();
+            this.tabControl1.SuspendLayout();
+            this.tbpFund.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
+            this.splitContainer2.Panel1.SuspendLayout();
+            this.splitContainer2.Panel2.SuspendLayout();
+            this.splitContainer2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdFundList)).BeginInit();
+            this.tbpCompany.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
+            this.splitContainer3.Panel1.SuspendLayout();
+            this.splitContainer3.Panel2.SuspendLayout();
+            this.splitContainer3.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdCompanyList)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // ctnDataCollection
+            // 
+            this.ctnDataCollection.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.ctnDataCollection.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ctnDataCollection.Location = new System.Drawing.Point(6, 6);
+            this.ctnDataCollection.Name = "ctnDataCollection";
+            this.ctnDataCollection.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // ctnDataCollection.Panel1
+            // 
+            this.ctnDataCollection.Panel1.BackColor = System.Drawing.SystemColors.ControlLight;
+            this.ctnDataCollection.Panel1.Controls.Add(this.dtpCollectionTaskDate);
+            this.ctnDataCollection.Panel1.Controls.Add(this.btnCollectionSearch);
+            this.ctnDataCollection.Panel1.Controls.Add(this.txtCollectionProvider);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblProvider);
+            this.ctnDataCollection.Panel1.Controls.Add(this.txtCollectionEntity);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblEntityKeyword);
+            this.ctnDataCollection.Panel1.Controls.Add(this.cmbCollectionTaskStatus);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblTaskStatus);
+            this.ctnDataCollection.Panel1.Controls.Add(this.cmbCollectionTaskType);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblTaskType);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblUpdateDate);
+            this.ctnDataCollection.Panel1.Controls.Add(this.cmbCollector);
+            this.ctnDataCollection.Panel1.Controls.Add(this.lblDataAnalyst);
+            this.ctnDataCollection.Panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            // 
+            // ctnDataCollection.Panel2
+            // 
+            this.ctnDataCollection.Panel2.Controls.Add(this.grdCollectionTask);
+            this.ctnDataCollection.Panel2.Controls.Add(this.panel1);
+            this.ctnDataCollection.Size = new System.Drawing.Size(913, 590);
+            this.ctnDataCollection.SplitterDistance = 147;
+            this.ctnDataCollection.TabIndex = 2;
+            // 
+            // dtpCollectionTaskDate
+            // 
+            this.dtpCollectionTaskDate.Location = new System.Drawing.Point(306, 24);
+            this.dtpCollectionTaskDate.Name = "dtpCollectionTaskDate";
+            this.dtpCollectionTaskDate.Size = new System.Drawing.Size(121, 23);
+            this.dtpCollectionTaskDate.TabIndex = 33;
+            // 
+            // btnCollectionSearch
+            // 
+            this.btnCollectionSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnCollectionSearch.BackColor = System.Drawing.Color.SkyBlue;
+            this.btnCollectionSearch.Location = new System.Drawing.Point(771, 96);
+            this.btnCollectionSearch.Name = "btnCollectionSearch";
+            this.btnCollectionSearch.Size = new System.Drawing.Size(121, 28);
+            this.btnCollectionSearch.TabIndex = 12;
+            this.btnCollectionSearch.Text = "搜 索";
+            this.btnCollectionSearch.UseVisualStyleBackColor = false;
+            this.btnCollectionSearch.Click += new System.EventHandler(this.btnCollectionSearch_Click);
+            // 
+            // txtCollectionProvider
+            // 
+            this.txtCollectionProvider.Location = new System.Drawing.Point(79, 103);
+            this.txtCollectionProvider.MaxLength = 100;
+            this.txtCollectionProvider.Name = "txtCollectionProvider";
+            this.txtCollectionProvider.Size = new System.Drawing.Size(348, 23);
+            this.txtCollectionProvider.TabIndex = 11;
+            // 
+            // lblProvider
+            // 
+            this.lblProvider.AutoSize = true;
+            this.lblProvider.Location = new System.Drawing.Point(29, 107);
+            this.lblProvider.Name = "lblProvider";
+            this.lblProvider.Size = new System.Drawing.Size(32, 17);
+            this.lblProvider.TabIndex = 10;
+            this.lblProvider.Text = "来源";
+            // 
+            // txtCollectionEntity
+            // 
+            this.txtCollectionEntity.Location = new System.Drawing.Point(79, 63);
+            this.txtCollectionEntity.MaxLength = 100;
+            this.txtCollectionEntity.Name = "txtCollectionEntity";
+            this.txtCollectionEntity.Size = new System.Drawing.Size(348, 23);
+            this.txtCollectionEntity.TabIndex = 9;
+            // 
+            // lblEntityKeyword
+            // 
+            this.lblEntityKeyword.AutoSize = true;
+            this.lblEntityKeyword.Location = new System.Drawing.Point(29, 67);
+            this.lblEntityKeyword.Name = "lblEntityKeyword";
+            this.lblEntityKeyword.Size = new System.Drawing.Size(44, 17);
+            this.lblEntityKeyword.TabIndex = 8;
+            this.lblEntityKeyword.Text = "关键字";
+            // 
+            // cmbCollectionTaskStatus
+            // 
+            this.cmbCollectionTaskStatus.FormattingEnabled = true;
+            this.cmbCollectionTaskStatus.Location = new System.Drawing.Point(771, 23);
+            this.cmbCollectionTaskStatus.Name = "cmbCollectionTaskStatus";
+            this.cmbCollectionTaskStatus.Size = new System.Drawing.Size(121, 25);
+            this.cmbCollectionTaskStatus.TabIndex = 7;
+            // 
+            // lblTaskStatus
+            // 
+            this.lblTaskStatus.AutoSize = true;
+            this.lblTaskStatus.Location = new System.Drawing.Point(721, 27);
+            this.lblTaskStatus.Name = "lblTaskStatus";
+            this.lblTaskStatus.Size = new System.Drawing.Size(32, 17);
+            this.lblTaskStatus.TabIndex = 6;
+            this.lblTaskStatus.Text = "状态";
+            // 
+            // cmbCollectionTaskType
+            // 
+            this.cmbCollectionTaskType.FormattingEnabled = true;
+            this.cmbCollectionTaskType.Location = new System.Drawing.Point(539, 23);
+            this.cmbCollectionTaskType.Name = "cmbCollectionTaskType";
+            this.cmbCollectionTaskType.Size = new System.Drawing.Size(121, 25);
+            this.cmbCollectionTaskType.TabIndex = 5;
+            // 
+            // lblTaskType
+            // 
+            this.lblTaskType.AutoSize = true;
+            this.lblTaskType.Location = new System.Drawing.Point(489, 27);
+            this.lblTaskType.Name = "lblTaskType";
+            this.lblTaskType.Size = new System.Drawing.Size(32, 17);
+            this.lblTaskType.TabIndex = 4;
+            this.lblTaskType.Text = "任务";
+            // 
+            // lblUpdateDate
+            // 
+            this.lblUpdateDate.AutoSize = true;
+            this.lblUpdateDate.Location = new System.Drawing.Point(256, 27);
+            this.lblUpdateDate.Name = "lblUpdateDate";
+            this.lblUpdateDate.Size = new System.Drawing.Size(32, 17);
+            this.lblUpdateDate.TabIndex = 2;
+            this.lblUpdateDate.Text = "日期";
+            // 
+            // cmbCollector
+            // 
+            this.cmbCollector.FormattingEnabled = true;
+            this.cmbCollector.Location = new System.Drawing.Point(79, 23);
+            this.cmbCollector.Name = "cmbCollector";
+            this.cmbCollector.Size = new System.Drawing.Size(121, 25);
+            this.cmbCollector.TabIndex = 1;
+            // 
+            // lblDataAnalyst
+            // 
+            this.lblDataAnalyst.AutoSize = true;
+            this.lblDataAnalyst.Location = new System.Drawing.Point(29, 27);
+            this.lblDataAnalyst.Name = "lblDataAnalyst";
+            this.lblDataAnalyst.Size = new System.Drawing.Size(44, 17);
+            this.lblDataAnalyst.TabIndex = 0;
+            this.lblDataAnalyst.Text = "数据员";
+            // 
+            // grdCollectionTask
+            // 
+            this.grdCollectionTask.AllowUserToAddRows = false;
+            this.grdCollectionTask.AllowUserToDeleteRows = false;
+            this.grdCollectionTask.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+            this.grdCollectionTask.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.grdCollectionTask.DefaultCellStyle = dataGridViewCellStyle3;
+            this.grdCollectionTask.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.grdCollectionTask.Location = new System.Drawing.Point(0, 53);
+            this.grdCollectionTask.Name = "grdCollectionTask";
+            this.grdCollectionTask.ReadOnly = true;
+            this.grdCollectionTask.RowHeadersVisible = false;
+            this.grdCollectionTask.RowTemplate.Height = 23;
+            this.grdCollectionTask.Size = new System.Drawing.Size(913, 386);
+            this.grdCollectionTask.TabIndex = 0;
+            this.grdCollectionTask.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdCollectionTask_CellClick);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.PaleTurquoise;
+            this.panel1.Controls.Add(this.lblCollectionTaskCount);
+            this.panel1.Controls.Add(this.label11);
+            this.panel1.Controls.Add(this.btnAddCollectionTask);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(913, 53);
+            this.panel1.TabIndex = 1;
+            // 
+            // lblCollectionTaskCount
+            // 
+            this.lblCollectionTaskCount.AutoSize = true;
+            this.lblCollectionTaskCount.Location = new System.Drawing.Point(93, 19);
+            this.lblCollectionTaskCount.Name = "lblCollectionTaskCount";
+            this.lblCollectionTaskCount.Size = new System.Drawing.Size(15, 17);
+            this.lblCollectionTaskCount.TabIndex = 6;
+            this.lblCollectionTaskCount.Text = "0";
+            // 
+            // label11
+            // 
+            this.label11.AutoSize = true;
+            this.label11.Location = new System.Drawing.Point(18, 19);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(68, 17);
+            this.label11.TabIndex = 5;
+            this.label11.Text = "任务总数:";
+            // 
+            // btnAddCollectionTask
+            // 
+            this.btnAddCollectionTask.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAddCollectionTask.BackColor = System.Drawing.Color.Transparent;
+            this.btnAddCollectionTask.Location = new System.Drawing.Point(774, 13);
+            this.btnAddCollectionTask.Name = "btnAddCollectionTask";
+            this.btnAddCollectionTask.Size = new System.Drawing.Size(121, 28);
+            this.btnAddCollectionTask.TabIndex = 4;
+            this.btnAddCollectionTask.Text = "添 加 任 务";
+            this.btnAddCollectionTask.UseVisualStyleBackColor = false;
+            this.btnAddCollectionTask.Click += new System.EventHandler(this.btnAddCollectionTask_Click);
+            // 
+            // tbcMain
+            // 
+            this.tbcMain.Controls.Add(this.tbpContact);
+            this.tbcMain.Controls.Add(this.tbpCollection);
+            this.tbcMain.Controls.Add(this.tbpData);
+            this.tbcMain.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.tbcMain.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.tbcMain.ItemSize = new System.Drawing.Size(100, 28);
+            this.tbcMain.Location = new System.Drawing.Point(0, 0);
+            this.tbcMain.Name = "tbcMain";
+            this.tbcMain.SelectedIndex = 0;
+            this.tbcMain.Size = new System.Drawing.Size(933, 638);
+            this.tbcMain.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+            this.tbcMain.TabIndex = 13;
+            // 
+            // tbpContact
+            // 
+            this.tbpContact.Controls.Add(this.splitContainer1);
+            this.tbpContact.Location = new System.Drawing.Point(4, 32);
+            this.tbpContact.Margin = new System.Windows.Forms.Padding(6);
+            this.tbpContact.Name = "tbpContact";
+            this.tbpContact.Padding = new System.Windows.Forms.Padding(6);
+            this.tbpContact.Size = new System.Drawing.Size(925, 602);
+            this.tbpContact.TabIndex = 1;
+            this.tbpContact.Text = "联络";
+            this.tbpContact.UseVisualStyleBackColor = true;
+            // 
+            // splitContainer1
+            // 
+            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.splitContainer1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.splitContainer1.Location = new System.Drawing.Point(6, 6);
+            this.splitContainer1.Name = "splitContainer1";
+            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // splitContainer1.Panel1
+            // 
+            this.splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.ControlLight;
+            this.splitContainer1.Panel1.Controls.Add(this.dtpContactFollowUpDate);
+            this.splitContainer1.Panel1.Controls.Add(this.dtpContactTaskDate);
+            this.splitContainer1.Panel1.Controls.Add(this.cmbContactCompanySize);
+            this.splitContainer1.Panel1.Controls.Add(this.label2);
+            this.splitContainer1.Panel1.Controls.Add(this.cmbContactPriority);
+            this.splitContainer1.Panel1.Controls.Add(this.label7);
+            this.splitContainer1.Panel1.Controls.Add(this.label8);
+            this.splitContainer1.Panel1.Controls.Add(this.btnContactSearch);
+            this.splitContainer1.Panel1.Controls.Add(this.txtContactCompany);
+            this.splitContainer1.Panel1.Controls.Add(this.label1);
+            this.splitContainer1.Panel1.Controls.Add(this.cmbContactTaskStatus);
+            this.splitContainer1.Panel1.Controls.Add(this.label3);
+            this.splitContainer1.Panel1.Controls.Add(this.cmbContactTaskType);
+            this.splitContainer1.Panel1.Controls.Add(this.label4);
+            this.splitContainer1.Panel1.Controls.Add(this.label5);
+            this.splitContainer1.Panel1.Controls.Add(this.cmbContactor);
+            this.splitContainer1.Panel1.Controls.Add(this.label6);
+            // 
+            // splitContainer1.Panel2
+            // 
+            this.splitContainer1.Panel2.BackColor = System.Drawing.Color.Lavender;
+            this.splitContainer1.Panel2.Controls.Add(this.lblContactTaskCount);
+            this.splitContainer1.Panel2.Controls.Add(this.label9);
+            this.splitContainer1.Panel2.Controls.Add(this.btnAddContactTask);
+            this.splitContainer1.Panel2.Controls.Add(this.grdContactTask);
+            this.splitContainer1.Size = new System.Drawing.Size(913, 590);
+            this.splitContainer1.SplitterDistance = 143;
+            this.splitContainer1.TabIndex = 0;
+            // 
+            // dtpContactFollowUpDate
+            // 
+            this.dtpContactFollowUpDate.Location = new System.Drawing.Point(79, 64);
+            this.dtpContactFollowUpDate.Name = "dtpContactFollowUpDate";
+            this.dtpContactFollowUpDate.Size = new System.Drawing.Size(121, 23);
+            this.dtpContactFollowUpDate.TabIndex = 33;
+            // 
+            // dtpContactTaskDate
+            // 
+            this.dtpContactTaskDate.Location = new System.Drawing.Point(306, 24);
+            this.dtpContactTaskDate.Name = "dtpContactTaskDate";
+            this.dtpContactTaskDate.Size = new System.Drawing.Size(121, 23);
+            this.dtpContactTaskDate.TabIndex = 32;
+            // 
+            // cmbContactCompanySize
+            // 
+            this.cmbContactCompanySize.FormattingEnabled = true;
+            this.cmbContactCompanySize.Location = new System.Drawing.Point(539, 63);
+            this.cmbContactCompanySize.Name = "cmbContactCompanySize";
+            this.cmbContactCompanySize.Size = new System.Drawing.Size(121, 25);
+            this.cmbContactCompanySize.TabIndex = 31;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(489, 67);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(32, 17);
+            this.label2.TabIndex = 30;
+            this.label2.Text = "规模";
+            // 
+            // cmbContactPriority
+            // 
+            this.cmbContactPriority.FormattingEnabled = true;
+            this.cmbContactPriority.Location = new System.Drawing.Point(306, 63);
+            this.cmbContactPriority.Name = "cmbContactPriority";
+            this.cmbContactPriority.Size = new System.Drawing.Size(121, 25);
+            this.cmbContactPriority.TabIndex = 29;
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label7.Location = new System.Drawing.Point(256, 67);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(44, 17);
+            this.label7.TabIndex = 28;
+            this.label7.Text = "优先级";
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label8.Location = new System.Drawing.Point(29, 67);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(44, 17);
+            this.label8.TabIndex = 26;
+            this.label8.Text = "跟进日";
+            // 
+            // btnContactSearch
+            // 
+            this.btnContactSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnContactSearch.BackColor = System.Drawing.Color.SkyBlue;
+            this.btnContactSearch.Location = new System.Drawing.Point(771, 96);
+            this.btnContactSearch.Name = "btnContactSearch";
+            this.btnContactSearch.Size = new System.Drawing.Size(121, 28);
+            this.btnContactSearch.TabIndex = 25;
+            this.btnContactSearch.Text = "搜 索";
+            this.btnContactSearch.UseVisualStyleBackColor = false;
+            this.btnContactSearch.Click += new System.EventHandler(this.btnContactSearch_Click);
+            // 
+            // txtContactCompany
+            // 
+            this.txtContactCompany.Location = new System.Drawing.Point(79, 103);
+            this.txtContactCompany.MaxLength = 100;
+            this.txtContactCompany.Name = "txtContactCompany";
+            this.txtContactCompany.Size = new System.Drawing.Size(348, 23);
+            this.txtContactCompany.TabIndex = 24;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(29, 107);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(32, 17);
+            this.label1.TabIndex = 23;
+            this.label1.Text = "公司";
+            // 
+            // cmbContactTaskStatus
+            // 
+            this.cmbContactTaskStatus.FormattingEnabled = true;
+            this.cmbContactTaskStatus.Location = new System.Drawing.Point(771, 23);
+            this.cmbContactTaskStatus.Name = "cmbContactTaskStatus";
+            this.cmbContactTaskStatus.Size = new System.Drawing.Size(121, 25);
+            this.cmbContactTaskStatus.TabIndex = 20;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label3.Location = new System.Drawing.Point(721, 27);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(32, 17);
+            this.label3.TabIndex = 19;
+            this.label3.Text = "状态";
+            // 
+            // cmbContactTaskType
+            // 
+            this.cmbContactTaskType.FormattingEnabled = true;
+            this.cmbContactTaskType.Location = new System.Drawing.Point(539, 23);
+            this.cmbContactTaskType.Name = "cmbContactTaskType";
+            this.cmbContactTaskType.Size = new System.Drawing.Size(121, 25);
+            this.cmbContactTaskType.TabIndex = 18;
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(489, 27);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(32, 17);
+            this.label4.TabIndex = 17;
+            this.label4.Text = "任务";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label5.Location = new System.Drawing.Point(256, 27);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(32, 17);
+            this.label5.TabIndex = 15;
+            this.label5.Text = "日期";
+            // 
+            // cmbContactor
+            // 
+            this.cmbContactor.FormattingEnabled = true;
+            this.cmbContactor.Location = new System.Drawing.Point(79, 23);
+            this.cmbContactor.Name = "cmbContactor";
+            this.cmbContactor.Size = new System.Drawing.Size(121, 25);
+            this.cmbContactor.TabIndex = 14;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(29, 27);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(44, 17);
+            this.label6.TabIndex = 13;
+            this.label6.Text = "联络员";
+            // 
+            // lblContactTaskCount
+            // 
+            this.lblContactTaskCount.AutoSize = true;
+            this.lblContactTaskCount.Location = new System.Drawing.Point(90, 20);
+            this.lblContactTaskCount.Name = "lblContactTaskCount";
+            this.lblContactTaskCount.Size = new System.Drawing.Size(15, 17);
+            this.lblContactTaskCount.TabIndex = 3;
+            this.lblContactTaskCount.Text = "0";
+            // 
+            // label9
+            // 
+            this.label9.AutoSize = true;
+            this.label9.Location = new System.Drawing.Point(15, 20);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(68, 17);
+            this.label9.TabIndex = 2;
+            this.label9.Text = "任务总数:";
+            // 
+            // btnAddContactTask
+            // 
+            this.btnAddContactTask.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAddContactTask.BackColor = System.Drawing.Color.Transparent;
+            this.btnAddContactTask.Location = new System.Drawing.Point(771, 14);
+            this.btnAddContactTask.Name = "btnAddContactTask";
+            this.btnAddContactTask.Size = new System.Drawing.Size(121, 28);
+            this.btnAddContactTask.TabIndex = 1;
+            this.btnAddContactTask.Text = "添 加 任 务";
+            this.btnAddContactTask.UseVisualStyleBackColor = false;
+            this.btnAddContactTask.Click += new System.EventHandler(this.btnAddContactTask_Click);
+            // 
+            // grdContactTask
+            // 
+            this.grdContactTask.AllowUserToAddRows = false;
+            this.grdContactTask.AllowUserToDeleteRows = false;
+            this.grdContactTask.AllowUserToOrderColumns = true;
+            this.grdContactTask.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+            this.grdContactTask.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdContactTask.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.grdContactTask.Location = new System.Drawing.Point(0, 54);
+            this.grdContactTask.Name = "grdContactTask";
+            this.grdContactTask.ReadOnly = true;
+            this.grdContactTask.RowHeadersVisible = false;
+            this.grdContactTask.RowTemplate.Height = 23;
+            this.grdContactTask.Size = new System.Drawing.Size(913, 389);
+            this.grdContactTask.TabIndex = 0;
+            this.grdContactTask.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdContactTask_CellClick);
+            // 
+            // tbpCollection
+            // 
+            this.tbpCollection.Controls.Add(this.ctnDataCollection);
+            this.tbpCollection.Location = new System.Drawing.Point(4, 32);
+            this.tbpCollection.Margin = new System.Windows.Forms.Padding(6);
+            this.tbpCollection.Name = "tbpCollection";
+            this.tbpCollection.Padding = new System.Windows.Forms.Padding(6);
+            this.tbpCollection.Size = new System.Drawing.Size(925, 602);
+            this.tbpCollection.TabIndex = 0;
+            this.tbpCollection.Text = "采集";
+            this.tbpCollection.UseVisualStyleBackColor = true;
+            // 
+            // tbpData
+            // 
+            this.tbpData.BackColor = System.Drawing.Color.Transparent;
+            this.tbpData.Controls.Add(this.tabControl1);
+            this.tbpData.Controls.Add(this.sstData);
+            this.tbpData.Location = new System.Drawing.Point(4, 32);
+            this.tbpData.Margin = new System.Windows.Forms.Padding(6);
+            this.tbpData.Name = "tbpData";
+            this.tbpData.Padding = new System.Windows.Forms.Padding(6);
+            this.tbpData.Size = new System.Drawing.Size(925, 602);
+            this.tbpData.TabIndex = 2;
+            this.tbpData.Text = "数据";
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Bottom;
+            this.tabControl1.Controls.Add(this.tbpFund);
+            this.tabControl1.Controls.Add(this.tbpCompany);
+            this.tabControl1.Controls.Add(this.tbpPeople);
+            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.tabControl1.ItemSize = new System.Drawing.Size(96, 26);
+            this.tabControl1.Location = new System.Drawing.Point(6, 6);
+            this.tabControl1.Multiline = true;
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(913, 568);
+            this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+            this.tabControl1.TabIndex = 0;
+            // 
+            // tbpFund
+            // 
+            this.tbpFund.Controls.Add(this.splitContainer2);
+            this.tbpFund.Location = new System.Drawing.Point(4, 4);
+            this.tbpFund.Name = "tbpFund";
+            this.tbpFund.Padding = new System.Windows.Forms.Padding(3);
+            this.tbpFund.Size = new System.Drawing.Size(905, 534);
+            this.tbpFund.TabIndex = 0;
+            this.tbpFund.Text = "基金";
+            this.tbpFund.UseVisualStyleBackColor = true;
+            // 
+            // splitContainer2
+            // 
+            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.splitContainer2.Location = new System.Drawing.Point(3, 3);
+            this.splitContainer2.Name = "splitContainer2";
+            this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // splitContainer2.Panel1
+            // 
+            this.splitContainer2.Panel1.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.splitContainer2.Panel1.Controls.Add(this.btnSearchFund);
+            this.splitContainer2.Panel1.Controls.Add(this.txtFundKeyword);
+            this.splitContainer2.Panel1.Controls.Add(this.label10);
+            // 
+            // splitContainer2.Panel2
+            // 
+            this.splitContainer2.Panel2.Controls.Add(this.grdFundList);
+            this.splitContainer2.Size = new System.Drawing.Size(899, 528);
+            this.splitContainer2.SplitterDistance = 55;
+            this.splitContainer2.TabIndex = 0;
+            // 
+            // btnSearchFund
+            // 
+            this.btnSearchFund.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnSearchFund.BackColor = System.Drawing.Color.SkyBlue;
+            this.btnSearchFund.Location = new System.Drawing.Point(750, 15);
+            this.btnSearchFund.Name = "btnSearchFund";
+            this.btnSearchFund.Size = new System.Drawing.Size(121, 28);
+            this.btnSearchFund.TabIndex = 15;
+            this.btnSearchFund.Text = "搜 索";
+            this.btnSearchFund.UseVisualStyleBackColor = false;
+            this.btnSearchFund.Click += new System.EventHandler(this.btnSearchFund_Click);
+            // 
+            // txtFundKeyword
+            // 
+            this.txtFundKeyword.Location = new System.Drawing.Point(75, 17);
+            this.txtFundKeyword.MaxLength = 100;
+            this.txtFundKeyword.Name = "txtFundKeyword";
+            this.txtFundKeyword.Size = new System.Drawing.Size(225, 25);
+            this.txtFundKeyword.TabIndex = 14;
+            // 
+            // label10
+            // 
+            this.label10.AutoSize = true;
+            this.label10.Location = new System.Drawing.Point(21, 20);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(48, 19);
+            this.label10.TabIndex = 13;
+            this.label10.Text = "关键字";
+            // 
+            // grdFundList
+            // 
+            this.grdFundList.AllowUserToAddRows = false;
+            this.grdFundList.AllowUserToDeleteRows = false;
+            this.grdFundList.AllowUserToOrderColumns = true;
+            this.grdFundList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+            this.grdFundList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdFundList.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.grdFundList.Location = new System.Drawing.Point(0, 0);
+            this.grdFundList.Name = "grdFundList";
+            this.grdFundList.ReadOnly = true;
+            this.grdFundList.RowHeadersVisible = false;
+            this.grdFundList.RowTemplate.Height = 23;
+            this.grdFundList.Size = new System.Drawing.Size(899, 469);
+            this.grdFundList.TabIndex = 0;
+            this.grdFundList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdFundList_CellClick);
+            // 
+            // tbpCompany
+            // 
+            this.tbpCompany.BackColor = System.Drawing.Color.Transparent;
+            this.tbpCompany.Controls.Add(this.splitContainer3);
+            this.tbpCompany.Location = new System.Drawing.Point(4, 4);
+            this.tbpCompany.Name = "tbpCompany";
+            this.tbpCompany.Padding = new System.Windows.Forms.Padding(3);
+            this.tbpCompany.Size = new System.Drawing.Size(905, 534);
+            this.tbpCompany.TabIndex = 1;
+            this.tbpCompany.Text = "公司";
+            // 
+            // splitContainer3
+            // 
+            this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Top;
+            this.splitContainer3.Location = new System.Drawing.Point(3, 3);
+            this.splitContainer3.Name = "splitContainer3";
+            this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // splitContainer3.Panel1
+            // 
+            this.splitContainer3.Panel1.BackColor = System.Drawing.Color.Bisque;
+            this.splitContainer3.Panel1.Controls.Add(this.btnSearchCompany);
+            this.splitContainer3.Panel1.Controls.Add(this.txtCompanyKeyword);
+            this.splitContainer3.Panel1.Controls.Add(this.label12);
+            // 
+            // splitContainer3.Panel2
+            // 
+            this.splitContainer3.Panel2.Controls.Add(this.grdCompanyList);
+            this.splitContainer3.Size = new System.Drawing.Size(899, 525);
+            this.splitContainer3.SplitterDistance = 61;
+            this.splitContainer3.TabIndex = 0;
+            // 
+            // btnSearchCompany
+            // 
+            this.btnSearchCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnSearchCompany.BackColor = System.Drawing.Color.SkyBlue;
+            this.btnSearchCompany.Location = new System.Drawing.Point(753, 17);
+            this.btnSearchCompany.Name = "btnSearchCompany";
+            this.btnSearchCompany.Size = new System.Drawing.Size(121, 28);
+            this.btnSearchCompany.TabIndex = 18;
+            this.btnSearchCompany.Text = "搜 索";
+            this.btnSearchCompany.UseVisualStyleBackColor = false;
+            this.btnSearchCompany.Click += new System.EventHandler(this.btnSearchCompany_Click);
+            // 
+            // txtCompanyKeyword
+            // 
+            this.txtCompanyKeyword.Location = new System.Drawing.Point(78, 19);
+            this.txtCompanyKeyword.MaxLength = 100;
+            this.txtCompanyKeyword.Name = "txtCompanyKeyword";
+            this.txtCompanyKeyword.Size = new System.Drawing.Size(225, 25);
+            this.txtCompanyKeyword.TabIndex = 17;
+            // 
+            // label12
+            // 
+            this.label12.AutoSize = true;
+            this.label12.Location = new System.Drawing.Point(24, 22);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(48, 19);
+            this.label12.TabIndex = 16;
+            this.label12.Text = "关键字";
+            // 
+            // grdCompanyList
+            // 
+            this.grdCompanyList.AllowUserToAddRows = false;
+            this.grdCompanyList.AllowUserToDeleteRows = false;
+            this.grdCompanyList.AllowUserToOrderColumns = true;
+            this.grdCompanyList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdCompanyList.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.grdCompanyList.Location = new System.Drawing.Point(0, 0);
+            this.grdCompanyList.Name = "grdCompanyList";
+            this.grdCompanyList.RowHeadersVisible = false;
+            this.grdCompanyList.RowTemplate.Height = 23;
+            this.grdCompanyList.Size = new System.Drawing.Size(899, 460);
+            this.grdCompanyList.TabIndex = 0;
+            this.grdCompanyList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdCompanyList_CellClick);
+            // 
+            // tbpPeople
+            // 
+            this.tbpPeople.Location = new System.Drawing.Point(4, 4);
+            this.tbpPeople.Name = "tbpPeople";
+            this.tbpPeople.Size = new System.Drawing.Size(905, 534);
+            this.tbpPeople.TabIndex = 2;
+            this.tbpPeople.Text = "人物";
+            this.tbpPeople.UseVisualStyleBackColor = true;
+            // 
+            // sstData
+            // 
+            this.sstData.Location = new System.Drawing.Point(6, 574);
+            this.sstData.Name = "sstData";
+            this.sstData.Size = new System.Drawing.Size(913, 22);
+            this.sstData.TabIndex = 1;
+            // 
+            // frmDataManager
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(933, 638);
+            this.Controls.Add(this.tbcMain);
+            this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.Margin = new System.Windows.Forms.Padding(4);
+            this.Name = "frmDataManager";
+            this.Text = "DataManager";
+            this.ctnDataCollection.Panel1.ResumeLayout(false);
+            this.ctnDataCollection.Panel1.PerformLayout();
+            this.ctnDataCollection.Panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.ctnDataCollection)).EndInit();
+            this.ctnDataCollection.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdCollectionTask)).EndInit();
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            this.tbcMain.ResumeLayout(false);
+            this.tbpContact.ResumeLayout(false);
+            this.splitContainer1.Panel1.ResumeLayout(false);
+            this.splitContainer1.Panel1.PerformLayout();
+            this.splitContainer1.Panel2.ResumeLayout(false);
+            this.splitContainer1.Panel2.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+            this.splitContainer1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdContactTask)).EndInit();
+            this.tbpCollection.ResumeLayout(false);
+            this.tbpData.ResumeLayout(false);
+            this.tbpData.PerformLayout();
+            this.tabControl1.ResumeLayout(false);
+            this.tbpFund.ResumeLayout(false);
+            this.splitContainer2.Panel1.ResumeLayout(false);
+            this.splitContainer2.Panel1.PerformLayout();
+            this.splitContainer2.Panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+            this.splitContainer2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdFundList)).EndInit();
+            this.tbpCompany.ResumeLayout(false);
+            this.splitContainer3.Panel1.ResumeLayout(false);
+            this.splitContainer3.Panel1.PerformLayout();
+            this.splitContainer3.Panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
+            this.splitContainer3.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdCompanyList)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+        private System.Windows.Forms.SplitContainer ctnDataCollection;
+        private System.Windows.Forms.ComboBox cmbCollector;
+        private System.Windows.Forms.Label lblDataAnalyst;
+        private System.Windows.Forms.TextBox txtCollectionEntity;
+        private System.Windows.Forms.Label lblEntityKeyword;
+        private System.Windows.Forms.ComboBox cmbCollectionTaskStatus;
+        private System.Windows.Forms.Label lblTaskStatus;
+        private System.Windows.Forms.ComboBox cmbCollectionTaskType;
+        private System.Windows.Forms.Label lblTaskType;
+        private System.Windows.Forms.Label lblUpdateDate;
+        private System.Windows.Forms.TextBox txtCollectionProvider;
+        private System.Windows.Forms.Label lblProvider;
+        private System.Windows.Forms.Button btnCollectionSearch;
+        private System.Windows.Forms.DataGridView grdCollectionTask;
+        private System.Windows.Forms.TabControl tbcMain;
+        private System.Windows.Forms.TabPage tbpCollection;
+        private System.Windows.Forms.TabPage tbpContact;
+        private System.Windows.Forms.SplitContainer splitContainer1;
+        private System.Windows.Forms.Button btnContactSearch;
+        private System.Windows.Forms.TextBox txtContactCompany;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.ComboBox cmbContactTaskStatus;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.ComboBox cmbContactTaskType;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.ComboBox cmbContactor;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.DataGridView grdContactTask;
+        private System.Windows.Forms.TabPage tbpData;
+        private System.Windows.Forms.ComboBox cmbContactCompanySize;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.ComboBox cmbContactPriority;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Button btnAddContactTask;
+        private System.Windows.Forms.DateTimePicker dtpContactTaskDate;
+        private System.Windows.Forms.DateTimePicker dtpContactFollowUpDate;
+        private System.Windows.Forms.Label lblContactTaskCount;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.DateTimePicker dtpCollectionTaskDate;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label lblCollectionTaskCount;
+        private System.Windows.Forms.Label label11;
+        private System.Windows.Forms.Button btnAddCollectionTask;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tbpFund;
+        private System.Windows.Forms.TabPage tbpCompany;
+        private System.Windows.Forms.SplitContainer splitContainer2;
+        private System.Windows.Forms.TabPage tbpPeople;
+        private System.Windows.Forms.Button btnSearchFund;
+        private System.Windows.Forms.TextBox txtFundKeyword;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.DataGridView grdFundList;
+        private System.Windows.Forms.StatusStrip sstData;
+        private System.Windows.Forms.SplitContainer splitContainer3;
+        private System.Windows.Forms.Button btnSearchCompany;
+        private System.Windows.Forms.TextBox txtCompanyKeyword;
+        private System.Windows.Forms.Label label12;
+        private System.Windows.Forms.DataGridView grdCompanyList;
+    }
+}
+

+ 581 - 0
DataManager.cs

@@ -0,0 +1,581 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using static DataManager.DataAccess;
+using static DataManager.UIConstants;
+
+
+namespace DataManager
+{
+    public partial class frmDataManager : Form
+    {
+
+        private DateTime defaultDatetime = DateTime.Now.AddDays(-30);
+        private DataTable collectionTaskTable = new DataTable();
+        private DataTable contactTaskTable;
+
+        private static int userId;
+
+        public static int UserId { get => userId; set => userId = value; }
+
+        public frmDataManager(int userid)
+        {
+            UserId = userid;
+
+            InitializeComponent();
+
+            InitializeData();
+
+        }
+
+        private void InitializeData()
+        {
+
+
+            #region Contact Task Tab
+
+            DataTable dt_dm_user_1 = DataAccess.Get_dm_user(null, 1);
+            dt_dm_user_1.Rows.Add(DataAccess.DM_NULL, 1, "全部");
+            cmbContactor.DataSource = dt_dm_user_1;
+            cmbContactor.DisplayMember = "username";
+            cmbContactor.ValueMember = "userid";
+            cmbContactor.SelectedValue = UserId;
+
+            dtpContactTaskDate.Value = defaultDatetime;
+
+            BindingSource bs4 = new BindingSource();
+            Dictionary<int, string> d4 = new Dictionary<int, string>(ContactTaskType);
+            d4.Add(DM_NULL, "全部");
+            bs4.DataSource = d4;
+            cmbContactTaskType.DataSource = bs4;
+            cmbContactTaskType.DisplayMember = "Value";
+            cmbContactTaskType.ValueMember = "Key";
+            cmbContactTaskType.SelectedValue = (int)DM_NULL;
+
+
+            BindingSource bs = new BindingSource();
+            Dictionary<int, string> d = new Dictionary<int, string>(ContactTaskStatus);
+            d.Add(DM_NULL, "全部");
+            bs.DataSource = d;
+            cmbContactTaskStatus.DataSource = bs;
+            cmbContactTaskStatus.DisplayMember = "Value";
+            cmbContactTaskStatus.ValueMember = "Key";
+            cmbContactTaskStatus.SelectedValue = (int)DM_NULL;
+
+            BindingSource bs2 = new BindingSource();
+            Dictionary<int, string> d2 = new Dictionary<int, string>(TaskPriority);
+            d2.Add(DM_NULL, "全部");
+            bs2.DataSource = d2;
+            cmbContactPriority.DataSource = bs2;
+            cmbContactPriority.DisplayMember = "Value";
+            cmbContactPriority.ValueMember = "Key";
+            cmbContactPriority.SelectedValue = (int)DM_NULL;
+
+            BindingSource bs3 = new BindingSource();
+            Dictionary<int, string> d3 = new Dictionary<int, string>(CompanyAssetSize);
+            d3.Add(DM_NULL, "全部");
+            bs3.DataSource = d3;
+            cmbContactCompanySize.DataSource = bs3;
+            cmbContactCompanySize.DisplayMember = "Value";
+            cmbContactCompanySize.ValueMember = "Key";
+            cmbContactCompanySize.SelectedValue = (int)DM_NULL;
+
+            dtpContactFollowUpDate.ShowCheckBox = true;
+            dtpContactFollowUpDate.Checked = false;
+
+
+            #endregion
+
+            #region Collection Task Tab
+
+            DataTable dt_dm_user_2 = DataAccess.Get_dm_user(null, 2);
+            dt_dm_user_2.Rows.Add(DataAccess.DM_NULL, 2, "全部");
+            cmbCollector.DataSource = dt_dm_user_2;
+            cmbCollector.DisplayMember = "username";
+            cmbCollector.ValueMember = "userid";
+            cmbCollector.SelectedValue = UserId;
+
+            dtpCollectionTaskDate.Value = defaultDatetime;
+
+            BindingSource bs5 = new BindingSource();
+            Dictionary<int, string> d5 = new Dictionary<int, string>(CollectionTaskType);
+            d5.Add(DM_NULL, "全部");
+            bs5.DataSource = d5;
+            cmbCollectionTaskType.DataSource = bs5;
+            cmbCollectionTaskType.DisplayMember = "Value";
+            cmbCollectionTaskType.ValueMember = "Key";
+            cmbCollectionTaskType.SelectedValue = (int)DM_NULL;
+
+
+            BindingSource bs6 = new BindingSource();
+            Dictionary<int, string> d6 = new Dictionary<int, string>(CollectionTaskStatus);
+            d6.Add(DM_NULL, "全部");
+            bs6.DataSource = d6;
+            cmbCollectionTaskStatus.DataSource = bs6;
+            cmbCollectionTaskStatus.DisplayMember = "Value";
+            cmbCollectionTaskStatus.ValueMember = "Key";
+            cmbCollectionTaskStatus.SelectedValue = (int)DM_NULL;
+
+            #endregion
+        }
+
+        #region Contact Tab
+        private void LoadContactTaskGrid()
+        {
+            ContactTask task = CreateContactTaskFromUI();
+
+            int? userid = task.UserId;
+            if (userid == DM_NULL) userid = null;
+
+            short? taskType = task.TaskType;
+            if(taskType == DM_NULL) taskType = null;
+
+            sbyte? isvalid = task.Isvalid;
+            if(isvalid == DM_NULL) isvalid = null;
+
+            sbyte? priority = task.Priority;
+            if (priority == DM_NULL) priority = null;
+
+            sbyte? companyAssetSize = task.CompanyAssetSize;
+            if(companyAssetSize == DM_NULL) companyAssetSize = null;
+
+            contactTaskTable = DataAccess.Get_dm_contact_task(userid, null, task.CompanyId, task.CompanyShortName,
+                                                              task.TaskDate, taskType, isvalid, priority,
+                                                              task.FollowUpDate, companyAssetSize);
+            
+            grdContactTask.DataSource = contactTaskTable;
+
+            grdContactTask.Columns["task_id"].HeaderText = "ID";
+            grdContactTask.Columns["company_short_name"].HeaderText = "公司";
+            grdContactTask.Columns["task_date"].HeaderText = "日期";
+            grdContactTask.Columns["task_type_name"].HeaderText = "任务";
+            grdContactTask.Columns["isvalid_name"].HeaderText = "状态";
+            grdContactTask.Columns["priority_name"].HeaderText = "优先级";
+            grdContactTask.Columns["follow_up_date"].HeaderText = "跟进日";
+            grdContactTask.Columns["company_asset_size_name"].HeaderText = "规模";
+            grdContactTask.Columns["creator_name"].HeaderText = "创建";
+            grdContactTask.Columns["updater_name"].HeaderText = "更新";
+            grdContactTask.Columns["updatetime"].HeaderText = "更新时间";
+            
+            grdContactTask.Columns["company_id"].Visible = false;
+            grdContactTask.Columns["task_type"].Visible = false;
+            grdContactTask.Columns["isvalid"].Visible = false;
+            grdContactTask.Columns["priority"].Visible = false;
+            grdContactTask.Columns["company_asset_size"].Visible = false;
+            grdContactTask.Columns["creatorid"].Visible = false;
+            grdContactTask.Columns["createtime"].Visible = false;
+            grdContactTask.Columns["updaterid"].Visible = false;
+
+            grdContactTask.Columns["company_short_name"].DefaultCellStyle.ForeColor = Color.DodgerBlue;
+            grdContactTask.Columns["company_short_name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
+
+            lblContactTaskCount.Text = contactTaskTable.Rows.Count.ToString();
+        }
+
+        private ContactTask CreateContactTaskFromUI()
+        {
+            ContactTask task = new ContactTask();
+
+            task.UserId = int.Parse(cmbContactor.SelectedValue.ToString());
+
+            // 支持输 company_id或简称关键字的搜索
+            string keywrod = txtContactCompany.Text.Trim();
+            if (keywrod == String.Empty)
+            {
+                task.CompanyId = null;
+                task.CompanyShortName = null;
+            } else if (keywrod.Length == 10 && keywrod.ToUpper().Substring(0, 2) == "CO")
+            {
+                task.CompanyId = keywrod.ToUpper();
+                task.CompanyShortName = null;
+            } else
+            {
+                task.CompanyId = null;
+                task.CompanyShortName = keywrod;
+            }
+            task.TaskDate = DateTime.Parse(dtpContactTaskDate.Text.ToString());
+            task.TaskType = short.Parse(cmbContactTaskType.SelectedValue.ToString());
+            task.Isvalid = sbyte.Parse(cmbContactTaskStatus.SelectedValue.ToString());
+            task.Priority = sbyte.Parse(cmbContactPriority.SelectedValue.ToString());
+
+            task.CompanyAssetSize = sbyte.Parse(cmbContactCompanySize.SelectedValue.ToString());
+            
+            if (dtpContactFollowUpDate.Checked == true) 
+            {
+                task.FollowUpDate = DateTime.Parse(dtpContactFollowUpDate.Text.ToString()); 
+            } else { 
+                task.FollowUpDate = null; 
+            };
+
+            return task;
+        }
+        private void btnContactSearch_Click(object sender, EventArgs e)
+        {
+
+            LoadContactTaskGrid();
+        }
+
+
+        private void grdContactTask_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            int rowIndex = e.RowIndex;
+            int columnIndex = e.ColumnIndex;
+
+            if (columnIndex < 0 || rowIndex < 0) return;
+
+            DataRow row = contactTaskTable.Rows[rowIndex];
+
+            if (columnIndex == grdContactTask.Columns["company_short_name"].Index)
+            // 弹出公司页面
+            {
+                UICompany frmCompany = new UICompany(row.Field<string>("company_id"), UserId);
+                frmCompany.Show();
+            }
+            else
+            // 弹出联系任务编辑框
+            {
+
+                ContactTask task = new ContactTask(UserId, row.Field<int>("task_id"), row.Field<string>("company_id"), row.Field<string>("company_short_name"),
+                                       row.Field<DateTime>("task_date"), row.Field<short>("task_type"), row.Field<sbyte>("isvalid"), row.Field<sbyte>("priority"),
+                                       row.Field<DateTime?>("follow_up_date"), row.Field<sbyte?>("company_asset_size"),
+                                       row.Field<int?>("creatorid"), row.Field<string>("creator_name"), row.Field<DateTime?>("createtime"),
+                                       row.Field<int?>("updaterid"), row.Field<string>("updater_name"), row.Field<DateTime?>("updatetime"));
+
+                if (task != null)
+                {
+                    frmContactTask ctk = new frmContactTask(task);
+
+                    ctk.ShowDialog();
+
+                    // 刷新 grid 数据
+                    if (ctk.DialogResult == DialogResult.OK)
+                    {
+                        LoadContactTaskGrid();
+                    }
+                }
+            }
+        }
+
+
+        private void btnAddContactTask_Click(object sender, EventArgs e)
+        {
+            frmContactTask ctk = new frmContactTask(UserId);
+            ctk.ShowDialog();
+
+            // 刷新 grid 数据
+            if (ctk.DialogResult == DialogResult.OK)
+            {
+                LoadContactTaskGrid();
+            }
+        }
+        #endregion
+
+
+
+        #region Collection Tab
+
+        private void LoadCollectionTaskGrid()
+        {
+            CollectionTask task = CreatecCollectionTaskFromUI();
+
+            int? userId = task.UserId;
+            if (userId == DM_NULL) userId = null;
+
+            short? taskType = task.TaskType;
+            if (taskType == DM_NULL) taskType = null;
+
+            sbyte? isvalid = task.Isvalid;
+            if (isvalid == DM_NULL) isvalid = null;
+
+            collectionTaskTable = DataAccess.Get_dm_collection_task(userId, null, task.ProviderId, task.ProviderName,
+                                                              task.TaskDate, taskType, task.EntityId, task.EntityName,
+                                                              isvalid);
+
+            grdCollectionTask.DataSource = collectionTaskTable;
+
+            grdCollectionTask.Columns["task_id"].HeaderText = "ID";
+            grdCollectionTask.Columns["provider_name"].HeaderText = "来源";
+
+            grdCollectionTask.Columns["task_date"].HeaderText = "日期";
+            grdCollectionTask.Columns["task_type_name"].HeaderText = "任务";
+            grdCollectionTask.Columns["entity_name"].HeaderText = "主题";
+            grdCollectionTask.Columns["err_message"].HeaderText = "详情";
+            grdCollectionTask.Columns["isvalid_name"].HeaderText = "状态";
+            grdCollectionTask.Columns["creator_name"].HeaderText = "创建";
+            grdCollectionTask.Columns["updater_name"].HeaderText = "更新";
+            grdCollectionTask.Columns["updatetime"].HeaderText = "更新时间";
+
+            grdCollectionTask.Columns["provider_id"].Visible = false;
+            grdCollectionTask.Columns["task_type"].Visible = false;
+            grdCollectionTask.Columns["entity_id"].Visible = false;
+            grdCollectionTask.Columns["isvalid"].Visible = false;
+            grdCollectionTask.Columns["creatorid"].Visible = false;
+            grdCollectionTask.Columns["createtime"].Visible = false;
+            grdCollectionTask.Columns["updaterid"].Visible = false;
+
+            //grdCollectionTask.Columns["provider_name"].DefaultCellStyle.ForeColor = Color.DodgerBlue;
+            grdCollectionTask.Columns["entity_name"].DefaultCellStyle.ForeColor = Color.DodgerBlue;
+            grdCollectionTask.Columns["entity_name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
+
+            lblCollectionTaskCount.Text = collectionTaskTable.Rows.Count.ToString();
+        }
+
+
+        private CollectionTask CreatecCollectionTaskFromUI()
+        {
+            CollectionTask task = new CollectionTask();
+
+            task.UserId = int.Parse(cmbCollector.SelectedValue.ToString());
+
+            string providerKeyword = txtCollectionProvider.Text.Trim();
+            if (providerKeyword == string.Empty)
+            {
+                task.ProviderId = null;
+                task.ProviderName = null;
+            }
+            else if (providerKeyword.Length == 10 && providerKeyword.Substring(0, 2).ToUpper() == "CO")
+            {
+                task.ProviderId = providerKeyword.ToUpper();
+                task.ProviderName = null;
+            }
+            else
+            {
+                task.ProviderId = null;
+                task.ProviderName = providerKeyword;
+            }
+
+            task.TaskDate = DateTime.Parse(dtpCollectionTaskDate.Text.ToString());
+            task.TaskType = short.Parse(cmbCollectionTaskType.SelectedValue.ToString());
+
+
+            // 支持输入fund_id或简称关键字的搜索
+            string entityKeyword = txtCollectionEntity.Text.Trim();
+            if (entityKeyword == string.Empty)
+            {
+                task.EntityId = null;
+                task.EntityName = null;
+            }
+            else if (entityKeyword.Length == 10 && Regex.Match(entityKeyword.ToUpper(), "^[M|H]F").Success)
+            {
+                task.EntityId = entityKeyword.ToUpper();
+                task.EntityName = null;
+            }
+            else
+            {
+                task.EntityId = null;
+                task.EntityName = entityKeyword;
+            }
+
+            task.Isvalid = sbyte.Parse(cmbCollectionTaskStatus.SelectedValue.ToString());
+
+            return task;
+        }
+
+        private void btnCollectionSearch_Click(object sender, EventArgs e)
+        {
+            LoadCollectionTaskGrid();
+
+        }
+
+        private void grdCollectionTask_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            int rowIndex = e.RowIndex;
+            int columnIndex = e.ColumnIndex;
+
+            if (columnIndex < 0 || rowIndex < 0) return;
+            
+            DataRow row = collectionTaskTable.Rows[rowIndex];
+
+            if (columnIndex == grdCollectionTask.Columns["entity_name"].Index )
+            // 弹出基金页面
+            {
+                string entityId = row["entity_id"].ToString();
+                
+                if (entityId.Length == 10 && Regex.Match(entityId, "^[HM]F").Success)
+                {
+                    UIFund frmFund = new UIFund(entityId);
+                    frmFund.Show();
+                }
+            }
+            else
+            // 弹出采集任务编辑框
+            {
+
+                CollectionTask task = new CollectionTask(UserId, row.Field<int>("task_id"), row.Field<string>("provider_id"), row.Field<string>("provider_name"),
+                                       row.Field<DateTime>("task_date"), row.Field<short>("task_type"), 
+                                       row.Field<string>("entity_id"), row.Field<string>("entity_name"),
+                                       row.Field<string>("err_message"), row.Field<sbyte>("isvalid"), 
+                                       row.Field<int?>("creatorid"), row.Field<string>("creator_name"), row.Field<DateTime?>("createtime"),
+                                       row.Field<int?>("updaterid"), row.Field<string>("updater_name"), row.Field<DateTime?>("updatetime"));
+
+                if (task != null)
+                {
+                    UICollectionTask ctk = new  UICollectionTask(task);
+
+                    ctk.ShowDialog();
+
+                    // 刷新 grid 数据
+                    if (ctk.DialogResult == DialogResult.OK)
+                    {
+                        LoadCollectionTaskGrid();
+                    }
+                }
+            }
+
+        }
+        private void btnAddCollectionTask_Click(object sender, EventArgs e)
+        {
+            UICollectionTask ctk = new UICollectionTask(UserId);
+            ctk.ShowDialog();
+
+            // 刷新 grid 数据
+            if (ctk.DialogResult == DialogResult.OK)
+            {
+                LoadCollectionTaskGrid();
+            }
+        }
+
+
+        #endregion
+
+        #region Data - Fund
+        
+        private void LoadFundGrid()
+        {
+            string keyword = txtFundKeyword.Text.Trim();
+            if (keyword == string.Empty) { keyword = null; }
+            
+            // 只搜私募
+            DataTable dt = DataAccess.Search_dm_fund(RaiseType.FirstOrDefault(x=>x.Value== "私募").Key, keyword);
+
+            grdFundList.DataSource = dt;
+            
+            grdFundList.DefaultCellStyle.ForeColor = Color.DimGray;
+            
+            grdFundList.Columns["fund_id"].Visible = false;
+            grdFundList.Columns["fund_name"].HeaderText = "基金全名";
+            grdFundList.Columns["fund_short_name"].HeaderText = "基金简称";
+
+            grdFundList.Columns["company_id"].Visible = false;
+            grdFundList.Columns["company_short_name"].HeaderText = "公司简称";
+            grdFundList.Columns["strategy"].HeaderText = "策略分类";
+            grdFundList.Columns["substrategy"].HeaderText = "二级分类";
+            grdFundList.Columns["max_price_date"].HeaderText = "最新净值";
+            grdFundList.Columns["company_short_name"].DefaultCellStyle.ForeColor = Color.DodgerBlue;
+
+            grdFundList.Columns["max_price_date"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
+            grdFundList.Columns["fund_short_name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
+
+            ToolStripStatusLabel label = new ToolStripStatusLabel();
+            label.Text =  "记录条数:" + dt.Rows.Count.ToString();
+            sstData.Items.Clear();
+            sstData.Items.Add(label);
+        }
+        
+        private void btnSearchFund_Click(object sender, EventArgs e)
+        {
+            LoadFundGrid();
+        }
+
+
+
+        private void grdFundList_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            int rowIndex = e.RowIndex;
+            int columnIndex = e.ColumnIndex;
+
+            if (columnIndex < 0 || rowIndex < 0) return;
+
+            DataGridViewRow row = grdFundList.Rows[rowIndex];
+
+            if (columnIndex == grdFundList.Columns["company_short_name"].Index)
+            // 弹出公司页面
+            {
+                string entityId = row.Cells["company_id"].Value.ToString().ToUpper();
+
+                if (entityId.Length == 10 && Regex.Match(entityId, "^CO").Success)
+                {
+                    UICompany frm = new UICompany(entityId, UserId);
+
+                    frm.Show();
+                }
+            }
+            else
+            // 弹出基金页面
+            {
+                string entityId = row.Cells["fund_id"].Value.ToString().ToUpper();
+
+                if (entityId.Length == 10 && Regex.Match(entityId, "^[M|H]F").Success)
+                {
+                    UIFund frm = new UIFund(entityId);
+
+                    frm.Show();
+                }
+
+            }
+        }
+        #endregion
+
+        #region Data - Company
+
+        private void LoadCompanyGrid()
+        {
+            string keyword = txtCompanyKeyword.Text.Trim();
+            if (keyword == string.Empty) { keyword = null; }
+
+            // 只搜私募
+            DataTable dt = DataAccess.Search_dm_company(1, keyword);
+
+            grdCompanyList.DataSource = dt;
+
+            grdCompanyList.DefaultCellStyle.ForeColor = Color.DimGray;
+            grdCompanyList.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
+            //grdCompanyList.Columns["company_name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
+
+            grdCompanyList.Columns["company_id"].Visible = false;
+            grdCompanyList.Columns["company_name"].HeaderText = "公司全名";
+            grdCompanyList.Columns["company_short_name"].HeaderText = "公司简称";
+            grdCompanyList.Columns["company_asset_size"].Visible = false;
+            grdCompanyList.Columns["company_asset_size_name"].HeaderText = "管理规模";
+
+            grdCompanyList.Columns["company_name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
+
+            ToolStripStatusLabel label = new ToolStripStatusLabel();
+            label.Text = "记录条数:" + dt.Rows.Count.ToString();
+            sstData.Items.Clear();
+            sstData.Items.Add(label);
+        }
+        private void btnSearchCompany_Click(object sender, EventArgs e)
+        {
+            LoadCompanyGrid();
+        }
+
+        #endregion
+
+        private void grdCompanyList_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            int rowIndex = e.RowIndex;
+            int columnIndex = e.ColumnIndex;
+
+            if (columnIndex < 0 || rowIndex < 0) return;
+
+            DataGridViewRow row = grdCompanyList.Rows[rowIndex];
+
+            string entityId = row.Cells["company_id"].Value.ToString().ToUpper();
+
+            if (entityId.Length == 10 && Regex.Match(entityId, "^CO").Success)
+            {
+                UICompany frm = new UICompany(entityId, UserId);
+
+                frm.Show();
+            }
+        }
+    }
+}

+ 843 - 0
UIFund.Designer.cs

@@ -0,0 +1,843 @@
+namespace DataManager
+{
+    partial class UIFund
+    {
+        /// <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.splitContainer1 = new System.Windows.Forms.SplitContainer();
+            this.txtFundId = new System.Windows.Forms.TextBox();
+            this.txtRegisterCode = new System.Windows.Forms.TextBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.lblFundName = new System.Windows.Forms.Label();
+            this.tbcFund = new System.Windows.Forms.TabControl();
+            this.tbpBasicInfo = new System.Windows.Forms.TabPage();
+            this.spcBasicInfo = new System.Windows.Forms.SplitContainer();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.lblInceptionDate = new System.Windows.Forms.Label();
+            this.lblAmacUpdateDate = new System.Windows.Forms.Label();
+            this.label19 = new System.Windows.Forms.Label();
+            this.lblCustodian = new System.Windows.Forms.Label();
+            this.label21 = new System.Windows.Forms.Label();
+            this.lblStatus = new System.Windows.Forms.Label();
+            this.label23 = new System.Windows.Forms.Label();
+            this.lblCurrency = new System.Windows.Forms.Label();
+            this.label13 = new System.Windows.Forms.Label();
+            this.lblManagementType = new System.Windows.Forms.Label();
+            this.label15 = new System.Windows.Forms.Label();
+            this.lblRegisteDate = new System.Windows.Forms.Label();
+            this.label17 = new System.Windows.Forms.Label();
+            this.lblCompany = new System.Windows.Forms.Label();
+            this.label11 = new System.Windows.Forms.Label();
+            this.lblFundType = new System.Windows.Forms.Label();
+            this.label9 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
+            this.gpbFundEditing = new System.Windows.Forms.GroupBox();
+            this.cmbManagers = new System.Windows.Forms.ComboBox();
+            this.cmbStrategy = new System.Windows.Forms.ComboBox();
+            this.chkAuthorized = new System.Windows.Forms.CheckBox();
+            this.btnSave = new System.Windows.Forms.Button();
+            this.chkRating = new System.Windows.Forms.CheckBox();
+            this.chkRanking = new System.Windows.Forms.CheckBox();
+            this.txtParentFund = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.txtFundShortName = new System.Windows.Forms.TextBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.tbpNav = new System.Windows.Forms.TabPage();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label10 = new System.Windows.Forms.Label();
+            this.dtpNavEndDate = new System.Windows.Forms.DateTimePicker();
+            this.dtpNavStartDate = new System.Windows.Forms.DateTimePicker();
+            this.btnDrawNavLineChart = new System.Windows.Forms.Button();
+            this.btnAddNav = new System.Windows.Forms.Button();
+            this.label8 = new System.Windows.Forms.Label();
+            this.grdNav = new System.Windows.Forms.DataGridView();
+            this.tbpAsset = new System.Windows.Forms.TabPage();
+            this.tbpRating = new System.Windows.Forms.TabPage();
+            this.lblNavFrequency = new System.Windows.Forms.Label();
+            this.cmbAssetFrequency = new System.Windows.Forms.ComboBox();
+            this.cmbNavFrequency = new System.Windows.Forms.ComboBox();
+            this.label12 = new System.Windows.Forms.Label();
+            this.label14 = new System.Windows.Forms.Label();
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+            this.splitContainer1.Panel1.SuspendLayout();
+            this.splitContainer1.Panel2.SuspendLayout();
+            this.splitContainer1.SuspendLayout();
+            this.tbcFund.SuspendLayout();
+            this.tbpBasicInfo.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.spcBasicInfo)).BeginInit();
+            this.spcBasicInfo.Panel1.SuspendLayout();
+            this.spcBasicInfo.Panel2.SuspendLayout();
+            this.spcBasicInfo.SuspendLayout();
+            this.groupBox1.SuspendLayout();
+            this.gpbFundEditing.SuspendLayout();
+            this.tbpNav.SuspendLayout();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdNav)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // splitContainer1
+            // 
+            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
+            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
+            this.splitContainer1.Name = "splitContainer1";
+            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // splitContainer1.Panel1
+            // 
+            this.splitContainer1.Panel1.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.splitContainer1.Panel1.Controls.Add(this.txtFundId);
+            this.splitContainer1.Panel1.Controls.Add(this.txtRegisterCode);
+            this.splitContainer1.Panel1.Controls.Add(this.label3);
+            this.splitContainer1.Panel1.Controls.Add(this.label1);
+            this.splitContainer1.Panel1.Controls.Add(this.lblFundName);
+            // 
+            // splitContainer1.Panel2
+            // 
+            this.splitContainer1.Panel2.Controls.Add(this.tbcFund);
+            this.splitContainer1.Size = new System.Drawing.Size(800, 450);
+            this.splitContainer1.TabIndex = 0;
+            // 
+            // txtFundId
+            // 
+            this.txtFundId.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.txtFundId.BorderStyle = System.Windows.Forms.BorderStyle.None;
+            this.txtFundId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtFundId.Location = new System.Drawing.Point(677, 17);
+            this.txtFundId.Name = "txtFundId";
+            this.txtFundId.Size = new System.Drawing.Size(90, 16);
+            this.txtFundId.TabIndex = 5;
+            this.txtFundId.Text = "XX00000000";
+            // 
+            // txtRegisterCode
+            // 
+            this.txtRegisterCode.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.txtRegisterCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
+            this.txtRegisterCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtRegisterCode.Location = new System.Drawing.Point(492, 17);
+            this.txtRegisterCode.Name = "txtRegisterCode";
+            this.txtRegisterCode.Size = new System.Drawing.Size(79, 16);
+            this.txtRegisterCode.TabIndex = 4;
+            this.txtRegisterCode.Text = "XXXXXX";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label3.Location = new System.Drawing.Point(615, 17);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(56, 17);
+            this.label3.TabIndex = 3;
+            this.label3.Text = "基金代码";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(430, 17);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(56, 17);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "协会编号";
+            // 
+            // lblFundName
+            // 
+            this.lblFundName.AutoSize = true;
+            this.lblFundName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblFundName.Location = new System.Drawing.Point(23, 15);
+            this.lblFundName.Name = "lblFundName";
+            this.lblFundName.Size = new System.Drawing.Size(65, 20);
+            this.lblFundName.TabIndex = 0;
+            this.lblFundName.Text = "基金名称";
+            // 
+            // tbcFund
+            // 
+            this.tbcFund.Controls.Add(this.tbpBasicInfo);
+            this.tbcFund.Controls.Add(this.tbpNav);
+            this.tbcFund.Controls.Add(this.tbpAsset);
+            this.tbcFund.Controls.Add(this.tbpRating);
+            this.tbcFund.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.tbcFund.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.tbcFund.ItemSize = new System.Drawing.Size(60, 26);
+            this.tbcFund.Location = new System.Drawing.Point(0, 0);
+            this.tbcFund.Multiline = true;
+            this.tbcFund.Name = "tbcFund";
+            this.tbcFund.SelectedIndex = 0;
+            this.tbcFund.Size = new System.Drawing.Size(800, 396);
+            this.tbcFund.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+            this.tbcFund.TabIndex = 0;
+            // 
+            // tbpBasicInfo
+            // 
+            this.tbpBasicInfo.Controls.Add(this.spcBasicInfo);
+            this.tbpBasicInfo.Location = new System.Drawing.Point(4, 30);
+            this.tbpBasicInfo.Name = "tbpBasicInfo";
+            this.tbpBasicInfo.Padding = new System.Windows.Forms.Padding(3);
+            this.tbpBasicInfo.Size = new System.Drawing.Size(792, 362);
+            this.tbpBasicInfo.TabIndex = 0;
+            this.tbpBasicInfo.Text = "基本信息";
+            this.tbpBasicInfo.UseVisualStyleBackColor = true;
+            // 
+            // spcBasicInfo
+            // 
+            this.spcBasicInfo.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.spcBasicInfo.Location = new System.Drawing.Point(3, 3);
+            this.spcBasicInfo.Name = "spcBasicInfo";
+            this.spcBasicInfo.Orientation = System.Windows.Forms.Orientation.Horizontal;
+            // 
+            // spcBasicInfo.Panel1
+            // 
+            this.spcBasicInfo.Panel1.Controls.Add(this.groupBox1);
+            // 
+            // spcBasicInfo.Panel2
+            // 
+            this.spcBasicInfo.Panel2.Controls.Add(this.gpbFundEditing);
+            this.spcBasicInfo.Size = new System.Drawing.Size(786, 356);
+            this.spcBasicInfo.SplitterDistance = 142;
+            this.spcBasicInfo.TabIndex = 0;
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.lblInceptionDate);
+            this.groupBox1.Controls.Add(this.lblAmacUpdateDate);
+            this.groupBox1.Controls.Add(this.label19);
+            this.groupBox1.Controls.Add(this.lblCustodian);
+            this.groupBox1.Controls.Add(this.label21);
+            this.groupBox1.Controls.Add(this.lblStatus);
+            this.groupBox1.Controls.Add(this.label23);
+            this.groupBox1.Controls.Add(this.lblCurrency);
+            this.groupBox1.Controls.Add(this.label13);
+            this.groupBox1.Controls.Add(this.lblManagementType);
+            this.groupBox1.Controls.Add(this.label15);
+            this.groupBox1.Controls.Add(this.lblRegisteDate);
+            this.groupBox1.Controls.Add(this.label17);
+            this.groupBox1.Controls.Add(this.lblCompany);
+            this.groupBox1.Controls.Add(this.label11);
+            this.groupBox1.Controls.Add(this.lblFundType);
+            this.groupBox1.Controls.Add(this.label9);
+            this.groupBox1.Controls.Add(this.label7);
+            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBox1.Location = new System.Drawing.Point(0, 0);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(786, 142);
+            this.groupBox1.TabIndex = 0;
+            this.groupBox1.TabStop = false;
+            this.groupBox1.Text = "协会信息";
+            // 
+            // lblInceptionDate
+            // 
+            this.lblInceptionDate.AutoSize = true;
+            this.lblInceptionDate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblInceptionDate.Location = new System.Drawing.Point(80, 36);
+            this.lblInceptionDate.Name = "lblInceptionDate";
+            this.lblInceptionDate.Size = new System.Drawing.Size(82, 17);
+            this.lblInceptionDate.TabIndex = 12;
+            this.lblInceptionDate.Text = "XXXX-XX-XX";
+            // 
+            // lblAmacUpdateDate
+            // 
+            this.lblAmacUpdateDate.AutoSize = true;
+            this.lblAmacUpdateDate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblAmacUpdateDate.Location = new System.Drawing.Point(648, 101);
+            this.lblAmacUpdateDate.Name = "lblAmacUpdateDate";
+            this.lblAmacUpdateDate.Size = new System.Drawing.Size(82, 17);
+            this.lblAmacUpdateDate.TabIndex = 28;
+            this.lblAmacUpdateDate.Text = "XXXX-XX-XX";
+            // 
+            // label19
+            // 
+            this.label19.AutoSize = true;
+            this.label19.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label19.Location = new System.Drawing.Point(586, 101);
+            this.label19.Name = "label19";
+            this.label19.Size = new System.Drawing.Size(56, 17);
+            this.label19.TabIndex = 27;
+            this.label19.Text = "更新日期";
+            // 
+            // lblCustodian
+            // 
+            this.lblCustodian.AutoSize = true;
+            this.lblCustodian.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblCustodian.Location = new System.Drawing.Point(375, 101);
+            this.lblCustodian.Name = "lblCustodian";
+            this.lblCustodian.Size = new System.Drawing.Size(82, 17);
+            this.lblCustodian.TabIndex = 26;
+            this.lblCustodian.Text = "XXXX-XX-XX";
+            // 
+            // label21
+            // 
+            this.label21.AutoSize = true;
+            this.label21.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label21.Location = new System.Drawing.Point(313, 101);
+            this.label21.Name = "label21";
+            this.label21.Size = new System.Drawing.Size(44, 17);
+            this.label21.TabIndex = 25;
+            this.label21.Text = "托管人";
+            // 
+            // lblStatus
+            // 
+            this.lblStatus.AutoSize = true;
+            this.lblStatus.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblStatus.Location = new System.Drawing.Point(80, 101);
+            this.lblStatus.Name = "lblStatus";
+            this.lblStatus.Size = new System.Drawing.Size(82, 17);
+            this.lblStatus.TabIndex = 24;
+            this.lblStatus.Text = "XXXX-XX-XX";
+            // 
+            // label23
+            // 
+            this.label23.AutoSize = true;
+            this.label23.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label23.Location = new System.Drawing.Point(18, 101);
+            this.label23.Name = "label23";
+            this.label23.Size = new System.Drawing.Size(56, 17);
+            this.label23.TabIndex = 23;
+            this.label23.Text = "运行状态";
+            // 
+            // lblCurrency
+            // 
+            this.lblCurrency.AutoSize = true;
+            this.lblCurrency.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblCurrency.Location = new System.Drawing.Point(648, 69);
+            this.lblCurrency.Name = "lblCurrency";
+            this.lblCurrency.Size = new System.Drawing.Size(82, 17);
+            this.lblCurrency.TabIndex = 22;
+            this.lblCurrency.Text = "XXXX-XX-XX";
+            // 
+            // label13
+            // 
+            this.label13.AutoSize = true;
+            this.label13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label13.Location = new System.Drawing.Point(586, 69);
+            this.label13.Name = "label13";
+            this.label13.Size = new System.Drawing.Size(32, 17);
+            this.label13.TabIndex = 21;
+            this.label13.Text = "币种";
+            // 
+            // lblManagementType
+            // 
+            this.lblManagementType.AutoSize = true;
+            this.lblManagementType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblManagementType.Location = new System.Drawing.Point(375, 69);
+            this.lblManagementType.Name = "lblManagementType";
+            this.lblManagementType.Size = new System.Drawing.Size(82, 17);
+            this.lblManagementType.TabIndex = 20;
+            this.lblManagementType.Text = "XXXX-XX-XX";
+            // 
+            // label15
+            // 
+            this.label15.AutoSize = true;
+            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label15.Location = new System.Drawing.Point(313, 69);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(56, 17);
+            this.label15.TabIndex = 19;
+            this.label15.Text = "管理类型";
+            // 
+            // lblRegisteDate
+            // 
+            this.lblRegisteDate.AutoSize = true;
+            this.lblRegisteDate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblRegisteDate.Location = new System.Drawing.Point(80, 69);
+            this.lblRegisteDate.Name = "lblRegisteDate";
+            this.lblRegisteDate.Size = new System.Drawing.Size(82, 17);
+            this.lblRegisteDate.TabIndex = 18;
+            this.lblRegisteDate.Text = "XXXX-XX-XX";
+            // 
+            // label17
+            // 
+            this.label17.AutoSize = true;
+            this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label17.Location = new System.Drawing.Point(18, 69);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(56, 17);
+            this.label17.TabIndex = 17;
+            this.label17.Text = "备案日期";
+            // 
+            // lblCompany
+            // 
+            this.lblCompany.AutoSize = true;
+            this.lblCompany.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblCompany.Location = new System.Drawing.Point(648, 36);
+            this.lblCompany.Name = "lblCompany";
+            this.lblCompany.Size = new System.Drawing.Size(82, 17);
+            this.lblCompany.TabIndex = 16;
+            this.lblCompany.Text = "XXXX-XX-XX";
+            // 
+            // label11
+            // 
+            this.label11.AutoSize = true;
+            this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label11.Location = new System.Drawing.Point(586, 36);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(44, 17);
+            this.label11.TabIndex = 15;
+            this.label11.Text = "管理人";
+            // 
+            // lblFundType
+            // 
+            this.lblFundType.AutoSize = true;
+            this.lblFundType.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblFundType.Location = new System.Drawing.Point(375, 36);
+            this.lblFundType.Name = "lblFundType";
+            this.lblFundType.Size = new System.Drawing.Size(82, 17);
+            this.lblFundType.TabIndex = 14;
+            this.lblFundType.Text = "XXXX-XX-XX";
+            // 
+            // label9
+            // 
+            this.label9.AutoSize = true;
+            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label9.Location = new System.Drawing.Point(313, 36);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(56, 17);
+            this.label9.TabIndex = 13;
+            this.label9.Text = "基金类型";
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label7.Location = new System.Drawing.Point(18, 36);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(56, 17);
+            this.label7.TabIndex = 11;
+            this.label7.Text = "成立日期";
+            // 
+            // gpbFundEditing
+            // 
+            this.gpbFundEditing.Controls.Add(this.cmbAssetFrequency);
+            this.gpbFundEditing.Controls.Add(this.cmbNavFrequency);
+            this.gpbFundEditing.Controls.Add(this.label12);
+            this.gpbFundEditing.Controls.Add(this.label14);
+            this.gpbFundEditing.Controls.Add(this.cmbManagers);
+            this.gpbFundEditing.Controls.Add(this.cmbStrategy);
+            this.gpbFundEditing.Controls.Add(this.chkAuthorized);
+            this.gpbFundEditing.Controls.Add(this.btnSave);
+            this.gpbFundEditing.Controls.Add(this.chkRating);
+            this.gpbFundEditing.Controls.Add(this.chkRanking);
+            this.gpbFundEditing.Controls.Add(this.txtParentFund);
+            this.gpbFundEditing.Controls.Add(this.label6);
+            this.gpbFundEditing.Controls.Add(this.label5);
+            this.gpbFundEditing.Controls.Add(this.label4);
+            this.gpbFundEditing.Controls.Add(this.txtFundShortName);
+            this.gpbFundEditing.Controls.Add(this.label2);
+            this.gpbFundEditing.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.gpbFundEditing.Location = new System.Drawing.Point(0, 0);
+            this.gpbFundEditing.Name = "gpbFundEditing";
+            this.gpbFundEditing.Size = new System.Drawing.Size(786, 210);
+            this.gpbFundEditing.TabIndex = 0;
+            this.gpbFundEditing.TabStop = false;
+            // 
+            // cmbManagers
+            // 
+            this.cmbManagers.FormattingEnabled = true;
+            this.cmbManagers.Location = new System.Drawing.Point(651, 31);
+            this.cmbManagers.Name = "cmbManagers";
+            this.cmbManagers.Size = new System.Drawing.Size(105, 25);
+            this.cmbManagers.TabIndex = 13;
+            // 
+            // cmbStrategy
+            // 
+            this.cmbStrategy.FormattingEnabled = true;
+            this.cmbStrategy.Location = new System.Drawing.Point(392, 31);
+            this.cmbStrategy.Name = "cmbStrategy";
+            this.cmbStrategy.Size = new System.Drawing.Size(121, 25);
+            this.cmbStrategy.TabIndex = 12;
+            // 
+            // chkAuthorized
+            // 
+            this.chkAuthorized.AutoSize = true;
+            this.chkAuthorized.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.chkAuthorized.Location = new System.Drawing.Point(82, 105);
+            this.chkAuthorized.Name = "chkAuthorized";
+            this.chkAuthorized.Size = new System.Drawing.Size(75, 21);
+            this.chkAuthorized.TabIndex = 11;
+            this.chkAuthorized.Text = "合作授权";
+            this.chkAuthorized.UseVisualStyleBackColor = true;
+            // 
+            // btnSave
+            // 
+            this.btnSave.Enabled = false;
+            this.btnSave.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnSave.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.btnSave.Location = new System.Drawing.Point(651, 165);
+            this.btnSave.Name = "btnSave";
+            this.btnSave.Size = new System.Drawing.Size(105, 23);
+            this.btnSave.TabIndex = 9;
+            this.btnSave.Text = "保 存";
+            this.btnSave.UseVisualStyleBackColor = true;
+            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+            // 
+            // chkRating
+            // 
+            this.chkRating.AutoSize = true;
+            this.chkRating.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.chkRating.Location = new System.Drawing.Point(655, 105);
+            this.chkRating.Name = "chkRating";
+            this.chkRating.Size = new System.Drawing.Size(75, 21);
+            this.chkRating.TabIndex = 8;
+            this.chkRating.Text = "是否评级";
+            this.chkRating.UseVisualStyleBackColor = true;
+            // 
+            // chkRanking
+            // 
+            this.chkRanking.AutoSize = true;
+            this.chkRanking.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.chkRanking.Location = new System.Drawing.Point(392, 105);
+            this.chkRanking.Name = "chkRanking";
+            this.chkRanking.Size = new System.Drawing.Size(75, 21);
+            this.chkRanking.TabIndex = 7;
+            this.chkRanking.Text = "是否排名";
+            this.chkRanking.UseVisualStyleBackColor = true;
+            // 
+            // txtParentFund
+            // 
+            this.txtParentFund.Enabled = false;
+            this.txtParentFund.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtParentFund.Location = new System.Drawing.Point(82, 68);
+            this.txtParentFund.Name = "txtParentFund";
+            this.txtParentFund.Size = new System.Drawing.Size(165, 23);
+            this.txtParentFund.TabIndex = 6;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(18, 72);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(44, 17);
+            this.label6.TabIndex = 5;
+            this.label6.Text = "父基金";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label5.Location = new System.Drawing.Point(583, 33);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(56, 17);
+            this.label5.TabIndex = 2;
+            this.label5.Text = "基金经理";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(313, 33);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(56, 17);
+            this.label4.TabIndex = 2;
+            this.label4.Text = "投资策略";
+            // 
+            // txtFundShortName
+            // 
+            this.txtFundShortName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtFundShortName.Location = new System.Drawing.Point(82, 31);
+            this.txtFundShortName.Name = "txtFundShortName";
+            this.txtFundShortName.Size = new System.Drawing.Size(165, 23);
+            this.txtFundShortName.TabIndex = 1;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(18, 33);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(56, 17);
+            this.label2.TabIndex = 0;
+            this.label2.Text = "基金简称";
+            // 
+            // tbpNav
+            // 
+            this.tbpNav.Controls.Add(this.panel1);
+            this.tbpNav.Controls.Add(this.grdNav);
+            this.tbpNav.Location = new System.Drawing.Point(4, 30);
+            this.tbpNav.Name = "tbpNav";
+            this.tbpNav.Padding = new System.Windows.Forms.Padding(3);
+            this.tbpNav.Size = new System.Drawing.Size(792, 362);
+            this.tbpNav.TabIndex = 1;
+            this.tbpNav.Text = "净值";
+            this.tbpNav.UseVisualStyleBackColor = true;
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.PowderBlue;
+            this.panel1.Controls.Add(this.lblNavFrequency);
+            this.panel1.Controls.Add(this.label10);
+            this.panel1.Controls.Add(this.dtpNavEndDate);
+            this.panel1.Controls.Add(this.dtpNavStartDate);
+            this.panel1.Controls.Add(this.btnDrawNavLineChart);
+            this.panel1.Controls.Add(this.btnAddNav);
+            this.panel1.Controls.Add(this.label8);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(3, 3);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(786, 47);
+            this.panel1.TabIndex = 8;
+            // 
+            // label10
+            // 
+            this.label10.AutoSize = true;
+            this.label10.Location = new System.Drawing.Point(143, 18);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(24, 17);
+            this.label10.TabIndex = 7;
+            this.label10.Text = " 至";
+            // 
+            // dtpNavEndDate
+            // 
+            this.dtpNavEndDate.Checked = false;
+            this.dtpNavEndDate.Location = new System.Drawing.Point(171, 14);
+            this.dtpNavEndDate.MaxDate = new System.DateTime(2024, 8, 14, 0, 0, 0, 0);
+            this.dtpNavEndDate.MinDate = new System.DateTime(1990, 1, 1, 0, 0, 0, 0);
+            this.dtpNavEndDate.Name = "dtpNavEndDate";
+            this.dtpNavEndDate.ShowCheckBox = true;
+            this.dtpNavEndDate.Size = new System.Drawing.Size(130, 23);
+            this.dtpNavEndDate.TabIndex = 6;
+            this.dtpNavEndDate.Value = new System.DateTime(2024, 8, 14, 0, 0, 0, 0);
+            // 
+            // dtpNavStartDate
+            // 
+            this.dtpNavStartDate.Checked = false;
+            this.dtpNavStartDate.Location = new System.Drawing.Point(9, 14);
+            this.dtpNavStartDate.MaxDate = new System.DateTime(2024, 8, 14, 0, 0, 0, 0);
+            this.dtpNavStartDate.MinDate = new System.DateTime(1990, 1, 1, 0, 0, 0, 0);
+            this.dtpNavStartDate.Name = "dtpNavStartDate";
+            this.dtpNavStartDate.ShowCheckBox = true;
+            this.dtpNavStartDate.Size = new System.Drawing.Size(130, 23);
+            this.dtpNavStartDate.TabIndex = 5;
+            this.dtpNavStartDate.Value = new System.DateTime(2024, 8, 14, 0, 0, 0, 0);
+            // 
+            // btnDrawNavLineChart
+            // 
+            this.btnDrawNavLineChart.Location = new System.Drawing.Point(354, 13);
+            this.btnDrawNavLineChart.Name = "btnDrawNavLineChart";
+            this.btnDrawNavLineChart.Size = new System.Drawing.Size(75, 27);
+            this.btnDrawNavLineChart.TabIndex = 4;
+            this.btnDrawNavLineChart.Text = "净值曲线";
+            this.btnDrawNavLineChart.UseVisualStyleBackColor = true;
+            this.btnDrawNavLineChart.Click += new System.EventHandler(this.btnDrawNavLineChart_Click);
+            // 
+            // btnAddNav
+            // 
+            this.btnAddNav.Location = new System.Drawing.Point(697, 13);
+            this.btnAddNav.Name = "btnAddNav";
+            this.btnAddNav.Size = new System.Drawing.Size(75, 27);
+            this.btnAddNav.TabIndex = 3;
+            this.btnAddNav.Text = "添 加";
+            this.btnAddNav.UseVisualStyleBackColor = true;
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Location = new System.Drawing.Point(464, 18);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(56, 17);
+            this.label8.TabIndex = 0;
+            this.label8.Text = "数据频率";
+            // 
+            // grdNav
+            // 
+            this.grdNav.AllowUserToAddRows = false;
+            this.grdNav.AllowUserToDeleteRows = false;
+            this.grdNav.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdNav.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.grdNav.Location = new System.Drawing.Point(3, 49);
+            this.grdNav.Name = "grdNav";
+            this.grdNav.ReadOnly = true;
+            this.grdNav.RowHeadersVisible = false;
+            this.grdNav.RowTemplate.Height = 23;
+            this.grdNav.Size = new System.Drawing.Size(786, 310);
+            this.grdNav.TabIndex = 2;
+            this.grdNav.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdNav_CellContentClick);
+            // 
+            // tbpAsset
+            // 
+            this.tbpAsset.Location = new System.Drawing.Point(4, 30);
+            this.tbpAsset.Name = "tbpAsset";
+            this.tbpAsset.Size = new System.Drawing.Size(792, 362);
+            this.tbpAsset.TabIndex = 2;
+            this.tbpAsset.Text = "规模";
+            this.tbpAsset.UseVisualStyleBackColor = true;
+            // 
+            // tbpRating
+            // 
+            this.tbpRating.Location = new System.Drawing.Point(4, 30);
+            this.tbpRating.Name = "tbpRating";
+            this.tbpRating.Size = new System.Drawing.Size(792, 362);
+            this.tbpRating.TabIndex = 3;
+            this.tbpRating.Text = "评级";
+            this.tbpRating.UseVisualStyleBackColor = true;
+            // 
+            // lblNavFrequency
+            // 
+            this.lblNavFrequency.AutoSize = true;
+            this.lblNavFrequency.Location = new System.Drawing.Point(527, 18);
+            this.lblNavFrequency.Name = "lblNavFrequency";
+            this.lblNavFrequency.Size = new System.Drawing.Size(61, 17);
+            this.lblNavFrequency.TabIndex = 8;
+            this.lblNavFrequency.Text = "Nav Freq";
+            // 
+            // cmbAssetFrequency
+            // 
+            this.cmbAssetFrequency.Enabled = false;
+            this.cmbAssetFrequency.FormattingEnabled = true;
+            this.cmbAssetFrequency.Location = new System.Drawing.Point(651, 67);
+            this.cmbAssetFrequency.Name = "cmbAssetFrequency";
+            this.cmbAssetFrequency.Size = new System.Drawing.Size(105, 25);
+            this.cmbAssetFrequency.TabIndex = 17;
+            // 
+            // cmbNavFrequency
+            // 
+            this.cmbNavFrequency.FormattingEnabled = true;
+            this.cmbNavFrequency.Items.AddRange(new object[] {
+            "周",
+            "天",
+            "月",
+            "未知"});
+            this.cmbNavFrequency.Location = new System.Drawing.Point(392, 67);
+            this.cmbNavFrequency.Name = "cmbNavFrequency";
+            this.cmbNavFrequency.Size = new System.Drawing.Size(121, 25);
+            this.cmbNavFrequency.TabIndex = 16;
+            // 
+            // label12
+            // 
+            this.label12.AutoSize = true;
+            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label12.Location = new System.Drawing.Point(583, 72);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(56, 17);
+            this.label12.TabIndex = 14;
+            this.label12.Text = "规模频率";
+            // 
+            // label14
+            // 
+            this.label14.AutoSize = true;
+            this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label14.Location = new System.Drawing.Point(313, 72);
+            this.label14.Name = "label14";
+            this.label14.Size = new System.Drawing.Size(56, 17);
+            this.label14.TabIndex = 15;
+            this.label14.Text = "净值频率";
+            // 
+            // UIFund
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.splitContainer1);
+            this.Name = "UIFund";
+            this.Text = "基金";
+            this.splitContainer1.Panel1.ResumeLayout(false);
+            this.splitContainer1.Panel1.PerformLayout();
+            this.splitContainer1.Panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+            this.splitContainer1.ResumeLayout(false);
+            this.tbcFund.ResumeLayout(false);
+            this.tbpBasicInfo.ResumeLayout(false);
+            this.spcBasicInfo.Panel1.ResumeLayout(false);
+            this.spcBasicInfo.Panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.spcBasicInfo)).EndInit();
+            this.spcBasicInfo.ResumeLayout(false);
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            this.gpbFundEditing.ResumeLayout(false);
+            this.gpbFundEditing.PerformLayout();
+            this.tbpNav.ResumeLayout(false);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdNav)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.SplitContainer splitContainer1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label lblFundName;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.TabControl tbcFund;
+        private System.Windows.Forms.TabPage tbpBasicInfo;
+        private System.Windows.Forms.TabPage tbpNav;
+        private System.Windows.Forms.TabPage tbpAsset;
+        private System.Windows.Forms.TabPage tbpRating;
+        private System.Windows.Forms.SplitContainer spcBasicInfo;
+        private System.Windows.Forms.GroupBox gpbFundEditing;
+        private System.Windows.Forms.TextBox txtFundShortName;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.CheckBox chkRating;
+        private System.Windows.Forms.CheckBox chkRanking;
+        private System.Windows.Forms.TextBox txtParentFund;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Button btnSave;
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.Label lblInceptionDate;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label lblAmacUpdateDate;
+        private System.Windows.Forms.Label label19;
+        private System.Windows.Forms.Label lblCustodian;
+        private System.Windows.Forms.Label label21;
+        private System.Windows.Forms.Label lblStatus;
+        private System.Windows.Forms.Label label23;
+        private System.Windows.Forms.Label lblCurrency;
+        private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.Label lblManagementType;
+        private System.Windows.Forms.Label label15;
+        private System.Windows.Forms.Label lblRegisteDate;
+        private System.Windows.Forms.Label label17;
+        private System.Windows.Forms.Label lblCompany;
+        private System.Windows.Forms.Label label11;
+        private System.Windows.Forms.Label lblFundType;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.CheckBox chkAuthorized;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.DataGridView grdNav;
+        private System.Windows.Forms.Button btnAddNav;
+        private System.Windows.Forms.Button btnDrawNavLineChart;
+        private System.Windows.Forms.DateTimePicker dtpNavStartDate;
+        private System.Windows.Forms.DateTimePicker dtpNavEndDate;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.TextBox txtRegisterCode;
+        private System.Windows.Forms.TextBox txtFundId;
+        private System.Windows.Forms.ComboBox cmbStrategy;
+        private System.Windows.Forms.ComboBox cmbManagers;
+        private System.Windows.Forms.Label lblNavFrequency;
+        private System.Windows.Forms.ComboBox cmbAssetFrequency;
+        private System.Windows.Forms.ComboBox cmbNavFrequency;
+        private System.Windows.Forms.Label label12;
+        private System.Windows.Forms.Label label14;
+    }
+}

+ 6 - 1
UIFund.cs

@@ -1,4 +1,5 @@
 using System;
+using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -95,7 +96,11 @@ namespace DataManager
                 cmbStrategy.ValueMember = "Key";
                 cmbStrategy.SelectedValue = int.Parse(fundInfo.Rows[0]["strategy"].ToString());
 
-                // txtManager.Text = fundInfo.Rows[0]["manager_id"]
+                // 净值频率
+                string navFreq = fundInfo.Rows[0]["nav_frequency"].ToString().Trim();
+                if (string.IsNullOrEmpty(navFreq)) navFreq = "未知";
+                cmbNavFrequency.SelectedIndex = cmbNavFrequency.Items.IndexOf(navFreq);
+
                 chkRating.Checked = fundInfo.Rows[0]["is_rating"].ToString() == "1" ? true : false;
                 chkRanking.Checked = fundInfo.Rows[0]["is_ranking"].ToString() == "1" ? true : false;
                 chkAuthorized.Checked = fundInfo.Rows[0]["is_authorized"].ToString() == "1" ? true : false;

+ 120 - 0
UIFund.resx

@@ -0,0 +1,120 @@
+<?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>