| | |
| | | /// <summary> |
| | | /// 班组工资报表记录查询 |
| | | /// </summary> |
| | | /// <param name="compute">计算方式(逐道/末道)</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | |
| | | /// <param name="groupcode">生产班组</param> |
| | | /// <param name="username">操作人员</param> |
| | | /// <param name="operdate">操作时间</param> |
| | | /// <param name="rejectstepcode">剔除工序(固定薪资工序不参与计算)</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "GroupSalaryReportSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage GroupSalaryReportSearch(int page, int rows, string prop, string order, string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string username = null, string operdate = null) |
| | | public HttpResponseMessage GroupSalaryReportSearch(int page, int rows, string prop, string order,string compute, string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string username = null, string operdate = null,string rejectstepcode=null) |
| | | { |
| | | string operopendate = ""; //报工开始时间 |
| | | string operclosedate = ""; //报工结束时间 |
| | |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.GroupSalaryReportSearch(wocode, partcode, partname, partspec, stepname, groupcode, username, operopendate, operclosedate, startNum, endNum, prop, order); |
| | | mes = ReportManagerBLL.GroupSalaryReportSearch(compute,wocode, partcode, partname, partspec, stepname, groupcode, username, operopendate, operclosedate, rejectstepcode, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 班组工资报表记录查询 |
| | | /// </summary> |
| | | /// <param name="compute">计算方式(逐道/末道)</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | |
| | | /// <param name="groupcode">生产班组</param> |
| | | /// <param name="username">操作人员</param> |
| | | /// <param name="operdate">操作时间</param> |
| | | /// <param name="rejectstepcode">剔除工序(固定薪资工序不参与计算)</param> |
| | | /// <returns></returns> |
| | | [Route(template: "GroupSalaryReportExcelSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage GroupSalaryReportExcelSearch(string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string username = null, string operdate = null) |
| | | public HttpResponseMessage GroupSalaryReportExcelSearch(string compute, string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string username = null, string operdate = null,string rejectstepcode=null) |
| | | { |
| | | string operopendate = ""; //报工开始时间 |
| | | string operclosedate = ""; //报工结束时间 |
| | |
| | | operopendate = operdate.Split('~')[0].ToString(); |
| | | operclosedate = operdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = ReportManagerBLL.GroupSalaryReportExcelSearch(wocode, partcode, partname, partspec, stepname, groupcode, username, operopendate, operclosedate); |
| | | mes = ReportManagerBLL.GroupSalaryReportExcelSearch(compute,wocode, partcode, partname, partspec, stepname, groupcode, username, operopendate, operclosedate, rejectstepcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 人员工资明细报表 |
| | | /// </summary> |
| | | /// <param name="compute">计算方式(逐道/末道)</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | |
| | | /// <param name="groupcode">生产班组</param> |
| | | /// <param name="reportname">报工人员</param> |
| | | /// <param name="reportdate">报工时间</param> |
| | | /// <param name = "rejectstepcode" > 剔除工序(固定薪资工序不参与计算) </param > |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "PeopleSalaryReportSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage PeopleSalaryReportSearch(int page, int rows, string prop, string order, string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string reportname = null, string reportdate = null) |
| | | public HttpResponseMessage PeopleSalaryReportSearch(int page, int rows, string prop, string order,string compute, string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string reportname = null, string reportdate = null,string rejectstepcode=null) |
| | | { |
| | | string reportopendate = ""; //报工开始时间 |
| | | string reportclosedate = ""; //报工结束时间 |
| | |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.PeopleSalaryReportSearch(wocode, partcode, partname, partspec, stepname, groupcode, reportname, reportopendate, reportclosedate, startNum, endNum, prop, order); |
| | | mes = ReportManagerBLL.PeopleSalaryReportSearch(compute,wocode, partcode, partname, partspec, stepname, groupcode, reportname, reportopendate, reportclosedate, rejectstepcode, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 人员工资明细报表导出 |
| | | /// </summary> |
| | | /// <param name="compute">计算方式(逐道/末道)</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | |
| | | /// <param name="groupcode">生产班组</param> |
| | | /// <param name="reportname">报工人员</param> |
| | | /// <param name="reportdate">报工时间</param> |
| | | /// <param name = "rejectstepcode" > 剔除工序(固定薪资工序不参与计算) </param > |
| | | /// <returns></returns> |
| | | [Route(template: "PeopleSalaryReportExcelSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage PeopleSalaryReportExcelSearch(string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string reportname = null, string reportdate = null) |
| | | public HttpResponseMessage PeopleSalaryReportExcelSearch(string compute,string wocode = null, string partcode = null, string partname = null, string partspec = null, string stepname = null, string groupcode = null, string reportname = null, string reportdate = null,string rejectstepcode=null) |
| | | { |
| | | string reportopendate = ""; //报工开始时间 |
| | | string reportclosedate = ""; //报工结束时间 |
| | |
| | | reportopendate = reportdate.Split('~')[0].ToString(); |
| | | reportclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | mes = ReportManagerBLL.PeopleSalaryReportExcelSearch(wocode, partcode, partname, partspec, stepname, groupcode, reportname, reportopendate, reportclosedate); |
| | | mes = ReportManagerBLL.PeopleSalaryReportExcelSearch(compute,wocode, partcode, partname, partspec, stepname, groupcode, reportname, reportopendate, reportclosedate, rejectstepcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[生产进度报表] |
| | | /// <summary> |
| | | /// 生产进度报表 |
| | | /// </summary> |
| | | /// <param name="status">工单状态</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="routecode">工艺路线编码</param> |
| | | /// <param name="routename">工艺路线名称</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | | /// <param name="partspec">规格型号</param> |
| | | /// <param name="lm_date">单据日期</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ProductionScheduleReportSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage ProductionScheduleReportSearch(int page, int rows, string prop, string order, string status = null, string wocode = null, string routecode = null, string routename = null, string partcode = null, string partname = null, string partspec = null, string lm_date = null) |
| | | { |
| | | string opendate = ""; //开始时间 |
| | | string closedate = ""; //结束时间 |
| | | if (lm_date != "" && lm_date != null) |
| | | { |
| | | opendate = lm_date.Split('~')[0].ToString(); |
| | | closedate = lm_date.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.ProductionScheduleReportSearch(status, wocode, routecode, routename, partcode, partname, partspec, opendate, closedate, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产进度报表导出] |
| | | /// <summary> |
| | | /// 生产进度报表导出 |
| | | /// </summary> |
| | | /// <param name="status">工单状态</param> |
| | | /// <param name="wocode">工单编号</param> |
| | | /// <param name="routecode">工艺路线编码</param> |
| | | /// <param name="routename">工艺路线名称</param> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | | /// <param name="partspec">规格型号</param> |
| | | /// <param name="lm_date">单据日期</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ProductionScheduleReportExcelSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage ProductionScheduleReportExcelSearch(string status = null, string wocode = null, string routecode = null, string routename = null, string partcode = null, string partname = null, string partspec = null, string lm_date = null) |
| | | { |
| | | string opendate = ""; //开始时间 |
| | | string closedate = ""; //结束时间 |
| | | if (lm_date != "" && lm_date != null) |
| | | { |
| | | opendate = lm_date.Split('~')[0].ToString(); |
| | | closedate = lm_date.Split('~')[1].ToString(); |
| | | } |
| | | mes = ReportManagerBLL.ProductionScheduleReportExcelSearch(status, wocode, routecode, routename, partcode, partname, partspec, opendate, closedate); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |