Exemplo n.º 1
0
 public NoticeTemplatesForm(NoticeNoticeTemplateSetting noticeTemplateSettings, long noticeTemplateId)
     : this()
 {
     this.m_noticeTemplateSettigs = noticeTemplateSettings;
     this.m_noticeTemplateId = noticeTemplateId;
     this.set_Text(this.get_Text() + noticeTemplateSettings.Name);
     this.tbName.set_Text(this.m_noticeTemplateSettigs.Name);
     this.ch_autoRendering.set_Checked(noticeTemplateSettings.AutoRendering);
     this.ch_isOpenByAccountDates.set_Checked(noticeTemplateSettings.IsOpenByAccountDates);
     this.ch_isOpenByServiceDatesOrExistChargeSumm.set_Checked(noticeTemplateSettings.IsOpenByServiceDatesOrExistChargeSumm);
     this.ch_isOpenByServiceDatesOrExistChargeSummOrExistToPaySumm.set_Checked(noticeTemplateSettings.IsOpenByServiceDatesOrExistChargeSummOrExistToPaySumm);
     this.ch_isExistChargeSummOrExistToPaySumm.set_Checked(noticeTemplateSettings.IsExistChargeSummOrExistToPaySumm);
     this.ch_isOpenByServiceDatesOrExistAnySumm.set_Checked(noticeTemplateSettings.IsOpenByServiceDatesOrExistAnySumm);
     this.ch_isExistBeginDebit.set_Checked(noticeTemplateSettings.IsExistBeginDebit);
     this.ch_isExistBeginCredit.set_Checked(noticeTemplateSettings.IsExistBeginCredit);
     this.ch_showNoticeInformation.set_Checked(noticeTemplateSettings.ShowNoticeInformation);
     this.ch_excludeServiceOldHouseHolder.set_Checked(noticeTemplateSettings.ExcludeServiceOldHouseHolder);
     this.ch_excludeServiceProviderBankrupt.set_Checked(noticeTemplateSettings.ExcludeServiceProviderBankrupt);
     this.ch_isLkActive.set_Checked(noticeTemplateSettings.IsLkActive);
     this.soHouseHolder.Selected(Organization.FindById(noticeTemplateSettings.ForceHouseHolderId));
     this.s_providers.SelectedOrganizations = Organization.FindByNoticeTemplateSettingProvider(noticeTemplateSettings.Id);
     if (this.tbName.get_Text() == "По умолчанию")
     {
         this.tbName.set_Enabled(false);
     }
     if (noticeTemplateSettings.Name == "")
     {
         this.ch_isOpenByServiceDatesOrExistAnySumm.set_Checked(true);
     }
 }
 public NoticeReportGeneratorAccount(NoticeNoticeTemplateSetting noticeNoticeTemplateSetting, Account account, System.DateTime noticePeriod)
 {
     this.m_NoticeNoticeTemplateSetting = NoticeNoticeTemplateSetting.Null;
     this.m_NoticeNoticeTemplateSetting = noticeNoticeTemplateSetting;
     this.m_Account = account;
     this.m_NoticePeriod = noticePeriod;
     this.m_UseNoticeReportGenerator = (bool) (Setting.GetValueByName("Параметры квитанций", "Версия механизма формирования извещений") == "3");
     this.m_GenerateBeforeView = (bool) (Setting.GetValueByName("Интерфейсы", "Формировать квитанцию перед просмотром через АРМ Бухгалтер") == "Да");
 }
 private void tsBtnAddSettings_Click(object sender, System.EventArgs e)
 {
     if (this.cbNoticeTemplates.Items.get_Count() > 0)
     {
         NoticeNoticeTemplate template = this.cbNoticeTemplates.get_SelectedItem() as NoticeNoticeTemplate;
         NoticeNoticeTemplateSetting noticeTemplateSettings = new NoticeNoticeTemplateSetting();
         new NoticeTemplatesForm(noticeTemplateSettings, template.Id).ShowDialog();
         this.updateCbItems();
     }
 }