/// <summary> /// Update a PCFlameRetardantDetail. /// </summary> public void Update(Model.PCFlameRetardantDetail pCFlameRetardantDetail) { // // todo: add other logic here. // accessor.Update(pCFlameRetardantDetail); }
/// <summary> /// Insert a PCFlameRetardantDetail. /// </summary> public void Insert(Model.PCFlameRetardantDetail pCFlameRetardantDetail) { // // todo:add other logic here // accessor.Insert(pCFlameRetardantDetail); }
/// <summary> /// 重写父类方法 /// </summary> /// <param name="args"></param> /// <returns></returns> protected override Book.UI.Settings.BasicData.BaseEditForm GetEditForm(object[] args) { Type type = typeof(EditForm); Model.PCFlameRetardantDetail model = args[0] as Model.PCFlameRetardantDetail; if (model != null) { args[0] = model.PCFlameRetardantId; } return((EditForm)type.Assembly.CreateInstance(type.FullName, false, System.Reflection.BindingFlags.CreateInstance, null, args, null, null)); }
private void btn_OK_Click(object sender, EventArgs e) { IList <Model.PCFlameRetardantDetail> list = this.bindingSource1.DataSource as IList <Model.PCFlameRetardantDetail>; if (list != null) { Model.PCFlameRetardantDetail detail = list.FirstOrDefault(P => P.IsChecked == true); if (detail != null) { this.PCFlameRetardantId = detail.PCFlameRetardantId; } } this.DialogResult = DialogResult.OK; }
public void Update(Model.PCFlameRetardantDetail e) { this.Update <Model.PCFlameRetardantDetail>(e); }
public void Insert(Model.PCFlameRetardantDetail e) { this.Insert <Model.PCFlameRetardantDetail>(e); }