Example #1
0
            public USeInvestorBaseInfo GetInvestorBaseInfo()
            {
                USeInvestorBaseInfo baseInfo = new USeInvestorBaseInfo();

                baseInfo.RealName = "张三";
                return(baseInfo);
            }
        /// <summary>
        /// POS PosInvestor field To USeInvestorBaseInfo。
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        private USeInvestorBaseInfo CtpInvestorFieldToUSeInvestorBaseInfo(InvestorField field)
        {
            USeInvestorBaseInfo investorInfo = new USeInvestorBaseInfo();

            try
            {
                investorInfo.Account          = field.InvestorID;
                investorInfo.BrokerID         = field.BrokerID;
                investorInfo.BrokerName       = "";
                investorInfo.IdCardType       = (USeIDCardType)((byte)field.IdentifiedCardType);
                investorInfo.IdentifiedCardNo = field.IdentifiedCardNo;
                DateTime openDate;
                if (DateTime.TryParseExact(field.OpenDate, "yyyyMMdd", null, System.Globalization.DateTimeStyles.None, out openDate) == false)
                {
                    Debug.Assert(false);
                    openDate = DateTime.Today;
                }
                investorInfo.OpenDate = openDate;
                investorInfo.Mobile   = field.Mobile;
                investorInfo.RealName = field.InvestorName;
            }
            catch (Exception ex)
            {
                Debug.Assert(false, "PosInvestorFieldToUSeInvestorBaseInfo() convet failed," + ex.Message);
            }
            return(investorInfo);
        }
Example #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            USeInvestorBaseInfo investorInfo = USeManager.Instance.OrderDriver.QueryInvestorInfo();

            this.Text = string.Format("{0}  {1}", Program.AppName, investorInfo.RealName);

            InitializeUserControl();
        }