当前位置: 首页>>代码示例>>C#>>正文


C# Report.GetPayrollReport方法代码示例

本文整理汇总了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)
     {
     }
 }
开发者ID:kamaelyoung,项目名称:HR.bizstrides,代码行数:15,代码来源:PayRoll.aspx.cs

示例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)
     {
     }
 }
开发者ID:hugo-mirad,项目名称:test-hr-live,代码行数:101,代码来源:PayRoll.aspx.cs

示例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;
 }
开发者ID:hugo-mirad,项目名称:test-hr-live,代码行数:14,代码来源:PayRoll.aspx.cs

示例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)
     {
     }
 }
开发者ID:BInny1,项目名称:HR.bizstrides,代码行数:17,代码来源:PayRoll.aspx.cs


注:本文中的Attendance.BAL.Report.GetPayrollReport方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。