protected override void GenKindNameList(DataRow dr, string prepoStr, string abbrName, string abbrName_Desc) { if (dr["prod_subtype"].AsString() == "S") { abbrName = abbrName + "契約(" + dr["kind_id"].AsString() + ")"; } if (dr["prod_type"].AsString() == "F") { prepoStr = "期貨契約保證金及"; } if (dr["prod_type"].AsString() == "O" && dr == Dt.Rows[Dt.Rows.Count - 1]) { abbrName += "之" + prepoStr + "選擇權契約風險保證金(A值)、風險保證金最低值(B值)"; } if (!KindNameList_Desc.Exists(k => k == abbrName)) { KindNameList_Desc.Add(abbrName); } if (!KindNameList.Exists(f => f == abbrName_Desc)) { KindNameList.Add(abbrName_Desc); } }
protected override void GenKindNameList(DataRow dr, string prepoStr, string abbrName, string abbrName_Desc) { if (!KindNameList.Exists(k => k == abbrName)) { KindNameList.Add(abbrName); } if (dr["prod_type"].AsString() == "O" && dr == Dt.Rows[Dt.Rows.Count - 1]) { abbrName_Desc += "之" + prepoStr + "選擇權契約風險保證金(A值)、風險保證金最低值(B值)"; } if (!KindNameList_Desc.Exists(k => k == abbrName_Desc)) { KindNameList_Desc.Add(abbrName_Desc); } }