Browse Source

临时存储成都BC316-MP4

master
张松男 11 months ago
parent
commit
03f6843ae2
  1. 8
      APP/QMAPP.Web/App_Data/Menu.xml
  2. 6
      APP/QMAPP.Web/Web.config
  3. 2
      APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs
  4. 6
      APPMD/QMAPP.MD.Web/Web.config
  5. 18
      APPQ5/QMAPP.FJC.BLL/Basic/AppConfigBLL.cs
  6. 34
      APPQ5/QMAPP.FJC.BLL/Operation/MainOperationBLL.cs
  7. 23
      APPQ5/QMAPP.FJC.BLL/Operation/ProductBLL.cs
  8. 16
      APPQ5/QMAPP.FJC.DAL/Basic/AppConfigDAL.cs
  9. 2
      APPQ5/QMAPP.FJC.DAL/MD/MaterialDAL.cs
  10. 59
      APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs
  11. 2
      APPQ5/QMAPP.FJC.Web/App_Data/Menu.xml
  12. 5
      APPQ5/QMAPP.FJC.Web/Web.config
  13. 26
      APPQ5/QMAPP.WinForm/App.config
  14. 550
      APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs
  15. 708
      APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs
  16. 138
      APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx
  17. 573
      APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.Designer.cs
  18. 195
      APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs
  19. 185
      APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.resx
  20. 6
      APPQ5/QMAPP.WinForm/Forms/Operation/PrintPlanLabel.cs
  21. 12
      APPQ5/QMAPP.WinForm/MainForm.Designer.cs
  22. 20
      APPQ5/QMAPP.WinForm/MainForm.cs
  23. 9
      APPQ5/QMAPP.WinForm/QMAPP.WinForm.csproj
  24. 18
      AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs
  25. 9
      ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config

8
APP/QMAPP.Web/App_Data/Menu.xml

@ -298,7 +298,7 @@
</Actions> </Actions>
</MenuItem>--> </MenuItem>-->
<!--TJDoorPlankPlanPrint DoorPlankPlan--> <!--TJDoorPlankPlanPrint DoorPlankPlan-->
<MenuItem MenuID="02030000" SystemID="FJC" MenuDes="TJ门板计划管理" Action="/TJDoorPlankPlanPrint/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> <!--<MenuItem MenuID="02030000" SystemID="FJC" MenuDes="TJ门板计划管理" Action="/TJDoorPlankPlanPrint/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1">
<Actions> <Actions>
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="List" PowerID="CD02030001">查询</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="List" PowerID="CD02030001">查询</Action>
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="Add" PowerID="CD02030002">添加</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="Add" PowerID="CD02030002">添加</Action>
@ -312,8 +312,8 @@
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="ExportExcel" PowerID="CD02030009">导出</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="ExportExcel" PowerID="CD02030009">导出</Action>
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="TemplateExcel" PowerID="CD02030010">下载模板</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="TemplateExcel" PowerID="CD02030010">下载模板</Action>
</Actions> </Actions>
</MenuItem> </MenuItem>-->
<!--<MenuItem MenuID="02030000" SystemID="FJC" MenuDes="门板计划管理" Action="/DoorPlankPlan/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> <MenuItem MenuID="02030000" SystemID="FJC" MenuDes="门板计划管理" Action="/DoorPlankPlan/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1">
<Actions> <Actions>
<Action ContorllerName="DoorPlankPlan" ActionName="List" PowerID="CD02030001">查询</Action> <Action ContorllerName="DoorPlankPlan" ActionName="List" PowerID="CD02030001">查询</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="Add" PowerID="CD02030002">添加</Action> <Action ContorllerName="DoorPlankPlan" ActionName="Add" PowerID="CD02030002">添加</Action>
@ -327,7 +327,7 @@
<Action ContorllerName="DoorPlankPlan" ActionName="ExportExcel" PowerID="CD02030009">导出</Action> <Action ContorllerName="DoorPlankPlan" ActionName="ExportExcel" PowerID="CD02030009">导出</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="TemplateExcel" PowerID="CD02030010">下载模板</Action> <Action ContorllerName="DoorPlankPlan" ActionName="TemplateExcel" PowerID="CD02030010">下载模板</Action>
</Actions> </Actions>
</MenuItem>--> </MenuItem>
<MenuItem MenuID="02040000" SystemID="FJC" MenuDes="仪表板计划管理" Action="/DashBoardPlan/List?ORDER_TYPE=DASHBOARD" Target="url" PowerID="CD02040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> <MenuItem MenuID="02040000" SystemID="FJC" MenuDes="仪表板计划管理" Action="/DashBoardPlan/List?ORDER_TYPE=DASHBOARD" Target="url" PowerID="CD02040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1">
<Actions> <Actions>

6
APP/QMAPP.Web/Web.config

@ -50,11 +50,15 @@
<add name="maindb" connectionString="Data Source=10.122.213.104;Initial Catalog=ADIENT_VW276_MES;User Id=MES;Password=Password1;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.122.213.104;Initial Catalog=ADIENT_VW276_MES;User Id=MES;Password=Password1;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=119.3.213.202,13315;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=ChangkeTec@2020;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=119.3.213.202,13315;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=ChangkeTec@2020;" providerName="System.Data.SqlClient"/>
-->
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
-->
<add name="maindb" connectionString="Data Source=10.111.144.111;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.111;Initial Catalog=BZD;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/> <!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>--> <add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>-->

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

@ -882,7 +882,7 @@ namespace QMAPP.MD.DAL
sql.AppendLine(" FROM [T_MD_PROCESS_ROUTE_WORKCELL] AS RW "); sql.AppendLine(" FROM [T_MD_PROCESS_ROUTE_WORKCELL] AS RW ");
sql.AppendLine(" LEFT JOIN [T_MD_PROCESS_ROUTE] AS R "); sql.AppendLine(" LEFT JOIN [T_MD_PROCESS_ROUTE] AS R ");
sql.AppendLine(" ON RW.[ROUTE_CODE]=R.[ROUTE_CODE] "); sql.AppendLine(" ON RW.[ROUTE_CODE]=R.[ROUTE_CODE] ");
sql.AppendLine(" WHERE [WORKCELL_CODE]=@workcellcode "); sql.AppendLine(" WHERE [WORKCELL_CODE]=@workcellcode and RW.FLGDEL = '0'");
parameters.Add(new DataParameter("workcellcode", workcellcode)); parameters.Add(new DataParameter("workcellcode", workcellcode));

6
APPMD/QMAPP.MD.Web/Web.config

@ -37,10 +37,14 @@
<!--<add name="maindb" connectionString="Data Source=10.111.144.98;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=10.111.144.98;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>-->
<!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/> <!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>--> <add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
-->
<add name="maindb" connectionString="Data Source=10.111.144.111;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.111;Initial Catalog=BZD;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<!-- <add name="maindb" connectionString="Data Source=123.56.115.74;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=qwe123$%^;" providerName="System.Data.SqlClient" /> <!-- <add name="maindb" connectionString="Data Source=123.56.115.74;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=qwe123$%^;" providerName="System.Data.SqlClient" />

18
APPQ5/QMAPP.FJC.BLL/Basic/AppConfigBLL.cs

@ -41,6 +41,24 @@ namespace QMAPP.FJC.BLL.Basic
throw ex; throw ex;
} }
} }
/// <summary>
/// 获取信息
/// </summary>
/// <param name="">条件</param>
/// <returns>信息</returns>
public DataResult<int> UpdateAppConfig(string pConfigCode, string pConfigValue)
{
try
{
DataResult<int> result = new DataResult<int>();
result.Result = new AppConfigDAL().UpdateAppConfig(pConfigCode, pConfigValue);
return result;
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary> /// <summary>
/// 获取信息 /// 获取信息

34
APPQ5/QMAPP.FJC.BLL/Operation/MainOperationBLL.cs

@ -2804,6 +2804,40 @@ namespace QMAPP.FJC.BLL.Operation
return result; return result;
} }
/// <summary>
/// 成都蒙皮条码打印
/// </summary>
/// <param name="product"></param>
/// <returns></returns>
public DataResult<List<PrintCode>> GetPrintCodeForMP4(Material item)
{
DataResult<List<PrintCode>> result = new DataResult<List<PrintCode>>();
List<PrintCode> printCodeList = new List<PrintCode>();
PrintCodeDAL dal = new PrintCodeDAL();
PrintCode proCodeInfo = new PrintCode();
proCodeInfo.PRODUCTCODE = item.MATERIAL_CODE;
//获取PrinCode信息
proCodeInfo = new PrintCodeDAL().GetPrintCodeInfo(proCodeInfo);
if (proCodeInfo != null)
{
if (proCodeInfo.UPDATETIME.ToShortDateString() != DateTime.Now.ToShortDateString())
{
proCodeInfo.SERIAL_NUM = 0;
dal.UpdateBySql(proCodeInfo);
}
string time = DateTime.Now.ToString("yyMMddHHmm");
proCodeInfo.SERIAL_NUM = proCodeInfo.SERIAL_NUM + 1;
string serialnumber = (proCodeInfo.SERIAL_NUM).ToString().PadLeft(4, '0');
proCodeInfo.MAINCODE = proCodeInfo.PRECODE + time + serialnumber;
dal.Update(proCodeInfo);
printCodeList.Add(proCodeInfo);
}
result.Result = printCodeList;
return result;
}
/// <summary> /// <summary>
/// 成都注塑条码打印带注塑参数 /// 成都注塑条码打印带注塑参数
/// </summary> /// </summary>

23
APPQ5/QMAPP.FJC.BLL/Operation/ProductBLL.cs

@ -58,6 +58,29 @@ namespace QMAPP.FJC.BLL.Operation
} }
} }
/// <summary>
/// 获取信息
/// </summary>
/// <param name="">条件</param>
/// <returns>信息</returns>
public List<Product> GetListpro(Product model)
{
try
{
return new ProductDAL().GetListpro(model);
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "零件条码--获取零件信息"
});
throw ex;
}
}
/// <summary> /// <summary>
/// 获取信息 /// 获取信息
/// </summary> /// </summary>

16
APPQ5/QMAPP.FJC.DAL/Basic/AppConfigDAL.cs

@ -38,6 +38,22 @@ namespace QMAPP.FJC.DAL.Basic
throw ex; throw ex;
} }
} }
public int UpdateAppConfig(string pConfigValue,string pConfigCode)
{
try
{
string sqlScript = $" update T_MD_AppConfig_QD set Value='{pConfigValue}' where Code='{pConfigCode}'";
List<DataParameter> parameters = new List<DataParameter>();
using (IDataSession session = AppDataFactory.CreateMainSession())
{
return session.ExecuteSql(sqlScript, parameters.ToArray());
}
}
catch (Exception ex)
{
throw ex;
}
}
public AppConfig GetPID(AppConfig Code) public AppConfig GetPID(AppConfig Code)
{ {

2
APPQ5/QMAPP.FJC.DAL/MD/MaterialDAL.cs

@ -82,7 +82,7 @@ namespace QMAPP.FJC.DAL.MD
parameters.Add(new DataParameter("materialcode", materialcode)); parameters.Add(new DataParameter("materialcode", materialcode));
if (materialcode.Length >= 13) if (materialcode.Length >= 13)
{ {
sql = $"SELECT * FROM [T_MD_MATERIAL] WHERE REPLACE(REPLACE(REPLACE([MATERIAL_CODE],'.',''),' ',''),'-','')=@materialcode or REPLACE(REPLACE(REPLACE([MATERIAL_CODE],'.',''),' ',''),'-','')='{materialcode.Substring(0,13)}'"; sql = $"SELECT * FROM [T_MD_MATERIAL] WHERE REPLACE(REPLACE(REPLACE([MATERIAL_CODE],'.',''),' ',''),'-','')=@materialcode or REPLACE(REPLACE(REPLACE([MATERIAL_CODE],'.',''),' ',''),'-','')='17G867{materialcode.Substring(0,7)}'";
} }
using (IDataSession session = AppDataFactory.CreateMainSession()) using (IDataSession session = AppDataFactory.CreateMainSession())
{ {

59
APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs

@ -87,6 +87,65 @@ namespace QMAPP.FJC.DAL.Operation
} }
} }
/// <summary>
/// 获取信息
/// </summary>
/// <param name="">条件</param>
/// <returns>*信息</returns>
public List<Product> GetListpro(Product model)
{
try
{
var List = new List<Product>();
if (this.BaseSession != null)
{
model = BaseSession.Get<Product>(model);
}
else
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = "SELECT * FROM T_AW_PRODUCT WHERE 1=1 ";
if (string.IsNullOrEmpty(model.PID) == false)
{
sql += " AND PID = @PID";
parameters.Add(new DataParameter("PID", model.PID));
}
if (string.IsNullOrEmpty(model.PRODUCTCODE) == false)
{
sql += " AND PRODUCTCODE = @PRODUCTCODE";
parameters.Add(new DataParameter("PRODUCTCODE", model.PRODUCTCODE));
}
if (string.IsNullOrEmpty(model.MATERIAL_CODE) == false)
{
sql += " AND MATERIAL_CODE = @MATERIAL_CODE";
parameters.Add(new DataParameter("MATERIAL_CODE", model.MATERIAL_CODE));
}
using (IDataSession session = AppDataFactory.CreateMainSession())
{
string sqlChange = this.ChangeSqlByDB(sql, session);
//获取信息
List = session.GetList<Product>(sqlChange, parameters.ToArray()).ToList();
}
return List;
}
catch (Exception ex)
{
RecordExceptionLog(ex, "物料号信息数据层-获取信息");
throw ex;
}
}
return List;
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary> /// <summary>
/// 获取T_AW_PACKAGE信息 /// 获取T_AW_PACKAGE信息
/// </summary> /// </summary>

2
APPQ5/QMAPP.FJC.Web/App_Data/Menu.xml

@ -298,7 +298,7 @@
</Actions> </Actions>
</MenuItem>--> </MenuItem>-->
<!--TJDoorPlankPlanPrint DoorPlankPlan--> <!--TJDoorPlankPlanPrint DoorPlankPlan-->
<MenuItem MenuID="02030000" SystemID="FJC" MenuDes="门板计划管理" Action="/TJDoorPlankPlanPrint/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> <MenuItem MenuID="02030000" SystemID="FJC" MenuDes="门板计划管理" Action="/DoorPlankPlan/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1">
<Actions> <Actions>
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="List" PowerID="CD02030001">查询</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="List" PowerID="CD02030001">查询</Action>
<Action ContorllerName="TJDoorPlankPlanPrint" ActionName="Add" PowerID="CD02030002">添加</Action> <Action ContorllerName="TJDoorPlankPlanPrint" ActionName="Add" PowerID="CD02030002">添加</Action>

5
APPQ5/QMAPP.FJC.Web/Web.config

@ -56,9 +56,12 @@
<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=BZD;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>
-->
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
-->
<add name="maindb" connectionString="Data Source=10.111.144.111;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.111;Initial Catalog=BZD;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<!--<add name="maindb" connectionString="Data Source=.;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft2008;" providerName="System.Data.SqlClient"/> <!--<add name="maindb" connectionString="Data Source=.;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Microsoft2008;" providerName="System.Data.SqlClient"/>

26
APPQ5/QMAPP.WinForm/App.config

@ -3,18 +3,19 @@
<connectionStrings> <connectionStrings>
<!--主数据库连接--> <!--主数据库连接-->
<!-- <!--
<add name="maindb" connectionString="Data Source=10.111.144.98;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.111.144.111;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.98;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.111;Initial Catalog=BZD;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
--> -->
<add name="maindb" connectionString="Data Source=10.111.144.98;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindb" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.98;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<!-- <!--
@ -58,7 +59,9 @@
<add key="并线装配基础信息" value="4A-AE0001;VW331 IP 装配夹具;IP_ASSEMBLY;BORAIPASSY"/>--> <add key="并线装配基础信息" value="4A-AE0001;VW331 IP 装配夹具;IP_ASSEMBLY;BORAIPASSY"/>-->
<!--装配排序 end--> <!--装配排序 end-->
<!--喷胶验证混胶时间工位-->
<add key="喷胶验证混胶时间工位" value="GLUE_SPRAY_BC316MP4" />
<add key="混胶时间" value="4" />
<!----> <!---->
@ -233,12 +236,19 @@
<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" />
<endpoint address="net.tcp://10.111.144.94:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />
<endpoint address="net.tcp://127.0.0.1:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />
<!--<endpoint address="net.tcp://10.111.144.94:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />-->
<!--<endpoint address="http://10.111.144.97:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> <!--<endpoint address="http://10.111.144.97:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
<endpoint address="http://10.111.144.97:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" /> <endpoint address="http://10.111.144.97:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
<endpoint address="net.tcp://127.0.0.1:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />--> <endpoint address="net.tcp://127.0.0.1:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />-->
<!--<endpoint address="http://10.117.133.80:8939/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
<endpoint address="http://10.117.133.80:8939/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
<endpoint address="net.tcp://127.0.0.1:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />-->
<!--<endpoint address="http://10.122.213.105:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> <!--<endpoint address="http://10.122.213.105:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
<endpoint address="http://10.122.213.105:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" /> <endpoint address="http://10.122.213.105:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />

550
APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs

@ -0,0 +1,550 @@
namespace QMAPP.WinForm.Forms.Injection
{
partial class SewingPrint
{
/// <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.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
this.DGView = new System.Windows.Forms.DataGridView();
this.MAINCODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MATERIAL_NAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PRODUCTCODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CREATETIME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tsbPrint = new System.Windows.Forms.Button();
this.textMaterialName = new System.Windows.Forms.TextBox();
this.txtMaterialCode = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.plPrintSetting = new System.Windows.Forms.Panel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.cbMould = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.tpPrintMode = new System.Windows.Forms.TabControl();
this.tpManual = new System.Windows.Forms.TabPage();
this.cbTemplateDesign = new System.Windows.Forms.CheckBox();
this.tpTimer = new System.Windows.Forms.TabPage();
this.label5 = new System.Windows.Forms.Label();
this.cbPrintSpan = new System.Windows.Forms.ComboBox();
this.cbPrintCount = new System.Windows.Forms.ComboBox();
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.lblLastCount = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
((System.ComponentModel.ISupportInitialize)(this.DGView)).BeginInit();
this.groupBox1.SuspendLayout();
this.plPrintSetting.SuspendLayout();
this.tpPrintMode.SuspendLayout();
this.tpManual.SuspendLayout();
this.tpTimer.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// DGView
//
this.DGView.AllowUserToAddRows = false;
this.DGView.AllowUserToDeleteRows = false;
this.DGView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.DGView.BackgroundColor = System.Drawing.SystemColors.ButtonFace;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.DGView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.MAINCODE,
this.MATERIAL_NAME,
this.PRODUCTCODE,
this.CREATETIME});
this.DGView.Dock = System.Windows.Forms.DockStyle.Fill;
this.DGView.Location = new System.Drawing.Point(4, 4);
this.DGView.Margin = new System.Windows.Forms.Padding(4);
this.DGView.Name = "DGView";
this.DGView.ReadOnly = true;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle12;
this.DGView.RowTemplate.Height = 23;
this.DGView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.DGView.Size = new System.Drawing.Size(1006, 858);
this.DGView.TabIndex = 38;
//
// MAINCODE
//
this.MAINCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.MAINCODE.DataPropertyName = "MAINCODE";
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15.75F);
this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle8;
this.MAINCODE.FillWeight = 48.95314F;
this.MAINCODE.HeaderText = "条码信息";
this.MAINCODE.Name = "MAINCODE";
this.MAINCODE.ReadOnly = true;
this.MAINCODE.Width = 280;
//
// MATERIAL_NAME
//
this.MATERIAL_NAME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.MATERIAL_NAME.DataPropertyName = "MATERIAL_NAME";
dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15.75F);
this.MATERIAL_NAME.DefaultCellStyle = dataGridViewCellStyle9;
this.MATERIAL_NAME.FillWeight = 99.90437F;
this.MATERIAL_NAME.HeaderText = "零件名称";
this.MATERIAL_NAME.Name = "MATERIAL_NAME";
this.MATERIAL_NAME.ReadOnly = true;
this.MATERIAL_NAME.Width = 260;
//
// PRODUCTCODE
//
this.PRODUCTCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.PRODUCTCODE.DataPropertyName = "PRODUCTCODE";
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle10;
this.PRODUCTCODE.FillWeight = 48.95314F;
this.PRODUCTCODE.HeaderText = "零件号";
this.PRODUCTCODE.Name = "PRODUCTCODE";
this.PRODUCTCODE.ReadOnly = true;
this.PRODUCTCODE.Width = 200;
//
// CREATETIME
//
this.CREATETIME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.CREATETIME.DataPropertyName = "CREATETIME";
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 15.75F);
dataGridViewCellStyle11.Format = "f";
dataGridViewCellStyle11.NullValue = null;
this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle11;
this.CREATETIME.FillWeight = 48.95314F;
this.CREATETIME.HeaderText = "操作时间";
this.CREATETIME.Name = "CREATETIME";
this.CREATETIME.ReadOnly = true;
this.CREATETIME.Width = 250;
//
// tsbPrint
//
this.tsbPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.tsbPrint.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tsbPrint.Image = global::QMAPP.WinForm.Resource1.save;
this.tsbPrint.Location = new System.Drawing.Point(362, 9);
this.tsbPrint.Margin = new System.Windows.Forms.Padding(4);
this.tsbPrint.Name = "tsbPrint";
this.tsbPrint.Size = new System.Drawing.Size(285, 124);
this.tsbPrint.TabIndex = 34;
this.tsbPrint.Text = "打印";
this.tsbPrint.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.tsbPrint.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.tsbPrint.UseVisualStyleBackColor = true;
this.tsbPrint.Click += new System.EventHandler(this.tsbPrint_Click);
//
// textMaterialName
//
this.textMaterialName.BackColor = System.Drawing.SystemColors.Control;
this.textMaterialName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textMaterialName.Location = new System.Drawing.Point(105, 165);
this.textMaterialName.Margin = new System.Windows.Forms.Padding(4);
this.textMaterialName.MaxLength = 3096;
this.textMaterialName.Name = "textMaterialName";
this.textMaterialName.ReadOnly = true;
this.textMaterialName.Size = new System.Drawing.Size(553, 39);
this.textMaterialName.TabIndex = 33;
//
// txtMaterialCode
//
this.txtMaterialCode.BackColor = System.Drawing.SystemColors.Control;
this.txtMaterialCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtMaterialCode.Location = new System.Drawing.Point(105, 223);
this.txtMaterialCode.Margin = new System.Windows.Forms.Padding(4);
this.txtMaterialCode.MaxLength = 3096;
this.txtMaterialCode.Name = "txtMaterialCode";
this.txtMaterialCode.ReadOnly = true;
this.txtMaterialCode.Size = new System.Drawing.Size(553, 39);
this.txtMaterialCode.TabIndex = 30;
this.txtMaterialCode.TextChanged += new System.EventHandler(this.txtMaterialCode_TextChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(4, 227);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(93, 31);
this.label6.TabIndex = 29;
this.label6.Text = "零件号:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(4, 169);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(93, 31);
this.label1.TabIndex = 25;
this.label1.Text = "零件名:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.plPrintSetting);
this.groupBox1.Controls.Add(this.tpPrintMode);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Right;
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(1028, 6);
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
this.groupBox1.Size = new System.Drawing.Size(676, 910);
this.groupBox1.TabIndex = 40;
this.groupBox1.TabStop = false;
//
// plPrintSetting
//
this.plPrintSetting.Controls.Add(this.textBox1);
this.plPrintSetting.Controls.Add(this.cbMould);
this.plPrintSetting.Controls.Add(this.label6);
this.plPrintSetting.Controls.Add(this.label1);
this.plPrintSetting.Controls.Add(this.label9);
this.plPrintSetting.Controls.Add(this.txtMaterialCode);
this.plPrintSetting.Controls.Add(this.textMaterialName);
this.plPrintSetting.Dock = System.Windows.Forms.DockStyle.Top;
this.plPrintSetting.Location = new System.Drawing.Point(4, 36);
this.plPrintSetting.Margin = new System.Windows.Forms.Padding(0);
this.plPrintSetting.Name = "plPrintSetting";
this.plPrintSetting.Size = new System.Drawing.Size(668, 606);
this.plPrintSetting.TabIndex = 64;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(128, 22);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(341, 39);
this.textBox1.TabIndex = 61;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCode_KeyDown);
//
// cbMould
//
this.cbMould.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbMould.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbMould.FormattingEnabled = true;
this.cbMould.Location = new System.Drawing.Point(128, 87);
this.cbMould.Margin = new System.Windows.Forms.Padding(4);
this.cbMould.Name = "cbMould";
this.cbMould.Size = new System.Drawing.Size(530, 39);
this.cbMould.TabIndex = 60;
this.cbMould.SelectedIndexChanged += new System.EventHandler(this.cbMould_SelectedIndexChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(3, 22);
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(117, 31);
this.label9.TabIndex = 25;
this.label9.Text = "缝纫配置:";
//
// tpPrintMode
//
this.tpPrintMode.Controls.Add(this.tpManual);
this.tpPrintMode.Controls.Add(this.tpTimer);
this.tpPrintMode.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tpPrintMode.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tpPrintMode.Location = new System.Drawing.Point(4, 687);
this.tpPrintMode.Margin = new System.Windows.Forms.Padding(4);
this.tpPrintMode.Name = "tpPrintMode";
this.tpPrintMode.Padding = new System.Drawing.Point(12, 9);
this.tpPrintMode.SelectedIndex = 0;
this.tpPrintMode.Size = new System.Drawing.Size(668, 219);
this.tpPrintMode.TabIndex = 62;
//
// tpManual
//
this.tpManual.Controls.Add(this.cbTemplateDesign);
this.tpManual.Controls.Add(this.tsbPrint);
this.tpManual.Location = new System.Drawing.Point(4, 58);
this.tpManual.Margin = new System.Windows.Forms.Padding(4);
this.tpManual.Name = "tpManual";
this.tpManual.Padding = new System.Windows.Forms.Padding(4);
this.tpManual.Size = new System.Drawing.Size(660, 157);
this.tpManual.TabIndex = 2;
this.tpManual.Text = "手动打印";
this.tpManual.UseVisualStyleBackColor = true;
//
// cbTemplateDesign
//
this.cbTemplateDesign.AutoSize = true;
this.cbTemplateDesign.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbTemplateDesign.Location = new System.Drawing.Point(9, 9);
this.cbTemplateDesign.Margin = new System.Windows.Forms.Padding(4);
this.cbTemplateDesign.Name = "cbTemplateDesign";
this.cbTemplateDesign.Size = new System.Drawing.Size(136, 35);
this.cbTemplateDesign.TabIndex = 35;
this.cbTemplateDesign.Text = "模板调整";
this.cbTemplateDesign.UseVisualStyleBackColor = true;
//
// tpTimer
//
this.tpTimer.Controls.Add(this.label5);
this.tpTimer.Controls.Add(this.cbPrintSpan);
this.tpTimer.Controls.Add(this.cbPrintCount);
this.tpTimer.Controls.Add(this.btnStart);
this.tpTimer.Controls.Add(this.btnStop);
this.tpTimer.Controls.Add(this.lblLastCount);
this.tpTimer.Controls.Add(this.label7);
this.tpTimer.Controls.Add(this.label8);
this.tpTimer.Location = new System.Drawing.Point(4, 58);
this.tpTimer.Margin = new System.Windows.Forms.Padding(4);
this.tpTimer.Name = "tpTimer";
this.tpTimer.Padding = new System.Windows.Forms.Padding(4);
this.tpTimer.Size = new System.Drawing.Size(660, 157);
this.tpTimer.TabIndex = 1;
this.tpTimer.Text = "定时打印";
this.tpTimer.UseVisualStyleBackColor = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(12, 20);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(129, 37);
this.label5.TabIndex = 56;
this.label5.Text = "定时打印";
//
// cbPrintSpan
//
this.cbPrintSpan.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbPrintSpan.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbPrintSpan.FormattingEnabled = true;
this.cbPrintSpan.Items.AddRange(new object[] {
"10s",
"15s",
"20s",
"30s",
"40s",
"50s",
"60s",
"70s",
"80s"});
this.cbPrintSpan.Location = new System.Drawing.Point(153, 15);
this.cbPrintSpan.Margin = new System.Windows.Forms.Padding(4);
this.cbPrintSpan.Name = "cbPrintSpan";
this.cbPrintSpan.Size = new System.Drawing.Size(157, 45);
this.cbPrintSpan.TabIndex = 53;
//
// cbPrintCount
//
this.cbPrintCount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbPrintCount.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbPrintCount.FormattingEnabled = true;
this.cbPrintCount.Items.AddRange(new object[] {
"20",
"50",
"100",
"150",
"200",
"300",
"400"});
this.cbPrintCount.Location = new System.Drawing.Point(153, 76);
this.cbPrintCount.Margin = new System.Windows.Forms.Padding(4);
this.cbPrintCount.Name = "cbPrintCount";
this.cbPrintCount.Size = new System.Drawing.Size(157, 45);
this.cbPrintCount.TabIndex = 54;
//
// btnStart
//
this.btnStart.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStart.Location = new System.Drawing.Point(344, 14);
this.btnStart.Margin = new System.Windows.Forms.Padding(4);
this.btnStart.Name = "btnStart";
this.btnStart.Size = new System.Drawing.Size(135, 52);
this.btnStart.TabIndex = 55;
this.btnStart.Text = "开始";
this.btnStart.UseVisualStyleBackColor = true;
this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
//
// btnStop
//
this.btnStop.Enabled = false;
this.btnStop.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStop.Location = new System.Drawing.Point(495, 14);
this.btnStop.Margin = new System.Windows.Forms.Padding(4);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(135, 52);
this.btnStop.TabIndex = 55;
this.btnStop.Text = "停止";
this.btnStop.UseVisualStyleBackColor = true;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// lblLastCount
//
this.lblLastCount.AutoSize = true;
this.lblLastCount.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLastCount.Location = new System.Drawing.Point(498, 84);
this.lblLastCount.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblLastCount.Name = "lblLastCount";
this.lblLastCount.Size = new System.Drawing.Size(34, 37);
this.lblLastCount.TabIndex = 59;
this.lblLastCount.Text = "0";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(12, 81);
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(129, 37);
this.label7.TabIndex = 57;
this.label7.Text = "打印数量";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(346, 84);
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(129, 37);
this.label8.TabIndex = 58;
this.label8.Text = "剩余数量";
//
// timer2
//
this.timer2.Enabled = true;
this.timer2.Interval = 1000;
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabControl1.Location = new System.Drawing.Point(6, 6);
this.tabControl1.Margin = new System.Windows.Forms.Padding(15, 15, 15, 4);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1022, 910);
this.tabControl1.TabIndex = 41;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.DGView);
this.tabPage1.Location = new System.Drawing.Point(4, 40);
this.tabPage1.Margin = new System.Windows.Forms.Padding(4);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(4);
this.tabPage1.Size = new System.Drawing.Size(1014, 866);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "打印记录";
this.tabPage1.UseVisualStyleBackColor = true;
//
// SewingPrint
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1710, 922);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.groupBox1);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "SewingPrint";
this.Padding = new System.Windows.Forms.Padding(6);
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "注塑条码打印";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.InjectionCodePrint_FormClosed);
this.Load += new System.EventHandler(this.InjectionCodePrint_Load);
((System.ComponentModel.ISupportInitialize)(this.DGView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.plPrintSetting.ResumeLayout(false);
this.plPrintSetting.PerformLayout();
this.tpPrintMode.ResumeLayout(false);
this.tpManual.ResumeLayout(false);
this.tpManual.PerformLayout();
this.tpTimer.ResumeLayout(false);
this.tpTimer.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtMaterialCode;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textMaterialName;
private System.Windows.Forms.Button tsbPrint;
private System.Windows.Forms.DataGridView DGView;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.DataGridViewTextBoxColumn MAINCODE;
private System.Windows.Forms.DataGridViewTextBoxColumn MATERIAL_NAME;
private System.Windows.Forms.DataGridViewTextBoxColumn PRODUCTCODE;
private System.Windows.Forms.DataGridViewTextBoxColumn CREATETIME;
private System.Windows.Forms.ComboBox cbPrintCount;
private System.Windows.Forms.ComboBox cbPrintSpan;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Label lblLastCount;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.ComboBox cbMould;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabControl tpPrintMode;
private System.Windows.Forms.TabPage tpTimer;
private System.Windows.Forms.TabPage tpManual;
private System.Windows.Forms.Panel plPrintSetting;
private System.Windows.Forms.CheckBox cbTemplateDesign;
private System.Windows.Forms.TextBox textBox1;
}
}

708
APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs

@ -0,0 +1,708 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QMAPP.WinForm.Common;
using QMAPP.Entity;
using QMAPP.ServicesAgent;
using QMAPP.FJC.Entity.Operation;
using QMFrameWork.Common.Serialization;
using QMAPP.WinForm.Forms.Operation;
using QMAPP.FJC.Entity.Basic;
using QMAPP.MD.Entity.Bucket;
using QMAPP.MD.Entity;
namespace QMAPP.WinForm.Forms.Injection
{
public partial class SewingPrint : Form
{
//获取服务代理
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent();
List<ProcessParameter> paramcolumns = new List<ProcessParameter>();
FileSynchronizers.IFileSynchronizer sync;
public SewingPrint()
{
InitializeComponent();
}
private void InjectionCodePrint_Load(object sender, EventArgs e)
{
LoadMachineList();
SetConnectState(0);
//this.radioButSignal.Checked = true;
PrintTempleCopyClass printClass = new PrintTempleCopyClass();
printClass.CopyPrintTemple("InjectionCodePrint");
cbPrintCount.SelectedIndex = 3;
cbPrintSpan.SelectedIndex = 3;
}
#region 加载零件号
/// <summary>
/// 加载设备列表
/// </summary>
private void LoadMachineList()
{
#region
var material = new Material();
material.MATERIAL_TYPE_CODE = "IP_FENGREN"; //零件号类型
var materialResult = _agent.InvokeServiceFunction<List<Material>>("MaterialBLL_GetMaterialList", material);
materialResult.Insert(0, new Material { });
this.cbMould.DataSource = materialResult;
this.cbMould.DisplayMember = "MATERIAL_NAME";
this.cbMould.ValueMember = "MATERIAL_CODE";
#endregion
}
#endregion
#region 打印
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tsbPrint_Click(object sender, EventArgs e)
{
//窗体数据校验
string errorMessae = ErrorCheck();
if (errorMessae != "")
{
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
tsbPrint.Enabled = false;
CodeCreatePrint();
tsbPrint.Enabled = true;
}
private void CodeCreatePrint()
{
Material materialInfo = new Material();
materialInfo.MATERIAL_CODE = cbMould.SelectedValue.ToString();
materialInfo.MATERIAL_NAME = cbMould.Text;
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeForMP4", materialInfo);
//var machine = new MachineInfo();
//machine.MACHINENAME = "";
//machine.MACHINECODDE = "";
//machine.WORKCENTER_CODE = "";
//machine.WORKCELL_CODE = "";
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo, machine, model, "", new Dictionary<string, string>());
try
{
Print(resultList.Result, true);
}
catch (Exception e)
{
var ss = e.Message;
}
}
private void CodeCreatePrint(string header, string datarow, char[] dataSeparator)
{
List<Material> materialListInfo = GetSelectedMaterials();
//var machine = comMachine.SelectedItem as MachineInfo;
var model = cbMould.SelectedItem as MachineInfoModels;
if (model == null)
{
model = new MachineInfoModels();
}
string tableName = paramcolumns.FirstOrDefault().PARATABLENAME;
Dictionary<string,string> param=new Dictionary<string,string>();
param.Add("PARAMETER_COLUMNS",header);
var paramvalue=datarow.Split(dataSeparator);
for(int j=0;j<paramvalue.Length;j++)
{
if(j<paramcolumns.Count)
{
param.Add(paramcolumns[j].PARANAME,paramvalue[j]);
}
else
{
break;
}
}
int i = 1;
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo,machine,model,tableName,param);
//Print(resultList.Result,false);
}
private void Print(List<PrintCode> codeList,bool IsManual)
{
List<PrintTemplate.InjectLabel> labels = new List<PrintTemplate.InjectLabel>();
//打印条码
string typeTem = "";
string typeData = "";
foreach (PrintCode item in codeList)
{
//创建新行
var row = new DataGridViewRow();
if (DGView.Rows.Count == 0)
{
var index = this.DGView.Rows.Add();
row = DGView.Rows[index];
}
else
{
this.DGView.Rows.InsertCopy(0, 0);
row = DGView.Rows[0];
}
//对datagridview赋值
row.Cells["MATERIAL_NAME"].Value = item.MATERIAL_NAME;
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE;
row.Cells["MAINCODE"].Value = item.MAINCODE;
row.Cells["CREATETIME"].Value = DateTime.Now;
if (DGView.Rows.Count > 200)
{
DGView.Rows.RemoveAt(200);
}
//班次信息
string shiftCode = ClientContext.produceShift.PRODUCESHIFTTCODE;
item.ShiftCode = shiftCode;
DGView.AutoGenerateColumns = false;
typeTem = item.PRINT_TEMPALTE_TEM;
typeData = item.PRINT_TEMPALTE_DATA;
//QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo();
//ll.BarCode = item.MATERIAL_NAME + "," + item.PRODUCTCODE + "," + item.MAINCODE + "," + shiftCode + "," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
//QM.Assist.PrintUtil.LabelList2.Add(ll);
PrintTemplate.InjectLabel label = new PrintTemplate.InjectLabel
{
CreateDate = DateTime.Now,
//MachineCode = comMachine.SelectedValue + "",
MaterialCode = item.PRODUCTCODE,
MaterialName = item.MATERIAL_NAME,
ModelCode = cbMould.SelectedValue + "",
SerialNumber = item.MAINCODE,
ShiftCode = shiftCode,
IsManualPrint = IsManual
};
labels.Add(label);
}
string path = System.Configuration.ConfigurationManager.AppSettings["Template_Local_Path"];
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
FastReport.Report fr = new FastReport.Report();
fr.RegisterData(labels, "Labels");
if (!System.IO.File.Exists(string.Format("{0}\\{1}.frx", path, typeTem)))
{
if (System.IO.File.Exists(string.Format("PrintTemplate\\{1}.frx", path, typeTem)))
{
System.IO.File.Copy(string.Format("PrintTemplate\\{1}.frx", path, typeTem)
, string.Format("{0}\\{1}.frx", path, typeTem));
}
else
{
fr.FileName = string.Format("{0}\\{1}.frx", path, typeTem);
fr.Design(true);
fr.Save(string.Format("{0}\\{1}.frx", path, typeTem));
}
}
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem));
if (cbTemplateDesign.Enabled && cbTemplateDesign.Checked)
{
try
{
fr.Design(true);
}
catch (Exception e)
{
var ss = e.Message;
}
}
else
{
try
{
fr.PrintSettings.ShowDialog = false;
fr.Print();
}
catch (Exception e)
{
var ss = e.Message;
}
#region 张松男20210802 修改 增加新版注塑投料条码绑定
foreach (var la in labels)
{
var material_T = new BucketMaterialClass() { MaterialCode = la.MaterialCode };
var List = _agent.InvokeServiceFunction<List<RawMaterial>>(B9BasicService.RawMaterialBLL_GetListTo.ToString(), material_T);
if (List != null && List.Count > 0)
{
foreach (var raw in List)
{
var record = new RawMaterialRecord();
record.MaterialCode = la.MaterialCode;
record.MaterialName = la.MaterialName;
record.ProductCode = la.SerialNumber;
record.RawMaterialPID = raw.PID;
record.MachineCode = la.MachineCode;
_agent.InvokeServiceFunction<DataResult<int>>(B9BasicService.RawMaterialRecordBLL_Insert.ToString(), record);
}
}
}
#endregion
}
try
{
fr.Dispose();
}
catch (Exception e)
{
var ss = e.Message;
}
//QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil();
//pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString
// (), System.Configuration.ConfigurationManager.AppSettings[typeTem + "temPath"].ToString
// (), System.Configuration.ConfigurationManager.AppSettings[typeData + "dataPath"].ToString
// ());
}
private List<Material> GetSelectedMaterials()
{
List<Material> materialListInfo = new List<Material>();
Material concationMaterial = new Material();
//int i= Convert.ToInt32( this.txtNum.Text);
//if (this.radioButSignal.Checked == true)
//{
// string materialcode1 = this.txtMaterialCode.Text;
// concationMaterial.MATERIAL_CODE = materialcode1;
// materialListInfo.Add(concationMaterial);
//}
//else if (this.radioButDouble.Checked == true)
//{
// concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text;
// materialListInfo.Add(concationMaterial);
// if (!string.IsNullOrEmpty(this.comboxMaterial.SelectedValue.ToString()))
// {
// Material concationMaterial2 = new Material();
// concationMaterial2.MATERIAL_CODE = this.comboxMaterial.SelectedValue.ToString();
// materialListInfo.Add(concationMaterial2);
// }
//}
//else if (this.radioButFourth.Checked == true)
//{
// concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text;
// materialListInfo.Add(concationMaterial);
// if (!string.IsNullOrEmpty(this.txtMaterial2.Text))
// {
// Material concationMaterial3 = new Material();
// concationMaterial3.MATERIAL_CODE = this.txtMaterial2.Text.Substring(this.txtMaterial2.Text.LastIndexOf(":") + 1);
// materialListInfo.Add(concationMaterial3);
// }
// if (!string.IsNullOrEmpty(this.txtMaterial3.Text))
// {
// Material concationMaterial4 = new Material();
// concationMaterial4.MATERIAL_CODE = this.txtMaterial3.Text.Substring(this.txtMaterial3.Text.LastIndexOf(":") + 1);
// materialListInfo.Add(concationMaterial4);
// }
// if (!string.IsNullOrEmpty(this.txtMaterial4.Text))
// {
// Material concationMaterial5 = new Material();
// concationMaterial5.MATERIAL_CODE = this.txtMaterial4.Text.Substring(this.txtMaterial4.Text.LastIndexOf(":") + 1);
// materialListInfo.Add(concationMaterial5);
// }
//}
return materialListInfo;
}
#endregion
#region 校验
/// <summary>
/// 校验
/// </summary>
/// <returns></returns>
private string ErrorCheck()
{
#region
string strMessage = "";
if (cbMould.Items.Count > 0 && cbMould.SelectedIndex < 0)
{
strMessage += "请选择零件!" + "\r\n";
}
//注塑零件
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty)
{
strMessage += Resource1.MaterialChoiceValidate + "\r\n";
}
return strMessage;
#endregion
}
#endregion
#region 窗体关闭
/// <summary>
/// 窗体关闭
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tsbClose_Click(object sender, EventArgs e)
{
this.Close();
}
#endregion
#region 点击选择零件信息
/// <summary>
/// 点击选择零件信息
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnChoiceMaterial_Click(object sender, EventArgs e)
{
MaterialTreeForm materialForm = new MaterialTreeForm();
var ret= materialForm.ShowDialog();
if (ret == DialogResult.OK)
{
this.txtMaterialCode.Text = materialForm.MaterialCode;
this.textMaterialName.Text = materialForm.MaterialName;
bool maintype = materialForm.MainType;
if (maintype)
{
//this.groupBox3.Enabled = true;
}
else
{
//this.groupBox3.Enabled = false;
}
}
}
#endregion
/// <summary>
/// 所选零件发生改变
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void txtMaterialCode_TextChanged(object sender, EventArgs e)
{
//radioButSignal.Checked = true;
}
private void btnStart_Click(object sender, EventArgs e)
{
//窗体数据校验
string errorMessae = ErrorCheck();
if (errorMessae != "")
{
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
btnStart.Enabled = false;
btnStop.Enabled = true;
cbPrintCount.Enabled = false;
cbPrintSpan.Enabled = false;
lblLastCount.Text = cbPrintCount.Text;
tsbPrint.Enabled = false;
//btnChoiceMaterial.Enabled = false;
//groupBox3.Enabled = false;
printtimer = int.Parse(cbPrintSpan.Text.Trim('s'));
LockPrintMode(2);
}
private void btnStop_Click(object sender, EventArgs e)
{
btnStart.Enabled = true;
btnStop.Enabled = false;
cbPrintCount.Enabled = true;
cbPrintSpan.Enabled = true;
//lblLastCount.Text = cbPrintCount.Text;
tsbPrint.Enabled = true;
//btnChoiceMaterial.Enabled = true;
//groupBox3.Enabled = true;
LockPrintMode(-1);
}
int printtimer = 0;
private void timer2_Tick(object sender, EventArgs e)
{
if (!btnStart.Enabled&&btnStop.Enabled)
{
int span=int.Parse(cbPrintSpan.Text.Trim('s'));
if (printtimer >= span)
{
CodeCreatePrint();
printtimer = 0;
var lastcount = int.Parse(lblLastCount.Text) - 1;
lblLastCount.Text = lastcount + "";
if (lastcount <= 0)
{
btnStop_Click(sender, e);
}
}
else
{
printtimer++;
}
}
else
{
printtimer = 0;
}
}
private void comMachine_SelectedIndexChanged(object sender, EventArgs e)
{
//var selectmachine = comMachine.SelectedItem as MachineInfo;
//if (selectmachine != null && !string.IsNullOrEmpty(selectmachine.PID))
//{
// var mouldList = _agent.InvokeServiceFunction<List<MachineInfoModels>>(B9BasicService.MachineInfoModelBLL_GetAllList.ToString(), new MachineInfoModels { MID = "INJ_MODEL" }).OrderBy(p => p.MODELCODE).ToList();
// mouldList.Insert(0, new MachineInfoModels { });
// cbMould.DisplayMember = "MODELNAME";
// cbMould.ValueMember = "MODELCODE";
// cbMould.DataSource = mouldList.ToList();
// if (selectmachine.ISCONTROL == "1")
// {
// HideTimerPrint(true);
// }
// else
// {
// HideTimerPrint(false);
// }
//}
}
private void txtCode_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)//如果输入的是回车键
{
}
}
private void btnStartFileScan_Click(object sender, EventArgs e)
{
//窗体数据校验
string errorMessae = ErrorCheck();
if (errorMessae != "")
{
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
//var selectmachine= comMachine.SelectedItem as MachineInfo;
//if (selectmachine != null&&!string.IsNullOrEmpty(selectmachine.PID))
//{
// //txtFilePath.Text = selectmachine.EQUIPMENT_DIRECTORY;
// var columns = _agent.InvokeServiceFunction<DataResult<List<ProcessParameter>>>("ProcessParameterBLL_GetAllList", new ProcessParameter { MACHINECODDE = selectmachine.MACHINECODDE }).Result;
// if (columns != null)
// {
// paramcolumns = columns;
// }
// else
// {
// paramcolumns = new List<ProcessParameter>();
// }
// //lvParamRecords.Items.Clear();
// //lvParamRecords.Columns.Clear();
// //var c1=lvParamRecords.Columns.Add("扫描时间");
// //c1.Width=180;
// foreach (var col in paramcolumns)
// {
// //var c= lvParamRecords.Columns.Add(col.PARADESCRIBE);
// }
// if (selectmachine.EQUIPMENT_TYPE_CODE == "HaitianInjection")
// {
// sync = new FileSynchronizers.HaitianInjectionFileSynchronizer(selectmachine);
// }
// else if (selectmachine.EQUIPMENT_TYPE_CODE == "EngelInjection")
// {
// sync = new FileSynchronizers.EngelInjectionFileSynchronizer(selectmachine);
// }
// else
// {
// MessageBox.Show("注塑机型号未设定!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
// return;
// }
// sync.NewRecordFound += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_NewRecordFound);
// sync.ExceptionCatched += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_ExceptionCatched);
// //sync.Start(cbSkipHistory.Checked);
// SetConnectState(1);
// //btnStartFileScan.Enabled = false;
// //btnStopFileScan.Enabled = true;
// LockPrintMode(0);
//}
//else
//{
// MessageBox.Show("请选择注塑机!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
//}
}
/// <summary>
/// 设置连接状态
/// </summary>
/// <param name="state">0:停止 1:正常 2:断开</param>
void SetConnectState(int state)
{
switch (state)
{
case 0:
{
//txtConnectState.Text = "扫描停止";
//picConnectState.Image = WinForm.Resource1.stop;
break;
}
case 1:
{
//txtConnectState.Text = "扫描正常";
//picConnectState.Image = WinForm.Resource1.reload;
break;
}
case 2:
{
//txtConnectState.Text = "连接断开";
//picConnectState.Image = WinForm.Resource1.no;
break;
}
}
}
/// <summary>
/// 锁定打印模式
/// </summary>
/// <param name="mode">-1 解锁; 0 联机; 1 手动; 2 定时;</param>
void LockPrintMode(int mode)
{
for(int i=0;i<tpPrintMode.Controls.Count;i++)
{
if(i==mode)
{
tpPrintMode.Controls[i].Enabled = true;
}
else if (mode < 0)
{
tpPrintMode.Controls[i].Enabled = true;
}
else
{
tpPrintMode.Controls[i].Enabled = false;
}
}
plPrintSetting.Enabled = mode < 0;
}
/// <summary>
/// 隐藏定时打印模式
/// </summary>
void HideTimerPrint(bool hide)
{
if (hide)
{
if (tpPrintMode.Controls.Contains(tpTimer))
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide;
tpPrintMode.Controls.Remove(tpTimer);
}
else
{
if (!tpPrintMode.Controls.Contains(tpTimer))
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide;
tpPrintMode.Controls.Add(tpTimer);
}
}
private void InjectionCodePrint_FormClosed(object sender, FormClosedEventArgs e)
{
if (sync != null)
{
sync.Stop();
}
}
private void btnLockMachine_Click(object sender, EventArgs e)
{
LockMachine(true);
/* if (this.btnLockMachine.Tag.ToString().Equals("0"))
{
LockMachine(false);
}
else
{
LockMachine(true);
}*/
}
#region 设备锁定
/// <summary>
/// 设备锁定
/// </summary>
/// <param name="lockFlag"></param>
private void LockMachine(bool lockFlag)
{
//this.comMachine.Enabled = lockFlag;
////this.comProductType.Enabled = lockFlag;
//if (lockFlag)
//{
// this.btnLockMachine.Text = "锁定";
// this.btnLockMachine.Tag = "0";
//}
//else
//{
// ClientContext.MachineInfo = this.comMachine.SelectedItem as MachineInfo;
// string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"];
// System.IO.File.WriteAllText(locationfile, this.comMachine.SelectedValue.ToString());
// this.btnLockMachine.Text = "解锁";
// this.btnLockMachine.Tag = "1";
//}
}
#endregion
private void cbMould_SelectedIndexChanged(object sender, EventArgs e)
{
if (cbMould.SelectedValue != null && cbMould.SelectedValue.ToString() != "QMAPP.MD.Entity.Material")
{
textMaterialName.Text = cbMould.Text;
txtMaterialCode.Text = cbMould.SelectedValue.ToString();
}
else
{
textMaterialName.Text = "";
txtMaterialCode.Text = "";
}
}
}
}

138
APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx

@ -0,0 +1,138 @@
<?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>
<metadata name="MAINCODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MATERIAL_NAME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PRODUCTCODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CREATETIME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>33</value>
</metadata>
</root>

573
APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.Designer.cs

File diff suppressed because it is too large

195
APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs

@ -29,6 +29,7 @@ using QMAPP.FJC.Entity.ProductionPlan;
using gregn6Lib; using gregn6Lib;
using System.Data; using System.Data;
using QMAPP.FJC.Entity.BZD; using QMAPP.FJC.Entity.BZD;
using QMAPP.FJC.Entity.MD;
namespace QMAPP.WinForm.Forms.Operation namespace QMAPP.WinForm.Forms.Operation
{ {
@ -109,6 +110,9 @@ namespace QMAPP.WinForm.Forms.Operation
private string _DeleteProductLoc = string.Empty; //撤销按钮删除产品信息触发工位 private string _DeleteProductLoc = string.Empty; //撤销按钮删除产品信息触发工位
private string _DeleteProductDaiCode = string.Empty; //撤销按钮删除产品信息触发采集点 private string _DeleteProductDaiCode = string.Empty; //撤销按钮删除产品信息触发采集点
private string[] _scanGlueLocs = null;// 扫描混胶时间工位列表 --喷胶工位.
private string _glueTime = null;// 混胶时间 --喷胶工位.
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -142,6 +146,10 @@ namespace QMAPP.WinForm.Forms.Operation
_DeleteProductLoc = GetAppConfigValue("DeleteProductLoc"); _DeleteProductLoc = GetAppConfigValue("DeleteProductLoc");
_DeleteProductDaiCode = GetAppConfigValue("DeleteProductDaiCode"); _DeleteProductDaiCode = GetAppConfigValue("DeleteProductDaiCode");
string scanGlues = System.Configuration.ConfigurationManager.AppSettings["喷胶验证混胶时间工位"]?.Trim();
_scanGlueLocs = scanGlues?.Split(';') ?? new string[] { };
_glueTime = GetAppConfigValue("Gluetime");
this.WindowState = FormWindowState.Maximized; this.WindowState = FormWindowState.Maximized;
//this.CheckFile(); //this.CheckFile();
okSoundPath = System.Configuration.ConfigurationManager.AppSettings["SaveFilePath"] + "Sound\\" + PlaySoundConst.strSoundOk; okSoundPath = System.Configuration.ConfigurationManager.AppSettings["SaveFilePath"] + "Sound\\" + PlaySoundConst.strSoundOk;
@ -675,6 +683,61 @@ namespace QMAPP.WinForm.Forms.Operation
#endregion #endregion
#region DQZhang 喷胶工位验证混胶时间 20220309
//喷胶验证混胶时间工位
if (_scanGlueLocs.Length > 0 && _scanGlueLocs.Contains(_operationServiceParam.machineInfo.WORKLOC_CODE))
{
//验证是否经过手动喷胶工位扫码.
if (System.Text.RegularExpressions.Regex.IsMatch(productCode, "^>CMD:GLUETIME"))
{
if (MessageBox.Show($"确认胶水时间切换到{System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}时间?", "提示", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
{
return;
}
//DateTime gluetime = System.DateTime.Now;
//txtCfg.Text = "胶水时间:" + gluetime;
txtGlue.Text = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
UpdateAppConfigValue("Gluetime", System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
txtGlue.Visible = true;
//txtGlue0.Visible = true;
txtCode.Text = "";
txtCode.Focus();
return;
}
if (txtGlue.Text.Length < 1)
{
this.lblError.Text = "无混胶记录!";
this.lblError.ForeColor = Color.Red;
txtCode.SelectAll();
txtCode.Focus();
return;
}
else
{
//验证混胶时间
DateTime PlacingDateTime = Convert.ToDateTime(txtGlue.Text);
string PlacingTime = System.Configuration.ConfigurationManager.AppSettings["混胶时间"];
var timespan = (DateTime.Now - Convert.ToDateTime(PlacingDateTime)).TotalHours;
if (!string.IsNullOrEmpty(PlacingTime) && timespan > int.Parse(PlacingTime))
{
this.lblError.Text = "混胶使用时间大于 < " + PlacingTime + "> 小时";
this.lblError.ForeColor = Color.Red;
txtCode.SelectAll();
txtCode.Focus();
return;
}
}
//return;
}
#endregion
#region 条码格式解析 #region 条码格式解析
var dai = LocateDAI(productCode); var dai = LocateDAI(productCode);
@ -702,9 +765,12 @@ namespace QMAPP.WinForm.Forms.Operation
this.lblError.BackColor = SystemColors.InactiveBorder; this.lblError.BackColor = SystemColors.InactiveBorder;
#endregion #endregion
object davalue = productCode; object davalue = productCode;
//if(string.IsNullOrEmpty(_cfgAutoProduct)) //if(string.IsNullOrEmpty(_cfgAutoProduct))
// _cfgAutoProduct = productCode; // _cfgAutoProduct = productCode;
//采集点输入 //采集点输入
var result = _agent.InvokeServiceFunction<DAResult>(B9IPCService.DAI_Input.ToString() var result = _agent.InvokeServiceFunction<DAResult>(B9IPCService.DAI_Input.ToString()
, new DAArgs , new DAArgs
@ -720,6 +786,7 @@ namespace QMAPP.WinForm.Forms.Operation
MouldCode = string.Equals(dai.DIVBY_MOULD, "0") ? _operationServiceParam.machineInfo.WORKCELL_CODE : (string.IsNullOrWhiteSpace(lblMould.Text) ? _operationServiceParam.machineInfo.WORKCELL_CODE : lblMould.Text), MouldCode = string.Equals(dai.DIVBY_MOULD, "0") ? _operationServiceParam.machineInfo.WORKCELL_CODE : (string.IsNullOrWhiteSpace(lblMould.Text) ? _operationServiceParam.machineInfo.WORKCELL_CODE : lblMould.Text),
AttachData = AttachInfo AttachData = AttachInfo
}); });
var daiview = daicache.FirstOrDefault(p => p.DACode == dai.DA_CODE && (string.IsNullOrWhiteSpace(p.MouldCode) || p.MouldCode == (result.PreInput ? "PRE-" + result.MouldCode : result.MouldCode))); var daiview = daicache.FirstOrDefault(p => p.DACode == dai.DA_CODE && (string.IsNullOrWhiteSpace(p.MouldCode) || p.MouldCode == (result.PreInput ? "PRE-" + result.MouldCode : result.MouldCode)));
if (result.PreInput) if (result.PreInput)
{ {
@ -1281,6 +1348,12 @@ namespace QMAPP.WinForm.Forms.Operation
PrintProcessLabel(result.ProcessCode); PrintProcessLabel(result.ProcessCode);
break; break;
} }
case "PRINT_BFPROCESS": //状态变化动作为 打印过程码(包覆分总成打印)
{
//TODO:清空界面数据 复位启动信号
PrintBFProcessLabel(result.ProcessCode);
break;
}
case "PRINT_PLAN": //状态变化动作为 打印计划标签 case "PRINT_PLAN": //状态变化动作为 打印计划标签
{ {
//TODO:清空界面数据 复位启动信号 //TODO:清空界面数据 复位启动信号
@ -2088,6 +2161,118 @@ namespace QMAPP.WinForm.Forms.Operation
} }
#endregion #endregion
#region 包覆分总成打印
private void PrintBFProcessLabel(string processcode)
{
string selectKey = processcode;
List<Product> list_product = _agent.InvokeServiceFunction<List<Product>>(B9IPCService.ProductBLL_GetListpro.ToString(), new Product() { PRODUCTCODE = selectKey });
if (list_product.Count == 0)
{
MessageBox.Show("获取产品信息异常!");
return;
}
var product = new Product();
foreach (var item in list_product)
{
if (item.MACHINECODDE == _operationServiceParam.machineInfo.MACHINECODDE)
{
product = item;
}
}
Material materialInfo = new Material();
materialInfo.MATERIAL_CODE = product.MATERIAL_CODE;
materialInfo.MATERIAL_NAME = product.MATERIAL_NAME;
DataResult<List<FJC.Entity.Operation.PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<FJC.Entity.Operation.PrintCode>>>("MainOperationBLL_GetPrintCodeForMP4", materialInfo);
try
{
Print(resultList.Result, true);
}
catch (Exception e)
{
var ss = e.Message;
}
}
private void Print(List<FJC.Entity.Operation.PrintCode> codeList, bool IsManual)
{
List<PrintTemplate.InjectLabel> labels = new List<PrintTemplate.InjectLabel>();
//打印条码
string typeTem = "";
string typeData = "";
foreach (FJC.Entity.Operation.PrintCode item in codeList)
{
//班次信息
string shiftCode = ClientContext.produceShift.PRODUCESHIFTTCODE;
item.ShiftCode = shiftCode;
typeTem = item.PRINT_TEMPALTE_TEM;
typeData = item.PRINT_TEMPALTE_DATA;
PrintTemplate.InjectLabel label = new PrintTemplate.InjectLabel
{
CreateDate = DateTime.Now,
//MachineCode = comMachine.SelectedValue + "",
MaterialCode = item.PRODUCTCODE,
MaterialName = item.MATERIAL_NAME,
ModelCode = cbMould.SelectedValue + "",
SerialNumber = item.MAINCODE,
ShiftCode = shiftCode,
IsManualPrint = IsManual
};
labels.Add(label);
}
string path = System.Configuration.ConfigurationManager.AppSettings["Template_Local_Path"];
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
FastReport.Report fr = new FastReport.Report();
fr.RegisterData(labels, "Labels");
if (!System.IO.File.Exists(string.Format("{0}\\{1}.frx", path, typeTem)))
{
if (System.IO.File.Exists(string.Format("PrintTemplate\\{1}.frx", path, typeTem)))
{
System.IO.File.Copy(string.Format("PrintTemplate\\{1}.frx", path, typeTem)
, string.Format("{0}\\{1}.frx", path, typeTem));
}
else
{
fr.FileName = string.Format("{0}\\{1}.frx", path, typeTem);
fr.Design(true);
fr.Save(string.Format("{0}\\{1}.frx", path, typeTem));
}
}
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem));
try
{
fr.PrintSettings.ShowDialog = false;
fr.Print();
}
catch (Exception e)
{
var ss = e.Message;
}
try
{
fr.Dispose();
}
catch (Exception e)
{
var ss = e.Message;
}
}
#endregion
#region 计划标签打印 #region 计划标签打印
/// <summary> /// <summary>
/// 计划标签打印 /// 计划标签打印
@ -3626,6 +3811,16 @@ namespace QMAPP.WinForm.Forms.Operation
else else
return null; return null;
} }
/// <summary>
/// 更新配置表
/// </summary>
/// <returns></returns>
public int UpdateAppConfigValue(string pConfigCode, string pConfigValue)
{
var result = _agent.InvokeServiceFunction<DataResult<int>>(B9IPCService.AppConfigBLL_UpdateAppConfig.ToString(), pConfigCode, pConfigValue);
return result.Result;
}
/// <summary> /// <summary>
/// 查找PbomItem /// 查找PbomItem

185
APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.resx

@ -154,7 +154,7 @@
<data name="tsbCancel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbCancel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA0DSURBVGhDzZlZbFx3FcZDSouKkNgEQiCEWISoWglRChUC YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAA0DSURBVGhDzZlZbFx3FcZDSouKkNgEQiCEWISoWglRChUC
CSE2CQkhsai8oIIEZZEQ8IDEAyAQD6gPtBXQIhUQhcaJtxl7vNvxeGyP19iO9y2O7dhxYsdrnMRL7Ln3 CSE2CQkhsai8oIIEZZEQ8IDEAyAQD6gPtBXQIhUQhcaJtxl7vNvxeGyP19iO9y2O7dhxYsdrnMRL7Ln3
8Pvu3L97PbbbNE0pV/ryn9yZe+/3nfOd8z83OXanD9/MAvDHPoTnw5/9/xy3S+w1F3TYw7czZivbvs1c 8Pvu3L97PbbbNE0pV/ryn9yZe+/3nfOd8z83OXanD9/MAvDHPoTnw5/9/xy3S+w1F3TYw7czZivbvs1c
8+3cVbDm2zjQOr3u2+Kmb5u7B6/7nwqJPkyfr960gGz7gmc1Fz2rnPGs/IJnCWHas9IpMMlnUM7nKtDM 8+3cVbDm2zjQOr3u2+Kmb5u7B6/7nwqJPkyfr960gGz7gmc1Fz2rnPGs/IJnCWHas9IpMMlnUM7nKtDM
@ -216,7 +216,7 @@
<data name="tsbPass.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbPass.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA27SURBVGhDxZlZbB13FcbdpC0gBAIJiUUgxBu0gUKhiBek YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAA27SURBVGhDxZlZbB13FcbdpC0gBAIJiUUgxBu0gUKhiBek
PgClEn2DFx5AoKoV8MATEggkUIXEU0FVmxbRNkFtFu/7bsd27MSOd1/v+27H8RbHTmzn3jvz8Ttz5387 PgClEn2DFx5AoKoV8MATEggkUIXEU0FVmxbRNkFtFu/7bsd27MSOd1/v+27H8RbHTmzn3jvz8Ttz5387
vnGWQlL+4uvcO547833nfOf8z4Ss+7V8SYbw621XcB3/uZdrH/g6jISR20tK1+MHsZeQPP4WXpZe/xch vnGWQlL+4uvcO547833nfOf8z4Ss+7V8SYbw621XcB3/uZdrH/g6jISR20tK1+MHsZeQPP4WXpZe/xch
mQ/dhuDMtq+eNV+tK57qFz1VzaVQOcsR1PH5wpKn7hVfU1d9Xds/mIUPRIg9xD3opifN7UD4iq+qBU+l mQ/dhuDMtq+eNV+tK57qFz1VzaVQOcsR1PH5wpKn7hVfU1d9Xds/mIUPRIg9xD3opifN7UD4iq+qBU+l
@ -281,7 +281,7 @@
<data name="tsbRecovery.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbRecovery.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA5OSURBVGhDzZl7bGTnWcad7CZtFCrSv6hEQJSbQEKoFagU YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAA5OSURBVGhDzZl7bGTnWcad7CZtFCrSv6hEQJSbQEKoFagU
ISQQFSKUUipo1RaJSkCCUEv+aqUUiaoK/IEolEhJRaGtINn4PvbYnrHXXt+9vq29vl/XY3vs9a69Xt+9 ISQQFSKUUipo1RaJSkCCUEv+aqUUiaoK/IEolEhJRaGtINn4PvbYnrHXXt+9vq29vl/XY3vs9a69Xt+9
vs3MmfPwe785xzlevOmSJk0/7bvnMmfmPM97fb7dondi+ZIeZMEjP1rrrQB71wmdByDPjYOsdOfQ18o9 vs3MmfPwe785xzlevOmSJk0/7bvnMmfmPM97fb7dondi+ZIeZMEjP1rrrQB71wmdByDPjYOsdOfQ18o9
X+k9X4vYzX1fawe+9jNSLn/2O+8KkegLjz3pJuBGNn213s6r4WZeyeW8Ekt51aUDW+QaS2JN3B9Yg9iO X+k9X4vYzX1fawe+9jNSLn/2O+8KkegLjz3pJuBGNn213s6r4WZeyeW8Ekt51aUDW+QaS2JN3B9Yg9iO
@ -348,7 +348,7 @@
<data name="tsbConnect.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbConnect.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABLSSURBVGhDvVkJlFvVeRbGlPQ0SWlKMQkxxGw5sQNxVjAN YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAABLSSURBVGhDvVkJlFvVeRbGlPQ0SWlKMQkxxGw5sQNxVjAN
Li0hlJO0SVrS5RBOSk9y2BJKSM5pWiBpwuJgswwY23jBC97HMx6Px7NrRrN6pJFGM5JGGkkzo2W0j/Zd Li0hlJO0SVrS5RBOSk9y2BJKSM5pWiBpwuJgswwY23jBC97HMx6Px7NrRrN6pJFGM5JGGkkzo2W0j/Zd
epLe1+9qJDI4JrQ5mHvON/e9p/f0vu/f7n81ivdryABk/hFz7dLvDPF55T3u+UDHuxEpk2mhXENpaT7f epLe1+9qJDI4JrQ5mHvON/e9p/f0vu/f7n81ivdryABk/hFz7dLvDPF55T3u+UDHuxEpk2mhXENpaT7f
veKaEFU7/eDGuWSKJOjPlmCKFqAO5tDvyaDLlUanI4X2uRQ6ZpPo4/GoOw0TPw+mJJToitrjH6yQOnkR veKaEFU7/eDGuWSKJOjPlmCKFqAO5tDvyaDLlUanI4X2uRQ6ZpPo4/GoOw0TPw+mJJToitrjH6yQOnkR
@ -435,7 +435,7 @@
<data name="tsbPrint.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbPrint.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA7mSURBVGhD1ZlZcFvXfcapum3SptMm05l4Jk/tg97qNs1L YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAA7mSURBVGhD1ZlZcFvXfcapum3SptMm05l4Jk/tg97qNs1L
X/rUaR4Sd6YvfehMl6nTJJ7YriwpsceOY1dy5IoSCW5auG8gQHARCe47KXHfSQAiiH0HCYAEd4AgCBBf X/rUaR4Sd6YvfehMl6nTJJ7YriwpsceOY1dy5IoSCW5auG8gQHARCe47KXHfSQAiiH0HCYAEd4AgCBBf
v3MBUKQs2nStOOqZOby4FyDu9/uv51xkfFUDSCA549Ixdfn/zwBiFL57LPwkSIJc0sUXcQBHkjgkFqj5 v3MBUKQs2nStOOqZOby4FyDu9/uv51xkfFUDSCA549Ixdfn/zwBiFL57LPwkSIJc0sUXcQBHkjgkFqj5
L6hZdgyS4HuJRPxY/AsJIiwtHaP/AUR4eniBl/6MIIWYcYfRoI3CsLaP+FHsRRSfsn5cB2x/jYan+PBL L6hZdgyS4HuJRPxY/AsJIiwtHaP/AUR4eniBl/6MIIWYcYfRoI3CsLaP+FHsRRSfsn5cB2x/jYan+PBL
@ -505,89 +505,89 @@
<data name="tsbSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABMTSURBVGhD1VkJdFvllU5pCzPT0tKWMlOmLZACBU6X6ZSl YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAABMRSURBVGhD1VkJdFvllU5pCzPT0kJLmSnTFkiBAqfLdMrS
LUvKTmmHE0gCnaFMIUAIlISUAoW0VCGkWew4DomzLwqxJdvyIlubtT8vkvdFsmXLuyxrsSTLS7xbeu// liVDWQsdTiAJdIYyhQAhUBJSChTSUkGSyWLHcUicfVGILdmWF9narP15kbwvki1b3mVZiyVZXuLd0nv/
5j75JZBj0oSeYQ7znXOPj/0//e9+d7/ykk8CAD6j8uDiEj+7UtvPfqjrYT/T9yXv1/vZzYYBdpPah8tU N/fJL4Eckyb0DHOY75x7fOz/6X/3u/uVl3waAPA5lQcXl/jZVdp+9iNdD/u5vi95v97PbjEMsJvVPlym
wGelxz8d4Dh8rrSTXaPpxHJNl7CjpFMwaXv5Zl1fslvXn/DrB+aHiESffjDp1fr5Gn1IUBmC7DVDCHdY Aj4vPf7ZAMfhC6Wd7FpNJ5ZruoQdJZ2CSdvLN+v6kt26/oRfPzA/RCT69INJr9bP1+hDgsoQZK8bQrjT
guxr0jX/95D78A/qNvYzdYewu9TDt2o6QwlNN4O2F9D1A/oBwOAHygIkQZIQSVgUBpksg2lCM+NlEcFm EmRfl675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YmlvBnsi3se+ec7O6EFDYPJVw B7uUPHIHeWKt0irsU1oEvdJKTdCS7FGaEwGFlW/LtfPVSpuQm1subM2tYE/m29j3zrlZXQgobJ5OuO4b
3TewYPkcUv7ZRcoLLfecZAMPfuMQ7aUqleqC/ulGnrk428C+RKH0dRWHf1Ga2ZUUGlfkG9lXxRD5WMn5 WLB8Din/3CLlhZZfnGQDD37zEO2lKpXqgv7pRp65ONvAvkKh9A0Vh39SmtlVFBpX5hvZ18QQ+UTJ+dcw
tzDnuiOO6Ctk+QIpbJadUd4nvyoJ190nmP++M8v1pw6Iv0WWz5aUv/Msy6eU77vnn6VHP53ArJiwa8+y 57ozjuirZPkCKWyWnVHeJ786Cdc9J5j/vjPL9WcOiL9Nls+WlL/rLMunlO/7xT9Kj342gVkxYdeeZfmP
/IfDRnrs0wsMrP7A8nm3IKS5IyG47pZ/qsPmw0glbBEpr7wFsN4OUl79/0b5JUuW/A8UFNW01ao+6gAA ho302GcXGFj9oeXzbkVIc2dCcN0j/0yHzUeRStgiUl55K2C9A6S8+v+N8kuWLPkfBS3VmmzOrPUAAAAA
AABJRU5ErkJggg== SUVORK5CYII=
</value> </value>
</data> </data>
<metadata name="dgcMListMaterialName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dgcMListMaterialName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@ -599,15 +599,6 @@
<metadata name="dgcMListQty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dgcMListQty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="dgcMListMaterialName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dgcMListMaterialCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dgcMListQty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dgcOrderNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dgcOrderNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>

6
APPQ5/QMAPP.WinForm/Forms/Operation/PrintPlanLabel.cs

@ -427,7 +427,11 @@ namespace QMAPP.WinForm.Forms.Operation
} }
tsbPrint.Enabled = false; tsbPrint.Enabled = false;
var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[0].DataBoundItem; var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[0].DataBoundItem;
var order2 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[1].DataBoundItem; var order2 = new FJC.Entity.ProductionPlan.WorkOrder();
if (dgvPlan.Rows.Count > 1)
{
order2 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[1].DataBoundItem;
}
var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>(); var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>();
orders.Add(order1); orders.Add(order1);

12
APPQ5/QMAPP.WinForm/MainForm.Designer.cs

@ -36,6 +36,7 @@
this.btnInjectPut = new System.Windows.Forms.ToolStripMenuItem(); this.btnInjectPut = new System.Windows.Forms.ToolStripMenuItem();
this.btnInjectPutNEW = new System.Windows.Forms.ToolStripMenuItem(); this.btnInjectPutNEW = new System.Windows.Forms.ToolStripMenuItem();
this.btnInjectPrintForm = new System.Windows.Forms.ToolStripMenuItem(); this.btnInjectPrintForm = new System.Windows.Forms.ToolStripMenuItem();
this.btnSewingPrint = new System.Windows.Forms.ToolStripMenuItem();
this.线ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.线ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.btnvVWSinglePrint = new System.Windows.Forms.ToolStripMenuItem(); this.btnvVWSinglePrint = new System.Windows.Forms.ToolStripMenuItem();
this.btnvVWSinglePrintNew = new System.Windows.Forms.ToolStripMenuItem(); this.btnvVWSinglePrintNew = new System.Windows.Forms.ToolStripMenuItem();
@ -108,7 +109,8 @@
this.btnInjectPrint, this.btnInjectPrint,
this.btnInjectPut, this.btnInjectPut,
this.btnInjectPutNEW, this.btnInjectPutNEW,
this.btnInjectPrintForm}); this.btnInjectPrintForm,
this.btnSewingPrint});
this.btnInjectGroup.Name = "btnInjectGroup"; this.btnInjectGroup.Name = "btnInjectGroup";
this.btnInjectGroup.Size = new System.Drawing.Size(94, 28); this.btnInjectGroup.Size = new System.Drawing.Size(94, 28);
this.btnInjectGroup.Text = "注塑下线"; this.btnInjectGroup.Text = "注塑下线";
@ -141,6 +143,13 @@
this.btnInjectPrintForm.Text = "注塑条码补打"; this.btnInjectPrintForm.Text = "注塑条码补打";
this.btnInjectPrintForm.Click += new System.EventHandler(this.btnInjectPrintForm_Click); this.btnInjectPrintForm.Click += new System.EventHandler(this.btnInjectPrintForm_Click);
// //
// btnInjectPrintForm
//
this.btnSewingPrint.Name = "btnSewingPrint";
this.btnSewingPrint.Size = new System.Drawing.Size(188, 28);
this.btnSewingPrint.Text = "缝纫条码打印";
this.btnSewingPrint.Click += new System.EventHandler(this.btnSewingPrint_Click);
//
// 搪塑下线ToolStripMenuItem // 搪塑下线ToolStripMenuItem
// //
this.线ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.线ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -496,6 +505,7 @@
private System.Windows.Forms.ToolStripMenuItem btnInjectPut; private System.Windows.Forms.ToolStripMenuItem btnInjectPut;
private System.Windows.Forms.ToolStripMenuItem btnInjectPutNEW; private System.Windows.Forms.ToolStripMenuItem btnInjectPutNEW;
private System.Windows.Forms.ToolStripMenuItem btnInjectPrintForm; private System.Windows.Forms.ToolStripMenuItem btnInjectPrintForm;
private System.Windows.Forms.ToolStripMenuItem btnSewingPrint;
private System.Windows.Forms.ToolStripMenuItem btnOperateGroup; private System.Windows.Forms.ToolStripMenuItem btnOperateGroup;
private System.Windows.Forms.ToolStripMenuItem btnOperateStation; private System.Windows.Forms.ToolStripMenuItem btnOperateStation;
private System.Windows.Forms.ToolStripMenuItem btnMendGroup; private System.Windows.Forms.ToolStripMenuItem btnMendGroup;

20
APPQ5/QMAPP.WinForm/MainForm.cs

@ -188,6 +188,26 @@ namespace QMAPP.WinForm
} }
} }
private void btnSewingPrint_Click(object sender, EventArgs e)
{
Form f = Application.OpenForms["SewingPrint"]; //查找是否打开过Form1窗体
if (f == null) //没打开过
{
SewingPrint form = new SewingPrint();
ClientContext.SetUserAuth(form);
new KeyEvent().SetKeyToTxt(form);
form.MdiParent = this;
form.Show(); //重新new一个Show出来
}
else
{
f.WindowState = FormWindowState.Normal;
f.Focus(); //打开过就让其获得焦点
}
}
private void btnInjectionCheck_Click(object sender, EventArgs e) private void btnInjectionCheck_Click(object sender, EventArgs e)
{ {
Form f = Application.OpenForms["InjectionCheckListForm"]; //查找是否打开过Form1窗体 Form f = Application.OpenForms["InjectionCheckListForm"]; //查找是否打开过Form1窗体

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

@ -301,6 +301,12 @@
<Compile Include="Forms\Injection\HintMassageForm.designer.cs"> <Compile Include="Forms\Injection\HintMassageForm.designer.cs">
<DependentUpon>HintMassageForm.cs</DependentUpon> <DependentUpon>HintMassageForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\Injection\SewingPrint.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Injection\SewingPrint.Designer.cs">
<DependentUpon>SewingPrint.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Injection\UpdatePasswordForm.cs"> <Compile Include="Forms\Injection\UpdatePasswordForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1104,6 +1110,9 @@
<EmbeddedResource Include="Forms\Injection\HintMassageForm.resx"> <EmbeddedResource Include="Forms\Injection\HintMassageForm.resx">
<DependentUpon>HintMassageForm.cs</DependentUpon> <DependentUpon>HintMassageForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\Injection\SewingPrint.resx">
<DependentUpon>SewingPrint.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Injection\UpdatePasswordForm.resx"> <EmbeddedResource Include="Forms\Injection\UpdatePasswordForm.resx">
<DependentUpon>UpdatePasswordForm.cs</DependentUpon> <DependentUpon>UpdatePasswordForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

18
AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs

@ -4309,6 +4309,12 @@ namespace QMAPP.ServicesAgent
[Description("查询配置信息")] [Description("查询配置信息")]
AppConfigBLL_Get, AppConfigBLL_Get,
/// <summary>
/// 更新配置
/// </summary>
[Description("更新配置")]
AppConfigBLL_UpdateAppConfig,
/// <summary> /// <summary>
/// 查询配置 /// 查询配置
/// </summary> /// </summary>
@ -4757,6 +4763,18 @@ namespace QMAPP.ServicesAgent
/// </summary> /// </summary>
ProductBLL_Get, ProductBLL_Get,
/// <summary>
/// 获取信息PID PRODUCTCODE
/// public Product Get(Product model)
/// </summary>
ProductBLL_GetList,
/// <summary>
/// 获取信息PID PRODUCTCODE
/// public Product Get(Product model)
/// </summary>
ProductBLL_GetListpro,
/// <summary> /// <summary>
/// 插入产品信息 /// 插入产品信息
/// </summary> /// </summary>

9
ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config

@ -72,6 +72,11 @@
<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES_20230930;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> <add name="maindbBZD" connectionString="Data Source=10.111.144.99;Initial Catalog=BZD;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>
--> -->
<add name="maindb" connectionString="Data Source=10.111.144.111;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<add name="maindbBZD" connectionString="Data Source=10.111.144.111;Initial Catalog=BZD;User Id=sa;Password=Password01;" providerName="System.Data.SqlClient"/>
<!-- <!--
<add name="maindbYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=scCFAACDYBNCSNF;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/> <add name="maindbYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=scCFAACDYBNCSNF;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/>
<add name="maindbNCSYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=scCFAACDYBDY;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/>--> <add name="maindbNCSYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=scCFAACDYBDY;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/>-->
@ -79,10 +84,10 @@
<!--<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES;User Id=CDMESADM;Password=CDmes123;max pool size=10240;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES;User Id=CDMESADM;Password=CDmes123;max pool size=10240;" providerName="System.Data.SqlClient"/>-->
<!--
<add name="maindb" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/>
<!--
<add name="maindb" connectionString="Data Source=10.122.213.104;Initial Catalog=ADIENT_VW276_MES;User Id=MES;Password=Password1;" providerName="System.Data.SqlClient"/> <add name="maindb" connectionString="Data Source=10.122.213.104;Initial Catalog=ADIENT_VW276_MES;User Id=MES;Password=Password1;" providerName="System.Data.SqlClient"/>
--> -->
<!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_VW276PA_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=dev.ccwin-in.com,6191;Initial Catalog=ADIENT_VW276PA_MES;User Id=sa;Password=Microsoft@2021;" providerName="System.Data.SqlClient"/>-->

Loading…
Cancel
Save