Browse Source

调整注塑计划导入

master
张松男 3 months ago
parent
commit
96a4cf9292
  1. 8
      APPQ5/QMAPP.FJC.BLL/TianJin/TJZhuSuPlanBLL.cs
  2. 15
      APPQ5/QMAPP.FJC.Web/Controllers/TJZhuSuPlanController.cs

8
APPQ5/QMAPP.FJC.BLL/TianJin/TJZhuSuPlanBLL.cs

@ -707,6 +707,10 @@ namespace QMAPP.FJC.BLL.TianJin
model.PLAN_STATE = "3";
TJZhuSuPlanDAL cmdDAL = new TJZhuSuPlanDAL();
model.PLAN_DATE = ma.PLAN_DATE;
model.PLAN_NO = ma.PLAN_NO;
model.PLAN_SEQ = ma.PLAN_NO.Substring(10, 3);
if (ExistsOrderPlan(model) > 0)
{
result.IsSuccess = false;
@ -714,9 +718,7 @@ namespace QMAPP.FJC.BLL.TianJin
return result;
}
model.PLAN_DATE = ma.PLAN_DATE;
model.PLAN_NO = ma.PLAN_NO;
model.PLAN_SEQ = ma.PLAN_NO.Substring(10, 4);
List.Add(model);
result.Result.insertNum += 1;

15
APPQ5/QMAPP.FJC.Web/Controllers/TJZhuSuPlanController.cs

@ -287,6 +287,11 @@ namespace QMAPP.FJC.Web.Controllers
string orderby = Request.Form["ORDER_TYPE"];
ServiceAgent wcfAgent = this.GetServiceAgent();
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"D:\ceshi\WriteLines.txt", true))
{
file.WriteLine("1111");
}
Materiel materialmodel = new Materiel();
ProduceShift produceshiftmodel = new ProduceShift();
MachineInfo machine = new MachineInfo();
@ -294,9 +299,19 @@ namespace QMAPP.FJC.Web.Controllers
QMAPP.MD.Entity.WorkCell workcell = new QMAPP.MD.Entity.WorkCell();
workcell.WORKCELL_CODE = orderby;
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"D:\ceshi\WriteLines.txt", true))
{
file.WriteLine("22222");
}
try
{
dt = this.GetTableByExcel("TJZhuSuPlanImp", fileName, dt);
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"D:\ceshi\WriteLines.txt", true))
{
file.WriteLine("3333");
}
//格式转换
list = QMFrameWork.Common.Util.BindHelper.ConvertToList<TJZhuSuPlan>(dt).ToList();
serviceResult = wcfAgent.InvokeServiceFunction<DataResult<ImportMessage>>("TJZhuSuPlanBLL_GetImportData", list, materialmodel,machine, produceshiftmodel, workcell);

Loading…
Cancel
Save