protected void Skip_CheckedChanged(object sender, EventArgs e) { CheckBox check = ((CheckBox)sender); TESTCASE_VIEW tbl = new TESTCASE_VIEW(); tbl.update(String.Format("UPDATE TESTCASE SET HIDDEN='{0}' WHERE TGUID={1}", check.Checked ? 'Y' : 'N', check.ToolTip)); Console.WriteLine("SelectedIndex = " + sender.ToString() + ", SelectedValue=" + e.ToString()); }
public static string lookup_tguid(string tloc) { TESTCASE_VIEW tbl = new TESTCASE_VIEW(); Row row = tbl.NewRow(); row.TLOC = tloc; row = tbl.findSingleResult(row); if (null != row) { return(row.TGUID); } return(string.Empty); }
protected void TObjectDataSource_OnSelected(object sender, ObjectDataSourceStatusEventArgs e) { if (null == e.Exception && null != e.ReturnValue) { Type type = e.ReturnValue.GetType(); if (type == typeof(TESTCASE_VIEW) && !string.IsNullOrEmpty(txtFilter.Text)) { TESTCASE_VIEW tbl = (TESTCASE_VIEW)e.ReturnValue; Count.Text = "" + tbl.SelectCount(txtFilter.Text); } //Count.Text = "" + ((TESTCASE_CHECKSUMS_VIEW)e.ReturnValue).TotalCount; //Count.Text = "" + e.ReturnValue; } }
internal Row(DataRowBuilder rb) : base(rb) { this.table = ((TESTCASE_VIEW)(this.Table)); }