| | |
| | | using System.Linq; |
| | | using System.Web; |
| | | using VueWebApi.DLL.DAL; |
| | | using VueWebApi.Models; |
| | | using VueWebApi.Tools; |
| | | |
| | | namespace VueWebApi.DLL.BLL |
| | |
| | | public class ProductionManagementBLL |
| | | { |
| | | #region[ERP订单查询] |
| | | public static ToMessage ErpOrderSearch(string erporderstus, string erpordercode, string partcode, string partname, string partspec, int startNum, string paydatestartdate, string paydateenddate, string creatuser, string createstartdate, string createenddate, int endNum, string prop, string order) |
| | | public static ToMessage ErpOrderSearch(string erporderstus, string erpordercode, string partcode, string partname, string partspec, int startNum, string paydatestartdate, string paydateenddate, string paydatestartdate1, string paydateenddate2, string creatuser, int endNum, string prop, string order) |
| | | { |
| | | return ProductionManagementDAL.ErpOrderSearch(erporderstus, erpordercode, partcode, partname, partspec, startNum, paydatestartdate, paydateenddate, creatuser, createstartdate, createenddate, endNum, prop, order); |
| | | return ProductionManagementDAL.ErpOrderSearch(erporderstus, erpordercode, partcode, partname, partspec, startNum, paydatestartdate, paydateenddate, paydatestartdate1, paydateenddate2, creatuser, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[ERP订单下达] |
| | | public static ToMessage MarkSaveErpOrder(string erpordercode, string partcode, string wkshopcode, string warehousecode, string erpqty, string markqty, string ordernum, string relse_qty, string username) |
| | | public static ToMessage MarkSaveErpOrder(string erporderid, string erpordercode, string partcode, string wkshopcode, string warehousecode, string erpqty, string markqty, string ordernum, string relse_qty, string username) |
| | | { |
| | | return ProductionManagementDAL.MarkSaveErpOrder(erpordercode, partcode, wkshopcode, warehousecode, erpqty, markqty, ordernum, relse_qty, username); |
| | | return ProductionManagementDAL.MarkSaveErpOrder(erporderid,erpordercode, partcode, wkshopcode, warehousecode, erpqty, markqty, ordernum, relse_qty, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[ERP订单关闭] |
| | | public static ToMessage ClosedErpOrder(string erpordercode, string username) |
| | | public static ToMessage ClosedErpOrder(string erporderid, string erpordercode, string username) |
| | | { |
| | | return ProductionManagementDAL.ClosedErpOrder(erpordercode,username); |
| | | return ProductionManagementDAL.ClosedErpOrder(erporderid,erpordercode, username); |
| | | } |
| | | #endregion |
| | | |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工扫码获取工单对应工序任务(不良)] |
| | | public static ToMessage MesOrderNgStepSearch(string orderstepqrcode, int startNum, int endNum, string prop, string order) |
| | | { |
| | | return ProductionManagementDAL.MesOrderNgStepSearch(orderstepqrcode, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工扫码获取工单对应工序任务(不良明细)] |
| | | public static ToMessage MesOrderNgSubStepSearch(string orderstepqrcode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderNgSubStepSearch(orderstepqrcode); |
| | | } |
| | | #endregion |
| | | |
| | | #region [生产开报工:开工(开始/报工)/外协发料时条件判断及数据返回接口] |
| | | public static ToMessage MesOrderStepStart(string OperType,string SelectType, string orderstepqrcode) |
| | | { |
| | |
| | | public static ToMessage MesOrderGroupSelectUser(string usergroupcode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderGroupSelectUser(usergroupcode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工:人员下拉列表] |
| | | public static ToMessage MesOrderSelectUser(string usercode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderSelectUser(usercode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工:发料/收料时获取外协下拉列表] |
| | | public static ToMessage MesOrderStepSelectWX(string orderstepqrcode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderStepSelectWX(orderstepqrcode); |
| | | } |
| | | #endregion |
| | | |
| | |
| | | return ProductionManagementDAL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inuser, taskqty, sqty, ngqty, badcode, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[不良处理,提交] |
| | | public static ToMessage EditOrderNgStepSeave(ReportDefectHandle json, string username) |
| | | { |
| | | return ProductionManagementDAL.EditOrderNgStepSeave(json, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工,工序检验扫码获取任务信息] |
| | | public static ToMessage MesOrderStepCheckSearch(string orderstepqrcode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderStepCheckSearch(orderstepqrcode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工,工序检验获取检验标准下拉框数据] |
| | | public static ToMessage MesOrderStepCheckSelect() |
| | | { |
| | | return ProductionManagementDAL.MesOrderStepCheckSelect(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工,工序检验根据检验标准获取检验项目列表] |
| | | public static ToMessage MesOrderStepCheckItemList(string checkstandcode) |
| | | { |
| | | return ProductionManagementDAL.MesOrderStepCheckItemList(checkstandcode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产开报工,工序检验提交保存] |
| | | public static ToMessage SaveMesOrderStepCheckItem(string mesordercode, string partcode, string stepcode, string checkstanedcode, string checkusercode, string checktypecode, string checkresult, string checkdescr, string username, List<StepCheck> json) |
| | | { |
| | | return ProductionManagementDAL.SaveMesOrderStepCheckItem(mesordercode, partcode, stepcode, checkstanedcode, checkusercode, checktypecode, checkresult, checkdescr, username, json); |
| | | } |
| | | #endregion |
| | | } |
| | | } |