Click here to Skip to main content
15,889,200 members
Home / Discussions / C#
   

C#

 
AnswerRe: Correct way of doing installer in Windows.... Pin
Pete O'Hanlon28-Jun-12 4:13
mvePete O'Hanlon28-Jun-12 4:13 
GeneralRe: Correct way of doing installer in Windows.... Pin
glennPattonWork328-Jun-12 4:48
professionalglennPattonWork328-Jun-12 4:48 
GeneralRe: Correct way of doing installer in Windows.... Pin
Pete O'Hanlon28-Jun-12 5:46
mvePete O'Hanlon28-Jun-12 5:46 
GeneralRe: Correct way of doing installer in Windows.... Pin
glennPattonWork328-Jun-12 5:57
professionalglennPattonWork328-Jun-12 5:57 
GeneralRe: Correct way of doing installer in Windows.... Pin
Pete O'Hanlon28-Jun-12 6:13
mvePete O'Hanlon28-Jun-12 6:13 
GeneralRe: Correct way of doing installer in Windows.... Pin
glennPattonWork329-Jun-12 0:52
professionalglennPattonWork329-Jun-12 0:52 
GeneralRe: Correct way of doing installer in Windows.... Pin
glennPattonWork329-Jun-12 4:47
professionalglennPattonWork329-Jun-12 4:47 
QuestionC# and mySQL question - Salary Slips Pin
Jassim Rahma28-Jun-12 1:52
Jassim Rahma28-Jun-12 1:52 
Hi,

I need to explain this abit....

I am using MySQL awith C# to develop Windows Form application..

I have the following tables:

SQL
CREATE TABLE `salary_slip_category` (
  `salary_slip_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `salary_slip_category_name` varchar(255) DEFAULT NULL,
  `salary_slip_category_plus_or_minus` varchar(1) DEFAULT NULL,
  `salary_slip_category_default_description` varchar(255) DEFAULT NULL,
  `salary_slip_category_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`salary_slip_category_id`),
  KEY `idx_salary_slip_category_salary_slip_category_name` (`salary_slip_category_name`),
  KEY `idx_salary_slip_category_salary_slip_category_plus_or_minus` (`salary_slip_category_plus_or_minus`),
  KEY `idx_salary_slip_category_salary_slip_category_default_descriptio` (`salary_slip_category_default_description`),
  KEY `idx_salary_slip_category_salary_slip_category_order` (`salary_slip_category_order`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;





SQL
CREATE TABLE `salary_slip_details` (
  `salary_slip_details_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_number` int(11) DEFAULT NULL,
  `is_benefit` bit(1) DEFAULT b'0',
  `salary_slip_details_order` int(11) DEFAULT '999',
  `trxn_code` varchar(50) DEFAULT NULL,
  `salary_slip_id` int(11) DEFAULT NULL,
  `salary_slip_code` int(11) DEFAULT NULL,
  `salary_slip_month` int(11) DEFAULT NULL,
  `salary_slip_year` int(11) DEFAULT NULL,
  `salary_slip_details_category` varchar(255) DEFAULT NULL,
  `salary_slip_category_plus_or_minus` varchar(1) DEFAULT NULL,
  `salary_slip_details_description` varchar(255) DEFAULT NULL,
  `salary_slip_details_amount` double(10,3) DEFAULT NULL,
  `salary_slip_details_released` bit(1) DEFAULT b'0',
  PRIMARY KEY (`salary_slip_details_id`),
  KEY `idx_salary_slip_details_employee_number` (`employee_number`),
  KEY `idx_salary_slip_details_is_benefit` (`is_benefit`),
  KEY `idx_salary_slip_details_salary_slip_details_order` (`salary_slip_details_order`),
  KEY `idx_salary_slip_details_trxn_code` (`trxn_code`),
  KEY `idx_salary_slip_details_salary_slip_id` (`salary_slip_id`),
  KEY `idx_salary_slip_details_salary_slip_code` (`salary_slip_code`),
  KEY `idx_salary_slip_details_salary_slip_month` (`salary_slip_month`),
  KEY `idx_salary_slip_details_salary_slip_year` (`salary_slip_year`),
  KEY `idx_salary_slip_details_salary_slip_details_category` (`salary_slip_details_category`),
  KEY `idx_salary_slip_details_salary_slip_category_plus_or_minus` (`salary_slip_category_plus_or_minus`),
  KEY `idx_salary_slip_details_salary_slip_details_description` (`salary_slip_details_description`),
  KEY `idx_salary_slip_details_salary_slip_details_amount` (`salary_slip_details_amount`),
  KEY `idx_salary_slip_details_salary_slip_details_released` (`salary_slip_details_released`)
) ENGINE=InnoDB AUTO_INCREMENT=171 DEFAULT CHARSET=utf8;





SQL
CREATE TABLE `employee` (
  `employee_number` int(11) NOT NULL AUTO_INCREMENT,
  `id_number` varchar(255) DEFAULT NULL,
  `employee_name` varchar(255) DEFAULT NULL,
  `employee_gender` varchar(11) DEFAULT NULL,
  `employee_designation` varchar(255) DEFAULT NULL,
  `date_of_birth` date DEFAULT NULL,
  `employee_email` varchar(255) DEFAULT NULL,
  `employee_mobile` varchar(255) DEFAULT NULL,
  `employee_home_tel` varchar(255) DEFAULT NULL,
  `date_of_join` date DEFAULT NULL,
  `last_working_date` date DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `bank_account` varchar(50) DEFAULT NULL,
  `current_employee` bit(1) DEFAULT b'1',
  `is_active` bit(1) DEFAULT b'1',
  `login_password` varchar(255) DEFAULT NULL,
  `login_pin` varchar(4) DEFAULT NULL,
  `created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`employee_number`),
  KEY `idx_employee_id_number` (`id_number`),
  KEY `idx_employee_employee_name` (`employee_name`),
  KEY `idx_employee_employee_gender` (`employee_gender`),
  KEY `idx_employee_employee_designation` (`employee_designation`),
  KEY `idx_employee_date_of_birth` (`date_of_birth`),
  KEY `idx_employee_employee_email` (`employee_email`),
  KEY `idx_employee_employee_mobile` (`employee_mobile`),
  KEY `idx_employee_employee_home_tel` (`employee_home_tel`),
  KEY `idx_employee_date_of_join` (`date_of_join`),
  KEY `idx_employee_last_working_date` (`last_working_date`),
  KEY `idx_employee_bank_name` (`bank_name`),
  KEY `idx_employee_bank_account` (`bank_account`),
  KEY `idx_employee_current_employee` (`current_employee`),
  KEY `idx_employee_s_active` (`is_active`),
  KEY `idx_employee_login_password` (`login_password`),
  KEY `idx_employee_login_pin` (`login_pin`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;




I am using the salary_slip_details to view the salary details, linking it with employee_number in the employee table and also linking it to the salary_slip_category to view it by category

I want to know how can I make the result showing like this:

1. every employee will have one row.

2. Categories will be shown as columns and total amount of the category will be shown there


so if the employee has 2 record of decution (category) 10 dollar each the in the deduction column it will show 20$ for that employee



kindly help....
AnswerRe: C# and mySQL question - Salary Slips Pin
Abhinav S28-Jun-12 2:20
Abhinav S28-Jun-12 2:20 
GeneralRe: C# and mySQL question - Salary Slips Pin
Jassim Rahma28-Jun-12 2:31
Jassim Rahma28-Jun-12 2:31 
AnswerRe: C# and mySQL question - Salary Slips Pin
Pete O'Hanlon28-Jun-12 2:38
mvePete O'Hanlon28-Jun-12 2:38 
QuestionOpenXML SDK - a link in MS Excel to open another MS Excel. how would the request be authenticated? Pin
Rijz27-Jun-12 19:20
Rijz27-Jun-12 19:20 
AnswerRe: OpenXML SDK - a link in MS Excel to open another MS Excel. how would the request be authenticated? Pin
Richard MacCutchan27-Jun-12 22:29
mveRichard MacCutchan27-Jun-12 22:29 
GeneralRe: OpenXML SDK - a link in MS Excel to open another MS Excel. how would the request be authenticated? Pin
Rijz27-Jun-12 23:47
Rijz27-Jun-12 23:47 
GeneralNeed some general feedback on my WCF Pin
Software200727-Jun-12 14:30
Software200727-Jun-12 14:30 
GeneralRe: Need some general feedback on my WCF Pin
Richard MacCutchan27-Jun-12 22:28
mveRichard MacCutchan27-Jun-12 22:28 
GeneralRe: Need some general feedback on my WCF Pin
Software200728-Jun-12 6:09
Software200728-Jun-12 6:09 
GeneralRe: Need some general feedback on my WCF Pin
Richard MacCutchan28-Jun-12 6:40
mveRichard MacCutchan28-Jun-12 6:40 
QuestionScope issue closing a connection after exception Pin
Harley Burton27-Jun-12 6:02
Harley Burton27-Jun-12 6:02 
AnswerRe: Scope issue closing a connection after exception Pin
Pete O'Hanlon27-Jun-12 6:13
mvePete O'Hanlon27-Jun-12 6:13 
AnswerRe: Scope issue closing a connection after exception Pin
Luc Pattyn27-Jun-12 6:20
sitebuilderLuc Pattyn27-Jun-12 6:20 
SuggestionRe: Scope issue closing a connection after exception Pin
kisMicrosoftDev27-Jun-12 6:29
kisMicrosoftDev27-Jun-12 6:29 
GeneralRe: Scope issue closing a connection after exception Pin
Harley Burton27-Jun-12 6:57
Harley Burton27-Jun-12 6:57 
GeneralRe: Scope issue closing a connection after exception Pin
mohancbe27-Jun-12 21:11
mohancbe27-Jun-12 21:11 
AnswerRe: Scope issue closing a connection after exception Pin
Harley Burton14-Aug-19 4:37
Harley Burton14-Aug-19 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.