static public TaxForm NewNF2(TransactionList ParentTransactionList, string SponsorGUID, string SponsorName,
                                     string AuthorizedDependentClientGUID, string AuthorizedDependentName)
        {
            TaxFormPackage pkg = new TaxFormPackage(
                ParentTransactionList: ParentTransactionList,
                IsPending: true,
                SponsorGUID: SponsorGUID,
                AuthorizedDependentClientGUID: AuthorizedDependentClientGUID,
                FormType: FormType.NF2, Qty: 1);

            TaxForm frm = Lookup <TaxForm>(Guid.Empty.ToString()); //empty guid triggers new form logic in sproc

            frm.ParentPackage                 = pkg;
            frm.Fields["SponsorGUID"]         = SponsorGUID;
            frm.Fields["SponsorName"]         = SponsorName;
            frm.Fields["AuthorizedDependent"] = AuthorizedDependentName;

            return(frm);
        }
Example #2
0
        static public TaxFormModel NewNF2(TransactionList parentTransactionList, string sponsorGUID, string sponsorName,
                                          string authorizedDependentClientGUID, string authorizedDependentName)
        {
            // ReSharper disable RedundantArgumentName
            var pkg = new TaxFormPackage(
                parentTransactionList: parentTransactionList,
                isPending: true,
                sponsorGUID: sponsorGUID,
                authorizedDependentClientGUID: authorizedDependentClientGUID,
                formType: FormType.NF2, qty: 1);
            // ReSharper restore RedundantArgumentName

            var frm = Lookup <TaxFormModel>(Guid.Empty.ToString()); //empty guid triggers new form logic in sproc

            frm.ParentPackage                 = pkg;
            frm.Fields["SponsorGUID"]         = sponsorGUID;
            frm.Fields["SponsorName"]         = sponsorName;
            frm.Fields["AuthorizedDependent"] = authorizedDependentName;

            return(frm);
        }
Example #3
0
    static public TaxFormModel NewNF2(TransactionList parentTransactionList, string sponsorGUID, string sponsorName,
      string authorizedDependentClientGUID, string authorizedDependentName)
    {
      // ReSharper disable RedundantArgumentName
      var pkg = new TaxFormPackage(
        parentTransactionList: parentTransactionList,
        isPending: true, 
        sponsorGUID: sponsorGUID,
        authorizedDependentClientGUID: authorizedDependentClientGUID, 
        formType: FormType.NF2, qty: 1);
      // ReSharper restore RedundantArgumentName

      var frm = Lookup<TaxFormModel>(Guid.Empty.ToString()); //empty guid triggers new form logic in sproc
      frm.ParentPackage = pkg;
      frm.Fields["SponsorGUID"] = sponsorGUID;
      frm.Fields["SponsorName"] = sponsorName;
      frm.Fields["AuthorizedDependent"] = authorizedDependentName;

      return (frm);
    }