Joey 3 týždňov pred
rodič
commit
3a76787b1f
2 zmenil súbory, kde vykonal 54 pridanie a 13 odobranie
  1. 43 2
      DataAccess.cs
  2. 11 11
      NavChart.Designer.cs

+ 43 - 2
DataAccess.cs

@@ -708,13 +708,15 @@ namespace DataManager
             return dt;
         }
 
-        public static DataTable Get_dm_report_orphan_fund(int? userId)
+        public static DataTable Get_dm_external_fund_mapping(sbyte? isOrphan, int? userId)
         {
             MySqlConnection connection = new MySqlConnection(connectionString);
-            MySqlDataAdapter ad = new MySqlDataAdapter("sp_get_dm_report_orphan_fund", connection);
+            MySqlDataAdapter ad = new MySqlDataAdapter("sp_get_dm_external_fund_mapping", connection);
 
+            MySqlParameter i_is_orphan = new MySqlParameter("i_is_orphan", isOrphan);
             MySqlParameter i_userid = new MySqlParameter("i_userid", userId);
 
+            ad.SelectCommand.Parameters.Add(i_is_orphan);
             ad.SelectCommand.Parameters.Add(i_userid);
 
             ad.SelectCommand.CommandType = CommandType.StoredProcedure;
@@ -752,5 +754,44 @@ namespace DataManager
                 cmd.ExecuteNonQuery();
             }
         }
+
+        public static DataTable Report_company_coverage(int? userId)
+        {
+            MySqlConnection connection = new MySqlConnection(connectionString);
+            MySqlDataAdapter ad = new MySqlDataAdapter("sp_dm_report_company_coverage", connection);
+
+            MySqlParameter i_userid = new MySqlParameter("i_userid", userId);
+
+            ad.SelectCommand.Parameters.Add(i_userid);
+
+            ad.SelectCommand.CommandType = CommandType.StoredProcedure;
+
+            DataTable dt = new DataTable();
+            ad.Fill(dt);
+
+            connection.Close();
+
+            return dt;
+        }
+
+        public static DataTable Get_dm_company_authorization(int? userId)
+        {
+            MySqlConnection connection = new MySqlConnection(connectionString);
+            MySqlDataAdapter ad = new MySqlDataAdapter("sp_get_dm_company_authorization", connection);
+
+            MySqlParameter i_userid = new MySqlParameter("i_userid", userId);
+
+            ad.SelectCommand.Parameters.Add(i_userid);
+
+            ad.SelectCommand.CommandType = CommandType.StoredProcedure;
+
+            DataTable dt = new DataTable();
+            ad.Fill(dt);
+
+            connection.Close();
+
+            return dt;
+        }
+
     }
 }

+ 11 - 11
NavChart.Designer.cs

@@ -33,13 +33,13 @@
             System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
             System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.cmbBenchmark = new System.Windows.Forms.ComboBox();
             this.btnDateChanged = new System.Windows.Forms.Button();
             this.cmbTimePeriod = new System.Windows.Forms.ComboBox();
             this.dtpEndDate = new System.Windows.Forms.DateTimePicker();
             this.label1 = new System.Windows.Forms.Label();
             this.dtpStartDate = new System.Windows.Forms.DateTimePicker();
             this.chtNav = new System.Windows.Forms.DataVisualization.Charting.Chart();
-            this.cmbBenchmark = new System.Windows.Forms.ComboBox();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.chtNav)).BeginInit();
             this.SuspendLayout();
@@ -59,6 +59,15 @@
             this.panel1.Size = new System.Drawing.Size(820, 64);
             this.panel1.TabIndex = 0;
             // 
+            // cmbBenchmark
+            // 
+            this.cmbBenchmark.FormattingEnabled = true;
+            this.cmbBenchmark.Location = new System.Drawing.Point(613, 16);
+            this.cmbBenchmark.Name = "cmbBenchmark";
+            this.cmbBenchmark.Size = new System.Drawing.Size(183, 25);
+            this.cmbBenchmark.TabIndex = 5;
+            this.cmbBenchmark.SelectedIndexChanged += new System.EventHandler(this.cmbBenchmark_SelectedIndexChanged);
+            // 
             // btnDateChanged
             // 
             this.btnDateChanged.Location = new System.Drawing.Point(329, 16);
@@ -137,15 +146,6 @@
             this.chtNav.Size = new System.Drawing.Size(820, 401);
             this.chtNav.TabIndex = 1;
             // 
-            // cmbBenchmark
-            // 
-            this.cmbBenchmark.FormattingEnabled = true;
-            this.cmbBenchmark.Location = new System.Drawing.Point(613, 16);
-            this.cmbBenchmark.Name = "cmbBenchmark";
-            this.cmbBenchmark.Size = new System.Drawing.Size(183, 25);
-            this.cmbBenchmark.TabIndex = 5;
-            this.cmbBenchmark.SelectedIndexChanged += new System.EventHandler(this.cmbBenchmark_SelectedIndexChanged);
-            // 
             // NavChart
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
@@ -156,7 +156,7 @@
             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 = "NavChart";
-            this.Text = "NavChart";
+            this.Text = "净值曲线";
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.chtNav)).EndInit();