private void btnCloseCard_Click(object sender, EventArgs e) { int iResult = 0; string sResultMsg = ""; MyTax.CloseCard(); iResult = MyTax.RetCode; sResultMsg = MyTax.RetMsg; if (iResult == 9000) { btnSureList.Enabled = true; btnCloseCard.Enabled = false; btnListPrint.Enabled = false; btnCancled.Enabled = false; btnInvPrint.Enabled = false; btnQuery.Enabled = false; cbbInvType.Enabled = true; } else { MessageBox.Show(sResultMsg); } }
private int InvCloseCard() { int iResult = 0; string sResultMsg = ""; MyTax.CloseCard(); iResult = MyTax.RetCode; sResultMsg = MyTax.RetMsg; if (iResult != 9000) { iResult = 1; sRetMsg = "金税卡关闭失败!" + sResultMsg; return(1); } return(0); }