Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public frmInstrumentsExample(InstrumentsExample instrumentsExample)
     : this()
 {
     this.instrumentsExample = instrumentsExample;
     this.ParentType = instrumentsExample.InstrumentsType;
     this.ChildType = instrumentsExample.InstrumentsChildType;
 }
Exemplo n.º 3
0
 public frmInstrumentsExampleContent(InstrumentsExample InstrumentsExample, string moduleName, object obj)
     : this()
 {
     this.ParentType = InstrumentsExample.InstrumentsType;
     this.ChildType = InstrumentsExample.InstrumentsChildType;
     this._moduleName = moduleName;
     this._object = obj;
 }
Exemplo n.º 4
0
        /// <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;
            }
        }
Exemplo n.º 5
0
 public frmInstrumentsExampleContent(InstrumentsExample InstrumentsExample)
     : this()
 {
     this.ParentType = InstrumentsExample.InstrumentsType;
     this.ChildType = InstrumentsExample.InstrumentsChildType;
 }