Questions tagged [business-logic]

Business logic is the abstract thought process behind decision making in human transactions. Translation of business logic into code is one of the major tasks in producing business software.

626 questions
5
votes
5 answers

Enabling and Disabling Radio Buttons Depending on User Selection

I'm looking to write jQuery to only enable radio buttons depending on which radio buttons are currently selected in accordance with some business logic. Essentially there are 3 groups of 3 radio buttons, which end up looking something like (my…
btw
  • 7,006
  • 9
  • 40
  • 40
5
votes
5 answers

SMS - How to avoid Bankruptcy?

I'm coding a new website that will need users to enter their mobile phone number, the problem I'm facing is that I need to make sure that the user is in fact the owner of (or in this case, has access to) the mobile number. The solution I've come up…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
5
votes
5 answers

php function array_keys equivalent in jquery

Possible Duplicate: how to fetch array keys with jQuery? php built-in function array_keys(), equivalent in jquery is there any built in function in jquery similar to that of php array_keys(),. please suggest
Manojkumar
  • 1,351
  • 5
  • 35
  • 63
5
votes
4 answers

What is the best way to increment invoice ID?

I'm developing a simple invoice system using PHP and MySQL. My initial thought was to use ID (auto incremented) for invoice ID. But that will not work. A temporary invoice is created when user commits an order to my Payment Service Provider. If the…
Steven
  • 19,224
  • 47
  • 152
  • 257
4
votes
5 answers

Business rules - where do they go in OOP?

I have a class : Schedule. public class Schedule { private int locationNum; private int cost; private String costReason; private Date weekOfChange; private Date dayOfChange; private String changeReason; // and all those getters and…
Jay
  • 2,394
  • 11
  • 54
  • 98
4
votes
1 answer

Strategies for sharing common business logic across different programming languages

Having a monolithic business application with complex business logic implemented in Visual Dataflex, we are facing the challenge of maintaining our business logic across programming languages as certain features are written in other programming…
Ola Eldøy
  • 5,720
  • 7
  • 49
  • 82
4
votes
3 answers

Looking for tips to build "TestMaker" (Questions and Responses) application with Evaluation Engine

I'm working on a new project. My best analogy would be a psychological evaluation test maker. Aspect #1. The end-business-user needs to create test questions. With question types. And possible responses to the questions when…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
4
votes
3 answers

Using static classes in Business Logic Layer

I am aware that the answer to my question might involve choosing a specific approach, But I try to explain what I'm trying to find out with details: Consider a simple 3-layer application (DAL, BLL, PL). DAL uses EF 4.1 Code-First and access to…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
4
votes
1 answer

How to encapsulate web2py business logic?

I just found web2py a couple days ago, and have been reading the documentation and through the source of a few example applications. I want to start programming more in Python. It seems that my take on MVC is a little skewed from theirs [web2py…
BDuelz
  • 3,890
  • 7
  • 39
  • 62
4
votes
1 answer

What types of code are appropriate for the service layer?

Assume you have entities, a service layer, and repositories (with an ORM like NHibernate). The UIs interact with the service layer. What types of code are appropriate for the service layer? Repository Coordination? It looks like entities should…
Mayo
  • 10,544
  • 6
  • 45
  • 90
4
votes
1 answer

A better way to implement Business Logic in MS Web Forms

I use C# Entity Framework and Asp.net Web Forms 4. At the moment I'm developing the Administrator section for a Cms so I have to work with many GridView Controls for CRUD operations on my data. I use EF as DAL and I implement my Business Logic…
GibboK
  • 71,848
  • 143
  • 435
  • 658
4
votes
1 answer

What is Business logic in Clean Architecture (domain)

People say business logic should handled in domain layer. But I don't exactly understand what is business logic in Android. In my project I cache data when API request is successful. And if API Request got failed, get local data. In my understand It…
김도훈
  • 43
  • 4
4
votes
0 answers

Java - Can I add business logic in Builder methods?

I am currently working on refactoring the code in our web application and I ran into a very complex object that needs to be built from multiple objects. Each attribute of the complex object is derived by executing some logic. I searched online to…
4
votes
3 answers

Are all the classes containing business logic, domain objects?

So I have few doubts regarding calling something as domain object (and eventually placing the class under domain package) or not. I have a micro-service whose responsibility is to do some calculations (without getting into actual business…
Nayab Siddiqui
  • 1,971
  • 1
  • 15
  • 18
4
votes
1 answer

How to apply limitations into all of business points in spring/hibernate enterprise application without change codes?

Assume this class diagram: I have class named Organization that many objects has association to that. also there are many object in addition to the StoreHouse and Personnel, but to have simple class diagram, i didn't put those classes into diagram…
Rasool Ghafari
  • 4,128
  • 7
  • 44
  • 71