Browse Source

天津完结

master
songnan.zhang 3 years ago
parent
commit
1b6b6f1247
  1. 11
      APP/QMAPP.Web/App_Data/MainPower.xml
  2. 6
      APP/QMAPP.Web/App_Data/PCPower.xml
  3. 7
      APP/QMAPP.Web/QMAPP.Web.csproj
  4. 4
      APPMD/QMAPP.MD.DAL/MaterialDAL.cs
  5. 2
      APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs
  6. 1
      APPMD/QMAPP.MD.Web/QMAPP.MD.Web.csproj
  7. 65
      APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs
  8. 4
      APPQ5/QMAPP.FJC.BLL/TianJin/TJWorkOrderBLL.cs
  9. 38
      APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs
  10. 14
      APPQ5/QMAPP.FJC.DAL/TianJin/TWorkOrderDAL.cs
  11. 32
      APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs
  12. 161
      APPQ5/QMAPP.FJC.TRACING/DataAnalyzers/TJDPFISCodeAnalyzer.cs
  13. 1
      APPQ5/QMAPP.FJC.TRACING/QMAPP.FJC.TRACING.csproj
  14. BIN
      APPQ5/QMAPP.FJC.Web/App_Data/Excel/TJDoorPlankPlanImp.xlsx
  15. 8
      APPQ5/QMAPP.FJC.Web/App_Data/Excel/TJDoorPlankPlanImp.xml
  16. 2
      APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs
  17. BIN
      APPQ5/QMAPP.FJC.Web/Temp/060540e8-be79-4fbf-b956-679bf3775c9e.xlsx
  18. BIN
      APPQ5/QMAPP.FJC.Web/Temp/2a4faca6-f361-4483-b9e7-d914d0dccfbd.xlsx
  19. BIN
      APPQ5/QMAPP.FJC.Web/Temp/3571a329-f8f8-403e-b595-550e4c3e264b.xlsx
  20. BIN
      APPQ5/QMAPP.FJC.Web/Temp/91e5dcd7-7700-4563-ba58-abe36aa77f93.xlsx
  21. BIN
      APPQ5/QMAPP.FJC.Web/Temp/9e3cbd8b-d09d-4a43-8400-6486ec428ef6.xlsx
  22. BIN
      APPQ5/QMAPP.FJC.Web/Temp/b35b99c1-bd8e-4f80-9e4f-41a1488047c8.xlsx
  23. 8
      APPQ5/QMAPP.WinForm/App.config
  24. 5
      APPQ5/QMAPP.WinForm/Common/PrintUtil.cs
  25. 205
      APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.cs
  26. 118
      APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.designer.cs
  27. 120
      APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.resx
  28. 101
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs
  29. 249
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs
  30. 96
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs
  31. 73
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx
  32. 7
      APPQ5/QMAPP.WinForm/Menu.xml
  33. 4
      APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs
  34. 9
      APPQ5/QMAPP.WinForm/QMAPP.WinForm.csproj

11
APP/QMAPP.Web/App_Data/MainPower.xml

@ -203,6 +203,7 @@
<PowerInfo PowerID="CD02050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD02050000"/> <PowerInfo PowerID="CD02050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD02050000"/>
<PowerInfo PowerID="CD02050002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="7" SuperID="CD02050000"/> <PowerInfo PowerID="CD02050002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="7" SuperID="CD02050000"/>
<PowerInfo PowerID="CD02060000" PowerDes="TJ门板发运计划" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD02000000"/>
<PowerInfo PowerID="CD05000000" PowerDes="物料管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> <PowerInfo PowerID="CD05000000" PowerDes="物料管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/>
@ -245,6 +246,10 @@
<PowerInfo PowerID="CD10030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10030000"/> <PowerInfo PowerID="CD10030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10030000"/>
<PowerInfo PowerID="CD10030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD10030000"/> <PowerInfo PowerID="CD10030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD10030000"/>
<PowerInfo PowerID="CD10060000" PowerDes="库存信息" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD10000000"/>
<PowerInfo PowerID="CD10070000" PowerDes="出入库记录" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD10000000"/>
<!--<PowerInfo PowerID="CD10040000" PowerDes="生产进度查询" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD10000000"/>--> <!--<PowerInfo PowerID="CD10040000" PowerDes="生产进度查询" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD10000000"/>-->
<PowerInfo PowerID="CD14000000" PowerDes="投料记录查询" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> <PowerInfo PowerID="CD14000000" PowerDes="投料记录查询" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/>
@ -270,6 +275,9 @@
<PowerInfo PowerID="CD14040002" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD14040000"/> <PowerInfo PowerID="CD14040002" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD14040000"/>
<PowerInfo PowerID="CD14040003" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD14040000"/> <PowerInfo PowerID="CD14040003" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD14040000"/>
<PowerInfo PowerID="CD14050000" PowerDes="库存信息" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD14000000"/>
<PowerInfo PowerID="CD14060000" PowerDes="出入库记录" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD14000000"/>
<!--<PowerInfo PowerID="CD15000000" PowerDes="能源管理" PowerType="" ActionList="" Visible="true" Seq="3" SuperID=""/> <!--<PowerInfo PowerID="CD15000000" PowerDes="能源管理" PowerType="" ActionList="" Visible="true" Seq="3" SuperID=""/>
<PowerInfo PowerID="CD15010000" PowerDes="用量统计" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD15000000"/> <PowerInfo PowerID="CD15010000" PowerDes="用量统计" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD15000000"/>
@ -369,6 +377,9 @@
<PowerInfo PowerID="CD06060001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06060000"/> <PowerInfo PowerID="CD06060001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06060000"/>
<PowerInfo PowerID="CD06060002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06060000"/> <PowerInfo PowerID="CD06060002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06060000"/>
<PowerInfo PowerID="CD07000000" PowerDes="库存管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/>
<PowerInfo PowerID="CD07010000" PowerDes="加工参数查询" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD07000000"/>
<PowerInfo PowerID="CD06020000" PowerDes="加工参数查询" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD07000000"/>
<PowerInfo PowerID="CD13000000" PowerDes="统计分析" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> <PowerInfo PowerID="CD13000000" PowerDes="统计分析" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/>

6
APP/QMAPP.Web/App_Data/PCPower.xml

@ -36,6 +36,7 @@
<PowerInfo PowerID="CD82030200" PowerDes="强制补打" PowerType="item" ActionList="" Visible="true" Seq="2" SuperID="CD82030000"></PowerInfo> <PowerInfo PowerID="CD82030200" PowerDes="强制补打" PowerType="item" ActionList="" Visible="true" Seq="2" SuperID="CD82030000"></PowerInfo>
<PowerInfo PowerID="CD82040000" PowerDes="门板跳序终检" PowerType="item" ActionList="" Visible="true" Seq="3" SuperID="CD82000000"></PowerInfo> <PowerInfo PowerID="CD82040000" PowerDes="门板跳序终检" PowerType="item" ActionList="" Visible="true" Seq="3" SuperID="CD82000000"></PowerInfo>
<PowerInfo PowerID="CD82050000" PowerDes="门板FIS补码" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo> <PowerInfo PowerID="CD82050000" PowerDes="门板FIS补码" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo>
<PowerInfo PowerID="CD82060000" PowerDes="TJ门板计划标签打印" PowerType="item" ActionList="" Visible="true" Seq="9" SuperID="CD82000000"></PowerInfo>
<PowerInfo PowerID="CD83000000" PowerDes="返修工位" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> <PowerInfo PowerID="CD83000000" PowerDes="返修工位" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo>
<PowerInfo PowerID="CD83010000" PowerDes="质量操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD83000000"></PowerInfo> <PowerInfo PowerID="CD83010000" PowerDes="质量操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD83000000"></PowerInfo>
@ -44,11 +45,11 @@
<PowerInfo PowerID="CD83040000" PowerDes="总成条码替换" PowerType="item" ActionList="" Visible="true" Seq="4" SuperID="CD83000000"></PowerInfo> <PowerInfo PowerID="CD83040000" PowerDes="总成条码替换" PowerType="item" ActionList="" Visible="true" Seq="4" SuperID="CD83000000"></PowerInfo>
<PowerInfo PowerID="CD83050000" PowerDes="缺陷录入" PowerType="item" ActionList="" Visible="true" Seq="4" SuperID="CD83000000"></PowerInfo> <PowerInfo PowerID="CD83050000" PowerDes="缺陷录入" PowerType="item" ActionList="" Visible="true" Seq="4" SuperID="CD83000000"></PowerInfo>
<PowerInfo PowerID="CD84000000" PowerDes="出入库管理" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> <PowerInfo PowerID="CD84000000" PowerDes="出入库管理" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo>
<PowerInfo PowerID="CD84010000" PowerDes="入库" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD84000000"></PowerInfo> <PowerInfo PowerID="CD84010000" PowerDes="入库" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD84000000"></PowerInfo>
<PowerInfo PowerID="CD84020000" PowerDes="计划外出库" PowerType="item" ActionList="" Visible="true" Seq="2" SuperID="CD84000000"></PowerInfo> <PowerInfo PowerID="CD84020000" PowerDes="计划外出库" PowerType="item" ActionList="" Visible="true" Seq="2" SuperID="CD84000000"></PowerInfo>
<PowerInfo PowerID="CD84030000" PowerDes="TJ入库管理" PowerType="item" ActionList="" Visible="true" Seq="3" SuperID="CD84000000"></PowerInfo>
<PowerInfo PowerID="CD84040000" PowerDes="TJ出库管理" PowerType="item" ActionList="" Visible="true" Seq="4" SuperID="CD84000000"></PowerInfo>
<PowerInfo PowerID="CD85000000" PowerDes="发运管理" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> <PowerInfo PowerID="CD85000000" PowerDes="发运管理" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo>
<PowerInfo PowerID="CD85010000" PowerDes="发运界面" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo> <PowerInfo PowerID="CD85010000" PowerDes="发运界面" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo>
@ -60,6 +61,7 @@
<PowerInfo PowerID="CD85010600" PowerDes="重扫当前器具" PowerType="item" ActionList="" Visible="true" Seq="7" SuperID="CD85010000"></PowerInfo> <PowerInfo PowerID="CD85010600" PowerDes="重扫当前器具" PowerType="item" ActionList="" Visible="true" Seq="7" SuperID="CD85010000"></PowerInfo>
<PowerInfo PowerID="CD85010700" PowerDes="强制提交" PowerType="item" ActionList="" Visible="true" Seq="8" SuperID="CD85010000"></PowerInfo> <PowerInfo PowerID="CD85010700" PowerDes="强制提交" PowerType="item" ActionList="" Visible="true" Seq="8" SuperID="CD85010000"></PowerInfo>
<PowerInfo PowerID="CD85010800" PowerDes="报警确认" PowerType="item" ActionList="" Visible="true" Seq="9" SuperID="CD85010000"></PowerInfo> <PowerInfo PowerID="CD85010800" PowerDes="报警确认" PowerType="item" ActionList="" Visible="true" Seq="9" SuperID="CD85010000"></PowerInfo>
<PowerInfo PowerID="CD93010100" PowerDes="TJ门板发运" PowerType="item" ActionList="" Visible="true" Seq="3" SuperID="CD85010000"></PowerInfo>
<PowerInfo PowerID="CD86000000" PowerDes="Andon呼叫" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> <PowerInfo PowerID="CD86000000" PowerDes="Andon呼叫" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo>
<PowerInfo PowerID="CD86010000" PowerDes="报警呼叫" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD86000000"></PowerInfo> <PowerInfo PowerID="CD86010000" PowerDes="报警呼叫" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD86000000"></PowerInfo>

7
APP/QMAPP.Web/QMAPP.Web.csproj

@ -25,6 +25,12 @@
<SccLocalPath>Svn</SccLocalPath> <SccLocalPath>Svn</SccLocalPath>
<SccAuxPath>Svn</SccAuxPath> <SccAuxPath>Svn</SccAuxPath>
<SccProvider>SubversionScc</SccProvider> <SccProvider>SubversionScc</SccProvider>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@ -1685,6 +1691,7 @@
<None Include="App_Data\Excel\FuntionDescriptionExp.xlsx"> <None Include="App_Data\Excel\FuntionDescriptionExp.xlsx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.eot" /> <None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.eot" />
<None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.ttf" /> <None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.ttf" />
<None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.woff" /> <None Include="Scripts\bootstrap-ace\css\font-awesome-4.1.0\fonts\fontawesome-webfont.woff" />

4
APPMD/QMAPP.MD.DAL/MaterialDAL.cs

@ -601,6 +601,10 @@ namespace QMAPP.MD.DAL
whereBuilder.Append(" AND M.COLOR = @COLOR"); whereBuilder.Append(" AND M.COLOR = @COLOR");
parameters.Add(new DataParameter { ParameterName = "COLOR", DataType = DbType.String, Value = condition.COLOR }); parameters.Add(new DataParameter { ParameterName = "COLOR", DataType = DbType.String, Value = condition.COLOR });
} }
if (string.IsNullOrEmpty(condition.REMARK) == false)
{
whereBuilder.Append(" AND M.REMARK is not null ");
}
if (string.IsNullOrEmpty(condition.MATERIAL_ATTRIBUTE) == false) if (string.IsNullOrEmpty(condition.MATERIAL_ATTRIBUTE) == false)
{ {

2
APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs

@ -939,7 +939,7 @@ namespace QMAPP.MD.DAL
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.AppendLine("SELECT * "); sql.AppendLine("SELECT * ");
sql.AppendLine(" FROM T_MD_PROCESS_ROUTE "); sql.AppendLine(" FROM T_MD_PROCESS_ROUTE ");
sql.AppendLine(" WHERE ROUTE_CODE=(SELECT ROUTE_CODE "); sql.AppendLine(" WHERE ROUTE_CODE=(SELECT top 1 ROUTE_CODE ");
sql.AppendLine(" FROM T_MD_PROCESS_ROUTE_WORKCELL "); sql.AppendLine(" FROM T_MD_PROCESS_ROUTE_WORKCELL ");
sql.AppendLine(" WHERE WORKCELL_CODE=(SELECT WORKCELL_CODE "); sql.AppendLine(" WHERE WORKCELL_CODE=(SELECT WORKCELL_CODE ");
sql.AppendLine(" FROM T_MD_WORKLOC "); sql.AppendLine(" FROM T_MD_WORKLOC ");

1
APPMD/QMAPP.MD.Web/QMAPP.MD.Web.csproj

@ -354,6 +354,7 @@
<Content Include="Views\Shared\CustomPageMaster.Master" /> <Content Include="Views\Shared\CustomPageMaster.Master" />
<Content Include="Views\Shared\PrintMaster.Master" /> <Content Include="Views\Shared\PrintMaster.Master" />
<Content Include="Views\Shared\Site.Master" /> <Content Include="Views\Shared\Site.Master" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<None Include="Views\Shared\vssver2.scc" /> <None Include="Views\Shared\vssver2.scc" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>

65
APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs

@ -393,39 +393,43 @@ namespace QMAPP.FJC.BLL.TianJin
{ {
TJOrderPlanDAL TJOrderPlanDAL = new TJOrderPlanDAL(); TJOrderPlanDAL TJOrderPlanDAL = new TJOrderPlanDAL();
List<TJOrderPlan> validorderPlanList = new List<TJOrderPlan>(); List<TJOrderPlan> validorderPlanList = new List<TJOrderPlan>();
var strlist = strs.Split(':');
TJOrderPlan op = TJOrderPlanDAL.Get(new TJOrderPlan { PID = strs }); foreach(var t in strlist)
if (op.PLAN_STATE != EnumGeter.PLANSTATE.INIT.GetHashCode().ToString())
{ {
result.IsSuccess = false; TJOrderPlan op = TJOrderPlanDAL.Get(new TJOrderPlan { PID = t });
result.Msg = "只有初始状态下的订单能够进行发布!";
return result; if (op.PLAN_STATE != EnumGeter.PLANSTATE.INIT.GetHashCode().ToString())
} {
result.IsSuccess = false;
DataTable totalDt = GetWorkOrderTable(); result.Msg = "只有初始状态下的订单能够进行发布!";
op.PLAN_STATE = EnumGeter.PLANSTATE.COMMIT.GetHashCode().ToString();
op.UPDATEUSER = this.LoginUser.UserID;
totalDt = this.PutOutOrderPlan(op, totalDt); return result;
}
using (IDataSession session = AppDataFactory.CreateMainSession()) DataTable totalDt = GetWorkOrderTable();
{ op.PLAN_STATE = EnumGeter.PLANSTATE.COMMIT.GetHashCode().ToString();
IDbConnection dbConn = DbManager.MainConnectionInfo.Connection; op.UPDATEUSER = this.LoginUser.UserID;
if (dbConn.State == ConnectionState.Closed)
totalDt = this.PutOutOrderPlan(op, totalDt);
using (IDataSession session = AppDataFactory.CreateMainSession())
{ {
dbConn.Open(); IDbConnection dbConn = DbManager.MainConnectionInfo.Connection;
if (dbConn.State == ConnectionState.Closed)
{
dbConn.Open();
}
IDbTransaction ids = dbConn.BeginTransaction();
TJOrderPlanDAL.Update(op);
session.DbHelper.BulkCopyData(totalDt, "T_PP_TJFY_WORKORDER", dbConn, ids);
ids.Commit();
} }
IDbTransaction ids = dbConn.BeginTransaction();
TJOrderPlanDAL.Update(op);
session.DbHelper.BulkCopyData(totalDt, "T_PP_TJFY_WORKORDER", dbConn, ids); result.IsSuccess = true;
ids.Commit();
} }
result.IsSuccess = true;
return result; return result;
} }
catch (Exception ex) catch (Exception ex)
@ -659,22 +663,25 @@ namespace QMAPP.FJC.BLL.TianJin
result.Result.Errors = new List<RowError>(); result.Result.Errors = new List<RowError>();
using (IDataSession session = AppDataFactory.CreateMainSession()) using (IDataSession session = AppDataFactory.CreateMainSession())
{ {
//获取流水号 导入数据的顺序号 导入文件自己定义 var SEQSTR = this.GetOrderPlanSeq(list[0]);
//var SEQSTR = this.GetOrderPlanSeq(model);
foreach (TJOrderPlan ma in list) foreach (TJOrderPlan ma in list)
{ {
SEQSTR = (Convert.ToInt32(SEQSTR) + index).ToString().PadLeft(3, '0');
index++; index++;
num++; num++;
ma.PLAN_SEQ = Convert.ToInt32(SEQSTR).ToString();
ma.LINENO = "770";
//计划单号 //计划单号
ma.PLAN_NO = "DP" + ma.PLAN_DATE.ToString("yyyyMMdd") + ma.PLAN_SEQ.PadLeft(3,'0'); ma.PLAN_NO = "DP" + ma.PLAN_DATE.ToString("yyyyMMdd") + SEQSTR.PadLeft(3,'0');
TJDoorPlankPlanDAL cmdDAL = new TJDoorPlankPlanDAL(); TJDoorPlankPlanDAL cmdDAL = new TJDoorPlankPlanDAL();
ma.MATERIAL_NAME = cmdDAL.GetMATERIALNAME(ma.MATERIAL_CODE); ma.MATERIAL_NAME = cmdDAL.GetMATERIALNAME(ma.MATERIAL_CODE);
//修改改时根据主键等信息获取详细内容信息 //修改改时根据主键等信息获取详细内容信息
TJOrderPlan oldInfo = cmDal.Get(ma); TJOrderPlan oldInfo = cmDal.Get(ma);
if (oldInfo != null) if (oldInfo != null)
{ {
//更新 //更新

4
APPQ5/QMAPP.FJC.BLL/TianJin/TJWorkOrderBLL.cs

@ -96,11 +96,11 @@ namespace QMAPP.FJC.BLL.TianJin
} }
} }
public List<WorkOrder> GetOrderUnPrinted(string RouteCode, int filter, DataPage dataPage,string Direction) public List<WorkOrder> GetOrderUnPrinted(string RouteCode, int filter, DataPage dataPage,string Direction,string SHIFTCODE, string BeginTime, string EndTime)
{ {
try try
{ {
return new TWorkOrderDAL().GetOrderUnPrinted(RouteCode, Direction, filter, dataPage.PageSize); return new TWorkOrderDAL().GetOrderUnPrinted(RouteCode, Direction, SHIFTCODE, BeginTime, EndTime, filter, dataPage.PageSize);
} }
catch (Exception ex) catch (Exception ex)
{ {

38
APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs

@ -304,12 +304,42 @@ namespace QMAPP.FJC.DAL.TianJin
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
DataTable returnDt = null; DataTable returnDt = null;
List<DataParameter> parameters = new List<DataParameter>(); List<DataParameter> parameters = new List<DataParameter>();
strSql.AppendLine("SELECT D.ROWINDEX ,F.SEQ as 'VWSEQ' ,F.PRODUCTCODE as 'VIN' ,F.MATERIAL_CODE as 'PRODNO' ,F.MATERIAL_NAME as 'CARSETDESC_CN' ,CASE F.MOULD_CODE WHEN 'LF' THEN '左前' WHEN 'LR' THEN '左后' WHEN 'RF' THEN '右前' WHEN 'RR' THEN '右后' ELSE F.MOULD_CODE END AS 'CP5A', "); //strSql.AppendLine("SELECT D.ROWINDEX ,F.SEQ as 'VWSEQ' ,F.PRODUCTCODE as 'VIN' ,F.MATERIAL_CODE as 'PRODNO' ,F.MATERIAL_NAME as 'CARSETDESC_CN' ,CASE F.MOULD_CODE WHEN 'LF' THEN '左前' WHEN 'LR' THEN '左后' WHEN 'RF' THEN '右前' WHEN 'RR' THEN '右后' ELSE F.MOULD_CODE END AS 'CP5A', ");
strSql.AppendLine("F.[LINENO] ,C.PASTECARDNO FROM T_PP_PASCARDDETAILS AS D LEFT JOIN T_PP_TJFY_WORKORDER AS F ON F.PID = D.FISDETAILID LEFT JOIN T_PP_PASTECARD AS C ON C.PID = D.PASTECARDID "); //strSql.AppendLine("F.[LINENO] ,C.PASTECARDNO FROM T_PP_PASCARDDETAILS AS D LEFT JOIN T_PP_TJFY_WORKORDER AS F ON F.PID = D.FISDETAILID LEFT JOIN T_PP_PASTECARD AS C ON C.PID = D.PASTECARDID ");
//strSql.AppendLine(" WHERE PASTECARDID='" + ppastercarKey.ToString() + "' ");
//strSql.AppendLine(" ORDER BY D.ROWINDEX,F.SEQ,F.MATERIAL_CODE");
strSql.AppendLine("SELECT D.ROWINDEX ,F.SEQ as 'VWSEQ' ,D.SANBARCODE as 'VIN' ,F.MATERIAL_CODE as 'PRODNO' ,(select MATERIAL_TYPE from T_MD_BARCODERULES where REGEX like '%'+ SUBSTRING(D.SANBARCODE,0,9) +'%') as 'CARSETDESC_CN' ,CASE SUBSTRING(D.SANBARCODE,7,2) WHEN 'FL' THEN '左前' WHEN 'RL' THEN '左后' WHEN 'FR' THEN '右前' WHEN 'RR' THEN '右后' ELSE F.MOULD_CODE END AS 'CP5A', ");
strSql.AppendLine("SUBSTRING(D.SANBARCODE,0,4) as 'LINENO' ,C.PASTECARDNO FROM T_PP_PASCARDDETAILS AS D LEFT JOIN T_PP_TJFY_WORKORDER AS F ON F.PID = D.FISDETAILID LEFT JOIN T_PP_PASTECARD AS C ON C.PID = D.PASTECARDID ");
strSql.AppendLine(" WHERE PASTECARDID='" + ppastercarKey.ToString() + "' "); strSql.AppendLine(" WHERE PASTECARDID='" + ppastercarKey.ToString() + "' ");
strSql.AppendLine(" ORDER BY D.ROWINDEX,F.SEQ,F.MATERIAL_CODE"); strSql.AppendLine(" ORDER BY D.ROWINDEX,F.SEQ,F.MATERIAL_CODE");
using (IDataSession session = AppDataFactory.CreateMainSession())
{
returnDt = session.GetTable(strSql.ToString(), parameters.ToArray());
}
return returnDt;
#endregion
}
/// <summary>
/// 根据贴车单ID获取详细
/// </summary>
/// <param name="ppastercarKey"></param>
/// <returns></returns>
public DataTable GetPascardDetailsByPidtoB(string ppastercarKey)
{
#region
StringBuilder strSql = new StringBuilder();
DataTable returnDt = null;
List<DataParameter> parameters = new List<DataParameter>();
strSql.AppendLine("SELECT D.ROWINDEX ,F.SEQ as 'VWSEQ' ,D.SANBARCODE as 'VIN' ,F.MATERIAL_CODE as 'PRODNO' ,(select MATERIAL_TYPE from T_MD_BARCODERULES where REGEX like '%'+ SUBSTRING(D.SANBARCODE,0,9) +'%') as 'CARSETDESC_CN' ,CASE SUBSTRING(D.SANBARCODE,7,2) WHEN 'FL' THEN '左前' WHEN 'RL' THEN '左后' WHEN 'FR' THEN '右前' WHEN 'RR' THEN '右后' ELSE F.MOULD_CODE END AS 'CP5A', ");
strSql.AppendLine("SUBSTRING(D.SANBARCODE,0,4) as 'LINENO' ,C.PASTECARDNO FROM T_PP_PASCARDDETAILS AS D LEFT JOIN T_PP_TJFY_WORKORDER AS F ON F.PID = D.FISDETAILID LEFT JOIN T_PP_PASTECARD AS C ON C.PID = D.PASTECARDID ");
strSql.AppendLine(" WHERE PASTECARDID='" + ppastercarKey.ToString() + "' ");
strSql.AppendLine(" ORDER BY D.ROWINDEX,F.SEQ,F.MATERIAL_CODE");
using (IDataSession session = AppDataFactory.CreateMainSession()) using (IDataSession session = AppDataFactory.CreateMainSession())
{ {
returnDt = session.GetTable(strSql.ToString(), parameters.ToArray()); returnDt = session.GetTable(strSql.ToString(), parameters.ToArray());

14
APPQ5/QMAPP.FJC.DAL/TianJin/TWorkOrderDAL.cs

@ -331,7 +331,7 @@ namespace QMAPP.FJC.DAL.TianJin
/// <param name="count">数量</param> /// <param name="count">数量</param>
/// <param name="filter">过滤选项:0全部;1隐藏挂起;2只看挂起</param> /// <param name="filter">过滤选项:0全部;1隐藏挂起;2只看挂起</param>
/// <returns></returns> /// <returns></returns>
public List<WorkOrder> GetOrderUnPrinted(string routecode, string Direction, int filter = 0, int count = 20) public List<WorkOrder> GetOrderUnPrinted(string routecode, string Direction, string SHIFTCODE, string BeginTime, string EndTime, int filter = 0, int count = 20)
{ {
try try
{ {
@ -375,6 +375,18 @@ namespace QMAPP.FJC.DAL.TianJin
{ {
sql.AppendFormat($" AND M.[MATERIAL_NAME] LIKE '%{Direction}%' "); sql.AppendFormat($" AND M.[MATERIAL_NAME] LIKE '%{Direction}%' ");
} }
if (!string.IsNullOrEmpty(SHIFTCODE))
{
sql.AppendFormat($" AND W.[SHIFT_CODE] = '{SHIFTCODE}' ");
}
if (BeginTime != DateTime.MinValue.ToString())
{
sql.AppendFormat($" AND W.[PLAN_DATE] >= '{Convert.ToDateTime(BeginTime).ToString("yyyy-MM-dd")} 00:00:00' ");
}
if (EndTime != DateTime.MinValue.ToString())
{
sql.AppendFormat($" AND W.[PLAN_DATE] <= '{Convert.ToDateTime(EndTime).ToString("yyyy-MM-dd")} 23:59:59' ");
}
switch (filter) switch (filter)
{ {

32
APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs

@ -836,28 +836,34 @@ namespace QMAPP.FJC.TRACING.DAHandler
} }
result.StateChanged = true; result.StateChanged = true;
foreach (var action in data.WorkLocState.CurrentState.EXIT_ACTION.Split(';'))//执行退出状态动作 if (!string.IsNullOrEmpty(data.WorkLocState.CurrentState.EXIT_ACTION))
{ {
ExecuteAction(action, data); foreach (var action in data.WorkLocState.CurrentState.EXIT_ACTION.Split(';'))//执行退出状态动作
if (!string.IsNullOrWhiteSpace(action))
result.Actions.Add(action);
if (!string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE))
{ {
result.ProcessCode = data.WorkLocState.CurrentState.PROCESS_CODE; ExecuteAction(action, data);
if (!string.IsNullOrWhiteSpace(action))
result.Actions.Add(action);
if (!string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE))
{
result.ProcessCode = data.WorkLocState.CurrentState.PROCESS_CODE;
}
} }
} }
SetToNextState(data); SetToNextState(data);
foreach (var action in data.WorkLocState.CurrentState.ENTRY_ACTION.Split(';'))//执行进入状态动作 if (!string.IsNullOrEmpty(data.WorkLocState.CurrentState.ENTRY_ACTION))
{ {
ExecuteAction(action, data); foreach (var action in data.WorkLocState.CurrentState.ENTRY_ACTION.Split(';'))//执行进入状态动作
if (!string.IsNullOrWhiteSpace(action))
result.Actions.Add(action);
if (!string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE))
{ {
result.ProcessCode = data.WorkLocState.CurrentState.PROCESS_CODE; ExecuteAction(action, data);
if (!string.IsNullOrWhiteSpace(action))
result.Actions.Add(action);
if (!string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE))
{
result.ProcessCode = data.WorkLocState.CurrentState.PROCESS_CODE;
}
} }
} }
CheckState(data, result);//递归调用 CheckState(data, result);//递归调用
} }
} }

161
APPQ5/QMAPP.FJC.TRACING/DataAnalyzers/TJDPFISCodeAnalyzer.cs

@ -0,0 +1,161 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.MD.Entity;
using QMAPP.MD.DAL;
using QMAPP.FJC.DAL.ProductionPlan;
using QMAPP.FJC.Entity.ProductionPlan;
using QMAPP.FJC.Entity;
using System.Text.RegularExpressions;
namespace QMAPP.FJC.TRACING.DataAnalyzers
{
/// <summary>
/// FIS标签数据解析类
/// </summary>
public class TJDPFISCodeAnalyzer : DAInterface.IDataAnalyzer
{
static string regexp_full = "^770(C|M){2}([0-9])+[FL][RL][FR][RR][0-9]+$";
static string regexp_prefix = "^D\\d{2}\\w+(?=[RF][LR]\\d{6})";
static string regexp_position = "[RF][LR](?=\\d{6})";
static string regexp_date = "(?<=[RF][LR])\\d{2}(10|11|12|0[1-9])(30|31|2\\d|1\\d|0[1-9])";
static string regexp_seq = "\\d{5}$";
public void Analyze(DAInterface.DAObject data)
{
//string sn = data.DAValue.ToString();
string orderno = data.DAValue.ToString();
data.WorkOrderID = orderno;
var plan = GetOrder(data, orderno);
data.OrderPlan = plan;
//data.WorkLocState.CurrentState.ORDERPLAN_PID = plan.PID;
DAL.Produce.ProductDAL dal = new DAL.Produce.ProductDAL();
var product = dal.GetNewestProductByOrderNO(orderno);
if (product == null)
{
//throw new Exception("无法查到与此条码相关的产品数据!");
}
//data.ObjectPID = product.PID;
data.AnalyzedValue = plan.ORDERPLAN_NO;
//data.MaterialCode = plan.MATERIAL_CODE;
//var bindingdal = new DAL.QT.MaterialBindingDAL();
//var binding = bindingdal.GetBindingTarget("MOULD", product.MATERIAL_TYPE);
//if (binding == null)
//{
// throw new Exception("此产品无法在当前工位进行加工!");
//}
//data.MouldCode = binding.TARGET_CODE;
}
private static Entity.ProductionPlan.WorkOrder GetOrder(DAInterface.DAObject data, string orderno)
{
var plandal = new DAL.FIS.OrderPlanDAL();
var workorderdal = new DAL.ProductionPlan.WorkOrderDAL();
//Entity.FIS.OrderPlan plan = null;
Entity.ProductionPlan.WorkOrder order = null;
order = workorderdal.GetOneByOrderNO(orderno);
if (order == null)
{
if (!Regex.IsMatch(orderno, regexp_full))
{
//throw new Exception("FIS码格式不正确!");
throw new Exception("未查询到此条码对应的计划工单,此工单可能已完成或删除!");
}
string codeprefix = Regex.Match(orderno, regexp_prefix).Value;
string positioncode = Regex.Match(orderno, regexp_position).Value;
string date = Regex.Match(orderno, regexp_date).Value;
string seq = Regex.Match(orderno, regexp_seq).Value;
string materialcode = new DAL.FIS.FISPhraseDAL().GetMESModulCode(codeprefix, positioncode);
if (string.IsNullOrWhiteSpace(materialcode))
{
throw new Exception("FIS码未能识别,FIS短语字典配置不准确或未更新!");
}
DateTime plandate
= new DateTime(2000 + int.Parse(date.Substring(0, 2))
, int.Parse(date.Substring(2, 2))
, int.Parse(date.Substring(4, 2)));
plandal.BaseSession = data.DataSession;
var plan = new Entity.FIS.OrderPlan
{
CREATEDATE = DateTime.Now,
COMPLETE_QTY = 0,
CREATEUSER = "",
MATERIAL_CODE = materialcode,//////////////////
PID = Guid.NewGuid().ToString(),
PLAN_DATE = plandate,////////////
PLAN_NO = orderno,
PLAN_SEQ = seq,//////////////////
PLAN_STATE = "1",
PLANSOURCE = "0",
QTY = 1,
UPDATEUSER = "",
UPDATEDATE = DateTime.Now,
};
Pbom pbomcode = new PbomDAL().Get(new Pbom { MATERIAL_CODE = plan.MATERIAL_CODE });
if (pbomcode != null)
{
plan.PBOM_CODE = pbomcode.PBOM_CODE;
}
QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(plan.MATERIAL_CODE);
if (routecode != null)
{
plan.ROUTE_CODE = routecode.ROUTE_CODE;
}
string workcentercode = new WorkCellDAL().GetWorkcenterWithMaterial(plan.MATERIAL_CODE);
if (workcentercode != null)
{
plan.WORKCENTER_CODE = workcentercode;
}
//赋值新session后插入 zxd20171101
plandal.Insert(plan);
var wodDal = new WorkOrderDAL();
List<QMAPP.MD.Entity.ProcessRouteWorkCellSeq> list = new WorkCellDAL().GetFirstWorkCell(plan.PBOM_CODE);
wodDal.BaseSession = data.DataSession;
//DataRow workOrder = workOrderDt.NewRow();
order = new WorkOrder();
order.PID = Guid.NewGuid().ToString();
order.ORDERPLANID = plan.PID;
order.ORDERPLAN_NO = plan.PLAN_NO;
order.ORDER_TYPE = EnumGeter.WORKORDERTYPE.FIS.GetHashCode().ToString();
order.SEQ = plan.PLAN_SEQ;
order.MATERIAL_CODE = plan.MATERIAL_CODE;
order.PBOM_CODE = plan.PBOM_CODE;
order.QTY = 1;
order.COMPLETE_QTY = 0;
order.PLAN_DATE = plan.PLAN_DATE;
order.SHIFT_CODE = plan.SHIFT_CODE;
order.WORKCENTER_CODE = plan.WORKCENTER_CODE;
//WorkCell workcellcode = new WorkCellDAL().Get(new WorkCell { WORKCENTER_CODE = info.WORKCENTER_CODE });
order.WORKCELL_CODE = (list.Count > 0) ? list[0].WORKCELL_CODE : "";
order.WORKLOC_CODE = "";
order.REMARK = "";
order.EQPT_NAME = "";
order.EQPT_CODE = "";
order.STATE = EnumGeter.WORKPLANSTATE.READY.GetHashCode();
order.PRI = 1;
//order.UPDATEDATE = DateTime.Now;
order.PRINTED = "1";
wodDal.Insert(order);
}
return order;
}
}
}

1
APPQ5/QMAPP.FJC.TRACING/QMAPP.FJC.TRACING.csproj

@ -66,6 +66,7 @@
<Compile Include="DAInterface\DAArgs.cs" /> <Compile Include="DAInterface\DAArgs.cs" />
<Compile Include="DataAnalyzers\DefaultAnalyzer.cs" /> <Compile Include="DataAnalyzers\DefaultAnalyzer.cs" />
<Compile Include="DataAnalyzers\DPWHCodeAnalyzer.cs" /> <Compile Include="DataAnalyzers\DPWHCodeAnalyzer.cs" />
<Compile Include="DataAnalyzers\TJDPFISCodeAnalyzer.cs" />
<Compile Include="DataAnalyzers\MaterialCodeAnalyzer.cs" /> <Compile Include="DataAnalyzers\MaterialCodeAnalyzer.cs" />
<Compile Include="DataAnalyzers\PartAnalyzer.cs" /> <Compile Include="DataAnalyzers\PartAnalyzer.cs" />
<Compile Include="DataAnalyzers\PartAnalyzerNew.cs" /> <Compile Include="DataAnalyzers\PartAnalyzerNew.cs" />

BIN
APPQ5/QMAPP.FJC.Web/App_Data/Excel/TJDoorPlankPlanImp.xlsx

Binary file not shown.

8
APPQ5/QMAPP.FJC.Web/App_Data/Excel/TJDoorPlankPlanImp.xml

@ -9,7 +9,7 @@
</Observers> </Observers>
</DataInfoItem> </DataInfoItem>
<DataInfoItem ColumnName="PLAN_SEQ" ColumnTitle="计划顺序号" XPosition="B" YPosition="3" > <!--<DataInfoItem ColumnName="PLAN_SEQ" ColumnTitle="计划顺序号" XPosition="B" YPosition="3" >
<Observers> <Observers>
<Observer name="Required" ></Observer> <Observer name="Required" ></Observer>
</Observers> </Observers>
@ -19,15 +19,15 @@
<Observers> <Observers>
<Observer name="Required" ></Observer> <Observer name="Required" ></Observer>
</Observers> </Observers>
</DataInfoItem> </DataInfoItem>-->
<DataInfoItem ColumnName="MATERIAL_CODE" ColumnTitle="物料号" XPosition="D" YPosition="3" > <DataInfoItem ColumnName="MATERIAL_CODE" ColumnTitle="物料号" XPosition="B" YPosition="3" >
<Observers> <Observers>
<Observer name="Required" ></Observer> <Observer name="Required" ></Observer>
</Observers> </Observers>
</DataInfoItem> </DataInfoItem>
<DataInfoItem ColumnName="QTY" ColumnTitle="计划数量" XPosition="E" YPosition="3" > <DataInfoItem ColumnName="QTY" ColumnTitle="计划数量" XPosition="C" YPosition="3" >
<Observers> <Observers>
<Observer name="Required" ></Observer> <Observer name="Required" ></Observer>
</Observers> </Observers>

2
APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs

@ -44,7 +44,7 @@ namespace QMAPP.FJC.Web.Models.TianJin
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.text)] [InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)] [DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string LINENO { get; set; } public string LINENO { get; set; } = "770";
///<summary> ///<summary>
///计划状态 ///计划状态

BIN
APPQ5/QMAPP.FJC.Web/Temp/060540e8-be79-4fbf-b956-679bf3775c9e.xlsx

Binary file not shown.

BIN
APPQ5/QMAPP.FJC.Web/Temp/2a4faca6-f361-4483-b9e7-d914d0dccfbd.xlsx

Binary file not shown.

BIN
APPQ5/QMAPP.FJC.Web/Temp/3571a329-f8f8-403e-b595-550e4c3e264b.xlsx

Binary file not shown.

BIN
APPQ5/QMAPP.FJC.Web/Temp/91e5dcd7-7700-4563-ba58-abe36aa77f93.xlsx

Binary file not shown.

BIN
APPQ5/QMAPP.FJC.Web/Temp/9e3cbd8b-d09d-4a43-8400-6486ec428ef6.xlsx

Binary file not shown.

BIN
APPQ5/QMAPP.FJC.Web/Temp/b35b99c1-bd8e-4f80-9e4f-41a1488047c8.xlsx

Binary file not shown.

8
APPQ5/QMAPP.WinForm/App.config

@ -184,13 +184,13 @@
</bindings> </bindings>
<client> <client>
<endpoint address="http://123.56.115.74:8989/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> <!--<endpoint address="http://123.56.115.74:8989/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
<endpoint address="http://123.56.115.74:8989/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" /> <endpoint address="http://123.56.115.74:8989/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
<endpoint address="net.tcp://10.111.144.99:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" /> <endpoint address="net.tcp://10.111.144.99:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />-->
<!--<endpoint address="net.tcp://localhost:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" /> <endpoint address="net.tcp://localhost:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />
<endpoint address="http://localhost:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> <endpoint address="http://localhost:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
<endpoint address="http://localhost:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />--> <endpoint address="http://localhost:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
</client> </client>
</system.serviceModel> </system.serviceModel>

5
APPQ5/QMAPP.WinForm/Common/PrintUtil.cs

@ -97,7 +97,10 @@ namespace QM.Assist
} }
else else
{ {
thisproc[0].Kill(); foreach (var t in thisproc)
{
t.Kill();
}
} }
System.Threading.Thread.Sleep(1000); System.Threading.Thread.Sleep(1000);
} }

205
APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.cs

@ -0,0 +1,205 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using QMAPP.FJC.Entity.Operation;
using QMAPP.ServicesAgent;
using QMAPP.FJC.Entity.BZD;
using QMAPP.Entity;
using QMAPP.MD.Entity;
using System.Text;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class PlanRePrintForm : Form
{
//获取服务代理
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent();
List<Material> _Material = null;
Product _CurrentProduct = null;
private TJPrintPlanLabel _parentForm;
public PlanRePrintForm(TJPrintPlanLabel parentForm)
{
InitializeComponent();
infolabel.Text = "";
infolabel.ForeColor = Color.Red;
_parentForm = parentForm;
}
#region 打印按钮
/// <summary>
/// 打印按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
try
{
if (string.IsNullOrWhiteSpace(cbMaterial.Text))
{
infolabel.Text = "请选择物料号!";
cbMaterial.Focus();
return;
}
var data = DateTime.Now.ToString("yyyyMMddHHmmssfff");
data = data.Substring(2, data.Length - 2);
var MATERIAL_CODE = cbMaterial.Text.Split('|')[0];
var MATERIAL_NAME = cbMaterial.Text.Split('|')[1];
List<LabelData> labels = new List<LabelData>();
LabelData labeldata = new LabelData();
labeldata.MATERIALCODE = MATERIAL_CODE;
string positioncode = GetNameCode(MATERIAL_NAME);
var book = _agent.InvokeServiceFunction<FJC.Entity.FIS.FISPhraseBook>("FISPhraseBLL_GetFisPhraseBook", MATERIAL_CODE , positioncode);
if (book != null)
{
labeldata.Class = " " + book.Class.Substring(0, 2);
labeldata.Description = book.Text;
labeldata.OrderNo = book.CarModel + positioncode + data;
}
var mcresult = _agent.InvokeServiceFunction<DataResult<Material>>("MaterialBLL_Get", new Material { MATERIAL_CODE = MATERIAL_CODE });
var material = mcresult.IsSuccess ? mcresult.Result : null;
if (material != null)
{
labeldata.MaterialName = material.MATERIAL_SHORT;
labeldata.CarModel = material.PROJECTCODE;
}
labels.Add(labeldata);
// _parentForm.planMATERIAL_CODE = MATERIAL_CODE;
PrintLabel(labels);
}
catch (Exception exception)
{
MessageBox.Show("打印失败!");
throw;
}
}
#endregion
private void PrintLabel(List<LabelData> labeldata)
{
#region 计划标签打印
//string xmlPath = System.Configuration.ConfigurationSettings.AppSettings["XmlName"].ToString(); ;
//BarcodeLib.BarCodeGenerate g = new BarcodeLib.BarCodeGenerate( xmlPath);
//bool b = g.PrintBarCode(_operationServiceParam.main.MAINCODE);
QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo();
StringBuilder dataline = new StringBuilder();
foreach (var label in labeldata)
{
string[] texts = new string[6];
var sourcetext = label.Description.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < texts.Length && i < sourcetext.Length; i++)
{
texts[i] = sourcetext[i];
}
//OrderNo,OrderType,PlanDate,Name,Class,CarModel,Text1,Text2,Text3,Text4,Text5,Text6
dataline.AppendFormat("\"{0}\",\"{1}\",\"{2:yyyy-MM-dd HH:mm:ss}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\",\"{8}\",\"{9}\",\"{10}\",\"{11}\",\"{12}\"\r\n",
label.OrderNo,//计划号
label.OrderType,//计划类型(0:FIS,1:STOCK,2:INSERT)
label.PlanDate,//计划日期
label.MaterialName,//总成物料名称
label.Class,//
label.CarModel,//车型
texts[0],//装配详细信息
texts[1],//装配详细信息
texts[2],//装配详细信息
texts[3],//装配详细信息
texts[4],//装配详细信息
texts[5],//装配详细信息
label.MATERIALCODE//
);
}
ll.BarCode = dataline.ToString().TrimEnd('\r', '\n');
ll.PrinterName = "";
QM.Assist.PrintUtil.LabelList2.Add(ll);
QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil();
pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString
(), System.Configuration.ConfigurationManager.AppSettings["PlanLabelTMPPath"].ToString
(), System.Configuration.ConfigurationManager.AppSettings["PlanLabelDATPath"].ToString
());
#endregion
}
public string GetNameCode(string Name)
{
var Code = "";
if (!string.IsNullOrEmpty(Name))
{
if (Name.Contains("左前"))
Code = "FL";
else if (Name.Contains("左后"))
Code = "RL";
else if (Name.Contains("右前"))
Code = "FR";
else if (Name.Contains("右后"))
Code = "RR";
return Code;
}
else
return null;
}
#region 初始界面
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void PrintForm_Load(object sender, EventArgs e)
{
_Material = _agent.InvokeServiceFunction<List<Material>>("MaterialBLL_GetMaterialList", new Material { REMARK = "REMARK" });
foreach (var t in _Material)
{
t.MATERIAL_NAME = t.MATERIAL_CODE + "|" + t.MATERIAL_NAME;
}
LoadAssyMaterial();
}
#endregion
#region 加载总成物料
/// <summary>
/// 加载总成物料
/// </summary>
private void LoadAssyMaterial()
{
//模腔号
this.cbMaterial.DataSource = _Material;
this.cbMaterial.DisplayMember = "MATERIAL_NAME";
this.cbMaterial.ValueMember = "MATERIAL_CODE";
}
#endregion
private void label2_Click(object sender, EventArgs e)
{
}
}
}

118
APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.designer.cs

@ -0,0 +1,118 @@
using System.Drawing;
namespace QMAPP.WinForm.Forms.TianJin
{
partial class PlanRePrintForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.infolabel = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.cbMaterial = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(258, 58);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(169, 37);
this.label1.TabIndex = 0;
this.label1.Text = "条码补打";
//
// button1
//
this.button1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(233, 257);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(221, 35);
this.button1.TabIndex = 5;
this.button1.Text = "打印";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// infolabel
//
this.infolabel.AutoSize = true;
this.infolabel.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.infolabel.ForeColor = System.Drawing.Color.Red;
this.infolabel.Location = new System.Drawing.Point(63, 328);
this.infolabel.Name = "infolabel";
this.infolabel.Size = new System.Drawing.Size(0, 31);
this.infolabel.TabIndex = 6;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(27, 164);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(130, 24);
this.label5.TabIndex = 2;
this.label5.Text = "门板物料号";
//
// cbMaterial
//
this.cbMaterial.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbMaterial.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbMaterial.FormattingEnabled = true;
this.cbMaterial.Location = new System.Drawing.Point(173, 152);
this.cbMaterial.Name = "cbMaterial";
this.cbMaterial.Size = new System.Drawing.Size(470, 36);
this.cbMaterial.TabIndex = 7;
//
// PlanRePrintForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(665, 399);
this.Controls.Add(this.cbMaterial);
this.Controls.Add(this.infolabel);
this.Controls.Add(this.button1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label1);
this.Name = "PlanRePrintForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "条码补打";
this.Load += new System.EventHandler(this.PrintForm_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label infolabel;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox cbMaterial;
}
}

120
APPQ5/QMAPP.WinForm/Forms/TianJin/PlanRePrintForm.resx

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

101
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs

@ -188,10 +188,54 @@ namespace QMAPP.WinForm.Forms.TianJin
{ {
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetList.ToString(), pFisType, WORKCENTER_CODE); DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetList.ToString(), pFisType, WORKCENTER_CODE);
tbl.AcceptChanges(); tbl.AcceptChanges();
var tblf = tbl.Select("MOULD_CODE = '左前'");
var tblr = tbl.Select("MOULD_CODE = '左后'");
var tbrf = tbl.Select("MOULD_CODE = '右前'");
var tbrr = tbl.Select("MOULD_CODE = '右后'");
//if (tb.Rows.Count > 0)
//{
// tbz = tb.Select(t=>t.);
//}
DataTable tbz = new DataTable();
if (tbl.Rows.Count <= 0) if (tbl.Rows.Count <= 0)
{ {
//#region 重新排序
//int defaultNum = Convert.ToInt32(QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount", "4"]);
//if (pFisType == "01")
//{
// for (int i = 1; i < 100; i++)
// {
// var num = Convert.ToInt32(i * defaultNum);
// if (num > tblf.Count())
// {
// for (int a = 0; a <= defaultNum; a++)
// {
// tbz.Rows.Add(tblf[i-1+a]);
// }
// for (int a = 0; a <= defaultNum; a++)
// {
// tbz.Rows.Add(tblr[i - 1 + a]);
// }
// }
// else
// {
// var tblfcount =tblf.Count() - (i - 1) * defaultNum;
// for
// }
// }
//}
//else
//{
//}
//#endregion
DataTable dt = (DataTable)dgvMATChange.DataSource; DataTable dt = (DataTable)dgvMATChange.DataSource;
if (dt != null) if (dt != null)
{ {
@ -1173,16 +1217,7 @@ namespace QMAPP.WinForm.Forms.TianJin
} }
inputstring = txtCode.Text.ToUpper(); inputstring = txtCode.Text.ToUpper();
this.lberror.Text = null; this.lberror.Text = null;
#region fis区是否有记录
if (dgvMATChange.Rows.Count == 0)
{
Alert("当前没有发运计划,请先下计划后再扫描!");
ArragetxtCode();
return;
}
#endregion
#region 一号位校验是否扫描校验 #region 一号位校验是否扫描校验
//2016-01-07 增加1号位校验 //2016-01-07 增加1号位校验
@ -1232,7 +1267,7 @@ namespace QMAPP.WinForm.Forms.TianJin
return; return;
} }
inputstring += DateTime.Now.ToString("yyyyMMddHHmmssfff"); //inputstring += DateTime.Now.ToString("yyyyMMddHHmmssfff");
if (PlaceFirstPositionType == "True") if (PlaceFirstPositionType == "True")
{ {
@ -1269,7 +1304,7 @@ namespace QMAPP.WinForm.Forms.TianJin
strcarsetdesc_cn = rule.MATERIAL_TYPE; strcarsetdesc_cn = rule.MATERIAL_TYPE;
} }
} }
strvin = inputstring;
CreateNFPaste(inputstring); //创建NF的贴车单以及明细 CreateNFPaste(inputstring); //创建NF的贴车单以及明细
//CreateNFPaste__(); //CreateNFPaste__();
@ -1288,6 +1323,15 @@ namespace QMAPP.WinForm.Forms.TianJin
#endregion #endregion
#region fis区是否有记录
if (dgvMATChange.Rows.Count == 0)
{
Alert("当前没有发运计划,请先下计划后再扫描!");
ArragetxtCode();
return;
}
#endregion
#region FIS区域数据全部扫描完成,请获取数据后再扫描 #region FIS区域数据全部扫描完成,请获取数据后再扫描
if (dgvNF.Rows.Count >= dgvMATChange.Rows.Count) if (dgvNF.Rows.Count >= dgvMATChange.Rows.Count)
{ {
@ -1763,7 +1807,7 @@ namespace QMAPP.WinForm.Forms.TianJin
//pastdetail.KIN = strkin; //pastdetail.KIN = strkin;
pastdetail.DGVROWINDEX = dgvrowindex; pastdetail.DGVROWINDEX = dgvrowindex;
pastdetail.LINENO = strlineno; pastdetail.LINENO = strcarsetdesc_cn.Substring(0,3);
pastdetail.MOULDCODE = strmouldcode; pastdetail.MOULDCODE = strmouldcode;
nfpastecard.DetailsCardlist.Add(pastdetail); nfpastecard.DetailsCardlist.Add(pastdetail);
nflist.Add(pastdetail); nflist.Add(pastdetail);
@ -2016,7 +2060,7 @@ namespace QMAPP.WinForm.Forms.TianJin
ncsdr["PRODNO"] = tbl.Rows[i]["PRODNO"].ToString(); ncsdr["PRODNO"] = tbl.Rows[i]["PRODNO"].ToString();
ncsdr["CP5A"] = tbl.Rows[i]["CP5A"].ToString(); //门板位置 ncsdr["CP5A"] = tbl.Rows[i]["CP5A"].ToString(); //门板位置
ncsdr["CARSETDESCCN"] = tbl.Rows[i]["CARSETDESC_CN"].ToString(); ncsdr["CARSETDESCCN"] = tbl.Rows[i]["CARSETDESC_CN"].ToString();
ncsdr["PASTECARDNO"] = tbl.Rows[i]["PASTECARDNO"].ToString();; ncsdr["PASTECARDNO"] = tbl.Rows[i]["PASTECARDNO"].ToString();
ncsdr["SCANDATE"] = DateTime.Now.ToString(); ncsdr["SCANDATE"] = DateTime.Now.ToString();
ncsdr["PRODUCTIONNAME"] = strprodtype; ncsdr["PRODUCTIONNAME"] = strprodtype;
ncsdr["LINENO"] = tbl.Rows[i]["LINENO"].ToString(); ncsdr["LINENO"] = tbl.Rows[i]["LINENO"].ToString();
@ -2115,18 +2159,33 @@ namespace QMAPP.WinForm.Forms.TianJin
for (int i = 0; i < tpContainer.ColumnCount; i++) for (int i = 0; i < tpContainer.ColumnCount; i++)
{ {
tpContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50)); tpContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));
for (int j = 0; j < tpContainer.RowCount; j++) for (int j = 0; j < tpContainer.RowCount; j++)
{ {
Label lblItem = new Label(); Label lblItem = new Label();
lblItem.Text = (i*rowcount+j+ 1).ToString(); lblItem.Text = (i + j * tpContainer.ColumnCount + 1).ToString();
lblItem.Font = new Font("微软雅黑", 24, FontStyle.Bold); lblItem.Font = new Font("微软雅黑", 24, FontStyle.Bold);
lblItem.Dock = DockStyle.Fill; lblItem.Dock = DockStyle.Fill;
lblItem.TextAlign = ContentAlignment.MiddleCenter; lblItem.TextAlign = ContentAlignment.MiddleCenter;
tpContainer.Controls.Add(lblItem, i, j); tpContainer.Controls.Add(lblItem, i, j);
} }
} }
//for (int i = 0; i < tpContainer.ColumnCount; i++)
//{
// tpContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));
// for (int j = 0; j < tpContainer.RowCount; j++)
// {
// Label lblItem = new Label();
// lblItem.Text = (i*rowcount+j+ 1).ToString();
// lblItem.Font = new Font("微软雅黑", 24, FontStyle.Bold);
// lblItem.Dock = DockStyle.Fill;
// lblItem.TextAlign = ContentAlignment.MiddleCenter;
// tpContainer.Controls.Add(lblItem, i, j);
// }
//}
for (int i = 0; i < nfindex; i++) for (int i = 0; i < nfindex; i++)
{ {
SetContainerItem(i, true); SetContainerItem(i, true);
@ -2151,9 +2210,9 @@ namespace QMAPP.WinForm.Forms.TianJin
else else
{ {
itemindex = itemindex - 1; itemindex = itemindex - 1;
var columnindex = itemindex / (tpContainer.RowCount); var columnindex = itemindex / (tpContainer.ColumnCount);
var rowindex = itemindex % (tpContainer.RowCount); var rowindex = itemindex % (tpContainer.ColumnCount);
var label = tpContainer.GetControlFromPosition(columnindex, rowindex) as Label; var label = tpContainer.GetControlFromPosition(rowindex, columnindex) as Label;
if (label != null) if (label != null)
{ {
label.BackColor = result ? Color.Lime : Color.Red; label.BackColor = result ? Color.Lime : Color.Red;

249
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs

@ -29,16 +29,16 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TJPrintPlanLabel)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TJPrintPlanLabel));
this.dgvPlan = new System.Windows.Forms.DataGridView(); this.dgvPlan = new System.Windows.Forms.DataGridView();
this.dgcOrderNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dgcOrderNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -55,6 +55,7 @@
this.tpContent = new System.Windows.Forms.TabControl(); this.tpContent = new System.Windows.Forms.TabControl();
this.tpPlanList = new System.Windows.Forms.TabPage(); this.tpPlanList = new System.Windows.Forms.TabPage();
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.tsbPrint = new System.Windows.Forms.ToolStripButton(); this.tsbPrint = new System.Windows.Forms.ToolStripButton();
this.tsbOrderOperation = new System.Windows.Forms.ToolStripDropDownButton(); this.tsbOrderOperation = new System.Windows.Forms.ToolStripDropDownButton();
this.tsmiSuspendOrder = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiSuspendOrder = new System.Windows.Forms.ToolStripMenuItem();
@ -72,7 +73,13 @@
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.dtpCREATEDATEEND = new DateTimePickerA();
this.dtpCREATEDATESTART = new DateTimePickerA();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).BeginInit();
this.tpContent.SuspendLayout(); this.tpContent.SuspendLayout();
this.tpPlanList.SuspendLayout(); this.tpPlanList.SuspendLayout();
@ -88,14 +95,14 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.dgvPlan.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvPlan.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dgvPlan.BackgroundColor = System.Drawing.SystemColors.ButtonFace; this.dgvPlan.BackgroundColor = System.Drawing.SystemColors.ButtonFace;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle31.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dgvPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
this.dgvPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgvPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dgcOrderNo, this.dgcOrderNo,
@ -109,22 +116,22 @@
this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn9,
this.dataGridViewTextBoxColumn10, this.dataGridViewTextBoxColumn10,
this.dataGridViewTextBoxColumn11}); this.dataGridViewTextBoxColumn11});
this.dgvPlan.Location = new System.Drawing.Point(6, 6); this.dgvPlan.Location = new System.Drawing.Point(6, 11);
this.dgvPlan.Name = "dgvPlan"; this.dgvPlan.Name = "dgvPlan";
this.dgvPlan.ReadOnly = true; this.dgvPlan.ReadOnly = true;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle39.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; this.dgvPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle39;
dataGridViewCellStyle10.Padding = new System.Windows.Forms.Padding(0, 0, 8, 0); dataGridViewCellStyle40.Padding = new System.Windows.Forms.Padding(0, 0, 8, 0);
this.dgvPlan.RowsDefaultCellStyle = dataGridViewCellStyle10; this.dgvPlan.RowsDefaultCellStyle = dataGridViewCellStyle40;
this.dgvPlan.RowTemplate.Height = 23; this.dgvPlan.RowTemplate.Height = 23;
this.dgvPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvPlan.Size = new System.Drawing.Size(1350, 183); this.dgvPlan.Size = new System.Drawing.Size(1777, 341);
this.dgvPlan.TabIndex = 7; this.dgvPlan.TabIndex = 7;
this.dgvPlan.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvPlan_RowPrePaint); this.dgvPlan.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvPlan_RowPrePaint);
this.dgvPlan.SelectionChanged += new System.EventHandler(this.dgvPlan_SelectionChanged); this.dgvPlan.SelectionChanged += new System.EventHandler(this.dgvPlan_SelectionChanged);
@ -132,8 +139,8 @@
// dgcOrderNo // dgcOrderNo
// //
this.dgcOrderNo.DataPropertyName = "ORDERPLAN_NO"; this.dgcOrderNo.DataPropertyName = "ORDERPLAN_NO";
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle32.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dgcOrderNo.DefaultCellStyle = dataGridViewCellStyle2; this.dgcOrderNo.DefaultCellStyle = dataGridViewCellStyle32;
this.dgcOrderNo.HeaderText = "订单号"; this.dgcOrderNo.HeaderText = "订单号";
this.dgcOrderNo.Name = "dgcOrderNo"; this.dgcOrderNo.Name = "dgcOrderNo";
this.dgcOrderNo.ReadOnly = true; this.dgcOrderNo.ReadOnly = true;
@ -142,8 +149,8 @@
// dgcSeq // dgcSeq
// //
this.dgcSeq.DataPropertyName = "SEQ"; this.dgcSeq.DataPropertyName = "SEQ";
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15.75F); dataGridViewCellStyle33.Font = new System.Drawing.Font("宋体", 15.75F);
this.dgcSeq.DefaultCellStyle = dataGridViewCellStyle3; this.dgcSeq.DefaultCellStyle = dataGridViewCellStyle33;
this.dgcSeq.HeaderText = "顺序号"; this.dgcSeq.HeaderText = "顺序号";
this.dgcSeq.Name = "dgcSeq"; this.dgcSeq.Name = "dgcSeq";
this.dgcSeq.ReadOnly = true; this.dgcSeq.ReadOnly = true;
@ -152,8 +159,8 @@
// dgcMaterialCode // dgcMaterialCode
// //
this.dgcMaterialCode.DataPropertyName = "MATERIAL_CODE"; this.dgcMaterialCode.DataPropertyName = "MATERIAL_CODE";
dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15.75F); dataGridViewCellStyle34.Font = new System.Drawing.Font("宋体", 15.75F);
this.dgcMaterialCode.DefaultCellStyle = dataGridViewCellStyle4; this.dgcMaterialCode.DefaultCellStyle = dataGridViewCellStyle34;
this.dgcMaterialCode.HeaderText = "零件号"; this.dgcMaterialCode.HeaderText = "零件号";
this.dgcMaterialCode.Name = "dgcMaterialCode"; this.dgcMaterialCode.Name = "dgcMaterialCode";
this.dgcMaterialCode.ReadOnly = true; this.dgcMaterialCode.ReadOnly = true;
@ -162,8 +169,8 @@
// dgcMaterialName // dgcMaterialName
// //
this.dgcMaterialName.DataPropertyName = "MATERIAL_NAME"; this.dgcMaterialName.DataPropertyName = "MATERIAL_NAME";
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 15.75F); dataGridViewCellStyle35.Font = new System.Drawing.Font("宋体", 15.75F);
this.dgcMaterialName.DefaultCellStyle = dataGridViewCellStyle5; this.dgcMaterialName.DefaultCellStyle = dataGridViewCellStyle35;
this.dgcMaterialName.HeaderText = "零件描述"; this.dgcMaterialName.HeaderText = "零件描述";
this.dgcMaterialName.Name = "dgcMaterialName"; this.dgcMaterialName.Name = "dgcMaterialName";
this.dgcMaterialName.ReadOnly = true; this.dgcMaterialName.ReadOnly = true;
@ -171,8 +178,8 @@
// //
// dgcState // dgcState
// //
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle36.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dgcState.DefaultCellStyle = dataGridViewCellStyle6; this.dgcState.DefaultCellStyle = dataGridViewCellStyle36;
this.dgcState.HeaderText = "工单状态"; this.dgcState.HeaderText = "工单状态";
this.dgcState.MinimumWidth = 80; this.dgcState.MinimumWidth = 80;
this.dgcState.Name = "dgcState"; this.dgcState.Name = "dgcState";
@ -182,8 +189,8 @@
// dgcPlanDate // dgcPlanDate
// //
this.dgcPlanDate.DataPropertyName = "PLAN_DATE"; this.dgcPlanDate.DataPropertyName = "PLAN_DATE";
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 15.75F); dataGridViewCellStyle37.Font = new System.Drawing.Font("宋体", 15.75F);
this.dgcPlanDate.DefaultCellStyle = dataGridViewCellStyle7; this.dgcPlanDate.DefaultCellStyle = dataGridViewCellStyle37;
this.dgcPlanDate.HeaderText = "计划日期"; this.dgcPlanDate.HeaderText = "计划日期";
this.dgcPlanDate.Name = "dgcPlanDate"; this.dgcPlanDate.Name = "dgcPlanDate";
this.dgcPlanDate.ReadOnly = true; this.dgcPlanDate.ReadOnly = true;
@ -192,8 +199,8 @@
// dgcShift // dgcShift
// //
this.dgcShift.DataPropertyName = "SHIFT_CODE"; this.dgcShift.DataPropertyName = "SHIFT_CODE";
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15.75F); dataGridViewCellStyle38.Font = new System.Drawing.Font("宋体", 15.75F);
this.dgcShift.DefaultCellStyle = dataGridViewCellStyle8; this.dgcShift.DefaultCellStyle = dataGridViewCellStyle38;
this.dgcShift.HeaderText = "计划类型"; this.dgcShift.HeaderText = "计划类型";
this.dgcShift.Name = "dgcShift"; this.dgcShift.Name = "dgcShift";
this.dgcShift.ReadOnly = true; this.dgcShift.ReadOnly = true;
@ -246,7 +253,7 @@
this.tpContent.Location = new System.Drawing.Point(5, 55); this.tpContent.Location = new System.Drawing.Point(5, 55);
this.tpContent.Name = "tpContent"; this.tpContent.Name = "tpContent";
this.tpContent.SelectedIndex = 0; this.tpContent.SelectedIndex = 0;
this.tpContent.Size = new System.Drawing.Size(1370, 323); this.tpContent.Size = new System.Drawing.Size(1797, 481);
this.tpContent.TabIndex = 0; this.tpContent.TabIndex = 0;
// //
// tpPlanList // tpPlanList
@ -257,7 +264,7 @@
this.tpPlanList.Location = new System.Drawing.Point(4, 49); this.tpPlanList.Location = new System.Drawing.Point(4, 49);
this.tpPlanList.Name = "tpPlanList"; this.tpPlanList.Name = "tpPlanList";
this.tpPlanList.Padding = new System.Windows.Forms.Padding(3); this.tpPlanList.Padding = new System.Windows.Forms.Padding(3);
this.tpPlanList.Size = new System.Drawing.Size(1362, 270); this.tpPlanList.Size = new System.Drawing.Size(1789, 428);
this.tpPlanList.TabIndex = 0; this.tpPlanList.TabIndex = 0;
this.tpPlanList.Text = "计划列表"; this.tpPlanList.Text = "计划列表";
this.tpPlanList.UseVisualStyleBackColor = true; this.tpPlanList.UseVisualStyleBackColor = true;
@ -268,17 +275,30 @@
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom; this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton2,
this.toolStripButton1, this.toolStripButton1,
this.tsbPrint, this.tsbPrint,
this.tsbOrderOperation, this.tsbOrderOperation,
this.tslblOrderCount}); this.tslblOrderCount});
this.toolStrip1.Location = new System.Drawing.Point(3, 197); this.toolStrip1.Location = new System.Drawing.Point(3, 355);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1356, 70); this.toolStrip1.Size = new System.Drawing.Size(1783, 70);
this.toolStrip1.Stretch = true; this.toolStrip1.Stretch = true;
this.toolStrip1.TabIndex = 0; this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
// toolStripButton1
//
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(146, 67);
this.toolStripButton1.Text = "批量打印(&P)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// tsbPrint // tsbPrint
// //
this.tsbPrint.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.tsbPrint.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
@ -311,7 +331,7 @@
this.tsmiSuspendOrder.Image = global::QMAPP.WinForm.Resource1.stop; this.tsmiSuspendOrder.Image = global::QMAPP.WinForm.Resource1.stop;
this.tsmiSuspendOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiSuspendOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7);
this.tsmiSuspendOrder.Name = "tsmiSuspendOrder"; this.tsmiSuspendOrder.Name = "tsmiSuspendOrder";
this.tsmiSuspendOrder.Size = new System.Drawing.Size(184, 26); this.tsmiSuspendOrder.Size = new System.Drawing.Size(144, 26);
this.tsmiSuspendOrder.Text = "挂起工单"; this.tsmiSuspendOrder.Text = "挂起工单";
this.tsmiSuspendOrder.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsmiSuspendOrder.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.tsmiSuspendOrder.Click += new System.EventHandler(this.tsmiSuspendOrder_Click); this.tsmiSuspendOrder.Click += new System.EventHandler(this.tsmiSuspendOrder_Click);
@ -321,7 +341,7 @@
this.tsmiCancelSuspend.Image = global::QMAPP.WinForm.Resource1.back; this.tsmiCancelSuspend.Image = global::QMAPP.WinForm.Resource1.back;
this.tsmiCancelSuspend.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiCancelSuspend.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7);
this.tsmiCancelSuspend.Name = "tsmiCancelSuspend"; this.tsmiCancelSuspend.Name = "tsmiCancelSuspend";
this.tsmiCancelSuspend.Size = new System.Drawing.Size(184, 26); this.tsmiCancelSuspend.Size = new System.Drawing.Size(144, 26);
this.tsmiCancelSuspend.Text = "取消挂起"; this.tsmiCancelSuspend.Text = "取消挂起";
this.tsmiCancelSuspend.Click += new System.EventHandler(this.tsmiCancelSuspend_Click); this.tsmiCancelSuspend.Click += new System.EventHandler(this.tsmiCancelSuspend_Click);
// //
@ -330,7 +350,7 @@
this.tsmiDeleteOrder.Image = global::QMAPP.WinForm.Resource1.delete; this.tsmiDeleteOrder.Image = global::QMAPP.WinForm.Resource1.delete;
this.tsmiDeleteOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiDeleteOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7);
this.tsmiDeleteOrder.Name = "tsmiDeleteOrder"; this.tsmiDeleteOrder.Name = "tsmiDeleteOrder";
this.tsmiDeleteOrder.Size = new System.Drawing.Size(184, 26); this.tsmiDeleteOrder.Size = new System.Drawing.Size(144, 26);
this.tsmiDeleteOrder.Text = "删除工单"; this.tsmiDeleteOrder.Text = "删除工单";
this.tsmiDeleteOrder.Click += new System.EventHandler(this.tsmiDeleteOrder_Click); this.tsmiDeleteOrder.Click += new System.EventHandler(this.tsmiDeleteOrder_Click);
// //
@ -370,7 +390,7 @@
"显示全部工单", "显示全部工单",
"隐藏挂起工单", "隐藏挂起工单",
"只看挂起工单"}); "只看挂起工单"});
this.cbPlanFilter.Location = new System.Drawing.Point(849, 66); this.cbPlanFilter.Location = new System.Drawing.Point(1276, 66);
this.cbPlanFilter.Name = "cbPlanFilter"; this.cbPlanFilter.Name = "cbPlanFilter";
this.cbPlanFilter.Size = new System.Drawing.Size(175, 33); this.cbPlanFilter.Size = new System.Drawing.Size(175, 33);
this.cbPlanFilter.TabIndex = 2; this.cbPlanFilter.TabIndex = 2;
@ -380,7 +400,7 @@
this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 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(781, 72); this.label10.Location = new System.Drawing.Point(1208, 72);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(65, 20); this.label10.Size = new System.Drawing.Size(65, 20);
this.label10.TabIndex = 16; this.label10.TabIndex = 16;
@ -398,7 +418,7 @@
"40", "40",
"50", "50",
"100"}); "100"});
this.cbListRowcount.Location = new System.Drawing.Point(1123, 66); this.cbListRowcount.Location = new System.Drawing.Point(1550, 66);
this.cbListRowcount.Name = "cbListRowcount"; this.cbListRowcount.Name = "cbListRowcount";
this.cbListRowcount.Size = new System.Drawing.Size(78, 33); this.cbListRowcount.Size = new System.Drawing.Size(78, 33);
this.cbListRowcount.TabIndex = 3; this.cbListRowcount.TabIndex = 3;
@ -416,7 +436,7 @@
"10s", "10s",
"15s", "15s",
"20s"}); "20s"});
this.cbRefreshRate.Location = new System.Drawing.Point(1300, 66); this.cbRefreshRate.Location = new System.Drawing.Point(1727, 66);
this.cbRefreshRate.Name = "cbRefreshRate"; this.cbRefreshRate.Name = "cbRefreshRate";
this.cbRefreshRate.Size = new System.Drawing.Size(66, 33); this.cbRefreshRate.Size = new System.Drawing.Size(66, 33);
this.cbRefreshRate.TabIndex = 4; this.cbRefreshRate.TabIndex = 4;
@ -426,7 +446,7 @@
this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 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(1027, 72); this.label8.Location = new System.Drawing.Point(1454, 72);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(93, 20); this.label8.Size = new System.Drawing.Size(93, 20);
this.label8.TabIndex = 12; this.label8.TabIndex = 12;
@ -437,7 +457,7 @@
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 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(1204, 72); this.label6.Location = new System.Drawing.Point(1631, 72);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(93, 20); this.label6.Size = new System.Drawing.Size(93, 20);
this.label6.TabIndex = 13; this.label6.TabIndex = 13;
@ -455,9 +475,9 @@
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 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.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true; this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(595, 64); this.comboBox1.Location = new System.Drawing.Point(1106, 64);
this.comboBox1.Name = "comboBox1"; this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(175, 33); this.comboBox1.Size = new System.Drawing.Size(91, 33);
this.comboBox1.TabIndex = 17; this.comboBox1.TabIndex = 17;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
// //
@ -466,29 +486,105 @@
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 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.Location = new System.Drawing.Point(1033, 72);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 20); this.label2.Size = new System.Drawing.Size(65, 20);
this.label2.TabIndex = 18; this.label2.TabIndex = 18;
this.label2.Text = "门板位置"; this.label2.Text = "门板位置";
// //
// toolStripButton1 // comboBox2
// //
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.comboBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.toolStripButton1.Font = new System.Drawing.Font("微软雅黑", 12F); this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.comboBox2.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.comboBox2.FormattingEnabled = true;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White; this.comboBox2.Location = new System.Drawing.Point(930, 64);
this.toolStripButton1.Name = "toolStripButton1"; this.comboBox2.Name = "comboBox2";
this.toolStripButton1.Size = new System.Drawing.Size(146, 67); this.comboBox2.Size = new System.Drawing.Size(91, 33);
this.toolStripButton1.Text = "批量打印(&P)"; this.comboBox2.TabIndex = 19;
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); //
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(856, 71);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(65, 20);
this.label3.TabIndex = 20;
this.label3.Text = "计划类型";
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.White;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(126, 67);
this.toolStripButton2.Text = "条码补打";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// dtpCREATEDATEEND
//
this.dtpCREATEDATEEND.CustomFormat = " ";
this.dtpCREATEDATEEND.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.dtpCREATEDATEEND.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpCREATEDATEEND.FormatString = "yyyy年MM月dd日";
this.dtpCREATEDATEEND.Location = new System.Drawing.Point(788, 66);
this.dtpCREATEDATEEND.Name = "dtpCREATEDATEEND";
this.dtpCREATEDATEEND.OriginalFormat = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpCREATEDATEEND.Size = new System.Drawing.Size(160, 26);
this.dtpCREATEDATEEND.TabIndex = 24;
this.dtpCREATEDATEEND.ValueX = null;
this.dtpCREATEDATEEND.ValueChanged += new System.EventHandler(this.dtpCREATEDATEEND_ValueChanged);
//
// dtpCREATEDATESTART
//
this.dtpCREATEDATESTART.CustomFormat = " ";
this.dtpCREATEDATESTART.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.dtpCREATEDATESTART.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpCREATEDATESTART.FormatString = "yyyy年MM月dd日";
this.dtpCREATEDATESTART.Location = new System.Drawing.Point(590, 66);
this.dtpCREATEDATESTART.Name = "dtpCREATEDATESTART";
this.dtpCREATEDATESTART.OriginalFormat = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpCREATEDATESTART.Size = new System.Drawing.Size(160, 26);
this.dtpCREATEDATESTART.TabIndex = 23;
this.dtpCREATEDATESTART.ValueX = null;
this.dtpCREATEDATESTART.ValueChanged += new System.EventHandler(this.dtpCREATEDATESTART_ValueChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(514, 69);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(69, 20);
this.label4.TabIndex = 21;
this.label4.Text = "计划时间";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(757, 69);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(24, 20);
this.label5.TabIndex = 22;
this.label5.Text = "至";
// //
// TJPrintPlanLabel // TJPrintPlanLabel
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F); this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1378, 382); this.ClientSize = new System.Drawing.Size(1805, 540);
this.Controls.Add(this.dtpCREATEDATEEND);
this.Controls.Add(this.dtpCREATEDATESTART);
this.Controls.Add(this.label4);
this.Controls.Add(this.label5);
this.Controls.Add(this.label3);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.comboBox1); this.Controls.Add(this.comboBox1);
this.Controls.Add(this.cbPlanFilter); this.Controls.Add(this.cbPlanFilter);
@ -551,5 +647,12 @@
private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.ToolStripButton toolStripButton1; private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private DateTimePickerA dtpCREATEDATEEND;
private DateTimePickerA dtpCREATEDATESTART;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
} }
} }

96
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs

@ -13,6 +13,7 @@ using QMAPP.MD.Entity;
using QMAPP.Entity; using QMAPP.Entity;
using QMFrameWork.Data; using QMFrameWork.Data;
using System.Configuration; using System.Configuration;
using System.Threading;
namespace QMAPP.WinForm.Forms.TianJin namespace QMAPP.WinForm.Forms.TianJin
{ {
@ -21,7 +22,8 @@ namespace QMAPP.WinForm.Forms.TianJin
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent(); QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent();
List<QMAPP.FJC.Entity.Basic.ProcessRoute> cbsource = null; List<QMAPP.FJC.Entity.Basic.ProcessRoute> cbsource = null;
private string planMATERIAL_CODE = string.Empty;
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -51,6 +53,14 @@ namespace QMAPP.WinForm.Forms.TianJin
comboBox1.DisplayMember = "Name"; comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "Code"; comboBox1.ValueMember = "Code";
comboBox1.DataSource = listDir; comboBox1.DataSource = listDir;
var listSHIFT = new List<Direction>();
listSHIFT.Add(new Direction { Code = "A", Name = "A班" });
listSHIFT.Add(new Direction { Code = "B", Name = "B班" });
listSHIFT.Add(new Direction { Code = "C", Name = "C班" });
comboBox2.DisplayMember = "Name";
comboBox2.ValueMember = "Code";
comboBox2.DataSource = listSHIFT;
} }
#region 加载列表显示设置 #region 加载列表显示设置
@ -77,6 +87,7 @@ namespace QMAPP.WinForm.Forms.TianJin
cbRefreshRate.SelectedIndexChanged += new EventHandler(cbRefreshRate_SelectedIndexChanged); cbRefreshRate.SelectedIndexChanged += new EventHandler(cbRefreshRate_SelectedIndexChanged);
cbPlanFilter.TextChanged += new EventHandler(cbPlanFilter_SelectedIndexChanged); cbPlanFilter.TextChanged += new EventHandler(cbPlanFilter_SelectedIndexChanged);
comboBox1.TextChanged += new EventHandler(cbPlanFilter_SelectedIndexChanged); comboBox1.TextChanged += new EventHandler(cbPlanFilter_SelectedIndexChanged);
comboBox2.TextChanged += new EventHandler(cbPlanFilter_SelectedIndexChanged);
#endregion #endregion
} }
@ -103,8 +114,18 @@ namespace QMAPP.WinForm.Forms.TianJin
dataPage.PageSize = int.Parse(cbListRowcount.Text); dataPage.PageSize = int.Parse(cbListRowcount.Text);
dataPage.PageIndex = 1; dataPage.PageIndex = 1;
dataPage.SortExpression = " ROWVALUE ASC"; dataPage.SortExpression = " ROWVALUE ASC";
//操作开始时间
//if (string.IsNullOrEmpty(this.dtpCREATEDATESTART.Text.Trim()) == false)
//{
// searchModel.BeginTime = Convert.ToDateTime((this.dtpCREATEDATESTART.Value).ToString("yyyy-MM-dd") + " 00:00:00");
//}
////操作结束时间
//if (string.IsNullOrEmpty(this.dtpCREATEDATEEND.Text.Trim()) == false)
//{
// searchModel.EndTime = Convert.ToDateTime((this.dtpCREATEDATEEND.Value).ToString("yyyy-MM-dd") + " 23:59:59");
//}
#region 服务查询 #region 服务查询
var orderlist = _agent.InvokeServiceFunction<List<FJC.Entity.ProductionPlan.WorkOrder>>("TJWorkOrderBLL_GetOrderUnPrinted", cbRoutes.SelectedValue.ToString(), cbPlanFilter.SelectedIndex, dataPage, comboBox1.SelectedValue.ToString()); var orderlist = _agent.InvokeServiceFunction<List<FJC.Entity.ProductionPlan.WorkOrder>>("TJWorkOrderBLL_GetOrderUnPrinted", cbRoutes.SelectedValue.ToString(), cbPlanFilter.SelectedIndex, dataPage, comboBox1.SelectedValue.ToString(), comboBox2.SelectedValue.ToString(), this.dtpCREATEDATESTART.Value.ToString(), this.dtpCREATEDATEEND.Value.ToString());
#endregion #endregion
this.dgvPlan.DataSource = orderlist; this.dgvPlan.DataSource = orderlist;
} }
@ -207,7 +228,7 @@ namespace QMAPP.WinForm.Forms.TianJin
#endregion #endregion
} }
private void PrintPlanLabel_Load(object sender, EventArgs e) private void PrintPlanLabel_Load(object sender, EventArgs e)
{ {
LoadViewSetting(); LoadViewSetting();
@ -474,7 +495,7 @@ namespace QMAPP.WinForm.Forms.TianJin
//变更打印状态 0=>1 //变更打印状态 0=>1
_agent.InvokeServiceFunction<int>("WorkOrderBLL_SetOrderPrinted", orders[0].PID); _agent.InvokeServiceFunction<int>("WorkOrderBLL_SetOrderPrinted", orders[0].PID);
InsertProduct(labeldata.OrderNo, orders[0].MATERIAL_CODE);
BindPlanView(); BindPlanView();
tsbPrint.Enabled = true; tsbPrint.Enabled = true;
} }
@ -497,6 +518,55 @@ namespace QMAPP.WinForm.Forms.TianJin
return null; return null;
} }
/// <summary>
///
/// </summary>
/// <param name="ProductCode"></param>
/// <param name="Material_Code"></param>
public void InsertProduct(string ProductCode,string Material_Code)
{
#region 组成新增产品实例
Product newProduct = new Product();
newProduct.PID = Guid.NewGuid().ToString();
newProduct.PRODUCTTYPE = string.Empty;
newProduct.PRODUCTCODE = ProductCode;
newProduct.PRODUCTSOURCE = "0";
newProduct.MACHINENAME = "门板打印";
newProduct.MACHINECODDE = "门板打印";
newProduct.MATERIAL_CODE = Material_Code;
newProduct.STATUS = "0";
newProduct.OUTFLAG = "0";
newProduct.CAPACITY = 1;
newProduct.USINGCOUNT = 0;
newProduct.WORKCELL_CODE = "PREPARE1";
newProduct.WORKLOC_CODE = "DP_PREPARELOC1";
newProduct.WORKCENTER_CODE = "WORK770B";
newProduct.MATERIAL_TYPE = "DP_FINASSY";
newProduct.USINGSTATE = "0";
#endregion
//新增
//ProductHelper.Insert(newProduct);
_agent.InvokeServiceFunction<DataResult<int>>("ProductBLL_Insert", newProduct);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{ {
SaveSetting(); SaveSetting();
@ -522,6 +592,8 @@ namespace QMAPP.WinForm.Forms.TianJin
for (var i = 0; i < count; i++) for (var i = 0; i < count; i++)
{ {
System.Threading.Thread.Sleep(3000);
var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>(); var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>();
var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i].DataBoundItem; var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i].DataBoundItem;
@ -568,6 +640,22 @@ namespace QMAPP.WinForm.Forms.TianJin
BindPlanView(); BindPlanView();
toolStripButton1.Enabled = true; toolStripButton1.Enabled = true;
} }
private void toolStripButton2_Click(object sender, EventArgs e)
{
PlanRePrintForm frm = new PlanRePrintForm(this);
frm.ShowDialog();
}
private void dtpCREATEDATESTART_ValueChanged(object sender, EventArgs e)
{
BindPlanView();
}
private void dtpCREATEDATEEND_ValueChanged(object sender, EventArgs e)
{
BindPlanView();
}
} }
class Direction { class Direction {
public string Code { get; set; } public string Code { get; set; }

73
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx

@ -153,6 +153,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
@ -297,6 +300,76 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>127, 17</value> <value>127, 17</value>
</metadata> </metadata>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
Ae6xxmll7eSUAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>63</value> <value>63</value>
</metadata> </metadata>

7
APPQ5/QMAPP.WinForm/Menu.xml

@ -35,6 +35,7 @@
<PowerInfo PowerID="CD82030200" PowerDes="强制补打" FormName="PrintPlanLabel" ButtonName="cbForce"/> <PowerInfo PowerID="CD82030200" PowerDes="强制补打" FormName="PrintPlanLabel" ButtonName="cbForce"/>
<PowerInfo PowerID="CD82040000" PowerDes="门板跳序终检" ButtonName="tsmiInspectSkipping"/> <PowerInfo PowerID="CD82040000" PowerDes="门板跳序终检" ButtonName="tsmiInspectSkipping"/>
<PowerInfo PowerID="CD82050000" PowerDes="门板FIS补码" ButtonName="tsmDPAssmblyItem"/> <PowerInfo PowerID="CD82050000" PowerDes="门板FIS补码" ButtonName="tsmDPAssmblyItem"/>
<PowerInfo PowerID="CD82060000" PowerDes="TJ门板计划标签打印" ButtonName="TJtsmiPrintPlanlabel"/>
<PowerInfo PowerID="CD83000000" ButtonName=""/> <PowerInfo PowerID="CD83000000" ButtonName=""/>
<PowerInfo PowerID="CD83010000" PowerDes="返修界面" ButtonName="btnMendOperate"/> <PowerInfo PowerID="CD83010000" PowerDes="返修界面" ButtonName="btnMendOperate"/>
@ -46,6 +47,9 @@
<PowerInfo PowerID="CD84000000" ButtonName="出入库管理"/> <PowerInfo PowerID="CD84000000" ButtonName="出入库管理"/>
<PowerInfo PowerID="CD84010000" PowerDes="入库" ButtonName="tsmiPutIn"/> <PowerInfo PowerID="CD84010000" PowerDes="入库" ButtonName="tsmiPutIn"/>
<PowerInfo PowerID="CD84020000" PowerDes="计划外出库" ButtonName="tsmiTakeOut"/> <PowerInfo PowerID="CD84020000" PowerDes="计划外出库" ButtonName="tsmiTakeOut"/>
<PowerInfo PowerID="CD84030000" PowerDes="TJ入库管理" ButtonName="TJtsmiPutIn"/>
<PowerInfo PowerID="CD84040000" PowerDes="TJ出库管理" ButtonName="TJtsmiTakeOut"/>
<PowerInfo PowerID="CD85000000" ButtonName=""/> <PowerInfo PowerID="CD85000000" ButtonName=""/>
<PowerInfo PowerID="CD85010000" ButtonName=""/> <PowerInfo PowerID="CD85010000" ButtonName=""/>
@ -58,7 +62,8 @@
<PowerInfo PowerID="CD85010700" PowerDes="强制提交" FormName="FrmPlace" ButtonName="btnCloseCart"/> <PowerInfo PowerID="CD85010700" PowerDes="强制提交" FormName="FrmPlace" ButtonName="btnCloseCart"/>
<PowerInfo PowerID="CD85010800" PowerDes="报警确认" ButtonName=""/> <PowerInfo PowerID="CD85010800" PowerDes="报警确认" ButtonName=""/>
<PowerInfo PowerID="CD93010100" PowerDes="TJ门板发运" ButtonName="TJFrmPlace"/>
<PowerInfo PowerID="CD86000000" ButtonName=""/> <PowerInfo PowerID="CD86000000" ButtonName=""/>
<PowerInfo PowerID="CD86010000" PowerDes="ANDON报警" ButtonName="AodonToolStripMenuItem"/> <PowerInfo PowerID="CD86010000" PowerDes="ANDON报警" ButtonName="AodonToolStripMenuItem"/>

4
APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: // 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2022.03.31.01")] [assembly: AssemblyVersion("2022.04.09.01")]
[assembly: AssemblyFileVersion("2022.03.31.01")] [assembly: AssemblyFileVersion("2022.04.09.01")]

9
APPQ5/QMAPP.WinForm/QMAPP.WinForm.csproj

@ -801,6 +801,12 @@
<Compile Include="Forms\RePrint\ReprintForm.Designer.cs"> <Compile Include="Forms\RePrint\ReprintForm.Designer.cs">
<DependentUpon>ReprintForm.cs</DependentUpon> <DependentUpon>ReprintForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\TianJin\PlanRePrintForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\PlanRePrintForm.designer.cs">
<DependentUpon>PlanRePrintForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJOutWarehouseForm.cs"> <Compile Include="Forms\TianJin\TJOutWarehouseForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1314,6 +1320,9 @@
<EmbeddedResource Include="Forms\RePrint\ReprintForm.resx"> <EmbeddedResource Include="Forms\RePrint\ReprintForm.resx">
<DependentUpon>ReprintForm.cs</DependentUpon> <DependentUpon>ReprintForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\PlanRePrintForm.resx">
<DependentUpon>PlanRePrintForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJOutWarehouseForm.resx"> <EmbeddedResource Include="Forms\TianJin\TJOutWarehouseForm.resx">
<DependentUpon>TJOutWarehouseForm.cs</DependentUpon> <DependentUpon>TJOutWarehouseForm.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>

Loading…
Cancel
Save