/// <summary> /// Update a PCImpactCheckDetail. /// </summary> public void Update(Model.PCImpactCheckDetail pCImpactCheckDetail) { // // todo: add other logic here. // accessor.Update(pCImpactCheckDetail); }
/// <summary> /// Insert a PCImpactCheckDetail. /// </summary> public void Insert(Model.PCImpactCheckDetail pCImpactCheckDetail) { // // todo:add other logic here // accessor.Insert(pCImpactCheckDetail); }
private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.Name == "gridColumn3") { Model.PCImpactCheckDetail model = this.bsPCImpactCheckDetail.Current as Model.PCImpactCheckDetail; if (model == null) { return; } e.DisplayText = model.Note; } }
private void btn_OK_Click(object sender, EventArgs e) { this.gridView1.PostEditor(); this.gridView1.UpdateCurrentRow(); IList <Model.PCImpactCheckDetail> list = this.bindingSource1.DataSource as IList <Model.PCImpactCheckDetail>; if (list != null) { Model.PCImpactCheckDetail detail = list.FirstOrDefault(P => P.IsChecked == true); if (detail != null) { this.PCImpactCheckId = detail.PCImpactCheckId; } } this.DialogResult = DialogResult.OK; }
private void repositoryItemCheckedComboBoxEdit1_EditValueChanged(object sender, EventArgs e) { Model.PCImpactCheckDetail model = this.bsPCImpactCheckDetail.Current as Model.PCImpactCheckDetail; if (model == null) { return; } string value = ""; foreach (CheckedListBoxItem item in repositoryItemCheckedComboBoxEdit1.Items) { if (item.CheckState == CheckState.Checked) { value += item.ToString() + ","; } } value = value.TrimEnd(','); model.Note = value; }
public void Update(Model.PCImpactCheckDetail e) { this.Update <Model.PCImpactCheckDetail>(e); }
public void Insert(Model.PCImpactCheckDetail e) { this.Insert <Model.PCImpactCheckDetail>(e); }