/**
  * Refresh this MetaControl with Data from the local SignupForm object.
  * @param boolean $blnReload reload SignupForm from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objSignupForm->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objSignupForm->Id;
         }
     }
     if ($this->lstSignupFormType) {
         $this->lstSignupFormType->SelectedValue = $this->objSignupForm->SignupFormTypeId;
     }
     if ($this->lblSignupFormTypeId) {
         $this->lblSignupFormTypeId->Text = $this->objSignupForm->SignupFormTypeId ? SignupFormType::$NameArray[$this->objSignupForm->SignupFormTypeId] : null;
     }
     if ($this->lstMinistry) {
         $this->lstMinistry->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstMinistry->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objMinistryArray = Ministry::LoadAll();
         if ($objMinistryArray) {
             foreach ($objMinistryArray as $objMinistry) {
                 $objListItem = new QListItem($objMinistry->__toString(), $objMinistry->Id);
                 if ($this->objSignupForm->Ministry && $this->objSignupForm->Ministry->Id == $objMinistry->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstMinistry->AddItem($objListItem);
             }
         }
     }
     if ($this->lblMinistryId) {
         $this->lblMinistryId->Text = $this->objSignupForm->Ministry ? $this->objSignupForm->Ministry->__toString() : null;
     }
     if ($this->txtName) {
         $this->txtName->Text = $this->objSignupForm->Name;
     }
     if ($this->lblName) {
         $this->lblName->Text = $this->objSignupForm->Name;
     }
     if ($this->txtToken) {
         $this->txtToken->Text = $this->objSignupForm->Token;
     }
     if ($this->lblToken) {
         $this->lblToken->Text = $this->objSignupForm->Token;
     }
     if ($this->chkActiveFlag) {
         $this->chkActiveFlag->Checked = $this->objSignupForm->ActiveFlag;
     }
     if ($this->lblActiveFlag) {
         $this->lblActiveFlag->Text = $this->objSignupForm->ActiveFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->chkConfidentialFlag) {
         $this->chkConfidentialFlag->Checked = $this->objSignupForm->ConfidentialFlag;
     }
     if ($this->lblConfidentialFlag) {
         $this->lblConfidentialFlag->Text = $this->objSignupForm->ConfidentialFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->txtDescription) {
         $this->txtDescription->Text = $this->objSignupForm->Description;
     }
     if ($this->lblDescription) {
         $this->lblDescription->Text = $this->objSignupForm->Description;
     }
     if ($this->txtInformationUrl) {
         $this->txtInformationUrl->Text = $this->objSignupForm->InformationUrl;
     }
     if ($this->lblInformationUrl) {
         $this->lblInformationUrl->Text = $this->objSignupForm->InformationUrl;
     }
     if ($this->txtSupportEmail) {
         $this->txtSupportEmail->Text = $this->objSignupForm->SupportEmail;
     }
     if ($this->lblSupportEmail) {
         $this->lblSupportEmail->Text = $this->objSignupForm->SupportEmail;
     }
     if ($this->txtEmailNotification) {
         $this->txtEmailNotification->Text = $this->objSignupForm->EmailNotification;
     }
     if ($this->lblEmailNotification) {
         $this->lblEmailNotification->Text = $this->objSignupForm->EmailNotification;
     }
     if ($this->chkAllowOtherFlag) {
         $this->chkAllowOtherFlag->Checked = $this->objSignupForm->AllowOtherFlag;
     }
     if ($this->lblAllowOtherFlag) {
         $this->lblAllowOtherFlag->Text = $this->objSignupForm->AllowOtherFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->chkAllowMultipleFlag) {
         $this->chkAllowMultipleFlag->Checked = $this->objSignupForm->AllowMultipleFlag;
     }
     if ($this->lblAllowMultipleFlag) {
         $this->lblAllowMultipleFlag->Text = $this->objSignupForm->AllowMultipleFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->txtSignupLimit) {
         $this->txtSignupLimit->Text = $this->objSignupForm->SignupLimit;
     }
     if ($this->lblSignupLimit) {
         $this->lblSignupLimit->Text = $this->objSignupForm->SignupLimit;
     }
     if ($this->txtSignupMaleLimit) {
         $this->txtSignupMaleLimit->Text = $this->objSignupForm->SignupMaleLimit;
     }
     if ($this->lblSignupMaleLimit) {
         $this->lblSignupMaleLimit->Text = $this->objSignupForm->SignupMaleLimit;
     }
     if ($this->txtSignupFemaleLimit) {
         $this->txtSignupFemaleLimit->Text = $this->objSignupForm->SignupFemaleLimit;
     }
     if ($this->lblSignupFemaleLimit) {
         $this->lblSignupFemaleLimit->Text = $this->objSignupForm->SignupFemaleLimit;
     }
     if ($this->txtFundingAccount) {
         $this->txtFundingAccount->Text = $this->objSignupForm->FundingAccount;
     }
     if ($this->lblFundingAccount) {
         $this->lblFundingAccount->Text = $this->objSignupForm->FundingAccount;
     }
     if ($this->lstDonationStewardshipFund) {
         $this->lstDonationStewardshipFund->RemoveAllItems();
         $this->lstDonationStewardshipFund->AddItem(QApplication::Translate('- Select One -'), null);
         $objDonationStewardshipFundArray = StewardshipFund::LoadAll();
         if ($objDonationStewardshipFundArray) {
             foreach ($objDonationStewardshipFundArray as $objDonationStewardshipFund) {
                 $objListItem = new QListItem($objDonationStewardshipFund->__toString(), $objDonationStewardshipFund->Id);
                 if ($this->objSignupForm->DonationStewardshipFund && $this->objSignupForm->DonationStewardshipFund->Id == $objDonationStewardshipFund->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstDonationStewardshipFund->AddItem($objListItem);
             }
         }
     }
     if ($this->lblDonationStewardshipFundId) {
         $this->lblDonationStewardshipFundId->Text = $this->objSignupForm->DonationStewardshipFund ? $this->objSignupForm->DonationStewardshipFund->__toString() : null;
     }
     if ($this->calDateCreated) {
         $this->calDateCreated->DateTime = $this->objSignupForm->DateCreated;
     }
     if ($this->lblDateCreated) {
         $this->lblDateCreated->Text = sprintf($this->objSignupForm->DateCreated) ? $this->objSignupForm->__toString($this->strDateCreatedDateTimeFormat) : null;
     }
     if ($this->chkLoginNotRequiredFlag) {
         $this->chkLoginNotRequiredFlag->Checked = $this->objSignupForm->LoginNotRequiredFlag;
     }
     if ($this->lblLoginNotRequiredFlag) {
         $this->lblLoginNotRequiredFlag->Text = $this->objSignupForm->LoginNotRequiredFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->lstClassMeeting) {
         $this->lstClassMeeting->RemoveAllItems();
         $this->lstClassMeeting->AddItem(QApplication::Translate('- Select One -'), null);
         $objClassMeetingArray = ClassMeeting::LoadAll();
         if ($objClassMeetingArray) {
             foreach ($objClassMeetingArray as $objClassMeeting) {
                 $objListItem = new QListItem($objClassMeeting->__toString(), $objClassMeeting->SignupFormId);
                 if ($objClassMeeting->SignupFormId == $this->objSignupForm->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstClassMeeting->AddItem($objListItem);
             }
         }
         // Because ClassMeeting's ClassMeeting is not null, if a value is already selected, it cannot be changed.
         if ($this->lstClassMeeting->SelectedValue) {
             $this->lstClassMeeting->Enabled = false;
         } else {
             $this->lstClassMeeting->Enabled = true;
         }
     }
     if ($this->lblClassMeeting) {
         $this->lblClassMeeting->Text = $this->objSignupForm->ClassMeeting ? $this->objSignupForm->ClassMeeting->__toString() : null;
     }
     if ($this->lstEventSignupForm) {
         $this->lstEventSignupForm->RemoveAllItems();
         $this->lstEventSignupForm->AddItem(QApplication::Translate('- Select One -'), null);
         $objEventSignupFormArray = EventSignupForm::LoadAll();
         if ($objEventSignupFormArray) {
             foreach ($objEventSignupFormArray as $objEventSignupForm) {
                 $objListItem = new QListItem($objEventSignupForm->__toString(), $objEventSignupForm->SignupFormId);
                 if ($objEventSignupForm->SignupFormId == $this->objSignupForm->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstEventSignupForm->AddItem($objListItem);
             }
         }
         // Because EventSignupForm's EventSignupForm is not null, if a value is already selected, it cannot be changed.
         if ($this->lstEventSignupForm->SelectedValue) {
             $this->lstEventSignupForm->Enabled = false;
         } else {
             $this->lstEventSignupForm->Enabled = true;
         }
     }
     if ($this->lblEventSignupForm) {
         $this->lblEventSignupForm->Text = $this->objSignupForm->EventSignupForm ? $this->objSignupForm->EventSignupForm->__toString() : null;
     }
 }
 /**
  * Refresh this MetaControl with Data from the local StewardshipPostAmount object.
  * @param boolean $blnReload reload StewardshipPostAmount from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objStewardshipPostAmount->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objStewardshipPostAmount->Id;
         }
     }
     if ($this->lstStewardshipPost) {
         $this->lstStewardshipPost->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstStewardshipPost->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objStewardshipPostArray = StewardshipPost::LoadAll();
         if ($objStewardshipPostArray) {
             foreach ($objStewardshipPostArray as $objStewardshipPost) {
                 $objListItem = new QListItem($objStewardshipPost->__toString(), $objStewardshipPost->Id);
                 if ($this->objStewardshipPostAmount->StewardshipPost && $this->objStewardshipPostAmount->StewardshipPost->Id == $objStewardshipPost->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstStewardshipPost->AddItem($objListItem);
             }
         }
     }
     if ($this->lblStewardshipPostId) {
         $this->lblStewardshipPostId->Text = $this->objStewardshipPostAmount->StewardshipPost ? $this->objStewardshipPostAmount->StewardshipPost->__toString() : null;
     }
     if ($this->lstStewardshipFund) {
         $this->lstStewardshipFund->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstStewardshipFund->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objStewardshipFundArray = StewardshipFund::LoadAll();
         if ($objStewardshipFundArray) {
             foreach ($objStewardshipFundArray as $objStewardshipFund) {
                 $objListItem = new QListItem($objStewardshipFund->__toString(), $objStewardshipFund->Id);
                 if ($this->objStewardshipPostAmount->StewardshipFund && $this->objStewardshipPostAmount->StewardshipFund->Id == $objStewardshipFund->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstStewardshipFund->AddItem($objListItem);
             }
         }
     }
     if ($this->lblStewardshipFundId) {
         $this->lblStewardshipFundId->Text = $this->objStewardshipPostAmount->StewardshipFund ? $this->objStewardshipPostAmount->StewardshipFund->__toString() : null;
     }
     if ($this->txtAmount) {
         $this->txtAmount->Text = $this->objStewardshipPostAmount->Amount;
     }
     if ($this->lblAmount) {
         $this->lblAmount->Text = $this->objStewardshipPostAmount->Amount;
     }
 }
 /**
  * Refresh this MetaControl with Data from the local OnlineDonationLineItem object.
  * @param boolean $blnReload reload OnlineDonationLineItem from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objOnlineDonationLineItem->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objOnlineDonationLineItem->Id;
         }
     }
     if ($this->lstOnlineDonation) {
         $this->lstOnlineDonation->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstOnlineDonation->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objOnlineDonationArray = OnlineDonation::LoadAll();
         if ($objOnlineDonationArray) {
             foreach ($objOnlineDonationArray as $objOnlineDonation) {
                 $objListItem = new QListItem($objOnlineDonation->__toString(), $objOnlineDonation->Id);
                 if ($this->objOnlineDonationLineItem->OnlineDonation && $this->objOnlineDonationLineItem->OnlineDonation->Id == $objOnlineDonation->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstOnlineDonation->AddItem($objListItem);
             }
         }
     }
     if ($this->lblOnlineDonationId) {
         $this->lblOnlineDonationId->Text = $this->objOnlineDonationLineItem->OnlineDonation ? $this->objOnlineDonationLineItem->OnlineDonation->__toString() : null;
     }
     if ($this->txtAmount) {
         $this->txtAmount->Text = $this->objOnlineDonationLineItem->Amount;
     }
     if ($this->lblAmount) {
         $this->lblAmount->Text = $this->objOnlineDonationLineItem->Amount;
     }
     if ($this->chkDonationFlag) {
         $this->chkDonationFlag->Checked = $this->objOnlineDonationLineItem->DonationFlag;
     }
     if ($this->lblDonationFlag) {
         $this->lblDonationFlag->Text = $this->objOnlineDonationLineItem->DonationFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->lstStewardshipFund) {
         $this->lstStewardshipFund->RemoveAllItems();
         $this->lstStewardshipFund->AddItem(QApplication::Translate('- Select One -'), null);
         $objStewardshipFundArray = StewardshipFund::LoadAll();
         if ($objStewardshipFundArray) {
             foreach ($objStewardshipFundArray as $objStewardshipFund) {
                 $objListItem = new QListItem($objStewardshipFund->__toString(), $objStewardshipFund->Id);
                 if ($this->objOnlineDonationLineItem->StewardshipFund && $this->objOnlineDonationLineItem->StewardshipFund->Id == $objStewardshipFund->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstStewardshipFund->AddItem($objListItem);
             }
         }
     }
     if ($this->lblStewardshipFundId) {
         $this->lblStewardshipFundId->Text = $this->objOnlineDonationLineItem->StewardshipFund ? $this->objOnlineDonationLineItem->StewardshipFund->__toString() : null;
     }
     if ($this->txtOther) {
         $this->txtOther->Text = $this->objOnlineDonationLineItem->Other;
     }
     if ($this->lblOther) {
         $this->lblOther->Text = $this->objOnlineDonationLineItem->Other;
     }
 }
 /**
  * Refresh this MetaControl with Data from the local SignupPayment object.
  * @param boolean $blnReload reload SignupPayment from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objSignupPayment->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objSignupPayment->Id;
         }
     }
     if ($this->lstSignupEntry) {
         $this->lstSignupEntry->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstSignupEntry->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objSignupEntryArray = SignupEntry::LoadAll();
         if ($objSignupEntryArray) {
             foreach ($objSignupEntryArray as $objSignupEntry) {
                 $objListItem = new QListItem($objSignupEntry->__toString(), $objSignupEntry->Id);
                 if ($this->objSignupPayment->SignupEntry && $this->objSignupPayment->SignupEntry->Id == $objSignupEntry->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstSignupEntry->AddItem($objListItem);
             }
         }
     }
     if ($this->lblSignupEntryId) {
         $this->lblSignupEntryId->Text = $this->objSignupPayment->SignupEntry ? $this->objSignupPayment->SignupEntry->__toString() : null;
     }
     if ($this->lstSignupPaymentType) {
         $this->lstSignupPaymentType->SelectedValue = $this->objSignupPayment->SignupPaymentTypeId;
     }
     if ($this->lblSignupPaymentTypeId) {
         $this->lblSignupPaymentTypeId->Text = $this->objSignupPayment->SignupPaymentTypeId ? SignupPaymentType::$NameArray[$this->objSignupPayment->SignupPaymentTypeId] : null;
     }
     if ($this->calTransactionDate) {
         $this->calTransactionDate->DateTime = $this->objSignupPayment->TransactionDate;
     }
     if ($this->lblTransactionDate) {
         $this->lblTransactionDate->Text = sprintf($this->objSignupPayment->TransactionDate) ? $this->objSignupPayment->__toString($this->strTransactionDateDateTimeFormat) : null;
     }
     if ($this->txtTransactionDescription) {
         $this->txtTransactionDescription->Text = $this->objSignupPayment->TransactionDescription;
     }
     if ($this->lblTransactionDescription) {
         $this->lblTransactionDescription->Text = $this->objSignupPayment->TransactionDescription;
     }
     if ($this->txtAmount) {
         $this->txtAmount->Text = $this->objSignupPayment->Amount;
     }
     if ($this->lblAmount) {
         $this->lblAmount->Text = $this->objSignupPayment->Amount;
     }
     if ($this->txtFundingAccount) {
         $this->txtFundingAccount->Text = $this->objSignupPayment->FundingAccount;
     }
     if ($this->lblFundingAccount) {
         $this->lblFundingAccount->Text = $this->objSignupPayment->FundingAccount;
     }
     if ($this->lstDonationStewardshipFund) {
         $this->lstDonationStewardshipFund->RemoveAllItems();
         $this->lstDonationStewardshipFund->AddItem(QApplication::Translate('- Select One -'), null);
         $objDonationStewardshipFundArray = StewardshipFund::LoadAll();
         if ($objDonationStewardshipFundArray) {
             foreach ($objDonationStewardshipFundArray as $objDonationStewardshipFund) {
                 $objListItem = new QListItem($objDonationStewardshipFund->__toString(), $objDonationStewardshipFund->Id);
                 if ($this->objSignupPayment->DonationStewardshipFund && $this->objSignupPayment->DonationStewardshipFund->Id == $objDonationStewardshipFund->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstDonationStewardshipFund->AddItem($objListItem);
             }
         }
     }
     if ($this->lblDonationStewardshipFundId) {
         $this->lblDonationStewardshipFundId->Text = $this->objSignupPayment->DonationStewardshipFund ? $this->objSignupPayment->DonationStewardshipFund->__toString() : null;
     }
     if ($this->txtAmountDonation) {
         $this->txtAmountDonation->Text = $this->objSignupPayment->AmountDonation;
     }
     if ($this->lblAmountDonation) {
         $this->lblAmountDonation->Text = $this->objSignupPayment->AmountDonation;
     }
     if ($this->txtAmountNonDonation) {
         $this->txtAmountNonDonation->Text = $this->objSignupPayment->AmountNonDonation;
     }
     if ($this->lblAmountNonDonation) {
         $this->lblAmountNonDonation->Text = $this->objSignupPayment->AmountNonDonation;
     }
     if ($this->lstCreditCardPayment) {
         $this->lstCreditCardPayment->RemoveAllItems();
         $this->lstCreditCardPayment->AddItem(QApplication::Translate('- Select One -'), null);
         $objCreditCardPaymentArray = CreditCardPayment::LoadAll();
         if ($objCreditCardPaymentArray) {
             foreach ($objCreditCardPaymentArray as $objCreditCardPayment) {
                 $objListItem = new QListItem($objCreditCardPayment->__toString(), $objCreditCardPayment->Id);
                 if ($this->objSignupPayment->CreditCardPayment && $this->objSignupPayment->CreditCardPayment->Id == $objCreditCardPayment->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstCreditCardPayment->AddItem($objListItem);
             }
         }
     }
     if ($this->lblCreditCardPaymentId) {
         $this->lblCreditCardPaymentId->Text = $this->objSignupPayment->CreditCardPayment ? $this->objSignupPayment->CreditCardPayment->__toString() : null;
     }
 }
 /**
  * Refresh this MetaControl with Data from the local StewardshipPledge object.
  * @param boolean $blnReload reload StewardshipPledge from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objStewardshipPledge->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objStewardshipPledge->Id;
         }
     }
     if ($this->lstPerson) {
         $this->lstPerson->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstPerson->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objPersonArray = Person::LoadAll();
         if ($objPersonArray) {
             foreach ($objPersonArray as $objPerson) {
                 $objListItem = new QListItem($objPerson->__toString(), $objPerson->Id);
                 if ($this->objStewardshipPledge->Person && $this->objStewardshipPledge->Person->Id == $objPerson->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstPerson->AddItem($objListItem);
             }
         }
     }
     if ($this->lblPersonId) {
         $this->lblPersonId->Text = $this->objStewardshipPledge->Person ? $this->objStewardshipPledge->Person->__toString() : null;
     }
     if ($this->lstStewardshipFund) {
         $this->lstStewardshipFund->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstStewardshipFund->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objStewardshipFundArray = StewardshipFund::LoadAll();
         if ($objStewardshipFundArray) {
             foreach ($objStewardshipFundArray as $objStewardshipFund) {
                 $objListItem = new QListItem($objStewardshipFund->__toString(), $objStewardshipFund->Id);
                 if ($this->objStewardshipPledge->StewardshipFund && $this->objStewardshipPledge->StewardshipFund->Id == $objStewardshipFund->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstStewardshipFund->AddItem($objListItem);
             }
         }
     }
     if ($this->lblStewardshipFundId) {
         $this->lblStewardshipFundId->Text = $this->objStewardshipPledge->StewardshipFund ? $this->objStewardshipPledge->StewardshipFund->__toString() : null;
     }
     if ($this->calDateStarted) {
         $this->calDateStarted->DateTime = $this->objStewardshipPledge->DateStarted;
     }
     if ($this->lblDateStarted) {
         $this->lblDateStarted->Text = sprintf($this->objStewardshipPledge->DateStarted) ? $this->objStewardshipPledge->__toString($this->strDateStartedDateTimeFormat) : null;
     }
     if ($this->calDateEnded) {
         $this->calDateEnded->DateTime = $this->objStewardshipPledge->DateEnded;
     }
     if ($this->lblDateEnded) {
         $this->lblDateEnded->Text = sprintf($this->objStewardshipPledge->DateEnded) ? $this->objStewardshipPledge->__toString($this->strDateEndedDateTimeFormat) : null;
     }
     if ($this->txtPledgeAmount) {
         $this->txtPledgeAmount->Text = $this->objStewardshipPledge->PledgeAmount;
     }
     if ($this->lblPledgeAmount) {
         $this->lblPledgeAmount->Text = $this->objStewardshipPledge->PledgeAmount;
     }
     if ($this->txtContributedAmount) {
         $this->txtContributedAmount->Text = $this->objStewardshipPledge->ContributedAmount;
     }
     if ($this->lblContributedAmount) {
         $this->lblContributedAmount->Text = $this->objStewardshipPledge->ContributedAmount;
     }
     if ($this->txtRemainingAmount) {
         $this->txtRemainingAmount->Text = $this->objStewardshipPledge->RemainingAmount;
     }
     if ($this->lblRemainingAmount) {
         $this->lblRemainingAmount->Text = $this->objStewardshipPledge->RemainingAmount;
     }
     if ($this->chkFulfilledFlag) {
         $this->chkFulfilledFlag->Checked = $this->objStewardshipPledge->FulfilledFlag;
     }
     if ($this->lblFulfilledFlag) {
         $this->lblFulfilledFlag->Text = $this->objStewardshipPledge->FulfilledFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->chkActiveFlag) {
         $this->chkActiveFlag->Checked = $this->objStewardshipPledge->ActiveFlag;
     }
     if ($this->lblActiveFlag) {
         $this->lblActiveFlag->Text = $this->objStewardshipPledge->ActiveFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
 }
Example #6
0
 protected function SetupPanel()
 {
     $this->dtgStewardshipContributionAmount = new StewardshipContributionAmountDataGrid($this);
     $this->dtgStewardshipContributionAmount->MetaAddColumn(QQN::StewardshipContributionAmount()->StewardshipContribution->DateCredited, 'Html=<?= $_CONTROL->ParentControl->RenderDate($_ITEM); ?>', 'Name=Date', 'Width=100px', 'HtmlEntities=false');
     $this->dtgStewardshipContributionAmount->MetaAddColumn(QQN::StewardshipContributionAmount()->StewardshipContribution->Person->LastName, 'Html=<?= $_CONTROL->ParentControl->RenderPerson($_ITEM); ?>', 'Name=Person', 'Width=180px');
     $this->dtgStewardshipContributionAmount->MetaAddColumn(QQN::StewardshipContributionAmount()->StewardshipFund->Name, 'Name=Fund', 'Width=180px');
     $this->dtgStewardshipContributionAmount->MetaAddColumn(QQN::StewardshipContributionAmount()->StewardshipContribution->StewardshipContributionTypeId, 'Html=<?= $_CONTROL->ParentControl->RenderTransaction($_ITEM); ?>', 'Name=Transaction', 'Width=170px');
     $this->dtgStewardshipContributionAmount->MetaAddColumn(QQN::StewardshipContributionAmount()->Amount, 'Html=<?= $_CONTROL->ParentControl->RenderAmount($_ITEM); ?>', 'HtmlEntities=false', 'FontNames=Lucida Console,Courier New,Courier,monospaced', 'Width=90px');
     $this->dtgStewardshipContributionAmount->SetDataBinder('dtgStewardshipContributionAmount_Bind', $this);
     $this->dtgStewardshipContributionAmount->SortColumnIndex = 0;
     $this->dtgStewardshipContributionAmount->NoDataHtml = 'No contribution records given your filtering criteria above.';
     if ($this->objForm->objHousehold) {
         $this->chkCombined = new QCheckBox($this);
         $this->chkCombined->Text = 'View contributions by all household members';
         $this->chkCombined->Checked = $this->objForm->objHousehold->CombinedStewardshipFlag;
     }
     $this->lstYear = new QListBox($this);
     $this->lstYear->AddItem('- View All -', null);
     $intYearNow = QDateTime::Now()->Year;
     if (array_key_exists('stewardship_view_year', $_SESSION)) {
         $intYearToView = $_SESSION['stewardship_view_year'];
     } else {
         $intYearToView = $intYearNow;
     }
     for ($intYear = 2000; $intYear <= $intYearNow + 1; $intYear++) {
         $this->lstYear->AddItem($intYear, $intYear, $intYear == $intYearToView);
     }
     $this->lstFund = new QListBox($this);
     $this->lstFund->AddItem('- View All -', null, true);
     foreach (StewardshipFund::LoadAll(QQ::OrderBy(QQN::StewardshipFund()->Name)) as $objFund) {
         $this->lstFund->AddItem($objFund->Name, $objFund->Id);
     }
     $this->lstYear->AddAction(new QChangeEvent(), new QAjaxControlAction($this, 'lstYear_Change'));
     $this->lstYear->AddAction(new QEnterKeyEvent(), new QAjaxControlAction($this, 'lstYear_Change'));
     $this->lstYear->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     $this->lstFund->AddAction(new QChangeEvent(), new QAjaxControlAction($this, 'Filter'));
     $this->lstFund->AddAction(new QEnterKeyEvent(), new QAjaxControlAction($this, 'Filter'));
     $this->lstFund->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     if ($this->objForm->objHousehold) {
         $this->chkCombined->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'Filter'));
     }
     $this->pxyPrint = new QControlProxy($this);
     $this->pxyPrint->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'pxyPrint_Click'));
     $this->pxyPrint->AddAction(new QClickEvent(), new QTerminateAction());
     $this->dtgPledges = new StewardshipPledgeDataGrid($this);
     $this->dtgPledges->FontSize = '11px';
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->Person->LastName, 'Name=Pledged By', 'HtmlEntities=false', 'Html=<?= $_CONTROL->ParentControl->RenderPledgePerson($_ITEM); ?>', 'Width=180px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->StewardshipFund->Name, 'Name=Fund', 'Width=150px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->DateStarted, 'Name=Start Date', 'Width=75px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->DateEnded, 'Name=End Date', 'Width=75px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->PledgeAmount, 'Name=Pledged', 'Html=<?= QApplication::DisplayCurrency($_ITEM->PledgeAmount); ?>', 'Width=70px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->ContributedAmount, 'Name=Contributed', 'Html=<?= QApplication::DisplayCurrency($_ITEM->ContributedAmount); ?>', 'Width=70px');
     $this->dtgPledges->MetaAddColumn(QQN::StewardshipPledge()->RemainingAmount, 'Name=Remaining', 'FontBold=true', 'Html=<?= QApplication::DisplayCurrency($_ITEM->RemainingAmount); ?>', 'Width=75px');
     $this->dtgPledges->SetDataBinder('dtgPledges_Bind', $this);
     $this->dtgPledges->NoDataHtml = '<span style="font-size: 14px;">No pledge records given your filtering criteria above.</span>';
     if ($this->objPerson->DeceasedFlag && $this->objForm->objHousehold && $this->objForm->objHousehold->CountHouseholdParticipations() > 1) {
         $this->btnMoveTransactions = new QButton($this);
         $this->btnMoveTransactions->CssClass = 'alternate';
         $this->btnMoveTransactions->Text = 'Deceased / Move Transactions';
         $this->btnMoveTransactions->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnMoveTransactions_Click'));
         $this->dlgMove = new QDialogBox($this);
         $this->dlgMove->Template = dirname(__FILE__) . '/dlgMove.tpl.php';
         $this->dlgMove->MatteClickable = false;
         $this->dlgMove->HideDialogBox();
         $this->lstMoveTo = new QListBox($this->dlgMove);
         $this->lstMoveTo->AddItem('- Select One -', null);
         $this->lstMoveTo->Name = 'Reassign To';
         $this->lstMoveTo->Required = true;
         foreach ($this->objForm->objHousehold->GetHouseholdParticipationArray() as $objHouseholdParticipation) {
             if ($objHouseholdParticipation->PersonId != $this->objPerson->Id) {
                 $this->lstMoveTo->AddItem($objHouseholdParticipation->Person->Name, $objHouseholdParticipation->Person->Id);
             }
         }
         $this->btnMoveSave = new QButton($this->dlgMove);
         $this->btnMoveSave->Text = 'Move Transactions';
         $this->btnMoveSave->CssClass = 'primary';
         $this->btnMoveSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnMoveSave_Click'));
         $this->btnMoveSave->CausesValidation = QCausesValidation::SiblingsAndChildren;
         $this->btnMoveCancel = new QLinkButton($this->dlgMove);
         $this->btnMoveCancel->Text = 'Cancel';
         $this->btnMoveCancel->CssClass = 'cancel';
         $this->btnMoveCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnMoveCancel_Click'));
         $this->btnMoveCancel->AddAction(new QClickEvent(), new QTerminateAction());
     }
 }