diff --git a/APP/QMAPP.Web/App_Data/Menu.xml b/APP/QMAPP.Web/App_Data/Menu.xml index 71056d4..e5fd674 100644 --- a/APP/QMAPP.Web/App_Data/Menu.xml +++ b/APP/QMAPP.Web/App_Data/Menu.xml @@ -291,21 +291,23 @@ 下载模板 --> - - - 查询 - 添加 - 整车添加 - 修改 - 修改计划顺序号 - 插单 - 删除 - 发布 - 导入 - 导出 - 下载模板 + + + + 查询 + 添加 + 整车添加 + 修改 + 修改计划顺序号 + 插单 + 删除 + 发布 + 导入 + 导出 + 下载模板 + 查询 diff --git a/APPQ5/QMAPP.FJC.BLL/FIS/DoorPlankPlanBLL.cs b/APPQ5/QMAPP.FJC.BLL/FIS/DoorPlankPlanBLL.cs index a8ed666..7b4ae33 100644 --- a/APPQ5/QMAPP.FJC.BLL/FIS/DoorPlankPlanBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/FIS/DoorPlankPlanBLL.cs @@ -17,6 +17,7 @@ using QMAPP.FJC.DAL.ProductionPlan; using QMAPP.FJC.Entity.ProductionPlan; using QMFrameWork.Common.Util; using QMAPP.FJC.Entity.FileCopy.FIS; +using QMAPP.FJC.DAL.TianJin; namespace QMAPP.FJC.BLL.FIS { @@ -171,6 +172,7 @@ namespace QMAPP.FJC.BLL.FIS model.PLANSOURCE = model.PLANSOURCE; //int no = new DoorPlankPlanDAL().GetNum(model); //model.PLAN_SEQ = model.PLAN_DATE.ToString("yyyyMMdd") + no; + Pbom pbomcode = new PbomDAL().Get(new Pbom { MATERIAL_CODE = model.MATERIAL_CODE }); model.PBOM_CODE = pbomcode.PBOM_CODE; string workcentercode = new WorkCellDAL().GetWorkcenter(model.ORDER_TYPE); @@ -223,6 +225,109 @@ namespace QMAPP.FJC.BLL.FIS } #endregion + #region 插入信息 + /// + /// 插入信息(单表) + /// + /// 信息 + /// 插入行数 + public DataResult TJInsert(OrderPlan model) + { + DataResult result = new DataResult(); + //基本信息 + + try + { + if (model.MATERIAL_CODE.Length <= 8) + { + var listMatral = new TJDoorPlankPlanDAL(); + var ListMachine = listMatral.GetListMachine(model.MATERIAL_CODE); + foreach (var Machint in ListMachine) + { + model.PID = Guid.NewGuid().ToString(); + model.PLAN_STATE = "0"; + model.PLANSOURCE = model.PLANSOURCE; + model.MATERIAL_CODE = Machint.MATERIALNO; + model.MATERIAL_NAME = Machint.MATERIALNAME; + Pbom pbomcode = new PbomDAL().Get(new Pbom { MATERIAL_CODE = Machint.MATERIALNO }); + model.PBOM_CODE = pbomcode.PBOM_CODE; + string workcentercode = new WorkCellDAL().GetWorkcenter(model.ORDER_TYPE); + model.WORKCENTER_CODE = workcentercode; + if (model.WORKCENTER_CODE != "") + { + string factory = new FactoryDAL().GetFactoryWithWorkcenter(model.WORKCENTER_CODE); + model.FACTORY_CODE = factory; + } + QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(Machint.MATERIALNO); + //QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(model.MATERIAL_CODE); + model.ROUTE_CODE = routecode != null ? routecode.ROUTE_CODE : ""; + model.CREATEUSER = this.LoginUser.UserID; + model.CREATEDATE = DateTime.Now; + model.UPDATEUSER = model.CREATEUSER; + model.UPDATEDATE = model.CREATEDATE; + DoorPlankPlanDAL cmdDAL = new DoorPlankPlanDAL(); + FISPlan condition = new FISPlan(); + condition.PREFIX = "DP"; + condition.DATASTR = model.PLAN_DATE.ToString("yyyyMMdd"); + //获取流水号 + FISPlan info = this.GetOrderPlanSeq(condition); + //计划单号 + model.PLAN_SEQ = info.SEQSTR; + model.PLAN_NO = condition.PREFIX + condition.DATASTR + info.SEQSTR; + result.Result = new DoorPlankPlanDAL().Insert(model); + } + + } + else + { + model.PID = Guid.NewGuid().ToString(); + model.PLAN_STATE = "0"; + model.PLANSOURCE = model.PLANSOURCE; + Pbom pbomcode = new PbomDAL().Get(new Pbom { MATERIAL_CODE = model.MATERIAL_CODE }); + model.PBOM_CODE = pbomcode.PBOM_CODE; + string workcentercode = new WorkCellDAL().GetWorkcenter(model.ORDER_TYPE); + model.WORKCENTER_CODE = workcentercode; + if (model.WORKCENTER_CODE != "") + { + string factory = new FactoryDAL().GetFactoryWithWorkcenter(model.WORKCENTER_CODE); + model.FACTORY_CODE = factory; + } + QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(model.MATERIAL_CODE); + //QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(model.MATERIAL_CODE); + model.ROUTE_CODE = routecode != null ? routecode.ROUTE_CODE : ""; + model.CREATEUSER = this.LoginUser.UserID; + model.CREATEDATE = DateTime.Now; + model.UPDATEUSER = model.CREATEUSER; + model.UPDATEDATE = model.CREATEDATE; + DoorPlankPlanDAL cmdDAL = new DoorPlankPlanDAL(); + FISPlan condition = new FISPlan(); + condition.PREFIX = "DP"; + condition.DATASTR = model.PLAN_DATE.ToString("yyyyMMdd"); + //获取流水号 + FISPlan info = this.GetOrderPlanSeq(condition); + //计划单号 + model.PLAN_SEQ = info.SEQSTR; + model.PLAN_NO = condition.PREFIX + condition.DATASTR + info.SEQSTR; + result.Result = new DoorPlankPlanDAL().Insert(model); + } + } + catch (Exception ex) + { + LogManager.LogHelper.Error(new LogInfo() + { + ErrorInfo = ex, + Tag = ex.StackTrace, + Info = "信息逻辑层-插入信息!" + }); + result.IsSuccess = false; + result.Msg = Resource.SystemException; + throw ex; + } + result.IsSuccess = true; + return result; + } + #endregion + #region 获取流水号信息 /// /// 获取流水号信息 diff --git a/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs b/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs index 1f8c70e..baaf46a 100644 --- a/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs @@ -183,12 +183,15 @@ namespace QMAPP.FJC.BLL.TianJin { Storage info = new StorageDAL().Get(model.ProductCode); + if (info.State == "2") + { + result.IsSuccess = false; + result.Msg = $"条码{model.ProductCode}在{info.UPDATEDATE}已进行过出库操作!"; + return result; + } + //基本信息 info.State = "2"; - info.MATERIALNAME = model.MATERIALNAME; - info.MATERIALCODE = model.MATERIALCODE; - info.CREATEUSER = model.CREATEUSER; - info.CREATEDATE = model.CREATEDATE; info.UPDATEDATE = DateTime.Now.ToString(); info.UPDATEUSER = this.LoginUser.UserName; int temp = new StorageDAL().Update(info); diff --git a/APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs b/APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs index e11042c..4a74539 100644 --- a/APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs @@ -325,22 +325,30 @@ namespace QMAPP.FJC.BLL.TianJin //可以删除的订单 List deleteOrderList = new List(); - - TJOrderPlan op = TJOrderPlanDAL.Get(new TJOrderPlan() { PID = strs }); - int Num = TJworkOrderDal.GetAllWorkOrder(strs); - if (op.PLAN_STATE == EnumGeter.PLANSTATE.INIT.GetHashCode().ToString() - || (op.PLAN_STATE == EnumGeter.PLANSTATE.COMMIT.GetHashCode().ToString() && Num == 0)) + if (!string.IsNullOrEmpty(strs)) { - //删除订单 - TJOrderPlanDAL.DeleteOrderPlan(op); - TJworkOrderDal.BatchDeleteByOrderPlan(new TJWorkOrder() { ORDERPLANID = op.PID }); - } - else - { - result.IsSuccess = false; - result.Msg = "只有初始化或是确认生产并且生产数量为0订单可以删除!"; - return result; + foreach (var str in strs.Split(':')) + { + TJOrderPlan op = TJOrderPlanDAL.Get(new TJOrderPlan() { PID = str }); + int Num = TJworkOrderDal.GetAllWorkOrder(str); + if (op.PLAN_STATE == EnumGeter.PLANSTATE.INIT.GetHashCode().ToString() + || (op.PLAN_STATE == EnumGeter.PLANSTATE.COMMIT.GetHashCode().ToString() && Num == 0)) + { + //删除订单 + TJOrderPlanDAL.DeleteOrderPlan(op); + TJworkOrderDal.BatchDeleteByOrderPlan(new TJWorkOrder() { ORDERPLANID = op.PID }); + count++; + } + else + { + result.IsSuccess = false; + result.Msg = $"只有初始化或是确认生产并且生产数量为0订单可以删除!成功删除{count}条计划!"; + return result; + } + } } + + result.Result = count; result.Msg = "订单删除成功!"; @@ -476,9 +484,21 @@ namespace QMAPP.FJC.BLL.TianJin } else { - var list = "LF,LR,RF,RR".Split(','); + var list = "".Split(','); var dal = new TJDoorPlankPlanDAL(); var MachineList = dal.GetListMachine(info.MATERIAL_CODE); + if (info.MATERIAL_CODE.Substring(info.MATERIAL_CODE.Length - 1, 1) == "L") + { + list = "LF,LR".Split(','); + } + else if (info.MATERIAL_CODE.Substring(info.MATERIAL_CODE.Length - 1, 1) == "R") + { + list = "RF,RR".Split(','); + } + else if (info.MATERIAL_CODE.Length == 6) + { + list = "LF,LR,RF,RR".Split(','); + } //注入派工单信息 for (int i = 0; i < info.QTY; i++) { diff --git a/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs b/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs index 1e2da35..c27f747 100644 --- a/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs @@ -385,11 +385,10 @@ namespace QMAPP.FJC.DAL.FIS PID = model.PID; } sqlBuilder.AppendLine("SELECT COUNT(*) FROM T_PP_ORDERPLAN "); - sqlBuilder.AppendLine(" WHERE PID <> @PID AND PLAN_NO=@PLAN_NO"); + sqlBuilder.AppendLine($" WHERE PID <> '{model.PID}' AND PLAN_NO=@PLAN_NO"); using (IDataSession session = AppDataFactory.CreateMainSession()) { count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), - new DataParameter("PID", PID), new DataParameter { ParameterName = "PLAN_NO", Value = model.PLAN_NO })); } return count; diff --git a/APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs b/APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs index 0abd2b9..16f5b9d 100644 --- a/APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/ProductionPlan/WorkOrderDAL.cs @@ -185,7 +185,7 @@ namespace QMAPP.FJC.DAL.ProductionPlan public List GetList(WorkOrder condition) { List workOrderList = new List(); - string sql = "select * from T_PP_WORKORDER WITH(NOLOCK) t where 1=1 "; + string sql = "select * from T_PP_WORKORDER WITH(NOLOCK) where 1=1 "; if (string.IsNullOrEmpty(condition.ORDERPLANID) == false) { sql += string.Format(" and ORDERPLANID='{0}'",condition.ORDERPLANID); diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs index 2311697..fce2856 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs @@ -49,7 +49,7 @@ namespace QMAPP.FJC.DAL.TianJin { try { - string sql = "SELECT top1 * FROM [T_AW_Storage] WHERE [ProductCode]=@ProductCode"; + string sql = $"SELECT top 1 * FROM [T_AW_Storage] WHERE [ProductCode]= '{materialcode}' ORDER BY CREATEDATE DESC"; List parameters = new List(); parameters.Add(new DataParameter("ProductCode", materialcode)); using (IDataSession session = AppDataFactory.CreateMainSession()) diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs index 42c10d1..c774da8 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs @@ -1021,7 +1021,19 @@ namespace QMAPP.FJC.DAL.TianJin string sql = null; List parameters = new List(); sql = $"SELECT MATERIAL_NAME as 'MATERIALNAME',MATERIAL_CODE as 'MATERIALNO' FROM [dbo].[T_MD_MATERIAL] where MATERIAL_CODE != '{MaterielCode}' and MATERIAL_TYPE_CODE = (select MATERIAL_TYPE_CODE from [dbo].[T_MD_MATERIAL] where MATERIAL_CODE = '{MaterielCode}') "; - using (IDataSession session = AppDataFactory.CreateMainSession()) + if (MaterielCode.Substring(MaterielCode.Length - 1, 1) == "L") + { + sql += " AND MATERIAL_NAME LIKE '%左%'"; + } + else if (MaterielCode.Substring(MaterielCode.Length - 1, 1) == "R") + { + sql += " AND MATERIAL_NAME LIKE '%右%'"; + } + else if (MaterielCode.Length == 6) + { + sql += $" AND MATERIAL_CODE not in ('{MaterielCode}L','{MaterielCode}R')"; + } + using (IDataSession session = AppDataFactory.CreateMainSession()) { var datatable = session.GetList(sql, parameters.ToArray()).ToList(); return datatable; diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs index 30b7d54..4a95484 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs @@ -223,7 +223,7 @@ namespace QMAPP.FJC.DAL.TianJin } if (!string.IsNullOrEmpty(PlantCode)) { - strSql.Append(string.Format(" AND PLANTNAME='{0}' ", PlantCode)); + strSql.Append(string.Format(" AND PLANTNAME like '%{0}%' ", PlantCode)); } if (!string.IsNullOrEmpty(Operator)) { diff --git a/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs new file mode 100644 index 0000000..f673bea --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs @@ -0,0 +1,738 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using QMAPP.Common.Web.Controllers; +using QMFrameWork.WebUI.Attribute; +using QMAPP.FJC.Web.Models.FIS; +using QMFrameWork.Data; +using QMAPP.ServicesAgent; +using QMAPP.FJC.Entity.FIS; +using QMAPP.Entity; +using QMFrameWork.WebUI.DataSource; +using QMFrameWork.Common.Serialization; +using System.Data; +using QMAPP.Common.Web.Models; +using QMAPP.FJC.Entity.Basic; +using QMAPP.MD.Entity; +using QMAPP.FJC.BLL.FIS; + +namespace QMAPP.FJC.Web.Controllers +{ + /// + /// 门板计划查询 + /// 作 者:郭兆福 + /// 时 间:2017年09月15日 + /// + public class TJDoorPlankPlanPrintController : QController + { + #region 获取信息 + /// + /// 加载列表 + /// + /// 结果 + [HandleException] + public ActionResult List(bool? callback) + { + string order_type = Request["ORDER_TYPE"]; + DoorPlankPlanModel seachModel = new DoorPlankPlanModel(); + seachModel.ORDER_TYPE = order_type; + seachModel.PLANTIMESTART = DateTime.Now.Date.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss"); + seachModel.PLANTIMEEND = DateTime.Now.Date.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss"); + seachModel.ImmediateSearch = false; + if (callback == true) + TryGetSelectBuffer(out seachModel); + seachModel.rownumbers = false; + seachModel.url = "/DoorPlankPlan/GetList"; + return View("DoorPlankPlanList", seachModel); + } + #endregion + + #region 获取列表 + /// + /// 获取列表 + /// + /// 是否回调 + /// 列表 + [HandleException] + public ActionResult GetList(bool? callBack) + { + DoorPlankPlanModel seachModel = null; + DataPage page = null; + ServiceAgent wcfAgent = this.GetServiceAgent(); + OrderPlan condition = null; + DataResult pageResult = new DataResult(); + try + { + //获取查询对象 + seachModel = GetModel(); + #region 获取缓存值 + if (callBack != null) + { + TryGetSelectBuffer(out seachModel); + } + else + { + //保存搜索条件 + SetSelectBuffer(seachModel); + } + #endregion + //获取前台分页设置信息 + page = this.GetDataPage(seachModel); + condition = CopyToModel(seachModel); + // + //condition.WWWWWW = ((int)QMAPP.FJC.Entity.EnumGeter.ProductType.biaopi).ToString();//默认查询XXXX + #region wcf服务统一接口 + pageResult = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_GetList", condition, page); + if (pageResult.IsSuccess == false) + { + SetMessage(pageResult.Msg); + return List(true); + } + DateGridResult result = new DateGridResult(); + result.Total = pageResult.Result.RecordCount; + result.Rows = JsonConvertHelper.GetDeserialize>(pageResult.Result.Result.ToString()); + #endregion + + return Content(result.GetJsonSource()); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 编辑 + /// + /// 编辑载入 + /// + /// 处理结果 + [HandleException] + public ActionResult Edit() + { + DoorPlankPlanModel model = new DoorPlankPlanModel(); + string ID = Request.Params["PID"]; + string TYPE = Request.Params["ORDER_TYPE"]; + OrderPlan Entity = new OrderPlan(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + if (string.IsNullOrEmpty(ID) == false) + { + //修改获取原数据 + Entity.PID = ID; + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_Get", Entity); + if (result.IsSuccess == false) + { + SetMessage(result.Msg); + return View("DoorPlankPlanEdit", model); + } + + model = CopyToModel(result.Result); + + if (model.PLANSOURCE == FJC.Entity.EnumGeter.WORKORDERTYPE.FIS.GetHashCode().ToString()) + { + //SetMessage("!"); + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", "无法对FIS计划进行修改编辑!")); + } + } + model.ORDER_TYPE = TYPE; + return View("DoorPlankPlanEdit", model); + } + catch (Exception ex) + { + throw ex; + } + } + /// + /// 保存 + /// + /// + /// 处理结果 + [HttpPost] + [HandleException] + [ValidateInput(false)] + public ActionResult Save(DoorPlankPlanModel saveModel) + { + OrderPlan Entity = null; + string TYPE = Request.Form["ORDER_TYPE"]; + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + Entity = CopyToModel(saveModel); + if (string.IsNullOrEmpty(Entity.PID) == true) + { + //新增 + Entity.ORDER_TYPE = TYPE; + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_TJInsert", Entity); + if (result.IsSuccess == false) + { + SetMessage("计划单号已存在!"); + return View("DoorPlankPlanEdit", saveModel); + } + } + else + { + //修改 + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_Update", Entity); + if (result.IsSuccess == false) + { + SetMessage(result.Msg); + return View("DoorPlankPlanEdit", saveModel); + } + } + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge)); + } + catch (Exception ex) + { + throw ex; + } + } + /// + /// 插单 + /// + /// 处理结果 + [HandleException] + public ActionResult Insert() + { + DoorPlankPlanModel model = new DoorPlankPlanModel(); + string ID = Request.Params["PID"]; + string TYPE = Request.Params["ORDER_TYPE"]; + OrderPlan Entity = new OrderPlan(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + if (string.IsNullOrEmpty(ID) == false) + { + //修改获取原数据 + Entity.PID = ID; + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_GetFISInsertPos", Entity); + if (result.IsSuccess == false) + { + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", result.Msg)); + } + model = CopyToModel(result.Result); + } + model.PID = ""; + model.MATERIAL_CODE = ""; + model.MATERIAL_NAME = ""; + model.ORDER_TYPE = TYPE; + return View("DoorPlankPlanInsert", model); + } + catch (Exception ex) + { + throw ex; + } + } + /// + /// 保存插单 + /// + /// + /// 处理结果 + [HttpPost] + [HandleException] + [ValidateInput(false)] + public ActionResult SaveInsert(DoorPlankPlanModel saveModel) + { + Material condition = new Material(); + OrderPlan Entity = new OrderPlan(); + string TYPE = Request.Form["ORDER_TYPE"]; + + string source = Request.Form["PLANSOURCE"]; + DataResult result = new DataResult(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + + string materialcode = "('" + saveModel.MaterialCodes.Replace(";", "','") + "')"; + + condition.MaterialCodes = materialcode; + List materiallist = wcfAgent.InvokeServiceFunction>("MaterialBLL_GetMaterialInfoList", condition); + + Entity.ORDER_TYPE = TYPE; + Entity.QTY = Convert.ToInt32(saveModel.QTY); + Entity.SHIFT_CODE = saveModel.SHIFT_CODE; + Entity.PLAN_DATE = saveModel.PLAN_DATE; + Entity.PLAN_SEQ = saveModel.PLAN_SEQ; + Entity.PLANSOURCE = source; + var publishrightnow = string.Equals(saveModel.PLAN_STATE, "on"); + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_SaveFISInsert", Entity, materiallist,publishrightnow); + + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge)); + + } + #endregion + + #region 删除 + /// + /// 删除 + /// + /// 结果 + [HttpPost] + [HandleException] + public ActionResult Delete(OrderPlan model) + { + string selectKey = Request.Form["selectKey"]; + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_Delete", selectKey); + if (result.IsSuccess == false) + { + SetMessage(result.Msg); + return List(true); + } + SetMessage(AppResource.DeleteMessage); + return List(true); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 发布 + /// + /// 发布 + /// + /// + [HttpPost] + [HandleException] + public ActionResult PutOut(OrderPlan model) + { + string selectKey = Request.Form["selectKey"]; + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_PutOut", selectKey); + if (result.IsSuccess == false) + { + SetMessage(result.Msg); + return List(true); + } + SetMessage(AppResource.PutOutMessage); + return List(true); + } + #endregion + + #region 导出excel + /// + /// 导出excel + /// + /// 结果 + [HttpPost] + public ActionResult ExportExcel() + { + DoorPlankPlanModel seachModel = null; + OrderPlan condition = null; + DataTable exportDt = new DataTable(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + try + { + //获取查询对象 + seachModel = GetModel(); + condition = CopyToModel(seachModel); + condition.PIDList = Request.Form["selectKey"]; + //获取数据 + DoorPlankPlanBLL dp = new DoorPlankPlanBLL(); + exportDt = dp.GetExportData(condition); + //exportDt = wcfAgent.InvokeServiceFunction("DoorPlankPlanBLL_GetExportData", condition); + + //导出 + QMFrameWork.WebUI.Util.IEFileTool efTool = new QMFrameWork.WebUI.Util.IEFileTool(); + return efTool.GetExcelFileResult("DoorPlankPlanExp", "门板计划信息.xlsx", exportDt); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 导入excel + /// + /// 导入excel + /// + /// 结果 + [HttpPost] + public ActionResult ImportExcel() + { + DataTable dt = null; + List list = new List(); + DataResult serviceResult = null; + string fileName = Request.Form["fileName"]; + string orderby = Request.Form["ORDER_TYPE"]; + ServiceAgent wcfAgent = this.GetServiceAgent(); + + Materiel materialmodel = new Materiel(); + ProduceShift produceshiftmodel = new ProduceShift(); + MachineInfo machine = new MachineInfo(); + //初始工作中心编号条件 + QMAPP.MD.Entity.WorkCell workcell = new QMAPP.MD.Entity.WorkCell(); + workcell.WORKCELL_CODE = orderby; + + try + { + dt = this.GetTableByExcel("DoorPlankPlanImp", fileName, dt); + //格式转换 + list = QMFrameWork.Common.Util.BindHelper.ConvertToList(dt).ToList(); + serviceResult = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_GetImportData", list, materialmodel,machine, produceshiftmodel, workcell); + if (serviceResult.Ex != null) + { + throw serviceResult.Ex; + } + if (serviceResult.Result.failureNum != 0) + { + foreach (RowError error in serviceResult.Result.Errors) + { + dt.Rows[error.Key - 1]["InfoError"] = error.Value; + } + ImportMessageModel model = new ImportMessageModel(); + model.InfoName = "DoorPlankPlanImp"; + model.ReturnUrl = "/DoorPlankPlan/List?callBack=true"; + model.Message = serviceResult.Result; + model.ErrorDt = dt; + return new MessageOutputController().OutputImportMessage(model); + } + else + { + SetMessage(serviceResult.Msg + ",如下:
" + + "插入" + serviceResult.Result.insertNum + "条," + + "更新" + serviceResult.Result.updateNum + "条" + ); + return List(true); + } + } + catch (Exception ex) + { + throw ex; + } + finally + { + System.IO.File.Delete(MvcApplication.TempPath + fileName); + } + } + #endregion + + #region 下载模板 + /// + /// 下载导入模板 + /// + /// 结果 + [HttpPost] + public ActionResult GetTemplate() + { + try + { + string path = AppDomain.CurrentDomain.BaseDirectory + "App_Data/Excel/"; + string fileName = "DoorPlankPlanImp.xlsx"; + return File(path + fileName, "application/vnd.ms-excel", Url.Encode("门板信息导入模板.xlsx")); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 整车添加 + /// + /// 编辑载入 + /// + /// 处理结果 + [HandleException] + public ActionResult AddWholeDoor() + { + DoorPlankPlanModel model = new DoorPlankPlanModel(); + string ID = Request.Params["PID"]; + string TYPE = Request.Params["ORDER_TYPE"]; + OrderPlan Entity = new OrderPlan(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + if (string.IsNullOrEmpty(ID) == false) + { + //修改获取原数据 + Entity.PID = ID; + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_Get", Entity); + if (result.IsSuccess == false) + { + SetMessage(result.Msg); + return View("DoorPlankPlanEdit", model); + } + model = CopyToModel(result.Result); + } + model.ORDER_TYPE = TYPE; + return View("AddWholeDoorEdit", model); + } + catch (Exception ex) + { + throw ex; + } + } + + #endregion + + #region 保存整车添加 + /// + /// 保存 + /// + /// + /// 处理结果 + [HttpPost] + [HandleException] + [ValidateInput(false)] + public ActionResult DoorPlanSave(DoorPlankPlanModel saveModel) + { + + Material condition = new Material(); + OrderPlan Entity = new OrderPlan(); + string TYPE = Request.Form["ORDER_TYPE"]; + string SetCode = Request.Form["AsmSetCode"]; + string source = Request.Form["PLANSOURCE"]; + DataResult result = new DataResult(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + + string materialcode = "('" + saveModel.MaterialCodes.Replace(";", "','") + "')"; + + condition.MaterialCodes = materialcode; + List materiallist = wcfAgent.InvokeServiceFunction>("MaterialBLL_GetMaterialInfoList", condition); + + Entity.ORDER_TYPE = TYPE; + Entity.QTY = Convert.ToInt32(saveModel.QTY); + Entity.SHIFT_CODE = saveModel.SHIFT_CODE; + Entity.PLAN_DATE = saveModel.PLAN_DATE; + Entity.PLANSOURCE = source; + Entity.AsmSetCode = SetCode; + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_InsertWholeDoor", Entity, materiallist); + + + + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge)); + } + #endregion + + //#region 整车添加物料信息 + ///// + ///// 编辑载入 + ///// + ///// 处理结果 + //[HandleException] + //public ActionResult AddMaterial() + //{ + // DoorPlankPlanModel model = new DoorPlankPlanModel(); + // string ID = Request.Params["PID"]; + // string TYPE = Request.Params["ORDER_TYPE"]; + // OrderPlan Entity = new OrderPlan(); + // ServiceAgent wcfAgent = this.GetServiceAgent(); + // DataResult result = new DataResult(); + // try + // { + // model.ORDER_TYPE = TYPE; + // return View("AddMaterialEdit", model); + // } + // catch (Exception ex) + // { + // throw ex; + // } + //} + + ///// + ///// 保存 + ///// + ///// + ///// 处理结果 + //[HttpPost] + //[HandleException] + //[ValidateInput(false)] + //public ActionResult SaveMaterial(DoorPlankPlanModel saveModel) + //{ + + // Material condition = new Material(); + // ServiceAgent wcfAgent = this.GetServiceAgent(); + + // condition.MATERIAL_CODE = saveModel.MATERIAL_CODE; + // Material material = wcfAgent.InvokeServiceFunction("MaterialBLL_GetMaterialInfo", condition); + + // if (!string.IsNullOrEmpty(material.PID)) + // { + // saveModel.MATERIAL_NAME = material.MATERIAL_NAME; + // saveModel.COLOR = material.COLOR; + // saveModel.HBTYPE = material.HBTYPE; + // return View("AddWholeDoorEdit", saveModel); + // } + // return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge)); + //} + //#endregion + + #region 整车添加物料信息 + [HandleException] + public ActionResult AddSendDetail(bool? callBack) + { + //实例化服务 + ServiceAgent wcfAgent = this.GetServiceAgent(); + QMAPP.MD.Web.Models.MaterialModel seachModel = null; + DataResult pageResult = new DataResult(); + DataPage page = new DataPage(); + string Fisid = Request["MATERIAL_CODE"].ToString(); + FISAssembly MaterialAssInfo = wcfAgent.InvokeServiceFunction("DoorPlankPlanBLL_GetFISMaterialInfoCD", Fisid); + string materials = "('" + MaterialAssInfo.MESModulFL + "','" + MaterialAssInfo.MESModulFR + "','" + MaterialAssInfo.MESModulRL + "','" + MaterialAssInfo.MESModulRR + "')"; + //物料发货明细实体 + Material detail = new Material() + { + MaterialCodes = materials, + }; + try + { + //获取查询对象 + seachModel = GetModel(); + #region 获取缓存值 + if (callBack != null) + { + TryGetSelectBuffer(out seachModel); + } + else + { + //保存搜索条件 + SetSelectBuffer(seachModel); + } + #endregion + //获取前台分页设置信息 + page = this.GetDataPage(seachModel); + pageResult = wcfAgent.InvokeServiceFunction>("MaterialBLL_GetList", detail, page); + if (pageResult.IsSuccess == false) + { + SetMessage(pageResult.Msg); + return List(true); + } + DateGridResult result = new DateGridResult(); + result.Total = pageResult.Result.RecordCount; + result.Rows = JsonConvertHelper.GetDeserialize>(pageResult.Result.Result.ToString()); + for (var i = 0; i < result.Total; i++) + { + result.Rows[i].AsmSetCode = MaterialAssInfo.AsmSetCode; + } + return Content(result.GetJsonSource()); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 门板顺序号编辑 + /// + /// 门板顺序号编辑 + /// + /// + public ActionResult DoorPlankEditSeq() + { + DoorPlankPlanModel model = new DoorPlankPlanModel(); + OrderPlan Entity = new OrderPlan(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + try + { + model = GetModel(); + return View("DoorPlankEditSeq", model); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + + #region 获取编辑系列号列表 + /// + /// 获取编辑系列号列表 + /// + /// + /// + [HandleException] + public ActionResult GetDoorPlankPlanList(bool? callBack) + { + DoorPlankPlanModel seachModel = null; + DataResult pageResult = new DataResult(); + DataPage page = new DataPage(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + OrderPlan condition = new OrderPlan(); + try + { + //获取查询对象 + seachModel = GetModel(); + + condition.PIDList =seachModel.PIDList; + condition.ORDER_TYPE = seachModel.ORDER_TYPE; + + #region 获取缓存值 + if (callBack != null) + { + TryGetSelectBuffer(out seachModel); + } + else + { + //保存搜索条件 + SetSelectBuffer(seachModel); + } + #endregion + //获取前台分页设置信息 + page = this.GetDataPage(seachModel); + condition = CopyToModel(seachModel); + + #region wcf服务统一接口 + pageResult = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_GetDoorPlankPlanList", condition, page); + if (pageResult.IsSuccess == false) + { + SetMessage(pageResult.Msg); + return List(true); + } + DateGridResult result = new DateGridResult(); + result.Total = pageResult.Result.RecordCount; + result.Rows = JsonConvertHelper.GetDeserialize>(pageResult.Result.Result.ToString()); + #endregion + return Content(result.GetJsonSource()); + } + catch (Exception ex) + { + throw ex; + } + } + + #endregion + + #region 保存顺序号修改 + /// + /// + /// + /// + /// 处理结果 + [HttpPost] + [HandleException] + [ValidateInput(false)] + public ActionResult DoorPlankPlanSeqSave(DoorPlankPlanModel saveModel) + { + OrderPlan entity = new OrderPlan(); + ServiceAgent wcfAgent = this.GetServiceAgent(); + DataResult result = new DataResult(); + + entity.PLAN_SEQ = saveModel.PLAN_SEQ; + entity.PIDList = saveModel.PIDList; + + entity = CopyToModel(saveModel); + + //修改 + result = wcfAgent.InvokeServiceFunction>("DoorPlankPlanBLL_UpdateDoorPlankPlanSeq", entity); + + return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge)); + } + #endregion + } +} diff --git a/APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj b/APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj index 9f2ebbe..e4cf3ab 100644 --- a/APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj +++ b/APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj @@ -163,6 +163,7 @@ + @@ -915,6 +916,11 @@ + + + + + diff --git a/APPQ5/QMAPP.FJC.Web/Views/DoorPlankPlan/DoorPlankPlanList.aspx b/APPQ5/QMAPP.FJC.Web/Views/DoorPlankPlan/DoorPlankPlanList.aspx index a3a05af..400bd73 100644 --- a/APPQ5/QMAPP.FJC.Web/Views/DoorPlankPlan/DoorPlankPlanList.aspx +++ b/APPQ5/QMAPP.FJC.Web/Views/DoorPlankPlan/DoorPlankPlanList.aspx @@ -198,7 +198,7 @@ <%=Html.QTButtonSearch("DoorPlankPlan", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%> - <%--<%=Html.QTButtonAdd("DoorPlankPlan", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>--%> + <%=Html.QTButtonAdd("DoorPlankPlan", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("AddWholeDoor", "AddWholeDoor", QMFrameWork.WebUI.IconCls.add, "AddWholeDoor()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButtonUpdate("DoorPlankPlan", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("EditSeq", "EditDoorPlankPlanSeq", QMFrameWork.WebUI.IconCls.edit, "EditDoorPlankPlanSeq()", QMAPP.Common.Web.SystemLimit.isLimt)%> diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/AddWholeDoorEdit.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/AddWholeDoorEdit.aspx new file mode 100644 index 0000000..604f21d --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/AddWholeDoorEdit.aspx @@ -0,0 +1,208 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" + Inherits="System.Web.Mvc.ViewPage" %> + + + 整车添加门板编辑 + + + <%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%> + + + + +
+ + + + + + + + + + + + + +
+ <%=Html.QV(p => p.PLAN_DATE)%> + + <%=Html.QC(p => p.PLAN_DATE)%> + + <%=Html.QV(p => p.QTY)%> + + <%=Html.QC(p => p.QTY)%> +
+ <%=Html.QV(p => p.SHIFT_CODE)%> + + <%=Html.QC(p => p.SHIFT_CODE)%> + + <%=Html.QV(p => p.MATERIAL_CODE)%> + + <%=Html.QC(p => p.MATERIAL_CODE)%> +
+
+ +
+ <%=Html.HiddenFor(p => p.ORDER_TYPE)%> + <%=Html.HiddenFor(p => p.MaterialCodes)%> + <%=Html.HiddenFor(p => p.AsmSetCode)%> + <%=Html.Hidden("PLANSOURCE",1)%> + <%=Html.QPEnd() %> + +
+ + + + + +
+ <%=Html.QTButtonSave("DoorPlankPlan", "Save", "return SaveDoorPlan();")%> + <%=Html.QTButtonBack("close", "DashBoardPlanList", "parent.closeAppWindow1();return false;")%> +
+
diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankEditSeq.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankEditSeq.aspx new file mode 100644 index 0000000..9339305 --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankEditSeq.aspx @@ -0,0 +1,130 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" + Inherits="System.Web.Mvc.ViewPage" %> + + + 更新门板计划顺序号 + + + + <% + var editable = true; + %> + + + + +
+ + + + + +
+ *顺序号 + + /> +
+
+
+ <%=Html.QPEnd() %> + <%=Html.Hidden("PIDList")%> + <%=Html.Hidden("ORDER_TYPE")%> + + + + + + +
+ + + + + +
+ <%=Html.QTButtonSave("User", "Save", "return SaveDoorPlankPlanSeq();")%> + <%=Html.QTButtonBack("close", "List", "parent.List(1);parent.closeAppWindow1();return false;")%> +
+
diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanEdit.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanEdit.aspx new file mode 100644 index 0000000..4204db4 --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanEdit.aspx @@ -0,0 +1,160 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" + Inherits="System.Web.Mvc.ViewPage" %> + + + 门板订单计划信息编辑 + + + <%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%> + <% + var editable = false; + if (string.IsNullOrEmpty(Model.PLAN_STATE) || string.Equals(Model.PLAN_STATE, "0")) + { + editable = true; + } + %> + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <%=Html.QV(p => p.PLAN_DATE)%> + + " + style=" width:200px" type="text" class="easyui-datebox" required="required" <%=editable?"":"readonly =\"readonly\"" %> /> +
+ *顺序号 + + /> +
+ <%=Html.QV(p => p.MATERIAL_CODE)%> + + <%=Html.QC(p => p.MATERIAL_CODE, editable ? null : new { Readonly = "readonly" })%> + +
+ <%=Html.QV(p => p.QTY)%> + + <%=Html.QC(p => p.QTY)%> +
+ <%=Html.QV(p => p.SHIFT_CODE)%> + + <%=Html.QC(p => p.SHIFT_CODE)%> +
+ <%=Html.QV(p => p.PRODUCEREQUIRE)%> + + <%=Html.QC(p => p.PRODUCEREQUIRE)%> +
+ <%=Html.QV(p => p.STARTTIME)%> + + <%=Html.QC(p => p.STARTTIME)%> +
+ <%=Html.QV(p => p.ENDTIME)%> + + <%=Html.QC(p => p.ENDTIME)%> +
+ <%=Html.QV(p => p.REMARK)%> + + <%=Html.QC(p => p.REMARK)%> +
+
+ <%=Html.HiddenFor(p=>p.PID) %> + <%=Html.HiddenFor(p=>p.WORKCENTER_CODE) %> + <%=Html.HiddenFor(p=>p.CREATEDATE) %> + <%=Html.HiddenFor(p=>p.CREATEUSER) %> + <%=Html.HiddenFor(p=>p.UPDATEDATE)%> + <%=Html.HiddenFor(p=>p.UPDATEUSER) %> + <%=Html.HiddenFor(p=>p.COMPLETE_QTY) %> + <%=Html.HiddenFor(p => p.PLAN_STATE)%> + <%=Html.HiddenFor(p => p.FACTORY_CODE)%> + <%=Html.HiddenFor(p => p.ORDER_TYPE)%> + <%=Html.HiddenFor(p => p.ROUTE_CODE)%> + <%=Html.HiddenFor(p => p.PBOM_CODE)%> + <%=Html.HiddenFor(p => p.PLAN_NO)%> + <%=Html.HiddenFor(p => p.FACTORY_CODE)%> + <%=Html.Hidden("PLANSOURCE",1)%> + <%=Html.QPEnd() %> +
+ + + + + +
+ <%=Html.QTButtonSave("User", "Save", "return Save();")%> + <%=Html.QTButtonBack("close", "DashBoardPlanList", "parent.closeAppWindow1();return false;")%> +
+ +
diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanInsert.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanInsert.aspx new file mode 100644 index 0000000..10a230e --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanInsert.aspx @@ -0,0 +1,371 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" + Inherits="System.Web.Mvc.ViewPage" %> + + + 门板插单计划编辑 + + + <%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%> + + + + +
+ + + + + + + + + + + + + + <%-- + + + --%> +
+ 插单时间 + + " + type="text" class="easyui-datetimebox" required="required" readonly ="readonly" %/> +
+ 插单位置 + + <%=Html.QC(p => p.PLAN_SEQ, new { Readonly = "readonly" })%> +
+ 插单数量 + + <%=Html.QC(p => p.QTY)%> +
+ 即时发布 + + +
+
+ +
+ <%=Html.HiddenFor(p => p.ORDER_TYPE)%> + <%=Html.HiddenFor(p => p.MaterialCodes)%> + <%=Html.Hidden("PLANSOURCE",2)%> + <%=Html.QPEnd() %> +
+
+
+ + + + + +
+ <%=Html.QV(p => p.MATERIAL_CODE)%> + + <%=Html.QC(p => p.MATERIAL_CODE)%> +
+
+
+ + + + +
+ <%=Html.QTButtonSave("DoorPlankPlan", "TransitSave", "AddMatInfoSave()")%> + <%=Html.QTButtonBack("Home", "Index", "AddMatInfoCancel()")%> +
+
+
+
+ +
+ + + + + +
+ <%=Html.QTButtonSave("DoorPlankPlan", "SaveInsert", "return SaveDoorPlan();")%> + <%=Html.QTButtonBack("close", "DashBoardPlanList", "parent.closeAppWindow1();return false;")%> +
+
diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx new file mode 100644 index 0000000..400bd73 --- /dev/null +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx @@ -0,0 +1,215 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" + Inherits="System.Web.Mvc.ViewPage" %> + + + 订单生产计划列表 + + + + <%=Html.QPSeach(110, true)%> + + + + + + + + + + + + + + + + + + + + + +
+ <%=Html.QV(p => p.PLAN_NO)%> + + <%=Html.QC(p => p.PLAN_NO)%> + + <%=Html.QV(p => p.SHIFT_CODE)%> + + <%=Html.QC(p => p.SHIFT_CODE)%> + + <%=Html.QV(p => p.MATERIAL_CODE)%> + + <%=Html.QC(p => p.MATERIAL_CODE)%> + + <%=Html.QV(p => p.FACTORY_CODE)%> + + <%=Html.QC(p => p.FACTORY_CODE)%> +
+ <%=Html.QV(p => p.PLANSOURCE)%> + + <%=Html.QC(p => p.PLANSOURCE)%> + + <%=Html.QV(p => p.PLANTIMESTART)%> + + <%=Html.QC(p => p.PLANTIMESTART)%> + + <%=Html.QV(p => p.PLANTIMEEND)%> + + <%=Html.QC(p => p.PLANTIMEEND)%> +
+ <%=Html.QPEnd()%> + <%=Html.QPList() %> + <%=Html.QDateGrid(Model)%> + <%=Html.QPEnd() %> + <%=Html.Hidden("selectKey")%> + <%=Html.Hidden("fileName")%> + <%=Html.Hidden("ORDER_TYPE")%> + +
+ + + + + + +
+ <%=Html.QTButtonSearch("DoorPlankPlan", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButtonAdd("DoorPlankPlan", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("AddWholeDoor", "AddWholeDoor", QMFrameWork.WebUI.IconCls.add, "AddWholeDoor()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButtonUpdate("DoorPlankPlan", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("EditSeq", "EditDoorPlankPlanSeq", QMFrameWork.WebUI.IconCls.edit, "EditDoorPlankPlanSeq()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("insertorder","Insert",QMFrameWork.WebUI.IconCls.add,"Insert()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButtonDelete("DoorPlankPlan", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("publish", "PutOut", "detail", "Publish()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("import", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%> + <%=Html.QTButton("template", "TemplateExcel", QMFrameWork.WebUI.IconCls.template, "getTemplate()", QMAPP.Common.Web.SystemLimit.isLimt)%> +
+
+ diff --git a/APPQ5/QMAPP.WinForm/App.config b/APPQ5/QMAPP.WinForm/App.config index 564b028..585b5c1 100644 --- a/APPQ5/QMAPP.WinForm/App.config +++ b/APPQ5/QMAPP.WinForm/App.config @@ -8,7 +8,7 @@ - @@ -184,13 +184,13 @@ - + - + diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx b/APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx index b3b9ff9..2214993 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx @@ -5,6 +5,8 @@ VWSEQ String 100 VIN String 100 PRODNO String 100 CARSETDESCCN String 100 +CP5A String 100 PASTECARDNO String 100 SCANDATE String 100 PRODUCTCODE String 100 +LINENO String 100 diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs index fa25853..014af00 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs @@ -16,6 +16,7 @@ using QMAPP.Entity; using QMAPP.MD.Entity; using QMAPP.FJC.Entity.Basic; using QMAPP.FJC.Entity.TianJin; +using QMAPP.ServicesAgent; namespace QMAPP.WinForm.Forms.TianJin { @@ -48,6 +49,8 @@ namespace QMAPP.WinForm.Forms.TianJin private string PlaceFirstPositionType = string.Empty; + private string _TJFYPrintName = string.Empty; //打印机名称 + #endregion #region 变量 @@ -74,6 +77,8 @@ namespace QMAPP.WinForm.Forms.TianJin PlaceFirstPositionType = System.Configuration.ConfigurationManager.AppSettings["PlaceFirstPositionType"].ToString(); _barcodeRules = _agent.InvokeServiceFunction>("BarcodeRulesBLL_GetListForSend"); + + _TJFYPrintName = GetAppConfigValue("FYPrintName"); //查找所有 需要自动填充的工位 } #endregion @@ -1237,7 +1242,7 @@ namespace QMAPP.WinForm.Forms.TianJin { if (dgvNF.Rows[i].Cells[CODE_NF.Name].Value.ToString().ToUpper() == inputstring) { - SetContainerItem(nfindex, false); + SetContainerItem(nfindex+1, false); Alert("该条码已扫描!"); txtCode.Text = ""; txtCode.Focus(); @@ -1317,7 +1322,7 @@ namespace QMAPP.WinForm.Forms.TianJin { if (dgvNF.Rows[i].Cells[CODE_NF.Name].Value.ToString().ToUpper() == Code) { - SetContainerItem(nfindex, false); + SetContainerItem(nfindex + 1, false); Alert("该条码已扫描!"); txtCode.Text = ""; txtCode.Focus(); @@ -1393,7 +1398,7 @@ namespace QMAPP.WinForm.Forms.TianJin { if (dgvNF.Rows[i].Cells[CODE_NF.Name].Value.ToString() == Code) { - SetContainerItem(nfindex, false); + SetContainerItem(nfindex + 1, false); Alert("该条码已扫描!"); txtCode.Text = ""; txtCode.Focus(); @@ -2017,9 +2022,19 @@ namespace QMAPP.WinForm.Forms.TianJin dt.Rows.Add(ncsdr); index++; } - prin.Print(dt); - //MessageBox.Show("打印成功!"); - lberror.Text = "贴车单已打印"; + if (!string.IsNullOrEmpty(_TJFYPrintName)) + { + System.Drawing.Printing.PrintDocument doc = new System.Drawing.Printing.PrintDocument(); + doc.PrinterSettings.PrinterName = _TJFYPrintName; + + prin.Print(dt, _TJFYPrintName); + lberror.Text = "贴车单已打印"; + } + else + { + prin.Print(dt); + lberror.Text = "贴车单已打印"; + } } #endregion @@ -2320,6 +2335,18 @@ namespace QMAPP.WinForm.Forms.TianJin return ""; } + /// + /// 查找配置表 + /// + /// + public string GetAppConfigValue(string pConfigCode) + { + var AppConfig = _agent.InvokeServiceFunction(B9IPCService.AppConfigBLL_Get.ToString(), pConfigCode); + if (AppConfig != null) + return AppConfig.Value; + else + return null; + } } } diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.Designer.cs index b7c6724..889d019 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.Designer.cs @@ -28,6 +28,7 @@ ///
private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TJOutWarehouseForm)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); @@ -45,14 +46,16 @@ this.panelSearchTitle = new System.Windows.Forms.Panel(); this.lblSearchTitle = new System.Windows.Forms.Label(); this.panelSearch = new System.Windows.Forms.Panel(); - this.txtPRODUCTCODE = new System.Windows.Forms.TextBox(); - this.panel1 = new System.Windows.Forms.Panel(); this.dtpCREATEDATEEND = new DateTimePickerA(); this.dtpCREATEDATESTART = new DateTimePickerA(); this.label4 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.comINTTYPE = new System.Windows.Forms.ComboBox(); this.label5 = new System.Windows.Forms.Label(); + this.txtPRODUCTCODE = new System.Windows.Forms.TextBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.pager1 = new QMAPP.WinForm.Controls.Pager(); + this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components); this.零件号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.物料号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.物料名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -65,6 +68,7 @@ this.panelSearchTitle.SuspendLayout(); this.panelSearch.SuspendLayout(); this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit(); this.SuspendLayout(); // // label1 @@ -195,23 +199,6 @@ this.panelSearch.Size = new System.Drawing.Size(984, 60); this.panelSearch.TabIndex = 9; // - // txtPRODUCTCODE - // - this.txtPRODUCTCODE.Font = new System.Drawing.Font("宋体", 11F); - this.txtPRODUCTCODE.Location = new System.Drawing.Point(78, 18); - this.txtPRODUCTCODE.Name = "txtPRODUCTCODE"; - this.txtPRODUCTCODE.Size = new System.Drawing.Size(170, 24); - this.txtPRODUCTCODE.TabIndex = 10; - // - // panel1 - // - this.panel1.Controls.Add(this.DGMendRecorder); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 165); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(984, 477); - this.panel1.TabIndex = 10; - // // dtpCREATEDATEEND // this.dtpCREATEDATEEND.CustomFormat = " "; @@ -281,6 +268,59 @@ this.label5.TabIndex = 18; this.label5.Text = "至"; // + // txtPRODUCTCODE + // + this.txtPRODUCTCODE.Font = new System.Drawing.Font("宋体", 11F); + this.txtPRODUCTCODE.Location = new System.Drawing.Point(78, 18); + this.txtPRODUCTCODE.Name = "txtPRODUCTCODE"; + this.txtPRODUCTCODE.Size = new System.Drawing.Size(170, 24); + this.txtPRODUCTCODE.TabIndex = 10; + // + // panel1 + // + this.panel1.Controls.Add(this.pager1); + this.panel1.Controls.Add(this.DGMendRecorder); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 165); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(984, 477); + this.panel1.TabIndex = 10; + // + // pager1 + // + this.pager1.DataPage = ((QMFrameWork.Data.DataPage)(resources.GetObject("pager1.DataPage"))); + this.pager1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pager1.Location = new System.Drawing.Point(0, 442); + this.pager1.Name = "pager1"; + this.pager1.OSearch = null; + this.pager1.Size = new System.Drawing.Size(984, 35); + this.pager1.TabIndex = 7; + this.pager1.EventPaging += new QMAPP.WinForm.Controls.EventPagingHandler(this.pager1_EventPaging); + // + // bindingNavigator1 + // + this.bindingNavigator1.AddNewItem = null; + this.bindingNavigator1.AutoSize = false; + this.bindingNavigator1.CanOverflow = false; + this.bindingNavigator1.CountItem = null; + this.bindingNavigator1.CountItemFormat = ""; + this.bindingNavigator1.DeleteItem = null; + this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bindingNavigator1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; + this.bindingNavigator1.Location = new System.Drawing.Point(0, 0); + this.bindingNavigator1.Margin = new System.Windows.Forms.Padding(0, 0, 33, 0); + this.bindingNavigator1.MoveFirstItem = null; + this.bindingNavigator1.MoveLastItem = null; + this.bindingNavigator1.MoveNextItem = null; + this.bindingNavigator1.MovePreviousItem = null; + this.bindingNavigator1.Name = "bindingNavigator1"; + this.bindingNavigator1.PositionItem = null; + this.bindingNavigator1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; + this.bindingNavigator1.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.bindingNavigator1.Size = new System.Drawing.Size(984, 35); + this.bindingNavigator1.TabIndex = 3; + this.bindingNavigator1.Text = "bindingNavigator1"; + // // 零件号 // this.零件号.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; @@ -335,7 +375,7 @@ // CreateUser // this.CreateUser.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.CreateUser.DataPropertyName = "CREATEUSERNAME"; + this.CreateUser.DataPropertyName = "UPDATEUSER"; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 15.75F); this.CreateUser.DefaultCellStyle = dataGridViewCellStyle6; @@ -347,7 +387,7 @@ // CREATEDATE // this.CREATEDATE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.CREATEDATE.DataPropertyName = "CREATEDATE"; + this.CREATEDATE.DataPropertyName = "UPDATEDATE"; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 15.75F); this.CREATEDATE.DefaultCellStyle = dataGridViewCellStyle7; @@ -387,6 +427,7 @@ this.panelSearch.ResumeLayout(false); this.panelSearch.PerformLayout(); this.panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit(); this.ResumeLayout(false); } @@ -409,6 +450,8 @@ private System.Windows.Forms.Label label7; private System.Windows.Forms.ComboBox comINTTYPE; private System.Windows.Forms.Label label5; + private Controls.Pager pager1; + private System.Windows.Forms.BindingNavigator bindingNavigator1; private System.Windows.Forms.DataGridViewTextBoxColumn 零件号; private System.Windows.Forms.DataGridViewTextBoxColumn 物料号; private System.Windows.Forms.DataGridViewTextBoxColumn 物料名称; diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.cs index a46109a..c14b1d6 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.cs @@ -27,7 +27,7 @@ namespace QMAPP.WinForm.Forms.TianJin Storage searchModel = new Storage();//查询条件 Storage product = new Storage(); Main main = new Main(); - int isValidate = 0;//0:未校验 1:已校验 + //int isValidate = 0;//0:未校验 1:已校验 public TJOutWarehouseForm() { @@ -39,12 +39,20 @@ namespace QMAPP.WinForm.Forms.TianJin private void Form_Load(object sender, EventArgs e) { //初始化控件属性 - this.DGMendRecorder.AutoGenerateColumns = false; + this.DGMendRecorder.AutoGenerateColumns = false; + + //出库原因下拉 + BasicData basicData = new BasicData(); + //comINTTYPE + this.comINTTYPE.DataSource = basicData.GetOutReasonList(true); + this.comINTTYPE.DisplayMember = "OUTREASON_NAME"; + this.comINTTYPE.ValueMember = "OUTREASON_CODE"; //初始化分页 - //this.pager1.Init(); - //加载默认查询条件 - SetSearchModel(); + this.pager1.Init(); + //加载默认查询条件 + SetSearchModel(); + BindGirdData(); } #endregion @@ -63,37 +71,14 @@ namespace QMAPP.WinForm.Forms.TianJin List
listMain = new List
(); DataPage dataPage = new DataPage(); //获取前台分页设置信息 - //dataPage = pager1.DataPage; + dataPage = pager1.DataPage; try { + searchModel.State = "2"; //获取零件信息 var result = agent.InvokeServiceFunction>("StorageBLL_GetList", searchModel, dataPage); - - //本体 - //if (resultProduct.Result.PRODUCTTYPE == EnumGeter.ProductType.biaopi.GetHashCode().ToString() && resultProduct.Result.USINGSTATE == EnumGeter.USINGSTATE.USING.GetHashCode().ToString()) - //{ - // Main mainModel = new Main(); - // mainModel.EPIDERMISCODE = resultProduct.Result.PRODUCTCODE; - // //获取本体信息 - // resultMain = agent.InvokeServiceFunction>(B9IPCService.OutWarehouseBLL_GetMainInfo.ToString(), mainModel); - // if (!resultMain.IsSuccess) - // { - // MessageBox.Show(resultMain.Msg, resultMain.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning); - // } - // else - // { - // mainModel = resultMain.Result; - // //绑定本体信息到列表中 - // listMain.Add(resultMain.Result); - // this.DGMendRecorder.DataSource = listMain; - // } - //} - //else - //{ - // //绑定零件信息到列表中 - // listProduct.Add(resultProduct.Result); - // this.DGMendRecorder.DataSource = listProduct; - //} + this.DGMendRecorder.DataSource = JsonConvertHelper.GetDeserialize>(result.Result.Result.ToString()); + this.pager1.DataPage = dataPage; } catch (Exception ex) { @@ -124,61 +109,7 @@ namespace QMAPP.WinForm.Forms.TianJin /// private void tsbSearch_Click(object sender, EventArgs e) { - isValidate = 0; - //设置查询条件 - SetSearchModel(); - //查询条件校验 - bool issuccess = ExistSearchModel(); - - DataResult resultProduct = new DataResult(); - DataResult
resultMain = new DataResult
(); - //获取前台分页设置信息 - //DataPage dataPage = pager1.DataPage; - QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); - List listProduct = new List(); - List
listMain = new List
(); - if (issuccess) - { - //this.pager1.Init(); - //获取零件信息 - resultProduct = agent.InvokeServiceFunction>(B9IPCService.OutWarehouseBLL_GetProductInfo.ToString(), searchModel); - if (!resultProduct.IsSuccess) - { - MessageBox.Show(resultProduct.Msg, resultProduct.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning); - isValidate = 0; - } - else - { - //product = resultProduct.Result; - ////本体 - //if (product.PRODUCTTYPE == EnumGeter.ProductType.biaopi.GetHashCode().ToString() && product.USINGSTATE == EnumGeter.USINGSTATE.USING.GetHashCode().ToString()) - //{ - // main.EPIDERMISCODE = product.PRODUCTCODE; - // //获取本体信息 - // resultMain = agent.InvokeServiceFunction>(B9IPCService.OutWarehouseBLL_GetMainInfo.ToString(), main); - // if (!resultMain.IsSuccess) - // { - // MessageBox.Show(resultMain.Msg, resultMain.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning); - // isValidate = 0; - // } - // else - // { - // main = resultMain.Result; - // //绑定本体信息到列表中 - // listMain.Add(resultMain.Result); - // this.DGMendRecorder.DataSource = listMain; - // isValidate = 1; - // } - //} - //else - //{ - // //绑定零件信息到列表中 - // listProduct.Add(resultProduct.Result); - // this.DGMendRecorder.DataSource = listProduct; - // isValidate = 1; - //} - } - } + BindGirdData(); } /// @@ -188,28 +119,12 @@ namespace QMAPP.WinForm.Forms.TianJin /// private void tsbOutWarehouse_Click(object sender, EventArgs e) { - QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); - //出库校验 - bool issuccess = ExistOutWarehouse(); - DataResult result = new DataResult(); - if (issuccess) - { - - //if (product.PRODUCTTYPE == EnumGeter.ProductType.biaopi.GetHashCode().ToString() && product.USINGSTATE == EnumGeter.USINGSTATE.USING.GetHashCode().ToString()) - //{ - // //本体 - // result = agent.InvokeServiceFunction(B9IPCService.OutWarehouseBLL_MainOutWarehouse.ToString(), main); - //} - //else - //{ - // //零件 - // result = agent.InvokeServiceFunction(B9IPCService.OutWarehouseBLL_ProductOutWarehouse.ToString(), product); - //} - MessageBox.Show(result.Msg, result.Msg, MessageBoxButtons.OK, MessageBoxIcon.Warning); - BindGirdData(); - isValidate = 0; - this.txtPRODUCTCODE.Text = ""; - } + var form = new TJSendCodeForm(); + //form.StartPosition = FormStartPosition.CenterScreen; + form.ShowDialog(); + this.pager1.Init(); + BindGirdData(); + } #endregion @@ -256,43 +171,6 @@ namespace QMAPP.WinForm.Forms.TianJin Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, this.DGMendRecorder.RowHeadersWidth - 4, e.RowBounds.Height); TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), new Font("宋体", 12, FontStyle.Bold), rectangle, this.DGMendRecorder.RowHeadersDefaultCellStyle.ForeColor, TextFormatFlags.VerticalCenter | TextFormatFlags.Right); } - - #region 查询条件校验 - /// - /// 查询条件校验 - /// - private bool ExistSearchModel() - { - //条码 - if (string.IsNullOrEmpty(this.txtPRODUCTCODE.Text.Trim())) - { - MessageBox.Show(Resource1.ProductCodeNullValidate, Resource1.ProductCodeNullValidate, MessageBoxButtons.OK, MessageBoxIcon.Warning); - return false; - } - return true; - } - #endregion - - #region 出库校验 - /// - /// 出库校验 - /// - private bool ExistOutWarehouse() - { - //条码 - if (string.IsNullOrEmpty(this.txtPRODUCTCODE.Text.Trim())) - { - MessageBox.Show(Resource1.ProductCodeNullValidate, Resource1.ProductCodeNullValidate, MessageBoxButtons.OK, MessageBoxIcon.Warning); - return false; - } - //条码是否已验证 - if (isValidate==0) - { - MessageBox.Show(Resource1.ProductCodeValidate, Resource1.ProductCodeValidate, MessageBoxButtons.OK, MessageBoxIcon.Warning); - return false; - } - return true; - } - #endregion + } } diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.resx b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.resx index 1fc593b..0edf7b5 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.resx +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJOutWarehouseForm.resx @@ -124,90 +124,90 @@ iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABNJSURBVGhD1VkJdFvllU5pCzPTMqUtZaZMWyAFCpwu0ylL - W5YMZS3tcAJJoDOUKQQIgZKQUqCQlr4Q0iS2kzgkzr4oxJZsy4tsbdZi6XmRvFuLLe92ZFmLJVle4t3S - e/839ykvgZyQEnqGOcx3zj0+9v/0v/vd/cqLPgkA+Izah4vLAuxK3Qn2A30f+6lhIHWfIcBuNg6ymzR+ - XKYGPis//ukAz+Nz5d3sGm03lmp7xIyybtGs6xdc+oFUr/5EMmAYXBgmEgOGoVSXLiDUG8Ki2hhirxrD - uMMaYl+Vr/m/h8KPv9O0s59qOsWd5T6hTdsdTmp7GXT9gP4EYBgEjAGgIkgSIgmTRCRh2GJ0MW14dqIi - KtpMUbZOH2FXccBF8tWfLKQw0XjZ9zTt4j6Ne2H4bRUp0w1sLHQxRac/daQpOpZjD4/mmAcX9pj84DI0 - jMsoZXvt/dMKZ3RE1TM9aeRbxQyzm5njgDYcTpojgscUY2u0YVwuv+aTQVkXu7TExV7UeFM9XK6LlXcA - Gl84qXCOTWWp28Lr99X0vZxpsT/P6Y4+u16zZeX6steefkOz7un1mreeXV+644UNusLf77C2cEedJ3Ls - faPK7skZM+8SLQkG80hivmJENJpj7PZPxBuVPexfDO3i/vK2idmydgZNm084Yo2OccdcQ2s2m0yrN+j+ - sPKPZXc9+UbpVzmOu2hsYMWXWOTBryH8y8tJ/kG6Y9WqA5//71fzv73y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AAAAaPFBhZ2VJbmRleD5rX19CYWNraW5nRmllbGQZPFBhZ2VTaXplPmtf + X0JhY2tpbmdGaWVsZBo8UGFnZUNvdW50PmtfX0JhY2tpbmdGaWVsZBw8UmVjb3JkQ291bnQ+a19fQmFj + a2luZ0ZpZWxkGDxLZXlOYW1lPmtfX0JhY2tpbmdGaWVsZB88U29ydEV4cHJlc3Npb24+a19fQmFja2lu + Z0ZpZWxkFzxSZXN1bHQ+a19fQmFja2luZ0ZpZWxkGTxDb3VudFNxbD5rX19CYWNraW5nRmllbGQbPElz + UGFyYWxsZWw+a19fQmFja2luZ0ZpZWxkIjxBY2N1cmF0ZVBhcnRpdGlvbj5rX19CYWNraW5nRmllbGQA + AAAAAQECAQAACAgICAEBAgAAAAEAAAAyAAAAAAAAAAAAAAAKCgoKAAAL + + + + 127, 17 + 25 diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt index 9ec0d1c..a0bab9d 100644 Binary files a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt and b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt differ diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs index 10bbfbd..37d43ca 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs @@ -100,6 +100,38 @@ namespace DCS.Place cr = new TJPastCard(); // printdt.TableName = "text"; + cr.PrintOptions.PrinterName = ""; + cr.SetDataSource(printdt); //为报表的数据表填充记录 + cr.PrintToPrinter(1, false, 0, 1); + } + catch (Exception ex) + { + QMAPP.WinForm.WriteLog.WriteError(ex.Message); + } + finally + { + if (cr != null) + { + cr.Close(); + cr.Dispose(); + } + } + } + + /// + /// 本地打印--通过名称-选择打印机 + /// + /// + /// + public void Print(DataTable printdt,string PrinterName) + { + TJPastCard cr = null; + try + { + cr = new TJPastCard(); + + // printdt.TableName = "text"; + cr.PrintOptions.PrinterName = PrinterName; cr.SetDataSource(printdt); //为报表的数据表填充记录 cr.PrintToPrinter(1, false, 0, 1); } diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs index c31f116..0df743c 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs @@ -29,16 +29,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TJPrintPlanLabel)); this.dgvPlan = new System.Windows.Forms.DataGridView(); this.dgcOrderNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -70,6 +70,8 @@ this.label8 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).BeginInit(); this.tpContent.SuspendLayout(); this.tpPlanList.SuspendLayout(); @@ -85,14 +87,14 @@ | System.Windows.Forms.AnchorStyles.Right))); this.dgvPlan.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvPlan.BackgroundColor = System.Drawing.SystemColors.ButtonFace; - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.dgvPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgcOrderNo, @@ -109,19 +111,19 @@ this.dgvPlan.Location = new System.Drawing.Point(6, 6); this.dgvPlan.Name = "dgvPlan"; this.dgvPlan.ReadOnly = true; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; - dataGridViewCellStyle10.Padding = new System.Windows.Forms.Padding(0, 0, 8, 0); - this.dgvPlan.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle19; + dataGridViewCellStyle20.Padding = new System.Windows.Forms.Padding(0, 0, 8, 0); + this.dgvPlan.RowsDefaultCellStyle = dataGridViewCellStyle20; this.dgvPlan.RowTemplate.Height = 23; this.dgvPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvPlan.Size = new System.Drawing.Size(852, 183); + this.dgvPlan.Size = new System.Drawing.Size(1350, 183); this.dgvPlan.TabIndex = 7; this.dgvPlan.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvPlan_RowPrePaint); this.dgvPlan.SelectionChanged += new System.EventHandler(this.dgvPlan_SelectionChanged); @@ -129,8 +131,8 @@ // dgcOrderNo // this.dgcOrderNo.DataPropertyName = "ORDERPLAN_NO"; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgcOrderNo.DefaultCellStyle = dataGridViewCellStyle2; + dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dgcOrderNo.DefaultCellStyle = dataGridViewCellStyle12; this.dgcOrderNo.HeaderText = "订单号"; this.dgcOrderNo.Name = "dgcOrderNo"; this.dgcOrderNo.ReadOnly = true; @@ -139,8 +141,8 @@ // dgcSeq // this.dgcSeq.DataPropertyName = "SEQ"; - dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15.75F); - this.dgcSeq.DefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 15.75F); + this.dgcSeq.DefaultCellStyle = dataGridViewCellStyle13; this.dgcSeq.HeaderText = "顺序号"; this.dgcSeq.Name = "dgcSeq"; this.dgcSeq.ReadOnly = true; @@ -149,8 +151,8 @@ // dgcMaterialCode // this.dgcMaterialCode.DataPropertyName = "MATERIAL_CODE"; - dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15.75F); - this.dgcMaterialCode.DefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 15.75F); + this.dgcMaterialCode.DefaultCellStyle = dataGridViewCellStyle14; this.dgcMaterialCode.HeaderText = "零件号"; this.dgcMaterialCode.Name = "dgcMaterialCode"; this.dgcMaterialCode.ReadOnly = true; @@ -159,8 +161,8 @@ // dgcMaterialName // this.dgcMaterialName.DataPropertyName = "MATERIAL_NAME"; - dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 15.75F); - this.dgcMaterialName.DefaultCellStyle = dataGridViewCellStyle5; + dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 15.75F); + this.dgcMaterialName.DefaultCellStyle = dataGridViewCellStyle15; this.dgcMaterialName.HeaderText = "零件描述"; this.dgcMaterialName.Name = "dgcMaterialName"; this.dgcMaterialName.ReadOnly = true; @@ -168,8 +170,8 @@ // // dgcState // - dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dgcState.DefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dgcState.DefaultCellStyle = dataGridViewCellStyle16; this.dgcState.HeaderText = "工单状态"; this.dgcState.MinimumWidth = 80; this.dgcState.Name = "dgcState"; @@ -179,8 +181,8 @@ // dgcPlanDate // this.dgcPlanDate.DataPropertyName = "PLAN_DATE"; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 15.75F); - this.dgcPlanDate.DefaultCellStyle = dataGridViewCellStyle7; + dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 15.75F); + this.dgcPlanDate.DefaultCellStyle = dataGridViewCellStyle17; this.dgcPlanDate.HeaderText = "计划日期"; this.dgcPlanDate.Name = "dgcPlanDate"; this.dgcPlanDate.ReadOnly = true; @@ -189,8 +191,8 @@ // dgcShift // this.dgcShift.DataPropertyName = "SHIFT_CODE"; - dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15.75F); - this.dgcShift.DefaultCellStyle = dataGridViewCellStyle8; + dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 15.75F); + this.dgcShift.DefaultCellStyle = dataGridViewCellStyle18; this.dgcShift.HeaderText = "计划类型"; this.dgcShift.Name = "dgcShift"; this.dgcShift.ReadOnly = true; @@ -243,7 +245,7 @@ this.tpContent.Location = new System.Drawing.Point(5, 55); this.tpContent.Name = "tpContent"; this.tpContent.SelectedIndex = 0; - this.tpContent.Size = new System.Drawing.Size(872, 323); + this.tpContent.Size = new System.Drawing.Size(1370, 323); this.tpContent.TabIndex = 0; // // tpPlanList @@ -254,7 +256,7 @@ this.tpPlanList.Location = new System.Drawing.Point(4, 49); this.tpPlanList.Name = "tpPlanList"; this.tpPlanList.Padding = new System.Windows.Forms.Padding(3); - this.tpPlanList.Size = new System.Drawing.Size(864, 270); + this.tpPlanList.Size = new System.Drawing.Size(1362, 270); this.tpPlanList.TabIndex = 0; this.tpPlanList.Text = "计划列表"; this.tpPlanList.UseVisualStyleBackColor = true; @@ -270,7 +272,7 @@ this.tslblOrderCount}); this.toolStrip1.Location = new System.Drawing.Point(3, 197); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(858, 70); + this.toolStrip1.Size = new System.Drawing.Size(1356, 70); this.toolStrip1.Stretch = true; this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; @@ -366,7 +368,7 @@ "显示全部工单", "隐藏挂起工单", "只看挂起工单"}); - this.cbPlanFilter.Location = new System.Drawing.Point(351, 66); + this.cbPlanFilter.Location = new System.Drawing.Point(849, 66); this.cbPlanFilter.Name = "cbPlanFilter"; this.cbPlanFilter.Size = new System.Drawing.Size(175, 33); this.cbPlanFilter.TabIndex = 2; @@ -376,7 +378,7 @@ this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(283, 72); + this.label10.Location = new System.Drawing.Point(781, 72); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(65, 20); this.label10.TabIndex = 16; @@ -394,7 +396,7 @@ "40", "50", "100"}); - this.cbListRowcount.Location = new System.Drawing.Point(625, 66); + this.cbListRowcount.Location = new System.Drawing.Point(1123, 66); this.cbListRowcount.Name = "cbListRowcount"; this.cbListRowcount.Size = new System.Drawing.Size(78, 33); this.cbListRowcount.TabIndex = 3; @@ -412,7 +414,7 @@ "10s", "15s", "20s"}); - this.cbRefreshRate.Location = new System.Drawing.Point(802, 66); + this.cbRefreshRate.Location = new System.Drawing.Point(1300, 66); this.cbRefreshRate.Name = "cbRefreshRate"; this.cbRefreshRate.Size = new System.Drawing.Size(66, 33); this.cbRefreshRate.TabIndex = 4; @@ -422,7 +424,7 @@ this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label8.Location = new System.Drawing.Point(529, 72); + this.label8.Location = new System.Drawing.Point(1027, 72); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(93, 20); this.label8.TabIndex = 12; @@ -433,7 +435,7 @@ this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label6.Location = new System.Drawing.Point(706, 72); + this.label6.Location = new System.Drawing.Point(1204, 72); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(93, 20); this.label6.TabIndex = 13; @@ -445,11 +447,39 @@ this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // - // PrintPlanLabel + // comboBox1 + // + this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Items.AddRange(new object[] { + "显示全部工单", + "隐藏挂起工单", + "只看挂起工单"}); + this.comboBox1.Location = new System.Drawing.Point(595, 64); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(175, 33); + this.comboBox1.TabIndex = 17; + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label2.Location = new System.Drawing.Point(524, 72); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(65, 20); + this.label2.TabIndex = 18; + this.label2.Text = "门板位置"; + // + // TJPrintPlanLabel // this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(880, 382); + this.ClientSize = new System.Drawing.Size(1378, 382); + this.Controls.Add(this.label2); + this.Controls.Add(this.comboBox1); this.Controls.Add(this.cbPlanFilter); this.Controls.Add(this.label10); this.Controls.Add(this.cbListRowcount); @@ -461,7 +491,7 @@ this.Controls.Add(this.tpContent); this.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.Name = "PrintPlanLabel"; + this.Name = "TJPrintPlanLabel"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "门板计划标签打印"; this.Load += new System.EventHandler(this.PrintPlanLabel_Load); @@ -507,6 +537,7 @@ private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label6; private System.Windows.Forms.Timer timer1; - + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.Label label2; } } \ No newline at end of file diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs index fd9a51d..036dbf2 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs @@ -429,52 +429,44 @@ namespace QMAPP.WinForm.Forms.TianJin } tsbPrint.Enabled = false; var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[0].DataBoundItem; - var order2 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[1].DataBoundItem; var orders = new List(); orders.Add(order1); - //if (string.Equals(order1.SEQ, order2.SEQ)) - //{ - // orders.Add(order2); - //} - + List labels = new List(); - foreach (var order in orders) - { - var data = DateTime.Now.ToString("yyyyMMddHHmmssfff"); - //var codematch = System.Text.RegularExpressions.Regex.Match(order.PBOM_CODE, "_[LR][FR]_"); - string positioncode = GetNameCode(order.MATERIAL_NAME); - var book = _agent.InvokeServiceFunction("FISPhraseBLL_GetFisPhraseBook", order.MATERIAL_CODE + "", positioncode); + var data = DateTime.Now.ToString("yyyyMMddHHmmssfff"); + data = data.Substring(2, data.Length - 2); + //var codematch = System.Text.RegularExpressions.Regex.Match(order.PBOM_CODE, "_[LR][FR]_"); + string positioncode = GetNameCode(orders[0].MATERIAL_NAME); + var book = _agent.InvokeServiceFunction("FISPhraseBLL_GetFisPhraseBook", orders[0].MATERIAL_CODE + "", positioncode); - LabelData labeldata = new LabelData(); + LabelData labeldata = new LabelData(); - labeldata.MATERIALCODE = order.MATERIAL_CODE; + labeldata.MATERIALCODE = orders[0].MATERIAL_CODE; - labeldata.PlanDate = order.PLAN_DATE; - if (book != null) - { - labeldata.Class = " " + book.Class.Substring(0, 2); - labeldata.Description = book.Text; - labeldata.OrderNo = book.CarModel+ positioncode+ data; - } - var mcresult = _agent.InvokeServiceFunction>("MaterialBLL_Get", new Material { MATERIAL_CODE = order.MATERIAL_CODE }); - var material = mcresult.IsSuccess ? mcresult.Result : null; - if (material != null) - { - labeldata.MaterialName = material.MATERIAL_SHORT; - labeldata.CarModel = material.PROJECTCODE; - } - labels.Add(labeldata); + labeldata.PlanDate = orders[0].PLAN_DATE; + if (book != null) + { + labeldata.Class = " " + book.Class.Substring(0, 2); + labeldata.Description = book.Text; + labeldata.OrderNo = book.CarModel + positioncode + data; } + var mcresult = _agent.InvokeServiceFunction>("MaterialBLL_Get", new Material { MATERIAL_CODE = orders[0].MATERIAL_CODE }); + var material = mcresult.IsSuccess ? mcresult.Result : null; + if (material != null) + { + labeldata.MaterialName = material.MATERIAL_SHORT; + labeldata.CarModel = material.PROJECTCODE; + } + labels.Add(labeldata); + PrintLabel(labels); //变更打印状态 0=>1 - foreach (var order in orders) - { - //agent.InvokeServiceFunction("WorkOrderBLL_SetOrderPrinted", order.PID); - } + _agent.InvokeServiceFunction("WorkOrderBLL_SetOrderPrinted", orders[0].PID); + BindPlanView(); tsbPrint.Enabled = true; } diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx index 5cb6633..f09aad3 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx @@ -153,76 +153,78 @@ 17, 17 + + 17, 17 + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZc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MzDV9E3UN72DvC4KZJKK+M9mCKm6PZD3skSyu95ptCeXzWxcBc1MbNZ+sfIs77VA49jAYWob + KQDOhJDeTLlF/F4liNsXdxlaHuhdxQgH/xrYoFAB4ieIeIaZBhFeESCcCQc36taXCEMQeihm/joGHl5F + TocNuQpaVdR/euCOygpVD3dbrEw5Ki7WGimcALe467rfbsIEC0mEy5BjbWcJf3qc/GA8HoOFIG0Lu2gl + iM5Ziv3gdwlCceInIwmE1hZPlr0E86RyhZ45sP8plg2X0GkwQanZ5ybpcXKdL8qnyAXOrBomNsXn1ptw + S8mw4Zp/cMGHnXDykboY5xb+9DjlEYJIHlnYgZpdVesooUcIIp7nr1O4+OnIL2YGot5vwmB9G13LTDoj + UP84hPIRNiTmgAQg4p/ixet8lRm3FYx7hk/HhBeBrcgp4en7f6lxCoShlfTIDpq58tQ4irEnQmuLwte+ + BbPzEroMFG4AlNo97m8ZGm1zKO3RoKCLySkWayylQvxtOXdY9EDjkBvuQPi0cM7U6fMbJ780HVqt89xV + zTsxa1dg2L4ItQnc84ZRMWpFaZ8WRV0a5LZrUcx9dkEXF2i0eFYVO26VETUslSb3LsRTQPGdvzHhTw/p + Rqc8In6N2ULDPPe3kzaU9+swonNijytP8RkbNzj1E3bkdiwhU25AabMdGvMWRMUT739lwp8eJ0GOjuIE + 2cS43oPdlHDxXvp9MUQOTS4FWVl+y8KfHs8SkeDF9HXxWrp4YrwQwp8eQpT4PYGHZ4pLv586fU4jI+N/ + Ae6xxmll7eSUAAAAAElFTkSuQmCC diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.Designer.cs index 8443805..c74add6 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.Designer.cs @@ -53,7 +53,6 @@ this.label5 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.DGView = new System.Windows.Forms.DataGridView(); - this.pager1 = new QMAPP.WinForm.Controls.Pager(); this.条码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.物料号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.物料名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -61,6 +60,7 @@ this.操作人 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.入库时间 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Pid = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pager1 = new QMAPP.WinForm.Controls.Pager(); this.toolStrip1.SuspendLayout(); this.panelSearchTitle.SuspendLayout(); this.panelSearch.SuspendLayout(); @@ -282,17 +282,6 @@ this.DGView.TabIndex = 4; this.DGView.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.DGView_RowPostPaint); // - // pager1 - // - this.pager1.DataPage = ((QMFrameWork.Data.DataPage)(resources.GetObject("pager1.DataPage"))); - this.pager1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.pager1.Location = new System.Drawing.Point(0, 607); - this.pager1.Name = "pager1"; - this.pager1.OSearch = null; - this.pager1.Size = new System.Drawing.Size(998, 35); - this.pager1.TabIndex = 7; - this.pager1.EventPaging += new QMAPP.WinForm.Controls.EventPagingHandler(this.pager1_EventPaging); - // // 条码 // this.条码.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; @@ -375,7 +364,17 @@ this.Pid.Name = "Pid"; this.Pid.ReadOnly = true; this.Pid.Visible = false; - this.Pid.Width = 60; + // + // pager1 + // + this.pager1.DataPage = ((QMFrameWork.Data.DataPage)(resources.GetObject("pager1.DataPage"))); + this.pager1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pager1.Location = new System.Drawing.Point(0, 607); + this.pager1.Name = "pager1"; + this.pager1.OSearch = null; + this.pager1.Size = new System.Drawing.Size(998, 35); + this.pager1.TabIndex = 7; + this.pager1.EventPaging += new QMAPP.WinForm.Controls.EventPagingHandler(this.pager1_EventPaging); // // TJProductInForm // @@ -409,7 +408,6 @@ private System.Windows.Forms.ToolStripButton tsbSearch; private System.Windows.Forms.TextBox txtProductCode; private System.Windows.Forms.Label label3; - private Controls.Pager pager1; private System.Windows.Forms.Panel panelSearchTitle; private System.Windows.Forms.Label lblSearchTitle; private System.Windows.Forms.Panel panelSearch; @@ -429,5 +427,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn 操作人; private System.Windows.Forms.DataGridViewTextBoxColumn 入库时间; private System.Windows.Forms.DataGridViewTextBoxColumn Pid; + private Controls.Pager pager1; } } \ No newline at end of file diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.cs index 64112a5..1c6f552 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.cs @@ -139,18 +139,18 @@ namespace QMAPP.WinForm.Forms.TianJin /// private void tsbAdd_Click(object sender, EventArgs e) { - //ProductInSendCodeForm editForm = new ProductInSendCodeForm(); - //DialogResult result = editForm.ShowDialog(); - //if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 - //{ - // this.pager1.Init(); - // BindGirdData(); - //} - var form = new TJProductInSendCodeForm(); - form.StartPosition = FormStartPosition.CenterScreen; - form.ShowDialog(); - this.pager1.Init(); - BindGirdData(); + TJProductInSendCodeForm editForm = new TJProductInSendCodeForm(); + DialogResult result = editForm.ShowDialog(); + if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 + { + this.pager1.Init(); + BindGirdData(); + } + //var form = new TJProductInSendCodeForm(); + //form.StartPosition = FormStartPosition.CenterScreen; + //form.Show(); + //this.pager1.Init(); + //BindGirdData(); } // 行序号 diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.resx b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.resx index 0a66379..e793511 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.resx +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJProductInForm.resx @@ -124,90 +124,90 @@ iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABNdSURBVGhD1VkJdFvllU5pCzPT0kJLmSnTFkiBAqfLdMrS - liVDWQsdTiAJdIYyhQAhUBJSChTSUkGSSWI7iUPi7I4VYku25UW2ZNlaLD1biy3vki1b3rXbki0v8W7p - vf+b+5SXQE5IE3qGOcx3zj0+9v/0v/vd/cpLPg0A+JzKg4vLAuwq7SD7UUUf+7luIHm/LsBuqfSzm9U+ - XKYCPi89/tkAx+EL5d3sWk03lmt6hLSybsGg7edbKwaSvRWDiYDOvzhMJAZ0waRXG+DrdRFBVRlmr1dG - cKcpzL4uXfN/D7kPf6fuYD9Xdwm7yz18u6Y7ktD0Mmj7gYpBQOcHKgNAVYgkTBIhGRKF4XBDgGkic5NV - UcGsj7INFUPsahlwkXT1pwsxTNRu9gN1h3BA3bY4nGUgZbqBfdUBJu/yJY82RsezLJGxLIN/cZ/eB1m2 - lcmya9l+S/+M3BEdVfbMTFU2+IXs5iAzjACaSCRhGOJd+hhbp4ngCuk1nw7KvOzSklb2stqd7NlTGWDl - nYDaE0nIHePTGar2yMYD1r5X042WF2XanOc3qret3lj2xrNvqTc8u1H9zvMbS3e99K628A+7TM2yHMdg - lqVvTNE9NWtoDQjGOINhNL5QNSpUGmLsjk/FG9U97J91HcLB8vbJubIOBnW7nz9qio7LjrUG123V69e+ - q/3j6j+V3f30W6Vfl8lkF40PrPoqG3roG4j86gqSfxDvWLPm0Bf/6/X8765+o3j5C++U7Xlth7ElvcIb - LfPNTOe4Asw4xlAVTw7oR9hqSvaLUy/+30BNJ7ve7BXUJk+A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k5cqkJTAkgeoy24n5XdQnd/ZRHGuNrB9Ts/UIcdQXMVNxaQ7NTRAaohAXrXQkF/DfvnxlFcs + uERSPuG+L4zY6zQLZKGjfsdohipn1tHgQUdvAMbKWhzOKatSlsSfVZkF5yYLL0h5IRHJqxJR1CygrFOA + OSjAHhKw1+5nx1tHofRIMoLjJBtKWpj0dWFW7dSQunp2VMVNTKereZbnoq5fNTOe6xKP5DjYjbJaFwdJ + ecbdtTThXhTEkKR8DrXVFxB33j5XefjZsEKxZ06ts6CUc0Gtt74lfSbHyL6VbWJ/zrYkfWorL54mkssR + GQeFQI2IgoYkcurnUqKum8Xm3C6Wy9FGXsUnJcmrkohLU+/ENBnASCSWnjCxL6SUulicDpuU8pLlZ1Sk + /IuA6x7q3XcgnnX7HPf+M5GtGcdnD2lNg2o9d6v80QWSi3Ms7MYsM1uTbRFt2ab5wc1W8goRkUSapXKI + UEoqiNxpoVE9t3JsNrcy2aV2iNnqKvZ4keXv+HfrB2FzN4XNarJ8Qcryp5VHzm0I2G4R5pruP34gL+vd + vRr9W3l55347LeGIk11OHrmTPLFSbRX3qi2iXm2lJmhJdqvNiZDKKrTl2IVqtU3MyakQN+VUsqfybOy7 + 592sLgYUNs8k3PcHTlk+m5R//hzlxZZfnGCBh75xkPZSjUZzUf90I89cmmVgX6JQ+rqGw7+ozexqCo2r + 8ozsq1KIfKzk/FuYc98VR+w1sny+HDaLPlBeeU0S7nuPs+D9Z5brTx0Qf4csnyUrf/dZlk8p3/uLf5Yf + /XQCs1LCrjzb8h8KG/mxTy8QWP6B5XNvQ0R3V0J036v8VIfNh5FK2EJSXn0bYL0TpLz2/43yCxYs+B9O + y+7D8eQU3AAAAABJRU5ErkJggg== diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.Designer.cs index 9eed93c..994f683 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.Designer.cs @@ -30,7 +30,6 @@ { this.txtCode = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); - this.tsb_close = new System.Windows.Forms.Button(); this.labelError = new System.Windows.Forms.Label(); this.labelOutReason = new System.Windows.Forms.Label(); this.comboBoxOutReason = new System.Windows.Forms.ComboBox(); @@ -57,16 +56,6 @@ this.label1.TabIndex = 6; this.label1.Text = "条码"; // - // tsb_close - // - this.tsb_close.Location = new System.Drawing.Point(270, 133); - this.tsb_close.Name = "tsb_close"; - this.tsb_close.Size = new System.Drawing.Size(75, 23); - this.tsb_close.TabIndex = 8; - this.tsb_close.Text = "关闭"; - this.tsb_close.UseVisualStyleBackColor = true; - this.tsb_close.Click += new System.EventHandler(this.tsb_close_Click); - // // labelError // this.labelError.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -111,13 +100,13 @@ // this.tsb_submit.Location = new System.Drawing.Point(119, 133); this.tsb_submit.Name = "tsb_submit"; - this.tsb_submit.Size = new System.Drawing.Size(75, 23); + this.tsb_submit.Size = new System.Drawing.Size(226, 23); this.tsb_submit.TabIndex = 14; this.tsb_submit.Text = "提交"; this.tsb_submit.UseVisualStyleBackColor = true; this.tsb_submit.Click += new System.EventHandler(this.submit_Click); // - // SendCodeForm + // TJSendCodeForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -127,13 +116,11 @@ this.Controls.Add(this.comboBoxOutReason); this.Controls.Add(this.labelOutReason); this.Controls.Add(this.labelError); - this.Controls.Add(this.tsb_close); this.Controls.Add(this.txtCode); this.Controls.Add(this.label1); - this.Name = "SendCodeForm"; + this.Name = "TJSendCodeForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "出库"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SendCodeForm_FormClosing); this.Load += new System.EventHandler(this.Form_Load); this.ResumeLayout(false); this.PerformLayout(); @@ -144,7 +131,6 @@ private System.Windows.Forms.TextBox txtCode; private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button tsb_close; private System.Windows.Forms.Label labelError; private System.Windows.Forms.Label labelOutReason; private System.Windows.Forms.ComboBox comboBoxOutReason; diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.cs index 5b8ea8a..1af9e97 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJSendCodeForm.cs @@ -13,6 +13,7 @@ using QMAPP.Entity; using QMAPP.WinForm.Common; using QM.Common; using QMAPP.MD.Entity; +using QMAPP.MD.Entity.TianJin; namespace QMAPP.WinForm.Forms.TianJin { @@ -23,8 +24,6 @@ namespace QMAPP.WinForm.Forms.TianJin /// public partial class TJSendCodeForm : Form { - List productList = new List(); - TJOutWarehouseForm sendmain = new TJOutWarehouseForm(); public TJSendCodeForm() { InitializeComponent(); @@ -37,12 +36,7 @@ namespace QMAPP.WinForm.Forms.TianJin new KeyEvent().SetKeyToTxt(this); //出库原因下拉 BasicData basicData = new BasicData(); - //初始化控件属性 - //this.comboBoxOutReason.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.OutReason.ToString()); - //this.comboBoxOutReason.DisplayMember = "VALUE"; - //this.comboBoxOutReason.ValueMember = "KEY"; - //this.comboBoxOutReason.SelectedValue = ""; - + //加载物料类型分类 OutReason searchModelType = new OutReason(); this.comboBoxOutReason.DataSource = basicData.GetOutReasonList(true); @@ -64,41 +58,7 @@ namespace QMAPP.WinForm.Forms.TianJin this.ActiveControl = this.txtCode; this.txtCode.Focus();//落入光标 } - - - #region 保存出库信息到ProductOut表 - /// - /// 保存出库信息到ProductOut表 - /// - public void SaveInfo(List productList) - { - ProductOut outInfo = new ProductOut(); - outInfo.PID=Guid.NewGuid().ToString();//PID - outInfo.productList = productList; - if (ClientContext.produceShift != null) - { - outInfo.SHIFT_CODE = ClientContext.produceShift.PRODUCESHIFTTCODE; - } - outInfo.CREATEUSER = ClientContext.LoginInfo.UserID; - outInfo.CREATEDATE = DateTime.Now; - foreach (var model in productList) - { - outInfo.PRODUCT_CODE = model.PRODUCTCODE; - outInfo.MATERIAL_CODE = model.MATERIAL_CODE; - outInfo.WORKCENTER_CODE = model.WORKCENTER_CODE; - outInfo.WORKCELL_CODE = model.WORKCELL_CODE; - outInfo.OUTREASON = model.OUTREASON; - } - QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); - DataResult result = agent.InvokeServiceFunction>("ProductOutBLL_InsertProductOut", outInfo); - //MessageBox.Show(result.Msg); - //this.DialogResult = DialogResult.OK; - productList.Clear(); - this.comboBoxOutReason.SelectedItem = null; - this.txtCode.Text = ""; - } - #endregion - + # region 扫码枪 /// /// 扫码枪 @@ -107,93 +67,35 @@ namespace QMAPP.WinForm.Forms.TianJin /// private bool ValidateAndAddCode(string proCode) { - + QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); if (!string.IsNullOrEmpty(proCode)) { - if (System.Text.RegularExpressions.Regex.IsMatch(proCode, "^DP\\w+(-\\w+)?-DF[LR][FR]\\w+$"))//扫描输入为门板计划标签 - { - //从计划标签中截取产品码 - proCode = proCode.Substring(proCode.LastIndexOf('-') + 1); - } //出库原因 if (this.comboBoxOutReason.Text.ToString() == "") { this.labelError.Text ="出库原因不能为空!"; return false; } - #region 获取零件信息 - QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); - Product searchModel = new Product(); - Main mainModel = new Main(); - //去Main表查询数据 - - if (proCode.Substring(0, 3) == "052") - { - //从计划标签中截取产品码 - mainModel.MAINCODE = proCode; - Main mainInfo = agent.InvokeServiceFunction
("MainBLL_GetByCondition", mainModel); - if (mainInfo != null) - { - searchModel.PRODUCTCODE = mainInfo.EPIDERMISCODE; - } - } - else - { - searchModel.PRODUCTCODE = proCode; - } - - this.labelError.ForeColor = System.Drawing.Color.Red; - List list = agent.InvokeServiceFunction>("ProductBLL_GetAllList", searchModel); - - if (list.Count <= 0)//是否存在该零件 - { - this.labelError.Text =this.txtCode.Text +"\r\n"+ Resource1.SendInfoNotFoundCode; - this.txtCode.Text = ""; - return false; - } - list[0].OUTREASON = this.comboBoxOutReason.SelectedValue.ToString(); - Product model = list[0]; - #endregion - - - - #region 判断零件状态 - - //合格返修报废 - if (!model.STATUS.Equals(EnumGeter.PRODUCTSTAUTS.QUALIFIED.GetHashCode().ToString()))//合格 + var count = agent.InvokeServiceFunction>("StorageBLL_SelectCount", proCode); + if (count.Result > 0) { - if (model.STATUS.Equals(EnumGeter.PRODUCTSTAUTS.REPAIR.GetHashCode().ToString()))//合格 - { - this.labelError.Text = this.txtCode.Text + "\r\n" + Resource1.SendInfoRepaired; - this.txtCode.Text = ""; - return false; - } + var storage = new Storage(); + storage.ProductCode = proCode; + storage.OutStorageType = this.comboBoxOutReason.Text.ToString(); + var result = agent.InvokeServiceFunction("StorageBLL_Update", storage); + if (result.IsSuccess) + return true; else { - this.labelError.Text = this.txtCode.Text + "\r\n" + Resource1.SendInfoWadBad; - this.txtCode.Text = ""; + this.labelError.Text = result.Msg; return false; } } - //是否已出库 - if (EnumGeter.OUTFLAG.INWAREHOUSE.GetHashCode().ToString().Equals(model.OUTFLAG) == false) - { - this.labelError.Text = this.txtCode.Text + "\r\n" + Resource1.SendInfoNotOk; - this.txtCode.Text = ""; - return false; - } - //是否已经完成 - if (EnumGeter.Finish.ENDOFLINE.GetHashCode().ToString().Equals(model.ENDOFLINE) == false) + else { - this.labelError.Text = this.txtCode.Text + "\r\n" + "该本体正在加工中,未完成"; - this.txtCode.Text = ""; + this.labelError.Text = "条码未进行入库操作!"; return false; } - #endregion - - //添加到零件列表 - productList.Add(model); - return true; } this.labelError.Text = "请选择相应信息!"; @@ -213,7 +115,7 @@ namespace QMAPP.WinForm.Forms.TianJin { if (ValidateAndAddCode(this.txtCode.Text.Trim())) { - SaveInfo(productList); + //SaveInfo(productList); this.txtCode.Text = ""; this.labelError.ForeColor = System.Drawing.Color.Green; this.labelError.Text = "操作成功"; @@ -228,22 +130,20 @@ namespace QMAPP.WinForm.Forms.TianJin ///
/// /// - private void tsb_close_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.OK; - this.Close(); - } + //private void tsb_close_Click(object sender, EventArgs e) + //{ + // this.Close(); + //} /// /// 点击右上角X关闭窗口 /// /// /// - private void SendCodeForm_FormClosing(object sender, FormClosingEventArgs e) - { - this.DialogResult = DialogResult.OK; - e.Cancel = false; - } + //private void SendCodeForm_FormClosing(object sender, EventArgs e) + //{ + // this.Close(); + //} #endregion @@ -253,7 +153,7 @@ namespace QMAPP.WinForm.Forms.TianJin { if (ValidateAndAddCode(this.txtCode.Text.Trim().ToUpper())) { - SaveInfo(productList); + //SaveInfo(productList); this.txtCode.Text = ""; this.labelError.ForeColor = System.Drawing.Color.Green; this.labelError.Text = "操作成功"; diff --git a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs index 4640a80..19eb21a 100644 --- a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs +++ b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, // 方法是按如下所示使用“*”: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2021.09.08.01")] -[assembly: AssemblyFileVersion("2021.09.08.01")] +[assembly: AssemblyVersion("2022.03.28.02")] +[assembly: AssemblyFileVersion("2022.03.28.02")]