protected override void RunCommand() { TaxCard card = TaxCardFactory.CreateTaxCard(); card.GetStateInfo(false); if (card.get_ECardType() == 3) { new JSPStateQuery { StartPosition = FormStartPosition.CenterScreen, ShowInTaskbar = true }.ShowDialog(); } else { new JSKStateQuery { StartPosition = FormStartPosition.CenterScreen, ShowInTaskbar = true }.ShowDialog(); } }
public BaseForm RunCommand() { TaxCard card = TaxCardFactory.CreateTaxCard(); TaxStateInfo stateInfo = card.GetStateInfo(false); if (card.get_RetCode() > 0) { MessageManager.ShowMsgBox(card.get_ErrCode()); return(null); } if (stateInfo.MachineNumber != card.get_Machine()) { MessageManager.ShowMsgBox("INP-252101"); return(null); } if (card.get_ECardType() == 3) { return(new JSPStateQuery()); } return(new JSKStateQuery()); }
public TaxCardValue() { int num; this.slvList = new List <double>(); this.DataPrecision = 1E-08; this.Card_Type = 0; this.SoftTaxPre = 0.06; this.SoftAmountLimit = 0.0; this.SoftTaxRate = 0.0; for (num = 0; num < taxCard.get_TaxRateAuthorize().TaxRateNoTax.Count; num++) { this.slvList.Add(taxCard.get_TaxRateAuthorize().TaxRateNoTax[num]); } for (num = 0; num < taxCard.get_TaxRateAuthorize().TaxRateTax.Count; num++) { this.slvList.Add(taxCard.get_TaxRateAuthorize().TaxRateTax[num]); } if (taxCard.get_ECardType() != 0) { SoftTaxLimit = 42949672.95; this.SoftAmountLimit = 10995116277.75; this.SoftTaxPre = 0.06; this.SoftTaxRate = 25.5; SoftATaxPre = 1.27; this.Card_Type = 1; } else { SoftTaxLimit = 17000000.0; this.SoftAmountLimit = 100000000.0; this.SoftTaxPre = 0.06; this.SoftTaxRate = 32.0; SoftAAmountPre = 0.625; this.Card_Type = 0; } }