private void SelectFPJRow() { if (this.FPJ.SelectedRows.Count > 0) { DataGridViewRow row = this.FPJ.SelectedRows[0]; fpdmhm[0] = row.Cells["LBDM"].Value.ToString(); fpdmhm[1] = row.Cells["QSHM"].Value.ToString(); int num = int.Parse(row.Cells["FPZS"].Value.ToString()); endnum = (int.Parse(fpdmhm[1]) + num) - 1; TaxCard card = TaxCardFactory.CreateTaxCard(); string str = string.Empty; if ((int)this.mfplx == 0x29) { str = card.SetInvVols((InvoiceType)0x29, fpdmhm[0], fpdmhm[1]); } else if ((int)this.mfplx == 2) { str = card.SetInvVols((InvoiceType)2, fpdmhm[0], fpdmhm[1]); } //逻辑修改 if (!InternetWare.Config.Constants.IsTest) { if (ToolUtil.GetReturnErrCode(str) != 0) { MessageManager.ShowMsgBox(str); } } base.DialogResult = DialogResult.OK; } else { MessageManager.ShowMsgBox("至少选择一卷发票"); } }
private void SelectFPJRow() { if (this.FPJ.SelectedRows.Count > 0) { DataGridViewRow row = this.FPJ.SelectedRows[0]; fpdmhm[0] = row.Cells["LBDM"].Value.ToString(); fpdmhm[1] = row.Cells["QSHM"].Value.ToString(); TaxCard card = TaxCardFactory.CreateTaxCard(); string str = string.Empty; if (this.mfplx == 0x29) { str = card.SetInvVols(0x29, fpdmhm[0], fpdmhm[1]); } else if (this.mfplx == 2) { str = card.SetInvVols(2, fpdmhm[0], fpdmhm[1]); } if (ToolUtil.GetReturnErrCode(str) != 0) { MessageManager.ShowMsgBox(str); } base.DialogResult = DialogResult.OK; } else { MessageManager.ShowMsgBox("至少选择一卷发票"); } }