|
@@ -18,6 +18,7 @@ namespace DataManager
|
|
|
private string fundId = null;
|
|
|
private string providerId = null;
|
|
|
private string externalId = null;
|
|
|
+ private string matchedFundId = null;
|
|
|
|
|
|
private DataTable fundInfo = new DataTable();
|
|
|
|
|
@@ -32,10 +33,11 @@ namespace DataManager
|
|
|
InitializeData();
|
|
|
}
|
|
|
|
|
|
- public UIFund(string providerId, string externalId, int userId)
|
|
|
+ public UIFund(string providerId, string externalId, string fundId, int userId)
|
|
|
{
|
|
|
this.providerId = providerId;
|
|
|
this.externalId = externalId;
|
|
|
+ this.matchedFundId = fundId;
|
|
|
this.userId = userId;
|
|
|
|
|
|
InitializeComponent();
|
|
@@ -55,6 +57,7 @@ namespace DataManager
|
|
|
{
|
|
|
txtFundId.Text = fundId;
|
|
|
|
|
|
+ // 正常的基金页面
|
|
|
if (!string.IsNullOrEmpty(fundId))
|
|
|
{
|
|
|
|
|
@@ -157,6 +160,7 @@ namespace DataManager
|
|
|
|
|
|
#endregion
|
|
|
}
|
|
|
+ // 用于孤儿基金的页面
|
|
|
else
|
|
|
{
|
|
|
txtFundName.Text = ExternalId;
|
|
@@ -168,6 +172,7 @@ namespace DataManager
|
|
|
chkAuthorized.Enabled = false;
|
|
|
chkRanking.Enabled = false;
|
|
|
chkRating.Enabled = false;
|
|
|
+ txtMatchFund.Text = (this.matchedFundId == null ? string.Empty : matchedFundId);
|
|
|
|
|
|
LoadNavGrid(null, ProviderId, ExternalId, null, null);
|
|
|
}
|
|
@@ -180,7 +185,8 @@ namespace DataManager
|
|
|
{
|
|
|
string matchedFundId = txtMatchFund.Text;
|
|
|
|
|
|
- if (matchedFundId.Length == 10)
|
|
|
+ // 暂时只做个简单的ID长度和前两位字母检查
|
|
|
+ if (matchedFundId.Length == 10 && matchedFundId.Substring(0, 2) == "HF")
|
|
|
{
|
|
|
DataAccess.Set_dm_external_fund_mapping(ProviderId, ExternalId, matchedFundId, UserId);
|
|
|
this.DialogResult = DialogResult.OK;
|
|
@@ -188,7 +194,7 @@ namespace DataManager
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- MessageBox.Show("输入的基金ID不大对哦", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
|
+ MessageBox.Show("输入的基金ID应该是HFXXXXXXXXXX", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
|
txtMatchFund.Focus();
|
|
|
}
|
|
|
}
|