コード例 #1
0
 /// <summary>
 /// Update a PCImpactCheckDetail.
 /// </summary>
 public void Update(Model.PCImpactCheckDetail pCImpactCheckDetail)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(pCImpactCheckDetail);
 }
コード例 #2
0
 /// <summary>
 /// Insert a PCImpactCheckDetail.
 /// </summary>
 public void Insert(Model.PCImpactCheckDetail pCImpactCheckDetail)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(pCImpactCheckDetail);
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
 public void Update(Model.PCImpactCheckDetail e)
 {
     this.Update <Model.PCImpactCheckDetail>(e);
 }
コード例 #7
0
 public void Insert(Model.PCImpactCheckDetail e)
 {
     this.Insert <Model.PCImpactCheckDetail>(e);
 }