Help im tring to get the Gross Pay of EACH Employee in the grid view.
Please Help me, here's my code:
protected void btnGenerate_Click(object sender, EventArgs e)
{
GetEmployee();
GetEmployeeSession();
GetDTR();
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
try
{
int EmployeeID = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value);
//BasicPay
decimal A = decimal.Parse(Session["Rate"].ToString());
int H = int.Parse(Session["TotalDays"].ToString());
decimal BasicPay = A * H;
//NightDiff
int B = int.Parse(Session["NDHours"].ToString());
int C = int.Parse(Session["NightDiff"].ToString());
int NightDiff = B * C;
//OT Hours
int D = int.Parse(Session["OThours"].ToString());
int E = int.Parse(Session["OT"].ToString());
int OT = D * E;
Go to the complete details ...