public void LoadScoreInf(string fid, string fieldname) { #region 加载积分信息 DataRow dr = Scoresets.GetScoreSet().Rows[0]; if (dr[2].ToString().Trim() != "") { extcredits1name.Text = dr[2].ToString().Trim(); } else { if (!IsValidScoreName(1)) { extcredits1.Enabled = false; } } if (dr[3].ToString().Trim() != "") { extcredits2name.Text = dr[3].ToString().Trim(); } else { if (!IsValidScoreName(2)) { extcredits2.Enabled = false; } } if (dr[4].ToString().Trim() != "") { extcredits3name.Text = dr[4].ToString().Trim(); } else { if (!IsValidScoreName(3)) { extcredits3.Enabled = false; } } if (dr[5].ToString().Trim() != "") { extcredits4name.Text = dr[5].ToString().Trim(); } else { if (!IsValidScoreName(4)) { extcredits4.Enabled = false; } } if (dr[6].ToString().Trim() != "") { extcredits5name.Text = dr[6].ToString().Trim(); } else { if (!IsValidScoreName(5)) { extcredits5.Enabled = false; } } if (dr[7].ToString().Trim() != "") { extcredits6name.Text = dr[7].ToString().Trim(); } else { if (!IsValidScoreName(6)) { extcredits6.Enabled = false; } } if (dr[8].ToString().Trim() != "") { extcredits7name.Text = dr[8].ToString().Trim(); } else { if (!IsValidScoreName(7)) { extcredits7.Enabled = false; } } if (dr[9].ToString().Trim() != "") { extcredits8name.Text = dr[9].ToString().Trim(); } else { if (!IsValidScoreName(8)) { extcredits8.Enabled = false; } } lblScoreCalFormula.Text = Scoresets.GetScoreCalFormula(); #endregion }
public void LoadScoreInf(string fid, string fieldname) { DataRow dataRow = Scoresets.GetScoreSet().Rows[0]; if (dataRow[2].ToString().Trim() != "") { this.extcredits1name.Text = dataRow[2].ToString().Trim(); } else { if (!this.IsValidScoreName(1)) { this.extcredits1.Enabled = false; } } if (dataRow[3].ToString().Trim() != "") { this.extcredits2name.Text = dataRow[3].ToString().Trim(); } else { if (!this.IsValidScoreName(2)) { this.extcredits2.Enabled = false; } } if (dataRow[4].ToString().Trim() != "") { this.extcredits3name.Text = dataRow[4].ToString().Trim(); } else { if (!this.IsValidScoreName(3)) { this.extcredits3.Enabled = false; } } if (dataRow[5].ToString().Trim() != "") { this.extcredits4name.Text = dataRow[5].ToString().Trim(); } else { if (!this.IsValidScoreName(4)) { this.extcredits4.Enabled = false; } } if (dataRow[6].ToString().Trim() != "") { this.extcredits5name.Text = dataRow[6].ToString().Trim(); } else { if (!this.IsValidScoreName(5)) { this.extcredits5.Enabled = false; } } if (dataRow[7].ToString().Trim() != "") { this.extcredits6name.Text = dataRow[7].ToString().Trim(); } else { if (!this.IsValidScoreName(6)) { this.extcredits6.Enabled = false; } } if (dataRow[8].ToString().Trim() != "") { this.extcredits7name.Text = dataRow[8].ToString().Trim(); } else { if (!this.IsValidScoreName(7)) { this.extcredits7.Enabled = false; } } if (dataRow[9].ToString().Trim() != "") { this.extcredits8name.Text = dataRow[9].ToString().Trim(); } else { if (!this.IsValidScoreName(8)) { this.extcredits8.Enabled = false; } } this.lblScoreCalFormula.Text = Scoresets.GetScoreCalFormula(); }