Exemplo n.º 1
0
 public RemitteeServiceForm()
 {
     this.m_service = new ServiceOld();
     this.m_remittee = new Remittee();
     this.InitializeComponent();
     this.set_Font(Manager.WindowFont);
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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));
     }
 }
Exemplo n.º 4
0
 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();
     }
 }
Exemplo n.º 5
0
 public ObjectList<ServiceOld> FindIncludeService(Remittee m_remittee)
 {
     return Mappers.ServiceOldMapper.FindIncludeServiceRemittee(m_remittee.Id, this.HouseHolderId, this.ServiceProviderId, this.ServiceTypeId);
 }
Exemplo n.º 6
0
 public RemitteeAddChangeForm()
 {
     this.m_remittee = new Remittee();
     this.InitializeComponent();
     this.set_Font(Manager.WindowFont);
 }
Exemplo n.º 7
0
 public static ObjectList<RemitteeService> FindByRemitteeId(Remittee remittee)
 {
     return Mappers.RemitteeServiceMapper.FindByRemitteeId(remittee.Id);
 }
Exemplo n.º 8
0
 public RemitteeServiceForm(Remittee remittee)
     : this()
 {
     this.m_remittee = remittee;
 }