Pārlūkot izejas kodu

上传文件至 ''

Joey 3 nedēļas atpakaļ
vecāks
revīzija
d393f8b238
2 mainītis faili ar 68 papildinājumiem un 17 dzēšanām
  1. 13 2
      NavChart.cs
  2. 55 15
      UIFund.Designer.cs

+ 13 - 2
NavChart.cs

@@ -51,10 +51,21 @@ namespace DataManager
 
             cmbTimePeriod.SelectedIndex = 0;
 
-            cmbBenchmark.DataSource = DataAccess.Get_dm_fund_benchmark(fundId);
+            if (!string.IsNullOrEmpty(fundId))
+            {
+                cmbBenchmark.DataSource = DataAccess.Get_dm_fund_benchmark(fundId);
+            }
+            else
+            {
+                DataTable dt = new DataTable();
+                dt.Columns.Add("index_id", typeof(string));
+                dt.Columns.Add("index_short_name", typeof(string));
+                dt.Rows.Add("IN00000008", "沪深300");
+                cmbBenchmark.DataSource = dt;
+            }
             cmbBenchmark.DisplayMember = "index_short_name";
             cmbBenchmark.ValueMember = "index_id";
-            cmbBenchmark.SelectedIndex = 0; 
+            cmbBenchmark.SelectedIndex = 0;
 
             chtNav.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.LightGray;
             chtNav.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.Gray;

+ 55 - 15
UIFund.Designer.cs

@@ -33,7 +33,6 @@
             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();
@@ -85,6 +84,10 @@
             this.grdNav = new System.Windows.Forms.DataGridView();
             this.tbpAsset = new System.Windows.Forms.TabPage();
             this.tbpRating = new System.Windows.Forms.TabPage();
+            this.txtMatchFund = new System.Windows.Forms.TextBox();
+            this.lblMatchFund = new System.Windows.Forms.Label();
+            this.lblMatchInstrunction = new System.Windows.Forms.Label();
+            this.txtFundName = new System.Windows.Forms.TextBox();
             ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
             this.splitContainer1.Panel1.SuspendLayout();
             this.splitContainer1.Panel2.SuspendLayout();
@@ -113,11 +116,11 @@
             // splitContainer1.Panel1
             // 
             this.splitContainer1.Panel1.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.splitContainer1.Panel1.Controls.Add(this.txtFundName);
             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
             // 
@@ -167,16 +170,6 @@
             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);
@@ -435,6 +428,9 @@
             // 
             // gpbFundEditing
             // 
+            this.gpbFundEditing.Controls.Add(this.lblMatchInstrunction);
+            this.gpbFundEditing.Controls.Add(this.txtMatchFund);
+            this.gpbFundEditing.Controls.Add(this.lblMatchFund);
             this.gpbFundEditing.Controls.Add(this.cmbAssetFrequency);
             this.gpbFundEditing.Controls.Add(this.cmbNavFrequency);
             this.gpbFundEditing.Controls.Add(this.label12);
@@ -669,25 +665,25 @@
             // 
             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);
+            this.dtpNavEndDate.ValueChanged += new System.EventHandler(this.dtpNavEndDate_ValueChanged);
             // 
             // 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);
+            this.dtpNavStartDate.ValueChanged += new System.EventHandler(this.dtpNavStartDate_ValueChanged);
             // 
             // btnDrawNavLineChart
             // 
@@ -751,6 +747,47 @@
             this.tbpRating.Text = "评级";
             this.tbpRating.UseVisualStyleBackColor = true;
             // 
+            // txtMatchFund
+            // 
+            this.txtMatchFund.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtMatchFund.Location = new System.Drawing.Point(83, 165);
+            this.txtMatchFund.Name = "txtMatchFund";
+            this.txtMatchFund.Size = new System.Drawing.Size(165, 23);
+            this.txtMatchFund.TabIndex = 19;
+            // 
+            // lblMatchFund
+            // 
+            this.lblMatchFund.AutoSize = true;
+            this.lblMatchFund.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblMatchFund.Location = new System.Drawing.Point(19, 168);
+            this.lblMatchFund.Name = "lblMatchFund";
+            this.lblMatchFund.Size = new System.Drawing.Size(56, 17);
+            this.lblMatchFund.TabIndex = 18;
+            this.lblMatchFund.Text = "匹配基金";
+            // 
+            // lblMatchInstrunction
+            // 
+            this.lblMatchInstrunction.AutoSize = true;
+            this.lblMatchInstrunction.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblMatchInstrunction.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
+            this.lblMatchInstrunction.Location = new System.Drawing.Point(264, 168);
+            this.lblMatchInstrunction.Name = "lblMatchInstrunction";
+            this.lblMatchInstrunction.Size = new System.Drawing.Size(119, 17);
+            this.lblMatchInstrunction.TabIndex = 20;
+            this.lblMatchInstrunction.Text = "输入十位HF基金代码";
+            // 
+            // txtFundName
+            // 
+            this.txtFundName.BackColor = System.Drawing.Color.LightSkyBlue;
+            this.txtFundName.BorderStyle = System.Windows.Forms.BorderStyle.None;
+            this.txtFundName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtFundName.Location = new System.Drawing.Point(12, 13);
+            this.txtFundName.Name = "txtFundName";
+            this.txtFundName.ReadOnly = true;
+            this.txtFundName.Size = new System.Drawing.Size(337, 22);
+            this.txtFundName.TabIndex = 6;
+            this.txtFundName.Text = "基金名称";
+            // 
             // UIFund
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -786,7 +823,6 @@
 
         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;
@@ -841,5 +877,9 @@
         private System.Windows.Forms.ComboBox cmbNavFrequency;
         private System.Windows.Forms.Label label12;
         private System.Windows.Forms.Label label14;
+        private System.Windows.Forms.TextBox txtMatchFund;
+        private System.Windows.Forms.Label lblMatchFund;
+        private System.Windows.Forms.Label lblMatchInstrunction;
+        private System.Windows.Forms.TextBox txtFundName;
     }
 }