Esempio n. 1
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);
 }
Esempio n. 2
0
        void Cancle()
        {
            EagleWebService.TraceEntity ret = cancelIA();

            this.Invoke(new MethodInvoker(delegate()
            {
                if (string.IsNullOrEmpty(ret.ErrorMsg))
                {
                    MessageBox.Show("作废成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show(ret.ErrorMsg + System.Environment.NewLine + ret.Detail);
                }

                btnCancel.Enabled = true;
                pbCancle.Visible  = false;
            }));
        }