Пример #1
0
 /**
  *  BP Parent Constructor
  *  @param bp partner
  */
 public MBPartnerLocation(MBPartner bp)
     : this(bp.GetCtx(), 0, bp.Get_TrxName())
 {
     SetClientOrg(bp);
     //	may (still) be 0
     Set_ValueNoCheck("C_BPartner_ID", (int)(bp.GetC_BPartner_ID()));
 }
 /**
  *  Constructor
  *	@param ctx context
  *  @param bp BP
  *	@param bpc BP Contact
  *  @param location Location
  */
 public MBPBankAccount(Ctx ctx, MBPartner bp, MUser bpc, MLocation location)
     : this(ctx, 0, bp.Get_TrxName())
 {
     SetIsACH(false);
     //
     SetC_BPartner_ID(bp.GetC_BPartner_ID());
     //
     SetA_Name(bpc.GetName());
     SetA_EMail(bpc.GetEMail());
     //
     SetA_Street(location.GetAddress1());
     SetA_City(location.GetCity());
     SetA_Zip(location.GetPostal());
     SetA_State(location.GetRegionName(true));
     SetA_Country(location.GetCountryName());
 }