private void buttonOK_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (instrumentsExample == null) instrumentsExample = new InstrumentsExample(); instrumentsExample.InstrumentsTitle = txtTitle.Text.Trim(); instrumentsExample.InstrumentsType = Convert.ToInt32(((ComboBoxItemTextValue)(this.comboBox1.SelectedItem)).selectValue); instrumentsExample.InstrumentsChildType = Convert.ToInt32(((ComboBoxItemTextValue)(this.comboBox2.SelectedItem)).selectValue); string path = this.txtPath.Text.Trim(); if (path != "") { instrumentsExample.InstrumentsPath = path; } InvokeUtil.SystemService.EntityUpdate(instrumentsExample); CommonInvoke.MessageBox("操作成功!"); CloseWindow(); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
public frmInstrumentsExample(InstrumentsExample instrumentsExample) : this() { this.instrumentsExample = instrumentsExample; this.ParentType = instrumentsExample.InstrumentsType; this.ChildType = instrumentsExample.InstrumentsChildType; }
public frmInstrumentsExampleContent(InstrumentsExample InstrumentsExample, string moduleName, object obj) : this() { this.ParentType = InstrumentsExample.InstrumentsType; this.ChildType = InstrumentsExample.InstrumentsChildType; this._moduleName = moduleName; this._object = obj; }
/// <summary> /// 文书示例 /// </summary> /// <param name="page"></param> /// <param name="pageSize"></param> /// <param name="InstrumentsExampleTitle"></param> /// <param name="ParentType"></param> /// <param name="ChildType"></param> /// <returns>实例集合</returns> public EList<InstrumentsExample> InstrumentsExampleGetAll(int page, int pageSize, string InstrumentsExampleTitle, int ParentType, int ChildType) { try { InstrumentsExample Obj = new InstrumentsExample(); Obj.SystemService = this; return Obj.InstrumentsExampleGetAll(page, pageSize, InstrumentsExampleTitle, ParentType, ChildType); } catch (Exception ex) { throw ex; } }
public frmInstrumentsExampleContent(InstrumentsExample InstrumentsExample) : this() { this.ParentType = InstrumentsExample.InstrumentsType; this.ChildType = InstrumentsExample.InstrumentsChildType; }