浏览代码

上传文件至 ''

Joey 1 月之前
父节点
当前提交
16638aba2c
共有 5 个文件被更改,包括 586 次插入0 次删除
  1. 87 0
      CollectionTask.cs
  2. 219 0
      UIConstants.cs
  3. 140 0
      UIPerson.Designer.cs
  4. 20 0
      UIPerson.cs
  5. 120 0
      UIPerson.resx

+ 87 - 0
CollectionTask.cs

@@ -0,0 +1,87 @@
+using MySqlX.Serialization;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.Design;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static Mysqlx.Crud.UpdateOperation.Types;
+
+namespace DataManager
+{
+
+    public class CollectionTask
+    {
+
+        private int userId; // 当前用户,注意:TA未必是任务所分配的用户
+        private int taskId;
+        private string providerId;
+        private string providerName;
+        private DateTime taskDate;
+        private short taskType;
+        private string entityId;
+        private string entityName;
+        private string errMessage;
+        private sbyte isvalid;
+        private int? creatorId;
+        private string creatorName;
+        private DateTime? createTime;
+        private int? updatorId;
+        private string updaterName;
+        private DateTime? updateTime;
+
+
+        public CollectionTask() { }
+
+        public CollectionTask(int userId, int taskId, string providerId, string providerName, DateTime taskDate, short taskType, 
+                              string entityId, string entityName,
+                              string errMessage, sbyte isvalid,
+                              int? creatorId, string creatorName, DateTime? createTime,
+                              int? updatorId, string updaterName, DateTime? updateTime)
+        {
+            UserId = userId;
+            TaskId = taskId;
+            ProviderId = providerId;
+            ProviderName = providerName;
+            TaskDate = taskDate;
+            TaskType = taskType;
+            EntityId = entityId;
+            EntityName = entityName;
+            ErrMessage = errMessage;
+            Isvalid = isvalid;
+            CreatorId = creatorId;
+            CreatorName = creatorName;
+            CreateTime = createTime;
+            UpdatorId = updatorId;
+            UpdaterName = updaterName;
+            UpdateTime = updateTime;
+
+        }
+        public int SaveToSQL(int userId)
+        {
+            int task_id = 0;
+
+            DataAccess.Set_dm_collection_task(taskId, providerId, taskDate, taskType, entityId, errMessage, isvalid, userId, out task_id);
+
+            return task_id;
+        }
+
+        public int UserId { get => userId; set => userId = value; }
+        public int TaskId { get => taskId; set => taskId = value; }
+        public string ProviderId { get => providerId; set => providerId = value; }
+        public string ProviderName { get => providerName; set => providerName = value; }
+        public DateTime TaskDate { get => taskDate; set => taskDate = value; }
+        public short TaskType { get => taskType; set => taskType = value; }
+        public string EntityId { get => entityId; set => entityId = value; }
+        public string EntityName { get => entityName; set => entityName = value; }
+        public string ErrMessage { get => errMessage; set => errMessage = value; }
+
+        public sbyte Isvalid { get => isvalid; set => isvalid = value; }
+        public int? CreatorId { get => creatorId; set => creatorId = value; }
+        public string CreatorName { get => creatorName; set => creatorName = value; }
+        public DateTime? CreateTime { get => createTime; set => createTime = value; }
+        public int? UpdatorId { get => updatorId; set => updatorId = value; }
+        public string UpdaterName { get => updaterName; set => updaterName = value; }
+        public DateTime? UpdateTime { get => updateTime; set => updateTime = value; }
+    }
+}

+ 219 - 0
UIConstants.cs

@@ -0,0 +1,219 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Data;
+using System.Threading.Tasks;
+using System.Collections.ObjectModel;
+using System.Windows.Forms;
+
+namespace DataManager
+{
+    public class UIConstants
+    {
+
+        public struct User
+        {
+            public int UserId;
+            public string UserName;
+            public int OrgId;
+        };
+        public static User user;
+
+        public enum JobType
+        {
+            Contact = 1,
+            Collection = 2
+        };
+
+
+        public static readonly Dictionary<int, string> ContactTaskType = new Dictionary<int, string>
+        {
+            { 1, "建立合作" },
+            { 0, "未知"}
+        };
+
+        public static readonly Dictionary<int, string> CollectionTaskType = new Dictionary<int, string>
+        {
+            { 1, "邮件处理" },
+            { 2, "文件解析"},
+            { 3, "净值校验"},
+            { 4, "资产校验"},
+            { 5, "新基金"},
+            { 6, "净值缺失"},
+            { 7, "资产缺失"},
+            { 8, "历史净值"},
+            { 9, "历史资产"},
+            { 0, "未知"}
+
+        };
+
+
+        public static readonly Dictionary<int, string> TaskPriority = new Dictionary<int, string>
+        {
+            { 0, "低" },
+            { 1, "中" },
+            { 2, "高" }
+        };
+
+        public static readonly Dictionary<int, string> ContactTaskStatus = new Dictionary<int, string>
+        {
+            { 0, "删除" },
+            { 1, "成功" },
+            { 2, "未发送" },
+            { 3, "等待回复" },
+            { 4, "等待协议" },
+            { 5, "拒绝" }
+        };
+
+
+        public static readonly Dictionary<int, string> CollectionTaskStatus = new Dictionary<int, string>
+        {
+            { 0, "删除" },
+            { 1, "解决" },
+            { 2, "未处理" },
+            { 3, "等待回复" },
+            { 4, "忽略" }
+        };
+
+        public static readonly Dictionary<int, string> CompanyAssetSize = new Dictionary<int, string>
+        {
+            { 1, "0-5亿" },
+            { 2, "5-10亿" },
+            { 3, "10-20亿" },
+            { 4, "20-50亿" },
+            { 5, "50-100亿" },
+            { 6, ">100亿" }
+        };
+
+        public static readonly Dictionary<int, string> CompanyOwnerType = new Dictionary<int, string>
+        {
+            { 1, "中外合作企业" },
+            { 2, "中外合资企业" },
+            { 3, "内资企业" },
+            { 4, "境外机构" },
+            { 5, "外商独资企业" },
+            { 6, "政府机构" }
+        };
+
+        public static readonly Dictionary<int, string> CompanyRegisterStatus = new Dictionary<int, string>
+        {
+            { 0, "未备案" },
+            { 1, "备案注销" },
+            { 2, "备案存续" }
+        };
+
+        public static readonly Dictionary<int, string> CompanyType = new Dictionary<int, string>
+        {
+            { 0, "未知" },
+            { 1, "私募证券投资" },
+            { 2, "公募基金公司" },
+            { 3, "银行" },
+            { 4, "证券公司" },
+            { 5, "信托公司" },
+            { 6, "审计机构" },
+            { 7, "法律顾问" },
+            { 8, "投资顾问" },
+            { 9, "行政管理人" },
+            { 10, "上市公司" },
+            { 11, "期货公司" },
+            { 12, "基金子公司" },
+            { 13, "工作室" },
+            { 14, "私募股权投资" },
+            { 15, "证券子公司" },
+            { 16, "期货子公司" },
+            { 17, "私募创业投资" },
+            { 18, "私募其他投资" },
+            { 19, "保险公司" },
+            { 20, "保险子公司" },
+            { 21, "私募资产配置类" },
+            { 22, "证券公司私募子公司" },
+            { 23, "独立第三方销售机构" },
+            { 24, "支付结算机构" },
+            { 25, "独立服务机构" },
+            { 26, "地方自律组织" },
+            { -1, "未知" }
+
+        };
+
+        public static readonly Dictionary<int, string> FundType = new Dictionary<int, string>
+        {
+            { 1, "信托计划" },
+            { 2, "有限合伙" },
+            { 3, "券商资管" },
+            { 4, "公募专户" },
+            { 5, "单账户" },
+            { 6, "证券投资基金" },
+            { 7, "海外基金" },
+            { 8, "期货资管" },
+            { 9, "保险资管" },
+            { 10, "创业投资基金" },
+            { 11, "股权投资基金" },
+            { 12, "银行理财" },
+            { 13, "类固收信托" },
+            { 14, "私募资产配置基金" },
+            { 15, "公募基金" },
+            { 16, "公募投顾" },
+            { -1, "其他投资基金" }
+
+        };
+
+        public static readonly Dictionary<int, string> ManagerType = new Dictionary<int, string>
+        {
+            { 1, "顾问管理" },
+            { 2, "受托管理" },
+            { 3, "自我管理" }
+        };
+
+        public static readonly Dictionary<int, string> Currency = new Dictionary<int, string>
+        {
+            { 1, "人民币" },
+            { 2, "港币" },
+            { 3, "美元" }
+        };
+
+        public static readonly Dictionary<int, string> RaiseType = new Dictionary<int, string>
+        {
+            { 1, "私募" },
+            { 2, "公募" }
+        };
+
+        public static readonly Dictionary<int, string> FundStatus = new Dictionary<int, string>
+        {
+            { 1, "募集中" },
+            { 2, "开放运行" },
+            { 3, "封闭运行" },
+            { 4, "提前清算" },
+            { 5, "到期清算" },
+            { 6, "发行失败" },
+            { 7, "更换管理人" },
+            { 8, "延期清算" },
+            { -1, "其他" }
+
+        };
+
+        public static readonly Dictionary<int, string> HedgeFundStrategy = new Dictionary<int, string>
+        {
+            { 1, "股票策略" },
+            { 2, "宏观策略" },
+            { 3, "管理期货" },
+            { 4, "事件驱动" },
+            { 5, "相对价值" },
+            { 6, "固定收益" },
+            { 7, "组合基金" },
+            { 8, "复合策略" },
+            { -1, "其他" }
+        };
+
+        public static readonly Dictionary<int, string> MutualFundStrategy = new Dictionary<int, string>
+        {
+            { 101, "股票" },
+            { 102, "混合" },
+            { 103, "债券" },
+            { 104, "货币" },
+            { 105, "商品" },
+            { -100, "其他" }
+        };
+    }
+}

+ 140 - 0
UIPerson.Designer.cs

@@ -0,0 +1,140 @@
+namespace DataManager
+{
+    partial class UIPerson
+    {
+        /// <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.panel1 = new System.Windows.Forms.Panel();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.panel3 = new System.Windows.Forms.Panel();
+            this.dataGridView1 = new System.Windows.Forms.DataGridView();
+            this.btnAddFund = new System.Windows.Forms.Button();
+            this.lblName = new System.Windows.Forms.Label();
+            this.textBox1 = new System.Windows.Forms.TextBox();
+            this.panel1.SuspendLayout();
+            this.panel2.SuspendLayout();
+            this.panel3.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.Controls.Add(this.textBox1);
+            this.panel1.Controls.Add(this.lblName);
+            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(800, 192);
+            this.panel1.TabIndex = 0;
+            // 
+            // panel2
+            // 
+            this.panel2.Controls.Add(this.dataGridView1);
+            this.panel2.Controls.Add(this.panel3);
+            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.panel2.Location = new System.Drawing.Point(0, 192);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(800, 258);
+            this.panel2.TabIndex = 1;
+            // 
+            // panel3
+            // 
+            this.panel3.Controls.Add(this.btnAddFund);
+            this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel3.Location = new System.Drawing.Point(0, 0);
+            this.panel3.Name = "panel3";
+            this.panel3.Size = new System.Drawing.Size(800, 56);
+            this.panel3.TabIndex = 0;
+            // 
+            // dataGridView1
+            // 
+            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.dataGridView1.Location = new System.Drawing.Point(0, 56);
+            this.dataGridView1.Name = "dataGridView1";
+            this.dataGridView1.RowTemplate.Height = 23;
+            this.dataGridView1.Size = new System.Drawing.Size(800, 202);
+            this.dataGridView1.TabIndex = 1;
+            // 
+            // btnAddFund
+            // 
+            this.btnAddFund.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAddFund.BackColor = System.Drawing.Color.Transparent;
+            this.btnAddFund.Location = new System.Drawing.Point(667, 15);
+            this.btnAddFund.Name = "btnAddFund";
+            this.btnAddFund.Size = new System.Drawing.Size(121, 28);
+            this.btnAddFund.TabIndex = 2;
+            this.btnAddFund.Text = "添 加 基 金";
+            this.btnAddFund.UseVisualStyleBackColor = false;
+            // 
+            // lblName
+            // 
+            this.lblName.AutoSize = true;
+            this.lblName.Location = new System.Drawing.Point(21, 22);
+            this.lblName.Name = "lblName";
+            this.lblName.Size = new System.Drawing.Size(32, 17);
+            this.lblName.TabIndex = 0;
+            this.lblName.Text = "姓名";
+            // 
+            // textBox1
+            // 
+            this.textBox1.Location = new System.Drawing.Point(72, 19);
+            this.textBox1.Name = "textBox1";
+            this.textBox1.Size = new System.Drawing.Size(132, 23);
+            this.textBox1.TabIndex = 1;
+            // 
+            // UIPerson
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.panel2);
+            this.Controls.Add(this.panel1);
+            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, 4, 4, 4);
+            this.Name = "UIPerson";
+            this.Text = "人员";
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            this.panel2.ResumeLayout(false);
+            this.panel3.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.DataGridView dataGridView1;
+        private System.Windows.Forms.Panel panel3;
+        private System.Windows.Forms.Button btnAddFund;
+        private System.Windows.Forms.Label lblName;
+        private System.Windows.Forms.TextBox textBox1;
+    }
+}

+ 20 - 0
UIPerson.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace DataManager
+{
+    public partial class UIPerson : Form
+    {
+        public UIPerson()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 120 - 0
UIPerson.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>