Browse Source

增加天津门板发运

master
songnan.zhang 3 years ago
parent
commit
c34c1816df
  1. 16
      APP/QMAPP.Web/App_Data/Menu.xml
  2. 4
      APP/QMAPP.Web/Views/Home/Default.aspx
  3. 4
      APP/QMAPP.Web/Views/Home/Login.aspx
  4. 5
      APP/QMAPP.Web/Web.config
  5. 3
      APPQ5/QMAPP.FJC.BLL/QMAPP.FJC.BLL.csproj
  6. 1113
      APPQ5/QMAPP.FJC.BLL/TianJin/TJDoorPlankPlanBLL.cs
  7. 599
      APPQ5/QMAPP.FJC.BLL/TianJin/TJFrmPlaceBLL.cs
  8. 1532
      APPQ5/QMAPP.FJC.BLL/TianJin/TJOrderPlanBLL.cs
  9. 4
      APPQ5/QMAPP.FJC.DAL/QMAPP.FJC.DAL.csproj
  10. 1017
      APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs
  11. 1340
      APPQ5/QMAPP.FJC.DAL/TianJin/TJFrmPlaceDAL.cs
  12. 989
      APPQ5/QMAPP.FJC.DAL/TianJin/TJOrderPlanDAL.cs
  13. 1115
      APPQ5/QMAPP.FJC.DAL/TianJin/TJWorkOrderDAL.cs
  14. 6
      APPQ5/QMAPP.FJC.Entity/QMAPP.FJC.Entity.csproj
  15. 119
      APPQ5/QMAPP.FJC.Entity/TianJin/TJEPasteCard.cs
  16. 169
      APPQ5/QMAPP.FJC.Entity/TianJin/TJEPasteDetailsCard.cs
  17. 99
      APPQ5/QMAPP.FJC.Entity/TianJin/TJFISORDER.cs
  18. 119
      APPQ5/QMAPP.FJC.Entity/TianJin/TJOrderPlan.cs
  19. 82
      APPQ5/QMAPP.FJC.Entity/TianJin/TJOrderPlanTrace.cs
  20. 98
      APPQ5/QMAPP.FJC.Entity/TianJin/TJWorkOrder.cs
  21. 2
      APPQ5/QMAPP.FJC.Web/Controllers/ProductArchivesController.cs
  22. 580
      APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs
  23. 142
      APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs
  24. 4
      APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj
  25. 106
      APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanEdit.aspx
  26. 191
      APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx
  27. 5
      APPQ5/QMAPP.FJC.Web/Web.config
  28. 10
      APPQ5/QMAPP.WinForm/App.config
  29. 9
      APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx
  30. 60
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJDefaultDataSetNum.cs
  31. 109
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJDefaultDataSetNum.designer.cs
  32. 120
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJDefaultDataSetNum.resx
  33. 75
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.cs
  34. 281
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.designer.cs
  35. 171
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.resx
  36. 170
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.cs
  37. 345
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.designer.cs
  38. 219
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.resx
  39. 378
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.cs
  40. 386
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.designer.cs
  41. 156
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.resx
  42. 2489
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs
  43. 866
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs
  44. 192
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.resx
  45. 178
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.cs
  46. BIN
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt
  47. 20
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCardModel.cs
  48. 120
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs
  49. 175
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJResetSendIndexForm.cs
  50. 133
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJResetSendIndexForm.designer.cs
  51. 120
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJResetSendIndexForm.resx
  52. 132
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJfrmLineSetting.cs
  53. 160
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJfrmLineSetting.designer.cs
  54. 120
      APPQ5/QMAPP.WinForm/Forms/TianJin/TJfrmLineSetting.resx
  55. 2
      APPQ5/QMAPP.WinForm/LoginForm.Designer.cs
  56. 14
      APPQ5/QMAPP.WinForm/MainForm.Designer.cs
  57. 22
      APPQ5/QMAPP.WinForm/MainForm.cs
  58. 70
      APPQ5/QMAPP.WinForm/QMAPP.WinForm.csproj
  59. 63
      AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs
  60. 15
      ServicesCenter/WCF/QMFrameWork.WebServiceHost/App_Data/FJCServiceList.xml
  61. 5
      ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config

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

@ -325,6 +325,22 @@
<Action ContorllerName="OrderPlanTrace" ActionName="ExportExcel" PowerID="CD02050002">导出</Action> <Action ContorllerName="OrderPlanTrace" ActionName="ExportExcel" PowerID="CD02050002">导出</Action>
</Actions> </Actions>
</MenuItem> </MenuItem>
<MenuItem MenuID="02060000" SystemID="FJC" MenuDes="TJ门板发运计划" Action="/TJDoorPlankPlan/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1">
<Actions>
<Action ContorllerName="DoorPlankPlan" ActionName="List" PowerID="CD02060001">查询</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="Add" PowerID="CD02060002">添加</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="AddWholeDoor" PowerID="CD02060003">整车添加</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="Edit" PowerID="CD02060004">修改</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="EditDoorPlankPlanSeq" PowerID="CD02060011">修改计划顺序号</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="Insert" PowerID="CD02060005">插单</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="Delete" PowerID="CD02060006">删除</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="PutOut" PowerID="CD02060007">发布</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="ImportExcel" PowerID="CD02060008">导入</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="ExportExcel" PowerID="CD02060009">导出</Action>
<Action ContorllerName="DoorPlankPlan" ActionName="TemplateExcel" PowerID="CD02060010">下载模板</Action>
</Actions>
</MenuItem>
<MenuItem MenuID="05000000" SystemID="Main" MenuDes="物料管理" Action="" PowerID="CD05000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> <MenuItem MenuID="05000000" SystemID="Main" MenuDes="物料管理" Action="" PowerID="CD05000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2">
<Actions> <Actions>

4
APP/QMAPP.Web/Views/Home/Default.aspx

@ -2,7 +2,7 @@
<!doctype html> <!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" > <html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server"> <head id="Head1" runat="server">
<title>富维安道拓成都数字化工厂</title> <title>富维安道拓数字化工厂</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="../../Content/Site.css" /> <link rel="stylesheet" href="../../Content/Site.css" />
@ -104,7 +104,7 @@
<img width="145px" height="51px" alt="" src="../../Content/default/cfaa.png" <img width="145px" height="51px" alt="" src="../../Content/default/cfaa.png"
style="margin: 2px 20px 2px 30px; " /> </td> style="margin: 2px 20px 2px 30px; " /> </td>
<td align=left nowrap=nowrap> <td align=left nowrap=nowrap>
<span style="font-weight: bold; font-size: 24pt; font-family: 宋体; color: #16537a;">富维安道拓成都数字化工厂</span> <span style="font-weight: bold; font-size: 24pt; font-family: 宋体; color: #16537a;">富维安道拓数字化工厂</span>
</td> </td>
</tr> </tr>
</table> </table>

4
APP/QMAPP.Web/Views/Home/Login.aspx

@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>富维安道拓成都数字化工厂</title> <title>富维安道拓数字化工厂</title>
<%-- <noscript> <%-- <noscript>
&lt;meta http-equiv="Refresh" content="0;登录到 系统需要启用 JavaScript。当前 Web 浏览器不支持 JavaScript &lt;meta http-equiv="Refresh" content="0;登录到 系统需要启用 JavaScript。当前 Web 浏览器不支持 JavaScript
或阻止了脚本。&lt;br /&gt;&lt;br /&gt;若要查看你的浏览器是否支持 JavaScript 或允许使用脚本,请查看浏览器联机帮助。 或阻止了脚本。&lt;br /&gt;&lt;br /&gt;若要查看你的浏览器是否支持 JavaScript 或允许使用脚本,请查看浏览器联机帮助。
@ -157,7 +157,7 @@
style="position: absolute; z-index: auto; top: 20px; left: 30px;" style="position: absolute; z-index: auto; top: 20px; left: 30px;"
width="294" />--%> width="294" />--%>
<h1> <h1>
富维安道拓成都数字化工厂</h1> 富维安道拓数字化工厂</h1>
<h2> <h2>
Adient CHENGDU Digital factory</h2> Adient CHENGDU Digital factory</h2>
<div id="printDiv" style="display: none;"> <div id="printDiv" style="display: none;">

5
APP/QMAPP.Web/Web.config

@ -40,7 +40,10 @@
<!--主数据库连接--> <!--主数据库连接-->
<!--<add name="maindb" connectionString="Data Source=USER-20180104HU;Initial Catalog=CD_MES;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=USER-20180104HU;Initial Catalog=CD_MES;User Id=sa;Password=qm;" 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.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" 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.98;Initial Catalog=CD_TEST;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=10.111.144.98;Initial Catalog=CD_TEST;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/>-->
</connectionStrings> </connectionStrings>

3
APPQ5/QMAPP.FJC.BLL/QMAPP.FJC.BLL.csproj

@ -185,6 +185,9 @@
<Compile Include="QT\MaterialBindingBLL.cs" /> <Compile Include="QT\MaterialBindingBLL.cs" />
<Compile Include="SendManage\SendPlanRecordBLL.cs" /> <Compile Include="SendManage\SendPlanRecordBLL.cs" />
<Compile Include="Stocktaking\StocktakingBLL.cs" /> <Compile Include="Stocktaking\StocktakingBLL.cs" />
<Compile Include="TianJin\TJDoorPlankPlanBLL.cs" />
<Compile Include="TianJin\TJFrmPlaceBLL.cs" />
<Compile Include="TianJin\TJOrderPlanBLL.cs" />
<Compile Include="WarehouseManage\OutWarehouseBLL.cs" /> <Compile Include="WarehouseManage\OutWarehouseBLL.cs" />
<Compile Include="ProduceManage\MendRecorderBLL.cs" /> <Compile Include="ProduceManage\MendRecorderBLL.cs" />
<Compile Include="WarehouseManage\InWarehouseBLL.cs" /> <Compile Include="WarehouseManage\InWarehouseBLL.cs" />

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

File diff suppressed because it is too large

599
APPQ5/QMAPP.FJC.BLL/TianJin/TJFrmPlaceBLL.cs

@ -0,0 +1,599 @@
using System;
using System.Collections.Generic;
using QMAPP.BLL;
using QMAPP.Entity;
using QMAPP.FJC.BLL.Dict;
using QMAPP.FJC.DAL.ProduceManage;
using QMAPP.FJC.Entity.ProduceManage;
using QMFrameWork.Data;
using QMFrameWork.Log;
using QMAPP.FJC.Entity;
using System.Data;
using Model;
using QMAPP.FJC.DAL.Operation;
using QMAPP.FJC.Entity.Operation;
//using QMAPP.FJC.Entity.Operation;
//using QMAPP.FJC.DAL.Operation;
namespace QMAPP.FJC.BLL.TianJin
{
/// <summary>
/// 模块编号:M4-1
/// 作 用:发运模块
/// 作 者:崔法宝
/// 编写日期:2017年09月05日
///</summary>
public class TJFrmPlaceBLL : BaseBLL
{
#region 获取列表
/// <summary>
/// 获得Fis发货队列信息
/// </summary>
/// <param name="pMaterial"></param>
/// <returns></returns>
public DataTable GetList(string pFisType,string WORKCENTER_CODE)
{
#region
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetList(pFisType, WORKCENTER_CODE);
}
catch (Exception ex)
{
throw ex;
}
#endregion
}
#endregion
#region 天津发运--计划挂起 state=4
public int UpdateWorkOrderState(List<string> Ids)
{
try
{
var count = 0;
if (Ids.Count > 0)
{
return new FJC.DAL.TianJin.TJFrmPlaceDAL().UpdateWorkOrderState(Ids);
}
return count;
}
catch
{
return 0;
}
}
#endregion
/// <summary>
/// 贴车单记录查询
/// </summary>
/// <param name="ppastercardno"></param>
/// <param name="strbegindate"></param>
/// <param name="strenddate"></param>
/// <param name="vinLack"></param>
/// <returns></returns>
public DataTable GetPastecardInfoWithVin(string ppastercardno, string strbegindate, string strenddate, string vinLack, string PlantCode, string Operator)
{
#region
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPastecardInfoWithVin(ppastercardno, strbegindate, strenddate, vinLack, PlantCode, Operator);
}
catch (Exception ex)
{
throw ex;
}
#endregion
}
/// <summary>
/// 根据贴车单主键查询贴车单明细
/// </summary>
/// <param name="ppastercarKey"></param>
/// <returns></returns>
public DataTable GetPasteDetails(string ppastercarKey)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPasteDetails(ppastercarKey);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 实现校准功能
/// </summary>
/// <param name="strvwseq"></param>
public void UpdateFisOrder(string strvwseq, string strCP5A,string workcenter)
{
try
{
new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().UpdateFisOrder(strvwseq, strCP5A, workcenter);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取贴车单当天的总条数
/// </summary>
/// <returns></returns>
public DataTable GetPastecardNo(string strcreatetime)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPastecardNo(strcreatetime);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取发车信息
/// </summary>
/// <returns></returns>
public DataTable GetPastecardIndex(string PLANTNAME, string PASTECARDNO)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPastecardIndex(PLANTNAME, PASTECARDNO);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 添加贴车单
/// </summary>
/// <param name="ppastecard"></param>
/// <returns></returns>
public int AddPasteCard(EPasteCard ppastecard)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().AddPasteCard(ppastecard);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 更新贴车单信息
/// </summary>
/// <param name="UpdatePastecardIndex"></param>
/// <param name="dt"></param>
public int UpdatePastecardIndex(string UpdatePastecardIndex,string Plantname)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().UpdatePastecardIndex(UpdatePastecardIndex, System.DateTime.Now, Plantname);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 更新补打时间
/// </summary>
/// <param name="PASTECARDNO"></param>
/// <param name="PasteCarddate2"></param>
/// <param name="OPERATOR"></param>
/// <returns></returns>
public int UpdatePasteCardPasteCardDate2Value(string PASTECARDNO, string PasteCarddate2, string OPERATOR)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().UpdatePasteCardPasteCardDate2Value(PASTECARDNO, PasteCarddate2, OPERATOR);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取下护板扫描表其他条码号
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable GetOhterCode(string code)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetOhterCode(code);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取配置表中的规则类型值
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable GetRule(string cartype, string nf)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetRule(cartype, nf);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 根据条码标识查询零件信息
/// </summary>
/// <param name="strbarcode"></param>
/// <returns></returns>
public DataTable GetSparepartsinfo(string strbarcode)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetSparepartsinfo(strbarcode);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 判断条码是否重复
/// </summary>
/// <param name="barcodetime"></param>
/// <returns></returns>
public DataTable ExistBarcode(int barcodetime, string pbarcode)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().ExistBarcode(barcodetime, pbarcode);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 打印条码
/// </summary>
/// <param name="barcodetime"></param>
/// <returns></returns>
public DataTable WriteFile(string sql)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().WriteFile(sql);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 更新贴车单补打印时间
/// </summary>
/// <param name="pastecardno"></param>
public void UpdataBarcodeDate(string pastecardno)
{
try
{
new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().UpdataBarcodeDate(pastecardno);
}
catch (Exception ex)
{
throw ex;
}
}
public void InsertLog(EFailLog plog)
{
try
{
new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().InsertLog(plog);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取扫取条形码是否存在
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public int GetExitsCode(string code)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetExitsCode(code);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 查询是否为成品
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public object GetExitsStatus(string code)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetExitsStatus(code);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 添加贴车单
/// </summary>
/// <param name="ppastecard"></param>
/// <param name="pDetailsCard"></param>
/// <returns></returns>
public int AddNewPasteCard(EPasteCard ppastecard,int Count)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().AddNewPasteCard(ppastecard,Count);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取工作中心
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable GetWORKCENTERCODE()
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetWORKCENTERCODE();
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取 DASPASTECARDINDEX表数据
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable GetDaspssteCarIndexByPlanName(string PlanTName)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetDaspssteCarIndexByPlanName(PlanTName);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 插入 DASPASTECARDINDEX表数据
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public int InsertDaspssteCarIndexByPlanName(EPasteCard ppastecard)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().InsertDaspssteCarIndexByPlanName(ppastecard);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// GetPastecardDeatis
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataTable GetPastecardDeatis()
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPastecardDeatis();
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 根据贴车单ID获取详细
/// </summary>
/// <param name="ppastercarKey"></param>
/// <returns></returns>
public DataTable GetPascardDetailsByPid(string ppastercarKey)
{
try
{
return new QMAPP.FJC.DAL.TianJin.TJFrmPlaceDAL().GetPascardDetailsByPid(ppastercarKey);
}
catch (Exception ex)
{
throw ex;
}
}
//public Product GetProductForSend(string code)
//{
// try
// {
// return new ProductDAL().GetProductInfo(new Product() { PRODUCTCODE = code });
// //return new Product();
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
/// <summary>
/// 查询Code在Main表的记录
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
public Product GetProductByAssembleCode(string code)
{
try
{
return new ProductDAL().GetProductByAssembleCode(code);
}
catch (Exception ex)
{
throw ex;
}
}
public QMAPP.FJC.Entity.SendManage.PastCard GetLastPastCard(string workcentercode)
{
try
{
return new DAL.SendManage.SendPlanRecordDAL().GetLastPastCard(workcentercode);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获得超时时间信息信息(列表)
/// </summary>
/// <param name="pFisOrder"></param>
/// <param name="pFistype"></param>
/// <returns></returns>
public DataTable GetTimeOutSet()
{
#region
try
{
#region
try
{
return new DAL.TianJin.TJFrmPlaceDAL().GetLastPastCard();
}
catch (Exception ex)
{
throw ex;
}
#endregion
}
catch (System.Exception ex)
{
throw ex;
}
#endregion
}
}
}

1532
APPQ5/QMAPP.FJC.BLL/TianJin/TJOrderPlanBLL.cs

File diff suppressed because it is too large

4
APPQ5/QMAPP.FJC.DAL/QMAPP.FJC.DAL.csproj

@ -174,6 +174,10 @@
<Compile Include="SA\WorkcellQtyCountDAL.cs" /> <Compile Include="SA\WorkcellQtyCountDAL.cs" />
<Compile Include="SendManage\SendPlanRecordDAL.cs" /> <Compile Include="SendManage\SendPlanRecordDAL.cs" />
<Compile Include="Stocktaking\StocktakingDAL.cs" /> <Compile Include="Stocktaking\StocktakingDAL.cs" />
<Compile Include="TianJin\TJDoorPlankPlanDAL.cs" />
<Compile Include="TianJin\TJFrmPlaceDAL.cs" />
<Compile Include="TianJin\TJOrderPlanDAL.cs" />
<Compile Include="TianJin\TJWorkOrderDAL.cs" />
<Compile Include="WarehouseManage\OutWarehouseDAL.cs" /> <Compile Include="WarehouseManage\OutWarehouseDAL.cs" />
<Compile Include="WarehouseManage\InWarehouseDAL.cs" /> <Compile Include="WarehouseManage\InWarehouseDAL.cs" />
<Compile Include="WarnManage\EquipMentAlarmDAL.cs" /> <Compile Include="WarnManage\EquipMentAlarmDAL.cs" />

1017
APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs

File diff suppressed because it is too large

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

File diff suppressed because it is too large

989
APPQ5/QMAPP.FJC.DAL/TianJin/TJOrderPlanDAL.cs

@ -0,0 +1,989 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.Entity.FIS;
using QMFrameWork.Data;
using QMFrameWork.Log;
using System.Data;
using QMAPP.Entity;
using QMAPP.DAL;
using QMAPP.FJC.Entity.TianJin;
//using QMAPP.FJC.Entity.FileCopy.FIS;
namespace QMAPP.FJC.DAL.TianJin
{
/// <summary>
/// 注塑计划管理
///
///
/// </summary>
public class TJOrderPlanDAL : BaseDAL
{
#region 获取信息
/// <summary>
/// 获取信息
/// </summary>
/// <param name="">条件</param>
/// <returns>信息</returns>
public TJOrderPlan Get(TJOrderPlan model)
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = "SELECT * FROM T_PP_TJFY_ORDERPLAN WHERE 1=1 ";
if (string.IsNullOrEmpty(model.PID) == false)
{
sql += " AND PID = @PID";
parameters.Add(new DataParameter("PID", model.PID));
}
if (string.IsNullOrEmpty(model.PLAN_NO) == false)
{
sql += " AND PLAN_NO = @PLAN_NO";
parameters.Add(new DataParameter("PLAN_NO", model.PLAN_NO));
}
//if (string.IsNullOrEmpty(model.MACHINECODDE) == false)
//{
// sql += " AND MACHINECODDE = @MACHINECODDE";
// parameters.Add(new DataParameter("MACHINECODDE", model.MACHINECODDE));
//}
if (string.IsNullOrEmpty(model.MATERIAL_CODE) == false)
{
sql += " AND MATERIAL_CODE = @MATERIAL_CODE";
parameters.Add(new DataParameter("MATERIAL_CODE", model.MATERIAL_CODE));
}
if (string.IsNullOrEmpty(model.PLAN_STATES) == false)
{
sql += " AND PLAN_STATE IN ('" + model.PLAN_STATES.Replace(",", "','") + "')";
}
if (BaseSession != null)
{
//获取信息
model = BaseSession.Get<TJOrderPlan>(sql, parameters.ToArray());
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//获取信息
model = session.Get<TJOrderPlan>(sql, parameters.ToArray());
}
}
return model;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "信息数据层-获取信息"
});
throw;
}
}
public TJOrderPlan GetOne(TJOrderPlan model)
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = "SELECT * FROM T_PP_ORDERPLAN WHERE PLAN_STATE IN ('1','2') ";
if (string.IsNullOrEmpty(model.PID) == false)
{
sql += " AND PID = @PID";
parameters.Add(new DataParameter("PID", model.PID));
}
if (string.IsNullOrEmpty(model.PLAN_NO) == false)
{
sql += " AND PLAN_NO = @PLAN_NO";
parameters.Add(new DataParameter("PLAN_NO", model.PLAN_NO));
}
//if (string.IsNullOrEmpty(model.MACHINECODDE) == false)
//{
// sql += " AND MACHINECODDE = @MACHINECODDE";
// parameters.Add(new DataParameter("MACHINECODDE", model.MACHINECODDE));
//}
if (string.IsNullOrEmpty(model.MATERIAL_CODE) == false)
{
sql += " AND MATERIAL_CODE = @MATERIAL_CODE";
parameters.Add(new DataParameter("MATERIAL_CODE", model.MATERIAL_CODE));
}
sql += " order by CREATEDATE desc ";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//获取信息
model = session.Get<TJOrderPlan>(sql, parameters.ToArray());
}
return model;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "信息数据层-获取信息"
});
throw;
}
}
public TJOrderPlan GetInfo(TJOrderPlan model)
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = "SELECT * FROM T_PP_ORDERPLAN WHERE PLAN_NO = @PLAN_NO";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//获取信息
parameters.Add(new DataParameter { ParameterName = "PLAN_NO", DataType = DbType.String, Value = model.PLAN_NO });
model = session.Get<TJOrderPlan>(sql, parameters.ToArray());
}
return model;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "信息数据层-获取信息"
});
throw;
}
}
#endregion
#region 获取列表
/// <summary>
/// 获取列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
public DataPage GetList(TJOrderPlan condition, DataPage page)
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = this.GetQuerySql(condition, ref parameters);
//分页关键字段及排序
page.KeyName = "PID";
if (string.IsNullOrEmpty(page.SortExpression))
{
page.SortExpression = "CREATEDATE DESC";
}
using (IDataSession session = AppDataFactory.CreateMainSession())
{
page = session.GetDataPage<TJOrderPlan>(sql, parameters.ToArray(), page);
}
return page;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "注塑信息数据层-获取列表"
});
throw;
}
}
#endregion
#region 获取查询语句
/// <summary>
/// 获取查询语句
/// </summary>
/// <param name="user">查询条件</param>
/// <param name="parameters">参数</param>
/// <returns>查询语句</returns>
private string GetQuerySql(TJOrderPlan condition, ref List<DataParameter> parameters)
{
StringBuilder sqlBuilder = new StringBuilder();
StringBuilder whereBuilder = new StringBuilder();
try
{
//构成查询语句
sqlBuilder.AppendLine(" SELECT DISTINCT O.PID ");
sqlBuilder.AppendLine(" ,O.FACTORY_CODE ");
sqlBuilder.AppendLine(" ,F.FACTORY_NAME ");
sqlBuilder.AppendLine(" ,O.PLAN_NO ");
sqlBuilder.AppendLine(" ,O.PLAN_SEQ ");
sqlBuilder.AppendLine(" ,O.PLAN_STATE ");
sqlBuilder.AppendLine(" ,O.MATERIAL_CODE ");
sqlBuilder.AppendLine(" ,M.MATERIAL_NAME ");
sqlBuilder.AppendLine(" ,O.MACHINECODDE ");
sqlBuilder.AppendLine(" ,O.PBOM_CODE ");
sqlBuilder.AppendLine(" ,O.ROUTE_CODE ");
sqlBuilder.AppendLine(" ,O.REMARK ");
sqlBuilder.AppendLine(" ,O.QTY ");
sqlBuilder.AppendLine(" ,O.COMPLETE_QTY ");
sqlBuilder.AppendLine(" ,CONVERT(VARCHAR(19),O.PLAN_DATE,120) AS PLAN_DATE ");
sqlBuilder.AppendLine(" ,O.SHIFT_CODE ");
sqlBuilder.AppendLine(" ,P.PRODUCESHIFTNAME AS SHIFT_NAME ");
sqlBuilder.AppendLine(" ,O.PLANSOURCE ");
sqlBuilder.AppendLine(" ,O.PRODUCEREQUIRE ");
//sqlBuilder.AppendLine(" ,WC.WORKCENTER_CODE ");
sqlBuilder.AppendLine(" ,O.CREATEUSER ");
sqlBuilder.AppendLine(" ,O.CREATEDATE ");
sqlBuilder.AppendLine(" ,O.UPDATEUSER ");
sqlBuilder.AppendLine(" ,O.UPDATEDATE ");
sqlBuilder.AppendLine(" ,O.IGNORE_FISBREAK ");
sqlBuilder.AppendLine(" ,O.FIS_ASMSETCODE ");
sqlBuilder.AppendLine(" ,O.STARTTIME AS STARTTIMEVIEW ");
sqlBuilder.AppendLine(" ,O.ENDTIME AS ENDTIMEVIEW");
sqlBuilder.AppendLine(" ,C.USERNAME AS CREATEUSERNAME ");
sqlBuilder.AppendLine(" ,U.USERNAME AS UPDATEUSERNAME ");
sqlBuilder.AppendLine(" FROM T_PP_ORDERPLAN O ");
//注塑所需要的表T_PP_WORKORDER
sqlBuilder.AppendLine(" LEFT JOIN T_BD_PRODUCESHIFT P ON P.PRODUCESHIFTTCODE=O.SHIFT_CODE ");
sqlBuilder.AppendLine(" LEFT JOIN T_MD_FACTORY F ON F.FACTORY_CODE=O.FACTORY_CODE ");
sqlBuilder.AppendLine(" LEFT JOIN T_PP_WORKORDER W ON W.ORDERPLANID=O.PID ");
sqlBuilder.AppendLine(" LEFT JOIN T_MD_MATERIAL M ON M.MATERIAL_CODE=O.MATERIAL_CODE ");
//sqlBuilder.AppendLine(" LEFT JOIN T_MD_WORKCELL WC ON WC.WORKCELL_CODE=PRW.WORKCELL_CODE ");
sqlBuilder.AppendLine(" LEFT JOIN T_QM_USER C ON C.USERID=O.CREATEUSER ");
sqlBuilder.AppendLine(" LEFT JOIN T_QM_USER U ON U.USERID=O.UPDATEUSER ");
//whereBuilder.AppendFormat(" AND O.WORKCENTER_CODE in (select distinct WORKCENTER from T_PP_ORDERINDENTITY where ORDER_TYPE='{0}')", condition.ORDER_TYPE);
//查询条件
//if (string.IsNullOrEmpty(condition.FACTORY_CODE) == false)
//{
// whereBuilder.Append(" AND O.FACTORY_CODE = @FACTORY_CODE ");
// parameters.Add(new DataParameter { ParameterName = "FACTORY_CODE", DataType = DbType.String, Value = condition.FACTORY_CODE });
//}
if (string.IsNullOrEmpty(condition.PLAN_NO) == false)
{
whereBuilder.Append(" AND O.PLAN_NO = @PLAN_NO ");
parameters.Add(new DataParameter { ParameterName = "PLAN_NO", DataType = DbType.String, Value = condition.PLAN_NO });
}
//物料号
if (string.IsNullOrEmpty(condition.MATERIAL_CODE) == false)
{
whereBuilder.Append(" AND O.MATERIAL_CODE = @MATERIAL_CODE ");
parameters.Add(new DataParameter { ParameterName = "MATERIAL_CODE", DataType = DbType.String, Value = condition.MATERIAL_CODE });
}
//工艺路线
//if (string.IsNullOrEmpty(condition.ROUTE_CODE) == false)
//{
// whereBuilder.Append(" AND O.ROUTE_CODE = @ROUTE_CODE ");
// parameters.Add(new DataParameter { ParameterName = "ROUTE_CODE", DataType = DbType.String, Value = condition.ROUTE_CODE });
//}
//班次编码
//if (string.IsNullOrEmpty(condition.SHIFT_CODE) == false)
//{
// whereBuilder.Append(" AND O.SHIFT_CODE = @SHIFT_CODE ");
// parameters.Add(new DataParameter { ParameterName = "SHIFT_CODE", DataType = DbType.String, Value = condition.SHIFT_CODE });
//}
//设备
//if (string.IsNullOrEmpty(condition.MACHINECODDE) == false)
//{
// whereBuilder.Append(" AND O.MACHINECODDE = @MACHINECODDE ");
// parameters.Add(new DataParameter { ParameterName = "MACHINECODDE", DataType = DbType.String, Value = condition.MACHINECODDE });
//}
//计划时间
if (condition.PLANTIMESTART != DateTime.MinValue)
{
whereBuilder.Append(" AND O.PLAN_DATE >= @PLANTIMESTART");
parameters.Add(new DataParameter { ParameterName = "PLANTIMESTART", DataType = DbType.String, Value = condition.PLANTIMESTART });
}
if (condition.PLANTIMEEND != DateTime.MinValue)
{
whereBuilder.Append(" AND O.PLAN_DATE <= @PLANTIMEEND");
parameters.Add(new DataParameter { ParameterName = "PLANTIMEEND", DataType = DbType.String, Value = condition.PLANTIMEEND });
}
if (whereBuilder.Length > 0)
{
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4));
}
return sqlBuilder.ToString();
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 信息是否重复
/// <summary>
/// 判断计划单号是否存在
/// </summary>
/// <param name="info"></param>
/// <returns>true:已存在;fasel:不存在。</returns>
public int ExistsOrderPlan(TJOrderPlan model)
{
string PID = "";
int count = 0;
StringBuilder sqlBuilder = new StringBuilder();
try
{
if (string.IsNullOrEmpty(model.PID) == false)
{
PID = model.PID;
}
sqlBuilder.AppendLine("SELECT COUNT(*) FROM T_PP_ORDERPLAN ");
sqlBuilder.AppendLine(" WHERE PID <> @PID AND PLAN_NO=@PLAN_NO");
using (IDataSession session = AppDataFactory.CreateMainSession())
{
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(),
new DataParameter("PID", PID),
new DataParameter { ParameterName = "PLAN_NO", Value = model.PLAN_NO }));
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
public int Insert(TJOrderPlan model)
{
int count = 0;
try
{
if (BaseSession != null)
{
//插入基本信息
count = BaseSession.Insert<TJOrderPlan>(model);
//InsertOrderPlanTrace(BaseSession, model, "新增");
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//插入基本信息
count = session.Insert<TJOrderPlan>(model);
//InsertOrderPlanTrace(session, model, "新增");
}
}
//using (IDataSession session = AppDataFactory.CreateMainSession())
//{
// //插入基本信息
// count = session.Insert<TJOrderPlan>(model);
//}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 更新信息
/// <summary>
/// 更新信息
/// </summary>
/// <param name=""></param>
/// <returns>更新行数</returns>
public int Update(TJOrderPlan model)
{
int count = 0;
try
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
var sql = $"update T_PP_TJFY_ORDERPLAN set MATERIAL_CODE = '{model.MATERIAL_CODE}',QTY = '{model.QTY}',PLAN_SEQ = '{model.PLAN_SEQ}',PLAN_NO = '{model.PLAN_NO}',MATERIAL_NAME = '{model.MATERIAL_NAME}',PLAN_STATE = '{model.PLAN_STATE}' where PID = '{model.PID}';";
//更新基本信息
count = session.ExecuteSql(sql);
InsertOrderPlanTrace(session, model, "修改");
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除
/// <summary>
/// 删除信息
/// </summary>
/// <param name=""></param>
/// <returns>删除个数</returns>
//提交事务
public int Delete(TJOrderPlan model)
{
int count = 0;
try
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//删除基本信息
count = session.Delete<TJOrderPlan>(model);
//InsertOrderPlanTrace(session, model, "删除");
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除校验
/// <summary>
/// 删除校验
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int DelCheck(TJOrderPlan model)
{
int num = 0;
int state;
StringBuilder sqlBuilder = new StringBuilder();
StringBuilder sqlBuilder2 = new StringBuilder();
sqlBuilder.AppendLine(" SELECT COMPLETE_QTY ");
sqlBuilder.AppendLine(" FROM T_PP_ORDERPLAN ");
sqlBuilder.AppendLine(" WHERE PID = @PID ");
sqlBuilder2.AppendLine(" SELECT PLAN_STATE ");
sqlBuilder2.AppendLine(" FROM T_PP_ORDERPLAN ");
sqlBuilder2.AppendLine(" WHERE PID = @PID ");
using (IDataSession session = AppDataFactory.CreateMainSession())
{
num = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), new DataParameter("PID", model.PID)));
state = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder2.ToString(), new DataParameter("PID", model.PID)));
}
return num+state;
}
#endregion
#region 发布
/// <summary>
/// 发布信息
/// </summary>
/// <param name=""></param>
/// <returns>发布个数</returns>
public int PutOut(TJOrderPlan model, DataTable workOrderDt)
{
BaseSession = AppDataFactory.CreateMainSession();
IDbConnection dbConn = DbManager.MainConnectionInfo.Connection;
IDbTransaction ids = dbConn.BeginTransaction();
try
{
if (workOrderDt.Rows != null)
{
BaseSession.DbHelper.BulkCopyData(workOrderDt, "T_PP_WORKORDER", dbConn, ids);
ids.Commit();
}
}
catch (Exception ex)
{
ids.Rollback();
throw ex;
}
int count = 0;
int count2 = 0;
StringBuilder sqlBuilder = new StringBuilder();
StringBuilder sqlBuilder2 = new StringBuilder();
List<DataParameter> parameters = new List<DataParameter>();
using (IDataSession session = AppDataFactory.CreateMainSession())
{
sqlBuilder.AppendLine(" UPDATE T_PP_ORDERPLAN ");
sqlBuilder.AppendLine(" SET PLAN_STATE='1' ");
sqlBuilder.AppendLine(" WHERE PID = @PID ");
sqlBuilder2.AppendLine(" UPDATE T_PP_WORKORDER ");
sqlBuilder2.AppendLine(" SET STATE='1' ");
sqlBuilder2.AppendLine(" WHERE ORDERPLANID = @PID ");
//发布更新基本信息
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = model.PID });
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray());
count2 = session.ExecuteSql(sqlBuilder2.ToString(), parameters.ToArray());
}
return count;
}
#endregion
#region 发布 新
/// <summary>
/// 发布信息
/// 为了事物传递新的session zxd20171101
/// </summary>
/// <param name=""></param>
/// <returns>发布个数</returns>
public int PutOutBaseSession(TJOrderPlan model, DataTable workOrderDt)
{
if (BaseSession==null)
{
BaseSession = AppDataFactory.CreateMainSession();
}
//IDbConnection dbConn = DbManager.MainConnectionInfo.Connection;
//IDbTransaction ids = dbConn.BeginTransaction();
//try
//{
// if (workOrderDt.Rows != null)
// {
// BaseSession.DbHelper.BulkCopyData(workOrderDt, "T_PP_WORKORDER", dbConn, ids);
// ids.Commit();
// }
//}
//catch (Exception ex)
//{
// ids.Rollback();
// throw ex;
//}
int count = 0;
int count2 = 0;
StringBuilder sqlBuilder = new StringBuilder();
StringBuilder sqlBuilder2 = new StringBuilder();
List<DataParameter> parameters = new List<DataParameter>();
sqlBuilder.AppendLine(" UPDATE T_PP_ORDERPLAN ");
sqlBuilder.AppendLine(" SET PLAN_STATE='1' ");
sqlBuilder.AppendLine(" WHERE PID = @PID ");
sqlBuilder2.AppendLine(" UPDATE T_PP_WORKORDER ");
sqlBuilder2.AppendLine(" SET STATE='1' ");
sqlBuilder2.AppendLine(" WHERE ORDERPLANID = @PID ");
//发布更新基本信息
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = model.PID });
//string sqlChange = ChangeSqlByDB(sqlBuilder.ToString(), session);
count = BaseSession.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray());
count2 = BaseSession.ExecuteSql(sqlBuilder2.ToString(), parameters.ToArray());
return count;
}
#endregion
#region 发布校验
/// <summary>
/// 发布校验
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int PutOutCheck(TJOrderPlan model)
{
int num = 0;
StringBuilder sqlBuilder = new StringBuilder();
sqlBuilder.AppendLine(" SELECT PLAN_STATE ");
sqlBuilder.AppendLine(" FROM T_PP_ORDERPLAN ");
sqlBuilder.AppendLine(" WHERE PID = @PID ");
if (BaseSession != null)
{
num = Convert.ToInt32(BaseSession.ExecuteSqlScalar(sqlBuilder.ToString(), new DataParameter("PID", model.PID)));
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
num = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), new DataParameter("PID", model.PID)));
}
}
return num;
}
#endregion
#region 导入
public ImportMessage GetImportData(List<TJOrderPlan> list)
{
ImportMessage em = new ImportMessage();
List<DataParameter> parameters = new List<DataParameter>();
try
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//设置祖先对象数据会话
session.OpenTs();
foreach (TJOrderPlan info in list)
{
if (info.IsNewInfo == true)
{
//插入信息
int count = session.Insert<TJOrderPlan>(info);
//InsertOrderPlanTrace(session, info, "新增");
////痕迹表
//FISPlanRecord record = new FISPlanRecord();
//record.PID = Guid.NewGuid().ToString();
//record.MID = info.PID;
//record.PLAN_NO = info.PLAN_NO;
//record.MATERIAL_CODE = info.MATERIAL_CODE;
//record.PLAN_QTY = info.QTY;
//record.OPERATION_TYPE = "0";
//record.CREATEUSER = info.CREATEUSER;
//record.CREATEDATE = info.CREATEDATE;
//int no = new OrderPlanDAL().InsertRecord(record);
em.insertNum++;
}
else
{
//更新信息
int count = session.Update<TJOrderPlan>(info);
//InsertOrderPlanTrace(session, info, "修改");
//#region 插入修改信息痕迹表
////插入修改信息痕迹表
//FISPlanRecord record = new FISPlanRecord();
//record.PID = Guid.NewGuid().ToString();
//record.MID = info.PID;
//record.PLAN_NO = info.PLAN_NO;
//record.MATERIAL_CODE = info.MATERIAL_CODE;
//record.PLAN_QTY = info.QTY;
//record.OPERATION_TYPE = "1";
//record.CREATEUSER = info.CREATEUSER;
//record.CREATEDATE = info.CREATEDATE;
//int no = new OrderPlanDAL().InsertRecord(record);
#endregion
em.updateNum++;
}
}
session.CommitTs();
}
}
catch (Exception ex)
{
throw ex;
}
return em;
}
//#endregion
#region 获取导出的数据
/// <summary>
/// 获取导出的数据
/// </summary>
/// <param name="user">查询条件</param>
/// <returns>数据</returns>
public DataTable GetExportData(TJOrderPlan model)
{
DataTable dt = null;
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
//构成查询语句
sql = this.GetQuerySql(model, ref parameters);
using (IDataSession session = AppDataFactory.CreateMainSession())
{
dt = session.GetTable(sql, parameters.ToArray());
dt.TableName = "OrderPlanExp";
}
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除订单
public void DeleteOrderPlan(TJOrderPlan entity)
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
session.Delete<TJOrderPlan>(entity);
InsertOrderPlanTrace(session, entity, "删除");
}
}
#endregion
#region 改变更新订单
/// <summary>
/// 改变更新订单
/// </summary>
/// <param name="entity"></param>
public void ChangeOrderPlan(TJOrderPlan entity)
{
if (this.BaseSession != null)
{
this.BaseSession.Update<TJOrderPlan>(entity);
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
session.Update<TJOrderPlan>(entity);
}
}
}
#endregion
#region 获取流水号
/// <summary>
/// 获取流水号
/// </summary>
/// <param name = "" > 条件 </ param >
/// < returns > *信息 </ returns >
public TJOrderPlan GetOrderPlanSeq(TJOrderPlan condition)
{
string sql = null;
List<DataParameter> parameters = new List<DataParameter>();
try
{
sql = $"SELECT TOP 1 * FROM T_PP_TJFY_ORDERPLAN WHERE PLAN_DATE = '{condition.PLAN_DATE}' ORDER BY PLAN_SEQ DESC ";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//获取信息
return session.Get<TJOrderPlan>(sql, parameters.ToArray());
}
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "流水号本体-获取信息"
});
throw;
}
}
#endregion
#region 更新流水号信息
/// <summary>
/// 更新流水号信息
/// </summary>
/// <param name=""></param>
/// <returns>更新行数</returns>
//public int UpdateFisPlan(FISPlan model)
//{
// int count = 0;
// try
// {
// if (this.BaseSession != null)
// {
// count = BaseSession.Update<FISPlan>(model);
// }
// else
// {
// using (IDataSession session = AppDataFactory.CreateMainSession())
// {
// //更新基本信息
// count = session.Update<FISPlan>(model);
// }
// }
// return count;
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#region 插入流水号信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name=model"">物料号信息</param>
/// <returns>插入行数</returns>
//public int InsertFisPlan(FISPlan model)
//{
// int count = 0;
// try
// {
// using (IDataSession session = AppDataFactory.CreateMainSession())
// {
// //插入基本信息
// count = session.Insert<FISPlan>(model);
// }
// return count;
// }
// catch (Exception ex)
// {
// LogManager.LogHelper.Error(new LogInfo()
// {
// ErrorInfo = ex,
// Tag = ex.StackTrace,
// Info = "物料号信息数据层-插入信息"
// });
// throw;
// }
//}
#endregion
#region 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
//public int InsertRecord(FISPlanRecord record)
//{
// int no = 0;
// try
// {
// if (BaseSession != null)
// {
// //插入基本信息
// no = BaseSession.Insert<FISPlanRecord>(record);
// }
// else
// {
// using (IDataSession session = AppDataFactory.CreateMainSession())
// {
// //插入基本信息
// no = session.Insert<FISPlanRecord>(record);
// }
// }
// return no;
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#region 配置设备人员
#region 配置设备人员
/// <summary>
/// 获取列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
//public DataPage FisPlanRecordList(FISPlanRecord condition, DataPage page)
//{
// string sql = "";
// List<DataParameter> parameters = new List<DataParameter>();
// try
// {
// sql = this.GetFisPlanRecordSql(condition, ref parameters);
// //分页关键字段及排序
// page.KeyName = "PID";
// if (string.IsNullOrEmpty(page.SortExpression))
// {
// page.SortExpression = "CREATEDATE DESC";
// }
// using (IDataSession session = AppDataFactory.CreateMainSession())
// {
// page = session.GetDataPage<FISPlanRecord>(sql, parameters.ToArray(), page);
// }
// return page;
// }
// catch (Exception ex)
// {
// LogManager.LogHelper.Error(new LogInfo()
// {
// ErrorInfo = ex,
// Tag = ex.StackTrace,
// Info = "订单信息数据层-获取列表"
// });
// throw;
// }
//}
#endregion
#region 获取查询语句
/// <summary>
/// 获取查询语句
/// </summary>
/// <param name="user">查询条件</param>
/// <param name="parameters">参数</param>
/// <returns>查询语句</returns>
//private string GetFisPlanRecordSql(FISPlanRecord condition, ref List<DataParameter> parameters)
//{
// StringBuilder sqlBuilder = new StringBuilder();
// StringBuilder whereBuilder = new StringBuilder();
// try
// {
// //构成查询语句
// sqlBuilder.AppendLine(" SELECT P.PID ");
// sqlBuilder.AppendLine(" ,P.MID ");
// sqlBuilder.AppendLine(" ,P.PLAN_NO ");
// sqlBuilder.AppendLine(" ,P.MATERIAL_CODE ");
// sqlBuilder.AppendLine(" ,P.PLAN_QTY ");
// sqlBuilder.AppendLine(" ,P.OPERATION_TYPE ");
// sqlBuilder.AppendLine(" ,P.CREATEUSER ");
// sqlBuilder.AppendLine(" ,P.CREATEDATE ");;
// sqlBuilder.AppendLine(" ,C.USERNAME AS CREATEUSERNAME ");
// sqlBuilder.AppendLine(" FROM T_AW_FISPLANRECORD P ");
// sqlBuilder.AppendLine(" LEFT JOIN T_QM_USER C ON C.USERID=P.CREATEUSER ");
// //查询条件
// if (string.IsNullOrEmpty(condition.MID) == false)
// {
// whereBuilder.Append(" AND P.MID= @MID ");
// parameters.Add(new DataParameter { ParameterName = "MID", DataType = DbType.String, Value = condition.PLAN_NO });
// }
// if (whereBuilder.Length > 0)
// {
// sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4));
// }
// return sqlBuilder.ToString();
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#endregion
#region 插入操作记录
public int InsertOrderPlanTrace(IDataSession Bsession, TJOrderPlan model, string operatType)
{
try
{
var sql = $" insert into T_PP_TJFY_ORDERPLANTRACE(PID,PLAN_NO,PLAN_SEQ,PLAN_STATE,MATERIAL_CODE,QTY,PLAN_DATE,CREATEDATE,CREATEUSER,OPERATE_TYPE) " +
$" VALUES ('{Guid.NewGuid().ToString()}','{model.PLAN_NO}','{model.PLAN_SEQ}','{model.PLAN_STATE}','{model.MATERIAL_CODE}','{model.QTY}','{model.PLAN_DATE}','{model.UPDATEDATE}','{model.UPDATEUSER}','{operatType}');";
return Bsession.ExecuteSql(sql);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}

1115
APPQ5/QMAPP.FJC.DAL/TianJin/TJWorkOrderDAL.cs

File diff suppressed because it is too large

6
APPQ5/QMAPP.FJC.Entity/QMAPP.FJC.Entity.csproj

@ -222,6 +222,12 @@
<Compile Include="Stocktaking\CountSheetInfo.cs" /> <Compile Include="Stocktaking\CountSheetInfo.cs" />
<Compile Include="Stocktaking\Material.cs" /> <Compile Include="Stocktaking\Material.cs" />
<Compile Include="Stocktaking\test.cs" /> <Compile Include="Stocktaking\test.cs" />
<Compile Include="TianJin\TJEPasteCard.cs" />
<Compile Include="TianJin\TJEPasteDetailsCard.cs" />
<Compile Include="TianJin\TJFISORDER.cs" />
<Compile Include="TianJin\TJOrderPlan.cs" />
<Compile Include="TianJin\TJOrderPlanTrace.cs" />
<Compile Include="TianJin\TJWorkOrder.cs" />
<Compile Include="View\DAIFormView.cs" /> <Compile Include="View\DAIFormView.cs" />
<Compile Include="View\PlanLabel.cs" /> <Compile Include="View\PlanLabel.cs" />
<Compile Include="WarnManage\EquipMentAlarm.cs" /> <Compile Include="WarnManage\EquipMentAlarm.cs" />

119
APPQ5/QMAPP.FJC.Entity/TianJin/TJEPasteCard.cs

@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
public class TJEPasteCard
{
private string _paste_card_key;
/// <summary>
/// 贴车单主键
/// </summary>
public string PASTE_CARD_KEY
{
get { return _paste_card_key; }
set { _paste_card_key = value; }
}
private string _pastecardno;
/// <summary>
/// 贴车单号
/// </summary>
public string PASTECARDNO
{
get { return _pastecardno; }
set { _pastecardno = value; }
}
private string _pastecarddate;
/// <summary>
/// 贴车单打印时间
/// </summary>
public string PASTECARDDATE
{
get { return _pastecarddate; }
set { _pastecarddate = value; }
}
private string _pastecarddate2;
/// <summary>
/// 贴车单补打时间
/// </summary>
public string PASTECARDDATE2
{
get { return _pastecarddate2; }
set { _pastecarddate2 = value; }
}
private string _operator;
/// <summary>
/// 操作者
/// </summary>
public string OPERATOR
{
get { return _operator; }
set { _operator = value; }
}
private string _productionname;
/// <summary>
/// 生产线名称
/// </summary>
public string PRODUCTIONNAME
{
get { return _productionname; }
set { _productionname = value; }
}
/// <summary>
/// 创建时间
/// </summary>
private string _createtime;
/// <summary>
/// 创建时间
/// </summary>
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
/// <summary>
/// 创建时间
/// </summary>
private string _plantname;
/// <summary>
/// 工作重心
/// </summary>
public string PLANTNAME
{
get { return _plantname; }
set { _plantname = value; }
}
/// <summary>
/// 贴车单明细表
/// </summary>
//private IList<EPasteDetailsCard> _DetailsCardlist;
/// <summary>
/// 贴车单明细
/// </summary>
public List<TJEPasteDetailsCard> DetailsCardlist
{
get;
set;
}
public EFailLog FailLog
{
get;
set;
}
public string VINLACK
{
get;
set;
}
}
}

169
APPQ5/QMAPP.FJC.Entity/TianJin/TJEPasteDetailsCard.cs

@ -0,0 +1,169 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
/// <summary>
/// FIS发货效验明细
/// </summary>
public class TJEPasteDetailsCard
{
/// <summary>
/// FIS发货效验主键
/// </summary>
private string _pastedetailed_card_key;
/// <summary>
/// FIS发货效验主键
/// </summary>
public string PASTEDETAILED_CARD_KEY
{
get { return _pastedetailed_card_key; }
set { _pastedetailed_card_key = value; }
}
private string _fis_key;
/// <summary>
/// FIS接口表主键
/// </summary>
public string FIS_KEY
{
get { return _fis_key; }
set { _fis_key = value; }
}
private string _paste_card_key;
/// <summary>
/// 贴车单主键
/// </summary>
public string PASTE_CARD_KEY
{
get { return _paste_card_key; }
set { _paste_card_key = value; }
}
private string _sanbarcode;
/// <summary>
/// 扫描条码
/// </summary>
public string SANBARCODE
{
get { return _sanbarcode; }
set { _sanbarcode = value; }
}
/// <summary>
/// 产品主键
/// </summary>
public string PRODUCT_PID
{
get;
set;
}
private string _vwseq;
/// <summary>
/// 扫描条码
/// </summary>
public string VWSEQ
{
get { return _vwseq; }
set { _vwseq = value; }
}
/// <summary>
/// 条码扫描时间
/// </summary>
private string _scandate;
/// <summary>
/// 条码扫描时间
/// </summary>
public string SCANDATE
{
get { return _scandate; }
set { _scandate = value; }
}
/// <summary>
/// 零件号
/// </summary>
private string _prodno;
/// <summary>
/// 零件号
/// </summary>
public string PRODNO
{
get { return _prodno; }
set { _prodno = value; }
}
/// <summary>
/// 位置
/// </summary>
private string _moulecode;
/// <summary>
/// 位置
/// </summary>
public string MOULDCODE
{
get { return _moulecode; }
set { _moulecode = value; }
}
/// <summary>
/// 总成描述
/// </summary>
private string _carsetdesc_cn;
/// <summary>
/// 总成描述
/// </summary>
public string CARSETDESC_CN
{
get { return _carsetdesc_cn; }
set { _carsetdesc_cn = value; }
}
/// <summary>
/// 底盘号
/// </summary>
private string _vin;
/// <summary>
/// 底盘号
/// </summary>
public string VIN
{
get { return _vin; }
set { _vin = value; }
}
/// <summary>
/// 上线时间
/// </summary>
private string _cp5a;
/// <summary>
/// 上线时间
/// </summary>
public string CP5A
{
get { return _cp5a; }
set { _cp5a = value; }
}
/// <summary>
/// 车型
/// </summary>
private string _lineno;
/// <summary>
/// 车型
/// </summary>
public string LINENO
{
get { return _lineno; }
set { _lineno = value; }
}
/// <summary>
/// 当前guidview行号
/// </summary>
private int _dgvrowindex;
/// <summary>
/// 当前guidview行号
/// </summary>
public int DGVROWINDEX
{
get { return _dgvrowindex; }
set { _dgvrowindex = value; }
}
public string KIN { get; set; }
}
}

99
APPQ5/QMAPP.FJC.Entity/TianJin/TJFISORDER.cs

@ -0,0 +1,99 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using QMAPP.FJC.Entity.Basic;
using QMAPP.Entity;
using System.Data;
namespace QMAPP.FJC.Entity.TianJin
{
[DBTable(TableName = "T_PP_FISORDER")]
public class TJFISORDER
{
///<summary>
///主键
///</summary>
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///<summary>
///VWSEQ
///</summary>
[DBColumn(ColumnName = "VWSEQ", DataType = DbType.String)]
public string VWSEQ { get; set; }
///<summary>
///KIN
///</summary>
[DBColumn(ColumnName = "KIN", DataType = DbType.String)]
public string KIN { get; set; }
///<summary>
///VIN
///</summary>
[DBColumn(ColumnName = "VIN", DataType = DbType.String)]
public string VIN { get; set; }
///<summary>
///PRODNO
///</summary>
[DBColumn(ColumnName = "PRODNO", DataType = DbType.String)]
public string PRODNO { get; set; }
///<summary>
///CARSETDESC_CN
///</summary>
[DBColumn(ColumnName = "CARSETDESC_CN", DataType = DbType.String)]
public string CARSETDESC_CN { get; set; }
///<summary>
///CP5A
///</summary>
//[DBColumn(ColumnName = "CP5A", DataType = DbType.String)]
//public string CP5A { get; set; }
///<summary>
///SCANSTATE
///</summary>
[DBColumn(ColumnName = "SCANSTATE", DataType = DbType.String)]
public string SCANSTATE { get; set; }
///<summary>
///LINENO
///</summary>
[DBColumn(ColumnName = "LINENO", DataType = DbType.String)]
public string LINENO { get; set; }
///<summary>
///CREATETIME
///</summary>
[DBColumn(ColumnName = "CREATETIME", DataType = DbType.DateTime)]
public DateTime CREATETIME { get; set; }
///<summary>
///FLAGDEL
///</summary>
[DBColumn(ColumnName = "FLAGDEL", DataType = DbType.String)]
public string FLAGDEL { get; set; }
}
}

119
APPQ5/QMAPP.FJC.Entity/TianJin/TJOrderPlan.cs

@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using System.Data;
using QMAPP.Entity;
namespace QMAPP.FJC.Entity.TianJin
{
/// <summary>
/// 工单计划
/// </summary>
[DBTable(TableName = "T_PP_TJFY_ORDERPLAN", TimeStampColumn = "UPDATEDATE")]
public class TJOrderPlan : BaseEntity
{
///<summary>
///
///</summary>
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///<summary>
///计划单号
///</summary>
[DBColumn(ColumnName = "PLAN_NO", DataType = DbType.String)]
public string PLAN_NO { get; set; }
///<summary>
///计划顺序号
///</summary>
[DBColumn(ColumnName = "PLAN_SEQ", DataType = DbType.String)]
public String PLAN_SEQ { get; set; }
///<summary>
///车型
///</summary>
[DBColumn(ColumnName = "LINENO", DataType = DbType.String)]
public String LINENO { get; set; }
///<summary>
///计划状态
///</summary>
[DBColumn(ColumnName = "PLAN_STATE", DataType = DbType.String)]
public string PLAN_STATE { get; set; }
public string PLAN_STATES { get; set; }
///<summary>
///物料号
///</summary>
[DBColumn(ColumnName = "MATERIAL_CODE", DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
///<summary>
///物料名称
///</summary>
[DBColumn(ColumnName = "MATERIAL_NAME", DataType = DbType.String)]
public string MATERIAL_NAME { get; set; }
///<summary>
///计划数量
///</summary>
[DBColumn(ColumnName = "QTY", DataType = DbType.String)]
public int QTY { get; set; }
///<summary>
///计划日期
///</summary>
[DBColumn(ColumnName = "PLAN_DATE", DataType = DbType.DateTime)]
public DateTime PLAN_DATE { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)]
public string CREATEUSER { get; set; }
public string CREATEUSERNAME { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime, DefaultValue = DataDefaultValue.SysDate)]
public DateTime CREATEDATE { get; set; }
/// <summary>
/// 更新用户
/// </summary>
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)]
public string UPDATEUSER { get; set; }
public string UPDATEUSERNAME { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.DateTime)]
public DateTime UPDATEDATE { get; set; }
public DateTime PLANTIMESTART { get; set; }
public DateTime PLANTIMEEND { get; set; }
public string STARTTIMEVIEW { get; set; }
public string ENDTIMEVIEW { get; set; }
public string STARTTIMEIN { get; set; }
public string ENDTIMEIN { get; set; }
public string PLAN_DATEIN { get; set; }
public string AsmSetCode { get; set; }
}
}

82
APPQ5/QMAPP.FJC.Entity/TianJin/TJOrderPlanTrace.cs

@ -0,0 +1,82 @@
using System;
using System.Data;
using QMAPP.Entity;
using QMAPP.FJC.Entity.FIS;
using QMFrameWork.Data.Attributes;
namespace QMAPP.FJC.Entity.FileCopy.FIS
{
/// <summary>
/// 工单计划操作记录
/// </summary>
[DBTable(TableName = "T_PP_TJFY_ORDERPLANTRACE", TimeStampColumn = "UPDATEDATE")]
public class TJOrderPlanTrace : BaseEntity
{
/// <summary>
/// 操作类型
/// </summary>
[DBColumn(ColumnName = "OPERATE_TYPE", DataType = DbType.String)]
public string OPERATE_TYPE { get; set; }
///<summary>
///
///</summary>
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///<summary>
///计划单号
///</summary>
[DBColumn(ColumnName = "PLAN_NO", DataType = DbType.String)]
public string PLAN_NO { get; set; }
///<summary>
///计划顺序号
///</summary>
[DBColumn(ColumnName = "PLAN_SEQ", DataType = DbType.String)]
public string PLAN_SEQ { get; set; }
///<summary>
///计划状态
///</summary>
[DBColumn(ColumnName = "PLAN_STATE", DataType = DbType.String)]
public string PLAN_STATE { get; set; }
public string PLAN_STATES { get; set; }
///<summary>
///物料号
///</summary>
[DBColumn(ColumnName = "MATERIAL_CODE", DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
///<summary>
///计划数量
///</summary>
[DBColumn(ColumnName = "QTY", DataType = DbType.String)]
public int QTY { get; set; }
///<summary>
///计划日期
///</summary>
[DBColumn(ColumnName = "PLAN_DATE", DataType = DbType.DateTime)]
public DateTime PLAN_DATE { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)]
public string CREATEUSER { get; set; }
public string CREATEUSERNAME { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime)]
public DateTime CREATEDATE { get; set; }
public DateTime PLANTIMESTART { get; set; }
public DateTime PLANTIMEEND { get; set; }
}
}

98
APPQ5/QMAPP.FJC.Entity/TianJin/TJWorkOrder.cs

@ -0,0 +1,98 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using System.Data;
using QMAPP.Entity;
namespace QMAPP.FJC.Entity.TianJin
{
/// <summary>
/// 模块名称:派工单
/// 作 者:张鹏
/// 编写日期:2017年10月24日
/// </summary>
[DBTable(TableName = "T_PP_TJFY_WORKORDER")]
public class TJWorkOrder : BaseEntity
{
/// <summary>
/// 主键
/// </summary>
[DBColumn(ColumnName = "PID",DataType = DbType.String,IsKey = true)]
public string PID { get; set; }
/// <summary>
/// 订单计划ID
/// </summary>
[DBColumn(ColumnName = "ORDERPLANID",DataType = DbType.String)]
public string ORDERPLANID { get; set; }
/// <summary>
/// 订单计划号
/// </summary>
[DBColumn(ColumnName = "ORDERPLAN_NO",DataType = DbType.String)]
public string ORDERPLAN_NO { get; set; }
/// <summary>
/// 顺序号
/// </summary>
[DBColumn(ColumnName = "SEQ", DataType = DbType.String)]
public string SEQ { get; set; }
/// <summary>
/// 物料号
/// </summary>
[DBColumn(ColumnName = "MATERIAL_CODE",DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
/// <summary>
/// 物料号
/// </summary>
[DBColumn(ColumnName = "LINENO", DataType = DbType.String)]
public string LINENO { get; set; }
/// <summary>
/// 物料名称
/// </summary>
[DBColumn(ColumnName = "MATERIAL_NAME", DataType = DbType.String)]
public string MATERIAL_NAME { get; set; }
/// <summary>
/// 计划日期
/// </summary>
[DBColumn(ColumnName = "PLAN_DATE",DataType = DbType.DateTime)]
public DateTime PLAN_DATE { get; set; }
/// <summary>
/// 描述备注(用于保存产品条码)
/// </summary>
[DBColumn(ColumnName = "PRODUCTCODE", DataType = DbType.String)]
public string PRODUCTCODE { get; set; }
/// <summary>
/// 模架编码
/// </summary>
[DBColumn(ColumnName = "MOULD_CODE", DataType = DbType.String)]
public string MOULD_CODE { get; set; }
/// <summary>
/// 状态
/// 0:初始
/// 1:确认
/// 2:执行中
/// 3:完成
/// 4:挂起
/// </summary>
[DBColumn(ColumnName = "STATE", DataType = DbType.Int32)]
public int STATE { get; set; }
/// <summary>
/// 更新日期
/// </summary>
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.DateTime)]
public DateTime UPDATEDATE { get; set; }
}
}

2
APPQ5/QMAPP.FJC.Web/Controllers/ProductArchivesController.cs

@ -769,7 +769,7 @@ namespace QMAPP.FJC.Web.Controllers
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + "ProductArchives.pdf", FileMode.Create)); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + "ProductArchives.pdf", FileMode.Create));
//设置文档的属性 //设置文档的属性
document.AddAuthor("XXX");//作者 document.AddAuthor("XXX");//作者
document.AddCreator("XXX,富维安道拓成都数字化工厂!"); document.AddCreator("XXX,富维安道拓数字化工厂!");
document.AddKeywords("PDF,存档," + txtheader); document.AddKeywords("PDF,存档," + txtheader);
document.AddSubject(txtheader + "PDF文档导出存档"); document.AddSubject(txtheader + "PDF文档导出存档");
document.AddTitle(txtheader);//标题 document.AddTitle(txtheader);//标题

580
APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs

@ -0,0 +1,580 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QMAPP.Common.Web.Controllers;
using QMFrameWork.WebUI.Attribute;
using QMAPP.FJC.Web.Models.TianJin;
using QMFrameWork.Data;
using QMAPP.ServicesAgent;
using QMAPP.FJC.Entity.TianJin;
using QMAPP.Entity;
using QMFrameWork.WebUI.DataSource;
using QMFrameWork.Common.Serialization;
using System.Data;
using QMAPP.Common.Web.Models;
using QMAPP.FJC.Entity.Basic;
using QMAPP.MD.Entity;
using QMAPP.FJC.BLL.TianJin;
namespace QMAPP.FJC.Web.Controllers
{
/// <summary>
/// 天津门板发运计划
/// 作 者:张松男
/// 时 间:2021年12月28日
/// </summary>
public class TJDoorPlankPlanController : QController
{
#region 获取信息
/// <summary>
/// 加载列表
/// </summary>
/// <returns>结果</returns>
[HandleException]
public ActionResult List(bool? callback)
{
TJDoorPlankPlanModel seachModel = new TJDoorPlankPlanModel();
seachModel.PLANTIMESTART = DateTime.Now.Date.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss");
seachModel.PLANTIMEEND = DateTime.Now.Date.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss");
seachModel.ImmediateSearch = false;
if (callback == true)
TryGetSelectBuffer<TJDoorPlankPlanModel>(out seachModel);
seachModel.rownumbers = false;
seachModel.url = "/TJDoorPlankPlan/GetList";
return View("DoorPlankPlanList", seachModel);
}
#endregion
#region 获取列表
/// <summary>
/// 获取列表
/// </summary>
/// <param name="callBack">是否回调</param>
/// <returns>列表</returns>
[HandleException]
public ActionResult GetList(bool? callBack)
{
TJDoorPlankPlanModel seachModel = null;
DataPage page = null;
ServiceAgent wcfAgent = this.GetServiceAgent();
TJOrderPlan condition = null;
DataResult<DataPage> pageResult = new DataResult<DataPage>();
try
{
//获取查询对象
seachModel = GetModel<TJDoorPlankPlanModel>();
#region 获取缓存值
if (callBack != null)
{
TryGetSelectBuffer<TJDoorPlankPlanModel>(out seachModel);
}
else
{
//保存搜索条件
SetSelectBuffer<TJDoorPlankPlanModel>(seachModel);
}
#endregion
//获取前台分页设置信息
page = this.GetDataPage(seachModel);
condition = CopyToModel<TJOrderPlan, TJDoorPlankPlanModel>(seachModel);
#region wcf服务统一接口
pageResult = wcfAgent.InvokeServiceFunction<DataResult<DataPage>>("TJDoorPlankPlanBLL_GetList", condition, page);
if (pageResult.IsSuccess == false)
{
SetMessage(pageResult.Msg);
return List(true);
}
DateGridResult<TJOrderPlan> result = new DateGridResult<TJOrderPlan>();
result.Total = pageResult.Result.RecordCount;
result.Rows = JsonConvertHelper.GetDeserialize<List<TJOrderPlan>>(pageResult.Result.Result.ToString());
#endregion
return Content(result.GetJsonSource());
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 编辑
/// <summary>
/// 编辑载入
/// </summary>
/// <returns>处理结果</returns>
[HandleException]
public ActionResult Edit()
{
TJDoorPlankPlanModel model = new TJDoorPlankPlanModel();
string ID = Request.Params["PID"];
TJOrderPlan Entity = new TJOrderPlan();
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<TJOrderPlan> result = new DataResult<TJOrderPlan>();
try
{
if (string.IsNullOrEmpty(ID) == false)
{
//修改获取原数据
Entity.PID = ID;
result = wcfAgent.InvokeServiceFunction<DataResult<TJOrderPlan>>("TJDoorPlankPlanBLL_Get", Entity);
if (result.IsSuccess == false)
{
SetMessage(result.Msg);
return View("DoorPlankPlanEdit", model);
}
model = CopyToModel<TJDoorPlankPlanModel, TJOrderPlan>(result.Result);
}
return View("DoorPlankPlanEdit", model);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 保存
/// </summary>
/// <param name="model"></param>
/// <returns>处理结果</returns>
[HttpPost]
[HandleException]
[ValidateInput(false)]
public ActionResult Save(TJDoorPlankPlanModel saveModel)
{
TJOrderPlan Entity = null;
string TYPE = Request.Form["ORDER_TYPE"];
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<int> result = new DataResult<int>();
try
{
Entity = CopyToModel<TJOrderPlan, TJDoorPlankPlanModel>(saveModel);
if (string.IsNullOrEmpty(Entity.PID) == true)
{
//新增
//Entity.ORDER_TYPE = TYPE;
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("TJDoorPlankPlanBLL_Insert", Entity);
if (result.IsSuccess == false)
{
SetMessage("计划单号已存在!");
return View("DoorPlankPlanEdit", saveModel);
}
}
else
{
//修改
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("TJDoorPlankPlanBLL_Update", Entity);
if (result.IsSuccess == false)
{
SetMessage(result.Msg);
return View("DoorPlankPlanEdit", saveModel);
}
}
return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge));
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除
/// <summary>
/// 删除
/// </summary>
/// <returns>结果</returns>
[HttpPost]
[HandleException]
public ActionResult Delete(TJOrderPlan model)
{
string selectKey = Request.Form["selectKey"];
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<int> result = new DataResult<int>();
try
{
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("TJDoorPlankPlanBLL_Delete", selectKey);
if (result.IsSuccess == false)
{
SetMessage(result.Msg);
return List(true);
}
SetMessage(AppResource.DeleteMessage);
return List(true);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 发布
/// <summary>
/// 发布
/// </summary>
/// <returns></returns>
[HttpPost]
[HandleException]
public ActionResult PutOut(TJOrderPlan model)
{
string selectKey = Request.Form["selectKey"];
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<int> result = new DataResult<int>();
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("TJDoorPlankPlanBLL_PutOut", selectKey);
if (result.IsSuccess == false)
{
SetMessage(result.Msg);
return List(true);
}
SetMessage(AppResource.PutOutMessage);
return List(true);
}
#endregion
#region 导出excel
/// <summary>
/// 导出excel
/// </summary>
/// <returns>结果</returns>
[HttpPost]
public ActionResult ExportExcel()
{
TJDoorPlankPlanModel seachModel = null;
TJOrderPlan condition = null;
DataTable exportDt = new DataTable();
ServiceAgent wcfAgent = this.GetServiceAgent();
try
{
//获取查询对象
seachModel = GetModel<TJDoorPlankPlanModel>();
condition = CopyToModel<TJOrderPlan, TJDoorPlankPlanModel>(seachModel);
//获取数据
TJDoorPlankPlanBLL dp = new TJDoorPlankPlanBLL();
exportDt = dp.GetExportData(condition);
//exportDt = wcfAgent.InvokeServiceFunction<DataTable>("DoorPlankPlanBLL_GetExportData", condition);
//导出
QMFrameWork.WebUI.Util.IEFileTool efTool = new QMFrameWork.WebUI.Util.IEFileTool();
return efTool.GetExcelFileResult("DoorPlankPlanExp", "门板计划信息.xlsx", exportDt);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 导入excel
/// <summary>
/// 导入excel
/// </summary>
/// <returns>结果</returns>
[HttpPost]
public ActionResult ImportExcel()
{
DataTable dt = null;
List<TJOrderPlan> list = new List<TJOrderPlan>();
DataResult<ImportMessage> serviceResult = null;
string fileName = Request.Form["fileName"];
string orderby = Request.Form["ORDER_TYPE"];
ServiceAgent wcfAgent = this.GetServiceAgent();
Materiel materialmodel = new Materiel();
ProduceShift produceshiftmodel = new ProduceShift();
MachineInfo machine = new MachineInfo();
//初始工作中心编号条件
QMAPP.MD.Entity.WorkCell workcell = new QMAPP.MD.Entity.WorkCell();
workcell.WORKCELL_CODE = orderby;
try
{
dt = this.GetTableByExcel("DoorPlankPlanImp", fileName, dt);
//格式转换
list = QMFrameWork.Common.Util.BindHelper.ConvertToList<TJOrderPlan>(dt).ToList();
serviceResult = wcfAgent.InvokeServiceFunction<DataResult<ImportMessage>>("DoorPlankPlanBLL_GetImportData", list, materialmodel,machine, produceshiftmodel, workcell);
if (serviceResult.Ex != null)
{
throw serviceResult.Ex;
}
if (serviceResult.Result.failureNum != 0)
{
foreach (RowError error in serviceResult.Result.Errors)
{
dt.Rows[error.Key - 1]["InfoError"] = error.Value;
}
ImportMessageModel model = new ImportMessageModel();
model.InfoName = "DoorPlankPlanImp";
model.ReturnUrl = "/TJDoorPlankPlan/List?callBack=true";
model.Message = serviceResult.Result;
model.ErrorDt = dt;
return new MessageOutputController().OutputImportMessage(model);
}
else
{
SetMessage(serviceResult.Msg + ",如下:<br/>"
+ "插入" + serviceResult.Result.insertNum + "条,"
+ "更新" + serviceResult.Result.updateNum + "条"
);
return List(true);
}
}
catch (Exception ex)
{
throw ex;
}
finally
{
System.IO.File.Delete(MvcApplication.TempPath + fileName);
}
}
#endregion
#region 下载模板
/// <summary>
/// 下载导入模板
/// </summary>
/// <returns>结果</returns>
[HttpPost]
public ActionResult GetTemplate()
{
try
{
string path = AppDomain.CurrentDomain.BaseDirectory + "App_Data/Excel/";
string fileName = "DoorPlankPlanImp.xlsx";
return File(path + fileName, "application/vnd.ms-excel", Url.Encode("门板信息导入模板.xlsx"));
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
//#region 整车添加物料信息
///// <summary>
///// 编辑载入
///// </summary>
///// <returns>处理结果</returns>
//[HandleException]
//public ActionResult AddMaterial()
//{
// TJDoorPlankPlanModel model = new TJDoorPlankPlanModel();
// string ID = Request.Params["PID"];
// string TYPE = Request.Params["ORDER_TYPE"];
// TJOrderPlan Entity = new TJOrderPlan();
// ServiceAgent wcfAgent = this.GetServiceAgent();
// DataResult<TJOrderPlan> result = new DataResult<TJOrderPlan>();
// try
// {
// model.ORDER_TYPE = TYPE;
// return View("AddMaterialEdit", model);
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
///// <summary>
///// 保存
///// </summary>
///// <param name="model"></param>
///// <returns>处理结果</returns>
//[HttpPost]
//[HandleException]
//[ValidateInput(false)]
//public ActionResult SaveMaterial(TJDoorPlankPlanModel saveModel)
//{
// Material condition = new Material();
// ServiceAgent wcfAgent = this.GetServiceAgent();
// condition.MATERIAL_CODE = saveModel.MATERIAL_CODE;
// Material material = wcfAgent.InvokeServiceFunction<Material>("MaterialBLL_GetMaterialInfo", condition);
// if (!string.IsNullOrEmpty(material.PID))
// {
// saveModel.MATERIAL_NAME = material.MATERIAL_NAME;
// saveModel.COLOR = material.COLOR;
// saveModel.HBTYPE = material.HBTYPE;
// return View("AddWholeDoorEdit", saveModel);
// }
// return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge));
//}
//#endregion
#region 整车添加物料信息
//[HandleException]
//public ActionResult AddSendDetail(bool? callBack)
//{
// //实例化服务
// ServiceAgent wcfAgent = this.GetServiceAgent();
// QMAPP.MD.Web.Models.MaterialModel seachModel = null;
// DataResult<DataPage> pageResult = new DataResult<DataPage>();
// DataPage page = new DataPage();
// string Fisid = Request["MATERIAL_CODE"].ToString();
// FISAssembly MaterialAssInfo = wcfAgent.InvokeServiceFunction<FISAssembly>("DoorPlankPlanBLL_GetFISMaterialInfoCD", Fisid);
// string materials = "('" + MaterialAssInfo.MESModulFL + "','" + MaterialAssInfo.MESModulFR + "','" + MaterialAssInfo.MESModulRL + "','" + MaterialAssInfo.MESModulRR + "')";
// //物料发货明细实体
// Material detail = new Material()
// {
// MaterialCodes = materials,
// };
// try
// {
// //获取查询对象
// seachModel = GetModel<QMAPP.MD.Web.Models.MaterialModel>();
// #region 获取缓存值
// if (callBack != null)
// {
// TryGetSelectBuffer<QMAPP.MD.Web.Models.MaterialModel>(out seachModel);
// }
// else
// {
// //保存搜索条件
// SetSelectBuffer<QMAPP.MD.Web.Models.MaterialModel>(seachModel);
// }
// #endregion
// //获取前台分页设置信息
// page = this.GetDataPage(seachModel);
// pageResult = wcfAgent.InvokeServiceFunction<DataResult<DataPage>>("MaterialBLL_GetList", detail, page);
// if (pageResult.IsSuccess == false)
// {
// SetMessage(pageResult.Msg);
// return List(true);
// }
// DateGridResult<Material> result = new DateGridResult<Material>();
// result.Total = pageResult.Result.RecordCount;
// result.Rows = JsonConvertHelper.GetDeserialize<List<Material>>(pageResult.Result.Result.ToString());
// for (var i = 0; i < result.Total; i++)
// {
// result.Rows[i].AsmSetCode = MaterialAssInfo.AsmSetCode;
// }
// return Content(result.GetJsonSource());
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#region 门板顺序号编辑
/// <summary>
/// 门板顺序号编辑
/// </summary>
/// <returns></returns>
public ActionResult DoorPlankEditSeq()
{
TJDoorPlankPlanModel model = new TJDoorPlankPlanModel();
TJOrderPlan Entity = new TJOrderPlan();
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<TJOrderPlan> result = new DataResult<TJOrderPlan>();
try
{
model = GetModel<TJDoorPlankPlanModel>();
return View("DoorPlankEditSeq", model);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 获取编辑系列号列表
/// <summary>
/// 获取编辑系列号列表
/// </summary>
/// <param name="callBack"></param>
/// <returns></returns>
[HandleException]
public ActionResult GetDoorPlankPlanList(bool? callBack)
{
TJDoorPlankPlanModel seachModel = null;
DataResult<DataPage> pageResult = new DataResult<DataPage>();
DataPage page = new DataPage();
ServiceAgent wcfAgent = this.GetServiceAgent();
TJOrderPlan condition = new TJOrderPlan();
try
{
//获取查询对象
seachModel = GetModel<TJDoorPlankPlanModel>();
//condition.PIDList =seachModel.PIDList;
//condition.ORDER_TYPE = seachModel.ORDER_TYPE;
#region 获取缓存值
if (callBack != null)
{
TryGetSelectBuffer<TJDoorPlankPlanModel>(out seachModel);
}
else
{
//保存搜索条件
SetSelectBuffer<TJDoorPlankPlanModel>(seachModel);
}
#endregion
//获取前台分页设置信息
page = this.GetDataPage(seachModel);
condition = CopyToModel<TJOrderPlan, TJDoorPlankPlanModel>(seachModel);
#region wcf服务统一接口
pageResult = wcfAgent.InvokeServiceFunction<DataResult<DataPage>>("DoorPlankPlanBLL_GetDoorPlankPlanList", condition, page);
if (pageResult.IsSuccess == false)
{
SetMessage(pageResult.Msg);
return List(true);
}
DateGridResult<TJOrderPlan> result = new DateGridResult<TJOrderPlan>();
result.Total = pageResult.Result.RecordCount;
result.Rows = JsonConvertHelper.GetDeserialize<List<TJOrderPlan>>(pageResult.Result.Result.ToString());
#endregion
return Content(result.GetJsonSource());
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 保存顺序号修改
/// <summary>
///
/// </summary>
/// <param name="model"></param>
/// <returns>处理结果</returns>
[HttpPost]
[HandleException]
[ValidateInput(false)]
public ActionResult DoorPlankPlanSeqSave(TJDoorPlankPlanModel saveModel)
{
TJOrderPlan entity = new TJOrderPlan();
ServiceAgent wcfAgent = this.GetServiceAgent();
DataResult<int> result = new DataResult<int>();
entity.PLAN_SEQ = saveModel.PLAN_SEQ;
//entity.PIDList = saveModel.PIDList;
entity = CopyToModel<TJOrderPlan, TJDoorPlankPlanModel>(saveModel);
//修改
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("DoorPlankPlanBLL_UpdateDoorPlankPlanSeq", entity);
return this.GetJsViewResult(string.Format("parent.List(1);parent.showTitle('{0}');parent.closeAppWindow1();", AppResource.SaveMessge));
}
#endregion
}
}

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

@ -0,0 +1,142 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI.Attribute;
using QMFrameWork.WebUI;
namespace QMAPP.FJC.Web.Models.TianJin
{
public class TJDoorPlankPlanModel:QDGModel
{
///<summary>
///主键
///</summary>
[Description("主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PID { get; set; }
///<summary>
///计划单号
///</summary>
[Description("计划单号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30,Width = 200)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string PLAN_NO { get; set; }
///<summary>
///计划顺序号
///</summary>
[Description("计划顺序号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string PLAN_SEQ { get; set; }
///<summary>
///车型
///</summary>
[Description("车型")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string LINENO { get; set; }
///<summary>
///计划状态
///</summary>
[Description("计划状态")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string PLAN_STATE { get; set; }
///<summary>
///物料号
///</summary>
[Description("物料号")]
[HTMLInput(UpdateRead = false, required = true, Width = 200, MaxLength = 30)]
[InputType(inputType.combotree)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center)]
public string MATERIAL_CODE { get; set; }
///<summary>
///物料名称
///</summary>
[Description("物料名称")]
[DGColumn(frozenColumns = false, Sortable = true, Width = 240, DataAlign = DataAlign.center)]
public string MATERIAL_NAME { get; set; }
///<summary>
///计划数量
///</summary>
[Description("计划数量")]
[HTMLInput(UpdateRead = false, Width = 196, required = true, MaxLength = 30)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string QTY { get; set; }
///<summary>
///备注
///</summary>
[Description("备注")]
[HTMLInput(UpdateRead = false, Width = 196, MaxLength = 30)]
[InputType(inputType.textArea)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string REMARK { get; set; }
///<summary>
///计划日期
///</summary>
[Description("计划日期")]
[HTMLInput(UpdateRead = true, required = true, Width = 200, MaxLength = 30)]
[InputType(inputType.datebox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center)]
public DateTime PLAN_DATE { get; set; }
[Description("计划日期")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 200, FormatDate = "yyyy-MM-dd HH:mm:ss")]
[InputType(inputType.dateTimeBox)]
public string PLANTIMESTART { get; set; }
[Description("至")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 200, FormatDate = "yyyy-MM-dd HH:mm:ss")]
[InputType(inputType.dateTimeBox)]
public string PLANTIMEEND { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[Description("创建用户")]
public string CREATEUSER { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[Description("创建用户")]
[DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string CREATEUSERNAME { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Description("创建时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")]
public DateTime CREATEDATE { get; set; }
/// <summary>
/// 物料号
/// </summary>
[Description("物料号")]
public string MaterialCodes { get; set; }
}
}

4
APPQ5/QMAPP.FJC.Web/QMAPP.FJC.Web.csproj

@ -229,6 +229,7 @@
<Compile Include="Controllers\ProductOutController.cs" /> <Compile Include="Controllers\ProductOutController.cs" />
<Compile Include="Controllers\QualifiedRateController.cs" /> <Compile Include="Controllers\QualifiedRateController.cs" />
<Compile Include="Controllers\RawMaterialController.cs" /> <Compile Include="Controllers\RawMaterialController.cs" />
<Compile Include="Controllers\TJDoorPlankPlanController.cs" />
<Compile Include="Controllers\TSWeighRecoreController.cs" /> <Compile Include="Controllers\TSWeighRecoreController.cs" />
<Compile Include="Controllers\RawMaterialRecordController.cs" /> <Compile Include="Controllers\RawMaterialRecordController.cs" />
<Compile Include="Controllers\ScrapRecordController.cs" /> <Compile Include="Controllers\ScrapRecordController.cs" />
@ -361,6 +362,7 @@
<Compile Include="Models\Stocktaking\CountResultModel.cs" /> <Compile Include="Models\Stocktaking\CountResultModel.cs" />
<Compile Include="Models\Stocktaking\CountSheetModel.cs" /> <Compile Include="Models\Stocktaking\CountSheetModel.cs" />
<Compile Include="Models\Stocktaking\StocktakingSearchModel.cs" /> <Compile Include="Models\Stocktaking\StocktakingSearchModel.cs" />
<Compile Include="Models\TianJin\TJDoorPlankPlanModel.cs" />
<Compile Include="Models\WarnManage\EquipMentAlarmModel.cs" /> <Compile Include="Models\WarnManage\EquipMentAlarmModel.cs" />
<Compile Include="Models\WarnManage\EquipMentMaintainModel.cs"> <Compile Include="Models\WarnManage\EquipMentMaintainModel.cs">
<SubType>Code</SubType> <SubType>Code</SubType>
@ -900,6 +902,8 @@
<Content Include="Views\AppConfig\AppConfigList.aspx" /> <Content Include="Views\AppConfig\AppConfigList.aspx" />
<Content Include="Views\BucketMaterialClass\BucketMaterialClassEdit.aspx" /> <Content Include="Views\BucketMaterialClass\BucketMaterialClassEdit.aspx" />
<Content Include="Views\BucketMaterialClass\BucketMaterialClassList.aspx" /> <Content Include="Views\BucketMaterialClass\BucketMaterialClassList.aspx" />
<Content Include="Views\TJDoorPlankPlan\DoorPlankPlanEdit.aspx" />
<Content Include="Views\TJDoorPlankPlan\DoorPlankPlanList.aspx" />
<Content Include="Views\TSWeighRecore\TSWeighRecoreList.aspx" /> <Content Include="Views\TSWeighRecore\TSWeighRecoreList.aspx" />
<Content Include="Views\RawMaterialRecord\RawMaterialRecordEdit.aspx" /> <Content Include="Views\RawMaterialRecord\RawMaterialRecordEdit.aspx" />
<Content Include="Views\RawMaterialRecord\RawMaterialRecordList.aspx" /> <Content Include="Views\RawMaterialRecord\RawMaterialRecordList.aspx" />

106
APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanEdit.aspx

@ -0,0 +1,106 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.TianJin.TJDoorPlankPlanModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
门板订单计划信息编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
<%
var editable = false;
if (string.IsNullOrEmpty(Model.PLAN_STATE) || string.Equals(Model.PLAN_STATE, "0"))
{
editable = true;
}
%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table>
<tr>
<th align="right">
<%=Html.QV(p => p.PLAN_DATE)%>
</th>
<td>
<input id="PLAN_DATE" name="PLAN_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?DateTime.Now.ToString("yyyy-MM-dd"):Model.PLAN_DATE.ToString("yyyy-MM-dd HH:mm:ss") %>"
style=" width:200px" type="text" class="easyui-datebox" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.MATERIAL_CODE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_CODE, editable ? null : new { Readonly = "readonly" })%>
<script type="text/javascript" language="javascript">
</script>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.QTY)%>
</th>
<td>
<%=Html.QC(p => p.QTY)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.LINENO)%>
</th>
<td>
<%=Html.QC(p => p.LINENO)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.REMARK)%>
</th>
<td>
<%=Html.QC(p => p.REMARK)%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.PID) %>
<%=Html.HiddenFor(p=>p.CREATEDATE) %>
<%=Html.HiddenFor(p=>p.CREATEUSER) %>
<%=Html.HiddenFor(p => p.PLAN_STATE)%>
<%=Html.HiddenFor(p => p.PLAN_NO)%>
<%=Html.QPEnd() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("User", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "DashBoardPlanList", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
<script type="text/javascript">
$(function () {
//获取物料下拉数据源
$('#MATERIAL_CODE').combotree({
url: "/Dict/GetFisMaterialTree?ordertype=",
panelHeight: '230',
panelWidth: '470',
});
});
function Save() {
var reg = /^[0-9]+$/;
var netId = $("#QTY").val();
if (!reg.test(netId)) {
MSI("提示", "计划数量只能输入数字。");
return;
}
submitByButton("Save");
}
</script>
</asp:Content>

191
APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx

@ -0,0 +1,191 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.TianJin.TJDoorPlankPlanModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
订单生产计划列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(80, true)%>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.PLAN_NO)%>
</th>
<td>
<%=Html.QC(p => p.PLAN_NO)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIAL_CODE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.PLANTIMESTART)%>
</th>
<td>
<%=Html.QC(p => p.PLANTIMESTART)%>
</td>
<th align="right">
<%=Html.QV(p => p.PLANTIMEEND)%>
</th>
<td>
<%=Html.QC(p => p.PLANTIMEEND)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.TianJin.TJDoorPlankPlanModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName")%>
<%=Html.Hidden("ORDER_TYPE")%>
<script language="javascript" type="text/javascript">
$(function () {
var type = document.getElementById("ORDER_TYPE").value;
//获取物料下拉数据源
$('#MATERIAL_CODE').combotree({
url: "/Dict/GetFisMaterialTree?ordertype=" + type,
panelHeight: '250',
panelWidth: '500',
});
List(1);
});
//添加
function Add() {
openAppWindow1('信息添加', 'Edit', '500', '400');
}
//整车添加
function AddWholeDoor() {
var type = document.getElementById("ORDER_TYPE").value;
openAppWindow1('整车添加门板', 'AddWholeDoor?ORDER_TYPE=' + type, '650', '380');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
openAppWindow1('修改', 'Edit?PID=' + ids, '500', '400');
}
//插单
function Insert() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择一条FIS计划作为插单位置。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "只能选择一条FIS计划作为插单位置。");
return;
}
document.getElementById("selectKey").value = ids;
var type = document.getElementById("ORDER_TYPE").value;
openAppWindow1('插单', 'Insert?PID=' + ids + "&ORDER_TYPE=" + type, '650', '380');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
}
//导入
function Import() {
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: Yes;status: Yes;");
if (fileName == null)
return;
document.getElementById("fileName").value = fileName;
//处理等待
submitByButton("ImportExcel");
}
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
//下载模板
function getTemplate() {
submitByButton("GetTemplate");
}
//查询
function Search() {
var endtime = document.getElementById("PLANTIMEEND").value;
if (parseDate($("#PLANTIMESTART").val()) > parseDate($("#PLANTIMEEND").val()) && endtime != "") {
alert("开始时间不能大于结束时间!");
return;
}
List(1)
}
//发布
function Publish() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要发布选中的记录吗?", function () {
submitByButton("PutOut");
})
}
}
//修改计划顺序
function EditDoorPlankPlanSeq() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
return;
}
document.getElementById("selectKey").value = ids;
var type = document.getElementById("ORDER_TYPE").value;
openAppWindow1('修改门板计划顺序号', 'DoorPlankEditSeq?PIDList=' + ids+ "&ORDER_TYPE=" + type, '690', '400');
}
$(function () {
$('#FACTORY_CODE').combobox({
panelWidth: '350'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("DoorPlankPlan", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("DoorPlankPlan", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%-- <%=Html.QTButton("AddWholeDoor", "AddWholeDoor", QMFrameWork.WebUI.IconCls.add, "AddWholeDoor()", QMAPP.Common.Web.SystemLimit.isLimt)%>--%>
<%=Html.QTButtonUpdate("DoorPlankPlan", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%-- <%=Html.QTButton("EditSeq", "EditDoorPlankPlanSeq", QMFrameWork.WebUI.IconCls.edit, "EditDoorPlankPlanSeq()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("insertorder","Insert",QMFrameWork.WebUI.IconCls.add,"Insert()", QMAPP.Common.Web.SystemLimit.isLimt)%> --%>
<%=Html.QTButtonDelete("DoorPlankPlan", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("publish", "PutOut", "detail", "Publish()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%-- <%=Html.QTButton("import", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("template", "TemplateExcel", QMFrameWork.WebUI.IconCls.template, "getTemplate()", QMAPP.Common.Web.SystemLimit.isLimt)%> --%>
</td>
</tr>
</table>
</asp:Content>

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

@ -31,7 +31,10 @@
<!--<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=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.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" 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;User Id=CDMESADM;Password=CDmes123;" providerName="System.Data.SqlClient"/>--> <!--<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES;User Id=CDMESADM;Password=CDmes123;" providerName="System.Data.SqlClient"/>-->
</connectionStrings> </connectionStrings>

10
APPQ5/QMAPP.WinForm/App.config

@ -4,10 +4,12 @@
<!--主数据库连接--> <!--主数据库连接-->
<!--<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="maindbBZD" connectionString="Data Source=119.3.213.202,13315;Initial Catalog=BZD;User Id=sa;Password=ChangkeTec@2020;" providerName="System.Data.SqlClient"/>--> <add name="maindbBZD" connectionString="Data Source=119.3.213.202,13315;Initial Catalog=BZD;User Id=sa;Password=ChangkeTec@2020;" 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_MES9;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.99;Initial Catalog=ADIENT_CD_MES9;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"/>-->
</connectionStrings> </connectionStrings>

9
APPQ5/QMAPP.WinForm/Forms/TianJin/RerportModel.ttx

@ -0,0 +1,9 @@
LINENO String 100
PRODUCTIONNAME String 100
ROWINDEX String 100
VWSEQ String 100
VIN String 100
PRODNO String 100
CARSETDESCCN String 100
PASTECARDNO String 100
SCANDATE String 100

60
APPQ5/QMAPP.WinForm/Forms/TianJin/TJDefaultDataSetNum.cs

@ -0,0 +1,60 @@
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;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJDefaultDataSetNum : Form
{
public TJDefaultDataSetNum()
{
InitializeComponent();
}
/// <summary>
/// 设置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnSet_Click(object sender, EventArgs e)
{
if (txtDataSetNum.Text.Trim().Length == 0)
{
MessageBox.Show("设置的值不允许为空!");
}
else
{
//QM.Config.CustomConfig.SetItem("ShowDataCount", txtDataSetNum.Text);
QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount"] = txtDataSetNum.Text;
QMAPP.WinForm.Common.LocalSetting.Settings["RowCount"] = txtRowCount.Text;
MessageBox.Show("设置成功!");
TJFrmPlace fplace = (TJFrmPlace)this.Owner;
fplace.GetInitData();
fplace.InitContainer();
this.Close();
}
}
private void txtDataSetNum_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar != '\b' && !Char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
private void DefaultDataSetNum_Load(object sender, EventArgs e)
{
//txtDataSetNum.Text = QM.Config.CustomConfig.GetItem("ShowDataCount");
txtDataSetNum.Text = QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount"];
txtRowCount.Text = QMAPP.WinForm.Common.LocalSetting.Settings["RowCount"];
}
}
}

109
APPQ5/QMAPP.WinForm/Forms/TianJin/TJDefaultDataSetNum.designer.cs

@ -0,0 +1,109 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJDefaultDataSetNum
{
/// <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.label4 = new System.Windows.Forms.Label();
this.txtDataSetNum = new System.Windows.Forms.TextBox();
this.btnSet = new System.Windows.Forms.Button();
this.txtRowCount = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 22);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 11;
this.label4.Text = "器具容量";
//
// txtDataSetNum
//
this.txtDataSetNum.Location = new System.Drawing.Point(71, 19);
this.txtDataSetNum.MaxLength = 3;
this.txtDataSetNum.Name = "txtDataSetNum";
this.txtDataSetNum.Size = new System.Drawing.Size(124, 21);
this.txtDataSetNum.TabIndex = 12;
this.txtDataSetNum.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtDataSetNum_KeyPress);
//
// btnSet
//
this.btnSet.Location = new System.Drawing.Point(212, 18);
this.btnSet.Name = "btnSet";
this.btnSet.Size = new System.Drawing.Size(75, 23);
this.btnSet.TabIndex = 17;
this.btnSet.Text = "设置";
this.btnSet.UseVisualStyleBackColor = true;
this.btnSet.Click += new System.EventHandler(this.btnSet_Click);
//
// txtRowCount
//
this.txtRowCount.Location = new System.Drawing.Point(71, 46);
this.txtRowCount.MaxLength = 3;
this.txtRowCount.Name = "txtRowCount";
this.txtRowCount.Size = new System.Drawing.Size(124, 21);
this.txtRowCount.TabIndex = 19;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 49);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 18;
this.label1.Text = "器具层数";
//
// DefaultDataSetNum
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(298, 91);
this.Controls.Add(this.txtRowCount);
this.Controls.Add(this.label1);
this.Controls.Add(this.btnSet);
this.Controls.Add(this.txtDataSetNum);
this.Controls.Add(this.label4);
this.Name = "DefaultDataSetNum";
this.Text = "设置发运器具容量";
this.Load += new System.EventHandler(this.DefaultDataSetNum_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtDataSetNum;
private System.Windows.Forms.Button btnSet;
private System.Windows.Forms.TextBox txtRowCount;
private System.Windows.Forms.Label label1;
}
}

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

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

75
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.cs

@ -0,0 +1,75 @@
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 Model;
using DCS.Place;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJFrmCarCardDetail : Form
{
public TJFrmCarCardDetail()
{
InitializeComponent();
}
private string pasterkey = "";
public TJFrmCarCardDetail(string pastecardkey)
{
pasterkey = pastecardkey;
InitializeComponent();
}
EPasteCard pastecard;
string ptroducttype = "";
string printtype = "";
public bool isprint = false;
public TJFrmCarCardDetail(EPasteCard ppaste, string pstrprodtype, string pprinttype)
{
printtype = pprinttype;
pastecard = ppaste;
ptroducttype = pstrprodtype;
InitializeComponent();
}
public void getdate()
{
dgvMat.DataMember = null;
dgvMat.DataSource = pastecard.DetailsCardlist;
}
/// <summary>
/// 页面加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FrmCarCardPrintShow_Load(object sender, EventArgs e)
{
#region
try
{
//btnPrint.Enabled = true;
if (printtype == "手动")
{
ITEMNO.Visible = false;
getdate();
}
else
{
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetPascardDetailsByPid.ToString(), pasterkey);
dgvMat.DataSource = tbl;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
#endregion
}
}
}

281
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.designer.cs

@ -0,0 +1,281 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJFrmCarCardDetail
{
/// <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.tcEmployee = new System.Windows.Forms.TabControl();
this.tpPrint = new System.Windows.Forms.TabPage();
this.dgvMat = new System.Windows.Forms.DataGridView();
this.tsslbl_Message = new System.Windows.Forms.ToolStripStatusLabel();
this.statusStrip = new System.Windows.Forms.StatusStrip();
this.ITEMNO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PASTECARDNO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.VIN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.NAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CP5A = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LINENO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tcEmployee.SuspendLayout();
this.tpPrint.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMat)).BeginInit();
this.statusStrip.SuspendLayout();
this.SuspendLayout();
//
// tcEmployee
//
this.tcEmployee.Controls.Add(this.tpPrint);
this.tcEmployee.Dock = System.Windows.Forms.DockStyle.Fill;
this.tcEmployee.Location = new System.Drawing.Point(0, 0);
this.tcEmployee.Name = "tcEmployee";
this.tcEmployee.SelectedIndex = 0;
this.tcEmployee.Size = new System.Drawing.Size(789, 482);
this.tcEmployee.TabIndex = 67;
//
// tpPrint
//
this.tpPrint.Controls.Add(this.dgvMat);
this.tpPrint.Location = new System.Drawing.Point(4, 22);
this.tpPrint.Name = "tpPrint";
this.tpPrint.Padding = new System.Windows.Forms.Padding(3);
this.tpPrint.Size = new System.Drawing.Size(781, 456);
this.tpPrint.TabIndex = 0;
this.tpPrint.Text = "贴车单";
this.tpPrint.UseVisualStyleBackColor = true;
//
// dgvMat
//
this.dgvMat.AllowUserToAddRows = false;
this.dgvMat.AllowUserToDeleteRows = false;
this.dgvMat.BackgroundColor = System.Drawing.Color.White;
this.dgvMat.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvMat.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ITEMNO,
this.PASTECARDNO,
this.VIN,
this.Column1,
this.CODE,
this.NAME,
this.CP5A,
this.Column2,
this.LINENO,
this.Column4,
this.Column5,
this.Column6,
this.Column7,
this.Column8,
this.Column10,
this.Column11});
this.dgvMat.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvMat.Location = new System.Drawing.Point(3, 3);
this.dgvMat.Name = "dgvMat";
this.dgvMat.RowTemplate.Height = 23;
this.dgvMat.Size = new System.Drawing.Size(775, 450);
this.dgvMat.TabIndex = 1;
//
// tsslbl_Message
//
this.tsslbl_Message.Name = "tsslbl_Message";
this.tsslbl_Message.Size = new System.Drawing.Size(0, 17);
//
// statusStrip
//
this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsslbl_Message});
this.statusStrip.Location = new System.Drawing.Point(0, 482);
this.statusStrip.Name = "statusStrip";
this.statusStrip.Size = new System.Drawing.Size(789, 22);
this.statusStrip.TabIndex = 68;
this.statusStrip.Text = "statusStrip1";
//
// ITEMNO
//
this.ITEMNO.DataPropertyName = "ROWINDEX";
this.ITEMNO.HeaderText = "序号";
this.ITEMNO.Name = "ITEMNO";
this.ITEMNO.Visible = false;
this.ITEMNO.Width = 60;
//
// PASTECARDNO
//
this.PASTECARDNO.DataPropertyName = "PASTECARDNO";
this.PASTECARDNO.HeaderText = "运单号";
this.PASTECARDNO.Name = "PASTECARDNO";
//
// VIN
//
this.VIN.DataPropertyName = "VIN";
this.VIN.HeaderText = "绑定计划";
this.VIN.Name = "VIN";
this.VIN.ReadOnly = true;
this.VIN.Width = 200;
//
// Column1
//
this.Column1.DataPropertyName = "VWSEQ";
this.Column1.HeaderText = "顺序号";
this.Column1.Name = "Column1";
//
// CODE
//
this.CODE.DataPropertyName = "PRODNO";
this.CODE.HeaderText = "零件号";
this.CODE.Name = "CODE";
this.CODE.ReadOnly = true;
this.CODE.Width = 150;
//
// NAME
//
this.NAME.DataPropertyName = "CARSETDESC_CN";
this.NAME.HeaderText = "总成描述";
this.NAME.Name = "NAME";
this.NAME.ReadOnly = true;
//
// CP5A
//
this.CP5A.DataPropertyName = "CP5A";
this.CP5A.HeaderText = "位置";
this.CP5A.Name = "CP5A";
this.CP5A.ReadOnly = true;
this.CP5A.Width = 120;
//
// Column2
//
this.Column2.DataPropertyName = "KIN";
this.Column2.HeaderText = "Column2";
this.Column2.Name = "Column2";
this.Column2.Visible = false;
//
// LINENO
//
this.LINENO.DataPropertyName = "LINENO";
this.LINENO.HeaderText = "车型";
this.LINENO.Name = "LINENO";
//
// Column4
//
this.Column4.DataPropertyName = "SANBARCODE";
this.Column4.HeaderText = "Column4";
this.Column4.Name = "Column4";
this.Column4.Visible = false;
//
// Column5
//
this.Column5.DataPropertyName = "SCANDATE";
this.Column5.HeaderText = "Column5";
this.Column5.Name = "Column5";
this.Column5.Visible = false;
//
// Column6
//
this.Column6.DataPropertyName = "PASTEDETAILED_CARD_KEY";
this.Column6.HeaderText = "Column6";
this.Column6.Name = "Column6";
this.Column6.Visible = false;
//
// Column7
//
this.Column7.DataPropertyName = "FIS_KEY";
this.Column7.HeaderText = "Column7";
this.Column7.Name = "Column7";
this.Column7.Visible = false;
//
// Column8
//
this.Column8.DataPropertyName = "PASTE_CARD_KEY";
this.Column8.HeaderText = "Column8";
this.Column8.Name = "Column8";
this.Column8.Visible = false;
//
// Column10
//
this.Column10.DataPropertyName = "PRODUCTIONNAME";
this.Column10.HeaderText = "Column10";
this.Column10.Name = "Column10";
this.Column10.Visible = false;
//
// Column11
//
this.Column11.DataPropertyName = "DGVROWINDEX";
this.Column11.HeaderText = "Column11";
this.Column11.Name = "Column11";
this.Column11.Visible = false;
//
// TJFrmCarCardDetail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 504);
this.Controls.Add(this.tcEmployee);
this.Controls.Add(this.statusStrip);
this.Name = "TJFrmCarCardDetail";
this.Text = "贴车单明细";
this.Load += new System.EventHandler(this.FrmCarCardPrintShow_Load);
this.tcEmployee.ResumeLayout(false);
this.tpPrint.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvMat)).EndInit();
this.statusStrip.ResumeLayout(false);
this.statusStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TabControl tcEmployee;
private System.Windows.Forms.TabPage tpPrint;
private System.Windows.Forms.DataGridView dgvMat;
private System.Windows.Forms.ToolStripStatusLabel tsslbl_Message;
private System.Windows.Forms.StatusStrip statusStrip;
private System.Windows.Forms.DataGridViewTextBoxColumn ITEMNO;
private System.Windows.Forms.DataGridViewTextBoxColumn PASTECARDNO;
private System.Windows.Forms.DataGridViewTextBoxColumn VIN;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn CODE;
private System.Windows.Forms.DataGridViewTextBoxColumn NAME;
private System.Windows.Forms.DataGridViewTextBoxColumn CP5A;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn LINENO;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
}
}

171
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardDetail.resx

@ -0,0 +1,171 @@
<?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="ITEMNO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PASTECARDNO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VIN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NAME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CP5A.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LINENO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

170
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.cs

@ -0,0 +1,170 @@
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 Model;
using DCS.Place;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJFrmCarCardPrintShow : Form
{
public TJFrmCarCardPrintShow()
{
InitializeComponent();
}
private string pasterkey = "";
public TJFrmCarCardPrintShow(string pastecardkey)
{
pasterkey = pastecardkey;
InitializeComponent();
}
TJEPasteCard pastecard;
string ptroducttype = "";
string printtype = "";
public bool isprint = false;
public TJFrmCarCardPrintShow(TJEPasteCard ppaste, string pstrprodtype, string pprinttype)
{
printtype = pprinttype;
pastecard = ppaste;
ptroducttype = pstrprodtype;
InitializeComponent();
}
public void getdate()
{
dgvMat.DataMember = null;
dgvMat.DataSource = pastecard.DetailsCardlist;
}
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnPrint_Click(object sender, EventArgs e)
{
try
{
if (printtype == "手动")
{
PrintPasteCard prin = new PrintPasteCard();
DataTable dt = new DataTable();
dt.Columns.Add("ROWINDEX");
dt.Columns.Add("VWSEQ");
dt.Columns.Add("VIN");
dt.Columns.Add("PRODNO");
dt.Columns.Add("CARSETDESCCN");
dt.Columns.Add("CP5A");
dt.Columns.Add("PASTECARDNO");
dt.Columns.Add("SCANDATE");
dt.Columns.Add("PRODUCTIONNAME");
dt.Columns.Add("LINENO");
int index = 1;
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPastecardDeatis.ToString());
for (var i = 0; i < dgvMat.Rows.Count; i++)
{
DataRow ncsdr = dt.NewRow();
ncsdr["ROWINDEX"] = index.ToString(); ;
ncsdr["VWSEQ"] = pastecard.DetailsCardlist[i].VWSEQ;
ncsdr["VIN"] = pastecard.DetailsCardlist[i].VIN;
ncsdr["PRODNO"] = pastecard.DetailsCardlist[i].PRODNO;
ncsdr["CARSETDESCCN"] = pastecard.DetailsCardlist[i].CARSETDESC_CN;
ncsdr["CP5A"] = pastecard.DetailsCardlist[i].CP5A;
//ncsdr["PASTECARDNO"] = pastecard.PLANTNAME+pastecard.PASTECARDNO;
ncsdr["SCANDATE"] = pastecard.DetailsCardlist[i].SCANDATE;
ncsdr["PRODUCTIONNAME"] = ptroducttype;
ncsdr["LINENO"] = pastecard.DetailsCardlist[i].LINENO;
dt.Rows.Add(ncsdr);
index++;
}
prin.Print(dt);
}
else
{
PrintPasteCard prin = new PrintPasteCard();
DataTable dt = (DataTable)dgvMat.DataSource;
prin.Print(dt);
}
isprint = true;
this.label1.Text = "消息提示:打印完成";
this.tsslblMessage.Text = "消息提示:打印完成";
btnPrint.Enabled = false;
this.Close();
TJFrmPlace fplace = (TJFrmPlace)this.Owner;
fplace.GetInitData();
fplace.GetInitData2();
//fplace.dgvNF.DataSource = new List<EPasteDetailsCard>();
//nfpastecard = null;
//nflist = null;
//nfindex = 0;
//dgvrowindex = 0;
}
catch (Exception ex)
{
isprint = false;
btnPrint.Enabled = true;
MessageBox.Show("打印失败!");
}
}
/// <summary>
/// 关闭
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnClose_Click(object sender, EventArgs e)
{
#region
try
{
this.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
#endregion
}
/// <summary>
/// 页面加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FrmCarCardPrintShow_Load(object sender, EventArgs e)
{
#region
try
{
btnPrint.Enabled = true;
if (printtype == "手动")
{
ITEMNO.Visible = false;
getdate();
}
else
{
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPasteDetails.ToString(), pasterkey);
dgvMat.DataSource = tbl;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
#endregion
}
}
}

345
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.designer.cs

@ -0,0 +1,345 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJFrmCarCardPrintShow
{
/// <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.tcEmployee = new System.Windows.Forms.TabControl();
this.tpPrint = new System.Windows.Forms.TabPage();
this.dgvMat = new System.Windows.Forms.DataGridView();
this.ITEMNO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.VIN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.NAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CREATETIME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.btnPrint = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.tsslbl_Message = new System.Windows.Forms.ToolStripStatusLabel();
this.statusStrip = new System.Windows.Forms.StatusStrip();
this.tsslblMessage = new System.Windows.Forms.ToolStripStatusLabel();
this.tcEmployee.SuspendLayout();
this.tpPrint.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMat)).BeginInit();
this.panel1.SuspendLayout();
this.statusStrip.SuspendLayout();
this.SuspendLayout();
//
// tcEmployee
//
this.tcEmployee.Controls.Add(this.tpPrint);
this.tcEmployee.Dock = System.Windows.Forms.DockStyle.Fill;
this.tcEmployee.Location = new System.Drawing.Point(0, 0);
this.tcEmployee.Name = "tcEmployee";
this.tcEmployee.SelectedIndex = 0;
this.tcEmployee.Size = new System.Drawing.Size(789, 431);
this.tcEmployee.TabIndex = 67;
//
// tpPrint
//
this.tpPrint.Controls.Add(this.dgvMat);
this.tpPrint.Location = new System.Drawing.Point(4, 22);
this.tpPrint.Name = "tpPrint";
this.tpPrint.Padding = new System.Windows.Forms.Padding(3);
this.tpPrint.Size = new System.Drawing.Size(781, 405);
this.tpPrint.TabIndex = 0;
this.tpPrint.Text = "贴车单";
this.tpPrint.UseVisualStyleBackColor = true;
//
// dgvMat
//
this.dgvMat.AllowUserToAddRows = false;
this.dgvMat.AllowUserToDeleteRows = false;
this.dgvMat.BackgroundColor = System.Drawing.Color.White;
this.dgvMat.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvMat.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ITEMNO,
this.Column1,
this.VIN,
this.CODE,
this.NAME,
this.CREATETIME,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6,
this.Column7,
this.Column8,
this.Column9,
this.Column10,
this.Column11});
this.dgvMat.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvMat.Location = new System.Drawing.Point(3, 3);
this.dgvMat.Name = "dgvMat";
this.dgvMat.RowTemplate.Height = 23;
this.dgvMat.Size = new System.Drawing.Size(775, 399);
this.dgvMat.TabIndex = 1;
//
// ITEMNO
//
this.ITEMNO.DataPropertyName = "ROWINDEX";
this.ITEMNO.HeaderText = "序号";
this.ITEMNO.Name = "ITEMNO";
this.ITEMNO.Width = 60;
//
// Column1
//
this.Column1.DataPropertyName = "VWSEQ";
this.Column1.HeaderText = "大众顺序号";
this.Column1.Name = "Column1";
//
// VIN
//
this.VIN.DataPropertyName = "VIN";
this.VIN.HeaderText = "VIN号";
this.VIN.Name = "VIN";
this.VIN.ReadOnly = true;
this.VIN.Width = 200;
//
// CODE
//
this.CODE.DataPropertyName = "PRODNO";
this.CODE.HeaderText = "零件号";
this.CODE.Name = "CODE";
this.CODE.ReadOnly = true;
this.CODE.Width = 150;
//
// NAME
//
this.NAME.DataPropertyName = "CARSETDESC_CN";
this.NAME.HeaderText = "总成描述";
this.NAME.Name = "NAME";
this.NAME.ReadOnly = true;
//
// CREATETIME
//
this.CREATETIME.DataPropertyName = "CP5A";
this.CREATETIME.HeaderText = "上线时间";
this.CREATETIME.Name = "CREATETIME";
this.CREATETIME.ReadOnly = true;
this.CREATETIME.Width = 120;
//
// Column2
//
this.Column2.DataPropertyName = "KIN";
this.Column2.HeaderText = "Column2";
this.Column2.Name = "Column2";
this.Column2.Visible = false;
//
// Column3
//
this.Column3.DataPropertyName = "LINENO";
this.Column3.HeaderText = "Column3";
this.Column3.Name = "Column3";
this.Column3.Visible = false;
//
// Column4
//
this.Column4.DataPropertyName = "SANBARCODE";
this.Column4.HeaderText = "Column4";
this.Column4.Name = "Column4";
this.Column4.Visible = false;
//
// Column5
//
this.Column5.DataPropertyName = "SCANDATE";
this.Column5.HeaderText = "Column5";
this.Column5.Name = "Column5";
this.Column5.Visible = false;
//
// Column6
//
this.Column6.DataPropertyName = "PASTEDETAILED_CARD_KEY";
this.Column6.HeaderText = "Column6";
this.Column6.Name = "Column6";
this.Column6.Visible = false;
//
// Column7
//
this.Column7.DataPropertyName = "FIS_KEY";
this.Column7.HeaderText = "Column7";
this.Column7.Name = "Column7";
this.Column7.Visible = false;
//
// Column8
//
this.Column8.DataPropertyName = "PASTE_CARD_KEY";
this.Column8.HeaderText = "Column8";
this.Column8.Name = "Column8";
this.Column8.Visible = false;
//
// Column9
//
this.Column9.DataPropertyName = "PASTECARDNO";
this.Column9.HeaderText = "Column9";
this.Column9.Name = "Column9";
this.Column9.Visible = false;
//
// Column10
//
this.Column10.DataPropertyName = "PRODUCTIONNAME";
this.Column10.HeaderText = "Column10";
this.Column10.Name = "Column10";
this.Column10.Visible = false;
//
// Column11
//
this.Column11.DataPropertyName = "DGVROWINDEX";
this.Column11.HeaderText = "Column11";
this.Column11.Name = "Column11";
this.Column11.Visible = false;
//
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.btnPrint);
this.panel1.Controls.Add(this.btnClose);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 431);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(789, 51);
this.panel1.TabIndex = 69;
//
// 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.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(282, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 16);
this.label1.TabIndex = 10;
//
// btnPrint
//
this.btnPrint.Location = new System.Drawing.Point(528, 22);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(75, 21);
this.btnPrint.TabIndex = 7;
this.btnPrint.Text = "打印";
this.btnPrint.UseVisualStyleBackColor = true;
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// btnClose
//
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnClose.Location = new System.Drawing.Point(622, 22);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 21);
this.btnClose.TabIndex = 9;
this.btnClose.Text = "关闭";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// tsslbl_Message
//
this.tsslbl_Message.Name = "tsslbl_Message";
this.tsslbl_Message.Size = new System.Drawing.Size(0, 17);
//
// statusStrip
//
this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsslblMessage,
this.tsslbl_Message});
this.statusStrip.Location = new System.Drawing.Point(0, 482);
this.statusStrip.Name = "statusStrip";
this.statusStrip.Size = new System.Drawing.Size(789, 22);
this.statusStrip.TabIndex = 68;
this.statusStrip.Text = "statusStrip1";
//
// tsslblMessage
//
this.tsslblMessage.Name = "tsslblMessage";
this.tsslblMessage.Size = new System.Drawing.Size(68, 17);
this.tsslblMessage.Text = "消息提示:";
//
// FrmCarCardPrintShow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 504);
this.Controls.Add(this.tcEmployee);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip);
this.Name = "FrmCarCardPrintShow";
this.Text = "贴车单打印";
this.Load += new System.EventHandler(this.FrmCarCardPrintShow_Load);
this.tcEmployee.ResumeLayout(false);
this.tpPrint.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvMat)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.statusStrip.ResumeLayout(false);
this.statusStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TabControl tcEmployee;
private System.Windows.Forms.TabPage tpPrint;
private System.Windows.Forms.DataGridView dgvMat;
private System.Windows.Forms.DataGridViewTextBoxColumn ITEMNO;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn VIN;
private System.Windows.Forms.DataGridViewTextBoxColumn CODE;
private System.Windows.Forms.DataGridViewTextBoxColumn NAME;
private System.Windows.Forms.DataGridViewTextBoxColumn CREATETIME;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.ToolStripStatusLabel tsslbl_Message;
private System.Windows.Forms.StatusStrip statusStrip;
private System.Windows.Forms.ToolStripStatusLabel tsslblMessage;
}
}

219
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmCarCardPrintShow.resx

@ -0,0 +1,219 @@
<?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="ITEMNO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VIN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NAME.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="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ITEMNO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VIN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NAME.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="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

378
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.cs

@ -0,0 +1,378 @@
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 CarSystem.Account.FileUtil;
using System.Configuration;
using DCS.Place;
using Model;
namespace QMAPP.WinForm.Forms.TianJin
{
/// <summary>
///
/// </summary>
public partial class TJFrmItemList : Form
{
/// <summary>
///
/// </summary>
public TJFrmItemList()
{
InitializeComponent();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnSearch_Click(object sender, EventArgs e)
{
try
{
GetData();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void GetData()
{
string strpasterno = txtPasteNO.Text;
string strbegindate = datbegindate.Text;
string strenddate = datenddate.Text;
string selectPlantCode = cmbtype.SelectedValue.ToString();//生产中心
string strOperator = txtOperator.Text;
//string vinLack = (cbVinLack.Checked) ? "1" : "0";
string vinLack = "0";
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetPastecardInfoWithVin.ToString(), strpasterno, strbegindate, strenddate, vinLack, selectPlantCode, strOperator);
if (tbl.Rows.Count <= 0)
{
DataTable dt = (DataTable)dgvList.DataSource;
if (dt != null)
{
dt.Rows.Clear();
}
}
else
{
dgvList.DataSource = tbl;
}
for (var i = 0; i < dgvList.Rows.Count; i++)
{
if (dgvList.Rows[i].Cells["PASTECARDDATE2"].Value.ToString() == "1900/1/1 0:00:00")
{
dgvList.Rows[i].Cells["PASTECARDDATE2"].Value = "";
}
for (var j = 0; j < dgvList.Rows[i].Cells.Count; j++)
{
dgvList.Columns[j].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
}
}
}
/// <summary>
/// 单击右键
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvList_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
{
#region
if (e.Button == MouseButtons.Right && e.RowIndex >= 0 && e.ColumnIndex >= 0)
{
try
{
dgvList.Rows[e.RowIndex].ContextMenuStrip = cmenuFunctions;
dgvList.Rows[e.RowIndex].Selected = true;
dgvList.CurrentCell = dgvList.Rows[e.RowIndex].Cells[e.ColumnIndex];
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
#endregion
}
/// <summary>
/// 双击
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvList_DoubleClick(object sender, EventArgs e)
{
if (dgvList.Rows.Count > 0)
{
int i = dgvList.CurrentRow.Index;
string fiskey = dgvList.Rows[i].Cells[0].Value.ToString();
TJFrmCarCardDetail frm = new TJFrmCarCardDetail(fiskey);
frm.ShowDialog();
}
}
/// <summary>
/// 显示行号
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvList_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
#region
try
{
if (dgvList.Rows.Count > 0)
{
e.Graphics.DrawString((e.RowIndex + 1).ToString(), dgvList.DefaultCellStyle.Font,
new SolidBrush(dgvList.RowHeadersDefaultCellStyle.ForeColor),
e.RowBounds.Location.X + 15, e.RowBounds.Y + 5);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
#endregion
}
/// <summary>
/// 加载画面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FrmItemList_Load(object sender, EventArgs e)
{
#region
try
{
datbegindate.Value = DateTime.Now.AddDays(-1);
DataTable dt;
//QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
//dt = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPastecardIndex.ToString(),"","");
//this.cmbtype.DataSource = dt;
//this.cmbtype.DisplayMember = "PLANTNAME";
//this.cmbtype.ValueMember = "PLANTNAME";
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tblCodes = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetWORKCENTERCODE.ToString());
IList<EProCodeInfo> proCodes = new List<EProCodeInfo>();
for (var i = 0; i < tblCodes.Rows.Count; i++)
{
EProCodeInfo epci = new EProCodeInfo();
epci._Name = tblCodes.Rows[i][0].ToString();
epci._Code = tblCodes.Rows[i][0].ToString();
proCodes.Add(epci);
}
cmbtype.DataSource = proCodes;
cmbtype.DisplayMember = "_Name";
cmbtype.ValueMember = "_Code";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
#endregion
}
/// <summary>
/// 明细双击
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cmenuDisplay_Click(object sender, EventArgs e)
{
TJFrmCarCardPrintShow frm = new TJFrmCarCardPrintShow();
frm.ShowDialog();
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
}
/// <summary>
/// 导出
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnExport_Click(object sender, EventArgs e)
{
if (dgvList.Rows.Count > 0)
{
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
//SaveFileDialog dlg = new SaveFileDialog();
//dlg.Filter = "CSV (逗号分隔)(*.csv)|*.csv";
//dlg.Title = "导出文件";
//dlg.CheckPathExists = true;
// dlg.OverwritePrompt = true;
string sfilename = folderBrowserDialog1.SelectedPath;
//============================================
System.DateTime time = System.DateTime.Now;
string xlsName = " ";
string cellName1 = "";
string cellName2 = "";
List<string[]> listResult = new List<string[]>();
xlsName = "贴车单";
cellName1 = "贴车单";
string[] head = { "贴车单单号", "工作中心", "打印时间", "补打时间", "操作者", "底盘号间隔", "生产线名称", "创建日期" };
listResult.Add(head);
// -------------------------2017 02 27 崔法宝 end ---------------------
//sfilename = "贴车单";
sfilename = sfilename + @"\" + xlsName + "信息" + ".xls";
//判断文件是否存在
if (System.IO.File.Exists(sfilename) == false)
{
System.IO.StreamWriter sr = System.IO.File.CreateText(sfilename);
sr.Close();
}
for (var i = 0; i < dgvList.Rows.Count; i++)
{
string[] lstTmp = {
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["PASTECARDNO"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["PLANTNAME"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["PASTECARDDATE"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["PASTECARDDATE2"].Value.ToString().Replace("0001/1/1 0:00:00","")),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["OPERATOR"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["VINLACK"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["PRODUCTIONNAME"].Value.ToString()),
ExcelUtil.GetJoinedData(ExcelUtil.DataType.String, dgvList.Rows[i].Cells["CREATETIME"].Value.ToString())
};
listResult.Add(lstTmp);
}
ExcelUtil.WriteExcel(sfilename, "贴车单", listResult);
MessageBox.Show("导出成功!");
System.Diagnostics.Process.Start(sfilename);
}
}
else
{
MessageBox.Show("无数据导出!");
}
}
// 补打事件
private void btnPrint_Click(object sender, EventArgs e)
{
if (dgvList.Rows.Count > 0)
{
int i = dgvList.CurrentRow.Index;
string fiskey = dgvList.Rows[i].Cells[0].Value.ToString();
string PASTECARDNO = dgvList.Rows[i].Cells["PASTECARDNO"].Value.ToString();
string PRODUCTIONNAME = dgvList.Rows[i].Cells["PRODUCTIONNAME"].Value.ToString();
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPascardDetailsByPid.ToString(), fiskey);
int result = agent.InvokeServiceFunction<int>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_UpdatePasteCardPasteCardDate2Value.ToString(), PASTECARDNO, DateTime.Now.ToString(), ClientContext.LoginInfo.UserName.ToString());
Print(tbl, PASTECARDNO, PRODUCTIONNAME);
if (result > 0)
{
MessageBox.Show("补打成功!");
GetData();
}
else
{
MessageBox.Show("补打失败!");
}
}
else
{
MessageBox.Show("无补打数据!");
}
}
/// <summary>
/// 手动打印功能
/// </summary>
private void Print(DataTable tbl1, string PASTECARDNO, string PRODUCTIONNAME)
{
TJPrintPasteCard prin = new TJPrintPasteCard();
string strprodtype = "(" + PRODUCTIONNAME + ")";
DataTable dt = new DataTable();
dt.Columns.Add("ROWINDEX");
dt.Columns.Add("VWSEQ");
dt.Columns.Add("VIN");
dt.Columns.Add("PRODNO");
dt.Columns.Add("CARSETDESCCN");
dt.Columns.Add("CP5A");
dt.Columns.Add("PASTECARDNO");
dt.Columns.Add("SCANDATE");
dt.Columns.Add("PRODUCTIONNAME");
dt.Columns.Add("LINENO");
int index = 1;
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetPastecardDeatis.ToString());
// index = Convert.ToInt32(tbl.Rows[0][0].ToString());
for (var i = 0; i < tbl1.Rows.Count; i++)
{
DataRow ncsdr = dt.NewRow();
ncsdr["ROWINDEX"] = index.ToString(); ;
ncsdr["VWSEQ"] = tbl1.Rows[i]["VWSEQ"].ToString();
ncsdr["VIN"] = tbl1.Rows[i]["VIN"].ToString();
ncsdr["PRODNO"] = tbl1.Rows[i]["PRODNO"].ToString();
ncsdr["CARSETDESCCN"] = tbl1.Rows[i]["CARSETDESC_CN"].ToString();
ncsdr["CP5A"] = tbl1.Rows[i]["CP5A"].ToString();
ncsdr["PASTECARDNO"] = PASTECARDNO;
ncsdr["SCANDATE"] = DateTime.Now.ToString();
ncsdr["PRODUCTIONNAME"] = strprodtype;
ncsdr["LINENO"] = tbl1.Rows[i]["LINENO"].ToString();
dt.Rows.Add(ncsdr);
index++;
}
prin.Print(dt);
//MessageBox.Show("打印成功!");
}
}
}

386
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.designer.cs

@ -0,0 +1,386 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJFrmItemList
{
/// <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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.dgvList = new System.Windows.Forms.DataGridView();
this.txtPasteNO = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btnSearch = new System.Windows.Forms.Button();
this.datenddate = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.datbegindate = new System.Windows.Forms.DateTimePicker();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.btnPrint = new System.Windows.Forms.Button();
this.cmbtype = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.txtOperator = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.btnExport = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.cmenuDisplay = new System.Windows.Forms.ToolStripMenuItem();
this.cmenuFunctions = new System.Windows.Forms.ContextMenuStrip(this.components);
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
this.PASTECARDNO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PLANTNAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PASTECARDDATE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PASTECARDDATE2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OPERATOR = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.VINLACK = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PRODUCTIONNAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CREATETIME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PID = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dgvList)).BeginInit();
this.groupBox3.SuspendLayout();
this.cmenuFunctions.SuspendLayout();
this.SuspendLayout();
//
// dgvList
//
this.dgvList.AllowUserToAddRows = false;
this.dgvList.AllowUserToDeleteRows = false;
this.dgvList.AllowUserToResizeRows = false;
this.dgvList.BackgroundColor = System.Drawing.Color.White;
this.dgvList.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.PASTECARDNO,
this.PLANTNAME,
this.PASTECARDDATE,
this.PASTECARDDATE2,
this.OPERATOR,
this.VINLACK,
this.PRODUCTIONNAME,
this.CREATETIME,
this.PID});
this.dgvList.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvList.Location = new System.Drawing.Point(0, 97);
this.dgvList.Name = "dgvList";
this.dgvList.ReadOnly = true;
this.dgvList.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader;
this.dgvList.RowTemplate.Height = 23;
this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvList.Size = new System.Drawing.Size(1005, 578);
this.dgvList.TabIndex = 13;
this.dgvList.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvList_CellMouseDown);
this.dgvList.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvList_RowPostPaint);
this.dgvList.DoubleClick += new System.EventHandler(this.dgvList_DoubleClick);
//
// txtPasteNO
//
this.txtPasteNO.Location = new System.Drawing.Point(67, 18);
this.txtPasteNO.Name = "txtPasteNO";
this.txtPasteNO.Size = new System.Drawing.Size(111, 21);
this.txtPasteNO.TabIndex = 11;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 22);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 10;
this.label4.Text = "贴车单号";
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(22, 62);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(75, 23);
this.btnSearch.TabIndex = 9;
this.btnSearch.Text = "查询";
this.btnSearch.UseVisualStyleBackColor = true;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// datenddate
//
this.datenddate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.datenddate.Location = new System.Drawing.Point(747, 20);
this.datenddate.Name = "datenddate";
this.datenddate.Size = new System.Drawing.Size(110, 21);
this.datenddate.TabIndex = 5;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(730, 25);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(11, 12);
this.label2.TabIndex = 2;
this.label2.Text = "~";
//
// datbegindate
//
this.datbegindate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.datbegindate.Location = new System.Drawing.Point(604, 19);
this.datbegindate.Name = "datbegindate";
this.datbegindate.Size = new System.Drawing.Size(111, 21);
this.datbegindate.TabIndex = 4;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.btnPrint);
this.groupBox3.Controls.Add(this.cmbtype);
this.groupBox3.Controls.Add(this.label5);
this.groupBox3.Controls.Add(this.txtOperator);
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.btnExport);
this.groupBox3.Controls.Add(this.txtPasteNO);
this.groupBox3.Controls.Add(this.label4);
this.groupBox3.Controls.Add(this.btnSearch);
this.groupBox3.Controls.Add(this.datenddate);
this.groupBox3.Controls.Add(this.datbegindate);
this.groupBox3.Controls.Add(this.label2);
this.groupBox3.Controls.Add(this.label1);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox3.Location = new System.Drawing.Point(0, 0);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(1005, 97);
this.groupBox3.TabIndex = 14;
this.groupBox3.TabStop = false;
//
// btnPrint
//
this.btnPrint.Location = new System.Drawing.Point(190, 62);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(75, 23);
this.btnPrint.TabIndex = 23;
this.btnPrint.Text = "补打印";
this.btnPrint.UseVisualStyleBackColor = true;
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// cmbtype
//
this.cmbtype.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbtype.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbtype.FormattingEnabled = true;
this.cmbtype.Location = new System.Drawing.Point(446, 17);
this.cmbtype.Name = "cmbtype";
this.cmbtype.Size = new System.Drawing.Size(83, 24);
this.cmbtype.TabIndex = 22;
this.cmbtype.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(387, 21);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12);
this.label5.TabIndex = 19;
this.label5.Text = "发运中心";
//
// txtOperator
//
this.txtOperator.Location = new System.Drawing.Point(248, 18);
this.txtOperator.Name = "txtOperator";
this.txtOperator.Size = new System.Drawing.Size(111, 21);
this.txtOperator.TabIndex = 18;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(201, 21);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 17;
this.label3.Text = "操作者";
//
// btnExport
//
this.btnExport.Location = new System.Drawing.Point(103, 62);
this.btnExport.Name = "btnExport";
this.btnExport.Size = new System.Drawing.Size(75, 23);
this.btnExport.TabIndex = 16;
this.btnExport.Text = "导出";
this.btnExport.UseVisualStyleBackColor = true;
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(545, 25);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 0;
this.label1.Text = "打印时间";
//
// cmenuDisplay
//
this.cmenuDisplay.Name = "cmenuDisplay";
this.cmenuDisplay.Size = new System.Drawing.Size(100, 22);
this.cmenuDisplay.Text = "明细";
this.cmenuDisplay.Click += new System.EventHandler(this.cmenuDisplay_Click);
//
// cmenuFunctions
//
this.cmenuFunctions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmenuDisplay});
this.cmenuFunctions.Name = "cmenuFunctions";
this.cmenuFunctions.Size = new System.Drawing.Size(101, 26);
this.cmenuFunctions.Text = "操作列表的功能";
//
// PASTECARDNO
//
this.PASTECARDNO.DataPropertyName = "PASTECARDNO";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.PASTECARDNO.DefaultCellStyle = dataGridViewCellStyle2;
this.PASTECARDNO.HeaderText = "贴车单单号";
this.PASTECARDNO.Name = "PASTECARDNO";
this.PASTECARDNO.ReadOnly = true;
this.PASTECARDNO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PASTECARDNO.Width = 150;
//
// PLANTNAME
//
this.PLANTNAME.DataPropertyName = "PLANTNAME";
this.PLANTNAME.HeaderText = "发运中心";
this.PLANTNAME.Name = "PLANTNAME";
this.PLANTNAME.ReadOnly = true;
//
// PASTECARDDATE
//
this.PASTECARDDATE.DataPropertyName = "PASTECARDDATE";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.PASTECARDDATE.DefaultCellStyle = dataGridViewCellStyle3;
this.PASTECARDDATE.HeaderText = "打印时间";
this.PASTECARDDATE.Name = "PASTECARDDATE";
this.PASTECARDDATE.ReadOnly = true;
this.PASTECARDDATE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PASTECARDDATE.Width = 150;
//
// PASTECARDDATE2
//
this.PASTECARDDATE2.DataPropertyName = "PASTECARDDATE2";
this.PASTECARDDATE2.HeaderText = "补打时间";
this.PASTECARDDATE2.Name = "PASTECARDDATE2";
this.PASTECARDDATE2.ReadOnly = true;
this.PASTECARDDATE2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PASTECARDDATE2.Width = 150;
//
// OPERATOR
//
this.OPERATOR.DataPropertyName = "OPERATOR";
this.OPERATOR.HeaderText = "操作者";
this.OPERATOR.Name = "OPERATOR";
this.OPERATOR.ReadOnly = true;
this.OPERATOR.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// VINLACK
//
this.VINLACK.DataPropertyName = "VINLACK";
this.VINLACK.HeaderText = "底盘号间隔";
this.VINLACK.Name = "VINLACK";
this.VINLACK.ReadOnly = true;
//
// PRODUCTIONNAME
//
this.PRODUCTIONNAME.DataPropertyName = "PRODUCTIONNAME";
this.PRODUCTIONNAME.HeaderText = "生产线名称";
this.PRODUCTIONNAME.Name = "PRODUCTIONNAME";
this.PRODUCTIONNAME.ReadOnly = true;
this.PRODUCTIONNAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PRODUCTIONNAME.Width = 80;
//
// CREATETIME
//
this.CREATETIME.DataPropertyName = "CREATETIME";
this.CREATETIME.HeaderText = "创建日期";
this.CREATETIME.Name = "CREATETIME";
this.CREATETIME.ReadOnly = true;
this.CREATETIME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.CREATETIME.Width = 150;
//
// PID
//
this.PID.DataPropertyName = "PID";
this.PID.HeaderText = "Column4";
this.PID.Name = "PID";
this.PID.ReadOnly = true;
this.PID.Visible = false;
//
// TJFrmItemList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1005, 675);
this.Controls.Add(this.dgvList);
this.Controls.Add(this.groupBox3);
this.Name = "TJFrmItemList";
this.Text = "贴车单记录";
this.Load += new System.EventHandler(this.FrmItemList_Load);
((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.cmenuFunctions.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dgvList;
private System.Windows.Forms.TextBox txtPasteNO;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.DateTimePicker datenddate;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker datbegindate;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolStripMenuItem cmenuDisplay;
private System.Windows.Forms.ContextMenuStrip cmenuFunctions;
private System.Windows.Forms.Button btnExport;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtOperator;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox cmbtype;
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.DataGridViewTextBoxColumn PASTECARDNO;
private System.Windows.Forms.DataGridViewTextBoxColumn PLANTNAME;
private System.Windows.Forms.DataGridViewTextBoxColumn PASTECARDDATE;
private System.Windows.Forms.DataGridViewTextBoxColumn PASTECARDDATE2;
private System.Windows.Forms.DataGridViewTextBoxColumn OPERATOR;
private System.Windows.Forms.DataGridViewTextBoxColumn VINLACK;
private System.Windows.Forms.DataGridViewTextBoxColumn PRODUCTIONNAME;
private System.Windows.Forms.DataGridViewTextBoxColumn CREATETIME;
private System.Windows.Forms.DataGridViewTextBoxColumn PID;
}
}

156
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmItemList.resx

@ -0,0 +1,156 @@
<?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="PASTECARDNO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PLANTNAME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PASTECARDDATE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PASTECARDDATE2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OPERATOR.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="VINLACK.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PRODUCTIONNAME.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="PID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cmenuFunctions.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>166, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>191</value>
</metadata>
</root>

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

File diff suppressed because it is too large

866
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs

@ -0,0 +1,866 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJFrmPlace
{
/// <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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.panel1 = new System.Windows.Forms.FlowLayoutPanel();
this.btnLineSetting = new System.Windows.Forms.Button();
this.btnSetDatagroupType = new System.Windows.Forms.Button();
this.btnSearch = new System.Windows.Forms.Button();
this.btnJZ = new System.Windows.Forms.Button();
this.btnRef = new System.Windows.Forms.Button();
this.rb_hx = new System.Windows.Forms.RadioButton();
this.rb_dx = new System.Windows.Forms.RadioButton();
this.lblCount = new System.Windows.Forms.Label();
this.dgvMATChange = new System.Windows.Forms.DataGridView();
this.PLAN_DATE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.REQUESTID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MATERIAL_CODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MATERIAL_NAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LINENO = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MOULD_CODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.clscanstate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.STATE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel6 = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel4 = new System.Windows.Forms.Panel();
this.dgvNF = new System.Windows.Forms.DataGridView();
this.tpContainer = new System.Windows.Forms.TableLayoutPanel();
this.panel3 = new System.Windows.Forms.FlowLayoutPanel();
this.btnPrint_NF = new System.Windows.Forms.Button();
this.btnResetIndex = new System.Windows.Forms.Button();
this.btnResetCart = new System.Windows.Forms.Button();
this.btnCloseCart = new System.Windows.Forms.Button();
this.btnFirstPlace = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.lblLastPastNO = new System.Windows.Forms.Label();
this.pbPastNoConfirmed = new System.Windows.Forms.PictureBox();
this.lberror = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtCode = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel5 = new System.Windows.Forms.Panel();
this.timeRefew = new System.Windows.Forms.Timer(this.components);
this.panel7 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.CODE_NF = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PRODNO_NF = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CARSETDESC_CN_NF = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MOULDCODE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CREATEDATE_NF = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SEQ = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgcPRODUCT_PID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMATChange)).BeginInit();
this.panel6.SuspendLayout();
this.groupBox1.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvNF)).BeginInit();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbPastNoConfirmed)).BeginInit();
this.panel5.SuspendLayout();
this.panel7.SuspendLayout();
this.panel8.SuspendLayout();
this.SuspendLayout();
//
// groupBox2
//
this.groupBox2.Controls.Add(this.splitContainer1);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Font = new System.Drawing.Font("宋体", 9F);
this.groupBox2.Location = new System.Drawing.Point(0, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(770, 692);
this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "FIS数据";
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(3, 17);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.panel1);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.dgvMATChange);
this.splitContainer1.Size = new System.Drawing.Size(764, 672);
this.splitContainer1.SplitterDistance = 70;
this.splitContainer1.TabIndex = 8;
//
// panel1
//
this.panel1.Controls.Add(this.btnLineSetting);
this.panel1.Controls.Add(this.btnSetDatagroupType);
this.panel1.Controls.Add(this.btnSearch);
this.panel1.Controls.Add(this.btnJZ);
this.panel1.Controls.Add(this.btnRef);
this.panel1.Controls.Add(this.rb_hx);
this.panel1.Controls.Add(this.rb_dx);
this.panel1.Controls.Add(this.lblCount);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(764, 70);
this.panel1.TabIndex = 7;
//
// btnLineSetting
//
this.btnLineSetting.AutoSize = true;
this.btnLineSetting.Location = new System.Drawing.Point(3, 3);
this.btnLineSetting.Name = "btnLineSetting";
this.btnLineSetting.Size = new System.Drawing.Size(91, 23);
this.btnLineSetting.TabIndex = 11;
this.btnLineSetting.Text = "发运设置";
this.btnLineSetting.UseVisualStyleBackColor = true;
this.btnLineSetting.Click += new System.EventHandler(this.btnLineSetting_Click);
//
// btnSetDatagroupType
//
this.btnSetDatagroupType.AutoSize = true;
this.btnSetDatagroupType.Location = new System.Drawing.Point(100, 3);
this.btnSetDatagroupType.Name = "btnSetDatagroupType";
this.btnSetDatagroupType.Size = new System.Drawing.Size(107, 23);
this.btnSetDatagroupType.TabIndex = 13;
this.btnSetDatagroupType.Text = "设置器具容量";
this.btnSetDatagroupType.UseVisualStyleBackColor = true;
this.btnSetDatagroupType.Click += new System.EventHandler(this.btnSetDatagroupType_Click);
//
// btnSearch
//
this.btnSearch.AutoSize = true;
this.btnSearch.Location = new System.Drawing.Point(213, 3);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(75, 23);
this.btnSearch.TabIndex = 8;
this.btnSearch.Text = "贴车单查询";
this.btnSearch.UseVisualStyleBackColor = true;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnJZ
//
this.btnJZ.AutoSize = true;
this.btnJZ.Location = new System.Drawing.Point(294, 3);
this.btnJZ.Name = "btnJZ";
this.btnJZ.Size = new System.Drawing.Size(96, 23);
this.btnJZ.TabIndex = 9;
this.btnJZ.Text = "计划挂起";
this.btnJZ.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.btnJZ.UseVisualStyleBackColor = true;
this.btnJZ.Click += new System.EventHandler(this.btnJZ_Click);
//
// btnRef
//
this.btnRef.AutoSize = true;
this.btnRef.Location = new System.Drawing.Point(396, 3);
this.btnRef.Name = "btnRef";
this.btnRef.Size = new System.Drawing.Size(105, 23);
this.btnRef.TabIndex = 9;
this.btnRef.Text = "刷新FIS数据";
this.btnRef.UseVisualStyleBackColor = true;
this.btnRef.Click += new System.EventHandler(this.btnRef_Click);
//
// rb_hx
//
this.rb_hx.AutoSize = true;
this.rb_hx.Checked = true;
this.rb_hx.Location = new System.Drawing.Point(507, 3);
this.rb_hx.Name = "rb_hx";
this.rb_hx.Size = new System.Drawing.Size(71, 16);
this.rb_hx.TabIndex = 7;
this.rb_hx.TabStop = true;
this.rb_hx.Text = "左侧门板";
this.rb_hx.UseVisualStyleBackColor = true;
this.rb_hx.CheckedChanged += new System.EventHandler(this.rb_hx_CheckedChanged);
//
// rb_dx
//
this.rb_dx.AutoSize = true;
this.rb_dx.Location = new System.Drawing.Point(584, 3);
this.rb_dx.Name = "rb_dx";
this.rb_dx.Size = new System.Drawing.Size(71, 16);
this.rb_dx.TabIndex = 6;
this.rb_dx.Text = "右侧门板";
this.rb_dx.UseVisualStyleBackColor = true;
//
// lblCount
//
this.lblCount.AutoSize = true;
this.lblCount.Dock = System.Windows.Forms.DockStyle.Left;
this.lblCount.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCount.Location = new System.Drawing.Point(663, 0);
this.lblCount.Margin = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.lblCount.Name = "lblCount";
this.lblCount.Size = new System.Drawing.Size(0, 29);
this.lblCount.TabIndex = 21;
this.lblCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dgvMATChange
//
this.dgvMATChange.AllowUserToAddRows = false;
this.dgvMATChange.AllowUserToDeleteRows = false;
this.dgvMATChange.AllowUserToOrderColumns = true;
this.dgvMATChange.AllowUserToResizeRows = false;
this.dgvMATChange.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dgvMATChange.BackgroundColor = System.Drawing.Color.White;
this.dgvMATChange.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgvMATChange.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvMATChange.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.PLAN_DATE,
this.REQUESTID,
this.MATERIAL_CODE,
this.MATERIAL_NAME,
this.LINENO,
this.MOULD_CODE,
this.PID,
this.clscanstate,
this.STATE});
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F);
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(0, 0, 15, 0);
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvMATChange.DefaultCellStyle = dataGridViewCellStyle1;
this.dgvMATChange.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvMATChange.Location = new System.Drawing.Point(0, 0);
this.dgvMATChange.MultiSelect = false;
this.dgvMATChange.Name = "dgvMATChange";
this.dgvMATChange.ReadOnly = true;
this.dgvMATChange.RowHeadersWidth = 40;
this.dgvMATChange.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dgvMATChange.RowTemplate.DefaultCellStyle.Padding = new System.Windows.Forms.Padding(0, 0, 15, 0);
this.dgvMATChange.RowTemplate.Height = 23;
this.dgvMATChange.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvMATChange.Size = new System.Drawing.Size(764, 598);
this.dgvMATChange.TabIndex = 5;
this.dgvMATChange.TabStop = false;
this.dgvMATChange.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvMATChange_RowPostPaint);
//
// PLAN_DATE
//
this.PLAN_DATE.DataPropertyName = "PLAN_DATE";
this.PLAN_DATE.HeaderText = "计划时间";
this.PLAN_DATE.Name = "PLAN_DATE";
this.PLAN_DATE.ReadOnly = true;
this.PLAN_DATE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PLAN_DATE.Width = 74;
//
// REQUESTID
//
this.REQUESTID.DataPropertyName = "SEQ";
this.REQUESTID.HeaderText = "顺序号";
this.REQUESTID.Name = "REQUESTID";
this.REQUESTID.ReadOnly = true;
this.REQUESTID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.REQUESTID.Width = 62;
//
// MATERIAL_CODE
//
this.MATERIAL_CODE.DataPropertyName = "MATERIAL_CODE";
this.MATERIAL_CODE.HeaderText = "零件号";
this.MATERIAL_CODE.Name = "MATERIAL_CODE";
this.MATERIAL_CODE.ReadOnly = true;
this.MATERIAL_CODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.MATERIAL_CODE.Width = 62;
//
// MATERIAL_NAME
//
this.MATERIAL_NAME.DataPropertyName = "MATERIAL_NAME";
this.MATERIAL_NAME.HeaderText = "总成描述";
this.MATERIAL_NAME.Name = "MATERIAL_NAME";
this.MATERIAL_NAME.ReadOnly = true;
this.MATERIAL_NAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.MATERIAL_NAME.Width = 74;
//
// LINENO
//
this.LINENO.DataPropertyName = "LINENO";
this.LINENO.HeaderText = "车型";
this.LINENO.Name = "LINENO";
this.LINENO.ReadOnly = true;
this.LINENO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.LINENO.Width = 50;
//
// MOULD_CODE
//
this.MOULD_CODE.DataPropertyName = "MOULD_CODE";
this.MOULD_CODE.HeaderText = "位置";
this.MOULD_CODE.Name = "MOULD_CODE";
this.MOULD_CODE.ReadOnly = true;
this.MOULD_CODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.MOULD_CODE.Width = 50;
//
// PID
//
this.PID.DataPropertyName = "PID";
this.PID.HeaderText = "PID";
this.PID.Name = "PID";
this.PID.ReadOnly = true;
this.PID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PID.Visible = false;
this.PID.Width = 44;
//
// clscanstate
//
this.clscanstate.DataPropertyName = "SCANSTATE";
this.clscanstate.HeaderText = "扫描状态";
this.clscanstate.Name = "clscanstate";
this.clscanstate.ReadOnly = true;
this.clscanstate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.clscanstate.Visible = false;
this.clscanstate.Width = 74;
//
// STATE
//
this.STATE.DataPropertyName = "STATE";
this.STATE.HeaderText = "STATE";
this.STATE.Name = "STATE";
this.STATE.ReadOnly = true;
this.STATE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.STATE.Visible = false;
this.STATE.Width = 56;
//
// panel6
//
this.panel6.Controls.Add(this.groupBox1);
this.panel6.Dock = System.Windows.Forms.DockStyle.Right;
this.panel6.Location = new System.Drawing.Point(773, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(466, 692);
this.panel6.TabIndex = 18;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.panel4);
this.groupBox1.Controls.Add(this.panel3);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(466, 692);
this.groupBox1.TabIndex = 9;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "已扫描数据";
//
// panel4
//
this.panel4.Controls.Add(this.dgvNF);
this.panel4.Controls.Add(this.tpContainer);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(3, 87);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(460, 602);
this.panel4.TabIndex = 15;
//
// dgvNF
//
this.dgvNF.AllowUserToAddRows = false;
this.dgvNF.AllowUserToDeleteRows = false;
this.dgvNF.AllowUserToResizeRows = false;
this.dgvNF.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dgvNF.BackgroundColor = System.Drawing.Color.White;
this.dgvNF.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.dgvNF.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvNF.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.CODE_NF,
this.PRODNO_NF,
this.CARSETDESC_CN_NF,
this.MOULDCODE,
this.CREATEDATE_NF,
this.Column1,
this.SEQ,
this.Column2,
this.Column3,
this.Column7,
this.Column11,
this.Column13,
this.dgcPRODUCT_PID});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0);
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvNF.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvNF.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvNF.Location = new System.Drawing.Point(0, 0);
this.dgvNF.Name = "dgvNF";
this.dgvNF.ReadOnly = true;
this.dgvNF.RowHeadersWidth = 50;
this.dgvNF.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.dgvNF.RowTemplate.Height = 27;
this.dgvNF.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvNF.Size = new System.Drawing.Size(460, 364);
this.dgvNF.TabIndex = 0;
//
// tpContainer
//
this.tpContainer.BackColor = System.Drawing.SystemColors.ControlDark;
this.tpContainer.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.OutsetDouble;
this.tpContainer.ColumnCount = 1;
this.tpContainer.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tpContainer.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tpContainer.Location = new System.Drawing.Point(0, 364);
this.tpContainer.Name = "tpContainer";
this.tpContainer.RowCount = 1;
this.tpContainer.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tpContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 235F));
this.tpContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 235F));
this.tpContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 235F));
this.tpContainer.Size = new System.Drawing.Size(460, 238);
this.tpContainer.TabIndex = 0;
//
// panel3
//
this.panel3.Controls.Add(this.btnPrint_NF);
this.panel3.Controls.Add(this.btnResetIndex);
this.panel3.Controls.Add(this.btnResetCart);
this.panel3.Controls.Add(this.btnCloseCart);
this.panel3.Controls.Add(this.btnFirstPlace);
this.panel3.Controls.Add(this.label1);
this.panel3.Controls.Add(this.lblLastPastNO);
this.panel3.Controls.Add(this.pbPastNoConfirmed);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(3, 17);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(460, 70);
this.panel3.TabIndex = 14;
//
// btnPrint_NF
//
this.btnPrint_NF.Location = new System.Drawing.Point(3, 3);
this.btnPrint_NF.Name = "btnPrint_NF";
this.btnPrint_NF.Size = new System.Drawing.Size(75, 26);
this.btnPrint_NF.TabIndex = 11;
this.btnPrint_NF.Text = "贴车单打印";
this.btnPrint_NF.UseVisualStyleBackColor = true;
this.btnPrint_NF.Visible = false;
this.btnPrint_NF.Click += new System.EventHandler(this.btnPrint_NF_Click);
//
// btnResetIndex
//
this.btnResetIndex.Location = new System.Drawing.Point(84, 3);
this.btnResetIndex.Name = "btnResetIndex";
this.btnResetIndex.Size = new System.Drawing.Size(102, 26);
this.btnResetIndex.TabIndex = 15;
this.btnResetIndex.Text = "贴车单顺序校正";
this.btnResetIndex.UseVisualStyleBackColor = true;
this.btnResetIndex.Click += new System.EventHandler(this.btnResetIndex_Click);
//
// btnResetCart
//
this.btnResetCart.Location = new System.Drawing.Point(192, 3);
this.btnResetCart.Name = "btnResetCart";
this.btnResetCart.Size = new System.Drawing.Size(95, 26);
this.btnResetCart.TabIndex = 18;
this.btnResetCart.Text = "重扫当前器具";
this.btnResetCart.UseVisualStyleBackColor = true;
this.btnResetCart.Click += new System.EventHandler(this.btnResetCart_Click);
//
// btnCloseCart
//
this.btnCloseCart.Location = new System.Drawing.Point(293, 3);
this.btnCloseCart.Name = "btnCloseCart";
this.btnCloseCart.Size = new System.Drawing.Size(95, 26);
this.btnCloseCart.TabIndex = 19;
this.btnCloseCart.Text = "强制提交";
this.btnCloseCart.UseVisualStyleBackColor = true;
this.btnCloseCart.Click += new System.EventHandler(this.btnCloseCart_Click);
//
// btnFirstPlace
//
this.btnFirstPlace.Location = new System.Drawing.Point(3, 35);
this.btnFirstPlace.Name = "btnFirstPlace";
this.btnFirstPlace.Size = new System.Drawing.Size(75, 26);
this.btnFirstPlace.TabIndex = 17;
this.btnFirstPlace.Text = "1号位打印";
this.btnFirstPlace.UseVisualStyleBackColor = true;
this.btnFirstPlace.Click += new System.EventHandler(this.btnFirstPlace_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Dock = System.Windows.Forms.DockStyle.Right;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(85, 32);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(94, 34);
this.label1.TabIndex = 20;
this.label1.Text = "前车贴车单:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblLastPastNO
//
this.lblLastPastNO.AutoSize = true;
this.lblLastPastNO.Dock = System.Windows.Forms.DockStyle.Left;
this.lblLastPastNO.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLastPastNO.Location = new System.Drawing.Point(185, 32);
this.lblLastPastNO.Name = "lblLastPastNO";
this.lblLastPastNO.Size = new System.Drawing.Size(0, 34);
this.lblLastPastNO.TabIndex = 23;
this.lblLastPastNO.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pbPastNoConfirmed
//
this.pbPastNoConfirmed.Image = global::QMAPP.WinForm.Resource1.help;
this.pbPastNoConfirmed.Location = new System.Drawing.Point(191, 35);
this.pbPastNoConfirmed.Name = "pbPastNoConfirmed";
this.pbPastNoConfirmed.Size = new System.Drawing.Size(28, 28);
this.pbPastNoConfirmed.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pbPastNoConfirmed.TabIndex = 22;
this.pbPastNoConfirmed.TabStop = false;
//
// lberror
//
this.lberror.AutoSize = true;
this.lberror.BackColor = System.Drawing.Color.Red;
this.lberror.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lberror.ForeColor = System.Drawing.Color.White;
this.lberror.Location = new System.Drawing.Point(476, 6);
this.lberror.Name = "lberror";
this.lberror.Size = new System.Drawing.Size(0, 36);
this.lberror.TabIndex = 13;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.Red;
this.label2.Location = new System.Drawing.Point(378, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(114, 20);
this.label2.TabIndex = 14;
this.label2.Text = "消息区域:";
//
// txtCode
//
this.txtCode.Font = new System.Drawing.Font("宋体", 20F);
this.txtCode.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.txtCode.Location = new System.Drawing.Point(108, 6);
this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(264, 38);
this.txtCode.TabIndex = 1;
this.txtCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCode_KeyDown);
this.txtCode.Leave += new System.EventHandler(this.txtCode_Leave);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(9, 17);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(93, 20);
this.label4.TabIndex = 12;
this.label4.Text = "扫描条码";
//
// splitter1
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
this.splitter1.Location = new System.Drawing.Point(770, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 692);
this.splitter1.TabIndex = 17;
this.splitter1.TabStop = false;
//
// panel5
//
this.panel5.Controls.Add(this.groupBox2);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(0, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(770, 692);
this.panel5.TabIndex = 16;
//
// timeRefew
//
this.timeRefew.Enabled = true;
this.timeRefew.Tick += new System.EventHandler(this.timeRefew_Tick);
//
// panel7
//
this.panel7.Controls.Add(this.panel5);
this.panel7.Controls.Add(this.splitter1);
this.panel7.Controls.Add(this.panel6);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 50);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(1239, 692);
this.panel7.TabIndex = 9;
//
// panel8
//
this.panel8.Controls.Add(this.lberror);
this.panel8.Controls.Add(this.label4);
this.panel8.Controls.Add(this.label2);
this.panel8.Controls.Add(this.txtCode);
this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
this.panel8.Location = new System.Drawing.Point(0, 0);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(1239, 50);
this.panel8.TabIndex = 19;
//
// CODE_NF
//
this.CODE_NF.DataPropertyName = "SANBARCODE";
this.CODE_NF.HeaderText = "条码号";
this.CODE_NF.Name = "CODE_NF";
this.CODE_NF.ReadOnly = true;
this.CODE_NF.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.CODE_NF.Width = 57;
//
// PRODNO_NF
//
this.PRODNO_NF.DataPropertyName = "PRODNO";
this.PRODNO_NF.HeaderText = "零件号";
this.PRODNO_NF.Name = "PRODNO_NF";
this.PRODNO_NF.ReadOnly = true;
this.PRODNO_NF.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.PRODNO_NF.Width = 57;
//
// CARSETDESC_CN_NF
//
this.CARSETDESC_CN_NF.DataPropertyName = "CARSETDESC_CN";
this.CARSETDESC_CN_NF.HeaderText = "总成描述";
this.CARSETDESC_CN_NF.Name = "CARSETDESC_CN_NF";
this.CARSETDESC_CN_NF.ReadOnly = true;
this.CARSETDESC_CN_NF.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.CARSETDESC_CN_NF.Width = 69;
//
// MOULDCODE
//
this.MOULDCODE.DataPropertyName = "MOULDCODE";
this.MOULDCODE.HeaderText = "位置";
this.MOULDCODE.Name = "MOULDCODE";
this.MOULDCODE.ReadOnly = true;
this.MOULDCODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.MOULDCODE.Width = 45;
//
// CREATEDATE_NF
//
this.CREATEDATE_NF.DataPropertyName = "SCANDATE";
this.CREATEDATE_NF.HeaderText = "扫描时间";
this.CREATEDATE_NF.Name = "CREATEDATE_NF";
this.CREATEDATE_NF.ReadOnly = true;
this.CREATEDATE_NF.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.CREATEDATE_NF.Width = 69;
//
// Column1
//
this.Column1.DataPropertyName = "PASTEDETAILED_CARD_KEY";
this.Column1.HeaderText = "Column1";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Visible = false;
this.Column1.Width = 82;
//
// SEQ
//
this.SEQ.DataPropertyName = "SEQ";
this.SEQ.HeaderText = "SEQ";
this.SEQ.Name = "SEQ";
this.SEQ.ReadOnly = true;
this.SEQ.Visible = false;
this.SEQ.Width = 58;
//
// Column2
//
this.Column2.DataPropertyName = "FIS_KEY";
this.Column2.HeaderText = "Column2";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Visible = false;
this.Column2.Width = 82;
//
// Column3
//
this.Column3.DataPropertyName = "PASTE_CARD_KEY";
this.Column3.HeaderText = "Column3";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Visible = false;
this.Column3.Width = 82;
//
// Column7
//
this.Column7.DataPropertyName = "VIN";
this.Column7.HeaderText = "Column7";
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
this.Column7.Visible = false;
this.Column7.Width = 82;
//
// Column11
//
this.Column11.DataPropertyName = "DGVROWINDEX";
this.Column11.HeaderText = "Column11";
this.Column11.Name = "Column11";
this.Column11.ReadOnly = true;
this.Column11.Visible = false;
this.Column11.Width = 88;
//
// Column13
//
this.Column13.DataPropertyName = "LINENO";
this.Column13.HeaderText = "Column13";
this.Column13.Name = "Column13";
this.Column13.ReadOnly = true;
this.Column13.Visible = false;
this.Column13.Width = 88;
//
// dgcPRODUCT_PID
//
this.dgcPRODUCT_PID.DataPropertyName = "PRODUCT_PID";
this.dgcPRODUCT_PID.HeaderText = "产品主键";
this.dgcPRODUCT_PID.Name = "dgcPRODUCT_PID";
this.dgcPRODUCT_PID.ReadOnly = true;
this.dgcPRODUCT_PID.Visible = false;
this.dgcPRODUCT_PID.Width = 88;
//
// TJFrmPlace
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1239, 742);
this.Controls.Add(this.panel7);
this.Controls.Add(this.panel8);
this.Name = "TJFrmPlace";
this.Text = "发运终端";
this.Activated += new System.EventHandler(this.FrmPlace_Activated);
this.Load += new System.EventHandler(this.FrmElevateRequest_Load);
this.groupBox2.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMATChange)).EndInit();
this.panel6.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvNF)).EndInit();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pbPastNoConfirmed)).EndInit();
this.panel5.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel8.ResumeLayout(false);
this.panel8.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.FlowLayoutPanel panel1;
private System.Windows.Forms.Button btnLineSetting;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.Button btnJZ;
private System.Windows.Forms.Button btnRef;
private System.Windows.Forms.RadioButton rb_hx;
private System.Windows.Forms.RadioButton rb_dx;
private System.Windows.Forms.DataGridView dgvMATChange;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.DataGridView dgvNF;
private System.Windows.Forms.FlowLayoutPanel panel3;
private System.Windows.Forms.Button btnResetIndex;
private System.Windows.Forms.Button btnPrint_NF;
private System.Windows.Forms.Label lberror;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtCode;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Timer timeRefew;
private System.Windows.Forms.Button btnFirstPlace;
private System.Windows.Forms.Button btnSetDatagroupType;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.TableLayoutPanel tpContainer;
private System.Windows.Forms.Button btnResetCart;
private System.Windows.Forms.Button btnCloseCart;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lblLastPastNO;
private System.Windows.Forms.PictureBox pbPastNoConfirmed;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Label lblCount;
private System.Windows.Forms.DataGridViewTextBoxColumn PLAN_DATE;
private System.Windows.Forms.DataGridViewTextBoxColumn REQUESTID;
private System.Windows.Forms.DataGridViewTextBoxColumn MATERIAL_CODE;
private System.Windows.Forms.DataGridViewTextBoxColumn MATERIAL_NAME;
private System.Windows.Forms.DataGridViewTextBoxColumn LINENO;
private System.Windows.Forms.DataGridViewTextBoxColumn MOULD_CODE;
private System.Windows.Forms.DataGridViewTextBoxColumn PID;
private System.Windows.Forms.DataGridViewTextBoxColumn clscanstate;
private System.Windows.Forms.DataGridViewTextBoxColumn STATE;
private System.Windows.Forms.DataGridViewTextBoxColumn CODE_NF;
private System.Windows.Forms.DataGridViewTextBoxColumn PRODNO_NF;
private System.Windows.Forms.DataGridViewTextBoxColumn CARSETDESC_CN_NF;
private System.Windows.Forms.DataGridViewTextBoxColumn MOULDCODE;
private System.Windows.Forms.DataGridViewTextBoxColumn CREATEDATE_NF;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn SEQ;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
private System.Windows.Forms.DataGridViewTextBoxColumn dgcPRODUCT_PID;
}
}

192
APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.resx

@ -0,0 +1,192 @@
<?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="PLAN_DATE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="REQUESTID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MATERIAL_CODE.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="LINENO.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MOULD_CODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="clscanstate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="STATE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CODE_NF.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PRODNO_NF.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CARSETDESC_CN_NF.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MOULDCODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CREATEDATE_NF.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SEQ.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dgcPRODUCT_PID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="timeRefew.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>

178
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.cs

@ -0,0 +1,178 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.269
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace QMAPP.WinForm.Forms.TianJin
{
using System;
using System.ComponentModel;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports.Engine;
/// <summary>
///
/// </summary>
public class TJPastCard : ReportClass {
/// <summary>
///
/// </summary>
public TJPastCard() {
}
public override string ResourceName {
get {
return "TJPastCard.rpt";
}
set {
// Do nothing
}
}
public override bool NewGenerator {
get {
return true;
}
set {
// Do nothing
}
}
public override string FullResourceName {
get {
return "QMAPP.WinForm.Forms.TianJin.TJPastCard.rpt";
}
set {
// Do nothing
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section Section1 {
get {
return this.ReportDefinition.Sections[0];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section Section2 {
get {
return this.ReportDefinition.Sections[1];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section GroupHeaderSection1 {
get {
return this.ReportDefinition.Sections[2];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section Section3 {
get {
return this.ReportDefinition.Sections[3];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section GroupFooterSection1 {
get {
return this.ReportDefinition.Sections[4];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section Section4 {
get {
return this.ReportDefinition.Sections[5];
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public CrystalDecisions.CrystalReports.Engine.Section Section5 {
get {
return this.ReportDefinition.Sections[6];
}
}
}
/// <summary>
///
/// </summary>
[System.Drawing.ToolboxBitmapAttribute(typeof(CrystalDecisions.Shared.ExportOptions), "report.bmp")]
public class TJCachedPastCard : Component, ICachedReport {
/// <summary>
///
/// </summary>
public TJCachedPastCard() {
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual bool IsCacheable {
get {
return true;
}
set {
//
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual bool ShareDBLogonInfo {
get {
return false;
}
set {
//
}
}
[Browsable(false)]
[DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual System.TimeSpan CacheTimeOut {
get {
return CachedReportConstants.DEFAULT_TIMEOUT;
}
set {
//
}
}
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
TJPastCard rpt = new TJPastCard();
rpt.Site = this.Site;
return rpt;
}
public virtual string GetCustomizedCacheKey(RequestContext request) {
String key = null;
// // The following is the code used to generate the default
// // cache key for caching report jobs in the ASP.NET Cache.
// // Feel free to modify this code to suit your needs.
// // Returning key == null causes the default cache key to
// // be generated.
//
// key = RequestContext.BuildCompleteCacheKey(
// request,
// null, // sReportFilename
// this.GetType(),
// this.ShareDBLogonInfo );
return key;
}
}
}

BIN
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCard.rpt

Binary file not shown.

20
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPastCardModel.cs

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QMAPP.WinForm.Forms.TianJin
{
/// <summary>
/// 贴车单报表模型
/// </summary>
public class TJPastCardModel
{
/// <summary>
/// 贴车单号
/// </summary>
public string PastCardNo { get; set; }
public string PastCardTitle { get; set; }
public List<FJC.Entity.TianJin.TJFISORDER> PastCardDetail { get; set; }
}
}

120
APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPasteCard.cs

@ -0,0 +1,120 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Model;
using QMAPP.WinForm.Forms.DisPatch;
using QMAPP.WinForm.Forms.TianJin;
namespace DCS.Place
{
public class TJPrintPasteCard
{
/// <summary>
/// 创建汇总列表
/// </summary>
/// <returns></returns>
private DataTable CreateTablePrepre()
{
#region
DataTable table = new DataTable();
table.Columns.Add("ROWINDEX"); //序号
table.Columns.Add("VWSEQ"); //
table.Columns.Add("VIN"); //到货单号条码
table.Columns.Add("PRODNO"); //零件号
table.Columns.Add("CARSETDESCCN"); //总成描述
table.Columns.Add("CP5A");//上线时间
table.Columns.Add("SCANDATE"); //打印时间
table.Columns.Add("PASTECARDNO"); //贴车单号
table.Columns.Add("PASTECARDNOSUB"); //贴车单号
table.Columns.Add("PASTECARDNOYS"); //贴车单号
table.Columns.Add("PRODUCTIONNAME"); //单线混线
table.Columns.Add("LINENO");
return table;
#endregion
}
/// <summary>
/// 外来件打印
/// </summary>
/// <param name="strindex"></param>
/// <param name="nfpastecard"></param>
/// <param name="producttype"></param>
public void Print(int strindex, TJEPasteCard nfpastecard, string producttype)
{
DataTable dt = CreateTablePrepre();
//BllFisOrder fisorder = new BllFisOrder();
//DataTable tbl = fisorder.GetPastecardDeatis();
//int strindex = int.Parse (tbl.Rows[0][0].ToString());
foreach (TJEPasteDetailsCard pastdetail in nfpastecard.DetailsCardlist)
{
DataRow ncsdr = dt.NewRow();
ncsdr["ROWINDEX"] = strindex;
ncsdr["VWSEQ"] = pastdetail.VWSEQ;
ncsdr["VIN"] = pastdetail.VIN;
ncsdr["PRODNO"] = pastdetail.PRODNO;
ncsdr["CARSETDESCCN"] = pastdetail.CARSETDESC_CN;
ncsdr["CP5A"] = pastdetail.CP5A;
ncsdr["PASTECARDNOYS"] = nfpastecard.PASTECARDNO;
ncsdr["PASTECARDNO"] = nfpastecard.PASTECARDNO;
ncsdr["PASTECARDNOSUB"] = nfpastecard.PASTECARDNO.Substring(nfpastecard.PASTECARDNO.Length - 4);
ncsdr["SCANDATE"] = DateTime.Now.ToString();
ncsdr["PRODUCTIONNAME"] = producttype;
ncsdr["LINENO"] = pastdetail.LINENO;
dt.Rows.Add(ncsdr);
strindex++;
//fisorder.UpdatePasteDetails(ncsdr["ROWINDEX"].ToString(), pastdetail.PASTEDETAILED_CARD_KEY);
}
TJPastCard cr = new TJPastCard();
try
{
cr.SetDataSource(dt); //为报表的数据表填充记录
//暂时注销
cr.PrintToPrinter(1, false, 0, 0);
}
catch (Exception ex)
{
QMAPP.WinForm.WriteLog.WriteError(ex.Message);
}
finally
{
if (cr != null)
{
cr.Close();
cr.Dispose();
}
}
}
/// <summary>
/// 本地打印
/// </summary>
/// <param name="printdt"></param>
public void Print(DataTable printdt)
{
TJPastCard cr=null;
try
{
cr = new TJPastCard();
// printdt.TableName = "text";
cr.SetDataSource(printdt); //为报表的数据表填充记录
cr.PrintToPrinter(1, false, 0, 1);
}
catch (Exception ex)
{
QMAPP.WinForm.WriteLog.WriteError(ex.Message);
}
finally
{
if (cr != null)
{
cr.Close();
cr.Dispose();
}
}
}
}
}

175
APPQ5/QMAPP.WinForm/Forms/TianJin/TJResetSendIndexForm.cs

@ -0,0 +1,175 @@
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;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJResetSendIndexForm : Form
{ //最后的发车时间
DateTime updateTime;
//发车单号
string pasteCardIndex;
DataTable dt;
public TJResetSendIndexForm()
{
InitializeComponent();
}
private void btnSave_Click(object sender, EventArgs e)
{
string selectPlantCode = comboBox1.Text.ToString();
int sendIndex = Convert.ToInt32(numericUpDown1.Value);
if (sendIndex > 10000)
{
MessageBox.Show("当前发车数量不能大于9999!");
numericUpDown1.Focus();
return;
}
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable dt = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPastecardIndex.ToString(), selectPlantCode, selectPlantCode + DateTime.Now.ToString("yyyyMMdd"));
if (dt.Rows.Count > 0)
{
foreach (DataRow dr in dt.Rows)
{
// string plantCodeInRow = dr["PLANTCODE"].ToString();
// if (selectPlantCode == plantCodeInRow)
// {
pasteCardIndex = dr["PASTECARDNO"].ToString();
updateTime = Convert.ToDateTime(dr["PASTECARDDATE"]);
// }
}
if (Convert.ToDateTime(updateTime.ToString("yyyy-MM-dd")) > Convert.ToDateTime(label2.Text))
{
label2.Text = System.DateTime.Now.ToString("yyyy-MM-dd");
numericUpDown1.Value = Convert.ToInt32(pasteCardIndex.Substring(pasteCardIndex.Length - 4, 4));
MessageBox.Show("请重新修改当前发车数量!");
numericUpDown1.Focus();
return;
}
if (Convert.ToDateTime(updateTime.ToString("yyyy-MM-dd")) == Convert.ToDateTime(label2.Text) && sendIndex < Convert.ToInt32(pasteCardIndex.Substring(pasteCardIndex.Length - 4, 4)))
{
numericUpDown1.Value = Convert.ToInt32(pasteCardIndex.Substring(pasteCardIndex.Length - 4, 4));
MessageBox.Show("请重新修改当前发车数量!");
numericUpDown1.Focus();
return;
}
// pasteCardIndex = pasteCardIndex.Substring(0, 2) + label2.Text.Replace("-", "") + numericUpDown1.Value.ToString().PadLeft(4, '0');
pasteCardIndex = label2.Text.Replace("-", "") + numericUpDown1.Value.ToString().PadLeft(4, '0');
int result = agent.InvokeServiceFunction<int>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_UpdatePastecardIndex.ToString(), selectPlantCode+pasteCardIndex, selectPlantCode);
this.Close();
}
else
{
string strnum=sendIndex.ToString().PadLeft(4,'0');
pasteCardIndex = System.DateTime.Now.ToString("yyyyMMdd") + strnum;
int result2 = agent.InvokeServiceFunction<int>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_UpdatePastecardIndex.ToString(), selectPlantCode + pasteCardIndex, selectPlantCode);
this.Close();
}
}
private void ResetSendIndexForm_Load(object sender, EventArgs e)
{
//string pFisType = QM.Config.CustomConfig.GetItem("FlashProCode");
string pFisType = QMAPP.WinForm.Common.LocalSetting.Settings["PlantNameConfig"];
label2.Text = System.DateTime.Now.ToString("yyyy-MM-dd");
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
dt = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPastecardIndex.ToString(), "", "");
this.comboBox1.DataSource = dt;
this.comboBox1.DisplayMember = "PLANTNAME";
this.comboBox1.ValueMember = "PLANTNAME";
comboBox1.SelectedValue = pFisType;
int i = 0;
foreach (DataRow dr in dt.Rows)
{
if (i >= 1)
{
break;
}
string plantNo = dr["PLANTCODE"].ToString();
pasteCardIndex = dr["PASTECARDNO"].ToString();
updateTime = Convert.ToDateTime(dr["PASTECARDDATE"]);
i++;
}
if (updateTime.ToString("yyyy-MM-dd") != label2.Text)
{
numericUpDown1.Value = 0;
}
else
{
numericUpDown1.Value = Convert.ToInt32(pasteCardIndex.Substring(pasteCardIndex.Length - 4, 4));
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text != "System.Data.DataRowView")
{
string selectPlantCode = comboBox1.Text;
// string selectPlantCode = comboBox1.SelectedValue.ToString();
//foreach (DataRow dr in dt.Rows)
//{
// string plantCodeInRow = dr["PLANTCODE"].ToString();
// if (selectPlantCode == plantCodeInRow)
// {
// string cardIndex = dr["PASTECARDNO"].ToString();
// DateTime updateTimeRow = Convert.ToDateTime(dr["PASTECARDDATE"]);
// if (updateTimeRow.ToString("yyyy-MM-dd") != label2.Text)
// {
// numericUpDown1.Value = 0;
// }
// else
// {
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
dt = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetPastecardIndex.ToString(), selectPlantCode, selectPlantCode + DateTime.Now.ToString("yyyyMMdd"));
// numericUpDown1.Value = Convert.ToInt32(cardIndex.Substring(cardIndex.Length-4, 4));
if (dt.Rows.Count > 0)
{
numericUpDown1.Value = Convert.ToInt32(dt.Rows[0]["PASTECARDNO"].ToString().Substring(dt.Rows[0]["PASTECARDNO"].ToString().Length - 4, 4));
}
else
{
numericUpDown1.Value = 0;
}
// }
}
//}
}
}
}

133
APPQ5/QMAPP.WinForm/Forms/TianJin/TJResetSendIndexForm.designer.cs

@ -0,0 +1,133 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJResetSendIndexForm
{
/// <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.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.btnSave = new System.Windows.Forms.Button();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
this.SuspendLayout();
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold);
this.label3.Location = new System.Drawing.Point(125, 55);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(93, 20);
this.label3.TabIndex = 22;
this.label3.Text = "工作中心";
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(221, 53);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(83, 24);
this.comboBox1.TabIndex = 21;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(203, 186);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 23);
this.btnSave.TabIndex = 20;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// numericUpDown1
//
this.numericUpDown1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.numericUpDown1.Location = new System.Drawing.Point(219, 101);
this.numericUpDown1.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(86, 26);
this.numericUpDown1.TabIndex = 19;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold);
this.label1.Location = new System.Drawing.Point(50, 102);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(156, 20);
this.label1.TabIndex = 18;
this.label1.Text = "当前发车数量为";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold);
this.label2.Location = new System.Drawing.Point(6, 53);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(119, 20);
this.label2.TabIndex = 17;
this.label2.Text = "2016-10-29";
//
// ResetSendIndexForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(317, 262);
this.Controls.Add(this.label3);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.btnSave);
this.Controls.Add(this.numericUpDown1);
this.Controls.Add(this.label1);
this.Controls.Add(this.label2);
this.Name = "ResetSendIndexForm";
this.Text = "贴车单顺序校正";
this.Load += new System.EventHandler(this.ResetSendIndexForm_Load);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
}
}

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

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

132
APPQ5/QMAPP.WinForm/Forms/TianJin/TJfrmLineSetting.cs

@ -0,0 +1,132 @@
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 Model;
namespace QMAPP.WinForm.Forms.TianJin
{
public partial class TJfrmLineSetting : Form
{
/// <summary>
/// 工位终端:设置生产线,设置完成的生产线保存在APP.CONFIG中的FlashProCode。
/// 创建时间:2013-03-30
/// 创 建 人:Sun G.Q.
/// </summary>
public TJfrmLineSetting()
{
InitializeComponent();
//理想是生产线从数据库表中读取,这里,写死它。
IList<EProCodeInfo> proCodes = new List<EProCodeInfo>();
// EProCodeInfo epci = new EProCodeInfo();
//epci._Code = "02";
// epci._Name = "NF单线";
// proCodes.Add(epci);
// epci = new EProCodeInfo();
//epci._Code = "01";
//epci._Name = "NF&NCS混线";
//proCodes.Add(epci);
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
DataTable tblCodes = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetWORKCENTERCODE.ToString());
for (var i = 0; i < tblCodes.Rows.Count; i++)
{
EProCodeInfo epci = new EProCodeInfo();
epci._Name = tblCodes.Rows[i][1].ToString();
epci._Code = tblCodes.Rows[i][0].ToString();
proCodes.Add(epci);
}
cmbProCode.DataSource = proCodes;
cmbProCode.DisplayMember = "_Name";
cmbProCode.ValueMember = "_Code";
//String vv = QM.Config.CustomConfig.GetItem("FlashProCode");
//cmbProCode.SelectedValue = QM.Config.CustomConfig.GetItem("PlantNameConfig");
//String vv = QMAPP.WinForm.Common.LocalSetting.Settings["FlashProCode"];
cmbProCode.SelectedValue = QMAPP.WinForm.Common.LocalSetting.Settings["PlantNameConfig",""];
cbPrintEnable.Checked = string.Equals(QMAPP.WinForm.Common.LocalSetting.Settings["PrintDisable", "1"], "0");
cbPastNoConfirmEnable.Checked = string.Equals(QMAPP.WinForm.Common.LocalSetting.Settings["PastNOConfirmEnable", "0"], "1");
cbAlertConfirmEnable.Checked = string.Equals(QMAPP.WinForm.Common.LocalSetting.Settings["AlertConfirmEnable", "0"], "1");
txtStorageTimeLimit.Text = QMAPP.WinForm.Common.LocalSetting.Settings["StorageTimeLimit", "24"];
}
private void btnSave_Click(object sender, EventArgs e)
{
//if (txPwd.Text.Trim() == String.Empty)
//{
// MessageBox.Show("请输入密码。");
// return;
//}
//String pwd = txPwd.Text.Trim();
//if ("#7788d" == pwd)
//{
// QM.Config.CustomConfig.SetItem("FlashProCode", cmbProCode.SelectedValue.ToString());
// //MessageBox.Show("生产线设置成功,请重新登录系统。");
try
{
TJFrmPlace fplace = (TJFrmPlace)this.Owner;
//fplace.WORKCENTER_CODE = cmbProCode.SelectedValue.ToString();
//QM.Config.CustomConfig.SetItem("PlantNameConfig", fplace.WORKCENTER_CODE);
//QMAPP.WinForm.Common.LocalSetting.Settings["PlantNameConfig"] = fplace.WORKCENTER_CODE;
QMAPP.WinForm.Common.LocalSetting.Settings["PrintDisable"] = cbPrintEnable.Checked ? "0" : "1";
QMAPP.WinForm.Common.LocalSetting.Settings["PastNOConfirmEnable"] = cbPastNoConfirmEnable.Checked ? "1" : "0";
QMAPP.WinForm.Common.LocalSetting.Settings["AlertConfirmEnable"] = cbAlertConfirmEnable.Checked ? "1" : "0";
var StorageTimeLimit = 0d;
if (double.TryParse(txtStorageTimeLimit.Text.Trim(), out StorageTimeLimit))
{
QMAPP.WinForm.Common.LocalSetting.Settings["StorageTimeLimit"] = txtStorageTimeLimit.Text.Trim();
}
else
{
MessageBox.Show("产品下线时间限制未能保存,请输入数字!");
txtStorageTimeLimit.SelectAll();
txtStorageTimeLimit.Focus();
return;
}
//fplace.pFisType = fplace.WORKCENTER_CODE.Substring(fplace.WORKCENTER_CODE.Length - 2, 2);
fplace.GetInitData();
this.Close();
// //foreach (Form frm in this.MdiChildren)
// //{
// // frm.Close();
// //}
// //if (this.MdiChildren.Length == 0)
// //{
// // Application.Restart();
// //}
}
catch (Exception ex)
{
throw ex;
}
//}
//else
//{
// MessageBox.Show("密码错误。");
//}
}
}
}

160
APPQ5/QMAPP.WinForm/Forms/TianJin/TJfrmLineSetting.designer.cs

@ -0,0 +1,160 @@
namespace QMAPP.WinForm.Forms.TianJin
{
partial class TJfrmLineSetting
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.cmbProCode = new System.Windows.Forms.ComboBox();
this.btnSave = new System.Windows.Forms.Button();
this.cbPrintEnable = new System.Windows.Forms.CheckBox();
this.cbPastNoConfirmEnable = new System.Windows.Forms.CheckBox();
this.cbAlertConfirmEnable = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.txtStorageTimeLimit = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(39, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 12);
this.label1.TabIndex = 18;
this.label1.Text = "请选择工作中心:";
this.label1.Visible = false;
//
// cmbProCode
//
this.cmbProCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbProCode.FormattingEnabled = true;
this.cmbProCode.Location = new System.Drawing.Point(172, 7);
this.cmbProCode.Name = "cmbProCode";
this.cmbProCode.Size = new System.Drawing.Size(99, 20);
this.cmbProCode.TabIndex = 17;
this.cmbProCode.Visible = false;
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(95, 201);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 23);
this.btnSave.TabIndex = 16;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// cbPrintEnable
//
this.cbPrintEnable.AutoSize = true;
this.cbPrintEnable.Location = new System.Drawing.Point(81, 47);
this.cbPrintEnable.Name = "cbPrintEnable";
this.cbPrintEnable.Size = new System.Drawing.Size(108, 16);
this.cbPrintEnable.TabIndex = 19;
this.cbPrintEnable.Text = "启用贴车单打印";
this.cbPrintEnable.UseVisualStyleBackColor = true;
//
// cbPastNoConfirmEnable
//
this.cbPastNoConfirmEnable.AutoSize = true;
this.cbPastNoConfirmEnable.Location = new System.Drawing.Point(81, 77);
this.cbPastNoConfirmEnable.Name = "cbPastNoConfirmEnable";
this.cbPastNoConfirmEnable.Size = new System.Drawing.Size(132, 16);
this.cbPastNoConfirmEnable.TabIndex = 20;
this.cbPastNoConfirmEnable.Text = "启用前车贴车单确认";
this.cbPastNoConfirmEnable.UseVisualStyleBackColor = true;
//
// cbAlertConfirmEnable
//
this.cbAlertConfirmEnable.AutoSize = true;
this.cbAlertConfirmEnable.Location = new System.Drawing.Point(81, 107);
this.cbAlertConfirmEnable.Name = "cbAlertConfirmEnable";
this.cbAlertConfirmEnable.Size = new System.Drawing.Size(120, 16);
this.cbAlertConfirmEnable.TabIndex = 21;
this.cbAlertConfirmEnable.Text = "启用错误报警确认";
this.cbAlertConfirmEnable.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(82, 138);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(101, 12);
this.label2.TabIndex = 22;
this.label2.Text = "产品下线时间限制";
//
// txtStorageTimeLimit
//
this.txtStorageTimeLimit.Location = new System.Drawing.Point(81, 155);
this.txtStorageTimeLimit.Name = "txtStorageTimeLimit";
this.txtStorageTimeLimit.Size = new System.Drawing.Size(46, 21);
this.txtStorageTimeLimit.TabIndex = 23;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(133, 158);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 12);
this.label3.TabIndex = 24;
this.label3.Text = "小时";
//
// frmLineSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(283, 236);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtStorageTimeLimit);
this.Controls.Add(this.label2);
this.Controls.Add(this.cbAlertConfirmEnable);
this.Controls.Add(this.cbPastNoConfirmEnable);
this.Controls.Add(this.cbPrintEnable);
this.Controls.Add(this.label1);
this.Controls.Add(this.cmbProCode);
this.Controls.Add(this.btnSave);
this.Name = "frmLineSetting";
this.Text = "贴车单设置";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cmbProCode;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.CheckBox cbPrintEnable;
private System.Windows.Forms.CheckBox cbPastNoConfirmEnable;
private System.Windows.Forms.CheckBox cbAlertConfirmEnable;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtStorageTimeLimit;
private System.Windows.Forms.Label label3;
}
}

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

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

2
APPQ5/QMAPP.WinForm/LoginForm.Designer.cs

@ -117,7 +117,7 @@
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(274, 21); this.label3.Size = new System.Drawing.Size(274, 21);
this.label3.TabIndex = 1; this.label3.TabIndex = 1;
this.label3.Text = "富维安道拓成都数字化工厂"; this.label3.Text = "富维安道拓数字化工厂";
// //
// comboBox1 // comboBox1
// //

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

@ -59,6 +59,7 @@
this.tsmiTakeOut = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiTakeOut = new System.Windows.Forms.ToolStripMenuItem();
this.tsiShipment = new System.Windows.Forms.ToolStripMenuItem(); this.tsiShipment = new System.Windows.Forms.ToolStripMenuItem();
this.FrmPlace = new System.Windows.Forms.ToolStripMenuItem(); this.FrmPlace = new System.Windows.Forms.ToolStripMenuItem();
this.TJFrmPlace = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiQuery = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiQuery = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiProductInfo = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiProductInfo = new System.Windows.Forms.ToolStripMenuItem();
this.andonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.andonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -303,7 +304,8 @@
// tsiShipment // tsiShipment
// //
this.tsiShipment.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsiShipment.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FrmPlace}); this.FrmPlace,
this.TJFrmPlace});
this.tsiShipment.Name = "tsiShipment"; this.tsiShipment.Name = "tsiShipment";
this.tsiShipment.Size = new System.Drawing.Size(94, 28); this.tsiShipment.Size = new System.Drawing.Size(94, 28);
this.tsiShipment.Text = "发货管理"; this.tsiShipment.Text = "发货管理";
@ -315,6 +317,13 @@
this.FrmPlace.Text = "仪表发运"; this.FrmPlace.Text = "仪表发运";
this.FrmPlace.Click += new System.EventHandler(this.FrmPlace_Click); this.FrmPlace.Click += new System.EventHandler(this.FrmPlace_Click);
// //
// TJFrmPlace
//
this.TJFrmPlace.Name = "TJFrmPlace";
this.TJFrmPlace.Size = new System.Drawing.Size(152, 28);
this.TJFrmPlace.Text = "TJ门板发运";
this.TJFrmPlace.Click += new System.EventHandler(this.TJFrmPlace_Click);
//
// tsmiQuery // tsmiQuery
// //
this.tsmiQuery.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsmiQuery.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -430,7 +439,7 @@
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Name = "MainForm"; this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "富维安道拓成都数字化工厂"; this.Text = "富维安道拓数字化工厂";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
@ -461,6 +470,7 @@
private System.Windows.Forms.ToolStripMenuItem PrintCodeToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem PrintCodeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem tsiShipment; private System.Windows.Forms.ToolStripMenuItem tsiShipment;
private System.Windows.Forms.ToolStripMenuItem FrmPlace; private System.Windows.Forms.ToolStripMenuItem FrmPlace;
private System.Windows.Forms.ToolStripMenuItem TJFrmPlace;
private System.Windows.Forms.ToolStripMenuItem andonToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem andonToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem AodonToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem AodonToolStripMenuItem;
private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Timer timer1;

22
APPQ5/QMAPP.WinForm/MainForm.cs

@ -21,7 +21,7 @@ using QMAPP.WinForm.Forms.ProductIn;
using System.Configuration; using System.Configuration;
using System.ServiceModel.Configuration; using System.ServiceModel.Configuration;
using QMAPP.WinForm.Forms.RePrint; using QMAPP.WinForm.Forms.RePrint;
using QMAPP.WinForm.Forms.TianJin;
namespace QMAPP.WinForm namespace QMAPP.WinForm
{ {
@ -567,6 +567,26 @@ namespace QMAPP.WinForm
} }
} }
private void TJFrmPlace_Click(object sender, EventArgs e)
{
Form f = Application.OpenForms["TJFrmPlace"]; //查找是否打开过Form1窗体
if (f == null) //没打开过
{
TJFrmPlace form = new TJFrmPlace();
//new KeyEvent().SetKeyToTxt(form);
ClientContext.SetUserAuth(form);
form.MdiParent = this;
form.WindowState = FormWindowState.Maximized;
form.Show(); //重新new一个Show出来
}
else
{
f.WindowState = FormWindowState.Normal;
f.Focus(); //打开过就让其获得焦点
}
}
private void VedioToolStripMenuItem1_Click(object sender, EventArgs e) private void VedioToolStripMenuItem1_Click(object sender, EventArgs e)
{ {
Form f = Application.OpenForms["MediaPlayerForm"]; //查找是否打开过Form1窗体 Form f = Application.OpenForms["MediaPlayerForm"]; //查找是否打开过Form1窗体

70
APPQ5/QMAPP.WinForm/QMAPP.WinForm.csproj

@ -801,6 +801,53 @@
<Compile Include="Forms\RePrint\ReprintForm.Designer.cs"> <Compile Include="Forms\RePrint\ReprintForm.Designer.cs">
<DependentUpon>ReprintForm.cs</DependentUpon> <DependentUpon>ReprintForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\TianJin\TJDefaultDataSetNum.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJDefaultDataSetNum.designer.cs">
<DependentUpon>TJDefaultDataSetNum.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJFrmCarCardDetail.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJFrmCarCardDetail.designer.cs">
<DependentUpon>TJFrmCarCardDetail.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJFrmCarCardPrintShow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJFrmCarCardPrintShow.designer.cs">
<DependentUpon>TJFrmCarCardPrintShow.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJFrmItemList.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJFrmItemList.designer.cs">
<DependentUpon>TJFrmItemList.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJfrmLineSetting.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJfrmLineSetting.designer.cs">
<DependentUpon>TJfrmLineSetting.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJFrmPlace.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJFrmPlace.designer.cs">
<DependentUpon>TJFrmPlace.cs</DependentUpon>
</Compile>
<Compile Include="Forms\TianJin\TJPastCard.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJPastCardModel.cs" />
<Compile Include="Forms\TianJin\TJPrintPasteCard.cs" />
<Compile Include="Forms\TianJin\TJResetSendIndexForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\TianJin\TJResetSendIndexForm.designer.cs">
<DependentUpon>TJResetSendIndexForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\WarehouseManage\OutWarehouseForm.cs"> <Compile Include="Forms\WarehouseManage\OutWarehouseForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1234,6 +1281,27 @@
<EmbeddedResource Include="Forms\RePrint\ReprintForm.resx"> <EmbeddedResource Include="Forms\RePrint\ReprintForm.resx">
<DependentUpon>ReprintForm.cs</DependentUpon> <DependentUpon>ReprintForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJDefaultDataSetNum.resx">
<DependentUpon>TJDefaultDataSetNum.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJFrmCarCardDetail.resx">
<DependentUpon>TJFrmCarCardDetail.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJFrmCarCardPrintShow.resx">
<DependentUpon>TJFrmCarCardPrintShow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJFrmItemList.resx">
<DependentUpon>TJFrmItemList.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJfrmLineSetting.resx">
<DependentUpon>TJfrmLineSetting.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJFrmPlace.resx">
<DependentUpon>TJFrmPlace.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\TianJin\TJResetSendIndexForm.resx">
<DependentUpon>TJResetSendIndexForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\WarehouseManage\OutWarehouseForm.resx"> <EmbeddedResource Include="Forms\WarehouseManage\OutWarehouseForm.resx">
<DependentUpon>OutWarehouseForm.cs</DependentUpon> <DependentUpon>OutWarehouseForm.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
@ -1330,6 +1398,8 @@
<Content Include="PrintTemplate\LoginLabel.frx"> <Content Include="PrintTemplate\LoginLabel.frx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<None Include="Forms\TianJin\RerportModel.ttx" />
<None Include="Forms\TianJin\TJPastCard.rpt" />
<None Include="PrintTemplate\reprint.qdf" /> <None Include="PrintTemplate\reprint.qdf" />
<Content Include="PrintTemplate\InjectLabel_NCB.frx"> <Content Include="PrintTemplate\InjectLabel_NCB.frx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>

63
AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs

@ -1940,6 +1940,69 @@ namespace QMAPP.ServicesAgent
[Description("发运模块")] [Description("发运模块")]
public enum FrmPlaceManage public enum FrmPlaceManage
{ {
#region 天津门板发运
/// <summary>
/// 发运模块列表查询--天津门板发运
/// </summary>
[Description("发运模块列表查询")]
TJFrmPlaceBLL_GetList,
/// <summary>
/// 发运模块列表查询--天津门板发运
/// </summary>
[Description("发运模块挂起")]
TJFrmPlaceBLL_UpdateWorkOrderState,
/// <summary>
/// 发运模块列表查询--天津门板发运
/// </summary>
[Description("通过总成条码获取产品")]
TJFrmPlaceBLL_GetProductByAssembleCode,
TJFrmPlaceBLL_GetTimeOutSet,
/// <summary>
/// 判断条码是否重复--天津门板发运
/// </summary>
[Description(" 判断条码是否重复")]
TJFrmPlaceBLL_ExistBarcode,
/// <summary>
/// 获取 DASPASTECARDINDEX表数据--天津门板发运
/// </summary>
[Description(" 获取 DASPASTECARDINDEX表数据")]
TJFrmPlaceBLL_GetDaspssteCarIndexByPlanName,
/// <summary>
/// 添加贴车单--天津门板发运
/// </summary>
[Description(" 添加贴车单")]
TJFrmPlaceBLL_AddNewPasteCard,
/// <summary>
/// 插入 DASPASTECARDINDEX表数据--天津门板发运
/// </summary>
[Description(" 插入 DASPASTECARDINDEX表数据")]
TJFrmPlaceBLL_InsertDaspssteCarIndexByPlanName,
/// <summary>
/// 根据贴车单ID获取详细--天津门板发运
/// </summary>
[Description(" 根据贴车单ID获取详细")]
TJFrmPlaceBLL_GetPascardDetailsByPid,
/// <summary>
/// 贴车单记录查询
/// </summary>
[Description("贴车单记录查询")]
TJFrmPlaceBLL_GetPastecardInfoWithVin,
/// <summary>
/// GetPastecardDeatis
/// </summary>
[Description(" GetPastecardDeatis")]
TJFrmPlaceBLL_GetPastecardDeatis,
/// <summary>
/// 获取工作中心
/// </summary>
[Description(" 获取工作中心")]
TJFrmPlaceBLL_GetWORKCENTERCODE,
#endregion
/// <summary> /// <summary>
/// 发运模块列表查询 /// 发运模块列表查询
/// </summary> /// </summary>

15
ServicesCenter/WCF/QMFrameWork.WebServiceHost/App_Data/FJCServiceList.xml

@ -945,4 +945,19 @@
<AssemblyFile>QMAPP.FJC.BLL.DLL</AssemblyFile> <AssemblyFile>QMAPP.FJC.BLL.DLL</AssemblyFile>
</ServiceDefinition> </ServiceDefinition>
<ServiceDefinition>
<ServiceName>TJDoorPlankPlanBLL</ServiceName>
<ServiceDes>天津门板发运计划</ServiceDes>
<FullLogicClassName>QMAPP.FJC.BLL.TianJin.TJDoorPlankPlanBLL</FullLogicClassName>
<AssemblyFile>QMAPP.FJC.BLL.DLL</AssemblyFile>
</ServiceDefinition>
<ServiceDefinition>
<ServiceName>TJFrmPlaceBLL</ServiceName>
<ServiceDes>天津门板发运模块</ServiceDes>
<FullLogicClassName>QMAPP.FJC.BLL.TianJin.TJFrmPlaceBLL</FullLogicClassName>
<AssemblyFile>QMAPP.FJC.BLL.DLL</AssemblyFile>
</ServiceDefinition>
</BusinessDllList> </BusinessDllList>

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

@ -66,13 +66,14 @@
<!--<add name="maindb" connectionString="Data Source=10.111.144.98;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.98;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_MES9;User Id=sa;Password=Password2018;max pool size=10240;" providerName="System.Data.SqlClient"/> <!--<add name="maindb" connectionString="Data Source=10.111.144.99;Initial Catalog=ADIENT_CD_MES9;User Id=sa;Password=Password2018;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="maindbYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=CdFisYbbNCSNF;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/> <!--<add name="maindbYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=CdFisYbbNCSNF;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/>
<add name="maindbNCSYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=CdFisYbbDY;User Id=mesreaderdcs;Password=mesreaderdcs;" providerName="System.Data.SqlClient"/>--> <add name="maindbNCSYBB" connectionString="Data Source=10.111.144.72;Initial Catalog=CdFisYbbDY;User Id=mesreaderdcs;Password=mesreaderdcs;" 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.114.50.240;Initial Catalog=ADIENT_QD_MES;Persist Security Info=True;User ID=qdmes;Password=Password1;" providerName="System.Data.SqlClient"/> <!--<add name="maindb" connectionString="Data Source=10.114.50.240;Initial Catalog=ADIENT_QD_MES;Persist Security Info=True;User ID=qdmes;Password=Password1;" providerName="System.Data.SqlClient"/>
<add name="maindbMB" connectionString="Data Source=10.123.4.20;Initial Catalog=QdFisMB;Persist Security Info=True;User ID=sa;Password=qm;" providerName="System.Data.SqlClient"/> <add name="maindbMB" connectionString="Data Source=10.123.4.20;Initial Catalog=QdFisMB;Persist Security Info=True;User ID=sa;Password=qm;" providerName="System.Data.SqlClient"/>

Loading…
Cancel
Save