public RemitteeServiceForm() { this.m_service = new ServiceOld(); this.m_remittee = new Remittee(); this.InitializeComponent(); this.set_Font(Manager.WindowFont); }
private void btnAdd_Click(object sender, System.EventArgs e) { Remittee remittee = new Remittee(); new RemitteeAddChangeForm(remittee, "Добавить").ShowDialog(); this.bsRemitee.set_DataSource(Remittee.GetAll()); this.bsRemitee.set_Position(this.bsRemitee.IndexOf(remittee)); }
private void btnAdd_Click(object sender, System.EventArgs e) { Remittee remittee = new Remittee(); RemitteeAddChangeForm form = new RemitteeAddChangeForm(remittee, "Добавить"); if (form.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) { this.bsRemittee.set_DataSource(ObjectWithId.FindById<Remittee>(remittee.Id)); } }
public RemitteeAddChangeForm(Remittee remittee, string button) : this() { this.m_remittee = remittee; this.btnAddChange.set_Text(button); this.set_Text(button + " получателя перевода"); if (!this.m_remittee.IsNew) { this.selectOrganization.SelectedOrganization = this.m_remittee.GetRemitteeOrg(); this.selectOrgDocument.SelectedOrgDocument = this.m_remittee.GetClientDoc(); this.selectBankAccount.SelectedBankAccount = this.m_remittee.GetBankAccount(); } }
public ObjectList<ServiceOld> FindIncludeService(Remittee m_remittee) { return Mappers.ServiceOldMapper.FindIncludeServiceRemittee(m_remittee.Id, this.HouseHolderId, this.ServiceProviderId, this.ServiceTypeId); }
public RemitteeAddChangeForm() { this.m_remittee = new Remittee(); this.InitializeComponent(); this.set_Font(Manager.WindowFont); }
public static ObjectList<RemitteeService> FindByRemitteeId(Remittee remittee) { return Mappers.RemitteeServiceMapper.FindByRemitteeId(remittee.Id); }
public RemitteeServiceForm(Remittee remittee) : this() { this.m_remittee = remittee; }