private void showHR_ProvidentfundContributionData() { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); hR_ProvidentfundContribution = HR_ProvidentfundContributionManager.GetHR_ProvidentfundContributionByProvidentfundContributionID(Int32.Parse(Request.QueryString["ID"])); ddlEmployeeID.SelectedValue = hR_ProvidentfundContribution.EmployeeID.ToString(); txtAmount.Text = hR_ProvidentfundContribution.Amount.ToString(); }
public static HR_ProvidentfundContribution GetHR_ProvidentfundContributionByProvidentfundContributionID(int ProvidentfundContributionID) { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); SqlHR_ProvidentfundContributionProvider sqlHR_ProvidentfundContributionProvider = new SqlHR_ProvidentfundContributionProvider(); hR_ProvidentfundContribution = sqlHR_ProvidentfundContributionProvider.GetHR_ProvidentfundContributionByProvidentfundContributionID(ProvidentfundContributionID); return hR_ProvidentfundContribution; }
public static HR_ProvidentfundContribution GetHR_ProvidentfundContributionByEmployeeID(string EmployeeID) { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); SqlHR_ProvidentfundContributionProvider sqlHR_ProvidentfundContributionProvider = new SqlHR_ProvidentfundContributionProvider(); hR_ProvidentfundContribution = sqlHR_ProvidentfundContributionProvider.GetHR_ProvidentfundContributionByEmployeeID(EmployeeID); return hR_ProvidentfundContribution; }
protected void btnUpdate_Click(object sender, EventArgs e) { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); hR_ProvidentfundContribution.ProvidentfundContributionID = int.Parse(Request.QueryString["ID"].ToString()); hR_ProvidentfundContribution.EmployeeID = ddlEmployeeID.SelectedValue; hR_ProvidentfundContribution.Amount = decimal.Parse(txtAmount.Text); string userID = Profile.card_id; hR_ProvidentfundContribution.AddedBy = userID; hR_ProvidentfundContribution.AddedDate = DateTime.Now; hR_ProvidentfundContribution.ModifiedBy = userID; hR_ProvidentfundContribution.ModifiedDate = DateTime.Now; bool resutl = HR_ProvidentfundContributionManager.UpdateHR_ProvidentfundContribution(hR_ProvidentfundContribution); Response.Redirect("AdminDisplayHR_ProvidentfundContribution.aspx"); }
protected void btnAdd_Click(object sender, EventArgs e) { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); // hR_ProvidentfundContribution.ProvidentfundContributionID= int.Parse(ddlProvidentfundContributionID.SelectedValue); hR_ProvidentfundContribution.EmployeeID = ddlEmployeeID.SelectedValue; hR_ProvidentfundContribution.Amount = decimal.Parse(txtAmount.Text); string userID = Profile.card_id; hR_ProvidentfundContribution.AddedBy = userID; hR_ProvidentfundContribution.AddedDate = DateTime.Now; hR_ProvidentfundContribution.ModifiedBy = userID; hR_ProvidentfundContribution.ModifiedDate = DateTime.Now; int resutl = HR_ProvidentfundContributionManager.InsertHR_ProvidentfundContribution(hR_ProvidentfundContribution); Response.Redirect("AdminDisplayHR_ProvidentfundContribution.aspx"); }
protected void btnAddProvidenedFund_Click(object sender, EventArgs e) { if (hfEmployeeID.Value != null) { if (!HR_ProvidentfundContributionManager.IsEmployeeExist(hfEmployeeID.Value.ToString())) { HR_ProvidentfundContribution hR_ProvidentfundContribution = new HR_ProvidentfundContribution(); hR_ProvidentfundContribution.EmployeeID = hfEmployeeID.Value.ToString(); hR_ProvidentfundContribution.ProvidentfundRulesID = Convert.ToInt32(ddlProvidentfundPercentage.SelectedValue); hR_ProvidentfundContribution.Amount = decimal.Parse(txtSecurityMoney.Text); string userID = Profile.card_id; hR_ProvidentfundContribution.AddedBy = userID; hR_ProvidentfundContribution.AddedDate = DateTime.Now; hR_ProvidentfundContribution.ModifiedBy = userID; hR_ProvidentfundContribution.ModifiedDate = DateTime.Now; if (Convert.ToInt32(ddlProvidentfundPercentage.SelectedValue) != 0) { int resutl = HR_ProvidentfundContributionManager.InsertHR_ProvidentfundContribution(hR_ProvidentfundContribution); lblProvidenedFundMsg.Text = "This Information is saved"; lblProvidenedFundMsg.ForeColor = System.Drawing.Color.Green; } else { lblProvidenedFundMsg.Text = "Select vaild value"; lblProvidenedFundMsg.ForeColor = System.Drawing.Color.Red; } } else { lblProvidenedFundMsg.Text = "Employee's information is exist."; lblProvidenedFundMsg.ForeColor = System.Drawing.Color.Red; } } else { lblProvidenedFundMsg.Text = "Employee is not specified."; lblProvidenedFundMsg.ForeColor = System.Drawing.Color.Red; } }
public static bool UpdateHR_ProvidentfundContribution(HR_ProvidentfundContribution hR_ProvidentfundContribution) { SqlHR_ProvidentfundContributionProvider sqlHR_ProvidentfundContributionProvider = new SqlHR_ProvidentfundContributionProvider(); return sqlHR_ProvidentfundContributionProvider.UpdateHR_ProvidentfundContribution(hR_ProvidentfundContribution); }
public static int InsertHR_ProvidentfundContribution(HR_ProvidentfundContribution hR_ProvidentfundContribution) { SqlHR_ProvidentfundContributionProvider sqlHR_ProvidentfundContributionProvider = new SqlHR_ProvidentfundContributionProvider(); return sqlHR_ProvidentfundContributionProvider.InsertHR_ProvidentfundContribution(hR_ProvidentfundContribution); }