예제 #1
0
        private void Discard()
        {
            try
            {
                string      caseNo = this.dataGridView1.SelectedRows[0].Cells["colCaseNo"].Value.ToString();
                TraceEntity result = ws.DiscardIt(GlobalVar.IAUsername, GlobalVar.IAPassword, caseNo);

                if (string.IsNullOrEmpty(result.ErrorMsg))
                {
                    this.Invoke(new MethodInvoker(delegate()
                    {
                        MessageBox.Show(this, "作废成功!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                        this.dataGridView1.SelectedRows[0].DefaultCellStyle.ForeColor = Color.Red;
                    }));
                }
                else
                {
                    this.Invoke(new MethodInvoker(delegate()
                    {
                        MessageBox.Show(this, result.ErrorMsg, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }));
                }
            }
            catch (Exception ee)
            {
                EagleString.EagleFileIO.LogWrite(ee.ToString());
            }

            this.Invoke(new MethodInvoker(delegate()
            {
                this.作废DToolStripMenuItem.Enabled = true;
                this.picLoading.Visible           = false;
            }));
        }
예제 #2
0
 private EagleWebService.TraceEntity cancelIA()
 {
     EagleWebService.wsInsurrance ws  = new EagleWebService.wsInsurrance();
     EagleWebService.TraceEntity  ret = new EagleWebService.TraceEntity();
     ret = ws.DiscardIt(printHandle.m_pInfo.m_username, printHandle.m_pInfo.m_password, txtENumber.Text);
     return(ret);
 }