Exemple #1
0
        private void buttonShowExample_Click(object sender, EventArgs e)
        {
            try
            {
                EList<SOA.ORM.InstrumentsExample> InstrumentsExamples = InvokeUtil.SystemService.InstrumentsExampleGetAll(1, 10, "", (int)SOA.ORM.InstrumentsExample.EInstrumentsType.案件处理, (int)SOA.ORM.InstrumentsExample.ECaseHandleType.案件处理呈批表);
                if (InstrumentsExamples.Items.Count > 0)
                {
                    frmInstrumentsExampleContent frm = new frmInstrumentsExampleContent(InstrumentsExamples.Items[0]);
                    frm.OpenWindow(this);
                }

            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }
        }
        private void toolStripButtonOutPut_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewInstrumentsExample.SelectedRows.Count == 0)
                return;

            if (enforceLawGridViewInstrumentsExample.SelectedRows[0].Tag == null)
                return;

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                InstrumentsExample InstrumentsExample = enforceLawGridViewInstrumentsExample.SelectedRows[0].Tag as InstrumentsExample;
                frmInstrumentsExampleContent frm = new frmInstrumentsExampleContent(InstrumentsExample);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }