Example #1
0
        public TRANSACAO(CONTA conta, CATEGORIA categoria, string nome, DateTime data, decimal valor, string owner)
            : this()
        {
            CONTA = conta;
            CATEGORIA = categoria;
            Nome = nome;
            Data = data;
            Valor = valor;
            Owner = owner;

            JOURNAL = new JOURNAL(this, owner);
        }
Example #2
0
		private void detach_JOURNALSDEBITO(JOURNAL entity)
		{
			this.SendPropertyChanging();
			entity.CONTADEBITO = null;
		}
Example #3
0
		private void attach_JOURNALSCREDITO(JOURNAL entity)
		{
			this.SendPropertyChanging();
			entity.CONTACREDITO = this;
		}
Example #4
0
 partial void DeleteJOURNAL(JOURNAL instance);
Example #5
0
 partial void UpdateJOURNAL(JOURNAL instance);
Example #6
0
 partial void InsertJOURNAL(JOURNAL instance);
Example #7
0
		private void detach_JOURNALS(JOURNAL entity)
		{
			this.SendPropertyChanging();
			entity.CATEGORIA = null;
		}
Example #8
0
        public JsonResult JsonCreate(JournalModel model)
        {
            UpdateJournalModelProperties(model, ModelState);

            if (ModelState.IsValid)
            {
                JOURNAL journal = new JOURNAL(model, User.Identity.Name);

                journalRepository.InsertOnSubmit(journal);
                journalRepository.Save();

                return Json(new { success = true });
            }

            return Json(new { errors = GetErrorsFromModelState() });
        }
Example #9
0
 public TRANSFERENCIA(JOURNAL journal, TRANSACAO debito, TRANSACAO credito, string owner)
     : this()
 {
 }