本文整理汇总了C#中Attendance.BAL.Report.GetPayrollReport方法的典型用法代码示例。如果您正苦于以下问题:C# Report.GetPayrollReport方法的具体用法?C# Report.GetPayrollReport怎么用?C# Report.GetPayrollReport使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Attendance.BAL.Report
的用法示例。
在下文中一共展示了Report.GetPayrollReport方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetReport
private void GetReport(DateTime StartDate, DateTime EndTime, int userid)
{
try
{
Attendance.BAL.Report obj = new Report();
DataSet ds = obj.GetPayrollReport(StartDate, EndTime, userid);
lblWeekPayrollReport.Text = "( " + StartDate.ToString("MM/dd/yyyy") + " - " + EndTime.ToString("MM/dd/yyyy") + " )";
GetEditHistory(StartDate, EndTime);
grdPayRoll.DataSource = ds.Tables[0];
grdPayRoll.DataBind();
}
catch (Exception ex)
{
}
}
示例2: GetReport
//.........这里部分代码省略.........
// notes += txtAdvancePaid.Attributes["notes"].ToString();
// notes += "<br>....................<br> Advance paid enter by" + lblEmployyName.Text.Trim() + " at " + objSal.EnteredDate + "<br>";
// }
// }
// if (txtExpenses.Attributes["notes"] != null)
// {
// if (txtExpenses.Attributes["notes"].ToString().Trim() != "")
// {
// notes += txtExpenses.Attributes["notes"].ToString();
// notes += "<br>....................<br> Expenses enter by" + lblEmployyName.Text.Trim() + " at " + objSal.EnteredDate + "<br>";
// }
// }
// if (txtLoanDeduct.Attributes["notes"] != null)
// {
// if (txtLoanDeduct.Attributes["notes"].ToString().Trim() != "")
// {
// notes += txtLoanDeduct.Attributes["notes"].ToString();
// notes += "<br>....................<br> Loan deduction enter by" + lblEmployyName.Text.Trim() + " at " + objSal.EnteredDate + "<br>";
// }
// }
// objSal.InternalNotes = notes;
// bool bnew = obj.SaveSalaryHistory(objSal);
// }
// bool bnewf = obj.FinalizePayrollReport(locationID, dt, Convert.ToInt32(Session["UserID"]),Convert.ToInt32(ddlShift.SelectedValue));
// bool final = obj.GetFinalPayrollDate(dt, Convert.ToInt32(ddlLocation.SelectedItem.Value), Convert.ToInt32(ddlShift.SelectedValue));
// if (final)
// {
// btnFinal.CssClass = "btn btn-small btn-warning disabled";
// btnSave.CssClass = "btn btn-small btn-warning disabled";
// btnFinal.Enabled = false;
// btnSave.Enabled = false;
// hdnFreeze.Value = "true"; ;
// // System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "Script", "delEditLabelCss();", true);
// }
// else
// {
// btnFinal.CssClass = "btn btn-small btn-warning";
// btnSave.CssClass = "btn btn-small btn-warning";
// btnFinal.Enabled = true;
// btnSave.Enabled = true;
// hdnFreeze.Value = "false";
// // System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "Script", "addEditLabelCss();", true);
// }
// DataTable dst = GetReportIndia(dt, EndDate, Convert.ToInt32(ddlLocation.SelectedValue),Convert.ToInt32(ddlShift.SelectedValue));
// lblWeekPayrollReport.Text = "( " + dt.ToString("MM/dd/yyyy") + " - " + EndDate.ToString("MM/dd/yyyy") + " )";
// GetEditHistory(dt, EndDate);
// //lblTotal.Text = "Employee record count: " + dst.Rows.Count.ToString().Trim();
// lblReportDate.Text = "Report generated at <b>" + Convert.ToDateTime(lblDate2.Text).ToString("MM/dd/yyyy hh:mm:ss tt") + "</b> by <b>" + Session["EmpName"].ToString().Trim() + "</b>";
// grdPayRollIndia.DataSource = dst;
// grdPayRollIndia.DataBind();
// Session["Indiapayroll"] = (DataTable)grdPayRollIndia.DataSource;
// btnSave.Visible = true;
// btnFinal.Visible = true;
// btnPrint.Visible = true;
// grdPayRoll.DataSource = null;
// grdPayRoll.DataBind();
// //DataTable xmlDt = (DataTable)grdPayRollIndia.DataSource;
// //xmlDt.TableName = "Payslip";
// //xmlDt.WriteXml("/myxml.xml", true);
// }
// catch (Exception ex)
// {
// }
//}
private void GetReport(DateTime StartDate, DateTime EndTime, int userid, string Location,int shiftID)
{
try
{
Attendance.BAL.Report obj = new Report();
DataSet ds = obj.GetPayrollReport(StartDate, EndTime, userid, Location,shiftID);
lblWeekPayrollReport.Text = "( " + StartDate.ToString("MM/dd/yyyy") + " - " + EndTime.ToString("MM/dd/yyyy") + " )";
GetEditHistory(StartDate, EndTime);
if (ds.Tables[0].Rows.Count > 0)
{
lblTotal.Text = ds.Tables[0].Rows[0]["LocDescriptiom"].ToString().Trim() == "" ? "Employee record count: " + ds.Tables[0].Rows.Count.ToString().Trim() : ds.Tables[0].Rows[0]["LocDescriptiom"].ToString().Trim() + " location; Employee record count: " + ds.Tables[0].Rows.Count.ToString().Trim();
lblReportDate.Text = "Report generated at <b>" + Convert.ToDateTime(lblDate2.Text).ToString("MM/dd/yyyy hh:mm:ss tt") + "</b> by <b>" + Session["EmpName"].ToString().Trim() + "</b>";
grdPayRoll.DataSource = ds.Tables[0];
grdPayRoll.DataBind();
grdPayRollIndia.DataSource = null;
grdPayRollIndia.DataBind();
Session["Indiapayroll"] = (DataTable)grdPayRollIndia.DataSource;
dvNodata.Style["display"] = "none";
lblGrdNodata.Text = "";
}
else
{
lblTotal.Text = "";
lblReportDate.Text = "";
dvNodata.Style["display"] = "block";
lblGrdNodata.Text = "No data found";
grdPayRoll.DataSource = null;
grdPayRoll.DataBind();
grdPayRollIndia.DataSource = null;
grdPayRollIndia.DataBind();
}
}
catch (Exception ex)
{
}
}
示例3: GetReportIndia
private DataTable GetReportIndia(DateTime StartDate, DateTime EndTime, int userid, string Location, int shiftID)
{
DataTable dt = new DataTable();
try
{
Attendance.BAL.Report obj = new Report();
DataSet ds = obj.GetPayrollReport(StartDate, EndTime, userid, Location, shiftID);
dt = ds.Tables[0];
}
catch (Exception ex)
{
}
return dt;
}
示例4: GetReport
private void GetReport(DateTime StartDate, DateTime EndTime, int userid)
{
try
{
Attendance.BAL.Report obj = new Report();
DataSet ds = obj.GetPayrollReport(StartDate, EndTime, userid);
lblWeekPayrollReport.Text = "( " + StartDate.ToString("MM/dd/yyyy") + " - " + EndTime.ToString("MM/dd/yyyy") + " )";
GetEditHistory(StartDate, EndTime);
lblTotal.Text = ds.Tables[0].Rows[0]["LocDescriptiom"].ToString().Trim()==""?"Employee record count: " + ds.Tables[0].Rows.Count.ToString().Trim(): ds.Tables[0].Rows[0]["LocDescriptiom"].ToString().Trim() +" location; Employee record count: " + ds.Tables[0].Rows.Count.ToString().Trim();
lblReportDate.Text="Report generated at <b>" + Convert.ToDateTime(lblDate2.Text).ToString("MM/dd/yyyy hh:mm:ss tt") + "</b> by <b>" + Session["EmpName"].ToString().Trim()+"</b>";
grdPayRoll.DataSource = ds.Tables[0];
grdPayRoll.DataBind();
}
catch (Exception ex)
{
}
}