Example #1
0
 private bool _Check(GenerateFP generateFP)
 {
     TaxCard taxCard = TaxCardFactory.CreateTaxCard();
     if (!this.CanXTInv(taxCard))
     {
         MessageManager.ShowMsgBox("INP-242132");
         return false;
     }
     return true;
 }
Example #2
0
 private void btnGenerate_Click(object sender, EventArgs e)
 {
     this.para.below7ForbiddenInv = this.rdForbidden.Checked;
     this.para.below7Split = this.rdSplit.Checked;
     this.para.below7Generlist = this.rdGenerlist.Checked;
     this.para.above7ForbiddenInv = this.rdForbidden2.Checked;
     this.para.above7Split = this.rdSplit2.Checked;
     this.para.above7Generlist = this.rdGenerlist2.Checked;
     this.para.ShowSetForm = this.ckShow.Checked;
     this.para.SetInvSplitPara();
     base.TopMost = false;
     base.Visible = false;
     if (this.IsSetOnly == 0)
     {
         GenerateFP efp;
         JSFPJSelect select;
         string[] current;
         if (this.NCPBZ == 0)
         {
             efp = new GenerateFP(this.invType);
             if (!this._Check(efp))
             {
                 base.Close();
                 return;
             }
             select = new JSFPJSelect(2);
             if (select.ShowDialog() == DialogResult.OK)
             {
                 current = efp.GetCurrent(0x29);
                 efp.ShowDialog(this);
             }
         }
         else if (this.NCPBZ == 1)
         {
             efp = new GenerateFP(this.invType, 1);
             if (!this._Check(efp))
             {
                 base.Close();
                 return;
             }
             select = new JSFPJSelect(2);
             if (select.ShowDialog() == DialogResult.OK)
             {
                 current = efp.GetCurrent(0x29);
                 efp.ShowDialog(this);
             }
         }
         else if (this.NCPBZ == 2)
         {
             efp = new GenerateFP(this.invType, 2);
             if (!this._Check(efp))
             {
                 base.Close();
                 return;
             }
             select = new JSFPJSelect(2);
             if (select.ShowDialog() == DialogResult.OK)
             {
                 current = efp.GetCurrent(0x29);
                 efp.ShowDialog(this);
             }
         }
     }
     base.Close();
 }