public AccountServiceForm(AccountService accountService, long apartmentId) { this.InitializeComponent(); this.set_Font(Manager.WindowFont); this.m_AccountService = accountService; this.m_ApartmentId = apartmentId; if (((this.m_AccountService != null) && (this.m_AccountService != AccountService.Null)) && (this.m_ApartmentId != 0L)) { this.RefreshTabControlAccountService(); this.RefreshTabControlServiceProvider(); this.set_Text("Услуга лицевого счета : " + ServiceOld.FindById(this.m_AccountService.ServiceId).CodeName); this.accountServiceJournalView.IsVisiblePanel = true; if (!User.IsMemberOf(RightsEnum.АРМБухгалтерЛсУслугиРедактирование)) { this.accountServiceJournalView.IsVisiblePanel = false; this.accountServiceCountersView.IsVisiblePanel = false; this.accountServiceEquipmentsView.IsVisiblePanel = false; this.accountServicePenaltyRemissionView.IsVisiblePanel = false; this.accountServiceSuspensionView.IsVisiblePanel = false; this._accountServiceSubQualityView.IsVisiblePanel = false; this.accountServiceRelationsView.IsVisiblePanel = false; this.accountServiceTarrifsView.IsVisiblePanel = false; this.benefitDebtsView.IsVisiblePanel = false; this.accountServiceNormsView.IsVisiblePanel = false; } } }
public BenefitDebtAddForm(AccountService accountService) { this.InitializeComponent(); this.m_BenefitDebt = new BenefitDebt(); this.m_AccountService = accountService; this.m_IsEdit = false; }
public AccountServiceDocumentAddChangeForm(AccountService accountService) : this() { this.AddChange.set_Text("Добавить"); this.m_accountServiceDocument = new AccountServiceDocument(); this.m_accountServiceDocument.AccountServiceId = accountService.Id; }
public BenefitDebtAddForm(AccountService accountService, BenefitDebt benefitDebt) : this(accountService) { this.set_Text("Редактирование задолженности по льготам"); this.btnApply.set_Text("Изменить"); this.m_IsEdit = true; this.m_BenefitDebt = benefitDebt; this.tbSumm.set_Text(this.m_BenefitDebt.Value.ToString()); this.periodSelector.Period = this.m_BenefitDebt.Period; }
public void Fill(AccountService accountService) { if (this.m_AccountService.Id != accountService.Id) { this.m_AccountService = accountService; if ((this.m_AccountService != null) && (this.m_AccountService != AccountService.Null)) { this.UpdateBindingAccountServiceRelations(); } } }
public void Fill(AccountService accountService, long apartmentId) { if (this.m_AccountService.Id != accountService.Id) { this.m_AccountService = accountService; this.m_ApartmentId = apartmentId; if (((this.m_AccountService != null) && (this.m_AccountService != AccountService.Null)) && (this.m_ApartmentId != 0L)) { this.UpdateBindingAccountServiceSuspension(); } } }
public void Fill(AccountService accountService) { this.m_AccountService = accountService ?? AccountService.Null; if (this.m_AccountService == AccountService.Null) { this.bsBenefitDebts.Clear(); } else { this.bsBenefitDebts.set_DataSource(BenefitDebt.FindByServiceTypeIdAndAccountId(this.m_AccountService.ServiceTypeId, this.m_AccountService.AccountId)); } }
public void Fill(AccountService accountService, long apartmentId) { if (this.m_AccountService.Id != accountService.Id) { this.m_AccountService = accountService; this.m_ApartmentId = apartmentId; if (((this.m_AccountService != null) && (this.m_AccountService != AccountService.Null)) && (this.m_ApartmentId != 0L)) { this.bsPenaltyRemission.set_DataSource(AccountServicePenaltyRemission.FindByAccountServiceId(this.m_AccountService.Id)); } } }
public void Fill(AccountService accountService) { this.m_AccountService = accountService ?? AccountService.Null; if (this.m_AccountService == AccountService.Null) { this.bsAccountServiceTarrifs.Clear(); } else { this.bsAccountServiceTarrifs.set_DataSource(this.m_AccountService.GetAccountServiceTariff()); } }
public void Fill(AccountService accountService) { if (this.m_AccountService != accountService) { this.m_AccountService = accountService; if (this.m_AccountService == AccountService.Null) { this.bsAccountServiceSubQualities.Clear(); } else { this.bsAccountServiceSubQualities.set_DataSource(this.m_AccountService.GetAccountServiceSubQuality()); } } }
private void m_SearchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.btnReCalc.set_Image(null); if (e.Error != null) { BalloonWindow.Show(this.btnReCalc, e.Error.get_Message()); } else if (this.m_Periods != null) { bool flag; this.dd = new System.Collections.Generic.Dictionary<System.DateTime, ObjectList<CalcService>>(); foreach (CalcPeriod period in this.m_Periods) { ObjectList<CalcService> list = CalcService.FindByCalcIdAndPeriod(this.m_CalcId, period.FromDate); this.dd.Add(period.FromDate, list); foreach (CalcService service in list) { if (service.ServiceShortName == "ИТОГО:") { this.dgvRecalcPeriod.Rows.Add((object[]) new object[] { period.FromDate, service.DiffChargeSumm, service.DiffBenefitSumm }); } else if ((service.DiffChargeSumm != 0M) || (service.DiffBenefitSumm != 0M)) { AccountService service2 = this.m_RecalcAccountServices.FindById(service.AccountServiceId); if (service2 == null) { service2 = new AccountService { Id = service.AccountServiceId, ServiceCode = service.ServiceCode, ServiceShortName = service.ServiceShortName, DiffChargeSumm = service.DiffChargeSumm, DiffBenefitSumm = service.DiffBenefitSumm }; this.m_RecalcAccountServices.Add(service2); } else { service2.DiffChargeSumm += service.DiffChargeSumm; service2.DiffBenefitSumm += service.DiffBenefitSumm; } } } } this.btnReCalc.set_Enabled(true); this.btnSelectAccountService.set_Enabled(flag = User.IsMemberOf(RightsEnum.АРМБухгалтерЛСЛицевыеСохранениеПерерасчёта)); this.btnSaveRecalc.set_Enabled(flag); this.btnParametersOfCalculation.set_Enabled(true); } }
private void btnDelete_Click(object sender, System.EventArgs e) { if ((this.GetAccountService() != AccountService.Null) && (Messages.QuestionYesNo(this, "Вы действительно хотите удалить?") != System.Windows.Forms.DialogResult.No)) { this.m_AccountService = this.GetAccountService(); if ((this.m_AccountService != null) && (this.m_AccountService != AccountService.Null)) { this.m_AccountService.Delete(); this.UpdateBindingAccountServices(); } } }
private void btnAdd_Click(object sender, System.EventArgs e) { if (this.m_Account == Account.Null) { Messages.ShowMessage("Выберите лицевой счет"); } else { AccountService accountService = new AccountService { AccountId = this.m_Account.Id, ApartmentId = this.m_Account.ApartmentId }; AccountServiceAddChangeForm form = new AccountServiceAddChangeForm(accountService); if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { this.UpdateBindingAccountServices(); this.bsAccountServices.set_Position(this.bsAccountServices.IndexOf(accountService)); } } }
public AccountServiceAddChangeForm(AccountService accountService) : this() { this.m_AccountService = accountService; }
public AccountServiceAddChangeForm() { this.m_AccountService = AccountService.Null; this.InitializeComponent(); }
public AccountServiceDocumentForm() { this.m_AccountService = new AccountService(); this.InitializeComponent(); }
public void Fill(AccountService accountService) { if ((accountService != null) && (this.m_accountService.Id != accountService.Id)) { this.m_accountService = accountService; this.m_ServiceNameDataGridViewTextBoxColumn.set_Visible(false); this.m_accountNumberDataGridViewTextBoxColumn.set_Visible(false); this.UpdateBindingSourceJn(); } }
public AccountServiceDocumentForm(AccountService accountService) : this() { this.m_AccountService = accountService; }
private void SaveAccountServiceCounters() { Account lastOpenedAccount = this.m_ApartmentCounter.GetApartment().GetLastOpenedAccount(); this.m_ApartmentCounter.UpdateAccountServiceCounters(this.m_FromDate, this.m_ToDate); foreach (AccountServiceCounter counter in this.m_SelectedAccountServiceCounters) { counter.FromDate = this.dbBegin.Value; counter.ToDate = this.dbEnd.IsNull ? Constants.NullDate : this.dbEnd.Value; counter.CounterId = this.m_ApartmentCounter.Id; ObjectList<AccountService> openedByApartmentIdAndServiceId = AccountService.GetOpenedByApartmentIdAndServiceId(this.m_ApartmentCounter.ApartmentId, counter.ServiceId); if (openedByApartmentIdAndServiceId.get_Count() == 0) { AccountService service = new AccountService { AccountId = lastOpenedAccount.Id, ServiceId = counter.ServiceId, FromDate = counter.FromDate, ToDate = counter.ToDate }; service.SaveChanges(); counter.AccountServiceId = service.Id; } else { counter.AccountServiceId = openedByApartmentIdAndServiceId.get_Item(0).Id; } counter.SaveChanges(); } }