dequan.zhang
3 years ago
539 changed files with 185366 additions and 569 deletions
@ -0,0 +1,769 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<MenuList> |
||||
|
<MenuItem MenuID="01000000" SystemID="Main" MenuDes="系统管理" Action="" PowerID="CD01000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01020000" SystemID="Main" MenuDes="组织机构管理" Action="/Orgaization/OrgaizationList" Target="url" PowerID="CD01020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Orgaization" ActionName="OrgaizationList" PowerID="CD01020001">查询</Action> |
||||
|
<Action ContorllerName="Orgaization" ActionName="OrgaizationAdd" PowerID="CD01020002">新建</Action> |
||||
|
<Action ContorllerName="Orgaization" ActionName="OrgaizationEdit" PowerID="CD01020003">修改</Action> |
||||
|
<Action ContorllerName="Orgaization" ActionName="OrgaizationDelete" PowerID="CD01020004">删除</Action> |
||||
|
<Action ContorllerName="Orgaization" ActionName="ExportExcel" PowerID="CD01020005">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01010000" SystemID="Main" MenuDes="角色管理" Action="/Role/RoleList" Target="url" PowerID="CD01010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="2"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Role" ActionName="RoleList" PowerID="CD01010001">查询</Action> |
||||
|
<Action ContorllerName="Role" ActionName="RoleAdd" PowerID="CD01010002">新建</Action> |
||||
|
<Action ContorllerName="Role" ActionName="RoleEdit" PowerID="CD01010003">修改</Action> |
||||
|
<Action ContorllerName="Role" ActionName="RoleDelete" PowerID="CD01010004">删除</Action> |
||||
|
<Action ContorllerName="Role" ActionName="ExportExcel" PowerID="CD01010005">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01030000" SystemID="Main" MenuDes="用户管理" Action="/User/UserList" Target="url" PowerID="CD01030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="3"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="User" ActionName="UserList" PowerID="CD01030001">查询</Action> |
||||
|
<Action ContorllerName="User" ActionName="UserAdd" PowerID="CD01030002">新建</Action> |
||||
|
<Action ContorllerName="User" ActionName="UserEdit" PowerID="CD01030003">修改</Action> |
||||
|
<Action ContorllerName="User" ActionName="UserDelete" PowerID="CD01030004">删除</Action> |
||||
|
<Action ContorllerName="User" ActionName="SetPassword" PowerID="CD01030005">设置密码</Action> |
||||
|
<Action ContorllerName="User" ActionName="ExportExcel" PowerID="CD01030006">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01150000" SystemID="Main" MenuDes="委托授权管理" Action="/Entrust/List" Target="url" PowerID="CD01150000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="4"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Entrust" ActionName="List" PowerID="CD01150001">查询</Action> |
||||
|
<Action ContorllerName="Entrust" ActionName="Add" PowerID="CD01150002">新建</Action> |
||||
|
<Action ContorllerName="Entrust" ActionName="Update" PowerID="CD01150003">修改</Action> |
||||
|
<Action ContorllerName="Entrust" ActionName="Delete" PowerID="CD01150004">删除</Action> |
||||
|
<Action ContorllerName="Entrust" ActionName="ExportExcel" PowerID="CD01150005">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01060000" SystemID="Main" MenuDes="通知管理" Action="/Notice/NoticeList" Target="url" PowerID="CD01060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="5"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Notice" ActionName="List" PowerID="CD01060001">查询</Action> |
||||
|
<Action ContorllerName="Notice" ActionName="Add" PowerID="CD01060002">新建</Action> |
||||
|
<Action ContorllerName="Notice" ActionName="Edit" PowerID="CD01060003">修改</Action> |
||||
|
<Action ContorllerName="Notice" ActionName="Delete" PowerID="CD01060004">删除</Action> |
||||
|
<Action ContorllerName="Notice" ActionName="View" PowerID="CD01060005">查看/回复</Action> |
||||
|
<Action ContorllerName="Notice" ActionName="ExportExcel" PowerID="CD01060006">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="01090000" SystemID="Main" MenuDes="热点查询" Action="/FuntionDescription/List" Target="url" PowerID="CD01090000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01000000" Seq="5"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="FuntionDescription" ActionName="List" PowerID="CD01090001">查询</Action> |
||||
|
<Action ContorllerName="FuntionDescription" ActionName="ExportExcel" PowerID="CD01090006">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="03000000" SystemID="Main" MenuDes="基础信息" Action="" PowerID="CD03000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03510000" MenuDes="公司信息" SystemID="MainData" Action="/Corp/Edit" Target="url" PowerID="CD03510000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Corp" ActionName="Save" PowerID="CD03510001">保存</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03520000" MenuDes="工厂信息" SystemID="MainData" Action="/Factory/List" Target="url" PowerID="CD03520000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Factory" ActionName="List" PowerID="CD03520001">查询</Action> |
||||
|
<Action ContorllerName="Factory" ActionName="Add" PowerID="CD03520002">添加</Action> |
||||
|
<Action ContorllerName="Factory" ActionName="Edit" PowerID="CD03520003">修改</Action> |
||||
|
<Action ContorllerName="Factory" ActionName="Delete" PowerID="CD03520004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03530000" MenuDes="工作中心" SystemID="MainData" Action="/WorkCenter/List" Target="url" PowerID="CD03530000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WorkCenter" ActionName="List" PowerID="CD03530001">查询</Action> |
||||
|
<Action ContorllerName="WorkCenter" ActionName="Add" PowerID="CD03530002">添加</Action> |
||||
|
<Action ContorllerName="WorkCenter" ActionName="Edit" PowerID="CD03530003">修改</Action> |
||||
|
<Action ContorllerName="WorkCenter" ActionName="Delete" PowerID="CD03530004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03640000" MenuDes="班次信息" SystemID="FJC" Action="/ProduceShift/List" Target="url" PowerID="CD03640000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProduceShift" ActionName="List" PowerID="CD03640001">查询</Action> |
||||
|
<Action ContorllerName="ProduceShift" ActionName="Add" PowerID="CD03640002">新建</Action> |
||||
|
<Action ContorllerName="ProduceShift" ActionName="Edit" PowerID="CD03640003">修改</Action> |
||||
|
<Action ContorllerName="ProduceShift" ActionName="Delete" PowerID="CD03640004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03630000" MenuDes="班组信息" SystemID="MainData" Action="/Team/List" Target="url" PowerID="CD03630000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Team" ActionName="List" PowerID="CD03630001">查询</Action> |
||||
|
<Action ContorllerName="Team" ActionName="Add" PowerID="CD03630002">新建</Action> |
||||
|
<Action ContorllerName="Team" ActionName="Edit" PowerID="CD03630003">修改</Action> |
||||
|
<Action ContorllerName="Team" ActionName="Delete" PowerID="CD03630004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03200000" MenuDes="班组成员" SystemID="MainData" Action="/TeamMember/List" Target="url" PowerID="CD03200000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="TeamMember" ActionName="List" PowerID="CD03200001">查询</Action> |
||||
|
<Action ContorllerName="TeamMember" ActionName="Add" PowerID="CD03200002">新建</Action> |
||||
|
<Action ContorllerName="TeamMember" ActionName="Edit" PowerID="CD03200003">修改</Action> |
||||
|
<Action ContorllerName="TeamMember" ActionName="Delete" PowerID="CD03200004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03210000" MenuDes="排班信息" SystemID="MainData" Action="/Schedule/List" Target="url" PowerID="CD03210000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Schedule" ActionName="List" PowerID="CD03210001">查询</Action> |
||||
|
<Action ContorllerName="Schedule" ActionName="Add" PowerID="CD03210002">新建</Action> |
||||
|
<Action ContorllerName="Schedule" ActionName="Edit" PowerID="CD03210003">修改</Action> |
||||
|
<Action ContorllerName="Schedule" ActionName="Delete" PowerID="CD03210004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03650000" MenuDes="工序名称" SystemID="MainData" Action="/WorkCell/List" Target="url" PowerID="CD03650000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WorkCell" ActionName="List" PowerID="CD03650001">查询</Action> |
||||
|
<Action ContorllerName="WorkCell" ActionName="Add" PowerID="CD03650002">新建</Action> |
||||
|
<Action ContorllerName="WorkCell" ActionName="Edit" PowerID="CD03650003">修改</Action> |
||||
|
<Action ContorllerName="WorkCell" ActionName="Delete" PowerID="CD03650004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03660000" MenuDes="工位信息" SystemID="MainData" Action="/WorkLoc/List" Target="url" PowerID="CD03660000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WorkLoc" ActionName="List" PowerID="CD03660001">查询</Action> |
||||
|
<Action ContorllerName="WorkLoc" ActionName="Add" PowerID="CD03660002">新建</Action> |
||||
|
<Action ContorllerName="WorkLoc" ActionName="Edit" PowerID="CD03660003">修改</Action> |
||||
|
<Action ContorllerName="WorkLoc" ActionName="Delete" PowerID="CD03660004">删除</Action> |
||||
|
<Action ContorllerName="WorkLoc" ActionName="SetEquipment" PowerID="CD03660004">配置设备</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03740000" MenuDes="工艺路线" SystemID="MainData" Action="/ProcessRoute/List" Target="url" PowerID="CD03740000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProcessRoute" ActionName="List" PowerID="CD03740001">查询</Action> |
||||
|
<Action ContorllerName="ProcessRoute" ActionName="Add" PowerID="CD03740002">新建</Action> |
||||
|
<Action ContorllerName="ProcessRoute" ActionName="Edit" PowerID="CD03740003">修改</Action> |
||||
|
<Action ContorllerName="ProcessRoute" ActionName="Delete" PowerID="CD03740004">删除</Action> |
||||
|
<Action ContorllerName="ProcessRoute" ActionName="SetProcess" PowerID="CD03740005">工序配置</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03750000" MenuDes="BOM" SystemID="MainData" Action="/Pbom/List" Target="url" PowerID="CD03750000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Pbom" ActionName="List" PowerID="CD03750001">查询</Action> |
||||
|
<Action ContorllerName="Pbom" ActionName="Add" PowerID="CD03750002">新建</Action> |
||||
|
<Action ContorllerName="Pbom" ActionName="Delete" PowerID="CD03750004">删除</Action> |
||||
|
<Action ContorllerName="Pbom" ActionName="PbomConfig" PowerID="CD03750005">配置BOM明细</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="03710000" MenuDes="物料号信息" SystemID="MainData" Action="/Material/List" Target="url" PowerID="CD03710000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Material" ActionName="List" PowerID="CD03710001">查询</Action> |
||||
|
<Action ContorllerName="Material" ActionName="Add" PowerID="CD03710002">新建</Action> |
||||
|
<Action ContorllerName="Material" ActionName="Edit" PowerID="CD03710003">修改</Action> |
||||
|
<Action ContorllerName="Material" ActionName="Delete" PowerID="CD03710004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="03760000" MenuDes="能力矩阵配置" SystemID="MainData" Action="/UserWithMachine/List" Target="url" PowerID="CD03760000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="UserWithMachine" ActionName="List" PowerID="CD03760001">查询</Action> |
||||
|
<Action ContorllerName="UserWithMachine" ActionName="Add" PowerID="CD03760002">添加</Action> |
||||
|
<Action ContorllerName="UserWithMachine" ActionName="Edit" PowerID="CD03760003">修改</Action> |
||||
|
<Action ContorllerName="UserWithMachine" ActionName="Delete" PowerID="CD03760004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="03540000" MenuDes="加工参数设定" SystemID="MainData" Action="/ParameterConfigEntity/List" Target="url" PowerID="CD03540000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ParameterConfigEntity" ActionName="List" PowerID="CD03520001">查询</Action> |
||||
|
<Action ContorllerName="ParameterConfigEntity" ActionName="Add" PowerID="CD03520002">添加</Action> |
||||
|
<Action ContorllerName="ParameterConfigEntity" ActionName="Edit" PowerID="CD03520003">修改</Action> |
||||
|
<Action ContorllerName="ParameterConfigEntity" ActionName="Delete" PowerID="CD03520004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03550000" MenuDes="项目编号" SystemID="MainData" Action="/Project/List" Target="url" PowerID="CD03550000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Project" ActionName="List" PowerID="CD03520001">查询</Action> |
||||
|
<Action ContorllerName="Project" ActionName="Add" PowerID="CD03520002">添加</Action> |
||||
|
<Action ContorllerName="Project" ActionName="Edit" PowerID="CD03520003">修改</Action> |
||||
|
<Action ContorllerName="Project" ActionName="Delete" PowerID="CD03520004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03810000" MenuDes="物料信息绑定关系" SystemID="MainData" Action="/MaterialBinding/List" Target="url" PowerID="CD03810000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MaterialBinding" ActionName="List" PowerID="CD03810001">查询</Action> |
||||
|
<Action ContorllerName="MaterialBinding" ActionName="Add" PowerID="CD03810002">新建</Action> |
||||
|
<Action ContorllerName="MaterialBinding" ActionName="Delete" PowerID="CD03810004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03820000" MenuDes="采集点配置" SystemID="MainData" Action="/Dai/DaiList" Target="url" PowerID="CD03820000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Dai" ActionName="List" PowerID="CD03820001">查询</Action> |
||||
|
<Action ContorllerName="Dai" ActionName="Add" PowerID="CD03820002">添加</Action> |
||||
|
<Action ContorllerName="Dai" ActionName="Edit" PowerID="CD03820003">修改</Action> |
||||
|
<Action ContorllerName="Dai" ActionName="Delete" PowerID="CD03820004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03830000" MenuDes="采集点-状态码配置" SystemID="MainData" Action="/WorkCellState/List" Target="url" PowerID="CD03830000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WorkCellState" ActionName="List" PowerID="CD03830001">查询</Action> |
||||
|
<Action ContorllerName="WorkCellState" ActionName="Add" PowerID="CD03830002">添加</Action> |
||||
|
<Action ContorllerName="WorkCellState" ActionName="Edit" PowerID="CD03830003">修改</Action> |
||||
|
<Action ContorllerName="WorkCellState" ActionName="Delete" PowerID="CD03830004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03840000" MenuDes="物料类型配置" SystemID="MainData" Action="/MaterialClass/List" Target="url" PowerID="CD03840000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="List" PowerID="CD03840001">查询</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Add" PowerID="CD03840002">添加1</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Edit" PowerID="CD03840003">添加2</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Delete" PowerID="CD03840004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03850000" MenuDes="FIS短语字典绑定" SystemID="FJC" Action="/FISPhrase/List" Target="url" PowerID="CD03850000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="FISPhrase" ActionName="List" PowerID="CD03850001">查询</Action> |
||||
|
<Action ContorllerName="FISPhrase" ActionName="Edit" PowerID="CD03850002">修改</Action> |
||||
|
<Action ContorllerName="FISPhrase" ActionName="Sync" PowerID="CD03850003">同步数据</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03860000" MenuDes="采集校验配置" SystemID="FJC" Action="/DAIValidation/List" Target="url" PowerID="CD03860000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="DAIValidation" ActionName="List" PowerID="CD03860001">查询</Action> |
||||
|
<Action ContorllerName="DAIValidation" ActionName="Edit" PowerID="CD03860002">修改</Action> |
||||
|
<Action ContorllerName="DAIValidation" ActionName="Enable" PowerID="CD03860003">启用</Action> |
||||
|
<Action ContorllerName="DAIValidation" ActionName="Disable" PowerID="CD03860004">禁用</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03870000" MenuDes="BZD绑定配置" SystemID="FJC" Action="/BZDConfig/List" Target="url" PowerID="CD03870000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BZDConfig" ActionName="List" PowerID="CD03870001">查询</Action> |
||||
|
<Action ContorllerName="BZDConfig" ActionName="Add" PowerID="CD03870002">新建</Action> |
||||
|
<Action ContorllerName="BZDConfig" ActionName="Edit" PowerID="CD03870003">修改</Action> |
||||
|
<Action ContorllerName="BZDConfig" ActionName="Delete" PowerID="CD03870004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03880000" MenuDes="BZD记录" SystemID="FJC" Action="/BZDRecorder/List" Target="url" PowerID="CD03880000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BZDRecorder" ActionName="List" PowerID="CD03880001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03890000" MenuDes="时间验证" SystemID="FJC" Action="/CHECKTIME/List" Target="url" PowerID="CD03890000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="CHECKTIME" ActionName="List" PowerID="CD03890001">查询</Action> |
||||
|
<Action ContorllerName="CHECKTIME" ActionName="Edit" PowerID="CD03890003">修改</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="03891000" MenuDes="补打记录" SystemID="FJC" Action="/BarCodeReplacement/List" Target="url" PowerID="CD03891000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BarCodeReplacement" ActionName="List" PowerID="CD03891001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="03810000" MenuDes="物料分类信息" SystemID="MainData" Action="/MaterialClass/List" Target="url" PowerID="CD03810000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="03000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="List" PowerID="CD03810001">查询</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Add" PowerID="CD03810002">新建</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Edit" PowerID="CD03810003">修改</Action> |
||||
|
<Action ContorllerName="MaterialClass" ActionName="Delete" PowerID="CD03810004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="02000000" SystemID="Main" MenuDes="计划管理" Action="" PowerID="CD02000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="02010000" SystemID="FJC" MenuDes="FIS计划管理" Action="/FISOrder/List" Target="url" PowerID="CD02010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="FISOrder" ActionName="List" PowerID="CD02010001">查询</Action> |
||||
|
<Action ContorllerName="FISOrder" ActionName="ExportExcel" PowerID="CD02010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="02020000" SystemID="FJC" MenuDes="注塑计划管理" Action="/OrderPlan/List?ORDER_TYPE=INJECT" Target="url" PowerID="CD02020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="List" PowerID="CD02020001">查询</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="Add" PowerID="CD02020002">新建</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="Edit" PowerID="CD02020003">修改</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="Delete" PowerID="CD02020004">删除</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="PutOut" PowerID="CD02020007">发布</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="ImportExcel" PowerID="CD02020005">导入</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="ExportExcel" PowerID="CD02020006">导出</Action> |
||||
|
<Action ContorllerName="OrderPlan" ActionName="TemplateExcel" PowerID="CD02020008">下载模板</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<MenuItem MenuID="02030000" SystemID="FJC" MenuDes="门板计划管理" Action="/DoorPlankPlan/List?ORDER_TYPE=DOORPLANK" Target="url" PowerID="CD02030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="List" PowerID="CD02030001">查询</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="Add" PowerID="CD02030002">添加</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="AddWholeDoor" PowerID="CD02030003">整车添加</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="Edit" PowerID="CD02030004">修改</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="EditDoorPlankPlanSeq" PowerID="CD02030011">修改计划顺序号</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="Insert" PowerID="CD02030005">插单</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="Delete" PowerID="CD02030006">删除</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="PutOut" PowerID="CD02030007">发布</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="ImportExcel" PowerID="CD02030008">导入</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="ExportExcel" PowerID="CD02030009">导出</Action> |
||||
|
<Action ContorllerName="DoorPlankPlan" ActionName="TemplateExcel" PowerID="CD02030010">下载模板</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="02040000" SystemID="FJC" MenuDes="仪表板计划管理" Action="/DashBoardPlan/List?ORDER_TYPE=DASHBOARD" Target="url" PowerID="CD02040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="List" PowerID="CD02040001">查询</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="Add" PowerID="CD02040002">新建</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="Edit" PowerID="CD02040003">修改</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="EditDashBoardPlanSeq" PowerID="CD02040009">修改计划顺序号</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="Delete" PowerID="CD02040004">删除</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="PutOut" PowerID="CD02040007">发布</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="ImportExcel" PowerID="CD02040005">导入</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="ExportExcel" PowerID="CD02040006">导出</Action> |
||||
|
<Action ContorllerName="DashBoardPlan" ActionName="TemplateExcel" PowerID="CD02040008">下载模板</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="02050000" SystemID="FJC" MenuDes="计划操作记录查询" Action="/OrderPlanTrace/List" Target="url" PowerID="CD02050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="02000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="OrderPlanTrace" ActionName="List" PowerID="CD02050001">查询</Action> |
||||
|
<Action ContorllerName="OrderPlanTrace" ActionName="ExportExcel" PowerID="CD02050002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="05000000" SystemID="Main" MenuDes="物料管理" Action="" PowerID="CD05000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05050000" SystemID="FJC" MenuDes="成品数量查询" Action="/MainProductCount/List?MATERIAL_ATTRIBUTE=2" Target="url" PowerID="CD05050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MainProductCount" ActionName="List" PowerID="CD05050001">查询</Action> |
||||
|
<Action ContorllerName="MainProductCount" ActionName="ExportExcel" PowerID="CD05050003">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05040000" SystemID="FJC" MenuDes="在制品数量查询" Action="/WIPProductCount/List" Target="url" PowerID="CD05040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WIPProductCount" ActionName="List" PowerID="CD05040001">查询</Action> |
||||
|
<Action ContorllerName="WIPProductCount" ActionName="ExportExcel" PowerID="CD05040003">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05060000" SystemID="FJC" MenuDes="注塑件数量查询" Action="/PlasticPartCount/List" Target="url" PowerID="CD05060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="PlasticPartCount" ActionName="List" PowerID="CD05040001">查询</Action> |
||||
|
<Action ContorllerName="PlasticPartCount" ActionName="ExportExcel" PowerID="CD05040003">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05030000" SystemID="FJC" MenuDes="不合格品数量查询" Action="/UnQuality/List" Target="url" PowerID="CD05030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="UnQuality" ActionName="List" PowerID="CD05030001">查询</Action> |
||||
|
<Action ContorllerName="UnQuality" ActionName="ExportExcel" PowerID="CD05030002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05100000" SystemID="FJC" MenuDes="库存盘点" Action="/StocktakingManage/List" Target="url" PowerID="CD05100000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="List" PowerID="CD05010001">查询</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="Add" PowerID="CD05010002">新建</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="Edit" PowerID="CD05010003">修改</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="Delete" PowerID="CD05010004">删除</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="PanDetail" PowerID="CD05010005">盘点明细</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="PanCompare" PowerID="CD05010006">盘点对比</Action> |
||||
|
<Action ContorllerName="StocktakingManage" ActionName="CompareResult" PowerID="CD05010007">比对结果</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05110000" SystemID="FJC" MenuDes="入库查询" Action="/ProductIn/List" Target="url" PowerID="CD05110000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductIn" ActionName="List" PowerID="CD05110001">查询</Action> |
||||
|
<Action ContorllerName="ProductIn" ActionName="ExportExcel" PowerID="CD05110003">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="05020000" SystemID="FJC" MenuDes="总成条码替换查询" Action="/MainCodeChange/List" Target="url" PowerID="CD05020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MainCodeChange" ActionName="List" PowerID="CD05020001">查询</Action> |
||||
|
<Action ContorllerName="MainCodeChange" ActionName="ExportExcel" PowerID="CD05020002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="05030000" SystemID="FJC" MenuDes="低储报警信息" Action="/StorageAlarm/List" Target="url" PowerID="CD05030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="05000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="StorageAlarm" ActionName="List" PowerID="CD08040001">查询</Action> |
||||
|
<Action ContorllerName="StorageAlarm" ActionName="ExportExcel" PowerID="CD08040002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="10000000" SystemID="Main" MenuDes="生产执行" Action="" PowerID="CD10000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="10050000" SystemID="FJC" MenuDes="成品信息查询" Action="/ProductEnd/List?MATERIAL_ATTRIBUTE=2" Target="url" PowerID="CD10050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="10000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductEnd" ActionName="List" PowerID="CD10010001">查询</Action> |
||||
|
<Action ContorllerName="ProductEnd" ActionName="ExportExcel" PowerID="CD10010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="10020000" SystemID="FJC" MenuDes="在制品查询" Action="/WIPProduct/List" Target="url" PowerID="CD10020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="10000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WIPProduct" ActionName="List" PowerID="CD10020001">查询</Action> |
||||
|
<Action ContorllerName="WIPProduct" ActionName="ExportExcel" PowerID="CD10020002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="10030000" SystemID="FJC" MenuDes="加工记录查询" Action="/MainOperation/List" Target="url" PowerID="CD10030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="10000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MainOperation" ActionName="List" PowerID="CD10030001">查询</Action> |
||||
|
<Action ContorllerName="MainOperation" ActionName="ExportExcel" PowerID="CD10030002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="10040000" SystemID="FJC" MenuDes="生产进度查询" Action="" Target="url" PowerID="CD10040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="10000000" Seq="1"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="14000000" SystemID="Main" MenuDes="投料管理" Action="" PowerID="CD14000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="14020000" SystemID="FJC" MenuDes="投料操作者设置" Action="/OperatorInfo/List" Target="url" PowerID="CD14020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="OperatorInfo" ActionName="List" PowerID="CD14020001">查询</Action> |
||||
|
<Action ContorllerName="OperatorInfo" ActionName="Add" PowerID="CD14020002">添加</Action> |
||||
|
<Action ContorllerName="OperatorInfo" ActionName="Edit" PowerID="CD14020003">编辑</Action> |
||||
|
<Action ContorllerName="OperatorInfo" ActionName="Delete" PowerID="CD14020004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<!--<MenuItem MenuID="14010000" SystemID="FJC" MenuDes="注塑投料查询" Action="/InJectionRecorder/List?recordtype=1" Target="url" PowerID="CD14010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="List" PowerID="CD14010001">查询</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Update" PowerID="CD14010002">修改批次号</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Delete" PowerID="CD14010003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
<MenuItem MenuID="14030000" SystemID="FJC" MenuDes="搪塑投料查询" Action="/InJectionRecorder/List?recordtype=0" Target="url" PowerID="CD14030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="List" PowerID="CD14030001">查询</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Update" PowerID="CD14030002">修改批次号</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Delete" PowerID="CD14030003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="14040000" SystemID="FJC" MenuDes="浇注投料查询" Action="/InJectionRecorder/List?recordtype=9" Target="url" PowerID="CD14040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="List" PowerID="CD14040001">查询</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Update" PowerID="CD14040002">修改批次号</Action> |
||||
|
<Action ContorllerName="InJectionRecorder" ActionName="Delete" PowerID="CD14040003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="14050000" SystemID="FJC" MenuDes="料筒信息" Action="/BucketInfo/List" Target="url" PowerID="CD14050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BucketInfo" ActionName="List" PowerID="CD14050001">查询</Action> |
||||
|
<Action ContorllerName="BucketInfo" ActionName="Update" PowerID="CD14050002">修改</Action> |
||||
|
<Action ContorllerName="BucketInfo" ActionName="Delete" PowerID="CD14050003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="14050000" SystemID="FJC" MenuDes="料筒绑定" Action="/BucketMaterial/List" Target="url" PowerID="CD14050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BucketMaterial" ActionName="List" PowerID="CD14050001">查询</Action> |
||||
|
<Action ContorllerName="BucketMaterial" ActionName="Update" PowerID="CD14050002">修改</Action> |
||||
|
<Action ContorllerName="BucketMaterial" ActionName="Delete" PowerID="CD14050003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="14080000" SystemID="FJC" MenuDes="零件号绑定" Action="/BucketMaterialClass/List" Target="url" PowerID="CD14080000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="BucketMaterialClass" ActionName="List" PowerID="CD14080001">查询</Action> |
||||
|
<Action ContorllerName="BucketMaterialClass" ActionName="Update" PowerID="CD14080002">修改</Action> |
||||
|
<Action ContorllerName="BucketMaterialClass" ActionName="Delete" PowerID="CD14080003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="14060000" SystemID="FJC" MenuDes="注塑投料查询" Action="/RawMaterial/List" Target="url" PowerID="CD14060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="RawMaterial" ActionName="List" PowerID="CD14060001">查询</Action> |
||||
|
<Action ContorllerName="RawMaterial" ActionName="Update" PowerID="CD14060002">修改批次号</Action> |
||||
|
<Action ContorllerName="RawMaterial" ActionName="Delete" PowerID="CD14060003">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="14070000" SystemID="FJC" MenuDes="注塑打印记录" Action="/RawMaterialRecord/List" Target="url" PowerID="CD14070000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="14000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="RawMaterialRecord" ActionName="List" PowerID="CD14070001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<!--<MenuItem MenuID="15000000" SystemID="Main" MenuDes="能源管理" Action="" PowerID="CD15000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="15010000" SystemID="FJC" MenuDes="用量统计" Action="/EmMeterReadings/List" Target="url" PowerID="CD15010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="15000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="EmMeterReadings" ActionName="List" PowerID="CD15010001">查询</Action> |
||||
|
<Action ContorllerName="EmMeterReadings" ActionName="Count" PowerID="CD15010002">统计</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="15020000" SystemID="FJC" MenuDes="能源表维护" Action="/Meter/List" Target="url" PowerID="CD15020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="15000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Meter" ActionName="List" PowerID="CD15020001">查询</Action> |
||||
|
<Action ContorllerName="Meter" ActionName="Add" PowerID="CD15020002">添加</Action> |
||||
|
<Action ContorllerName="Meter" ActionName="Edit" PowerID="CD15020003">修改</Action> |
||||
|
<Action ContorllerName="Meter" ActionName="Delete" PowerID="CD15020004">删除</Action> |
||||
|
<Action ContorllerName="Meter" ActionName="MeterReadingsConfig" PowerID="CD15020005">能源明细操作</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="16000000" SystemID="Main" MenuDes="Andon呼叫" Action="" PowerID="CD16000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="16010000" SystemID="FJC" MenuDes="呼叫查询" Action="/AndonCallLog/List" Target="url" PowerID="CD16010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="16000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="AndonCallLog" ActionName="List" PowerID="CD16010001">查询</Action> |
||||
|
<Action ContorllerName="AndonCallLog" ActionName="ExportExcel" PowerID="CD16010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="16020000" SystemID="FJC" MenuDes="呼叫类型" Action="/AndonCallReason/List" Target="url" PowerID="CD16020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="16000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="AndonCallReason" ActionName="List" PowerID="CD16020001">查询</Action> |
||||
|
<Action ContorllerName="AndonCallReason" ActionName="Add" PowerID="CD16020002">新建</Action> |
||||
|
<Action ContorllerName="AndonCallReason" ActionName="Edit" PowerID="CD16020003">修改</Action> |
||||
|
<Action ContorllerName="AndonCallReason" ActionName="Delete" PowerID="CD16020004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="16030000" SystemID="FJC" MenuDes="维修报警" Action="/TempCallLog/List?CALL_TYPE=0" Target="url" PowerID="CD16030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="16000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="TempCallLog" ActionName="List" PowerID="CD16030001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="16040000" SystemID="FJC" MenuDes="质量报警" Action="/TempCallLog/List?CALL_TYPE=1" Target="url" PowerID="CD16040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="16000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="TempCallLog" ActionName="List" PowerID="CD16040001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="16050000" SystemID="FJC" MenuDes="物料报警" Action="/TempCallLog/List?CALL_TYPE=2" Target="url" PowerID="CD16050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="16000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="TempCallLog" ActionName="List" PowerID="CD16050001">查询</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="17000000" SystemID="Main" MenuDes="发运管理" Action="" PowerID="CD01700000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="17010000" SystemID="FJC" MenuDes="FIS发货信息" Action="/FISOrderSend/List" Target="url" PowerID="CD17010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="17000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="FISOrederSend" ActionName="List" PowerID="CD17010001">查询</Action> |
||||
|
<Action ContorllerName="FISOrederSend" ActionName="ExportExcel" PowerID="CD17010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="17020000" SystemID="FJC" MenuDes="贴车单信息" Action="/SendPlanRecord/List" Target="url" PowerID="CD17020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="17000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="SendPlanRecord" ActionName="List" PowerID="CD17020001">查询</Action> |
||||
|
<Action ContorllerName="SendPlanRecord" ActionName="ShowWindow" PowerID="CD17020002">查看明细</Action> |
||||
|
<Action ContorllerName="SendPlanRecord" ActionName="ExportExcel" PowerID="CD17020003">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="17030000" SystemID="FJC" MenuDes="计划外出库查询" Action="/ProductOut/List" Target="url" PowerID="CD17030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="17000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductOut" ActionName="List" PowerID="CD17030001">查询</Action> |
||||
|
<Action ContorllerName="ProductOut" ActionName="ExportExcel" PowerID="CD17030002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="18000000" SystemID="Main" MenuDes="设备管理" Action="" PowerID="CD18000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="18010000" SystemID="FJC" MenuDes="设备信息" Action="/MachineInfo/List" Target="url" PowerID="CD18010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="18000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MachineInfo" ActionName="List" PowerID="CD18010001">查询</Action> |
||||
|
<Action ContorllerName="MachineInfo" ActionName="Add" PowerID="CD18010002">新建</Action> |
||||
|
<Action ContorllerName="MachineInfo" ActionName="Edit" PowerID="CD18010003">修改</Action> |
||||
|
<Action ContorllerName="MachineInfo" ActionName="Delete" PowerID="CD18010004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="18020000" SystemID="FJC" MenuDes="模具管理" Action="/Mould/List" Target="url" PowerID="CD18020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="18000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="Mould" ActionName="List" PowerID="CD18020001">查询</Action> |
||||
|
<Action ContorllerName="Mould" ActionName="Add" PowerID="CD18020002">新建</Action> |
||||
|
<Action ContorllerName="Mould" ActionName="Edit" PowerID="CD18020003">修改</Action> |
||||
|
<Action ContorllerName="Mould" ActionName="Delete" PowerID="CD18020004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="18030000" SystemID="FJC" MenuDes="模具统计" Action="/UsageLog/List" Target="url" PowerID="CD18030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="18000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="UsageLog" ActionName="List" PowerID="CD18030001">查询</Action> |
||||
|
<Action ContorllerName="UsageLog" ActionName="Count" PowerID="CD18030002">统计</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<!--<MenuItem MenuID="01804000" SystemID="FJC" MenuDes="设备维护记录" Action="/EquipMentRecord/List" Target="url" PowerID="CD01803000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="01800000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="EquipMentRecord" ActionName="List" PowerID="CD01804001">查询</Action> |
||||
|
<Action ContorllerName="EquipMentRecord" ActionName="ExportExcel" PowerID="CD01804002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
|
||||
|
<MenuItem MenuID="06000000" SystemID="Main" MenuDes="质量管理" Action="" PowerID="CD06000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="06040000" SystemID="FJC" MenuDes="不合格品记录查询" Action="/MendRecorder/List" Target="url" PowerID="CD06040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="MendRecorder" ActionName="List" PowerID="CD06040001">查询</Action> |
||||
|
<Action ContorllerName="MendRecorder" ActionName="ExportExcel" PowerID="CD06040002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="06050000" SystemID="FJC" MenuDes="报废件记录查询" Action="/ScrapRecord/List" Target="url" PowerID="CD06050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ScrapRecorder" ActionName="List" PowerID="CD06050001">查询</Action> |
||||
|
<Action ContorllerName="ScrapRecorder" ActionName="Delete" PowerID="CD06050003">删除</Action> |
||||
|
<Action ContorllerName="ScrapRecorder" ActionName="ExportExcel" PowerID="CD06050002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<MenuItem MenuID="06010000" SystemID="FJC" MenuDes="产品档案" Action="/ProductArchives/Index" Target="url" PowerID="CD06010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductArchives" ActionName="GetExportParameter" PowerID="CD06010001">查询</Action> |
||||
|
<Action ContorllerName="ProductArchives" ActionName="ExportExcelNew" PowerID="CD06010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="06030000" SystemID="FJC" MenuDes="加工参数查询" Action="/ParameterQuery/Index" Target="url" PowerID="CD06030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ParameterQuery" ActionName="Index" PowerID="CD06030001">查询</Action> |
||||
|
<Action ContorllerName="ParameterQuery" ActionName="ExportParameter" PowerID="CD06030002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="06020000" SystemID="FJC" MenuDes="替换件查询" Action="/ProductReplace/List" Target="url" PowerID="CD06020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductReplace" ActionName="List" PowerID="CD06020001">查询</Action> |
||||
|
<Action ContorllerName="ProductReplace" ActionName="ExportExcel" PowerID="CD06020002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="06060000" SystemID="FJC" MenuDes="抽检查询" Action="/ProductCheck/List" Target="url" PowerID="CD06060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProductCheck" ActionName="List" PowerID="CD06060001">查询</Action> |
||||
|
<Action ContorllerName="ProductCheck" ActionName="ExportFile" PowerID="CD06060002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="06070000" MenuDes="缺陷信息" SystemID="MainData" Action="/DefectDict/List" Target="url" PowerID="CD06070000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="06000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="DefectDict" ActionName="List" PowerID="CD06070001">查询</Action> |
||||
|
<Action ContorllerName="DefectDict" ActionName="Add" PowerID="CD06070002">添加</Action> |
||||
|
<Action ContorllerName="DefectDict" ActionName="Edit" PowerID="CD060730003">修改</Action> |
||||
|
<Action ContorllerName="DefectDict" ActionName="Delete" PowerID="CD06070004">删除</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<MenuItem MenuID="13000000" SystemID="Main" MenuDes="统计分析" Action="" PowerID="CD13000000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="" Seq="2"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13010000" SystemID="MESReport" MenuDes="生产日报" Action="/LineDWQTYCount/DWQTYList" Target="url" PowerID="CD13010000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="LineDWQTYCount" ActionName="GetList" PowerID="CD13010001">查询</Action> |
||||
|
<Action ContorllerName="LineDWQTYCount" ActionName="ExportExcel" PowerID="CD13010002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13020000" SystemID="MESReport" MenuDes="生产发运统计" Action="/ShipmentCount/QTYShipmentCount" Target="url" PowerID="CD13020000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ShipmentCount" ActionName="QTYShipmentCount" PowerID="CD13020001">查询</Action> |
||||
|
<Action ContorllerName="ShipmentCount" ActionName="ExportExcel" PowerID="CD13020002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13030000" SystemID="MESReport" MenuDes="合格率分析" Action="/StandardRateCount/QTYStandardRate" Target="url" PowerID="CD13030000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="StandardRateCount" ActionName="GetTrendData" PowerID="CD13030001">查询</Action> |
||||
|
<Action ContorllerName="StandardRateCount" ActionName="ExportBanCi" PowerID="CD13030002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="13150000" SystemID="MESReport" MenuDes="不合格率分析" Action="/StandardNotRateCount/QTYStandardNotRate" Target="url" PowerID="CD13031000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="StandardNotRateCount" ActionName="GetTrendData" PowerID="CD13150001">查询</Action> |
||||
|
<Action ContorllerName="StandardNotRateCount" ActionName="ExportExcel" PowerID="CD13150002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<MenuItem MenuID="13040000" SystemID="MESReport" MenuDes="生产统计" Action="/QTYInfoCount/QTYInfoCountView" Target="url" PowerID="CD13040000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="QTYInfoCount" ActionName="GetTrendData" PowerID="CD13040001">查询</Action> |
||||
|
<Action ContorllerName="QTYInfoCount" ActionName="ExportExcel" PowerID="CD13040002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13050000" SystemID="MESReport" MenuDes="生产完成率分析" Action="/QTYCompletionRateCount/QTYCompletionRateCountView" Target="url" PowerID="CD13050000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="QTYCompletionRateCount" ActionName="QTYCompletionRateCountView" PowerID="CD13050001">查询</Action> |
||||
|
<Action ContorllerName="QTYCompletionRateCount" ActionName="ExportExcel" PowerID="CD13050002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13090000" SystemID="MESReport" MenuDes="返修率统计" Action="/RepairRateCount/Index" Target="url" PowerID="CD13090000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="RepairRateCount" ActionName="Index" PowerID="CD13090001">查询</Action> |
||||
|
<Action ContorllerName="RepairRateCount" ActionName="ExportExcel" PowerID="CDLineDWQTYCount02">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13060000" SystemID="MESReport" MenuDes="废品率统计" Action="/WasteRateCount/WasteRateCountView" Target="url" PowerID="CD13060000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="QTYCompletionRateCountView" PowerID="CD13060001">查询</Action> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="ExportBanCi" PowerID="CD13060002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13160000" SystemID="MESReport" MenuDes="缺陷统计" Action="/WasteRateCount/MenderReasonCountView" Target="url" PowerID="CD13160000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="MenderReasonCountView" PowerID="CD13160001">查询</Action> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="ExportBanCi" PowerID="CD13160002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<!--<MenuItem MenuID="13170000" SystemID="MESReport" MenuDes="报废趋势统计" Action="/WasteRateCount/MenderTrendCountView" Target="url" PowerID="CD13170000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="MenderTrendCountView" PowerID="CD131701001">查询</Action> |
||||
|
<Action ContorllerName="WasteRateCount" ActionName="ExportBanCi" PowerID="CD13170002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<!--<MenuItem MenuID="13070000" SystemID="MESReport" MenuDes="设备利用率分析" Action="/EqueUseCount/Index" Target="url" PowerID="CD13070000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="EqueUseCount" ActionName="Index" PowerID="CD13070001">查询</Action> |
||||
|
<Action ContorllerName="EqueUseCount" ActionName="ExportBanCi" PowerID="CD13070002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13080000" SystemID="MESReport" MenuDes="设备用电分析" Action="/EquConsumeCount/Index" Target="url" PowerID="CD13080000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="EquConsumeCount" ActionName="Index" PowerID="CD13080001">查询</Action> |
||||
|
<Action ContorllerName="EquConsumeCount" ActionName="ExportExcel" PowerID="CD13080002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
<!--<MenuItem MenuID="13100000" SystemID="MESReport" MenuDes="节拍统计" Action="/ProduceCycleTime/Index" Target="url" PowerID="CD13100000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProduceCycleTime" ActionName="Index" PowerID="CD13100001">查询</Action> |
||||
|
<Action ContorllerName="ProduceCycleTime" ActionName="ExportExcel" PowerID="CD13100002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
|
||||
|
<!--<MenuItem MenuID="13110000" SystemID="MESReport" MenuDes="班次对比分析" Action="/LineShiftQTYCount/QTYTrendList" Target="url" PowerID="CD13110000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="LineShiftQTYCount" ActionName="GetTrendData" PowerID="CD13110001">查询</Action> |
||||
|
<Action ContorllerName="LineShiftQTYCount" ActionName="ExportExcel" PowerID="CD13110002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<!--<MenuItem MenuID="13120000" SystemID="MESReport" MenuDes="班次趋势分析" Action="/LineShiftQTYCount/QTYQuShi" Target="url" PowerID="CD13120000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="LineShiftQTYCount" ActionName="QTYQuShi" PowerID="CD13120001">查询</Action> |
||||
|
<Action ContorllerName="LineShiftQTYCount" ActionName="ExportBanCi" PowerID="CD13120002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<MenuItem MenuID="13130000" SystemID="MESReport" MenuDes="安东呼叫类型统计" Action="/AnDongCall/Index" Target="url" PowerID="CD13130000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="AnDongCallBLL" ActionName="Index" PowerID="CD13130001">查询</Action> |
||||
|
<Action ContorllerName="AnDongCallBLL" ActionName="ExportExcel" PowerID="CD13130002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
<MenuItem MenuID="13140000" SystemID="MESReport" MenuDes="平均故障恢复时间" Action="/AnDongRepairTimeAvg/List" Target="url" PowerID="CD13140000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="AnDongRepairTimeAvg" ActionName="List" PowerID="CD13140001">查询</Action> |
||||
|
<Action ContorllerName="AnDongRepairTimeAvg" ActionName="ExportExcel" PowerID="CD13140002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem> |
||||
|
|
||||
|
<!--<MenuItem MenuID="13150000" SystemID="MESReport" MenuDes="班次节拍统计" Action="/ProduceCycleTimeShift/Index" Target="url" PowerID="CD13101000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
<Action ContorllerName="ProduceCycleTimeShift" ActionName="Index" PowerID="CD13150001">查询</Action> |
||||
|
<Action ContorllerName="ProduceCycleTimeShift" ActionName="ExportExcel" PowerID="CD13150002">导出</Action> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
<!--<MenuItem MenuID="13112000" SystemID="MESReport" MenuDes="视频监控" Action="/MSCamera/Index" Target="url" PowerID="CD13112000" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
</MenuItem>--> |
||||
|
<!--<MenuItem MenuID="13190000" SystemID="MESReport" MenuDes="统计图样例" Action="/EChartExample/EChartExampleList" Target="url" PowerID="CDEChartExample" Visible="true" Ico="../../Content/Menu/images/ico/2.gif" SuperID="13000000" Seq="1"> |
||||
|
<Actions> |
||||
|
</Actions> |
||||
|
</MenuItem>--> |
||||
|
</MenuList> |
@ -0,0 +1,934 @@ |
|||||
|
using System; |
||||
|
using System.Text; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Windows.Forms; |
||||
|
using QM.Common; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.BLL.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using System.Linq; |
||||
|
using QMAPP.WinForm.Forms.Operation; |
||||
|
using System.IO.Ports; |
||||
|
using System.Management; |
||||
|
using System.Threading; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号:M11-2 |
||||
|
/// 作 用:搪塑条码打印 |
||||
|
/// 作 者:王庆男 |
||||
|
/// 编写日期:2015年05月28日 |
||||
|
///</summary> |
||||
|
public partial class SlushMoldingPrintForOldNewForm : Form |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 车型,A:B9车型,B:Q5车型 |
||||
|
/// </summary> |
||||
|
public string CarType { set; get; } |
||||
|
|
||||
|
List<MoldConfig> moldConfigList; |
||||
|
|
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 称重记录 |
||||
|
/// </summary> |
||||
|
public List<TSWeighRecore> List_tSWeighRecores = new List<TSWeighRecore>(); |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 新建 |
||||
|
/// </summary> |
||||
|
public SlushMoldingPrintForOldNewForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
btnCommSend.Enabled = true; |
||||
|
serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived); |
||||
|
frmMain_Load(); |
||||
|
moldConfigList = new List<MoldConfig>(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体初始化 |
||||
|
/// </summary> |
||||
|
private void InitForm() |
||||
|
{ |
||||
|
//预留方法,用于B9\Q5功能差异 |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体加载 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void Form_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
InitForm(); |
||||
|
|
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
List<MoldConfig> recorders = null; |
||||
|
recorders = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
recorders = recorders.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
moldConfigList = recorders; |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
BasicData basicData = new BasicData(); |
||||
|
//加载搪塑设备列表 |
||||
|
//this.comMachineCode.DataSource = basicData.GetMachineInfoList(new string[] { EnumGeter.ProcessType.tangsu.GetHashCode().ToString() }, true); |
||||
|
//this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
//this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
//this.comMachineCode.SelectedIndex = 1; |
||||
|
//this.comMachineCode.Enabled = false; |
||||
|
|
||||
|
var machinelist = basicData.GetMachineInfoAndModelList(new string[] { }, true); |
||||
|
this.comMachineCode.DataSource = machinelist; |
||||
|
this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
|
||||
|
if (ClientContext.MachineInfo != null && !string.IsNullOrEmpty(ClientContext.MachineInfo.PID)) |
||||
|
{ |
||||
|
this.comMachineCode.SelectedValue = ClientContext.MachineInfo.MACHINECODDE; |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//颜色 |
||||
|
this.comColor.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.COLOR.ToString()); |
||||
|
this.comColor.DisplayMember = "VALUE"; |
||||
|
this.comColor.ValueMember = "KEY"; |
||||
|
this.comColor.SelectedValue = "1"; |
||||
|
//this.comColor.Enabled = false; |
||||
|
////AB腔 |
||||
|
this.comPosition.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.CAVITYTYPE.ToString()); |
||||
|
this.comPosition.DisplayMember = "VALUE"; |
||||
|
this.comPosition.ValueMember = "KEY"; |
||||
|
//this.comPosition.SelectedIndex = 0; |
||||
|
//this.comPosition.Enabled = false; |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text)) |
||||
|
{ |
||||
|
this.dtpDate.Text = DateTime.Now.ToString(); |
||||
|
} |
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
|
||||
|
#region 打印模板拷贝 |
||||
|
|
||||
|
PrintTempleCopyClass printClass = new PrintTempleCopyClass(); |
||||
|
printClass.CopyPrintTemple("SlushMoldingPrintForOldForm"); |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
|
||||
|
#region 设置模架号 |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
private void SetMouldStation() |
||||
|
{ |
||||
|
this.cBoxModelCode.DisplayMember = "VALUE"; |
||||
|
this.cBoxModelCode.ValueMember = "KEY"; |
||||
|
List<object> cBoxModelCodeList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
cBoxModelCodeList.Add(new { VALUE = m.MOLDVALUE, KEY = m.MOLDVALUE }); |
||||
|
} |
||||
|
this.cBoxModelCode.DataSource = cBoxModelCodeList; |
||||
|
this.cBoxModelCode.SelectedIndex = 0; |
||||
|
cBoxModelCode.Enabled = false; |
||||
|
|
||||
|
|
||||
|
this.comMouldNumber.DisplayMember = "VALUE"; |
||||
|
this.comMouldNumber.ValueMember = "KEY"; |
||||
|
List<object> comMouldNumberList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
comMouldNumberList.Add(new { VALUE = m.MOLDSTATION, KEY = m.MOLDSTATION }); |
||||
|
} |
||||
|
this.comMouldNumber.DataSource = comMouldNumberList; |
||||
|
this.comMouldNumber.SelectedIndex = 0; |
||||
|
|
||||
|
//判断是否有正在使用的模腔配置信息 |
||||
|
if (moldConfigList.Count(o => o.USED == 1) > 0) |
||||
|
{ |
||||
|
//获取该对象 |
||||
|
MoldConfig m = moldConfigList.First(o => o.USED == 1); |
||||
|
//设置模架选择项 |
||||
|
comMouldNumber.SelectedValue = m.MOLDSTATION; |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体保存事件 |
||||
|
/// <summary> |
||||
|
/// 窗体保存事件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbSave_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string message = this.ErrorCheck(); |
||||
|
if (!string.IsNullOrEmpty(message)) |
||||
|
{ |
||||
|
this.ErrorMessage.Text = message; |
||||
|
return; |
||||
|
} |
||||
|
List<Product> listRecorder = new List<Product>(); |
||||
|
//窗体数据校验 |
||||
|
//老搪塑只出黑色表皮,模腔号2 为高配B腔 模腔号3 为低配A腔,老搪塑只有一套模具,固定即可 |
||||
|
//搪塑机 |
||||
|
MachineInfo machineInfo = this.comMachineCode.SelectedItem as MachineInfo; |
||||
|
|
||||
|
#region 加载保存信息 |
||||
|
//for (int i = 0; i < 2; i++)//一次出2个码 |
||||
|
//{ |
||||
|
//零件属性 |
||||
|
Product recorder = new Product(); |
||||
|
ProductAttribute productAttribute = new ProductAttribute(); |
||||
|
//搪塑机编号 |
||||
|
productAttribute.VAL1 = machineInfo.MACHINENUM; |
||||
|
//产品类型(车型)成都固定 |
||||
|
productAttribute.VAL2 = "V"; |
||||
|
//高低配 成都无,且固定 |
||||
|
productAttribute.VAL3 = "B"; |
||||
|
//颜色 |
||||
|
productAttribute.VAL4 = this.comColor.SelectedValue.ToString(); |
||||
|
|
||||
|
string[] cb = new string[] { }; |
||||
|
if (!string.IsNullOrEmpty(this.cBoxModelCode.Text)) |
||||
|
{ |
||||
|
cb = this.cBoxModelCode.Text.Split('+'); |
||||
|
} |
||||
|
if (cb.Length <= 0) |
||||
|
{ |
||||
|
MessageBox.Show("模腔出错!"); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
//腔 |
||||
|
|
||||
|
|
||||
|
if (this.comPosition.Text == "搪塑B腔")//第一个为模腔号2 |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "B"; |
||||
|
|
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[0].PadLeft(2, '0'); |
||||
|
} |
||||
|
else if (this.comPosition.Text == "搪塑A腔") |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "A"; |
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[1].PadLeft(2, '0'); |
||||
|
} |
||||
|
|
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text.Trim())) |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(DateTime.Now).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(this.dtpDate.Text.Trim()).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
|
||||
|
recorder.MACHINECODDE = machineInfo.MACHINECODDE; |
||||
|
recorder.MACHINENAME = machineInfo.MACHINENAME; |
||||
|
recorder.PRODUCTSOURCE = EnumGeter.PRODUCTSOURCE.SELFMADE.GetHashCode().ToString(); |
||||
|
recorder.PRODUCTTYPE = EnumGeter.ProductType.biaopi.GetHashCode().ToString(); |
||||
|
|
||||
|
////添加加物料号 |
||||
|
//QMAPP.ServicesAgent.ServiceAgent agents = ClientContext.GetServiceAgent(); |
||||
|
//DataResult<string> materialcode = agents.InvokeServiceFunction<DataResult<string>>(B9BasicService.MaterialCodeBLL_GetMaterialCode.ToString(), productAttribute.VAL2); |
||||
|
//recorder.MATERIAL_CODE = materialcode.Result.ToString(); |
||||
|
|
||||
|
recorder.STATUS = EnumGeter.PRODUCTSTAUTS.QUALIFIED.GetHashCode().ToString(); |
||||
|
recorder.CURRENTPROCESS = EnumGeter.ProcessType.lengdaoruohua.GetHashCode().ToString(); |
||||
|
//ToDo:选择生产线 |
||||
|
//成都固定生产线 |
||||
|
recorder.PRODUCELINE = "IPVW371"; |
||||
|
|
||||
|
recorder.OUTFLAG = EnumGeter.PRODUCTOUTFLAG.INLIBRARY.GetHashCode().ToString(); |
||||
|
recorder.USINGSTATE = EnumGeter.PRODUCTUSESTATE.UNUSED.GetHashCode().ToString(); |
||||
|
recorder.PRODUCESHIFTTCODE = ClientContext.produceShift.PRODUCESHIFTTCODE; |
||||
|
recorder.PRODUCESHIFTNAME = ClientContext.produceShift.PRODUCESHIFTNAME; |
||||
|
recorder.CAPACITY = 1; |
||||
|
recorder.USINGCOUNT = 0; |
||||
|
recorder.PRODUCTATTRIBUTE = productAttribute; |
||||
|
recorder.AddM = this.cbM.Checked; |
||||
|
listRecorder.Add(recorder); |
||||
|
//} |
||||
|
|
||||
|
#region 保存 |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataResult<List<PrintCode>> result = agent.InvokeServiceFunction<DataResult<List<PrintCode>>>(B9BasicService.ProductBLL_InsertListEpidermis.ToString(), listRecorder); |
||||
|
|
||||
|
//保存成功 |
||||
|
if (result.IsSuccess) |
||||
|
{ |
||||
|
|
||||
|
#region 打印条码 |
||||
|
|
||||
|
this.DialogResult = System.Windows.Forms.DialogResult.OK; |
||||
|
string barCode = result.Result.ToString(); |
||||
|
foreach (PrintCode item in result.Result) |
||||
|
{ |
||||
|
QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo(); |
||||
|
ll.BarCode = item.MAINCODE + ",*" + item.PRODUCTCODE + "*" + "," + item.COLOR_CODE; |
||||
|
QM.Assist.PrintUtil.LabelList2.Add(ll); |
||||
|
|
||||
|
|
||||
|
//创建新行 |
||||
|
var row = new DataGridViewRow(); |
||||
|
if (DGView.Rows.Count == 0) |
||||
|
{ |
||||
|
var index = this.DGView.Rows.Add(); |
||||
|
row = DGView.Rows[index]; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.DGView.Rows.InsertCopy(0, 0); |
||||
|
row = DGView.Rows[0]; |
||||
|
} |
||||
|
//对datagridview赋值 |
||||
|
row.Cells["MAINCODE"].Value = item.MAINCODE; |
||||
|
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["CREATETIME"].Value = DateTime.Now; |
||||
|
if (DGView.Rows.Count > 200) |
||||
|
{ |
||||
|
DGView.Rows.RemoveAt(200); |
||||
|
} |
||||
|
|
||||
|
#region 保存称重记录 |
||||
|
|
||||
|
btnCommSend_Click(sender, e); //发送信号 |
||||
|
|
||||
|
|
||||
|
var Entity = new TSWeighRecore(); |
||||
|
Entity.ProductCode = item.PRODUCTCODE; |
||||
|
Entity.PColour = item.COLOR_CODE; |
||||
|
Entity.MATERIAL_CODE = item.MAINCODE; |
||||
|
|
||||
|
List_tSWeighRecores.Add(Entity); |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil(); |
||||
|
pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "temPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "dataPath"].ToString |
||||
|
()); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 重新设置当前使用和列表信息 |
||||
|
|
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
|
||||
|
#region 重新设置当前使用 |
||||
|
|
||||
|
|
||||
|
DataResult updateresult = agent.InvokeServiceFunction<DataResult>(B9BasicService.MoldConfigBLL_UpdateNextUsed.ToString(), new MoldConfig() { MOLDSTATION = moldStation }); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
moldConfigList = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
moldConfigList = moldConfigList.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
|
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
//MessageBox.Show("打印成功!"); |
||||
|
|
||||
|
this.ErrorMessage.Text = ""; |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show(result.Msg); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体关闭 |
||||
|
/// <summary> |
||||
|
/// 窗体关闭 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 错误检测 |
||||
|
///<summary> |
||||
|
///错误检测 |
||||
|
///</summary> |
||||
|
///<returns></returns> |
||||
|
private string ErrorCheck() |
||||
|
{ |
||||
|
#region |
||||
|
string strMessage = ""; |
||||
|
//判断条码是否为空 |
||||
|
|
||||
|
////搪塑设备 |
||||
|
if (this.comMachineCode.SelectedValue == null || this.comMachineCode.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.SlushMachineNullValidate + "\r\n"; |
||||
|
} |
||||
|
////产品类别 |
||||
|
//if (this.comProType.SelectedValue == null || this.comProType.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ProductTypeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//颜色 |
||||
|
if (this.comColor.SelectedValue == null || this.comColor.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.ColorNullValidate + "\r\n"; |
||||
|
} |
||||
|
////高低配 |
||||
|
//if (this.comHOrL.SelectedValue == null || this.comHOrL.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.HLNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//腔 |
||||
|
if (this.comPosition.SelectedValue == null || this.comPosition.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.PositionNullValidate + "\r\n"; |
||||
|
} |
||||
|
////模腔号 |
||||
|
//if (this.cBoxModelCode.Text == null || this.cBoxModelCode.Text == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ModelCodeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
|
||||
|
return strMessage; |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void comMouldNumber_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
MoldConfig m = moldConfigList.First(o => o.MOLDSTATION == moldStation); |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <param name="field"></param> |
||||
|
/// <returns></returns> |
||||
|
public object GetPropertyValue(object info, string field) |
||||
|
{ |
||||
|
if (info == null) return null; |
||||
|
Type t = info.GetType(); |
||||
|
IEnumerable<System.Reflection.PropertyInfo> property = from pi in t.GetProperties() where pi.Name.ToLower() == field.ToLower() select pi; |
||||
|
return property.First().GetValue(info, null); |
||||
|
} |
||||
|
|
||||
|
#region 锁定解锁 |
||||
|
/// <summary> |
||||
|
/// 锁定解锁 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void lblLock_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (this.lblLock.Tag.ToString().Equals("0")) |
||||
|
{ |
||||
|
LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
LockType(true); |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 设备和类别锁定 |
||||
|
/// <summary> |
||||
|
/// 设备和类别锁定 |
||||
|
/// </summary> |
||||
|
/// <param name="lockFlag"></param> |
||||
|
private void LockType(bool lockFlag) |
||||
|
{ |
||||
|
this.comMachineCode.Enabled = lockFlag; |
||||
|
//this.comProductType.Enabled = lockFlag; |
||||
|
if (lockFlag) |
||||
|
{ |
||||
|
|
||||
|
this.lblLock.Text = "锁定工位"; |
||||
|
this.lblLock.Tag = "0"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"]; |
||||
|
System.IO.File.WriteAllText(locationfile, this.comMachineCode.SelectedValue.ToString()); |
||||
|
this.lblLock.Text = "解锁工位"; |
||||
|
this.lblLock.Tag = "1"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="myRtb"></param> |
||||
|
/// <param name="strTemp"></param> |
||||
|
public delegate void MyInitDelegate(RichTextBox myRtb, string strTemp); |
||||
|
public void DelegateInitMethod(RichTextBox myRtb, string strTemp) |
||||
|
{ |
||||
|
myRtb.AppendText(strTemp + System.Environment.NewLine); |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 所有的串口类型 |
||||
|
/// </summary> |
||||
|
public enum HardwareEnum |
||||
|
{ |
||||
|
Win32_Processor, |
||||
|
Win32_PhysicalMemory, |
||||
|
Win32_Keyboard, |
||||
|
Win32_PointingDevice, |
||||
|
Win32_FloppyDrive, |
||||
|
Win32_DiskDrive, |
||||
|
Win32_CDROMDrive, |
||||
|
Win32_BaseBoard, |
||||
|
Win32_BIOS, |
||||
|
Win32_ParallelPort, |
||||
|
Win32_SerialPort, |
||||
|
Win32_SerialPortConfiguration, |
||||
|
Win32_SoundDevice, |
||||
|
Win32_SystemSlot, |
||||
|
Win32_USBController, |
||||
|
Win32_NetworkAdapter, |
||||
|
Win32_NetworkAdapterConfiguration, |
||||
|
Win32_Printer, |
||||
|
Win32_PrinterConfiguration, |
||||
|
Win32_PrintJob, |
||||
|
Win32_TCPIPPrinterPort, |
||||
|
Win32_POTSModem, |
||||
|
Win32_POTSModemToSerialPort, |
||||
|
Win32_DesktopMonitor, |
||||
|
Win32_DisplayConfiguration, |
||||
|
Win32_DisplayControllerConfiguration, |
||||
|
Win32_VideoController, |
||||
|
Win32_VideoSettings, |
||||
|
Win32_TimeZone, |
||||
|
Win32_SystemDriver, |
||||
|
Win32_DiskPartition, |
||||
|
Win32_LogicalDisk, |
||||
|
Win32_LogicalDiskToPartition, |
||||
|
Win32_LogicalMemoryConfiguration, |
||||
|
Win32_PageFile, |
||||
|
Win32_PageFileSetting, |
||||
|
Win32_BootConfiguration, |
||||
|
Win32_ComputerSystem, |
||||
|
Win32_OperatingSystem, |
||||
|
Win32_StartupCommand, |
||||
|
Win32_Service, |
||||
|
Win32_Group, |
||||
|
Win32_GroupUser, |
||||
|
Win32_UserAccount, |
||||
|
Win32_Process, |
||||
|
Win32_Thread, |
||||
|
Win32_Share, |
||||
|
Win32_NetworkClient, |
||||
|
Win32_NetworkProtocol, |
||||
|
Win32_PnPEntity, |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取所有串口数据(2) |
||||
|
/// </summary> |
||||
|
public static string[] MulGetHardwareInfo(HardwareEnum hardType, string propKey) |
||||
|
{ |
||||
|
|
||||
|
List<string> stringList = new List<string>(); |
||||
|
try |
||||
|
{ |
||||
|
|
||||
|
ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("select * from " + (object)hardType); |
||||
|
|
||||
|
foreach (ManagementBaseObject managementBaseObject in managementObjectSearcher.Get()) |
||||
|
{ |
||||
|
if (managementBaseObject.Properties[propKey].Value != null) |
||||
|
{ |
||||
|
string s = managementBaseObject.Properties[propKey].Value.ToString(); |
||||
|
int num = s.LastIndexOf("(COM"); |
||||
|
|
||||
|
if (num != -1 && char.IsNumber(s, num + 4)) |
||||
|
stringList.Add(managementBaseObject.Properties[propKey].Value.ToString()); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
managementObjectSearcher.Dispose(); |
||||
|
return stringList.ToArray(); |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("MulGetHardwareInfo!"); |
||||
|
return stringList.ToArray(); |
||||
|
} |
||||
|
finally |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取所有串口数据(1) |
||||
|
/// </summary> |
||||
|
private void frmMain_Load() |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string[] hardwareInfo = MulGetHardwareInfo(HardwareEnum.Win32_PnPEntity, "Name"); |
||||
|
|
||||
|
int length = hardwareInfo.Length; |
||||
|
List<ListItem> listItem = new List<ListItem>(); |
||||
|
|
||||
|
for (int index = 0; index < length; ++index) |
||||
|
{ |
||||
|
listItem.Add(new ListItem((string)hardwareInfo[index], (string)hardwareInfo[index])); |
||||
|
} |
||||
|
this.textBox1.DataSource = listItem; |
||||
|
this.textBox1.DisplayMember = "VALUE"; |
||||
|
this.textBox1.ValueMember = "KEY"; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("frmMain_Load!"); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
public string CodeName = string.Empty; |
||||
|
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string text = this.textBox1.SelectedValue.ToString(); |
||||
|
int num = text.LastIndexOf("COM"); |
||||
|
|
||||
|
if (num == -1) |
||||
|
return; |
||||
|
|
||||
|
char ch1 = text[num + 3]; |
||||
|
char ch2 = text[num + 4]; |
||||
|
|
||||
|
if ((int)ch2 == 41) |
||||
|
CodeName = "COM" + (object)ch1; |
||||
|
else |
||||
|
CodeName = "COM" + (object)ch1 + (object)ch2; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("comboBox1_SelectedIndexChanged!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public string Weigh_str = string.Empty; |
||||
|
private SerialPort serialPort1 = new SerialPort(); |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备返回结果 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void serialPort1_DataReceived(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
int bytesToRead = this.serialPort1.BytesToRead; |
||||
|
|
||||
|
if (bytesToRead == 0) |
||||
|
return; |
||||
|
|
||||
|
//TBRCV.Text = ""; |
||||
|
bool flag = true; |
||||
|
|
||||
|
while (flag) |
||||
|
{ |
||||
|
Thread.Sleep(50); |
||||
|
|
||||
|
if (this.serialPort1.BytesToRead == bytesToRead) |
||||
|
flag = false; |
||||
|
else |
||||
|
bytesToRead = this.serialPort1.BytesToRead; |
||||
|
} |
||||
|
|
||||
|
byte[] numArray1 = new byte[bytesToRead]; |
||||
|
this.serialPort1.Read(numArray1, 0, bytesToRead); |
||||
|
byte[] numArray2 = callcrc(numArray1, bytesToRead - 2); |
||||
|
string str = string.Empty; |
||||
|
|
||||
|
for (int index = 0; index < numArray1.Length; ++index) |
||||
|
str = (int)numArray1[index] >= 16 ? str + Convert.ToString(numArray1[index], 16) + " " : str + "0" + Convert.ToString(numArray1[index], 16) + " "; |
||||
|
//Weigh_str = str.ToUpper(); |
||||
|
|
||||
|
if ((int)numArray2[0] == (int)numArray1[bytesToRead - 2] && |
||||
|
(int)numArray2[1] == (int)numArray1[bytesToRead - 1]) |
||||
|
{ |
||||
|
Weigh_str = str.ToUpper(); |
||||
|
TBRCV.BeginInvoke(new MyInitDelegate(DelegateInitMethod), new object[] { TBRCV, str.ToUpper() }); |
||||
|
Weigh_str = Weigh_str.Trim(); |
||||
|
Weigh_str = Weigh_str.Substring(Weigh_str.Length - 11, 2) + Weigh_str.Substring(Weigh_str.Length - 8, 2); |
||||
|
Weigh_str = Convert.ToInt32(Weigh_str, 16).ToString(); |
||||
|
foreach (var t in List_tSWeighRecores) |
||||
|
{ |
||||
|
t.Weigh = Weigh_str; |
||||
|
agent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.DictService.TSWeighRecoreBLL_Insert.ToString(), t); |
||||
|
} |
||||
|
List_tSWeighRecores = new List<TSWeighRecore>(); |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Weigh_str = "接收错误"; |
||||
|
this.TBRCV.Text = str.ToUpper() + "接收错误 CRC有误"; |
||||
|
} |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("serialPort1_DataReceived!"); |
||||
|
} |
||||
|
} |
||||
|
public static byte[] strToToHexByte(string hexString) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
hexString = hexString.Replace(" ", ""); |
||||
|
|
||||
|
if (hexString.Length % 2 != 0) |
||||
|
hexString += "0"; |
||||
|
|
||||
|
byte[] numArray = new byte[hexString.Length / 2]; |
||||
|
|
||||
|
for (int index = 0; index < numArray.Length; ++index) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
numArray[index] = Convert.ToByte(hexString.Substring(index * 2, 2), 16); |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
int num = (int)MessageBox.Show("输入可能错误"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return numArray; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("strToToHexByte!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public static byte[] addCrcHexByte(byte[] strHexByte) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
byte[] numArray = new byte[strHexByte.Length + 2]; |
||||
|
|
||||
|
for (int index = 0; index < strHexByte.Length; ++index) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
numArray[index] = strHexByte[index]; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
int num = (int)MessageBox.Show("输入可能错误"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
byte[] numArray2 = callcrc(strHexByte, strHexByte.Length); |
||||
|
numArray[strHexByte.Length + 0] = numArray2[0]; |
||||
|
numArray[strHexByte.Length + 1] = numArray2[1]; |
||||
|
return numArray; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("addCrcHexByte!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public static byte[] callcrc(byte[] ss, int num) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
ushort num1 = ushort.MaxValue; |
||||
|
byte[] numArray = ss; |
||||
|
|
||||
|
for (byte index1 = 0; (int)index1 < num; ++index1) |
||||
|
{ |
||||
|
num1 ^= (ushort)numArray[(int)index1]; |
||||
|
|
||||
|
for (byte index2 = 0; (int)index2 < 8; ++index2) |
||||
|
{ |
||||
|
if (((int)num1 & 1) > 0) |
||||
|
num1 = (ushort)((uint)(ushort)((uint)num1 >> 1) ^ 40961U); |
||||
|
else |
||||
|
num1 >>= 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
byte num2 = (byte)((uint)num1 >> 8); |
||||
|
return new byte[2] |
||||
|
{ |
||||
|
(byte)((uint) num1 & (uint) byte.MaxValue), |
||||
|
num2 |
||||
|
}; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("callcrc!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开设备通讯 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnCom_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
if (CodeName == "") |
||||
|
{ |
||||
|
comboBox1_SelectedIndexChanged(sender, e); |
||||
|
} |
||||
|
|
||||
|
serialPort1.BaudRate = Convert.ToInt32(19200); |
||||
|
serialPort1.Parity = Parity.None; |
||||
|
serialPort1.DataBits = 8; |
||||
|
serialPort1.StopBits = StopBits.One; |
||||
|
serialPort1.ReadBufferSize = 4068; |
||||
|
serialPort1.WriteBufferSize = 4068; |
||||
|
serialPort1.ReadTimeout = 200; |
||||
|
serialPort1.WriteTimeout = 200; |
||||
|
serialPort1.PortName = CodeName; |
||||
|
serialPort1.Open(); |
||||
|
|
||||
|
this.TBSEND.Text = "连接设备"; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("btnCom_Click!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 发送连接请求 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnCommSend_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try { |
||||
|
//btnCom_Click(); |
||||
|
if (serialPort1.IsOpen) |
||||
|
{ |
||||
|
byte[] toHexByte = strToToHexByte("01" + "03" + "0FA1" + "0002"); |
||||
|
byte[] buffer = addCrcHexByte(toHexByte); |
||||
|
serialPort1.Write(buffer, 0, buffer.Length); |
||||
|
//TBRCV.Text = ""; |
||||
|
TBSEND.Text = ""; |
||||
|
string str = string.Empty; |
||||
|
|
||||
|
for (int index = 0; index < buffer.Length; ++index) |
||||
|
str = (int)buffer[index] >= 16 ? str + Convert.ToString(buffer[index], 16) + " " : str + "0" + Convert.ToString(buffer[index], 16) + " "; |
||||
|
|
||||
|
TBSEND.Text = str.ToUpper(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
int num1 = (int)MessageBox.Show("请打开设备连接!"); |
||||
|
} |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("btnCommSend_Click!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,762 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Drawing; |
||||
|
using System.Windows.Forms; |
||||
|
using System.Linq; |
||||
|
using QM.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.Andon; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.Entity.ODS; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.FJC.Entity.Stocktaking; |
||||
|
using QMAPP.MD.Entity; |
||||
|
namespace QMAPP.WinForm.Common |
||||
|
{ |
||||
|
public class BasicData |
||||
|
{ |
||||
|
#region 获取班次下拉列表 |
||||
|
/// <summary> |
||||
|
/// 获取班次下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ProduceShift> GetShiftComboxSource() |
||||
|
{ |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
ProduceShift entity = new ProduceShift(); |
||||
|
List<ProduceShift> list = new List<ProduceShift>(); |
||||
|
try |
||||
|
{ |
||||
|
//获取工序信息 |
||||
|
list = agent.InvokeServiceFunction<List<ProduceShift>>("ProduceShiftBLL_GetWorkcenterShifts", ""); |
||||
|
//是否带空项填充返回值 |
||||
|
list.Insert(0, new ProduceShift()); |
||||
|
return list; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
/// <summary> |
||||
|
/// 获取播放类型下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<VideoTypeEntity> GetVideoInfoList() |
||||
|
{ |
||||
|
//获取类别 |
||||
|
VideoTypeEntity searchModel = new VideoTypeEntity(); |
||||
|
//执行查询 |
||||
|
List<VideoTypeEntity> list = new List<VideoTypeEntity>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<VideoTypeEntity>>("VideoTypeBLL_GetAllList"); |
||||
|
//是否带空项填充返回值 |
||||
|
list.Insert(0, new VideoTypeEntity()); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MachineInfo> GetMachineInfoList(string[] processType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MachineInfo searchModel = new MachineInfo(); |
||||
|
if (processType.Length > 0) |
||||
|
{ |
||||
|
searchModel.PROCESSTYPES = "'" + string.Join("','", processType) + "'"; |
||||
|
} |
||||
|
searchModel.PRODUCELINE = EnumGeter.PRODUCELINE.B9.ToString(); |
||||
|
//执行查询 |
||||
|
List<MachineInfo> list = new List<MachineInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MachineInfo>>("MachineInfoBLL_GetAllList", searchModel); |
||||
|
list = list.OrderBy(p => p.MACHINENAME).ToList() ; |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MachineInfo()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MachineInfo> GetMachineInfoListPro(string[] processType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MachineInfo searchModel = new MachineInfo(); |
||||
|
if (processType.Length > 0) |
||||
|
{ |
||||
|
searchModel.PROCESSTYPES = "'" + string.Join("','", processType) + "'"; |
||||
|
} |
||||
|
searchModel.PRODUCELINE = EnumGeter.PRODUCELINE.B9.ToString(); |
||||
|
//执行查询 |
||||
|
List<MachineInfo> list = new List<MachineInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MachineInfo>>("MachineInfoBLL_GetAllList", searchModel); |
||||
|
list = list.OrderBy(p => p.MACHINENAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MachineInfo()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备下拉列表20171105 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MachineInfo> GetMachineList(string ordertype, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MachineInfo searchModel = new MachineInfo(); |
||||
|
searchModel.PRODUCELINE = EnumGeter.PRODUCELINE.B9.ToString(); |
||||
|
WorkCell info = new WorkCell(); |
||||
|
info.WORKCELL_CODE = ordertype; |
||||
|
//执行查询 |
||||
|
List<MachineInfo> list = new List<MachineInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MachineInfo>>("MachineInfoBLL_GetMachineForOrderList", new MachineInfo(), info); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MachineInfo()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MachineInfo> GetMachineInfoAndModelList(string[] processType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MachineInfo searchModel = new MachineInfo(); |
||||
|
if (processType.Length > 0) |
||||
|
{ |
||||
|
searchModel.PROCESSTYPES = string.Join(",", processType); |
||||
|
} |
||||
|
searchModel.PRODUCELINE = EnumGeter.PRODUCELINE.B9.ToString(); |
||||
|
//执行查询 |
||||
|
List<MachineInfo> list = new List<MachineInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MachineInfo>>(B9BasicService.MachineInfoBLL_GetAllListAndModels.ToString(), searchModel); |
||||
|
list = list.OrderBy(p => p.MACHINENAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MachineInfo { MACHINENAME = "", MACHINECODDE = "" }); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
public List<MachineInfo> GetMachineInfoMachineCheck() |
||||
|
{ |
||||
|
//获取类别 |
||||
|
|
||||
|
//执行查询 |
||||
|
List<MachineInfo> list = new List<MachineInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MachineInfo>>("MachineInfoBLL_GetMachineInfoMachineCheck"); |
||||
|
list.Insert(0, new MachineInfo { MACHINENAME = "", MACHINECODDE = "" }); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取原材料下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MD.Entity.Material> GetMaterielInfoList(string materialType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MD.Entity.Material searchModel = new MD.Entity.Material(); |
||||
|
searchModel.MATERIAL_TYPE_CODE = materialType; |
||||
|
//searchModel.PRODUCELINE = EnumGeter.PRODUCELINE.B9.ToString(); |
||||
|
//执行查询 |
||||
|
List<MD.Entity.Material> list = new List<MD.Entity.Material>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MD.Entity.Material>>("MaterialBLL_GetMaterialList", searchModel); |
||||
|
list = list.OrderBy(p => p.MATERIAL_NAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MD.Entity.Material()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取操作人下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<OperatorInfo> GetOperatorInfoList(string processType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
OperatorInfo searchModel = new OperatorInfo(); |
||||
|
searchModel.PROCESSTYPE = processType; |
||||
|
//执行查询 |
||||
|
List<OperatorInfo> list = new List<OperatorInfo>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<OperatorInfo>>(B9BasicService.OperatorInfoBLL_GetAllList.ToString(), searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new OperatorInfo()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取操作人下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ListItem> GetOperatorInfoComboxSource(string processType, bool isWithEmpty) |
||||
|
{ |
||||
|
List<ListItem> list = new List<ListItem>(); |
||||
|
//获取类别 |
||||
|
List<OperatorInfo> listEntity = GetOperatorInfoList(processType, isWithEmpty); |
||||
|
foreach (var item in listEntity) |
||||
|
{ |
||||
|
list.Add(new ListItem(item.OPERATOR, item.OPERATORCODE)); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取发货料架下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MaterialShelfType> GetMaterialShelfTypeList(string productType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
MaterialShelfType searchModel = new MaterialShelfType(); |
||||
|
if (!string.IsNullOrEmpty(productType)) |
||||
|
{ |
||||
|
searchModel.PRODUCTTYPE = productType; |
||||
|
} |
||||
|
//执行查询 |
||||
|
List<MaterialShelfType> list = new List<MaterialShelfType>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MaterialShelfType>>(B9BasicService.MaterialShelfTypeBLL_GetAllList.ToString(), searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MaterialShelfType()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 读取零件类别下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ProductBasic> GetProductBasicList(string productType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
ProductBasic searchModel = new ProductBasic(); |
||||
|
if (!string.IsNullOrEmpty(productType)) |
||||
|
{ |
||||
|
searchModel.PRODUCTMAINTYPE = productType; |
||||
|
} |
||||
|
//执行查询 |
||||
|
List<ProductBasic> list = new List<ProductBasic>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<ProductBasic>>(B9BasicService.ProductBasicBLL_GetAllList.ToString(), searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new ProductBasic()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 读取零件类别下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ProductBasic> GetProductBasicList(ProductBasic searchModel, bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<ProductBasic> list = new List<ProductBasic>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<ProductBasic>>(B9BasicService.ProductBasicBLL_GetAllList.ToString(), searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new ProductBasic()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 读取零件类别下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MaterialClass> GetMaterialTypeList(MaterialClass searchModel, bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<MaterialClass> list = new List<MaterialClass>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MaterialClass>>("MaterialClassBLL_GetAllList", searchModel); |
||||
|
list = list.OrderBy(p => p.MATERIAL_TYPE_NAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MaterialClass()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 读取产品项目下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<Project> GetProjectList(bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<Project> list = new List<Project>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<Project>>("ProjectBLL_GetAllList", new Project { }); |
||||
|
list = list.OrderBy(p => p.PROJECT_NAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new Project()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 读取Dictionary.xml下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ListItem> GetDictionaryList(string kind) |
||||
|
{ |
||||
|
List<ListItem> listItem = new List<ListItem>(); |
||||
|
Dictionary<string, string> dicts = null; |
||||
|
QMFrameWork.Common.Util.ModelDictionaryHandler.TryGetModelDictionary(kind.ToString(), out dicts); |
||||
|
foreach (string item in dicts.Keys) |
||||
|
{ |
||||
|
listItem.Add(new ListItem(item, dicts[item])); |
||||
|
} |
||||
|
return listItem; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取班次下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ListItem> GetProduceShiftComboxSource(ProduceShift condition, bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<ProduceShift> listEntity = new List<ProduceShift>(); |
||||
|
List<ListItem> list = new List<ListItem>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
listEntity = agent.InvokeServiceFunction<List<ProduceShift>>(B9BasicService.ProduceShiftBLL_GetAllList.ToString(), condition); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
listEntity.Insert(0, new ProduceShift { PRODUCESHIFTNAME = string.Empty, PRODUCESHIFTTCODE = string.Empty }); |
||||
|
} |
||||
|
foreach (var item in listEntity) |
||||
|
{ |
||||
|
list.Add(new ListItem(item.PRODUCESHIFTNAME, item.PRODUCESHIFTTCODE)); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
public List<PrintModelCopy> GetPrintModelCopy(string formFlag) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
//执行查询 |
||||
|
List<PrintModelCopy> list = new List<PrintModelCopy>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<PrintModelCopy>>(B9IPCService.PrintModelCopyBLL_GetPrintModelCopyList.ToString(), formFlag); |
||||
|
//是否带空项填充返回值 |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 读取物料类别下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MaterialClass> GetMaterialTypeList(string ordertype, bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<MaterialClass> list = new List<MaterialClass>(); |
||||
|
WorkCell info = new WorkCell(); |
||||
|
info.WORKCELL_CODE = ordertype; |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MaterialClass>>("MaterialBLL_GetMaterialClassWithType", new MaterialClass(), info); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MaterialClass()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取物料号下拉 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<QMAPP.MD.Entity.Material> GetmaterialCodeList(string materialType, bool isWithEmpty) |
||||
|
{ |
||||
|
//获取类别 |
||||
|
QMAPP.MD.Entity.Material searchModel = new QMAPP.MD.Entity.Material(); |
||||
|
searchModel.MATERIAL_TYPE_CODE = materialType; |
||||
|
//执行查询 |
||||
|
List<QMAPP.MD.Entity.Material> list = new List<QMAPP.MD.Entity.Material>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<QMAPP.MD.Entity.Material>>("MaterialBLL_GetAllList", searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new QMAPP.MD.Entity.Material()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 批量报废读取物料类别下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MaterialClass> GetMaterialClassToMendRecorderWasteForm(bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<MaterialClass> list = new List<MaterialClass>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MaterialClass>>("MaterialBLL_GetMaterialClassToMendRecorderWasteForm"); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new MaterialClass()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取工序下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<WorkCell> GetWorkCellList(bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<WorkCell> list = new List<WorkCell>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<WorkCell>>("WorkCellBLL_GetAllList", new WorkCell()); |
||||
|
list = list.OrderBy(p => p.WORKCELL_NAME).ToList(); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new WorkCell()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 根据扫描条码获取之前工序下拉列表 |
||||
|
/// 筛选工序 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MainOperation> GetMainOperationWorkCell(string ProductCode) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<MainOperation> list = new List<MainOperation>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<MainOperation>>("MainOperationBLL_GetMainOperationWorkCell", ProductCode, true); |
||||
|
|
||||
|
if (list.Count > 0) |
||||
|
{ |
||||
|
foreach (MainOperation item in list) |
||||
|
{ |
||||
|
item.WORKCELL_NAME = item.WORKCELL_NAME + ":" + item.PRODUCTCODE; |
||||
|
} |
||||
|
list.Insert(0, new MainOperation()); |
||||
|
} |
||||
|
//为空就是注塑件 |
||||
|
else |
||||
|
{ |
||||
|
list = agent.InvokeServiceFunction<List<MainOperation>>("MainOperationBLL_GetMainOperationWorkCell", ProductCode, false); |
||||
|
foreach (MainOperation item in list) |
||||
|
{ |
||||
|
item.WORKCELL_NAME = "注塑机"; |
||||
|
item.WORKCELL_CODE = "INJECTION"; |
||||
|
} |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取出库原因 |
||||
|
/// </summary> |
||||
|
/// <param name="isWithEmpty"></param> |
||||
|
/// <returns></returns> |
||||
|
public List<OutReason> GetOutReasonList(bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<OutReason> list = new List<OutReason>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<OutReason>>("ProductOutBLL_GetOutReasonList", new OutReason()); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new OutReason()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取输入值 |
||||
|
/// </summary> |
||||
|
/// <param name="isWithEmpty"></param> |
||||
|
/// <returns></returns> |
||||
|
public List<InputValue> GetInputValueList(string checkcode, bool isWithEmpty) |
||||
|
{ |
||||
|
InputValue searchModel = new InputValue(); |
||||
|
searchModel.CHECKITEMCODE = checkcode; |
||||
|
//执行查询 |
||||
|
List<InputValue> list = new List<InputValue>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<InputValue>>("ProductCheckBLL_GetInputValueList", searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new InputValue { INPUTVALUE = string.Empty }); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取呼叫类型 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<ConfigDetail> GetConfigDetailComboxSource(string MainTypeCode, bool isWithEmpty) |
||||
|
{ |
||||
|
//执行查询 |
||||
|
List<ConfigDetail> list = new List<ConfigDetail>(); |
||||
|
//List<ListItem> list = new List<ListItem>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<ConfigDetail>>("ConfigDetailBLL_GetAllList", MainTypeCode); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new ConfigDetail { DetailTypeName = string.Empty, DetailTypeCode = string.Empty }); |
||||
|
} |
||||
|
//foreach (ConfigDetail item in list) |
||||
|
//{ |
||||
|
// item.DetailTypeName = item.DetailTypeCode + "/" + item.DetailTypeName; |
||||
|
//} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
//自定义ComboBox下拉内容的宽度 |
||||
|
public void AdjustComboBoxDropDownListWidth(object comboBox) |
||||
|
{ |
||||
|
Graphics g = null; |
||||
|
Font font = null; |
||||
|
try |
||||
|
{ |
||||
|
ComboBox senderComboBox = null; |
||||
|
if (comboBox is ComboBox) |
||||
|
senderComboBox = (ComboBox)comboBox; |
||||
|
else if (comboBox is ToolStripComboBox) |
||||
|
senderComboBox = ((ToolStripComboBox)comboBox).ComboBox; |
||||
|
else |
||||
|
return; |
||||
|
|
||||
|
int width = senderComboBox.Width; |
||||
|
g = senderComboBox.CreateGraphics(); |
||||
|
font = senderComboBox.Font; |
||||
|
|
||||
|
//checks if a scrollbar will be displayed. |
||||
|
//If yes, then get its width to adjust the size of the drop down list. |
||||
|
int vertScrollBarWidth = |
||||
|
(senderComboBox.Items.Count > senderComboBox.MaxDropDownItems) |
||||
|
? SystemInformation.VerticalScrollBarWidth : 0; |
||||
|
|
||||
|
int newWidth; |
||||
|
foreach (object s in senderComboBox.Items) //Loop through list items and check size of each items. |
||||
|
{ |
||||
|
if (s != null) |
||||
|
{ |
||||
|
newWidth = (int)g.MeasureString(s.ToString().Trim(), font).Width |
||||
|
+ vertScrollBarWidth; |
||||
|
if (width < newWidth) |
||||
|
width = newWidth; //set the width of the drop down list to the width of the largest item. |
||||
|
} |
||||
|
} |
||||
|
senderComboBox.DropDownWidth = width; |
||||
|
} |
||||
|
catch |
||||
|
{ } |
||||
|
finally |
||||
|
{ |
||||
|
if (g != null) |
||||
|
g.Dispose(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#region 获取全部工作中心下拉列表 |
||||
|
/// <summary> |
||||
|
/// 获取工作中心下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns>数据源</returns> |
||||
|
public List<WorkCenter> GetAllWorkCenterComboxSource() |
||||
|
{ |
||||
|
var workCenter = new WorkCenter(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent wcfAgent = ClientContext.GetServiceAgent(); |
||||
|
//ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
try |
||||
|
{ |
||||
|
var dataResult = wcfAgent.InvokeServiceFunction<DataResult<List<WorkCenter>>> |
||||
|
("WorkCenterBLL_GetWorkCenterList", workCenter); |
||||
|
return dataResult.Result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
public List<WorkCenter> GetFactoryWorkCenterComboxSource(string factoryCode) |
||||
|
{ |
||||
|
ServiceAgent wcfAgent = ClientContext.GetServiceAgent(); |
||||
|
try |
||||
|
{ |
||||
|
var dataResult = wcfAgent.InvokeServiceFunction<DataResult<List<WorkCenter>>> |
||||
|
("WorkCenterBLL_GetWorkCenterList", new WorkCenter { FACTORY_CODE = factoryCode }); |
||||
|
|
||||
|
return dataResult.Result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取工位下拉列表(联动) |
||||
|
/// <summary> |
||||
|
/// 获取工序下拉列表 |
||||
|
/// </summary> |
||||
|
/// <returns>数据源</returns> |
||||
|
public List<WorkLoc> GetWorkLocComboxSource(string workCenterCode) |
||||
|
{ |
||||
|
List<WorkLoc> list = new List<WorkLoc>(); |
||||
|
ServiceAgent wcfAgent = ClientContext.GetServiceAgent(); |
||||
|
try |
||||
|
{ |
||||
|
if (string.IsNullOrEmpty(workCenterCode) == false) |
||||
|
{ |
||||
|
list = wcfAgent.InvokeServiceFunction<List<WorkLoc>> |
||||
|
("WorkLocBLL_GetWorkLocFromWorkCenterCodeList", workCenterCode); |
||||
|
//foreach (WorkLoc item in dataResult) |
||||
|
//{ |
||||
|
// item.WORKLOC_NAME = item.WORKLOC_NAME; |
||||
|
// list.Add(item); |
||||
|
//} |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取原材料信息,根据T_PP_ORDERENTITY MATERIALTYPE 过滤 |
||||
|
/// <summary> |
||||
|
/// 获取原材料信息,根据T_PP_ORDERENTITY MATERIALTYPE 过滤 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<QMAPP.MD.Entity.Material> GetMaterialInfoByType(string OrderType, bool isWithEmpty) |
||||
|
{ |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
OrderIndentity OrderSearch = new OrderIndentity(); |
||||
|
if (!string.IsNullOrEmpty(OrderType)) |
||||
|
{ |
||||
|
OrderSearch.ORDER_TYPE = OrderType; |
||||
|
OrderSearch = agent.InvokeServiceFunction<OrderIndentity>("MaterialBLL_GetOrderInfo", OrderSearch); |
||||
|
} |
||||
|
//获取类别 |
||||
|
QMAPP.MD.Entity.Material searchModel = new QMAPP.MD.Entity.Material(); |
||||
|
if (!string.IsNullOrEmpty(OrderSearch.MATERIALTYPE)) |
||||
|
{ |
||||
|
string str = string.Join(",", OrderSearch.MATERIALTYPE); |
||||
|
searchModel.MATERIALTYPES = "'" + str.Replace(",", "','") + "'"; |
||||
|
} |
||||
|
//执行查询 |
||||
|
List<QMAPP.MD.Entity.Material> list = new List<QMAPP.MD.Entity.Material>(); |
||||
|
list = agent.InvokeServiceFunction<List<QMAPP.MD.Entity.Material>>("MaterialBLL_GetAllList", searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new QMAPP.MD.Entity.Material()); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取物料信息 |
||||
|
/// </summary> |
||||
|
/// <param name="materialCode"></param> |
||||
|
/// <param name="p"></param> |
||||
|
/// <returns></returns> |
||||
|
public List<QMAPP.MD.Entity.Material> GetMaterialInfoList(string materialCode, bool isWithEmpty) |
||||
|
{ |
||||
|
QMAPP.MD.Entity.Material searchModel = new QMAPP.MD.Entity.Material(); |
||||
|
searchModel.MATERIAL_CODE = materialCode; |
||||
|
//执行查询 |
||||
|
List<QMAPP.MD.Entity.Material> list = new List<QMAPP.MD.Entity.Material>(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
list = agent.InvokeServiceFunction<List<QMAPP.MD.Entity.Material>>("MaterialBLL_GetMaterialInfoListBy", searchModel); |
||||
|
//是否带空项填充返回值 |
||||
|
if (list.Count > 0) |
||||
|
{ |
||||
|
foreach (QMAPP.MD.Entity.Material item in list) |
||||
|
{ |
||||
|
item.MATERIAL_NAME = item.MATERIAL_NAME + ":" + item.MATERIAL_CODE; |
||||
|
} |
||||
|
} |
||||
|
if (isWithEmpty) |
||||
|
{ |
||||
|
list.Insert(0, new QMAPP.MD.Entity.Material { MATERIAL_NAME = "", MATERIAL_CODE = "" }); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="materialCode"></param> |
||||
|
/// <param name="isWithEmpty"></param> |
||||
|
/// <returns></returns> |
||||
|
public QMAPP.MD.Entity.Material GetMaterialInfo(string materialCode) |
||||
|
{ |
||||
|
QMAPP.MD.Entity.Material searchModel = new QMAPP.MD.Entity.Material(); |
||||
|
searchModel.MATERIAL_CODE = materialCode; |
||||
|
//执行查询 |
||||
|
QMAPP.MD.Entity.Material MaterialInfo = new QMAPP.MD.Entity.Material(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
MaterialInfo = agent.InvokeServiceFunction<QMAPP.MD.Entity.Material>("MaterialBLL_GetMaterialInfo", searchModel); |
||||
|
return MaterialInfo; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,580 @@ |
|||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
partial class SlushMoldingPrintForOldNewForm |
||||
|
{ |
||||
|
/// <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() |
||||
|
{ |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); |
||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
||||
|
this.lblLock = new System.Windows.Forms.LinkLabel(); |
||||
|
this.label12 = new System.Windows.Forms.Label(); |
||||
|
this.comMouldNumber = new System.Windows.Forms.ComboBox(); |
||||
|
this.label13 = new System.Windows.Forms.Label(); |
||||
|
this.cbM = new System.Windows.Forms.CheckBox(); |
||||
|
this.cBoxModelCode = new System.Windows.Forms.ComboBox(); |
||||
|
this.comMachineCode = new System.Windows.Forms.ComboBox(); |
||||
|
this.dtpDate = new DateTimePickerA(); |
||||
|
this.label14 = new System.Windows.Forms.Label(); |
||||
|
this.label10 = new System.Windows.Forms.Label(); |
||||
|
this.label6 = new System.Windows.Forms.Label(); |
||||
|
this.label4 = new System.Windows.Forms.Label(); |
||||
|
this.comPosition = new System.Windows.Forms.ComboBox(); |
||||
|
this.comColor = new System.Windows.Forms.ComboBox(); |
||||
|
this.label11 = new System.Windows.Forms.Label(); |
||||
|
this.label15 = new System.Windows.Forms.Label(); |
||||
|
this.label9 = new System.Windows.Forms.Label(); |
||||
|
this.label5 = new System.Windows.Forms.Label(); |
||||
|
this.label3 = new System.Windows.Forms.Label(); |
||||
|
this.ErrorMessage = new System.Windows.Forms.Label(); |
||||
|
this.groupBox2 = new System.Windows.Forms.GroupBox(); |
||||
|
this.DGView = new System.Windows.Forms.DataGridView(); |
||||
|
this.MAINCODE = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
||||
|
this.COLOR = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
||||
|
this.PRODUCTCODE = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
||||
|
this.CREATETIME = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
||||
|
this.tsbSave = new System.Windows.Forms.Button(); |
||||
|
this.btnCommSend = new System.Windows.Forms.Button(); |
||||
|
this.groupBox3 = new System.Windows.Forms.GroupBox(); |
||||
|
this.TBRCV = new System.Windows.Forms.RichTextBox(); |
||||
|
this.textBox1 = new System.Windows.Forms.ComboBox(); |
||||
|
this.TBSEND = new System.Windows.Forms.TextBox(); |
||||
|
this.label1 = new System.Windows.Forms.Label(); |
||||
|
this.infolabel = new System.Windows.Forms.Label(); |
||||
|
this.groupBox1.SuspendLayout(); |
||||
|
this.groupBox2.SuspendLayout(); |
||||
|
((System.ComponentModel.ISupportInitialize)(this.DGView)).BeginInit(); |
||||
|
this.groupBox3.SuspendLayout(); |
||||
|
this.SuspendLayout(); |
||||
|
// |
||||
|
// groupBox1 |
||||
|
// |
||||
|
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.groupBox1.Controls.Add(this.lblLock); |
||||
|
this.groupBox1.Controls.Add(this.label12); |
||||
|
this.groupBox1.Controls.Add(this.comMouldNumber); |
||||
|
this.groupBox1.Controls.Add(this.label13); |
||||
|
this.groupBox1.Controls.Add(this.cbM); |
||||
|
this.groupBox1.Controls.Add(this.cBoxModelCode); |
||||
|
this.groupBox1.Controls.Add(this.comMachineCode); |
||||
|
this.groupBox1.Controls.Add(this.dtpDate); |
||||
|
this.groupBox1.Controls.Add(this.label14); |
||||
|
this.groupBox1.Controls.Add(this.label10); |
||||
|
this.groupBox1.Controls.Add(this.label6); |
||||
|
this.groupBox1.Controls.Add(this.label4); |
||||
|
this.groupBox1.Controls.Add(this.comPosition); |
||||
|
this.groupBox1.Controls.Add(this.comColor); |
||||
|
this.groupBox1.Controls.Add(this.label11); |
||||
|
this.groupBox1.Controls.Add(this.label15); |
||||
|
this.groupBox1.Controls.Add(this.label9); |
||||
|
this.groupBox1.Controls.Add(this.label5); |
||||
|
this.groupBox1.Controls.Add(this.label3); |
||||
|
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.groupBox1.Location = new System.Drawing.Point(720, 2); |
||||
|
this.groupBox1.Name = "groupBox1"; |
||||
|
this.groupBox1.Size = new System.Drawing.Size(499, 368); |
||||
|
this.groupBox1.TabIndex = 1; |
||||
|
this.groupBox1.TabStop = false; |
||||
|
this.groupBox1.Text = "信息录入"; |
||||
|
// |
||||
|
// lblLock |
||||
|
// |
||||
|
this.lblLock.AutoSize = true; |
||||
|
this.lblLock.Font = new System.Drawing.Font("新宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.lblLock.Location = new System.Drawing.Point(68, 64); |
||||
|
this.lblLock.Name = "lblLock"; |
||||
|
this.lblLock.Size = new System.Drawing.Size(89, 19); |
||||
|
this.lblLock.TabIndex = 20; |
||||
|
this.lblLock.TabStop = true; |
||||
|
this.lblLock.Tag = "0"; |
||||
|
this.lblLock.Text = "锁定工位"; |
||||
|
this.lblLock.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblLock_LinkClicked); |
||||
|
// |
||||
|
// label12 |
||||
|
// |
||||
|
this.label12.AutoSize = true; |
||||
|
this.label12.ForeColor = System.Drawing.Color.Red; |
||||
|
this.label12.Location = new System.Drawing.Point(68, 221); |
||||
|
this.label12.Name = "label12"; |
||||
|
this.label12.Size = new System.Drawing.Size(21, 25); |
||||
|
this.label12.TabIndex = 18; |
||||
|
this.label12.Text = "*"; |
||||
|
// |
||||
|
// comMouldNumber |
||||
|
// |
||||
|
this.comMouldNumber.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.comMouldNumber.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.comMouldNumber.FormattingEnabled = true; |
||||
|
this.comMouldNumber.Location = new System.Drawing.Point(166, 216); |
||||
|
this.comMouldNumber.Name = "comMouldNumber"; |
||||
|
this.comMouldNumber.Size = new System.Drawing.Size(247, 32); |
||||
|
this.comMouldNumber.TabIndex = 16; |
||||
|
this.comMouldNumber.SelectedIndexChanged += new System.EventHandler(this.comMouldNumber_SelectedIndexChanged); |
||||
|
// |
||||
|
// label13 |
||||
|
// |
||||
|
this.label13.AutoSize = true; |
||||
|
this.label13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label13.Location = new System.Drawing.Point(88, 221); |
||||
|
this.label13.Name = "label13"; |
||||
|
this.label13.Size = new System.Drawing.Size(76, 16); |
||||
|
this.label13.TabIndex = 17; |
||||
|
this.label13.Text = "模架号:"; |
||||
|
// |
||||
|
// cbM |
||||
|
// |
||||
|
this.cbM.AutoSize = true; |
||||
|
this.cbM.Checked = true; |
||||
|
this.cbM.CheckState = System.Windows.Forms.CheckState.Checked; |
||||
|
this.cbM.Enabled = false; |
||||
|
this.cbM.Location = new System.Drawing.Point(427, 44); |
||||
|
this.cbM.Name = "cbM"; |
||||
|
this.cbM.Size = new System.Drawing.Size(69, 29); |
||||
|
this.cbM.TabIndex = 15; |
||||
|
this.cbM.Text = "扣料"; |
||||
|
this.cbM.UseVisualStyleBackColor = true; |
||||
|
// |
||||
|
// cBoxModelCode |
||||
|
// |
||||
|
this.cBoxModelCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.cBoxModelCode.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.cBoxModelCode.FormattingEnabled = true; |
||||
|
this.cBoxModelCode.Location = new System.Drawing.Point(166, 273); |
||||
|
this.cBoxModelCode.Name = "cBoxModelCode"; |
||||
|
this.cBoxModelCode.Size = new System.Drawing.Size(247, 32); |
||||
|
this.cBoxModelCode.TabIndex = 12; |
||||
|
// |
||||
|
// comMachineCode |
||||
|
// |
||||
|
this.comMachineCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.comMachineCode.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.comMachineCode.FormattingEnabled = true; |
||||
|
this.comMachineCode.Items.AddRange(new object[] { |
||||
|
"否", |
||||
|
"是"}); |
||||
|
this.comMachineCode.Location = new System.Drawing.Point(166, 41); |
||||
|
this.comMachineCode.Name = "comMachineCode"; |
||||
|
this.comMachineCode.Size = new System.Drawing.Size(247, 32); |
||||
|
this.comMachineCode.TabIndex = 11; |
||||
|
// |
||||
|
// dtpDate |
||||
|
// |
||||
|
this.dtpDate.CustomFormat = " "; |
||||
|
this.dtpDate.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.dtpDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; |
||||
|
this.dtpDate.FormatString = "yyyy年MM月dd日"; |
||||
|
this.dtpDate.Location = new System.Drawing.Point(166, 329); |
||||
|
this.dtpDate.Name = "dtpDate"; |
||||
|
this.dtpDate.OriginalFormat = System.Windows.Forms.DateTimePickerFormat.Custom; |
||||
|
this.dtpDate.Size = new System.Drawing.Size(249, 35); |
||||
|
this.dtpDate.TabIndex = 10; |
||||
|
this.dtpDate.ValueX = null; |
||||
|
// |
||||
|
// label14 |
||||
|
// |
||||
|
this.label14.AutoSize = true; |
||||
|
this.label14.ForeColor = System.Drawing.Color.Red; |
||||
|
this.label14.Location = new System.Drawing.Point(99, 163); |
||||
|
this.label14.Name = "label14"; |
||||
|
this.label14.Size = new System.Drawing.Size(21, 25); |
||||
|
this.label14.TabIndex = 9; |
||||
|
this.label14.Text = "*"; |
||||
|
// |
||||
|
// label10 |
||||
|
// |
||||
|
this.label10.AutoSize = true; |
||||
|
this.label10.ForeColor = System.Drawing.Color.Red; |
||||
|
this.label10.Location = new System.Drawing.Point(68, 270); |
||||
|
this.label10.Name = "label10"; |
||||
|
this.label10.Size = new System.Drawing.Size(21, 25); |
||||
|
this.label10.TabIndex = 9; |
||||
|
this.label10.Text = "*"; |
||||
|
// |
||||
|
// label6 |
||||
|
// |
||||
|
this.label6.AutoSize = true; |
||||
|
this.label6.ForeColor = System.Drawing.Color.Red; |
||||
|
this.label6.Location = new System.Drawing.Point(45, 42); |
||||
|
this.label6.Name = "label6"; |
||||
|
this.label6.Size = new System.Drawing.Size(21, 25); |
||||
|
this.label6.TabIndex = 9; |
||||
|
this.label6.Text = "*"; |
||||
|
// |
||||
|
// label4 |
||||
|
// |
||||
|
this.label4.AutoSize = true; |
||||
|
this.label4.ForeColor = System.Drawing.Color.Red; |
||||
|
this.label4.Location = new System.Drawing.Point(78, 105); |
||||
|
this.label4.Name = "label4"; |
||||
|
this.label4.Size = new System.Drawing.Size(21, 25); |
||||
|
this.label4.TabIndex = 9; |
||||
|
this.label4.Text = "*"; |
||||
|
// |
||||
|
// comPosition |
||||
|
// |
||||
|
this.comPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.comPosition.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.comPosition.FormattingEnabled = true; |
||||
|
this.comPosition.Items.AddRange(new object[] { |
||||
|
"A+B"}); |
||||
|
this.comPosition.Location = new System.Drawing.Point(166, 160); |
||||
|
this.comPosition.Name = "comPosition"; |
||||
|
this.comPosition.Size = new System.Drawing.Size(247, 32); |
||||
|
this.comPosition.TabIndex = 5; |
||||
|
// |
||||
|
// comColor |
||||
|
// |
||||
|
this.comColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.comColor.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.comColor.FormattingEnabled = true; |
||||
|
this.comColor.Location = new System.Drawing.Point(166, 99); |
||||
|
this.comColor.Name = "comColor"; |
||||
|
this.comColor.Size = new System.Drawing.Size(247, 32); |
||||
|
this.comColor.TabIndex = 3; |
||||
|
// |
||||
|
// label11 |
||||
|
// |
||||
|
this.label11.AutoSize = true; |
||||
|
this.label11.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label11.Location = new System.Drawing.Point(118, 163); |
||||
|
this.label11.Name = "label11"; |
||||
|
this.label11.Size = new System.Drawing.Size(42, 16); |
||||
|
this.label11.TabIndex = 6; |
||||
|
this.label11.Text = "腔:"; |
||||
|
// |
||||
|
// label15 |
||||
|
// |
||||
|
this.label15.AutoSize = true; |
||||
|
this.label15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label15.Location = new System.Drawing.Point(70, 333); |
||||
|
this.label15.Name = "label15"; |
||||
|
this.label15.Size = new System.Drawing.Size(93, 16); |
||||
|
this.label15.TabIndex = 6; |
||||
|
this.label15.Text = "加工时间:"; |
||||
|
// |
||||
|
// label9 |
||||
|
// |
||||
|
this.label9.AutoSize = true; |
||||
|
this.label9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label9.Location = new System.Drawing.Point(86, 278); |
||||
|
this.label9.Name = "label9"; |
||||
|
this.label9.Size = new System.Drawing.Size(76, 16); |
||||
|
this.label9.TabIndex = 6; |
||||
|
this.label9.Text = "模腔号:"; |
||||
|
// |
||||
|
// label5 |
||||
|
// |
||||
|
this.label5.AutoSize = true; |
||||
|
this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label5.Location = new System.Drawing.Point(70, 44); |
||||
|
this.label5.Name = "label5"; |
||||
|
this.label5.Size = new System.Drawing.Size(93, 16); |
||||
|
this.label5.TabIndex = 6; |
||||
|
this.label5.Text = "搪塑设备:"; |
||||
|
// |
||||
|
// label3 |
||||
|
// |
||||
|
this.label3.AutoSize = true; |
||||
|
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label3.Location = new System.Drawing.Point(101, 107); |
||||
|
this.label3.Name = "label3"; |
||||
|
this.label3.Size = new System.Drawing.Size(59, 16); |
||||
|
this.label3.TabIndex = 6; |
||||
|
this.label3.Text = "颜色:"; |
||||
|
// |
||||
|
// ErrorMessage |
||||
|
// |
||||
|
this.ErrorMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.ErrorMessage.AutoSize = true; |
||||
|
this.ErrorMessage.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.ErrorMessage.ForeColor = System.Drawing.Color.Red; |
||||
|
this.ErrorMessage.Location = new System.Drawing.Point(741, 649); |
||||
|
this.ErrorMessage.Name = "ErrorMessage"; |
||||
|
this.ErrorMessage.Size = new System.Drawing.Size(0, 25); |
||||
|
this.ErrorMessage.TabIndex = 19; |
||||
|
// |
||||
|
// groupBox2 |
||||
|
// |
||||
|
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
||||
|
| System.Windows.Forms.AnchorStyles.Left) |
||||
|
| System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.groupBox2.Controls.Add(this.DGView); |
||||
|
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.groupBox2.Location = new System.Drawing.Point(2, 2); |
||||
|
this.groupBox2.Name = "groupBox2"; |
||||
|
this.groupBox2.Size = new System.Drawing.Size(714, 794); |
||||
|
this.groupBox2.TabIndex = 2; |
||||
|
this.groupBox2.TabStop = false; |
||||
|
this.groupBox2.Text = "打印记录"; |
||||
|
// |
||||
|
// DGView |
||||
|
// |
||||
|
this.DGView.AllowUserToAddRows = false; |
||||
|
this.DGView.AllowUserToDeleteRows = false; |
||||
|
this.DGView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; |
||||
|
this.DGView.BackgroundColor = System.Drawing.SystemColors.ButtonFace; |
||||
|
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
||||
|
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; |
||||
|
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; |
||||
|
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
||||
|
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
||||
|
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
||||
|
this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; |
||||
|
this.DGView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
||||
|
this.DGView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
||||
|
this.MAINCODE, |
||||
|
this.COLOR, |
||||
|
this.PRODUCTCODE, |
||||
|
this.CREATETIME}); |
||||
|
this.DGView.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
|
this.DGView.Location = new System.Drawing.Point(3, 29); |
||||
|
this.DGView.Name = "DGView"; |
||||
|
this.DGView.ReadOnly = true; |
||||
|
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
||||
|
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; |
||||
|
dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; |
||||
|
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
||||
|
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
||||
|
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
||||
|
this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; |
||||
|
this.DGView.RowTemplate.Height = 23; |
||||
|
this.DGView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
||||
|
this.DGView.Size = new System.Drawing.Size(708, 762); |
||||
|
this.DGView.TabIndex = 39; |
||||
|
// |
||||
|
// MAINCODE |
||||
|
// |
||||
|
this.MAINCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
||||
|
this.MAINCODE.DataPropertyName = "MAINCODE"; |
||||
|
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15.75F); |
||||
|
this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle8; |
||||
|
this.MAINCODE.FillWeight = 48.95314F; |
||||
|
this.MAINCODE.HeaderText = "条码信息"; |
||||
|
this.MAINCODE.Name = "MAINCODE"; |
||||
|
this.MAINCODE.ReadOnly = true; |
||||
|
this.MAINCODE.Width = 240; |
||||
|
// |
||||
|
// COLOR |
||||
|
// |
||||
|
this.COLOR.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
||||
|
this.COLOR.DataPropertyName = "MATERIAL_NAME"; |
||||
|
dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15.75F); |
||||
|
this.COLOR.DefaultCellStyle = dataGridViewCellStyle9; |
||||
|
this.COLOR.FillWeight = 99.90437F; |
||||
|
this.COLOR.HeaderText = "表皮颜色"; |
||||
|
this.COLOR.Name = "COLOR"; |
||||
|
this.COLOR.ReadOnly = true; |
||||
|
this.COLOR.Width = 150; |
||||
|
// |
||||
|
// PRODUCTCODE |
||||
|
// |
||||
|
this.PRODUCTCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
||||
|
this.PRODUCTCODE.DataPropertyName = "PRODUCTCODE"; |
||||
|
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle10; |
||||
|
this.PRODUCTCODE.FillWeight = 48.95314F; |
||||
|
this.PRODUCTCODE.HeaderText = "零件号"; |
||||
|
this.PRODUCTCODE.Name = "PRODUCTCODE"; |
||||
|
this.PRODUCTCODE.ReadOnly = true; |
||||
|
this.PRODUCTCODE.Width = 240; |
||||
|
// |
||||
|
// CREATETIME |
||||
|
// |
||||
|
this.CREATETIME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
||||
|
this.CREATETIME.DataPropertyName = "CREATETIME"; |
||||
|
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
||||
|
dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 15.75F); |
||||
|
dataGridViewCellStyle11.Format = "f"; |
||||
|
dataGridViewCellStyle11.NullValue = null; |
||||
|
this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle11; |
||||
|
this.CREATETIME.FillWeight = 48.95314F; |
||||
|
this.CREATETIME.HeaderText = "操作时间"; |
||||
|
this.CREATETIME.Name = "CREATETIME"; |
||||
|
this.CREATETIME.ReadOnly = true; |
||||
|
this.CREATETIME.Width = 250; |
||||
|
// |
||||
|
// tsbSave |
||||
|
// |
||||
|
this.tsbSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.tsbSave.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.tsbSave.Image = global::QMAPP.WinForm.Resource1.save; |
||||
|
this.tsbSave.Location = new System.Drawing.Point(877, 624); |
||||
|
this.tsbSave.Name = "tsbSave"; |
||||
|
this.tsbSave.Size = new System.Drawing.Size(232, 137); |
||||
|
this.tsbSave.TabIndex = 35; |
||||
|
this.tsbSave.Text = "打印"; |
||||
|
this.tsbSave.TextAlign = System.Drawing.ContentAlignment.MiddleRight; |
||||
|
this.tsbSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; |
||||
|
this.tsbSave.UseVisualStyleBackColor = true; |
||||
|
this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click); |
||||
|
// |
||||
|
// btnCommSend |
||||
|
// |
||||
|
this.btnCommSend.Enabled = false; |
||||
|
this.btnCommSend.Location = new System.Drawing.Point(780, 385); |
||||
|
this.btnCommSend.Name = "btnCommSend"; |
||||
|
this.btnCommSend.Size = new System.Drawing.Size(80, 32); |
||||
|
this.btnCommSend.TabIndex = 52; |
||||
|
this.btnCommSend.Text = "连接设备"; |
||||
|
this.btnCommSend.UseVisualStyleBackColor = true; |
||||
|
this.btnCommSend.Click += new System.EventHandler(this.btnCom_Click); |
||||
|
// |
||||
|
// groupBox3 |
||||
|
// |
||||
|
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
||||
|
| System.Windows.Forms.AnchorStyles.Left) |
||||
|
| System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.groupBox3.Controls.Add(this.TBRCV); |
||||
|
this.groupBox3.Location = new System.Drawing.Point(791, 469); |
||||
|
this.groupBox3.Name = "groupBox3"; |
||||
|
this.groupBox3.Size = new System.Drawing.Size(365, 62); |
||||
|
this.groupBox3.TabIndex = 53; |
||||
|
this.groupBox3.TabStop = false; |
||||
|
// |
||||
|
// TBRCV |
||||
|
// |
||||
|
this.TBRCV.Dock = System.Windows.Forms.DockStyle.Fill; |
||||
|
this.TBRCV.Location = new System.Drawing.Point(3, 17); |
||||
|
this.TBRCV.Name = "TBRCV"; |
||||
|
this.TBRCV.Size = new System.Drawing.Size(359, 42); |
||||
|
this.TBRCV.TabIndex = 0; |
||||
|
this.TBRCV.Text = ""; |
||||
|
// |
||||
|
// textBox1 |
||||
|
// |
||||
|
this.textBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
||||
|
this.textBox1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.textBox1.FormattingEnabled = true; |
||||
|
this.textBox1.Location = new System.Drawing.Point(876, 386); |
||||
|
this.textBox1.Name = "textBox1"; |
||||
|
this.textBox1.Size = new System.Drawing.Size(280, 32); |
||||
|
this.textBox1.TabIndex = 21; |
||||
|
// |
||||
|
// TBSEND |
||||
|
// |
||||
|
this.TBSEND.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
||||
|
| System.Windows.Forms.AnchorStyles.Right))); |
||||
|
this.TBSEND.Location = new System.Drawing.Point(876, 433); |
||||
|
this.TBSEND.Multiline = true; |
||||
|
this.TBSEND.Name = "TBSEND"; |
||||
|
this.TBSEND.Size = new System.Drawing.Size(279, 38); |
||||
|
this.TBSEND.TabIndex = 54; |
||||
|
// |
||||
|
// label1 |
||||
|
// |
||||
|
this.label1.AutoSize = true; |
||||
|
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); |
||||
|
this.label1.Location = new System.Drawing.Point(777, 444); |
||||
|
this.label1.Name = "label1"; |
||||
|
this.label1.Size = new System.Drawing.Size(93, 16); |
||||
|
this.label1.TabIndex = 21; |
||||
|
this.label1.Text = "连接编码:"; |
||||
|
// |
||||
|
// infolabel |
||||
|
// |
||||
|
this.infolabel.AutoSize = true; |
||||
|
this.infolabel.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
||||
|
this.infolabel.ForeColor = System.Drawing.Color.Red; |
||||
|
this.infolabel.Location = new System.Drawing.Point(774, 549); |
||||
|
this.infolabel.Name = "infolabel"; |
||||
|
this.infolabel.Size = new System.Drawing.Size(0, 31); |
||||
|
this.infolabel.TabIndex = 55; |
||||
|
// |
||||
|
// SlushMoldingPrintForOldNewForm |
||||
|
// |
||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
|
this.ClientSize = new System.Drawing.Size(1223, 798); |
||||
|
this.Controls.Add(this.infolabel); |
||||
|
this.Controls.Add(this.label1); |
||||
|
this.Controls.Add(this.TBSEND); |
||||
|
this.Controls.Add(this.textBox1); |
||||
|
this.Controls.Add(this.groupBox3); |
||||
|
this.Controls.Add(this.btnCommSend); |
||||
|
this.Controls.Add(this.tsbSave); |
||||
|
this.Controls.Add(this.ErrorMessage); |
||||
|
this.Controls.Add(this.groupBox2); |
||||
|
this.Controls.Add(this.groupBox1); |
||||
|
this.Name = "SlushMoldingPrintForOldNewForm"; |
||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
||||
|
this.Text = "单色搪塑机条码打印"; |
||||
|
this.Load += new System.EventHandler(this.Form_Load); |
||||
|
this.groupBox1.ResumeLayout(false); |
||||
|
this.groupBox1.PerformLayout(); |
||||
|
this.groupBox2.ResumeLayout(false); |
||||
|
((System.ComponentModel.ISupportInitialize)(this.DGView)).EndInit(); |
||||
|
this.groupBox3.ResumeLayout(false); |
||||
|
this.ResumeLayout(false); |
||||
|
this.PerformLayout(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
private System.Windows.Forms.GroupBox groupBox1; |
||||
|
private System.Windows.Forms.Label label14; |
||||
|
private System.Windows.Forms.Label label10; |
||||
|
private System.Windows.Forms.Label label6; |
||||
|
private System.Windows.Forms.Label label4; |
||||
|
private System.Windows.Forms.ComboBox comPosition; |
||||
|
private System.Windows.Forms.Label label11; |
||||
|
private System.Windows.Forms.Label label9; |
||||
|
private System.Windows.Forms.Label label5; |
||||
|
private System.Windows.Forms.Label label3; |
||||
|
private System.Windows.Forms.ComboBox comColor; |
||||
|
private System.Windows.Forms.Label label15; |
||||
|
private DateTimePickerA dtpDate; |
||||
|
private System.Windows.Forms.ComboBox cBoxModelCode; |
||||
|
private System.Windows.Forms.ComboBox comMachineCode; |
||||
|
private System.Windows.Forms.CheckBox cbM; |
||||
|
private System.Windows.Forms.Label label12; |
||||
|
private System.Windows.Forms.ComboBox comMouldNumber; |
||||
|
private System.Windows.Forms.Label label13; |
||||
|
private System.Windows.Forms.Label ErrorMessage; |
||||
|
private System.Windows.Forms.LinkLabel lblLock; |
||||
|
private System.Windows.Forms.GroupBox groupBox2; |
||||
|
private System.Windows.Forms.DataGridView DGView; |
||||
|
private System.Windows.Forms.Button tsbSave; |
||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn MAINCODE; |
||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn COLOR; |
||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn PRODUCTCODE; |
||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn CREATETIME; |
||||
|
private System.Windows.Forms.Button btnCommSend; |
||||
|
private System.Windows.Forms.GroupBox groupBox3; |
||||
|
private System.Windows.Forms.RichTextBox TBRCV; |
||||
|
private System.Windows.Forms.ComboBox textBox1; |
||||
|
private System.Windows.Forms.TextBox TBSEND; |
||||
|
private System.Windows.Forms.Label label1; |
||||
|
private System.Windows.Forms.Label infolabel; |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<!-- |
||||
|
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
|
--> |
||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<DeleteExistingFiles>True</DeleteExistingFiles> |
||||
|
<ExcludeApp_Data>False</ExcludeApp_Data> |
||||
|
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> |
||||
|
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> |
||||
|
<LastUsedPlatform>Any CPU</LastUsedPlatform> |
||||
|
<PublishProvider>FileSystem</PublishProvider> |
||||
|
<PublishUrl>C:\Users\Administrator\Desktop\发布\CDMES\MainDataWeb</PublishUrl> |
||||
|
<WebPublishMethod>FileSystem</WebPublishMethod> |
||||
|
<SiteUrlToLaunchAfterPublish /> |
||||
|
</PropertyGroup> |
||||
|
</Project> |
@ -0,0 +1,795 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
using System.Drawing; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows.Forms; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMAPP.WinForm.Forms.Operation; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
using QMAPP.MD.Entity; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
public partial class InjectionCodePrint : Form |
||||
|
{ |
||||
|
//获取服务代理 |
||||
|
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent(); |
||||
|
|
||||
|
List<ProcessParameter> paramcolumns = new List<ProcessParameter>(); |
||||
|
FileSynchronizers.IFileSynchronizer sync; |
||||
|
|
||||
|
public InjectionCodePrint() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private void InjectionCodePrint_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
LoadMachineList(); |
||||
|
SetConnectState(0); |
||||
|
|
||||
|
this.radioButSignal.Checked = true; |
||||
|
|
||||
|
PrintTempleCopyClass printClass = new PrintTempleCopyClass(); |
||||
|
printClass.CopyPrintTemple("InjectionCodePrint"); |
||||
|
|
||||
|
cbPrintCount.SelectedIndex = 3; |
||||
|
cbPrintSpan.SelectedIndex = 3; |
||||
|
} |
||||
|
|
||||
|
#region 加载设备列表 |
||||
|
/// <summary> |
||||
|
/// 加载设备列表 |
||||
|
/// </summary> |
||||
|
private void LoadMachineList() |
||||
|
{ |
||||
|
#region |
||||
|
BasicData basicData = new BasicData(); |
||||
|
var machinelist = basicData.GetMachineInfoAndModelList(new string[] {"1"}, true); |
||||
|
this.comMachine.DataSource = machinelist; |
||||
|
this.comMachine.DisplayMember = "MACHINENAME"; |
||||
|
this.comMachine.ValueMember = "MACHINECODDE"; |
||||
|
|
||||
|
//如果工位已设定 |
||||
|
if (ClientContext.MachineInfo != null && !string.IsNullOrEmpty(ClientContext.MachineInfo.PID)) |
||||
|
{ |
||||
|
this.comMachine.SelectedValue = ClientContext.MachineInfo.MACHINECODDE; |
||||
|
//this.btnLockMachine.Visible = false; |
||||
|
this.LockMachine(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//this.btnLockMachine.Visible = false; |
||||
|
this.LockMachine(false); |
||||
|
} |
||||
|
comMachine_SelectedIndexChanged(null, null); |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 打印 |
||||
|
/// <summary> |
||||
|
/// 打印 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbPrint_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
tsbPrint.Enabled = false; |
||||
|
CodeCreatePrint(); |
||||
|
tsbPrint.Enabled = true; |
||||
|
} |
||||
|
|
||||
|
private void CodeCreatePrint() |
||||
|
{ |
||||
|
List<Material> materialListInfo = GetSelectedMaterials(); |
||||
|
var model = cbMould.SelectedItem as MachineInfoModels; |
||||
|
if (model == null) |
||||
|
{ |
||||
|
model = new MachineInfoModels(); |
||||
|
} |
||||
|
int i = 1; |
||||
|
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeForChengdu", materialListInfo, model, i); |
||||
|
var machine = comMachine.SelectedItem as MachineInfo; |
||||
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo, machine, model, "", new Dictionary<string,string>()); |
||||
|
|
||||
|
Print(resultList.Result, true); |
||||
|
} |
||||
|
|
||||
|
private void CodeCreatePrint(string header, string datarow, char[] dataSeparator) |
||||
|
{ |
||||
|
|
||||
|
List<Material> materialListInfo = GetSelectedMaterials(); |
||||
|
var machine = comMachine.SelectedItem as MachineInfo; |
||||
|
var model = cbMould.SelectedItem as MachineInfoModels; |
||||
|
if (model == null) |
||||
|
{ |
||||
|
model = new MachineInfoModels(); |
||||
|
} |
||||
|
string tableName = paramcolumns.FirstOrDefault().PARATABLENAME; |
||||
|
Dictionary<string,string> param=new Dictionary<string,string>(); |
||||
|
param.Add("PARAMETER_COLUMNS",header); |
||||
|
var paramvalue=datarow.Split(dataSeparator); |
||||
|
for(int j=0;j<paramvalue.Length;j++) |
||||
|
{ |
||||
|
if(j<paramcolumns.Count) |
||||
|
{ |
||||
|
param.Add(paramcolumns[j].PARANAME,paramvalue[j]); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
int i = 1; |
||||
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo,machine,model,tableName,param); |
||||
|
Print(resultList.Result,false); |
||||
|
} |
||||
|
private void Print(List<PrintCode> codeList,bool IsManual) |
||||
|
{ |
||||
|
List<PrintTemplate.InjectLabel> labels = new List<PrintTemplate.InjectLabel>(); |
||||
|
//打印条码 |
||||
|
|
||||
|
string typeTem = ""; |
||||
|
string typeData = ""; |
||||
|
foreach (PrintCode item in codeList) |
||||
|
{ |
||||
|
//创建新行 |
||||
|
var row = new DataGridViewRow(); |
||||
|
if (DGView.Rows.Count == 0) |
||||
|
{ |
||||
|
var index = this.DGView.Rows.Add(); |
||||
|
row = DGView.Rows[index]; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.DGView.Rows.InsertCopy(0, 0); |
||||
|
row = DGView.Rows[0]; |
||||
|
} |
||||
|
//对datagridview赋值 |
||||
|
row.Cells["MATERIAL_NAME"].Value = item.MATERIAL_NAME; |
||||
|
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE; |
||||
|
row.Cells["MAINCODE"].Value = item.MAINCODE; |
||||
|
row.Cells["CREATETIME"].Value = DateTime.Now; |
||||
|
|
||||
|
if (DGView.Rows.Count > 200) |
||||
|
{ |
||||
|
DGView.Rows.RemoveAt(200); |
||||
|
} |
||||
|
//班次信息 |
||||
|
string shiftCode = ClientContext.produceShift.PRODUCESHIFTTCODE; |
||||
|
item.ShiftCode = shiftCode; |
||||
|
|
||||
|
DGView.AutoGenerateColumns = false; |
||||
|
typeTem = item.PRINT_TEMPALTE_TEM; |
||||
|
typeData = item.PRINT_TEMPALTE_DATA; |
||||
|
//QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo(); |
||||
|
//ll.BarCode = item.MATERIAL_NAME + "," + item.PRODUCTCODE + "," + item.MAINCODE + "," + shiftCode + "," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
//QM.Assist.PrintUtil.LabelList2.Add(ll); |
||||
|
PrintTemplate.InjectLabel label = new PrintTemplate.InjectLabel |
||||
|
{ |
||||
|
CreateDate = DateTime.Now, |
||||
|
MachineCode = comMachine.SelectedValue + "", |
||||
|
MaterialCode = item.PRODUCTCODE, |
||||
|
MaterialName = item.MATERIAL_NAME, |
||||
|
ModelCode = cbMould.SelectedValue + "", |
||||
|
SerialNumber = item.MAINCODE, |
||||
|
ShiftCode = shiftCode, |
||||
|
IsManualPrint = IsManual |
||||
|
}; |
||||
|
labels.Add(label); |
||||
|
} |
||||
|
string path = System.Configuration.ConfigurationManager.AppSettings["Template_Local_Path"]; |
||||
|
if (!System.IO.Directory.Exists(path)) |
||||
|
{ |
||||
|
System.IO.Directory.CreateDirectory(path); |
||||
|
} |
||||
|
FastReport.Report fr = new FastReport.Report(); |
||||
|
fr.RegisterData(labels, "Labels"); |
||||
|
if (!System.IO.File.Exists(string.Format("{0}\\{1}.frx", path, typeTem))) |
||||
|
{ |
||||
|
if (System.IO.File.Exists(string.Format("PrintTemplate\\{1}.frx", path, typeTem))) |
||||
|
{ |
||||
|
System.IO.File.Copy(string.Format("PrintTemplate\\{1}.frx", path, typeTem) |
||||
|
, string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
fr.FileName = string.Format("{0}\\{1}.frx", path, typeTem); |
||||
|
fr.Design(true); |
||||
|
fr.Save(string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
} |
||||
|
} |
||||
|
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
if (cbTemplateDesign.Enabled && cbTemplateDesign.Checked) |
||||
|
{ |
||||
|
fr.Design(true); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
fr.PrintSettings.ShowDialog = false; |
||||
|
fr.Print(); |
||||
|
|
||||
|
#region 张松男20210802 修改 增加新版注塑投料条码绑定 |
||||
|
|
||||
|
foreach (var la in labels) |
||||
|
{ |
||||
|
var material_T = new BucketMaterialClass() { MaterialCode = la.MaterialCode }; |
||||
|
var List = _agent.InvokeServiceFunction<List<RawMaterial>>(B9BasicService.RawMaterialBLL_GetListTo.ToString(), material_T); |
||||
|
|
||||
|
if (List != null && List.Count > 0) |
||||
|
{ |
||||
|
foreach (var raw in List) |
||||
|
{ |
||||
|
var record = new RawMaterialRecord(); |
||||
|
record.MaterialCode = la.MaterialCode; |
||||
|
record.MaterialName = la.MaterialName; |
||||
|
record.ProductCode = la.SerialNumber; |
||||
|
record.RawMaterialPID = raw.PID; |
||||
|
record.MachineCode = la.MachineCode; |
||||
|
_agent.InvokeServiceFunction<DataResult<int>>(B9BasicService.RawMaterialRecordBLL_Insert.ToString(), record); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
fr.Dispose(); |
||||
|
|
||||
|
//QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil(); |
||||
|
//pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString |
||||
|
// (), System.Configuration.ConfigurationManager.AppSettings[typeTem + "temPath"].ToString |
||||
|
// (), System.Configuration.ConfigurationManager.AppSettings[typeData + "dataPath"].ToString |
||||
|
// ()); |
||||
|
} |
||||
|
|
||||
|
private List<Material> GetSelectedMaterials() |
||||
|
{ |
||||
|
List<Material> materialListInfo = new List<Material>(); |
||||
|
Material concationMaterial = new Material(); |
||||
|
//int i= Convert.ToInt32( this.txtNum.Text); |
||||
|
|
||||
|
if (this.radioButSignal.Checked == true) |
||||
|
{ |
||||
|
string materialcode1 = this.txtMaterialCode.Text; |
||||
|
concationMaterial.MATERIAL_CODE = materialcode1; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
} |
||||
|
else if (this.radioButDouble.Checked == true) |
||||
|
{ |
||||
|
concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
if (!string.IsNullOrEmpty(this.comboxMaterial.SelectedValue.ToString())) |
||||
|
{ |
||||
|
Material concationMaterial2 = new Material(); |
||||
|
concationMaterial2.MATERIAL_CODE = this.comboxMaterial.SelectedValue.ToString(); |
||||
|
materialListInfo.Add(concationMaterial2); |
||||
|
} |
||||
|
} |
||||
|
else if (this.radioButFourth.Checked == true) |
||||
|
{ |
||||
|
concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(this.txtMaterial2.Text)) |
||||
|
{ |
||||
|
Material concationMaterial3 = new Material(); |
||||
|
concationMaterial3.MATERIAL_CODE = this.txtMaterial2.Text.Substring(this.txtMaterial2.Text.LastIndexOf(":") + 1); |
||||
|
materialListInfo.Add(concationMaterial3); |
||||
|
} |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(this.txtMaterial3.Text)) |
||||
|
{ |
||||
|
Material concationMaterial4 = new Material(); |
||||
|
concationMaterial4.MATERIAL_CODE = this.txtMaterial3.Text.Substring(this.txtMaterial3.Text.LastIndexOf(":") + 1); |
||||
|
materialListInfo.Add(concationMaterial4); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(this.txtMaterial4.Text)) |
||||
|
{ |
||||
|
Material concationMaterial5 = new Material(); |
||||
|
concationMaterial5.MATERIAL_CODE = this.txtMaterial4.Text.Substring(this.txtMaterial4.Text.LastIndexOf(":") + 1); |
||||
|
materialListInfo.Add(concationMaterial5); |
||||
|
} |
||||
|
} |
||||
|
return materialListInfo; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 校验 |
||||
|
/// <summary> |
||||
|
/// 校验 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
private string ErrorCheck() |
||||
|
{ |
||||
|
#region |
||||
|
string strMessage = ""; |
||||
|
|
||||
|
var selectmachine= comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine == null || string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
strMessage += "请选择注塑机!" + "\r\n"; |
||||
|
} |
||||
|
//判断条码是否为空 |
||||
|
|
||||
|
if (cbMould.Items.Count > 0 && cbMould.SelectedIndex < 0) |
||||
|
{ |
||||
|
strMessage += "请选择模具!" + "\r\n"; |
||||
|
} |
||||
|
|
||||
|
//注塑零件 |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//打印数量 |
||||
|
//if (this.txtNum.Text == null || this.txtNum.Text == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.NumNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//else |
||||
|
//{ |
||||
|
// int proNum = 0; |
||||
|
// if (!int.TryParse(this.txtNum.Text, out proNum)) |
||||
|
// { |
||||
|
// strMessage += Resource1.NumFormatValidate + "\r\n"; |
||||
|
// } |
||||
|
//} |
||||
|
return strMessage; |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体关闭 |
||||
|
/// <summary> |
||||
|
/// 窗体关闭 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 点击选择零件信息 |
||||
|
/// <summary> |
||||
|
/// 点击选择零件信息 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnChoiceMaterial_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
MaterialTreeForm materialForm = new MaterialTreeForm(); |
||||
|
var ret= materialForm.ShowDialog(); |
||||
|
if (ret == DialogResult.OK) |
||||
|
{ |
||||
|
this.txtMaterialCode.Text = materialForm.MaterialCode; |
||||
|
this.textMaterialName.Text = materialForm.MaterialName; |
||||
|
bool maintype = materialForm.MainType; |
||||
|
if (maintype) |
||||
|
{ |
||||
|
this.groupBox3.Enabled = true; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.groupBox3.Enabled = false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 单选按钮 |
||||
|
/// <summary> |
||||
|
/// 单件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButSignal_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButSignal.Checked == true) |
||||
|
{ |
||||
|
this.panel34.Visible = false; |
||||
|
this.paneldouble.Visible = false; |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 双件,获取物料信息下拉 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButDouble_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButDouble.Checked == true) |
||||
|
{ |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
string Messae = Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
radioButSignal.Checked = true; |
||||
|
return; |
||||
|
} |
||||
|
this.paneldouble.Visible = true; |
||||
|
this.panel34.Visible = false; |
||||
|
|
||||
|
string materialCode = this.txtMaterialCode.Text; |
||||
|
BasicData basicData = new BasicData(); |
||||
|
this.comboxMaterial.DataSource = basicData.GetMaterialInfoList(materialCode, true); |
||||
|
this.comboxMaterial.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comboxMaterial.ValueMember = "MATERIAL_CODE"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 四件,自动填写下拉物料信息 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButFourth_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButFourth.Checked == true) |
||||
|
{ |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
string Messae = Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
radioButSignal.Checked = true; |
||||
|
return; |
||||
|
} |
||||
|
string materialCode = this.txtMaterialCode.Text; |
||||
|
BasicData basicData = new BasicData(); |
||||
|
List<Material> materialList = basicData.GetMaterialInfoList(materialCode, false); |
||||
|
materialList = materialList.OrderBy(p => p.MATERIAL_CODE).ToList(); |
||||
|
if (materialList.Count < 3) |
||||
|
{ |
||||
|
string Messae = Resource1.SelectedInfoWrong + "\r\n"; |
||||
|
MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
radioButSignal.Checked = true; |
||||
|
return; |
||||
|
} |
||||
|
this.panel34.Visible = true; |
||||
|
this.paneldouble.Visible = false; |
||||
|
this.txtMaterial2.Text = materialList[0].MATERIAL_NAME; |
||||
|
this.txtMaterial3.Text = materialList[1].MATERIAL_NAME; |
||||
|
this.txtMaterial4.Text = materialList[2].MATERIAL_NAME; |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 所选零件发生改变 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void txtMaterialCode_TextChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
radioButSignal.Checked = true; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
private void btnStart_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
btnStart.Enabled = false; |
||||
|
btnStop.Enabled = true; |
||||
|
cbPrintCount.Enabled = false; |
||||
|
cbPrintSpan.Enabled = false; |
||||
|
lblLastCount.Text = cbPrintCount.Text; |
||||
|
tsbPrint.Enabled = false; |
||||
|
btnChoiceMaterial.Enabled = false; |
||||
|
groupBox3.Enabled = false; |
||||
|
printtimer = int.Parse(cbPrintSpan.Text.Trim('s')); |
||||
|
LockPrintMode(2); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void btnStop_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
btnStart.Enabled = true; |
||||
|
btnStop.Enabled = false; |
||||
|
cbPrintCount.Enabled = true; |
||||
|
cbPrintSpan.Enabled = true; |
||||
|
//lblLastCount.Text = cbPrintCount.Text; |
||||
|
tsbPrint.Enabled = true; |
||||
|
btnChoiceMaterial.Enabled = true; |
||||
|
groupBox3.Enabled = true; |
||||
|
LockPrintMode(-1); |
||||
|
} |
||||
|
|
||||
|
int printtimer = 0; |
||||
|
|
||||
|
private void timer2_Tick(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!btnStart.Enabled&&btnStop.Enabled) |
||||
|
{ |
||||
|
int span=int.Parse(cbPrintSpan.Text.Trim('s')); |
||||
|
if (printtimer >= span) |
||||
|
{ |
||||
|
CodeCreatePrint(); |
||||
|
printtimer = 0; |
||||
|
var lastcount = int.Parse(lblLastCount.Text) - 1; |
||||
|
lblLastCount.Text = lastcount + ""; |
||||
|
if (lastcount <= 0) |
||||
|
{ |
||||
|
btnStop_Click(sender, e); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
printtimer++; |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
printtimer = 0; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void comMachine_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
var selectmachine = comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine != null && !string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
var mouldList = _agent.InvokeServiceFunction<List<MachineInfoModels>>(B9BasicService.MachineInfoModelBLL_GetAllList.ToString(), new MachineInfoModels { MID = "INJ_MODEL" }).OrderBy(p => p.MODELCODE).ToList(); |
||||
|
mouldList.Insert(0, new MachineInfoModels { }); |
||||
|
cbMould.DisplayMember = "MODELNAME"; |
||||
|
cbMould.ValueMember = "MODELCODE"; |
||||
|
cbMould.DataSource = mouldList.ToList(); |
||||
|
|
||||
|
if (selectmachine.ISCONTROL == "1") |
||||
|
{ |
||||
|
HideTimerPrint(true); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
HideTimerPrint(false); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void btnStartFileScan_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
var selectmachine= comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine != null&&!string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
txtFilePath.Text = selectmachine.EQUIPMENT_DIRECTORY; |
||||
|
var columns = _agent.InvokeServiceFunction<DataResult<List<ProcessParameter>>>("ProcessParameterBLL_GetAllList", new ProcessParameter { MACHINECODDE = selectmachine.MACHINECODDE }).Result; |
||||
|
if (columns != null) |
||||
|
{ |
||||
|
paramcolumns = columns; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
paramcolumns = new List<ProcessParameter>(); |
||||
|
} |
||||
|
lvParamRecords.Items.Clear(); |
||||
|
lvParamRecords.Columns.Clear(); |
||||
|
var c1=lvParamRecords.Columns.Add("扫描时间"); |
||||
|
c1.Width=180; |
||||
|
foreach (var col in paramcolumns) |
||||
|
{ |
||||
|
var c= lvParamRecords.Columns.Add(col.PARADESCRIBE); |
||||
|
} |
||||
|
if (selectmachine.EQUIPMENT_TYPE_CODE == "HaitianInjection") |
||||
|
{ |
||||
|
sync = new FileSynchronizers.HaitianInjectionFileSynchronizer(selectmachine); |
||||
|
} |
||||
|
else if (selectmachine.EQUIPMENT_TYPE_CODE == "EngelInjection") |
||||
|
{ |
||||
|
sync = new FileSynchronizers.EngelInjectionFileSynchronizer(selectmachine); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show("注塑机型号未设定!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
sync.NewRecordFound += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_NewRecordFound); |
||||
|
sync.ExceptionCatched += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_ExceptionCatched); |
||||
|
sync.Start(cbSkipHistory.Checked); |
||||
|
SetConnectState(1); |
||||
|
btnStartFileScan.Enabled = false; |
||||
|
btnStopFileScan.Enabled = true; |
||||
|
LockPrintMode(0); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show("请选择注塑机!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 设置连接状态 |
||||
|
/// </summary> |
||||
|
/// <param name="state">0:停止 1:正常 2:断开</param> |
||||
|
void SetConnectState(int state) |
||||
|
{ |
||||
|
switch (state) |
||||
|
{ |
||||
|
case 0: |
||||
|
{ |
||||
|
txtConnectState.Text = "扫描停止"; |
||||
|
picConnectState.Image = WinForm.Resource1.stop; |
||||
|
break; |
||||
|
} |
||||
|
case 1: |
||||
|
{ |
||||
|
txtConnectState.Text = "扫描正常"; |
||||
|
picConnectState.Image = WinForm.Resource1.reload; |
||||
|
break; |
||||
|
} |
||||
|
case 2: |
||||
|
{ |
||||
|
txtConnectState.Text = "连接断开"; |
||||
|
picConnectState.Image = WinForm.Resource1.no; |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 锁定打印模式 |
||||
|
/// </summary> |
||||
|
/// <param name="mode">-1 解锁; 0 联机; 1 手动; 2 定时;</param> |
||||
|
void LockPrintMode(int mode) |
||||
|
{ |
||||
|
for(int i=0;i<tpPrintMode.Controls.Count;i++) |
||||
|
{ |
||||
|
if(i==mode) |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = true; |
||||
|
} |
||||
|
else if (mode < 0) |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = true; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = false; |
||||
|
} |
||||
|
} |
||||
|
plPrintSetting.Enabled = mode < 0; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 隐藏定时打印模式 |
||||
|
/// </summary> |
||||
|
void HideTimerPrint(bool hide) |
||||
|
{ |
||||
|
if (hide) |
||||
|
{ |
||||
|
if (tpPrintMode.Controls.Contains(tpTimer)) |
||||
|
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide; |
||||
|
tpPrintMode.Controls.Remove(tpTimer); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
if (!tpPrintMode.Controls.Contains(tpTimer)) |
||||
|
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide; |
||||
|
tpPrintMode.Controls.Add(tpTimer); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
void sync_ExceptionCatched(object sender, FileSynchronizers.InjParamEventArgs e) |
||||
|
{ |
||||
|
this.Invoke((Action)(() => { |
||||
|
txtMessage.Text = e.Exception.Message; |
||||
|
SetConnectState(2); |
||||
|
})); |
||||
|
} |
||||
|
|
||||
|
void sync_NewRecordFound(object sender, FileSynchronizers.InjParamEventArgs e) |
||||
|
{ |
||||
|
this.Invoke((Action)(() => |
||||
|
{ |
||||
|
CodeCreatePrint(e.HeaderRow, e.DataRow, e.DataSeparator); |
||||
|
txtCurrentFile.Text = e.FileName; |
||||
|
txtLastScanTime.Text = e.RecordTime.ToString("hh:mm:ss"); |
||||
|
txtMessage.Text = e.DataRow; |
||||
|
var li = lvParamRecords.Items.Insert(0,e.RecordTime.ToString("yyyy-MM-dd hh:mm:ss")); |
||||
|
li.SubItems.AddRange(e.DataRow.Split(e.DataSeparator)); |
||||
|
if (lvParamRecords.Items.Count > 200) |
||||
|
{ |
||||
|
lvParamRecords.Items.RemoveAt(200); |
||||
|
} |
||||
|
SetConnectState(1); |
||||
|
})); |
||||
|
} |
||||
|
|
||||
|
private void btnStopFileScan_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (sync != null) |
||||
|
{ |
||||
|
sync.Stop(); |
||||
|
} |
||||
|
SetConnectState(0); |
||||
|
btnStartFileScan.Enabled = true; |
||||
|
btnStopFileScan.Enabled = false; |
||||
|
LockPrintMode(-1); |
||||
|
} |
||||
|
|
||||
|
private void InjectionCodePrint_FormClosed(object sender, FormClosedEventArgs e) |
||||
|
{ |
||||
|
if (sync != null) |
||||
|
{ |
||||
|
sync.Stop(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void btnLockMachine_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
LockMachine(true); |
||||
|
|
||||
|
/* if (this.btnLockMachine.Tag.ToString().Equals("0")) |
||||
|
{ |
||||
|
|
||||
|
LockMachine(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
LockMachine(true); |
||||
|
}*/ |
||||
|
} |
||||
|
#region 设备锁定 |
||||
|
/// <summary> |
||||
|
/// 设备锁定 |
||||
|
/// </summary> |
||||
|
/// <param name="lockFlag"></param> |
||||
|
private void LockMachine(bool lockFlag) |
||||
|
{ |
||||
|
this.comMachine.Enabled = lockFlag; |
||||
|
//this.comProductType.Enabled = lockFlag; |
||||
|
if (lockFlag) |
||||
|
{ |
||||
|
|
||||
|
this.btnLockMachine.Text = "锁定"; |
||||
|
this.btnLockMachine.Tag = "0"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
ClientContext.MachineInfo = this.comMachine.SelectedItem as MachineInfo; |
||||
|
string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"]; |
||||
|
System.IO.File.WriteAllText(locationfile, this.comMachine.SelectedValue.ToString()); |
||||
|
this.btnLockMachine.Text = "解锁"; |
||||
|
this.btnLockMachine.Tag = "1"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
#endregion |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,118 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{25F672F4-55A6-41B3-82DA-84233786D991}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.MD.DAL</RootNamespace> |
||||
|
<AssemblyName>QMAPP.MD.DAL</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<SccProjectName>Svn</SccProjectName> |
||||
|
<SccLocalPath>Svn</SccLocalPath> |
||||
|
<SccAuxPath>Svn</SccAuxPath> |
||||
|
<SccProvider>SubversionScc</SccProvider> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="QMFrameWork.Common, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Log"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Log.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="SapInterface"> |
||||
|
<HintPath>..\..\DLL\SapInterface.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.configuration" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="ConfigDetailDAL.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="DefectDictDAL.cs" /> |
||||
|
<Compile Include="MaterialDAL.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="ParameterConfigEntityDAL.cs" /> |
||||
|
<Compile Include="PbomDAL.cs" /> |
||||
|
<Compile Include="CorpDAL.cs" /> |
||||
|
<Compile Include="DaiDAL.cs" /> |
||||
|
<Compile Include="EquipmentDAL.cs" /> |
||||
|
<Compile Include="FactoryDAL.cs" /> |
||||
|
<Compile Include="MaterialRouteDAL.cs" /> |
||||
|
<Compile Include="ProcessRouteDAL.cs" /> |
||||
|
<Compile Include="ProjectDAL.cs" /> |
||||
|
<Compile Include="ShiftDAL.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="TeamMemberDAL .cs" /> |
||||
|
<Compile Include="UserWithMachineDAL.cs" /> |
||||
|
<Compile Include="WorkCellDAL.cs" /> |
||||
|
<Compile Include="WorkCenterDAL.cs" /> |
||||
|
<Compile Include="TeamDAL.cs" /> |
||||
|
<Compile Include="WorkLocDAL.cs" /> |
||||
|
<Compile Include="MaterialClassDAL.cs" /> |
||||
|
<Compile Include="ScheduleDAL.cs" /> |
||||
|
<Compile Include="WorkCellStateDAL.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APPQ5\QMAPP.FJC.Entity\QMAPP.FJC.Entity.csproj"> |
||||
|
<Project>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</Project> |
||||
|
<Name>QMAPP.FJC.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.DAL\QMAPP.DAL.csproj"> |
||||
|
<Project>{407204CD-0256-4EDD-8A89-26EBF83D19A7}</Project> |
||||
|
<Name>QMAPP.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.MD.Entity\QMAPP.MD.Entity.csproj"> |
||||
|
<Project>{A80DFEE4-F3D0-4234-A2CC-E4DCE5000E7E}</Project> |
||||
|
<Name>QMAPP.MD.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,215 @@ |
|||||
|
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 QMAPP.MD.Entity.Bucket; |
||||
|
using QMAPP.FJC.DAL.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒信息 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class BucketInfoBLL : BaseBLL |
||||
|
{ |
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public DataResult<BucketInfo> Get(BucketInfo model) |
||||
|
{ |
||||
|
DataResult<BucketInfo> result = new DataResult<BucketInfo>(); |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new BucketInfoDAL().Get(model); |
||||
|
result.IsSuccess = true; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "获取异常"; |
||||
|
} |
||||
|
|
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetList(BucketInfo condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
DataPage dataPage = new BucketInfoDAL().GetList(condition, page); |
||||
|
|
||||
|
result.IsSuccess = true; |
||||
|
result.Result = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取列表异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "获取列表异常!"; |
||||
|
} |
||||
|
|
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <returns>全部集合</returns> |
||||
|
public List<BucketInfo> GetAllList() |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
//获取信息列表 |
||||
|
return new BucketInfoDAL().GetALL(); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取列表异常!" |
||||
|
}); |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public DataResult<int> Insert(BucketInfo info) |
||||
|
{ |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
//基本信息 |
||||
|
info.PID = Guid.NewGuid().ToString(); |
||||
|
info.CREATEUSER = this.LoginUser.UserID; |
||||
|
info.CREATEDATE = DateTime.Now.ToString(); |
||||
|
info.UPDATEUSER = info.CREATEUSER; |
||||
|
info.UPDATEDATE = info.CREATEDATE; |
||||
|
info.IsCheck = "0"; |
||||
|
BucketInfoDAL cmdDAL = new BucketInfoDAL(); |
||||
|
result.Result = cmdDAL.Insert(info); |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public DataResult Update(BucketInfo model) |
||||
|
{ |
||||
|
DataResult result = new DataResult(); |
||||
|
result.IsSuccess = true; |
||||
|
try |
||||
|
{ |
||||
|
BucketInfo info = new BucketInfoDAL().Get(model); |
||||
|
|
||||
|
//基本信息 |
||||
|
info.IsCheck = model.IsCheck; |
||||
|
info.BucketCode = model.BucketCode; |
||||
|
info.BucketName = model.BucketName; |
||||
|
info.CREATEUSER = model.CREATEUSER; |
||||
|
info.CREATEDATE = model.CREATEDATE; |
||||
|
info.UPDATEDATE = DateTime.Now.ToString(); |
||||
|
info.UPDATEUSER = this.LoginUser.UserID; |
||||
|
int temp = new BucketInfoDAL().Update(info); |
||||
|
|
||||
|
if (temp == 0) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = "更新失败!"; |
||||
|
return result; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "更新异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "更新异常"; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 删除 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string model) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
count = new BucketInfoDAL().Delete(model); |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,116 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.BLL; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.DAL.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.BLL.Dict; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using System.Data; |
||||
|
using QMAPP.FJC.DAL.MD; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Basic |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:配置表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年03月17日 |
||||
|
/// </summary> |
||||
|
public class AppConfigBLL : BaseBLL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public AppConfig Get(string code) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new AppConfigDAL().Get(code); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public AppConfig GetPID(AppConfig code) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new AppConfigDAL().GetPID(code); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
public DataResult<DataPage> GetList(AppConfig condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
result.IsSuccess = true; |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new AppConfigDAL().GetList(condition,page); |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public DataResult<int> Update(AppConfig info) |
||||
|
{ |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
result.IsSuccess = true; |
||||
|
result.Result = new AppConfigDAL().Update(info); |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public MaterialClass GetMATERIAL(string code) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
//查找物料号 |
||||
|
var MATERIAL = new MaterialDAL().Get(code); |
||||
|
var msg = ""; |
||||
|
var mater = new AppConfigDAL().GetMATERIAL(MATERIAL.MATERIAL_TYPE_CODE,ref msg); |
||||
|
mater.MATERIAL_TYPE_NAME = msg; |
||||
|
return mater; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,987 @@ |
|||||
|
using System; |
||||
|
using System.Text; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Windows.Forms; |
||||
|
using QM.Common; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.BLL.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using System.Linq; |
||||
|
using QMAPP.WinForm.Forms.Operation; |
||||
|
using System.IO.Ports; |
||||
|
using System.Management; |
||||
|
using System.Threading; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号:M11-2 |
||||
|
/// 作 用:搪塑条码打印 |
||||
|
/// 作 者:王庆男 |
||||
|
/// 编写日期:2015年05月28日 |
||||
|
///</summary> |
||||
|
public partial class SlushMoldingPrintForOldNewForm : Form |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 车型,A:B9车型,B:Q5车型 |
||||
|
/// </summary> |
||||
|
public string CarType { set; get; } |
||||
|
|
||||
|
List<MoldConfig> moldConfigList; |
||||
|
|
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 称重记录 |
||||
|
/// </summary> |
||||
|
public List<TSWeighRecore> List_tSWeighRecores = new List<TSWeighRecore>(); |
||||
|
|
||||
|
private string _cfgSlushMolding = null;// 称重区间 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 新建 |
||||
|
/// </summary> |
||||
|
public SlushMoldingPrintForOldNewForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
_cfgSlushMolding = GetAppConfigValue("SlushMolding"); |
||||
|
btnCommSend.Enabled = true; |
||||
|
serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived); |
||||
|
frmMain_Load(); |
||||
|
moldConfigList = new List<MoldConfig>(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体初始化 |
||||
|
/// </summary> |
||||
|
private void InitForm() |
||||
|
{ |
||||
|
//预留方法,用于B9\Q5功能差异 |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体加载 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void Form_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
InitForm(); |
||||
|
|
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
List<MoldConfig> recorders = null; |
||||
|
recorders = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
recorders = recorders.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
moldConfigList = recorders; |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
BasicData basicData = new BasicData(); |
||||
|
//加载搪塑设备列表 |
||||
|
//this.comMachineCode.DataSource = basicData.GetMachineInfoList(new string[] { EnumGeter.ProcessType.tangsu.GetHashCode().ToString() }, true); |
||||
|
//this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
//this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
//this.comMachineCode.SelectedIndex = 1; |
||||
|
//this.comMachineCode.Enabled = false; |
||||
|
|
||||
|
var machinelist = basicData.GetMachineInfoAndModelList(new string[] { }, true); |
||||
|
this.comMachineCode.DataSource = machinelist; |
||||
|
this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
|
||||
|
if (ClientContext.MachineInfo != null && !string.IsNullOrEmpty(ClientContext.MachineInfo.PID)) |
||||
|
{ |
||||
|
this.comMachineCode.SelectedValue = ClientContext.MachineInfo.MACHINECODDE; |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//颜色 |
||||
|
this.comColor.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.COLOR.ToString()); |
||||
|
this.comColor.DisplayMember = "VALUE"; |
||||
|
this.comColor.ValueMember = "KEY"; |
||||
|
this.comColor.SelectedValue = "1"; |
||||
|
//this.comColor.Enabled = false; |
||||
|
////AB腔 |
||||
|
this.comPosition.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.CAVITYTYPE.ToString()); |
||||
|
this.comPosition.DisplayMember = "VALUE"; |
||||
|
this.comPosition.ValueMember = "KEY"; |
||||
|
//this.comPosition.SelectedIndex = 0; |
||||
|
//this.comPosition.Enabled = false; |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text)) |
||||
|
{ |
||||
|
this.dtpDate.Text = DateTime.Now.ToString(); |
||||
|
} |
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
|
||||
|
#region 打印模板拷贝 |
||||
|
|
||||
|
PrintTempleCopyClass printClass = new PrintTempleCopyClass(); |
||||
|
printClass.CopyPrintTemple("SlushMoldingPrintForOldForm"); |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
|
||||
|
#region 设置模架号 |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
private void SetMouldStation() |
||||
|
{ |
||||
|
this.cBoxModelCode.DisplayMember = "VALUE"; |
||||
|
this.cBoxModelCode.ValueMember = "KEY"; |
||||
|
List<object> cBoxModelCodeList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
cBoxModelCodeList.Add(new { VALUE = m.MOLDVALUE, KEY = m.MOLDVALUE }); |
||||
|
} |
||||
|
this.cBoxModelCode.DataSource = cBoxModelCodeList; |
||||
|
this.cBoxModelCode.SelectedIndex = 0; |
||||
|
cBoxModelCode.Enabled = false; |
||||
|
|
||||
|
|
||||
|
this.comMouldNumber.DisplayMember = "VALUE"; |
||||
|
this.comMouldNumber.ValueMember = "KEY"; |
||||
|
List<object> comMouldNumberList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
comMouldNumberList.Add(new { VALUE = m.MOLDSTATION, KEY = m.MOLDSTATION }); |
||||
|
} |
||||
|
this.comMouldNumber.DataSource = comMouldNumberList; |
||||
|
this.comMouldNumber.SelectedIndex = 0; |
||||
|
|
||||
|
//判断是否有正在使用的模腔配置信息 |
||||
|
if (moldConfigList.Count(o => o.USED == 1) > 0) |
||||
|
{ |
||||
|
//获取该对象 |
||||
|
MoldConfig m = moldConfigList.First(o => o.USED == 1); |
||||
|
//设置模架选择项 |
||||
|
comMouldNumber.SelectedValue = m.MOLDSTATION; |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体保存事件 |
||||
|
/// <summary> |
||||
|
/// 窗体保存事件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbSave_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string message = this.ErrorCheck(); |
||||
|
if (!string.IsNullOrEmpty(message)) |
||||
|
{ |
||||
|
this.ErrorMessage.Text = message; |
||||
|
return; |
||||
|
} |
||||
|
List<Product> listRecorder = new List<Product>(); |
||||
|
//窗体数据校验 |
||||
|
//老搪塑只出黑色表皮,模腔号2 为高配B腔 模腔号3 为低配A腔,老搪塑只有一套模具,固定即可 |
||||
|
//搪塑机 |
||||
|
MachineInfo machineInfo = this.comMachineCode.SelectedItem as MachineInfo; |
||||
|
|
||||
|
#region 加载保存信息 |
||||
|
//for (int i = 0; i < 2; i++)//一次出2个码 |
||||
|
//{ |
||||
|
//零件属性 |
||||
|
Product recorder = new Product(); |
||||
|
ProductAttribute productAttribute = new ProductAttribute(); |
||||
|
//搪塑机编号 |
||||
|
productAttribute.VAL1 = machineInfo.MACHINENUM; |
||||
|
//产品类型(车型)成都固定 |
||||
|
productAttribute.VAL2 = "V"; |
||||
|
//高低配 成都无,且固定 |
||||
|
productAttribute.VAL3 = "B"; |
||||
|
//颜色 |
||||
|
productAttribute.VAL4 = this.comColor.SelectedValue.ToString(); |
||||
|
|
||||
|
string[] cb = new string[] { }; |
||||
|
if (!string.IsNullOrEmpty(this.cBoxModelCode.Text)) |
||||
|
{ |
||||
|
cb = this.cBoxModelCode.Text.Split('+'); |
||||
|
} |
||||
|
if (cb.Length <= 0) |
||||
|
{ |
||||
|
MessageBox.Show("模腔出错!"); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
//腔 |
||||
|
|
||||
|
|
||||
|
if (this.comPosition.Text == "搪塑B腔")//第一个为模腔号2 |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "B"; |
||||
|
|
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[0].PadLeft(2, '0'); |
||||
|
} |
||||
|
else if (this.comPosition.Text == "搪塑A腔") |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "A"; |
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[1].PadLeft(2, '0'); |
||||
|
} |
||||
|
|
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text.Trim())) |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(DateTime.Now).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(this.dtpDate.Text.Trim()).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
|
||||
|
recorder.MACHINECODDE = machineInfo.MACHINECODDE; |
||||
|
recorder.MACHINENAME = machineInfo.MACHINENAME; |
||||
|
recorder.PRODUCTSOURCE = EnumGeter.PRODUCTSOURCE.SELFMADE.GetHashCode().ToString(); |
||||
|
recorder.PRODUCTTYPE = EnumGeter.ProductType.biaopi.GetHashCode().ToString(); |
||||
|
|
||||
|
////添加加物料号 |
||||
|
//QMAPP.ServicesAgent.ServiceAgent agents = ClientContext.GetServiceAgent(); |
||||
|
//DataResult<string> materialcode = agents.InvokeServiceFunction<DataResult<string>>(B9BasicService.MaterialCodeBLL_GetMaterialCode.ToString(), productAttribute.VAL2); |
||||
|
//recorder.MATERIAL_CODE = materialcode.Result.ToString(); |
||||
|
|
||||
|
recorder.STATUS = EnumGeter.PRODUCTSTAUTS.QUALIFIED.GetHashCode().ToString(); |
||||
|
recorder.CURRENTPROCESS = EnumGeter.ProcessType.lengdaoruohua.GetHashCode().ToString(); |
||||
|
//ToDo:选择生产线 |
||||
|
//成都固定生产线 |
||||
|
recorder.PRODUCELINE = "IPVW371"; |
||||
|
|
||||
|
recorder.OUTFLAG = EnumGeter.PRODUCTOUTFLAG.INLIBRARY.GetHashCode().ToString(); |
||||
|
recorder.USINGSTATE = EnumGeter.PRODUCTUSESTATE.UNUSED.GetHashCode().ToString(); |
||||
|
recorder.PRODUCESHIFTTCODE = ClientContext.produceShift.PRODUCESHIFTTCODE; |
||||
|
recorder.PRODUCESHIFTNAME = ClientContext.produceShift.PRODUCESHIFTNAME; |
||||
|
recorder.CAPACITY = 1; |
||||
|
recorder.USINGCOUNT = 0; |
||||
|
recorder.PRODUCTATTRIBUTE = productAttribute; |
||||
|
recorder.AddM = this.cbM.Checked; |
||||
|
listRecorder.Add(recorder); |
||||
|
//} |
||||
|
|
||||
|
#region 保存 |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataResult<List<PrintCode>> result = agent.InvokeServiceFunction<DataResult<List<PrintCode>>>(B9BasicService.ProductBLL_InsertListEpidermis.ToString(), listRecorder); |
||||
|
result_Save = result; |
||||
|
|
||||
|
btnCommSend_Click(sender, e); //发送信号 |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 先判定称重,再进行打印 |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
public DataResult<List<PrintCode>> result_Save { get; set; } |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
public void SaveProduct() |
||||
|
{ |
||||
|
//保存成功 |
||||
|
if (result_Save.IsSuccess) |
||||
|
{ |
||||
|
|
||||
|
#region 打印条码 |
||||
|
|
||||
|
this.DialogResult = System.Windows.Forms.DialogResult.OK; |
||||
|
string barCode = result_Save.Result.ToString(); |
||||
|
foreach (PrintCode item in result_Save.Result) |
||||
|
{ |
||||
|
QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo(); |
||||
|
ll.BarCode = item.MAINCODE + ",*" + item.PRODUCTCODE + "*" + "," + item.COLOR_CODE; |
||||
|
QM.Assist.PrintUtil.LabelList2.Add(ll); |
||||
|
|
||||
|
|
||||
|
//创建新行 |
||||
|
var row = new DataGridViewRow(); |
||||
|
if (DGView.Rows.Count == 0) |
||||
|
{ |
||||
|
var index = this.DGView.Rows.Add(); |
||||
|
row = DGView.Rows[index]; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.DGView.Rows.InsertCopy(0, 0); |
||||
|
row = DGView.Rows[0]; |
||||
|
} |
||||
|
//对datagridview赋值 |
||||
|
row.Cells["MAINCODE"].Value = item.MAINCODE; |
||||
|
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["CREATETIME"].Value = DateTime.Now; |
||||
|
if (DGView.Rows.Count > 200) |
||||
|
{ |
||||
|
DGView.Rows.RemoveAt(200); |
||||
|
} |
||||
|
|
||||
|
#region 保存称重记录 |
||||
|
|
||||
|
var Entity = new TSWeighRecore(); |
||||
|
Entity.MATERIAL_CODE = item.PRODUCTCODE; |
||||
|
Entity.PColour = item.COLOR_CODE; |
||||
|
Entity.ProductCode = item.MAINCODE; |
||||
|
|
||||
|
List_tSWeighRecores.Add(Entity); |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil(); |
||||
|
pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "temPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "dataPath"].ToString |
||||
|
()); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 重新设置当前使用和列表信息 |
||||
|
|
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
|
||||
|
#region 重新设置当前使用 |
||||
|
|
||||
|
|
||||
|
DataResult updateresult = agent.InvokeServiceFunction<DataResult>(B9BasicService.MoldConfigBLL_UpdateNextUsed.ToString(), new MoldConfig() { MOLDSTATION = moldStation }); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
moldConfigList = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
moldConfigList = moldConfigList.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
|
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
//MessageBox.Show("打印成功!"); |
||||
|
|
||||
|
this.ErrorMessage.Text = ""; |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show(result_Save.Msg); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体关闭 |
||||
|
/// <summary> |
||||
|
/// 窗体关闭 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 错误检测 |
||||
|
///<summary> |
||||
|
///错误检测 |
||||
|
///</summary> |
||||
|
///<returns></returns> |
||||
|
private string ErrorCheck() |
||||
|
{ |
||||
|
#region |
||||
|
string strMessage = ""; |
||||
|
//判断条码是否为空 |
||||
|
|
||||
|
////搪塑设备 |
||||
|
if (this.comMachineCode.SelectedValue == null || this.comMachineCode.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.SlushMachineNullValidate + "\r\n"; |
||||
|
} |
||||
|
////产品类别 |
||||
|
//if (this.comProType.SelectedValue == null || this.comProType.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ProductTypeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//颜色 |
||||
|
if (this.comColor.SelectedValue == null || this.comColor.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.ColorNullValidate + "\r\n"; |
||||
|
} |
||||
|
////高低配 |
||||
|
//if (this.comHOrL.SelectedValue == null || this.comHOrL.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.HLNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//腔 |
||||
|
if (this.comPosition.SelectedValue == null || this.comPosition.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.PositionNullValidate + "\r\n"; |
||||
|
} |
||||
|
////模腔号 |
||||
|
//if (this.cBoxModelCode.Text == null || this.cBoxModelCode.Text == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ModelCodeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
|
||||
|
return strMessage; |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void comMouldNumber_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
MoldConfig m = moldConfigList.First(o => o.MOLDSTATION == moldStation); |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <param name="field"></param> |
||||
|
/// <returns></returns> |
||||
|
public object GetPropertyValue(object info, string field) |
||||
|
{ |
||||
|
if (info == null) return null; |
||||
|
Type t = info.GetType(); |
||||
|
IEnumerable<System.Reflection.PropertyInfo> property = from pi in t.GetProperties() where pi.Name.ToLower() == field.ToLower() select pi; |
||||
|
return property.First().GetValue(info, null); |
||||
|
} |
||||
|
|
||||
|
#region 锁定解锁 |
||||
|
/// <summary> |
||||
|
/// 锁定解锁 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void lblLock_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (this.lblLock.Tag.ToString().Equals("0")) |
||||
|
{ |
||||
|
LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
LockType(true); |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 设备和类别锁定 |
||||
|
/// <summary> |
||||
|
/// 设备和类别锁定 |
||||
|
/// </summary> |
||||
|
/// <param name="lockFlag"></param> |
||||
|
private void LockType(bool lockFlag) |
||||
|
{ |
||||
|
this.comMachineCode.Enabled = lockFlag; |
||||
|
//this.comProductType.Enabled = lockFlag; |
||||
|
if (lockFlag) |
||||
|
{ |
||||
|
|
||||
|
this.lblLock.Text = "锁定工位"; |
||||
|
this.lblLock.Tag = "0"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"]; |
||||
|
System.IO.File.WriteAllText(locationfile, this.comMachineCode.SelectedValue.ToString()); |
||||
|
this.lblLock.Text = "解锁工位"; |
||||
|
this.lblLock.Tag = "1"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="myRtb"></param> |
||||
|
/// <param name="strTemp"></param> |
||||
|
public delegate void MyInitDelegate(RichTextBox myRtb, string strTemp); |
||||
|
public void DelegateInitMethod(RichTextBox myRtb, string strTemp) |
||||
|
{ |
||||
|
myRtb.AppendText(strTemp + System.Environment.NewLine); |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 所有的串口类型 |
||||
|
/// </summary> |
||||
|
public enum HardwareEnum |
||||
|
{ |
||||
|
Win32_Processor, |
||||
|
Win32_PhysicalMemory, |
||||
|
Win32_Keyboard, |
||||
|
Win32_PointingDevice, |
||||
|
Win32_FloppyDrive, |
||||
|
Win32_DiskDrive, |
||||
|
Win32_CDROMDrive, |
||||
|
Win32_BaseBoard, |
||||
|
Win32_BIOS, |
||||
|
Win32_ParallelPort, |
||||
|
Win32_SerialPort, |
||||
|
Win32_SerialPortConfiguration, |
||||
|
Win32_SoundDevice, |
||||
|
Win32_SystemSlot, |
||||
|
Win32_USBController, |
||||
|
Win32_NetworkAdapter, |
||||
|
Win32_NetworkAdapterConfiguration, |
||||
|
Win32_Printer, |
||||
|
Win32_PrinterConfiguration, |
||||
|
Win32_PrintJob, |
||||
|
Win32_TCPIPPrinterPort, |
||||
|
Win32_POTSModem, |
||||
|
Win32_POTSModemToSerialPort, |
||||
|
Win32_DesktopMonitor, |
||||
|
Win32_DisplayConfiguration, |
||||
|
Win32_DisplayControllerConfiguration, |
||||
|
Win32_VideoController, |
||||
|
Win32_VideoSettings, |
||||
|
Win32_TimeZone, |
||||
|
Win32_SystemDriver, |
||||
|
Win32_DiskPartition, |
||||
|
Win32_LogicalDisk, |
||||
|
Win32_LogicalDiskToPartition, |
||||
|
Win32_LogicalMemoryConfiguration, |
||||
|
Win32_PageFile, |
||||
|
Win32_PageFileSetting, |
||||
|
Win32_BootConfiguration, |
||||
|
Win32_ComputerSystem, |
||||
|
Win32_OperatingSystem, |
||||
|
Win32_StartupCommand, |
||||
|
Win32_Service, |
||||
|
Win32_Group, |
||||
|
Win32_GroupUser, |
||||
|
Win32_UserAccount, |
||||
|
Win32_Process, |
||||
|
Win32_Thread, |
||||
|
Win32_Share, |
||||
|
Win32_NetworkClient, |
||||
|
Win32_NetworkProtocol, |
||||
|
Win32_PnPEntity, |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取所有串口数据(2) |
||||
|
/// </summary> |
||||
|
public static string[] MulGetHardwareInfo(HardwareEnum hardType, string propKey) |
||||
|
{ |
||||
|
|
||||
|
List<string> stringList = new List<string>(); |
||||
|
try |
||||
|
{ |
||||
|
|
||||
|
ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("select * from " + (object)hardType); |
||||
|
|
||||
|
foreach (ManagementBaseObject managementBaseObject in managementObjectSearcher.Get()) |
||||
|
{ |
||||
|
if (managementBaseObject.Properties[propKey].Value != null) |
||||
|
{ |
||||
|
string s = managementBaseObject.Properties[propKey].Value.ToString(); |
||||
|
int num = s.LastIndexOf("(COM"); |
||||
|
|
||||
|
if (num != -1 && char.IsNumber(s, num + 4)) |
||||
|
stringList.Add(managementBaseObject.Properties[propKey].Value.ToString()); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
managementObjectSearcher.Dispose(); |
||||
|
return stringList.ToArray(); |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("MulGetHardwareInfo!"); |
||||
|
return stringList.ToArray(); |
||||
|
} |
||||
|
finally |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取所有串口数据(1) |
||||
|
/// </summary> |
||||
|
private void frmMain_Load() |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string[] hardwareInfo = MulGetHardwareInfo(HardwareEnum.Win32_PnPEntity, "Name"); |
||||
|
|
||||
|
int length = hardwareInfo.Length; |
||||
|
List<ListItem> listItem = new List<ListItem>(); |
||||
|
|
||||
|
for (int index = 0; index < length; ++index) |
||||
|
{ |
||||
|
listItem.Add(new ListItem((string)hardwareInfo[index], (string)hardwareInfo[index])); |
||||
|
} |
||||
|
this.textBox1.DataSource = listItem; |
||||
|
this.textBox1.DisplayMember = "VALUE"; |
||||
|
this.textBox1.ValueMember = "KEY"; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("frmMain_Load!"); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
public string CodeName = string.Empty; |
||||
|
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string text = this.textBox1.SelectedValue.ToString(); |
||||
|
int num = text.LastIndexOf("COM"); |
||||
|
|
||||
|
if (num == -1) |
||||
|
return; |
||||
|
|
||||
|
char ch1 = text[num + 3]; |
||||
|
char ch2 = text[num + 4]; |
||||
|
|
||||
|
if ((int)ch2 == 41) |
||||
|
CodeName = "COM" + (object)ch1; |
||||
|
else |
||||
|
CodeName = "COM" + (object)ch1 + (object)ch2; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("comboBox1_SelectedIndexChanged!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public string Weigh_str = string.Empty; |
||||
|
private SerialPort serialPort1 = new SerialPort(); |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取设备返回结果 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void serialPort1_DataReceived(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
int bytesToRead = this.serialPort1.BytesToRead; |
||||
|
|
||||
|
if (bytesToRead == 0) |
||||
|
return; |
||||
|
|
||||
|
//TBRCV.Text = ""; |
||||
|
bool flag = true; |
||||
|
|
||||
|
while (flag) |
||||
|
{ |
||||
|
Thread.Sleep(50); |
||||
|
|
||||
|
if (this.serialPort1.BytesToRead == bytesToRead) |
||||
|
flag = false; |
||||
|
else |
||||
|
bytesToRead = this.serialPort1.BytesToRead; |
||||
|
} |
||||
|
|
||||
|
byte[] numArray1 = new byte[bytesToRead]; |
||||
|
this.serialPort1.Read(numArray1, 0, bytesToRead); |
||||
|
byte[] numArray2 = callcrc(numArray1, bytesToRead - 2); |
||||
|
string str = string.Empty; |
||||
|
|
||||
|
for (int index = 0; index < numArray1.Length; ++index) |
||||
|
str = (int)numArray1[index] >= 16 ? str + Convert.ToString(numArray1[index], 16) + " " : str + "0" + Convert.ToString(numArray1[index], 16) + " "; |
||||
|
|
||||
|
if ((int)numArray2[0] == (int)numArray1[bytesToRead - 2] && |
||||
|
(int)numArray2[1] == (int)numArray1[bytesToRead - 1]) |
||||
|
{ |
||||
|
if (!string.IsNullOrEmpty(_cfgSlushMolding)) |
||||
|
{ |
||||
|
var SP = _cfgSlushMolding.Split(','); |
||||
|
var SP_Begin = Convert.ToInt32(SP[0]); |
||||
|
var SP_End = Convert.ToInt32(SP[1]); |
||||
|
Weigh_str = str.ToUpper(); |
||||
|
//TBRCV.BeginInvoke(new MyInitDelegate(DelegateInitMethod), new object[] { TBRCV, str.ToUpper() }); |
||||
|
Weigh_str = Weigh_str.Trim(); |
||||
|
Weigh_str = Weigh_str.Substring(Weigh_str.Length - 11, 2) + Weigh_str.Substring(Weigh_str.Length - 8, 2); |
||||
|
Weigh_str = Convert.ToInt32(Weigh_str, 16).ToString(); |
||||
|
var Weigh_Num = Convert.ToInt32(Weigh_str); |
||||
|
if (SP_Begin <= Weigh_Num && Weigh_Num <= SP_End) |
||||
|
{ |
||||
|
SaveProduct(); |
||||
|
foreach (var t in List_tSWeighRecores) |
||||
|
{ |
||||
|
t.Weigh = Weigh_str; |
||||
|
agent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.DictService.TSWeighRecoreBLL_Insert.ToString(), t); |
||||
|
} |
||||
|
List_tSWeighRecores = new List<TSWeighRecore>(); |
||||
|
this.TBRCV.Text = str.ToUpper(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.TBRCV.Text = $"重量{Weigh_Num},超出{_cfgSlushMolding}安全区间!"; |
||||
|
MessageBox.Show($"重量{Weigh_Num},超出{_cfgSlushMolding}安全区间!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.TBRCV.Text = "未配置安全区间"; |
||||
|
MessageBox.Show("未配置安全区间!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Weigh_str = "接收错误"; |
||||
|
this.TBRCV.Text = str.ToUpper() + "接收错误 CRC有误"; |
||||
|
} |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("serialPort1_DataReceived!"); |
||||
|
} |
||||
|
} |
||||
|
public static byte[] strToToHexByte(string hexString) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
hexString = hexString.Replace(" ", ""); |
||||
|
|
||||
|
if (hexString.Length % 2 != 0) |
||||
|
hexString += "0"; |
||||
|
|
||||
|
byte[] numArray = new byte[hexString.Length / 2]; |
||||
|
|
||||
|
for (int index = 0; index < numArray.Length; ++index) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
numArray[index] = Convert.ToByte(hexString.Substring(index * 2, 2), 16); |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
int num = (int)MessageBox.Show("输入可能错误"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return numArray; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("strToToHexByte!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public static byte[] addCrcHexByte(byte[] strHexByte) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
byte[] numArray = new byte[strHexByte.Length + 2]; |
||||
|
|
||||
|
for (int index = 0; index < strHexByte.Length; ++index) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
numArray[index] = strHexByte[index]; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
int num = (int)MessageBox.Show("输入可能错误"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
byte[] numArray2 = callcrc(strHexByte, strHexByte.Length); |
||||
|
numArray[strHexByte.Length + 0] = numArray2[0]; |
||||
|
numArray[strHexByte.Length + 1] = numArray2[1]; |
||||
|
return numArray; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("addCrcHexByte!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public static byte[] callcrc(byte[] ss, int num) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
ushort num1 = ushort.MaxValue; |
||||
|
byte[] numArray = ss; |
||||
|
|
||||
|
for (byte index1 = 0; (int)index1 < num; ++index1) |
||||
|
{ |
||||
|
num1 ^= (ushort)numArray[(int)index1]; |
||||
|
|
||||
|
for (byte index2 = 0; (int)index2 < 8; ++index2) |
||||
|
{ |
||||
|
if (((int)num1 & 1) > 0) |
||||
|
num1 = (ushort)((uint)(ushort)((uint)num1 >> 1) ^ 40961U); |
||||
|
else |
||||
|
num1 >>= 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
byte num2 = (byte)((uint)num1 >> 8); |
||||
|
return new byte[2] |
||||
|
{ |
||||
|
(byte)((uint) num1 & (uint) byte.MaxValue), |
||||
|
num2 |
||||
|
}; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("callcrc!"); |
||||
|
return new byte[] { }; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开设备通讯 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnCom_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
if (CodeName == "") |
||||
|
{ |
||||
|
comboBox1_SelectedIndexChanged(sender, e); |
||||
|
} |
||||
|
|
||||
|
serialPort1.BaudRate = Convert.ToInt32(19200); |
||||
|
serialPort1.Parity = Parity.None; |
||||
|
serialPort1.DataBits = 8; |
||||
|
serialPort1.StopBits = StopBits.One; |
||||
|
serialPort1.ReadBufferSize = 4068; |
||||
|
serialPort1.WriteBufferSize = 4068; |
||||
|
serialPort1.ReadTimeout = 200; |
||||
|
serialPort1.WriteTimeout = 200; |
||||
|
serialPort1.PortName = CodeName; |
||||
|
serialPort1.Open(); |
||||
|
|
||||
|
this.TBSEND.Text = "连接设备"; |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("btnCom_Click!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 发送连接请求 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnCommSend_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try { |
||||
|
//btnCom_Click(); |
||||
|
if (serialPort1.IsOpen) |
||||
|
{ |
||||
|
byte[] toHexByte = strToToHexByte("01" + "03" + "0FA1" + "0002"); |
||||
|
byte[] buffer = addCrcHexByte(toHexByte); |
||||
|
serialPort1.Write(buffer, 0, buffer.Length); |
||||
|
//TBRCV.Text = ""; |
||||
|
TBSEND.Text = ""; |
||||
|
string str = string.Empty; |
||||
|
|
||||
|
for (int index = 0; index < buffer.Length; ++index) |
||||
|
str = (int)buffer[index] >= 16 ? str + Convert.ToString(buffer[index], 16) + " " : str + "0" + Convert.ToString(buffer[index], 16) + " "; |
||||
|
|
||||
|
TBSEND.Text = str.ToUpper(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
int num1 = (int)MessageBox.Show("请打开设备连接!"); |
||||
|
} |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
MessageBox.Show("btnCommSend_Click!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 查找配置表 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public string GetAppConfigValue(string pConfigCode) |
||||
|
{ |
||||
|
var AppConfig = agent.InvokeServiceFunction<AppConfig>(B9IPCService.AppConfigBLL_Get.ToString(), pConfigCode); |
||||
|
|
||||
|
if (AppConfig != null) |
||||
|
return AppConfig.Value; |
||||
|
else |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,245 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.DAL; |
||||
|
using QMAPP.Entity; |
||||
|
|
||||
|
namespace QMAPP.MD.DAL |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:缺陷表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年5月26日 |
||||
|
/// </summary> |
||||
|
public class DefectDictDAL : BaseDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public DefectDict Get(DefectDict info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<DefectDict>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(DefectDict 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 = "MFGCODE"; //缺陷编号排序 |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
// 对应多种数据库 |
||||
|
//string sqlChange = this.ChangeSqlByDB(sql, session); |
||||
|
page = session.GetDataPage<DefectDict>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<DefectDict> GetAllList() |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_AW_MENDRECORDERERP]"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetList<DefectDict>(sql, parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(DefectDict condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,MFGCODETYPE,MFGCODETYPENAME,MFGCODE,MFGNAME,TYPE_CODE "); |
||||
|
sqlBuilder.Append("FROM T_AW_MENDRECORDERERP where MFGCODETYPE = 'DEFECTCODE'and TYPE_CODE = 'N/a' "); |
||||
|
//whereBuilder.Append(" AND ( FLGDEL<> '1' or FLGDEL is null)"); //逻辑删除字段 |
||||
|
//查询条件 |
||||
|
|
||||
|
//查询条件 |
||||
|
if (string.IsNullOrEmpty(condition.MFGCODE) == false) |
||||
|
{ |
||||
|
sqlBuilder.Append($" AND MFGCODE like '%{condition.MFGCODE}%' "); |
||||
|
} |
||||
|
|
||||
|
return sqlBuilder.ToString(); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 信息是否重复 |
||||
|
/// <summary> |
||||
|
/// 判断名称是否存在 |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <returns>true:已存在;fasel:不存在。</returns> |
||||
|
public bool Exists(DefectDict info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_AW_MENDRECORDERERP"); |
||||
|
sqlBuilder.Append(" where MFGCODE = '" + info.MFGCODE + "' and MFGCODETYPE = 'DEFECTCODE'"); |
||||
|
if (!string.IsNullOrEmpty(info.PID)) |
||||
|
sqlBuilder.Append(" and PID != '" + info.PID + "' "); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(DefectDict info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<DefectDict>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(DefectDict info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<DefectDict>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(DefectDict info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("delete T_AW_MENDRECORDERERP "); |
||||
|
|
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,388 @@ |
|||||
|
<?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="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
|
<value>17, 17</value> |
||||
|
</metadata> |
||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
|
<data name="tsbSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value> |
||||
|
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 |
||||
|
</value> |
||||
|
</data> |
||||
|
<data name="tbtnSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value> |
||||
|
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 |
||||
|
</value> |
||||
|
</data> |
||||
|
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value> |
||||
|
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 |
||||
|
</value> |
||||
|
</data> |
||||
|
<metadata name="model.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="materialName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="materialCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="color.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
|
<value>127, 17</value> |
||||
|
</metadata> |
||||
|
</root> |
@ -0,0 +1,64 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.BLL; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.DAL.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.BLL.Dict; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using System.Data; |
||||
|
|
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Basic |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:配置表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年03月17日 |
||||
|
/// </summary> |
||||
|
public class MaterialBomConfigBLL : BaseBLL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public List<string> GetAutoInputBarCode(string pBomCode, string pWorkLoc) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new MaterialBomConfigDAL().GetAutoInputBarCode(pBomCode, pWorkLoc); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public List<MaterialBomConfig> Get(MaterialBomConfig info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new MaterialBomConfigDAL().Get(info); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,123 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.MD.Entity.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑打印记录 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_RawMaterialRecord")] |
||||
|
public class RawMaterialRecord : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 投料ID |
||||
|
/// </summary> |
||||
|
[Description("投料ID")] |
||||
|
[DBColumn(ColumnName = "RawMaterialPID", DataType = DbType.String)] |
||||
|
public string RawMaterialPID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 注塑条码 |
||||
|
/// </summary> |
||||
|
[Description("注塑条码")] |
||||
|
[DBColumn(ColumnName = "ProductCode", DataType = DbType.String)] |
||||
|
public string ProductCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料号 |
||||
|
/// </summary> |
||||
|
[Description("物料号")] |
||||
|
[DBColumn(ColumnName = "MaterialCode", DataType = DbType.String)] |
||||
|
public string MaterialCode { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料名称 |
||||
|
/// </summary> |
||||
|
[Description("物料名称")] |
||||
|
[DBColumn(ColumnName = "MaterialName", DataType = DbType.String)] |
||||
|
public string MaterialName { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设备编号 |
||||
|
/// </summary> |
||||
|
[Description("设备编号")] |
||||
|
[DBColumn(ColumnName = "MachineCode", DataType = DbType.String)] |
||||
|
public string MachineCode { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[DBColumn(ColumnName = "IsCheck", DataType = DbType.String)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)] |
||||
|
public string CREATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.String)] |
||||
|
public string CREATEDATE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改用户 |
||||
|
/// </summary> |
||||
|
[Description("修改用户")] |
||||
|
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)] |
||||
|
public string UPDATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改时间 |
||||
|
/// </summary> |
||||
|
[Description("修改时间")] |
||||
|
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.String)] |
||||
|
public string UPDATEDATE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 料筒 |
||||
|
/// </summary> |
||||
|
[Description("料筒")] |
||||
|
public string BucketCode { get; set; } |
||||
|
/// <summary> |
||||
|
/// 零件号 |
||||
|
/// </summary> |
||||
|
[Description("零件号")] |
||||
|
public string PartCode { get; set; } |
||||
|
/// <summary> |
||||
|
/// 批次号 |
||||
|
/// </summary> |
||||
|
[Description("批次号")] |
||||
|
public string BatchCode { get; set; } |
||||
|
/// <summary> |
||||
|
/// 流水号 |
||||
|
/// </summary> |
||||
|
[Description("流水号")] |
||||
|
public string SerialCode { get; set; } |
||||
|
public string BeginTime { get; set; } |
||||
|
public string EndTime { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.DefectDictModel>" %> |
||||
|
|
||||
|
<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)%> |
||||
|
<table id="editTable" cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<table> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.MFGCODE) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.MFGCODE)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.MFGNAME) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.MFGNAME)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
|
||||
|
</table> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.HiddenFor(p => p.PID)%> |
||||
|
<%=Html.HiddenFor(p => p.MFGCODETYPE)%> |
||||
|
<%=Html.HiddenFor(p => p.MFGCODETYPENAME)%> |
||||
|
<%=Html.HiddenFor(p => p.TYPE_CODE)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<script type="text/javascript"> |
||||
|
|
||||
|
function Save() { |
||||
|
if (isValidate() == false) { |
||||
|
return false; |
||||
|
} |
||||
|
submitByButton("Save"); |
||||
|
} |
||||
|
|
||||
|
$(function () { |
||||
|
|
||||
|
$('#FACTORY_CODE').combobox({ |
||||
|
panelWidth: '350' |
||||
|
|
||||
|
}); |
||||
|
|
||||
|
}); |
||||
|
</script> |
||||
|
</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", "List", "parent.closeAppWindow1();return false;")%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
@ -0,0 +1,227 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using QMAPP.Entity; |
||||
|
|
||||
|
namespace QMAPP.FJC.Entity.Injection |
||||
|
{ |
||||
|
///</summary> |
||||
|
/// 模块编号:M3-1 |
||||
|
/// 作 用:投料记录数据模型 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月09日 |
||||
|
///</summary> |
||||
|
[DBTable(TableName = "T_AW_INJECTIONRECORDER", TimeStampColumn = "UPDATEDATE")] |
||||
|
public class InjectionRecorderNEW : BaseEntity |
||||
|
{ |
||||
|
///<summary> |
||||
|
///主键 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
///<summary> |
||||
|
///物料名称 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MATERIALNAME", DataType = DbType.String)] |
||||
|
public string MATERIALNAME { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///物料码 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MATERIALCODE", DataType = DbType.String)] |
||||
|
public string MATERIALCODE { get; set; } |
||||
|
///<summary> |
||||
|
///物料码(模糊查询) |
||||
|
///</summary> |
||||
|
public string MATERIALCODETXT { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///0:原材料 1:织物衬布 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MATERIALTYPE", DataType = DbType.String)] |
||||
|
public string MATERIALTYPE { get; set; } |
||||
|
public string MATERIALTYPENAME { get; set; } |
||||
|
public string MATERIALTYPETXT { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///原材料批次号 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MATERIALBATCH", DataType = DbType.String)] |
||||
|
public string MATERIALBATCH { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///0:搪塑 1:注塑 2:浇注 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MACHINETYPE", DataType = DbType.String)] |
||||
|
public string MACHINETYPE { get; set; } |
||||
|
public string MACHINETYPENAME { get; set; } |
||||
|
public string MACHINETYPETXT { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///0:搪塑 |
||||
|
///1:注塑 |
||||
|
///9:浇注 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PROCESSTYPE", DataType = DbType.String)] |
||||
|
public string PROCESSTYPE { get; set; } |
||||
|
public string PROCESSTYPENAME { get; set; } |
||||
|
public string PROCESSTYPETXT { get; set; } |
||||
|
/// <summary> |
||||
|
/// 工序类型(Web端-搪塑投料记录使用) |
||||
|
/// </summary> |
||||
|
public string PROCESSTYPERECORD { get; set; } |
||||
|
/// <summary> |
||||
|
/// 工序类型(Web端-注塑投料记录使用) |
||||
|
/// </summary> |
||||
|
public string PROCESSTYPES { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///设备名称 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MACHINENAME", DataType = DbType.String)] |
||||
|
public string MACHINENAME { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///设备码 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)] |
||||
|
public string MACHINECODDE { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///注料顺序 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "INJECTIONINDEX", DataType = DbType.Int32)] |
||||
|
public int INJECTIONINDEX { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///上料口 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "INJECTIONTERMINAL", DataType = DbType.Int32)] |
||||
|
public int INJECTIONTERMINAL { get; set; } |
||||
|
public string INJECTIONTERMINALNAME { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///投料重量 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "METERIALWEIGHT", DataType = DbType.Decimal)] |
||||
|
public decimal METERIALWEIGHT { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///使用重量 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "USEDWEIGHTSUM", DataType = DbType.Decimal)] |
||||
|
public decimal USEDWEIGHTSUM { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///班次名称 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PRODUCESHIFTNAME", DataType = DbType.String)] |
||||
|
public string PRODUCESHIFTNAME { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///班次编码 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PRODUCESHIFTTCODE", DataType = DbType.String)] |
||||
|
public string PRODUCESHIFTTCODE { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///生产线 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PRODUCELINE", DataType = DbType.String)] |
||||
|
public string PRODUCELINE { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///料包号 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "PACKAGENO", DataType = DbType.String)] |
||||
|
public string PACKAGENO { get; set; } |
||||
|
|
||||
|
|
||||
|
///<summary> |
||||
|
///生产日期 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "MAKEDATE", DataType = DbType.DateTime)] |
||||
|
public DateTime MAKEDATE { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///有效期 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "LIMITTIME", DataType = DbType.Int32)] |
||||
|
public int LIMITTIME { get; set; } |
||||
|
|
||||
|
///<summary> |
||||
|
///有效期 |
||||
|
///</summary> |
||||
|
[DBColumn(ColumnName = "VALIDDATE", DataType = DbType.DateTime)] |
||||
|
public DateTime VALIDDATE { 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; } |
||||
|
|
||||
|
|
||||
|
///<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; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 错误信息 |
||||
|
/// </summary> |
||||
|
public string InfoError { get; set; } |
||||
|
/// <summary> |
||||
|
/// 导入时判断添加修改 |
||||
|
/// </summary> |
||||
|
public bool IsNewInfo { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 查询投料时间的至 |
||||
|
/// </summary> |
||||
|
public string CreateDateStart { get; set; } |
||||
|
/// <summary> |
||||
|
/// 查询投料时间的至 |
||||
|
/// </summary> |
||||
|
public string CreateDateEnd { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 本次注料重量 |
||||
|
/// </summary> |
||||
|
public string USEDWEIGHT { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 产品主键 |
||||
|
/// </summary> |
||||
|
public string MPPID { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProjectGuid>{3AECE013-AC67-4F6F-9DB4-36577345F428}</ProjectGuid> |
||||
|
<OutputType>WinExe</OutputType> |
||||
|
<RootNamespace>Stone.WinModuleTransWare</RootNamespace> |
||||
|
<AssemblyName>Stone.WinModuleTransWare</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<Deterministic>true</Deterministic> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Gm_WMS.DataAccess.DataService, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\Stone.Common.Dlls\Gm_WMS.DataAccess.DataService.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Interop.grproLib, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<EmbedInteropTypes>True</EmbedInteropTypes> |
||||
|
<HintPath>..\..\..\..\CD-MESNEW\DLL\Interop.grproLib.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="interop.speechlib"> |
||||
|
<HintPath>..\..\..\..\CD-MESNEW\DLL\interop.speechlib.dll</HintPath> |
||||
|
<EmbedInteropTypes>True</EmbedInteropTypes> |
||||
|
</Reference> |
||||
|
<Reference Include="PlaySound, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\Stone.Common.Dlls\PlaySound.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Stone.Common"> |
||||
|
<HintPath>..\Stone.Common.Dlls\Stone.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Stone.Entity"> |
||||
|
<HintPath>..\Stone.Common.Dlls\Stone.Entity.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Stone.User"> |
||||
|
<HintPath>..\Stone.Common.Dlls\Stone.User.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Deployment" /> |
||||
|
<Reference Include="System.Drawing" /> |
||||
|
<Reference Include="System.Windows.Forms" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
<Reference Include="WeifenLuo.WinFormsUI.Docking"> |
||||
|
<HintPath>..\Stone.Common.Dlls\WeifenLuo.WinFormsUI.Docking.dll</HintPath> |
||||
|
</Reference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Form1.cs"> |
||||
|
<SubType>Form</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Form1.Designer.cs"> |
||||
|
<DependentUpon>Form1.cs</DependentUpon> |
||||
|
</Compile> |
||||
|
<Compile Include="Program.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<EmbeddedResource Include="Form1.resx"> |
||||
|
<DependentUpon>Form1.cs</DependentUpon> |
||||
|
</EmbeddedResource> |
||||
|
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
|
<Generator>ResXFileCodeGenerator</Generator> |
||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
|
<SubType>Designer</SubType> |
||||
|
</EmbeddedResource> |
||||
|
<Compile Include="Properties\Resources.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DependentUpon>Resources.resx</DependentUpon> |
||||
|
</Compile> |
||||
|
<None Include="Properties\Settings.settings"> |
||||
|
<Generator>SettingsSingleFileGenerator</Generator> |
||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
|
</None> |
||||
|
<Compile Include="Properties\Settings.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DependentUpon>Settings.settings</DependentUpon> |
||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
|
</Compile> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Folder Include="BasicData\" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
</Project> |
@ -0,0 +1,158 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<BusinessDllList> |
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>CorpBLL</ServiceName> |
||||
|
<ServiceDes>公司信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.CorpBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>FactoryBLL</ServiceName> |
||||
|
<ServiceDes>工厂信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.FactoryBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>WorkCenterBLL</ServiceName> |
||||
|
<ServiceDes>工作中心</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.WorkCenterBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>EquipmentBLL</ServiceName> |
||||
|
<ServiceDes>设备信息维护</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.EquipmentBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>TeamBLL</ServiceName> |
||||
|
<ServiceDes>班组信息维护</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.TeamBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ShiftBLL</ServiceName> |
||||
|
<ServiceDes>班次信息维护</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ShiftBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>WorkCellBLL</ServiceName> |
||||
|
<ServiceDes>工序信息维护</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.WorkCellBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>WorkLocBLL</ServiceName> |
||||
|
<ServiceDes>工位信息维护</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.WorkLocBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>DaiBLL</ServiceName> |
||||
|
<ServiceDes>采集数据接口</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.DaiBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ProcessRouteBLL</ServiceName> |
||||
|
<ServiceDes>工艺路线</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ProcessRouteBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>MaterialBLL</ServiceName> |
||||
|
<ServiceDes>物料信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.MaterialBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>MaterialClassBLL</ServiceName> |
||||
|
<ServiceDes>物料分类信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.MaterialClassBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>PbomBLL</ServiceName> |
||||
|
<ServiceDes>PBOM</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.PbomBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>DaiBLL</ServiceName> |
||||
|
<ServiceDes>采集信息测试</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.DaiBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>TeamMemberBLL</ServiceName> |
||||
|
<ServiceDes>班组成员</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.TeamMemberBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ParameterConfigEntityBLL</ServiceName> |
||||
|
<ServiceDes>加载参数设定</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ParameterConfigEntityBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ScheduleBLL</ServiceName> |
||||
|
<ServiceDes>排班</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ScheduleBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ProjectBLL</ServiceName> |
||||
|
<ServiceDes>项目号信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ProjectBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>UserWithMachineBLL</ServiceName> |
||||
|
<ServiceDes>能力矩阵配置</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.UserWithMachineBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>WorkCellStateBLL</ServiceName> |
||||
|
<ServiceDes>采集点-状态码配置</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.WorkCellStateBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>ConfigDetailBLL</ServiceName> |
||||
|
<ServiceDes>配置明细</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.ConfigDetailBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
<ServiceDefinition> |
||||
|
<ServiceName>DefectDictBLL</ServiceName> |
||||
|
<ServiceDes>缺陷信息</ServiceDes> |
||||
|
<FullLogicClassName>QMAPP.MD.BLL.DefectDictBLL</FullLogicClassName> |
||||
|
<AssemblyFile>QMAPP.MD.BLL.DLL</AssemblyFile> |
||||
|
</ServiceDefinition> |
||||
|
|
||||
|
</BusinessDllList> |
@ -0,0 +1,493 @@ |
|||||
|
namespace QMAPP.WinForm |
||||
|
{ |
||||
|
partial class MainForm |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 必需的设计器变量。 |
||||
|
/// </summary> |
||||
|
private System.ComponentModel.IContainer components = null; |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 清理所有正在使用的资源。 |
||||
|
/// </summary> |
||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> |
||||
|
protected override void Dispose(bool disposing) |
||||
|
{ |
||||
|
if (disposing && (components != null)) |
||||
|
{ |
||||
|
components.Dispose(); |
||||
|
} |
||||
|
base.Dispose(disposing); |
||||
|
} |
||||
|
|
||||
|
#region Windows 窗体设计器生成的代码 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设计器支持所需的方法 - 不要 |
||||
|
/// 使用代码编辑器修改此方法的内容。 |
||||
|
/// </summary> |
||||
|
private void InitializeComponent() |
||||
|
{ |
||||
|
this.components = new System.ComponentModel.Container(); |
||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); |
||||
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
||||
|
this.btnInjectGroup = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnInjectPrint = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnInjectPut = new System.Windows.Forms.ToolStripMenuItem(); // |
||||
|
this.btnInjectPutNEW = new System.Windows.Forms.ToolStripMenuItem(); // |
||||
|
this.btnInjectPrintForm = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.搪塑下线ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnvVWSinglePrint = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnvVWSinglePrintNew = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnSlushPut = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.浇注投料ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiFoamingFeed = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnOperateGroup = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnOperateStation = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.PrintCodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiPrintPlanlabel = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmDPAssmblyItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnMendGroup = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnMendOperate = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiPartReplace = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiCheck = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiLabelRegeneration = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiDefectRecording = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.btnUserOut = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiWarehouse = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiPutIn = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiTakeOut = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsiShipment = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.FrmPlace = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiQuery = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiProductInfo = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.andonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.AodonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiSetting = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiSetStartUp = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.tsmiUserManage = new System.Windows.Forms.ToolStripMenuItem(); |
||||
|
this.statusStrip1 = new System.Windows.Forms.StatusStrip(); |
||||
|
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
|
this.tslServerHost = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
|
this.tsslblOPCStatus = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
|
this.tsslblIps = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
|
this.timer1 = new System.Windows.Forms.Timer(this.components); |
||||
|
this.menuStrip1.SuspendLayout(); |
||||
|
this.statusStrip1.SuspendLayout(); |
||||
|
this.SuspendLayout(); |
||||
|
// |
||||
|
// menuStrip1 |
||||
|
// |
||||
|
this.menuStrip1.Font = new System.Drawing.Font("微软雅黑", 13F); |
||||
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.btnInjectGroup, |
||||
|
this.搪塑下线ToolStripMenuItem, |
||||
|
this.浇注投料ToolStripMenuItem, |
||||
|
this.btnOperateGroup, |
||||
|
this.btnMendGroup, |
||||
|
this.btnUserOut, |
||||
|
this.tsmiWarehouse, |
||||
|
this.tsiShipment, |
||||
|
this.tsmiQuery, |
||||
|
this.andonToolStripMenuItem, |
||||
|
this.tsmiSetting}); |
||||
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0); |
||||
|
this.menuStrip1.Name = "menuStrip1"; |
||||
|
this.menuStrip1.Size = new System.Drawing.Size(1203, 32); |
||||
|
this.menuStrip1.TabIndex = 1; |
||||
|
this.menuStrip1.Text = "menuStrip1"; |
||||
|
// |
||||
|
// btnInjectGroup |
||||
|
// |
||||
|
this.btnInjectGroup.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.btnInjectPrint, |
||||
|
this.btnInjectPut, |
||||
|
this.btnInjectPutNEW, |
||||
|
this.btnInjectPrintForm}); |
||||
|
this.btnInjectGroup.Name = "btnInjectGroup"; |
||||
|
this.btnInjectGroup.Size = new System.Drawing.Size(94, 28); |
||||
|
this.btnInjectGroup.Text = "注塑下线"; |
||||
|
// |
||||
|
// btnInjectPrint |
||||
|
// |
||||
|
this.btnInjectPrint.Name = "btnInjectPrint"; |
||||
|
this.btnInjectPrint.Size = new System.Drawing.Size(188, 28); |
||||
|
this.btnInjectPrint.Text = "注塑条码打印"; |
||||
|
this.btnInjectPrint.Click += new System.EventHandler(this.btnInjectPrint_Click); |
||||
|
// |
||||
|
// btnInjectPut |
||||
|
// |
||||
|
this.btnInjectPut.Name = "btnInjectPut"; |
||||
|
this.btnInjectPut.Size = new System.Drawing.Size(188, 28); |
||||
|
this.btnInjectPut.Text = "注塑投料"; |
||||
|
this.btnInjectPut.Click += new System.EventHandler(this.btnInjectPut_Click); |
||||
|
// |
||||
|
// btnInjectPutNEW |
||||
|
// |
||||
|
this.btnInjectPutNEW.Name = "btnInjectPutNEW"; |
||||
|
this.btnInjectPutNEW.Size = new System.Drawing.Size(188, 28); |
||||
|
this.btnInjectPutNEW.Text = "注塑投料新版"; |
||||
|
this.btnInjectPutNEW.Click += new System.EventHandler(this.btnInjectPutNEW_Click); |
||||
|
// |
||||
|
// btnInjectPutNEW |
||||
|
// |
||||
|
this.btnInjectPrintForm.Name = "btnInjectPrintForm"; |
||||
|
this.btnInjectPrintForm.Size = new System.Drawing.Size(188, 28); |
||||
|
this.btnInjectPrintForm.Text = "注塑条码补打"; |
||||
|
this.btnInjectPrintForm.Click += new System.EventHandler(this.btnInjectPrintForm_Click); |
||||
|
// |
||||
|
// 搪塑下线ToolStripMenuItem |
||||
|
// |
||||
|
this.搪塑下线ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.btnvVWSinglePrint, |
||||
|
this.btnvVWSinglePrintNew, |
||||
|
this.btnSlushPut}); |
||||
|
this.搪塑下线ToolStripMenuItem.Name = "搪塑下线ToolStripMenuItem"; |
||||
|
this.搪塑下线ToolStripMenuItem.Size = new System.Drawing.Size(94, 28); |
||||
|
this.搪塑下线ToolStripMenuItem.Text = "搪塑下线"; |
||||
|
// |
||||
|
// btnvVWSinglePrint |
||||
|
// |
||||
|
this.btnvVWSinglePrint.Name = "btnvVWSinglePrint"; |
||||
|
this.btnvVWSinglePrint.Size = new System.Drawing.Size(152, 28); |
||||
|
this.btnvVWSinglePrint.Text = "条码打印"; |
||||
|
this.btnvVWSinglePrint.Click += new System.EventHandler(this.btnvVWSinglePrint_Click); |
||||
|
// |
||||
|
// btnvVWSinglePrintNew |
||||
|
// |
||||
|
this.btnvVWSinglePrintNew.Name = "btnvVWSinglePrintNew"; |
||||
|
this.btnvVWSinglePrintNew.Size = new System.Drawing.Size(152, 28); |
||||
|
this.btnvVWSinglePrintNew.Text = "称重打印"; |
||||
|
this.btnvVWSinglePrintNew.Click += new System.EventHandler(this.btnvVWSinglePrintNew_Click); |
||||
|
// |
||||
|
// btnSlushPut |
||||
|
// |
||||
|
this.btnSlushPut.Name = "btnSlushPut"; |
||||
|
this.btnSlushPut.Size = new System.Drawing.Size(152, 28); |
||||
|
this.btnSlushPut.Text = "搪塑投料"; |
||||
|
this.btnSlushPut.Click += new System.EventHandler(this.btnSlushPut_Click); |
||||
|
// |
||||
|
// 浇注投料ToolStripMenuItem |
||||
|
// |
||||
|
this.浇注投料ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.tsmiFoamingFeed}); |
||||
|
this.浇注投料ToolStripMenuItem.Name = "浇注投料ToolStripMenuItem"; |
||||
|
this.浇注投料ToolStripMenuItem.Size = new System.Drawing.Size(94, 28); |
||||
|
this.浇注投料ToolStripMenuItem.Text = "浇注投料"; |
||||
|
// |
||||
|
// tsmiFoamingFeed |
||||
|
// |
||||
|
this.tsmiFoamingFeed.Name = "tsmiFoamingFeed"; |
||||
|
this.tsmiFoamingFeed.Size = new System.Drawing.Size(152, 28); |
||||
|
this.tsmiFoamingFeed.Text = "浇注投料"; |
||||
|
this.tsmiFoamingFeed.Click += new System.EventHandler(this.tsmiFoamingFeed_Click); |
||||
|
// |
||||
|
// btnOperateGroup |
||||
|
// |
||||
|
this.btnOperateGroup.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.btnOperateStation, |
||||
|
this.PrintCodeToolStripMenuItem, |
||||
|
this.tsmiPrintPlanlabel, |
||||
|
this.tsmDPAssmblyItem}); |
||||
|
this.btnOperateGroup.Name = "btnOperateGroup"; |
||||
|
this.btnOperateGroup.Size = new System.Drawing.Size(94, 28); |
||||
|
this.btnOperateGroup.Text = "加工工位"; |
||||
|
// |
||||
|
// btnOperateStation |
||||
|
// |
||||
|
this.btnOperateStation.Name = "btnOperateStation"; |
||||
|
this.btnOperateStation.Size = new System.Drawing.Size(224, 28); |
||||
|
this.btnOperateStation.Text = "加工操作"; |
||||
|
this.btnOperateStation.Click += new System.EventHandler(this.btnOperateStation_Click); |
||||
|
// |
||||
|
// PrintCodeToolStripMenuItem |
||||
|
// |
||||
|
this.PrintCodeToolStripMenuItem.Name = "PrintCodeToolStripMenuItem"; |
||||
|
this.PrintCodeToolStripMenuItem.Size = new System.Drawing.Size(224, 28); |
||||
|
this.PrintCodeToolStripMenuItem.Text = "总成装配条码打印"; |
||||
|
this.PrintCodeToolStripMenuItem.Click += new System.EventHandler(this.PrintCodeToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiPrintPlanlabel |
||||
|
// |
||||
|
this.tsmiPrintPlanlabel.Name = "tsmiPrintPlanlabel"; |
||||
|
this.tsmiPrintPlanlabel.Size = new System.Drawing.Size(224, 28); |
||||
|
this.tsmiPrintPlanlabel.Text = "门板计划标签打印"; |
||||
|
this.tsmiPrintPlanlabel.Click += new System.EventHandler(this.tsmiPrintPlanlabel_Click); |
||||
|
// |
||||
|
// tsmDPAssmblyItem |
||||
|
// |
||||
|
this.tsmDPAssmblyItem.Name = "tsmDPAssmblyItem"; |
||||
|
this.tsmDPAssmblyItem.ShowShortcutKeys = false; |
||||
|
this.tsmDPAssmblyItem.Size = new System.Drawing.Size(224, 28); |
||||
|
this.tsmDPAssmblyItem.Text = "门板FIS补码"; |
||||
|
this.tsmDPAssmblyItem.Click += new System.EventHandler(this.tsmDPAssmblyItem_Click); |
||||
|
// |
||||
|
// btnMendGroup |
||||
|
// |
||||
|
this.btnMendGroup.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.btnMendOperate, |
||||
|
this.tsmiPartReplace, |
||||
|
this.tsmiCheck, |
||||
|
this.tsmiLabelRegeneration, |
||||
|
this.tsmiDefectRecording}); |
||||
|
this.btnMendGroup.Name = "btnMendGroup"; |
||||
|
this.btnMendGroup.Size = new System.Drawing.Size(94, 28); |
||||
|
this.btnMendGroup.Text = "质量管理"; |
||||
|
// |
||||
|
// btnMendOperate |
||||
|
// |
||||
|
this.btnMendOperate.Name = "btnMendOperate"; |
||||
|
this.btnMendOperate.Size = new System.Drawing.Size(188, 28); |
||||
|
this.btnMendOperate.Text = "质量操作"; |
||||
|
this.btnMendOperate.Click += new System.EventHandler(this.btnMendOperate_Click); |
||||
|
// |
||||
|
// tsmiPartReplace |
||||
|
// |
||||
|
this.tsmiPartReplace.Name = "tsmiPartReplace"; |
||||
|
this.tsmiPartReplace.Size = new System.Drawing.Size(188, 28); |
||||
|
this.tsmiPartReplace.Text = "零件替换操作"; |
||||
|
this.tsmiPartReplace.Click += new System.EventHandler(this.替换操作ToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiCheck |
||||
|
// |
||||
|
this.tsmiCheck.Name = "tsmiCheck"; |
||||
|
this.tsmiCheck.Size = new System.Drawing.Size(188, 28); |
||||
|
this.tsmiCheck.Text = "抽检操作"; |
||||
|
this.tsmiCheck.Click += new System.EventHandler(this.抽检操作ToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiLabelRegeneration |
||||
|
// |
||||
|
this.tsmiLabelRegeneration.Name = "tsmiLabelRegeneration"; |
||||
|
this.tsmiLabelRegeneration.Size = new System.Drawing.Size(188, 28); |
||||
|
this.tsmiLabelRegeneration.Text = "总成条码替换"; |
||||
|
this.tsmiLabelRegeneration.Click += new System.EventHandler(this.总成条码替换ToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiDefectRecording |
||||
|
// |
||||
|
this.tsmiDefectRecording.Name = "tsmiDefectRecording"; |
||||
|
this.tsmiDefectRecording.Size = new System.Drawing.Size(188, 28); |
||||
|
this.tsmiDefectRecording.Text = "缺陷录入"; |
||||
|
this.tsmiDefectRecording.Click += new System.EventHandler(this.tsmiDefectRecording_Click); |
||||
|
// |
||||
|
// btnUserOut |
||||
|
// |
||||
|
this.btnUserOut.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
||||
|
this.btnUserOut.Name = "btnUserOut"; |
||||
|
this.btnUserOut.Size = new System.Drawing.Size(58, 28); |
||||
|
this.btnUserOut.Text = "注销"; |
||||
|
this.btnUserOut.Click += new System.EventHandler(this.注销ToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiWarehouse |
||||
|
// |
||||
|
this.tsmiWarehouse.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.tsmiPutIn, |
||||
|
this.tsmiTakeOut}); |
||||
|
this.tsmiWarehouse.Name = "tsmiWarehouse"; |
||||
|
this.tsmiWarehouse.Size = new System.Drawing.Size(112, 28); |
||||
|
this.tsmiWarehouse.Text = "出入库管理"; |
||||
|
// |
||||
|
// tsmiPutIn |
||||
|
// |
||||
|
this.tsmiPutIn.Name = "tsmiPutIn"; |
||||
|
this.tsmiPutIn.Size = new System.Drawing.Size(170, 28); |
||||
|
this.tsmiPutIn.Text = "入库管理"; |
||||
|
this.tsmiPutIn.Click += new System.EventHandler(this.toolStripMenuItem2_Click); |
||||
|
// |
||||
|
// tsmiTakeOut |
||||
|
// |
||||
|
this.tsmiTakeOut.Name = "tsmiTakeOut"; |
||||
|
this.tsmiTakeOut.Size = new System.Drawing.Size(170, 28); |
||||
|
this.tsmiTakeOut.Text = "计划外出库"; |
||||
|
this.tsmiTakeOut.Click += new System.EventHandler(this.tsmiTakeOut_Click); |
||||
|
// |
||||
|
// tsiShipment |
||||
|
// |
||||
|
this.tsiShipment.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.FrmPlace}); |
||||
|
this.tsiShipment.Name = "tsiShipment"; |
||||
|
this.tsiShipment.Size = new System.Drawing.Size(94, 28); |
||||
|
this.tsiShipment.Text = "发货管理"; |
||||
|
// |
||||
|
// FrmPlace |
||||
|
// |
||||
|
this.FrmPlace.Name = "FrmPlace"; |
||||
|
this.FrmPlace.Size = new System.Drawing.Size(152, 28); |
||||
|
this.FrmPlace.Text = "仪表发运"; |
||||
|
this.FrmPlace.Click += new System.EventHandler(this.FrmPlace_Click); |
||||
|
// |
||||
|
// tsmiQuery |
||||
|
// |
||||
|
this.tsmiQuery.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.tsmiProductInfo}); |
||||
|
this.tsmiQuery.Name = "tsmiQuery"; |
||||
|
this.tsmiQuery.Size = new System.Drawing.Size(94, 28); |
||||
|
this.tsmiQuery.Text = "信息查询"; |
||||
|
// |
||||
|
// tsmiProductInfo |
||||
|
// |
||||
|
this.tsmiProductInfo.Name = "tsmiProductInfo"; |
||||
|
this.tsmiProductInfo.Size = new System.Drawing.Size(188, 28); |
||||
|
this.tsmiProductInfo.Text = "产品状态查询"; |
||||
|
this.tsmiProductInfo.Click += new System.EventHandler(this.tsmiProductInfo_Click); |
||||
|
// |
||||
|
// andonToolStripMenuItem |
||||
|
// |
||||
|
this.andonToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.AodonToolStripMenuItem}); |
||||
|
this.andonToolStripMenuItem.Name = "andonToolStripMenuItem"; |
||||
|
this.andonToolStripMenuItem.Size = new System.Drawing.Size(116, 28); |
||||
|
this.andonToolStripMenuItem.Text = "Andon呼叫"; |
||||
|
// |
||||
|
// AodonToolStripMenuItem |
||||
|
// |
||||
|
this.AodonToolStripMenuItem.Name = "AodonToolStripMenuItem"; |
||||
|
this.AodonToolStripMenuItem.Size = new System.Drawing.Size(152, 28); |
||||
|
this.AodonToolStripMenuItem.Text = "报警呼叫"; |
||||
|
this.AodonToolStripMenuItem.Click += new System.EventHandler(this.AodonToolStripMenuItem_Click); |
||||
|
// |
||||
|
// tsmiSetting |
||||
|
// |
||||
|
this.tsmiSetting.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.tsmiSetStartUp, |
||||
|
this.tsmiUserManage}); |
||||
|
this.tsmiSetting.Name = "tsmiSetting"; |
||||
|
this.tsmiSetting.Size = new System.Drawing.Size(58, 28); |
||||
|
this.tsmiSetting.Text = "设置"; |
||||
|
// |
||||
|
// tsmiSetStartUp |
||||
|
// |
||||
|
this.tsmiSetStartUp.Name = "tsmiSetStartUp"; |
||||
|
this.tsmiSetStartUp.Size = new System.Drawing.Size(260, 28); |
||||
|
this.tsmiSetStartUp.Text = "设置当前界面为启动页"; |
||||
|
this.tsmiSetStartUp.Click += new System.EventHandler(this.tsmiSetStartUp_Click); |
||||
|
// |
||||
|
// tsmiUserManage |
||||
|
// |
||||
|
this.tsmiUserManage.Name = "tsmiUserManage"; |
||||
|
this.tsmiUserManage.Size = new System.Drawing.Size(260, 28); |
||||
|
this.tsmiUserManage.Text = "用户管理"; |
||||
|
this.tsmiUserManage.Click += new System.EventHandler(this.tsmiUserManage_Click); |
||||
|
// |
||||
|
// statusStrip1 |
||||
|
// |
||||
|
this.statusStrip1.Font = new System.Drawing.Font("微软雅黑", 12F); |
||||
|
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
|
this.toolStripStatusLabel1, |
||||
|
this.tslServerHost, |
||||
|
this.tsslblOPCStatus, |
||||
|
this.tsslblIps}); |
||||
|
this.statusStrip1.Location = new System.Drawing.Point(0, 357); |
||||
|
this.statusStrip1.Name = "statusStrip1"; |
||||
|
this.statusStrip1.Size = new System.Drawing.Size(1203, 30); |
||||
|
this.statusStrip1.TabIndex = 2; |
||||
|
this.statusStrip1.Text = "statusStrip1"; |
||||
|
// |
||||
|
// toolStripStatusLabel1 |
||||
|
// |
||||
|
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; |
||||
|
this.toolStripStatusLabel1.Size = new System.Drawing.Size(171, 25); |
||||
|
this.toolStripStatusLabel1.Text = "toolStripStatusLabel1"; |
||||
|
// |
||||
|
// tslServerHost |
||||
|
// |
||||
|
this.tslServerHost.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left; |
||||
|
this.tslServerHost.Name = "tslServerHost"; |
||||
|
this.tslServerHost.Padding = new System.Windows.Forms.Padding(0, 0, 15, 0); |
||||
|
this.tslServerHost.Size = new System.Drawing.Size(19, 25); |
||||
|
// |
||||
|
// tsslblOPCStatus |
||||
|
// |
||||
|
this.tsslblOPCStatus.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left; |
||||
|
this.tsslblOPCStatus.Name = "tsslblOPCStatus"; |
||||
|
this.tsslblOPCStatus.Padding = new System.Windows.Forms.Padding(0, 0, 15, 0); |
||||
|
this.tsslblOPCStatus.Size = new System.Drawing.Size(99, 25); |
||||
|
this.tsslblOPCStatus.Text = "OPC服务:"; |
||||
|
this.tsslblOPCStatus.Visible = false; |
||||
|
// |
||||
|
// tsslblIps |
||||
|
// |
||||
|
this.tsslblIps.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left; |
||||
|
this.tsslblIps.Name = "tsslblIps"; |
||||
|
this.tsslblIps.Padding = new System.Windows.Forms.Padding(0, 0, 15, 0); |
||||
|
this.tsslblIps.Size = new System.Drawing.Size(92, 25); |
||||
|
this.tsslblIps.Text = "本机IP:"; |
||||
|
// |
||||
|
// timer1 |
||||
|
// |
||||
|
this.timer1.Enabled = true; |
||||
|
this.timer1.Interval = 5000; |
||||
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); |
||||
|
// |
||||
|
// MainForm |
||||
|
// |
||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
|
this.ClientSize = new System.Drawing.Size(1203, 387); |
||||
|
this.Controls.Add(this.statusStrip1); |
||||
|
this.Controls.Add(this.menuStrip1); |
||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
|
this.IsMdiContainer = true; |
||||
|
this.MainMenuStrip = this.menuStrip1; |
||||
|
this.Name = "MainForm"; |
||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
||||
|
this.Text = "富维安道拓成都数字化工厂"; |
||||
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); |
||||
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); |
||||
|
this.Load += new System.EventHandler(this.MainForm_Load); |
||||
|
this.menuStrip1.ResumeLayout(false); |
||||
|
this.menuStrip1.PerformLayout(); |
||||
|
this.statusStrip1.ResumeLayout(false); |
||||
|
this.statusStrip1.PerformLayout(); |
||||
|
this.ResumeLayout(false); |
||||
|
this.PerformLayout(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
private System.Windows.Forms.MenuStrip menuStrip1; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnInjectGroup; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnInjectPut; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnInjectPutNEW; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnInjectPrintForm; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnOperateGroup; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnOperateStation; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnMendGroup; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnMendOperate; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnUserOut; |
||||
|
private System.Windows.Forms.StatusStrip statusStrip1; |
||||
|
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1; |
||||
|
private System.Windows.Forms.ToolStripMenuItem PrintCodeToolStripMenuItem; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsiShipment; |
||||
|
private System.Windows.Forms.ToolStripMenuItem FrmPlace; |
||||
|
private System.Windows.Forms.ToolStripMenuItem andonToolStripMenuItem; |
||||
|
private System.Windows.Forms.ToolStripMenuItem AodonToolStripMenuItem; |
||||
|
private System.Windows.Forms.Timer timer1; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiSetting; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiSetStartUp; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiWarehouse; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiPutIn; |
||||
|
private System.Windows.Forms.ToolStripStatusLabel tslServerHost; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiPrintPlanlabel; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiTakeOut; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiPartReplace; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiCheck; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiLabelRegeneration; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiQuery; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiProductInfo; |
||||
|
private System.Windows.Forms.ToolStripMenuItem 搪塑下线ToolStripMenuItem; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnvVWSinglePrint; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnvVWSinglePrintNew; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnInjectPrint; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmDPAssmblyItem; |
||||
|
private System.Windows.Forms.ToolStripMenuItem 浇注投料ToolStripMenuItem; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiFoamingFeed; |
||||
|
private System.Windows.Forms.ToolStripMenuItem btnSlushPut; |
||||
|
private System.Windows.Forms.ToolStripStatusLabel tsslblOPCStatus; |
||||
|
private System.Windows.Forms.ToolStripStatusLabel tsslblIps; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiUserManage; |
||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiDefectRecording; |
||||
|
} |
||||
|
} |
||||
|
|
@ -0,0 +1,30 @@ |
|||||
|
//------------------------------------------------------------------------------ |
||||
|
// <auto-generated> |
||||
|
// This code was generated by a tool. |
||||
|
// Runtime Version:4.0.30319.42000 |
||||
|
// |
||||
|
// Changes to this file may cause incorrect behavior and will be lost if |
||||
|
// the code is regenerated. |
||||
|
// </auto-generated> |
||||
|
//------------------------------------------------------------------------------ |
||||
|
|
||||
|
namespace Stone.WinModuleTransWare.Properties |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] |
||||
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
||||
|
{ |
||||
|
|
||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
||||
|
|
||||
|
public static Settings Default |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return defaultInstance; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.MD.Entity.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:投料记录 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_RawMaterial")] |
||||
|
public class RawMaterial : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 投料桶 |
||||
|
/// </summary> |
||||
|
[Description("投料桶")] |
||||
|
[DBColumn(ColumnName = "BucketCode", DataType = DbType.String)] |
||||
|
public string BucketCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 零件号 |
||||
|
/// </summary> |
||||
|
[Description("零件号")] |
||||
|
[DBColumn(ColumnName = "PartCode", DataType = DbType.String)] |
||||
|
public string PartCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 批次号 |
||||
|
/// </summary> |
||||
|
[Description("批次号")] |
||||
|
[DBColumn(ColumnName = "BatchCode", DataType = DbType.String)] |
||||
|
public string BatchCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 流水号 |
||||
|
/// </summary> |
||||
|
[Description("流水号")] |
||||
|
[DBColumn(ColumnName = "SerialCode", DataType = DbType.String)] |
||||
|
public string SerialCode { get; set; } |
||||
|
public string MaterialCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[DBColumn(ColumnName = "IsCheck", DataType = DbType.String)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)] |
||||
|
public string CREATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.String)] |
||||
|
public string CREATEDATE { get; set; } |
||||
|
public string CreateDateStart { get; set; } |
||||
|
public string CreateDateEnd { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改用户 |
||||
|
/// </summary> |
||||
|
[Description("修改用户")] |
||||
|
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)] |
||||
|
public string UPDATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改时间 |
||||
|
/// </summary> |
||||
|
[Description("修改时间")] |
||||
|
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.String)] |
||||
|
public string UPDATEDATE { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,395 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<!-- |
||||
|
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
|
--> |
||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<_PublishTargetUrl>C:\Users\Administrator\Desktop\发布\CDMES\MainDataWeb</_PublishTargetUrl> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<File Include="App_Data/Language/lang_en.xml"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="App_Data/Language/lang_zh-CN.xml"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="App_Data/Menu.xml"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="App_Data/Power.xml"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="App_Data/Print/exampleprint.html"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="App_Data/ProgramList.xml"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/Common.Logging.dll"> |
||||
|
<publishTime>02/26/2021 09:31:12</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/EmitMapper.dll"> |
||||
|
<publishTime>02/26/2021 09:31:12</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/log4net.dll"> |
||||
|
<publishTime>02/26/2021 09:31:46</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/Microsoft.Web.Infrastructure.dll"> |
||||
|
<publishTime>07/19/2012 10:59:52</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/MySql.Data.dll"> |
||||
|
<publishTime>02/26/2021 09:31:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/Newtonsoft.Json.dll"> |
||||
|
<publishTime>02/26/2021 09:31:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/Oracle.DataAccess.dll"> |
||||
|
<publishTime>02/26/2021 09:31:46</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.BLL.dll"> |
||||
|
<publishTime>05/24/2021 10:19:00</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.BLL.pdb"> |
||||
|
<publishTime>05/24/2021 10:19:00</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.Common.Web.dll"> |
||||
|
<publishTime>05/24/2021 10:19:00</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.Common.Web.pdb"> |
||||
|
<publishTime>05/24/2021 10:19:00</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.DAL.dll"> |
||||
|
<publishTime>05/24/2021 10:17:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.DAL.pdb"> |
||||
|
<publishTime>05/24/2021 10:17:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.Entity.dll"> |
||||
|
<publishTime>05/24/2021 10:17:35</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.Entity.pdb"> |
||||
|
<publishTime>05/24/2021 10:17:35</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.FJC.Entity.dll"> |
||||
|
<publishTime>05/24/2021 10:18:59</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.FJC.Entity.pdb"> |
||||
|
<publishTime>05/24/2021 10:18:59</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.MD.Entity.dll"> |
||||
|
<publishTime>05/24/2021 10:18:59</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.MD.Entity.pdb"> |
||||
|
<publishTime>05/24/2021 10:18:59</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.MD.Web.dll"> |
||||
|
<publishTime>05/24/2021 10:19:01</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.MD.Web.pdb"> |
||||
|
<publishTime>05/24/2021 10:19:01</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.ServicesAgent.dll"> |
||||
|
<publishTime>05/24/2021 10:17:35</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.ServicesAgent.dll.config"> |
||||
|
<publishTime>02/26/2021 09:27:15</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMAPP.ServicesAgent.pdb"> |
||||
|
<publishTime>05/24/2021 10:17:35</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.Common.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.Data.Attributes.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.Data.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.InfoValidate.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.Log.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.ServiceInterface.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/QMFrameWork.WebUI.dll"> |
||||
|
<publishTime>02/26/2021 09:34:05</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/Quartz.dll"> |
||||
|
<publishTime>02/26/2021 09:31:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/System.Web.Mvc.dll"> |
||||
|
<publishTime>02/26/2021 09:31:37</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/System.Web.Razor.dll"> |
||||
|
<publishTime>08/01/2012 09:06:22</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/System.Web.WebPages.Deployment.dll"> |
||||
|
<publishTime>07/10/2012 12:03:34</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/System.Web.WebPages.dll"> |
||||
|
<publishTime>07/10/2012 12:03:34</publishTime> |
||||
|
</File> |
||||
|
<File Include="bin/System.Web.WebPages.Razor.dll"> |
||||
|
<publishTime>07/10/2012 12:03:34</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/Img/11.png"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/Img/error.png"> |
||||
|
<publishTime>02/26/2021 09:16:28</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/back.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/cancel.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/cut.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/edit_add.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/edit_remove.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/filesave.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/help.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/no.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/ok.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/pencil.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/print.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/redo.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/reload.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/search.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/themes/icons/undo.png"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Content/Xml/Dictionary.xml"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Global.asax"> |
||||
|
<publishTime>02/26/2021 09:16:29</publishTime> |
||||
|
</File> |
||||
|
<File Include="Scripts/app/QMyPerceptTextbox.js"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Corp/CorpEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Dai/DaiEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Dai/DaiEditOld.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Dai/DaiList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Equipment/EquipmentEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Equipment/EquipmentList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Factory/FactoryEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Factory/FactoryList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/File/UploadFile.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Image/ImageUplod.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Login/Login.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Material/MaterialEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Material/MaterialList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/MaterialBinding/Edit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/MaterialBinding/List.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/MaterialClass/AddMaterialClass.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/MaterialClass/AddMaterialCode.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/MaterialClass/List.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ParameterConfigEntity/ParameterConfigEntityEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ParameterConfigEntity/ParameterConfigEntityList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomItemEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomItemList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomItemTree.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomItemTreeEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Pbom/PbomList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ProcessRoute/ProcessRouteEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ProcessRoute/ProcessRouteList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ProcessRoute/ProcessRouteWorkCellEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:30</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/ProcessRoute/ProcessRouteWorkCellList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Project/ProjectEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Project/ProjectList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Schedule/ScheduleEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Schedule/ScheduleList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/AppMaster.Master"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/CustomPageMaster.Master"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/Error.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/ExecuteJS.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/OutputImportMessage.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/PrintMaster.Master"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/PublicPrint.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/Scripts.ascx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/ShowProgress.ascx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shared/Site.Master"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shift/ShiftEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Shift/ShiftList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Team/TeamEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Team/TeamList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/TeamMember/List.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/TeamMember/TeamMemberEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/UserWithMachine/UserWithMachineAdd.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/UserWithMachine/UserWithMachineEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/UserWithMachine/UserWithMachineList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/Web.config"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCell/WorkCellEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCell/WorkCellList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCellState/Edit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCellState/List.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCenter/WorkCenterEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkCenter/WorkCenterList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkLoc/WorkLocEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkLoc/WorkLocEquipmentEdit.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkLoc/WorkLocEquipmentList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Views/WorkLoc/WorkLocList.aspx"> |
||||
|
<publishTime>02/26/2021 09:16:31</publishTime> |
||||
|
</File> |
||||
|
<File Include="Web.config"> |
||||
|
<publishTime>03/19/2021 09:13:40</publishTime> |
||||
|
</File> |
||||
|
</ItemGroup> |
||||
|
</Project> |
@ -0,0 +1,79 @@ |
|||||
|
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.BZD |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称 补打条码 |
||||
|
/// 作 者 张松男 |
||||
|
/// 编写日期 2021年05月24日 |
||||
|
/// </summary> |
||||
|
public class BarCodeReplacementModel : QDGModel |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] |
||||
|
[DGColumn(Hidden = true, PrimaryKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 补打类型 |
||||
|
/// </summary> |
||||
|
[Description("补打类型")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200, JsonUtl = "/Dict/GetFixedComboxSource?kind=BarCodeType")] |
||||
|
[InputType(inputType.combobox)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] |
||||
|
public string Type { get; set; } |
||||
|
/// <summary> |
||||
|
/// 补打条码 |
||||
|
/// </summary> |
||||
|
[Description("补打条码")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] |
||||
|
public string ProductCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] |
||||
|
public string CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 结束时间 |
||||
|
/// </summary> |
||||
|
[Description("结束时间")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.dateTimeBox)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden = true)] |
||||
|
public string EndTime { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 开始时间 |
||||
|
/// </summary> |
||||
|
[Description("开始时间")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.dateTimeBox)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center,Hidden = true)] |
||||
|
public string BeginTime { get; set; } |
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,240 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{063B6316-7154-4BD9-B546-21CCE4685235}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.FJC.DAL</RootNamespace> |
||||
|
<AssemblyName>QMAPP.FJC.DAL</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\DLL\oracle32\Oracle.DataAccess.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Common"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Log"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Log.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="SapInterface"> |
||||
|
<HintPath>..\..\DLL\SapInterface.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Andon\AndonCallDAL.cs" /> |
||||
|
<Compile Include="Andon\AndonSetDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialBomConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\ScanIPConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\AppConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\BarcodeRulesDAL.cs" /> |
||||
|
<Compile Include="Basic\BomHdrDAL.cs" /> |
||||
|
<Compile Include="Basic\CapacityDAL.cs" /> |
||||
|
<Compile Include="Basic\CorpDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoModelDAL.cs" /> |
||||
|
<Compile Include="Basic\MarkAddrDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialCodeInitDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialShelfTypeDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielVersionDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldSetDAL.cs" /> |
||||
|
<Compile Include="Basic\OperatorInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ParameterConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\PrintModelCopyDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessParameterDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteDAL.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Basic\ProcessRouteWithWorkCellSeqDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRuleDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessSetDAL.cs" /> |
||||
|
<Compile Include="Basic\ProduceShiftDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductBasicDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductCodeIdentityDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductMderuleDAL.cs" /> |
||||
|
<Compile Include="Basic\UnQualityProductDAL.cs" /> |
||||
|
<Compile Include="Basic\WorkOrder.cs" /> |
||||
|
<Compile Include="Bucket\TSWeighRecoreDAL.cs" /> |
||||
|
<Compile Include="Bucket\BucketMaterialClassDAL.cs" /> |
||||
|
<Compile Include="Bucket\RawMaterialDAL.cs" /> |
||||
|
<Compile Include="Bucket\BucketMaterialDAL.cs" /> |
||||
|
<Compile Include="Bucket\BucketInfoDAL.cs" /> |
||||
|
<Compile Include="Bucket\RawMaterialRecordDAL.cs" /> |
||||
|
<Compile Include="BZD\BarcodeRule.cs" /> |
||||
|
<Compile Include="BZD\BZDConfigDAL.cs" /> |
||||
|
<Compile Include="BZD\BarCodeReplacementDAL.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorderDAL.cs" /> |
||||
|
<Compile Include="BZD\DecimalToCharX.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeSetDAL.cs" /> |
||||
|
<Compile Include="CheckTime\CHECKTIMEDAL.cs" /> |
||||
|
<Compile Include="CompleteStatistics\CompleteStatisticsDAL.cs" /> |
||||
|
<Compile Include="EM\EmMeterReadingsDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReadingsDAL.cs" /> |
||||
|
<Compile Include="Equipment\AlarmTableDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipMentRecordDAL.cs" /> |
||||
|
<Compile Include="Equipment\MouldDAL.cs" /> |
||||
|
<Compile Include="Equipment\UsageLogDAL.cs" /> |
||||
|
<Compile Include="FileCopy\FileCopyRecordDAL.cs" /> |
||||
|
<Compile Include="FIS\DashBoardPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\DoorPlankPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\FisDAL.cs" /> |
||||
|
<Compile Include="FIS\FISInfoDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderSendDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrederSendDetialDAL.cs" /> |
||||
|
<Compile Include="FIS\FISPhraseDAL.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanDAL.cs" /> |
||||
|
<Compile Include="FrmPlace\FrmPlaceDAL.cs" /> |
||||
|
<Compile Include="InterfaceData\LeakInspectRecordDAL.cs" /> |
||||
|
<Compile Include="MachineCheck\MachineCheckDAL.cs" /> |
||||
|
<Compile Include="MD\MaterialDAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9M110DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4M110DAL.cs" /> |
||||
|
<Compile Include="Message\MessageDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipmentMonitorDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipMonitorSetDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoInfoDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoTypeDAL.cs" /> |
||||
|
<Compile Include="Operation\CastCounterDAL.cs" /> |
||||
|
<Compile Include="Operation\ElectricalCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\InjectionCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\MainCodeChangeDAL.cs" /> |
||||
|
<Compile Include="Operation\MainMolderStatusDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductCountDAL.cs" /> |
||||
|
<Compile Include="Operation\MaterialCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\PrintCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\PbomItemDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductEndDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductOutDAL.cs" /> |
||||
|
<Compile Include="Package\PackageDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MenderReasonDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ScrapRecordDAL.cs" /> |
||||
|
<Compile Include="Produce\ProductDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\ProductWithPlanDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\WorkOrderDAL.cs" /> |
||||
|
<Compile Include="QT\AnalyzerDAL.cs" /> |
||||
|
<Compile Include="QT\DAICacheDAL.cs" /> |
||||
|
<Compile Include="QT\DAIDAL.cs" /> |
||||
|
<Compile Include="QT\DAIItemDAL.cs" /> |
||||
|
<Compile Include="QT\DAIValidationDAL.cs" /> |
||||
|
<Compile Include="QT\MaterialBindingDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessParametersDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessRecordDAL.cs" /> |
||||
|
<Compile Include="QT\ProductStructureDAL.cs" /> |
||||
|
<Compile Include="QT\SendOrderConfigDAL.cs" /> |
||||
|
<Compile Include="QT\StateActionDAL.cs" /> |
||||
|
<Compile Include="QT\ValidatorDAL.cs" /> |
||||
|
<Compile Include="QT\WorkCellRunStateDAL.cs" /> |
||||
|
<Compile Include="SA\WorkcellQtyCountDAL.cs" /> |
||||
|
<Compile Include="SendManage\SendPlanRecordDAL.cs" /> |
||||
|
<Compile Include="Stocktaking\StocktakingDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\OutWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\InWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentAlarmDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentMaintainDAL.cs" /> |
||||
|
<Compile Include="WarnManage\WarnManageDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipmentMaintainDAL.cs" /> |
||||
|
<Compile Include="Example\UserManageDAL1.cs" /> |
||||
|
<Compile Include="Injection\InjectionRecorderDAL.cs" /> |
||||
|
<Compile Include="Operation\MainDAL.cs" /> |
||||
|
<Compile Include="Operation\MainOperationDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductAttributeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductInjectionDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ProducePlanDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MendRecorderDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\UnQualityDAL.cs" /> |
||||
|
<Compile Include="Produce\MainProductDAL.cs" /> |
||||
|
<Compile Include="ProductPetrospect\ProductArchivesDAL.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="FeedInManage\EpidermisDAL.cs" /> |
||||
|
<Compile Include="SendPlan\SendPlanInfoDAL.cs" /> |
||||
|
<Compile Include="WIPManage\DetentionDAL.cs" /> |
||||
|
<Compile Include="WIPManage\StorageAlarmDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInventoryDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPOutRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPProductCountDAL.cs" /> |
||||
|
<Compile Include="WipService\CheckWipDAL.cs" /> |
||||
|
<Compile Include="QdFis\mbM100DAL.cs" /> |
||||
|
<Compile Include="QdFis\ybbM100DAL.cs" /> |
||||
|
<Compile Include="ProductIn\ProductInDAL.cs" /> |
||||
|
<Compile Include="FuntionDescriptionDAL\FuntionDescriptionDAL.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.Entity\QMAPP.MD.Entity.csproj"> |
||||
|
<Project>{A80DFEE4-F3D0-4234-A2CC-E4DCE5000E7E}</Project> |
||||
|
<Name>QMAPP.MD.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.DAL\QMAPP.DAL.csproj"> |
||||
|
<Project>{407204CD-0256-4EDD-8A89-26EBF83D19A7}</Project> |
||||
|
<Name>QMAPP.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.FJC.Entity\QMAPP.FJC.Entity.csproj"> |
||||
|
<Project>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</Project> |
||||
|
<Name>QMAPP.FJC.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Folder Include="ProcessParameter\" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
File diff suppressed because it is too large
@ -0,0 +1,241 @@ |
|||||
|
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 QMAPP.MD.Entity.Bucket; |
||||
|
using QMAPP.FJC.DAL.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class BucketMaterialBLL : BaseBLL |
||||
|
{ |
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public DataResult<BucketMaterial> Get(BucketMaterial model) |
||||
|
{ |
||||
|
DataResult<BucketMaterial> result = new DataResult<BucketMaterial>(); |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new BucketMaterialDAL().Get(model); |
||||
|
result.IsSuccess = true; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "获取异常"; |
||||
|
} |
||||
|
|
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetList(BucketMaterial condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
DataPage dataPage = new BucketMaterialDAL().GetList(condition, page); |
||||
|
|
||||
|
result.IsSuccess = true; |
||||
|
result.Result = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取列表异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "获取列表异常!"; |
||||
|
} |
||||
|
|
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <returns>全部集合</returns> |
||||
|
public DataPage GetAllList(BucketMaterial condition,DataPage page) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
//获取信息列表 |
||||
|
DataPage list = new BucketMaterialDAL().GetList(condition, page); |
||||
|
return list; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取列表异常!" |
||||
|
}); |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region |
||||
|
|
||||
|
public List<BucketMaterial> GetBucketMaterialList(BucketMaterial info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new BucketMaterialDAL().GetBucketMaterialList(info); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "获取列表异常!" |
||||
|
}); |
||||
|
return new List<BucketMaterial>(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public DataResult<int> Insert(BucketMaterial info) |
||||
|
{ |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
//基本信息 |
||||
|
info.PID = Guid.NewGuid().ToString(); |
||||
|
info.CREATEUSER = this.LoginUser.UserID; |
||||
|
info.CREATEDATE = DateTime.Now.ToString(); |
||||
|
info.UPDATEUSER = info.CREATEUSER; |
||||
|
info.UPDATEDATE = info.CREATEDATE; |
||||
|
info.IsCheck = "0"; |
||||
|
BucketMaterialDAL cmdDAL = new BucketMaterialDAL(); |
||||
|
result.Result = cmdDAL.Insert(info); |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public DataResult Update(BucketMaterial model) |
||||
|
{ |
||||
|
DataResult result = new DataResult(); |
||||
|
result.IsSuccess = true; |
||||
|
try |
||||
|
{ |
||||
|
BucketMaterial info = new BucketMaterialDAL().Get(model); |
||||
|
|
||||
|
//基本信息 |
||||
|
info.IsCheck = model.IsCheck; |
||||
|
info.BucketCode = model.BucketCode; |
||||
|
info.Line = model.Line; |
||||
|
info.RawMaterial = model.RawMaterial; |
||||
|
info.CREATEUSER = model.CREATEUSER; |
||||
|
info.CREATEDATE = model.CREATEDATE; |
||||
|
info.UPDATEDATE = DateTime.Now.ToString(); |
||||
|
info.UPDATEUSER = this.LoginUser.UserID; |
||||
|
int temp = new BucketMaterialDAL().Update(info); |
||||
|
|
||||
|
if (temp == 0) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = "更新失败!"; |
||||
|
return result; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "更新异常!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Ex = ex; |
||||
|
result.Msg = "更新异常"; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 删除 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string model) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
count = new BucketMaterialDAL().Delete(model); |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,235 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMFrameWork.Common.Encrypt; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.DAL.Operation; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.BLL; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.Entity.ProduceManage; |
||||
|
using QMAPP.FJC.BLL.Dict; |
||||
|
using QMAPP.FJC.BLL.Basic; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using QMAPP.FJC.Entity.Injection; |
||||
|
using QMAPP.FJC.DAL.FeedInManage; |
||||
|
namespace QMAPP.FJC.BLL.Operation |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号: |
||||
|
/// 作 用:成品信息查询 |
||||
|
/// 作 者:郭兆福 |
||||
|
/// 编写日期:2018年03月12日 |
||||
|
///</summary> |
||||
|
public class ProductEndBLL : BaseBLL |
||||
|
{ |
||||
|
#region 成品信息查询 |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public ProductEnd Get(ProductEnd model) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new ProductEndDAL().Get(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
//public ProductEnd GetByCondition(ProductEnd model) |
||||
|
//{ |
||||
|
// try |
||||
|
// { |
||||
|
// List<ProductEnd> list = new ProductEndDAL().GetList(model); |
||||
|
// if (list.Count > 0) |
||||
|
// { |
||||
|
// return list[0]; |
||||
|
// } |
||||
|
// return null; |
||||
|
// } |
||||
|
// catch (Exception ex) |
||||
|
// { |
||||
|
// throw ex; |
||||
|
// } |
||||
|
//} |
||||
|
|
||||
|
public QMAPP.FJC.Entity.Basic.MaterialCodeInit GetMaterialSetByCondition(QMAPP.FJC.Entity.Basic.MaterialCodeInit condition) |
||||
|
{ |
||||
|
return new QMAPP.FJC.DAL.Basic.MaterialCodeInitDAL().GetByCondition(condition); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetList(ProductEnd condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
result.IsSuccess = true; |
||||
|
|
||||
|
page = new ProductEndDAL().GetAllList(condition, page); |
||||
|
List<ProductEnd> list = page.Result as List<ProductEnd>; |
||||
|
|
||||
|
//处理字典信息 |
||||
|
DictManageBLL dictPROCESSTYPE = new DictManageBLL(DictKind.PROCESSTYPE); |
||||
|
DictManageBLL dictColor = new DictManageBLL(DictKind.COLOR); |
||||
|
DictManageBLL dictSTATUS = new DictManageBLL(DictKind.LJSTATUS); |
||||
|
DictManageBLL dictOUTFLAG = new DictManageBLL(DictKind.OUTFLAG); |
||||
|
DictManageBLL dictHL = new DictManageBLL(DictKind.HAndL); |
||||
|
DictManageBLL dictYN = new DictManageBLL(DictKind.ValidFlg); |
||||
|
foreach (var info in list) |
||||
|
{ |
||||
|
//替换工序类别显示值 |
||||
|
info.CURRENTPROCESS = dictPROCESSTYPE.GetDictValue(info.CURRENTPROCESS); |
||||
|
//替换零件类别显示值 |
||||
|
//info.COLOR = dictColor.GetDictValue(info.COLOR); |
||||
|
//替换零件类别显示值 |
||||
|
info.STATUS = dictSTATUS.GetDictValue(info.STATUS); |
||||
|
//替换出库标记显示值 |
||||
|
info.OUTFLAG = dictOUTFLAG.GetDictValue(info.OUTFLAG); |
||||
|
//替换使用状态显示值 |
||||
|
//info.HB = dictHL.GetDictValue(info.HB); |
||||
|
|
||||
|
//info.COMPLETEFLAG = dictYN.GetDictValue(info.COMPLETEFLAG); |
||||
|
|
||||
|
////info.COMPLETETIMESTR = dictColor.GetDictValue(info.COLOR); |
||||
|
//info.COMPLETEDATE = (info.COMPLETETIME == System.DateTime.MinValue) ? "" |
||||
|
// : info.COMPLETETIME.ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
page.Result = list; |
||||
|
|
||||
|
result.Result = page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "本体信息获取列表错误!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = "本体信息获取列表错误!"; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <returns>全部数据</returns> |
||||
|
//public List<ProductEnd> GetAllList(ProductEnd condition) |
||||
|
//{ |
||||
|
// try |
||||
|
// { |
||||
|
// return new ProductEndDAL().GetList(condition); |
||||
|
// } |
||||
|
// catch (Exception ex) |
||||
|
// { |
||||
|
// throw ex; |
||||
|
// } |
||||
|
//} |
||||
|
#endregion |
||||
|
|
||||
|
#region 加载零件列表 |
||||
|
/// <summary> |
||||
|
/// 加载零件列表11111111111 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<List<ProductEnd>> GetListWithProduct(ProductEnd condition) |
||||
|
{ |
||||
|
DataResult<List<ProductEnd>> result = new DataResult<List<ProductEnd>>(); |
||||
|
result.IsSuccess = true; |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new ProductEndDAL().GetListWithProduct(condition); |
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 导出数据 |
||||
|
/// <summary> |
||||
|
/// 获取导出的数据 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <returns>数据</returns> |
||||
|
public DataResult<DataTable> GetExportData(ProductEnd model) |
||||
|
{ |
||||
|
DataResult<DataTable> result = new DataResult<DataTable>(); |
||||
|
result.IsSuccess = true; |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new ProductEndDAL().GetExportData(model); |
||||
|
|
||||
|
//处理字典信息 |
||||
|
DictManageBLL dictPROCESSTYPE = new DictManageBLL(DictKind.PROCESSTYPE); |
||||
|
DictManageBLL dictColor = new DictManageBLL(DictKind.COLOR); |
||||
|
DictManageBLL dictSTATUS = new DictManageBLL(DictKind.LJSTATUS); |
||||
|
DictManageBLL dictOUTFLAG = new DictManageBLL(DictKind.OUTFLAG); |
||||
|
DictManageBLL dictHL = new DictManageBLL(DictKind.HAndL); |
||||
|
DictManageBLL dictYN = new DictManageBLL(DictKind.ValidFlg); |
||||
|
|
||||
|
foreach (DataRow dr in result.Result.Rows) |
||||
|
{ |
||||
|
//替换工序类别显示值 |
||||
|
//dr["CURRENTPROCESS"] = dictPROCESSTYPE.GetDictValue(dr["CURRENTPROCESS"].ToString()); |
||||
|
//替换零件类别显示值 |
||||
|
dr["COLOR"] = dictColor.GetDictValue(dr["COLOR"].ToString()); |
||||
|
//替换零件类别显示值 |
||||
|
dr["STATUS"] = dictSTATUS.GetDictValue(dr["STATUS"].ToString()); |
||||
|
//替换出库标记显示值 |
||||
|
dr["OUTFLAG"] = dictOUTFLAG.GetDictValue(dr["OUTFLAG"].ToString()); |
||||
|
//替换使用状态显示值 |
||||
|
dr["HB"] = dictHL.GetDictValue(dr["HB"].ToString()); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
File diff suppressed because it is too large
Binary file not shown.
@ -0,0 +1,124 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.BLL; |
||||
|
|
||||
|
using QMFrameWork.Data; |
||||
|
|
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using System.Data; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.MD.DAL; |
||||
|
using QMAPP.FJC.Entity.BZD; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.BZD |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:条码补打记录 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年05月21日 |
||||
|
/// </summary> |
||||
|
public class BarCodeReplacementBLL : BaseBLL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public DataResult<BarCodeReplacement> Get(BarCodeReplacement model) |
||||
|
{ |
||||
|
DataResult<BarCodeReplacement> result = new DataResult<BarCodeReplacement>(); |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new BarCodeReplacementDAL().Get(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
} |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
public BarCodeReplacement GetRecord(BarCodeReplacement model) |
||||
|
{ |
||||
|
DataResult<BarCodeReplacement> result = new DataResult<BarCodeReplacement>(); |
||||
|
try |
||||
|
{ |
||||
|
return new BarCodeReplacementDAL().GetRecord(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表(分页) |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetList(BarCodeReplacement condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
//获取物料信息列表 |
||||
|
DataPage dataPage = new BarCodeReplacementDAL().GetList(condition, page); |
||||
|
|
||||
|
result.Result = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
throw ex; |
||||
|
} |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(BarCodeReplacement info) |
||||
|
{ |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
//基本信息 |
||||
|
info.PID = Guid.NewGuid().ToString(); |
||||
|
info.CreateUser = this.LoginUser.UserName; |
||||
|
|
||||
|
BarCodeReplacementDAL cmdDAL = new BarCodeReplacementDAL(); |
||||
|
return new BarCodeReplacementDAL().Insert(info); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,233 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{063B6316-7154-4BD9-B546-21CCE4685235}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.FJC.DAL</RootNamespace> |
||||
|
<AssemblyName>QMAPP.FJC.DAL</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\DLL\oracle32\Oracle.DataAccess.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Common"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Log"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Log.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="SapInterface"> |
||||
|
<HintPath>..\..\DLL\SapInterface.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Andon\AndonCallDAL.cs" /> |
||||
|
<Compile Include="Andon\AndonSetDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialBomConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\ScanIPConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\AppConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\BarcodeRulesDAL.cs" /> |
||||
|
<Compile Include="Basic\BomHdrDAL.cs" /> |
||||
|
<Compile Include="Basic\CapacityDAL.cs" /> |
||||
|
<Compile Include="Basic\CorpDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoModelDAL.cs" /> |
||||
|
<Compile Include="Basic\MarkAddrDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialCodeInitDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialShelfTypeDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielVersionDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldSetDAL.cs" /> |
||||
|
<Compile Include="Basic\OperatorInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ParameterConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\PrintModelCopyDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessParameterDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteDAL.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Basic\ProcessRouteWithWorkCellSeqDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRuleDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessSetDAL.cs" /> |
||||
|
<Compile Include="Basic\ProduceShiftDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductBasicDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductCodeIdentityDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductMderuleDAL.cs" /> |
||||
|
<Compile Include="Basic\UnQualityProductDAL.cs" /> |
||||
|
<Compile Include="Basic\WorkOrder.cs" /> |
||||
|
<Compile Include="BZD\BarcodeRule.cs" /> |
||||
|
<Compile Include="BZD\BZDConfigDAL.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorderDAL.cs" /> |
||||
|
<Compile Include="BZD\DecimalToCharX.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeSetDAL.cs" /> |
||||
|
<Compile Include="CheckTime\CHECKTIMEDAL.cs" /> |
||||
|
<Compile Include="CompleteStatistics\CompleteStatisticsDAL.cs" /> |
||||
|
<Compile Include="EM\EmMeterReadingsDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReadingsDAL.cs" /> |
||||
|
<Compile Include="Equipment\AlarmTableDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipMentRecordDAL.cs" /> |
||||
|
<Compile Include="Equipment\MouldDAL.cs" /> |
||||
|
<Compile Include="Equipment\UsageLogDAL.cs" /> |
||||
|
<Compile Include="FileCopy\FileCopyRecordDAL.cs" /> |
||||
|
<Compile Include="FIS\DashBoardPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\DoorPlankPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\FisDAL.cs" /> |
||||
|
<Compile Include="FIS\FISInfoDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderSendDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrederSendDetialDAL.cs" /> |
||||
|
<Compile Include="FIS\FISPhraseDAL.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanDAL.cs" /> |
||||
|
<Compile Include="FrmPlace\FrmPlaceDAL.cs" /> |
||||
|
<Compile Include="InterfaceData\LeakInspectRecordDAL.cs" /> |
||||
|
<Compile Include="MachineCheck\MachineCheckDAL.cs" /> |
||||
|
<Compile Include="MD\MaterialDAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9M110DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4M110DAL.cs" /> |
||||
|
<Compile Include="Message\MessageDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipmentMonitorDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipMonitorSetDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoInfoDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoTypeDAL.cs" /> |
||||
|
<Compile Include="Operation\CastCounterDAL.cs" /> |
||||
|
<Compile Include="Operation\ElectricalCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\InjectionCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\MainCodeChangeDAL.cs" /> |
||||
|
<Compile Include="Operation\MainMolderStatusDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductCountDAL.cs" /> |
||||
|
<Compile Include="Operation\MaterialCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\PrintCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\PbomItemDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductEndDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductOutDAL.cs" /> |
||||
|
<Compile Include="Package\PackageDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MenderReasonDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ScrapRecordDAL.cs" /> |
||||
|
<Compile Include="Produce\ProductDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\ProductWithPlanDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\WorkOrderDAL.cs" /> |
||||
|
<Compile Include="QT\AnalyzerDAL.cs" /> |
||||
|
<Compile Include="QT\DAICacheDAL.cs" /> |
||||
|
<Compile Include="QT\DAIDAL.cs" /> |
||||
|
<Compile Include="QT\DAIItemDAL.cs" /> |
||||
|
<Compile Include="QT\DAIValidationDAL.cs" /> |
||||
|
<Compile Include="QT\MaterialBindingDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessParametersDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessRecordDAL.cs" /> |
||||
|
<Compile Include="QT\ProductStructureDAL.cs" /> |
||||
|
<Compile Include="QT\SendOrderConfigDAL.cs" /> |
||||
|
<Compile Include="QT\StateActionDAL.cs" /> |
||||
|
<Compile Include="QT\ValidatorDAL.cs" /> |
||||
|
<Compile Include="QT\WorkCellRunStateDAL.cs" /> |
||||
|
<Compile Include="SA\WorkcellQtyCountDAL.cs" /> |
||||
|
<Compile Include="SendManage\SendPlanRecordDAL.cs" /> |
||||
|
<Compile Include="Stocktaking\StocktakingDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\OutWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\InWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentAlarmDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentMaintainDAL.cs" /> |
||||
|
<Compile Include="WarnManage\WarnManageDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipmentMaintainDAL.cs" /> |
||||
|
<Compile Include="Example\UserManageDAL1.cs" /> |
||||
|
<Compile Include="Injection\InjectionRecorderDAL.cs" /> |
||||
|
<Compile Include="Operation\MainDAL.cs" /> |
||||
|
<Compile Include="Operation\MainOperationDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductAttributeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductInjectionDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ProducePlanDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MendRecorderDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\UnQualityDAL.cs" /> |
||||
|
<Compile Include="Produce\MainProductDAL.cs" /> |
||||
|
<Compile Include="ProductPetrospect\ProductArchivesDAL.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="FeedInManage\EpidermisDAL.cs" /> |
||||
|
<Compile Include="SendPlan\SendPlanInfoDAL.cs" /> |
||||
|
<Compile Include="WIPManage\DetentionDAL.cs" /> |
||||
|
<Compile Include="WIPManage\StorageAlarmDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInventoryDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPOutRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPProductCountDAL.cs" /> |
||||
|
<Compile Include="WipService\CheckWipDAL.cs" /> |
||||
|
<Compile Include="QdFis\mbM100DAL.cs" /> |
||||
|
<Compile Include="QdFis\ybbM100DAL.cs" /> |
||||
|
<Compile Include="ProductIn\ProductInDAL.cs" /> |
||||
|
<Compile Include="FuntionDescriptionDAL\FuntionDescriptionDAL.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.Entity\QMAPP.MD.Entity.csproj"> |
||||
|
<Project>{A80DFEE4-F3D0-4234-A2CC-E4DCE5000E7E}</Project> |
||||
|
<Name>QMAPP.MD.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.DAL\QMAPP.DAL.csproj"> |
||||
|
<Project>{407204CD-0256-4EDD-8A89-26EBF83D19A7}</Project> |
||||
|
<Name>QMAPP.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.FJC.Entity\QMAPP.FJC.Entity.csproj"> |
||||
|
<Project>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</Project> |
||||
|
<Name>QMAPP.FJC.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Folder Include="ProcessParameter\" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
@ -0,0 +1,83 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMFrameWork.Common.Encrypt; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.DAL.Operation; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.BLL; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.Entity.ProduceManage; |
||||
|
using QMAPP.FJC.BLL.Dict; |
||||
|
using QMAPP.FJC.BLL.Basic; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using QMAPP.FJC.DAL.Injection; |
||||
|
using QMAPP.FJC.Entity.Injection; |
||||
|
using System.Configuration; |
||||
|
using QMAPP.BLL.Sys; |
||||
|
using QMAPP.FJC.DAL.Basic; |
||||
|
using QMAPP.FJC.Entity.QT; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.MD.DAL; |
||||
|
using PbomItem = QMAPP.FJC.Entity.Operation.PbomItem; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Operation |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号:M13-1 |
||||
|
/// 作 用:零件条码表 |
||||
|
/// 作 者:王庆男 |
||||
|
/// 编写日期:2015年05月29日 |
||||
|
///</summary> |
||||
|
public class PbomItemBLL : BaseBLL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public List<PbomItem> Get(string code) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new PbomItemDAL().Get(code); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public Bom GetBom(string PbomCode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new PbomItemDAL().GetBom(PbomCode); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,36 @@ |
|||||
|
using System.Reflection; |
||||
|
using System.Runtime.CompilerServices; |
||||
|
using System.Runtime.InteropServices; |
||||
|
|
||||
|
// 有关程序集的常规信息通过以下 |
||||
|
// 特性集控制。更改这些特性值可修改 |
||||
|
// 与程序集关联的信息。 |
||||
|
[assembly: AssemblyTitle("QMAPP.WinForm")] |
||||
|
[assembly: AssemblyDescription("")] |
||||
|
[assembly: AssemblyConfiguration("")] |
||||
|
[assembly: AssemblyCompany("Microsoft")] |
||||
|
[assembly: AssemblyProduct("QMAPP.WinForm")] |
||||
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")] |
||||
|
[assembly: AssemblyTrademark("")] |
||||
|
[assembly: AssemblyCulture("")] |
||||
|
|
||||
|
// 将 ComVisible 设置为 false 使此程序集中的类型 |
||||
|
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, |
||||
|
// 则将该类型上的 ComVisible 特性设置为 true。 |
||||
|
[assembly: ComVisible(false)] |
||||
|
|
||||
|
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID |
||||
|
[assembly: Guid("c459ec4f-c1ba-448a-909a-e9c4fc023688")] |
||||
|
|
||||
|
// 程序集的版本信息由下面四个值组成: |
||||
|
// |
||||
|
// 主版本 |
||||
|
// 次版本 |
||||
|
// 内部版本号 |
||||
|
// 修订号 |
||||
|
// |
||||
|
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, |
||||
|
// 方法是按如下所示使用“*”: |
||||
|
// [assembly: AssemblyVersion("1.0.*")] |
||||
|
[assembly: AssemblyVersion("2021.08.22.01")] |
||||
|
[assembly: AssemblyFileVersion("2021.08.22.01")] |
@ -0,0 +1,77 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.MD.Entity.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒信息 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_BUCKETINFO")] |
||||
|
public class BucketInfo : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 编号 |
||||
|
/// </summary> |
||||
|
[Description("编号")] |
||||
|
[DBColumn(ColumnName = "BucketCode", DataType = DbType.String)] |
||||
|
public string BucketCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 名称 |
||||
|
/// </summary> |
||||
|
[Description("名称")] |
||||
|
[DBColumn(ColumnName = "BucketName", DataType = DbType.String)] |
||||
|
public string BucketName { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[DBColumn(ColumnName = "IsCheck", DataType = DbType.String)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)] |
||||
|
public string CREATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.String)] |
||||
|
public string CREATEDATE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改用户 |
||||
|
/// </summary> |
||||
|
[Description("修改用户")] |
||||
|
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)] |
||||
|
public string UPDATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改时间 |
||||
|
/// </summary> |
||||
|
[Description("修改时间")] |
||||
|
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.String)] |
||||
|
public string UPDATEDATE { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,91 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.RawMaterialRecordModel>" %> |
||||
|
|
||||
|
<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.ProductCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.ProductCode)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.PartCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.PartCode)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.BeginTime)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.BeginTime)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.EndTime)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.EndTime)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Bucket.RawMaterialRecordModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('信息添加', 'Edit', '350', '380'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '380'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", "确定要删除选中的记录吗?", function () { |
||||
|
submitByButton("Delete"); |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> |
||||
|
<table cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td align="center"> |
||||
|
<%=Html.QTButtonSearch("BucketMaterial", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%--<%=Html.QTButtonAdd("BucketMaterial", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonUpdate("BucketMaterial", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonDelete("BucketMaterial", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>--%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
@ -0,0 +1,68 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Data; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.FJC.Entity.ProduceManage; |
||||
|
using QMAPP.DAL; |
||||
|
using QMFrameWork.Log; |
||||
|
using QMAPP.FJC.Entity.Stocktaking; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Operation |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:Bom详细信息 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年03月17日 |
||||
|
/// </summary> |
||||
|
public class PbomItemDAL : BaseDAL |
||||
|
{ |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<PbomItem> Get(string MATERIAL_CODE) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = $"SELECT * FROM [T_MD_PBOM_ITEM] where MATERIAL_CODE = '{MATERIAL_CODE}'"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetList<PbomItem>(sql, parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public Bom GetBom(string PbomCode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = $"SELECT PID,PBOM_CODE,MATERIAL_CODE FROM [T_MD_PBOM] where PBOM_CODE = '{PbomCode}'"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.Get<Bom>(sql, parameters.ToArray()); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.TSWeighRecoreModel>" %> |
||||
|
|
||||
|
<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.ProductCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.ProductCode)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.MATERIAL_CODE)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.MATERIAL_CODE)%> |
||||
|
</td> |
||||
|
|
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Bucket.TSWeighRecoreModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('信息添加', 'Edit', '350', '380'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '380'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", "确定要删除选中的记录吗?", function () { |
||||
|
submitByButton("Delete"); |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> |
||||
|
<table cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td align="center"> |
||||
|
<%=Html.QTButtonSearch("TSWeighRecore", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%--<%=Html.QTButtonAdd("BucketMaterial", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonUpdate("BucketMaterial", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonDelete("BucketMaterial", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>--%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
@ -0,0 +1,62 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.BucketInfoModel>" %> |
||||
|
|
||||
|
<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)%> |
||||
|
<table id="editTable" cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<table> |
||||
|
|
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.BucketCode) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.BucketCode)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.BucketName)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.BucketName)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
|
||||
|
</table> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.HiddenFor(p=>p.PID) %> |
||||
|
<%=Html.HiddenFor(p => p.IsCheck)%> |
||||
|
<%=Html.HiddenFor(p=>p.CREATEDATE) %> |
||||
|
<%=Html.HiddenFor(p=>p.CREATEUSER) %> |
||||
|
<%=Html.HiddenFor(p=>p.UPDATEDATE)%> |
||||
|
<%=Html.HiddenFor(p=>p.UPDATEUSER) %> |
||||
|
<%=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", "BucketInfo", "parent.closeAppWindow1();return false;")%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<script type="text/javascript"> |
||||
|
function Save() { |
||||
|
if (isValidate() == false) { |
||||
|
return false; |
||||
|
} |
||||
|
submitByButton("Save"); |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
@ -0,0 +1,497 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.DAL; |
||||
|
using QMAPP.FJC.Entity.Common.Constants; |
||||
|
using QMAPP.FJC.Entity.CompleteStatistics; |
||||
|
using QMFrameWork.Data; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.CompleteStatistics |
||||
|
{ |
||||
|
public class CompleteStatisticsDAL : BaseDAL |
||||
|
{ |
||||
|
public DataPage GetList(CompleteStatisticsEntity condition, DataPage page) |
||||
|
{ |
||||
|
DataParameter[] parameters; |
||||
|
string sql = this.GetQuerySql(condition, out parameters); |
||||
|
//分页关键字段及排序 |
||||
|
page.KeyName = "PID"; |
||||
|
page.SortExpression = "ORDERNO ASC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) { |
||||
|
page = session.GetDataPage<CompleteStatisticsEntity>(sql, parameters, page); |
||||
|
} |
||||
|
return page; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public List<CompleteStatisticsEntity> GetList(CompleteStatisticsEntity condition) |
||||
|
{ |
||||
|
DataParameter[] parameters; |
||||
|
string sql = this.GetQuerySql(condition, out parameters); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetList<CompleteStatisticsEntity>(sql, parameters).ToList(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public CompleteStatisticsEntity Get(CompleteStatisticsEntity model) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) { |
||||
|
return session.Get(model); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public int Insert(CompleteStatisticsEntity model) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) { |
||||
|
return session.Insert(model); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public bool ExistCompleteStatistics(CompleteStatisticsEntity model) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
|
||||
|
protected string ExistQureySql() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("SELECT *"); |
||||
|
sql.AppendLine(" FROM T_AW_MAINOPERATION T"); |
||||
|
sql.AppendLine(" WHERE INFO.BARCODEIDENTIFY IS NOT NULL"); |
||||
|
sql.AppendLine(" AND T.OPERATEDDATE > @StartTime"); |
||||
|
sql.AppendLine(" AND T.OPERATEDDATE <= @EndTime"); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
|
||||
|
public int Update(CompleteStatisticsEntity model) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) { |
||||
|
return session.Update(model); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public int GenericCompleteStatistics(DateTime starTime, DateTime endTime) |
||||
|
{ |
||||
|
int count; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
|
||||
|
DataParameter[] parameters = { |
||||
|
new DataParameter {ParameterName = "StartTime", DataType = DbType.DateTime, Value = starTime}, |
||||
|
new DataParameter {ParameterName = "EndTime", DataType = DbType.DateTime, Value = endTime} |
||||
|
}; |
||||
|
try { |
||||
|
session.OpenTs(); |
||||
|
//string location = this.GetSystemConfig(CompleteStatisticsConstants.COMP_STATIS_SITE).CODEVALUE; |
||||
|
//string sql = location.Equals("080121") ? this.GetGenericStatisticsSqlForCC() : this.GetGenericStatisticsSqlForCD(); |
||||
|
//成品 |
||||
|
string sql = GetGenericStatisticsSqlForBORA(); |
||||
|
count = session.ExecuteSql(sql, parameters); |
||||
|
//注塑件 |
||||
|
sql = GetGenericStatisticsSqlForINJECT(); |
||||
|
count += session.ExecuteSql(sql, parameters); |
||||
|
|
||||
|
|
||||
|
this.UpdateLastGenericTime(endTime, session); |
||||
|
session.CommitTs(); |
||||
|
} |
||||
|
catch (Exception) { |
||||
|
session.RollbackTs(); |
||||
|
throw; |
||||
|
} |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
|
||||
|
public SystemConfig GetSystemConfig(string codeType) |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("SELECT *"); |
||||
|
sql.AppendLine(" FROM T_SYSTEM_CONFIG"); |
||||
|
sql.AppendLine(" WHERE CODETYPE = @CodeType"); |
||||
|
DataParameter[] parameters = { |
||||
|
new DataParameter {ParameterName = "CodeType", DataType = DbType.String, Value = codeType} |
||||
|
}; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.Get<SystemConfig>(sql.ToString(), parameters); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected int UpdateLastGenericTime(DateTime endTime, IDataSession session) |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("UPDATE T_SYSTEM_CONFIG"); |
||||
|
sql.AppendLine(" SET CODEVALUE = @EndTime"); |
||||
|
sql.AppendLine(" WHERE CODETYPE = @CodeType"); |
||||
|
DataParameter[] parameters = |
||||
|
{ |
||||
|
new DataParameter {ParameterName = "EndTime", DataType = DbType.String, Value = endTime.ToString("yyyy/MM/dd HH:mm:ss")}, |
||||
|
new DataParameter {ParameterName = "CodeType", DataType = DbType.String, Value = CompleteStatisticsConstants.COMP_STATIS_LSTTIME} |
||||
|
}; |
||||
|
return session.ExecuteSql(sql.ToString(), parameters); |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 成都工厂适用SQL |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
protected string GetGenericStatisticsSqlForCD() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("INSERT INTO T_AW_COMPLETE_STATISTICS"); |
||||
|
sql.AppendLine("SELECT NEWID(),"); |
||||
|
sql.AppendLine(" REPLACE(T.CUSTOMERSPAREPARTS, ' ', '') AS MATERIALNO,"); |
||||
|
sql.AppendLine(" COUNT(*) AS SYSCOMPLETECOUNT,"); |
||||
|
sql.AppendLine(" COUNT(*) AS COMPLETECOUNT,"); |
||||
|
sql.AppendLine(" @StartTime AS STARTTIME,"); |
||||
|
sql.AppendLine(" @EndTime AS ENDTIME,"); |
||||
|
sql.AppendLine(" CNFG.CODEVALUE + "); |
||||
|
sql.AppendLine(" REPLACE(CONVERT(VARCHAR(100), GETDATE(), 112) +"); |
||||
|
sql.AppendLine(" CONVERT(VARCHAR(100), GETDATE(), 8),':','') + "); |
||||
|
sql.AppendLine(" REPLICATE('0', 2 - LEN(ROW_NUMBER() OVER (ORDER BY T.CUSTOMERSPAREPARTS))) + CAST (ROW_NUMBER() OVER (ORDER BY T.CUSTOMERSPAREPARTS) AS VARCHAR) AS ORDERNO,"); |
||||
|
sql.AppendLine(" GETDATE() AS CREATETIME,"); |
||||
|
sql.AppendLine(" USR.USERID AS CREATEUSER,"); |
||||
|
sql.AppendLine(" GETDATE() AS UPDATETIME,"); |
||||
|
sql.AppendLine(" USR.USERID AS UPDATEUSER,"); |
||||
|
sql.AppendLine(" '0' AS DELFLAG"); |
||||
|
sql.AppendLine(" FROM T_DAS_BARCODEVIBPAR T"); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER USR"); |
||||
|
sql.AppendLine(" ON USR.USERID = 'SYSTEM'"); |
||||
|
sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG CNFG"); |
||||
|
sql.AppendLine(" ON CNFG.CODETYPE = 'COMP_STATIS_ORDER'"); |
||||
|
sql.AppendLine(" WHERE T.SCANTIME > @StartTime"); |
||||
|
sql.AppendLine(" AND T.SCANTIME <= @EndTime"); |
||||
|
sql.AppendLine(" AND SUBSTRING(T.ABARCODE, 9, 2) <> '99'"); |
||||
|
sql.AppendLine(" GROUP BY T.CUSTOMERSPAREPARTS, USR.USERID, CNFG.CODEVALUE"); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
//长春 |
||||
|
protected string GetGenericStatisticsSqlForCC() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("INSERT INTO T_AW_COMPLETE_STATISTICS"); |
||||
|
sql.AppendLine("SELECT NEWID(),"); |
||||
|
sql.AppendLine(" INFO.MATERIALNO AS MATERIALNO,"); |
||||
|
sql.AppendLine(" COUNT(*) AS SYSCOMPLETECOUNT,"); |
||||
|
sql.AppendLine(" COUNT(*) AS COMPLETECOUNT,"); |
||||
|
sql.AppendLine(" @StartTime AS STARTTIME,"); |
||||
|
sql.AppendLine(" @EndTime AS ENDTIME,"); |
||||
|
sql.AppendLine(" CNFG.CODEVALUE + "); |
||||
|
sql.AppendLine(" REPLACE(CONVERT(VARCHAR(100), GETDATE(), 112) +"); |
||||
|
sql.AppendLine(" CONVERT(VARCHAR(100), GETDATE(), 8),':','') + "); |
||||
|
sql.AppendLine(" REPLICATE('0', 2 - LEN(ROW_NUMBER() OVER (ORDER BY INFO.MATERIALNO))) + CAST (ROW_NUMBER() OVER (ORDER BY INFO.MATERIALNO) AS VARCHAR) AS ORDERNO,"); |
||||
|
sql.AppendLine(" GETDATE() AS CREATETIME,"); |
||||
|
sql.AppendLine(" USR.USERID AS CREATEUSER,"); |
||||
|
sql.AppendLine(" GETDATE() AS UPDATETIME,"); |
||||
|
sql.AppendLine(" USR.USERID AS UPDATEUSER,"); |
||||
|
sql.AppendLine(" '0' AS DELFLAG"); |
||||
|
sql.AppendLine(" FROM T_AW_MAINOPERATION T"); |
||||
|
sql.AppendLine(" LEFT JOIN T_BD_BARCODE_PRODUCT_RELATION RELATION"); |
||||
|
sql.AppendLine(" ON T.PRODUCTTYPE = RELATION.PRODUCTTYPE"); |
||||
|
sql.AppendLine(" AND T.PROCESSTYPE = RELATION.PROCESSTYPE"); |
||||
|
sql.AppendLine(" LEFT JOIN T_BD_MATERIAL_BARCODE_INFO INFO"); |
||||
|
sql.AppendLine(" ON INFO.PROCESSTYPE = RELATION.PROCESSTYPE"); |
||||
|
sql.AppendLine(" AND INFO.PRODUCTTYPE = RELATION.PRODUCTTYPE"); |
||||
|
sql.AppendLine(" AND SUBSTRING(T.PRODUCTCODE, RELATION.STARTINDEX, RELATION.SUBLENGTH) = INFO.BARCODEIDENTIFY"); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER USR"); |
||||
|
sql.AppendLine(" ON USR.USERNAME = 'SYSTEM'"); |
||||
|
sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG CNFG"); |
||||
|
sql.AppendLine(" ON CNFG.CODETYPE = 'COMP_STATIS_ORDER'"); |
||||
|
sql.AppendLine(" WHERE INFO.BARCODEIDENTIFY IS NOT NULL"); |
||||
|
sql.AppendLine(" AND T.OPERATEDDATE > @StartTime"); |
||||
|
sql.AppendLine(" AND T.OPERATEDDATE <= @EndTime"); |
||||
|
sql.AppendLine(" GROUP BY INFO.MATERIALNO, USR.USERID, CNFG.CODEVALUE"); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
//青岛仪表板/门板的成品 |
||||
|
//protected string GetGenericStatisticsSqlForBORA() |
||||
|
//{ |
||||
|
// StringBuilder sql = new StringBuilder(); |
||||
|
// sql.AppendLine(" INSERT INTO T_AW_COMPLETE_STATISTICS "); |
||||
|
// sql.AppendLine(" SELECT NEWID(), "); |
||||
|
// sql.AppendLine(" T.MATERIAL_CODE AS MATERIALNO, "); |
||||
|
// sql.AppendLine(" COUNT(*) AS SYSCOMPLETECOUNT, "); |
||||
|
// sql.AppendLine(" COUNT(*) AS COMPLETECOUNT, "); |
||||
|
// sql.AppendLine(" @StartTime AS STARTTIME, "); |
||||
|
// sql.AppendLine(" @EndTime AS ENDTIME, "); |
||||
|
// sql.AppendLine(" CNFG.CODEVALUE + "); |
||||
|
// sql.AppendLine(" REPLACE(CONVERT(VARCHAR(100), GETDATE(), 112) + "); |
||||
|
// sql.AppendLine(" CONVERT(VARCHAR(100), GETDATE(), 8),':','') + "); |
||||
|
// sql.AppendLine(" REPLICATE('0', 2 - LEN(ROW_NUMBER() OVER (ORDER BY T.MATERIAL_CODE))) + CAST (ROW_NUMBER() OVER (ORDER BY T.MATERIAL_CODE) AS VARCHAR) AS ORDERNO, "); |
||||
|
// sql.AppendLine(" GETDATE() AS CREATETIME, "); |
||||
|
// sql.AppendLine(" USR.USERID AS CREATEUSER, "); |
||||
|
// sql.AppendLine(" GETDATE() AS UPDATETIME, "); |
||||
|
// sql.AppendLine(" USR.USERID AS UPDATEUSER, "); |
||||
|
// sql.AppendLine(" '0' AS DELFLAG "); |
||||
|
// sql.AppendLine(" FROM T_AW_MAINOPERATION T "); |
||||
|
// sql.AppendLine(" LEFT JOIN T_MD_MATERIAL_CLASS C ON C.MATERIAL_TYPE_CODE=T.MATERIAL_TYPE_CODE "); |
||||
|
// sql.AppendLine(" LEFT JOIN T_QM_USER USR "); |
||||
|
// sql.AppendLine(" ON USR.USERNAME = 'SYSTEM' "); |
||||
|
// sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG CNFG "); |
||||
|
// sql.AppendLine(" ON CNFG.CODETYPE = 'COMP_STATIS_ORDER' "); |
||||
|
// sql.AppendLine(" WHERE T.OPERATEDDATE > @StartTime "); |
||||
|
// sql.AppendLine(" AND T.OPERATEDDATE <= @EndTime "); |
||||
|
// sql.AppendLine(" AND C.MATERIAL_ATTRIBUTE='2' "); |
||||
|
// sql.AppendLine(" GROUP BY T.MATERIAL_CODE, USR.USERID, CNFG.CODEVALUE "); |
||||
|
// return sql.ToString(); |
||||
|
//} |
||||
|
//青岛注塑件 |
||||
|
protected string GetGenericStatisticsSqlForBORA() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine(" INSERT INTO T_AW_COMPLETE_STATISTICS "); |
||||
|
sql.AppendLine(" SELECT NEWID(),"); |
||||
|
sql.AppendLine(" C.MFG_MATERIAL_CODE AS MATERIALNO,"); |
||||
|
sql.AppendLine(" COUNT(*) AS SYSCOMPLETECOUNT,"); |
||||
|
sql.AppendLine(" COUNT(*) AS COMPLETECOUNT,"); |
||||
|
sql.AppendLine(" @StartTime AS STARTTIME,"); |
||||
|
sql.AppendLine(" @EndTime AS ENDTIME,"); |
||||
|
sql.AppendLine(" C.ORDERIDENTITY + "); |
||||
|
sql.AppendLine(" REPLACE(substring(CONVERT(VARCHAR(100), GETDATE(), 112),3,6) + "); |
||||
|
sql.AppendLine(" CONVERT(VARCHAR(100), GETDATE(), 8),':','') + "); |
||||
|
sql.AppendLine(" REPLICATE('0', 2 - LEN(ROW_NUMBER() OVER (ORDER BY C.MFG_MATERIAL_CODE))) + CAST (ROW_NUMBER() OVER (ORDER BY C.MFG_MATERIAL_CODE) AS VARCHAR) AS ORDERNO, "); |
||||
|
sql.AppendLine(" GETDATE() AS CREATETIME, "); |
||||
|
sql.AppendLine(" USR.USERID AS CREATEUSER, "); |
||||
|
sql.AppendLine(" GETDATE() AS UPDATETIME, "); |
||||
|
sql.AppendLine(" USR.USERID AS UPDATEUSER, "); |
||||
|
sql.AppendLine(" '0' AS DELFLAG "); |
||||
|
sql.AppendLine(" FROM T_AW_PRODUCT T "); |
||||
|
sql.AppendLine(" LEFT JOIN T_MD_MATERIAL_CLASS S ON S.MATERIAL_TYPE_CODE=T.MATERIAL_TYPE "); |
||||
|
sql.AppendLine(" LEFT JOIN T_AW_COMPLETE_MFG_CONFIG C ON C.MES_MATERIAL_CODE = T.MATERIAL_CODE "); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER USR "); |
||||
|
sql.AppendLine(" ON USR.USERNAME = 'SYSTEM' "); |
||||
|
sql.AppendLine(" WHERE S.MATERIAL_ATTRIBUTE='2' "); |
||||
|
sql.AppendLine(" AND C.MFG_MATERIAL_CODE IS NOT NULL "); |
||||
|
sql.AppendLine(" AND T.CREATEDATE > @StartTime "); |
||||
|
sql.AppendLine(" AND T.CREATEDATE <= @EndTime "); |
||||
|
sql.AppendLine(" AND T.MACHINECODDE IS NOT NULL "); |
||||
|
sql.AppendLine(" GROUP BY C.MFG_MATERIAL_CODE, USR.USERID, C.ORDERIDENTITY "); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
protected string GetGenericStatisticsSqlForINJECT() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine(" INSERT INTO T_AW_COMPLETE_STATISTICS "); |
||||
|
sql.AppendLine(" SELECT NEWID(), "); |
||||
|
sql.AppendLine(" C.MFG_MATERIAL_CODE AS MATERIALNO, "); |
||||
|
sql.AppendLine(" COUNT(*) AS SYSCOMPLETECOUNT, "); |
||||
|
sql.AppendLine(" COUNT(*) AS COMPLETECOUNT, "); |
||||
|
sql.AppendLine(" @StartTime AS STARTTIME, "); |
||||
|
sql.AppendLine(" @EndTime AS ENDTIME, "); |
||||
|
sql.AppendLine(" C.ORDERIDENTITY + "); |
||||
|
sql.AppendLine(" REPLACE(substring(CONVERT(VARCHAR(100), GETDATE(), 112),3,6) + "); |
||||
|
sql.AppendLine(" CONVERT(VARCHAR(100), GETDATE(), 8),':','') + "); |
||||
|
sql.AppendLine(" REPLICATE('0', 2 - LEN(ROW_NUMBER() OVER (ORDER BY C.MFG_MATERIAL_CODE))) + "); |
||||
|
sql.AppendLine(" CAST (ROW_NUMBER() OVER (ORDER BY C.MFG_MATERIAL_CODE) AS VARCHAR) AS ORDERNO, "); |
||||
|
sql.AppendLine(" GETDATE() AS CREATETIME, "); |
||||
|
sql.AppendLine(" USR.USERID AS CREATEUSER, "); |
||||
|
sql.AppendLine(" GETDATE() AS UPDATETIME, "); |
||||
|
sql.AppendLine(" USR.USERID AS UPDATEUSER, "); |
||||
|
sql.AppendLine(" '0' AS DELFLAG "); |
||||
|
sql.AppendLine(" FROM T_TM_MonitorCode T "); |
||||
|
sql.AppendLine(" LEFT JOIN T_AW_COMPLETE_MFG_CONFIG C "); |
||||
|
sql.AppendLine(" ON C.MES_MATERIAL_CODE = T.MATERIAL_CODE "); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER USR "); |
||||
|
sql.AppendLine(" ON USR.USERNAME = 'SYSTEM' "); |
||||
|
sql.AppendLine(" WHERE T.CurrentMode='3' "); |
||||
|
sql.AppendLine(" AND C.MFG_MATERIAL_CODE IS NOT NULL "); |
||||
|
sql.AppendLine(" AND T.CREATEDATE > @StartTime "); |
||||
|
sql.AppendLine(" AND T.CREATEDATE <= @EndTime "); |
||||
|
sql.AppendLine(" GROUP BY C.MFG_MATERIAL_CODE, USR.USERID, C.ORDERIDENTITY "); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
protected string GetQuerySql(CompleteStatisticsEntity condition, out DataParameter[] parameters) |
||||
|
{ |
||||
|
List<DataParameter> parametersList = new List<DataParameter>(); |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("SELECT T.PID, "); |
||||
|
sql.AppendLine(" T.MATERIALNO, "); |
||||
|
sql.AppendLine(" MAT.MATERIALNAME, "); |
||||
|
sql.AppendLine(" MAT.PRODUCTLINE, "); |
||||
|
sql.AppendLine(" T.SYSCOMPLETECOUNT,"); |
||||
|
sql.AppendLine(" T.COMPLETECOUNT,"); |
||||
|
sql.AppendLine(" T.STARTTIME, "); |
||||
|
sql.AppendLine(" T.ENDTIME, "); |
||||
|
sql.AppendLine(" T.ORDERNO, "); |
||||
|
sql.AppendLine(" T.CREATETIME,"); |
||||
|
sql.AppendLine(" T.CREATEUSER,"); |
||||
|
sql.AppendLine(" T.UPDATETIME,"); |
||||
|
sql.AppendLine(" T.UPDATEUSER,"); |
||||
|
sql.AppendLine(" T.DELFLAG,"); |
||||
|
sql.AppendLine(" CUSER.USERNAME AS CREATEUSER_DISPLAY,"); |
||||
|
sql.AppendLine(" UUSER.USERNAME AS UPDATEUSER_DISPLAY"); |
||||
|
sql.AppendLine(" FROM T_AW_COMPLETE_STATISTICS T"); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER CUSER"); |
||||
|
sql.AppendLine(" ON T.CREATEUSER = CUSER.USERID"); |
||||
|
sql.AppendLine(" LEFT JOIN T_QM_USER UUSER"); |
||||
|
sql.AppendLine(" ON T.UPDATEUSER = UUSER.USERID"); |
||||
|
sql.AppendLine(" INNER JOIN T_BD_MATERIAL_BARCODE_INFO MAT"); |
||||
|
sql.AppendLine(" ON T.MATERIALNO = MAT.MATERIALNO"); |
||||
|
sql.AppendLine(" WHERE 1 = 1"); |
||||
|
if (!string.IsNullOrWhiteSpace(condition.MATERIALNO)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.MATERIALNO LIKE @MaterialNo"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "MaterialNo", DataType = DbType.String, Value = string.Format("%{0}%", condition.MATERIALNO) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.SENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.ENDTIME >= @SEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "SEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.SENDTIME) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.EENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.ENDTIME <= @EEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "EEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.EENDTIME) }); |
||||
|
} |
||||
|
parameters = parametersList.ToArray(); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
|
||||
|
public List<CompleteStatisticsEntity> GetExportData(CompleteStatisticsEntity model, IDataSession session) |
||||
|
{ |
||||
|
DataParameter[] parameters; |
||||
|
string sql = this.GetExportSql(model, out parameters); |
||||
|
DataParameter[] unableParameters; |
||||
|
string unableSql = this.unableExportDataString(model, out unableParameters); |
||||
|
|
||||
|
List<CompleteStatisticsEntity> rtn = session.GetList<CompleteStatisticsEntity>(sql, parameters).ToList(); |
||||
|
session.ExecuteSql(unableSql, unableParameters); |
||||
|
return rtn; |
||||
|
} |
||||
|
|
||||
|
private string unableExportDataString(CompleteStatisticsEntity condition, out DataParameter[] parameters) |
||||
|
{ |
||||
|
List<DataParameter> parametersList = new List<DataParameter>(); |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("UPDATE T_AW_COMPLETE_STATISTICS"); |
||||
|
sql.AppendLine(" SET DELFLAG = '1'"); |
||||
|
sql.AppendLine(" WHERE DELFLAG = '0'"); |
||||
|
if (!string.IsNullOrWhiteSpace(condition.MATERIALNO)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND MATERIALNO LIKE @MaterialNo"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "MaterialNo", DataType = DbType.String, Value = string.Format("%{0}%", condition.MATERIALNO) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.SENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND ENDTIME >= @SEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "SEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.SENDTIME) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.EENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND ENDTIME <= @EEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "EEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.EENDTIME) }); |
||||
|
} |
||||
|
parameters = parametersList.ToArray(); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
|
||||
|
//protected string GetExportSql(CompleteStatisticsEntity condition, out DataParameter[] parameters) |
||||
|
//{ |
||||
|
// List<DataParameter> parametersList = new List<DataParameter>(); |
||||
|
// StringBuilder sql = new StringBuilder(); |
||||
|
// sql.AppendLine("SELECT EM.CODEVALUE AS EMPLOYEE, "); |
||||
|
// sql.AppendLine(" SI.CODEVALUE AS SITE, "); |
||||
|
// sql.AppendLine(" '' AS SHIFT, "); |
||||
|
// sql.AppendLine(" T.MATERIALNO, "); |
||||
|
// sql.AppendLine(" MAT.PRODUCTLINE, "); |
||||
|
// sql.AppendLine(" '' AS EDIMAT, "); |
||||
|
// sql.AppendLine(" '' AS SERIAL, "); |
||||
|
// sql.AppendLine(" USR.CODEVALUE AS USERID, "); |
||||
|
// sql.AppendLine(" T.ORDERNO, "); |
||||
|
// sql.AppendLine(" T.COMPLETECOUNT,"); |
||||
|
// sql.AppendLine(" T.STARTTIME"); |
||||
|
// sql.AppendLine(" FROM T_AW_COMPLETE_STATISTICS T"); |
||||
|
// sql.AppendLine(" INNER JOIN T_BD_MATERIAL_BARCODE_INFO MAT"); |
||||
|
// sql.AppendLine(" ON T.MATERIALNO = MAT.MATERIALNO"); |
||||
|
// sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG EM"); |
||||
|
// sql.AppendLine(" ON EM.CODETYPE = @Employee"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "Employee", DataType = DbType.String, Value = CompleteStatisticsConstants.COMP_STATIS_EMPLOYEE }); |
||||
|
// sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG SI"); |
||||
|
// sql.AppendLine(" ON SI.CODETYPE = @Site"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "Site", DataType = DbType.String, Value = CompleteStatisticsConstants.COMP_STATIS_SITE }); |
||||
|
|
||||
|
// sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG USR"); |
||||
|
// sql.AppendLine(" ON USR.CODETYPE = @UserId"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "UserId", DataType = DbType.String, Value = CompleteStatisticsConstants.COMP_STATIS_USER }); |
||||
|
|
||||
|
// sql.AppendLine(" LEFT JOIN T_SYSTEM_CONFIG ORD"); |
||||
|
// sql.AppendLine(" ON ORD.CODETYPE = @OrderNo"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "OrderNo", DataType = DbType.String, Value = CompleteStatisticsConstants.COMP_STATIS_ORDER }); |
||||
|
|
||||
|
// sql.AppendLine(" WHERE T.DELFLAG = '0'"); |
||||
|
// if (!string.IsNullOrWhiteSpace(condition.MATERIALNO)) |
||||
|
// { |
||||
|
// sql.AppendLine(" AND T.MATERIALNO LIKE @MaterialNo"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "MaterialNo", DataType = DbType.String, Value = string.Format("%{0}%", condition.MATERIALNO) }); |
||||
|
// } |
||||
|
// if (!string.IsNullOrWhiteSpace(condition.SENDTIME)) |
||||
|
// { |
||||
|
// sql.AppendLine(" AND T.ENDTIME >= @SEndTime"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "SEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.SENDTIME) }); |
||||
|
// } |
||||
|
// if (!string.IsNullOrWhiteSpace(condition.EENDTIME)) |
||||
|
// { |
||||
|
// sql.AppendLine(" AND T.ENDTIME <= @EEndTime"); |
||||
|
// parametersList.Add(new DataParameter { ParameterName = "EEndTime", DataType = DbType.DateTime, Value = string.Format("{0}", condition.EENDTIME) }); |
||||
|
// } |
||||
|
// sql.AppendLine(" ORDER BY T.ORDERNO ASC"); |
||||
|
|
||||
|
// parameters = parametersList.ToArray(); |
||||
|
// return sql.ToString(); |
||||
|
//} |
||||
|
protected string GetExportSql(CompleteStatisticsEntity condition, out DataParameter[] parameters) |
||||
|
{ |
||||
|
List<DataParameter> parametersList = new List<DataParameter>(); |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
sql.AppendLine("SELECT C.MFG_USERCODE AS EMPLOYEE, "); |
||||
|
sql.AppendLine(" C.MFG_LOCATIONCODE AS SITE, "); |
||||
|
sql.AppendLine(" '' AS SHIFT, "); |
||||
|
sql.AppendLine(" T.MATERIALNO, "); |
||||
|
sql.AppendLine(" C.PRODUCELINECODE AS PRODUCTLINE, "); |
||||
|
sql.AppendLine(" '' AS EDIMAT, "); |
||||
|
sql.AppendLine(" '' AS SERIAL, "); |
||||
|
sql.AppendLine(" C.USERID, "); |
||||
|
sql.AppendLine(" T.ORDERNO, "); |
||||
|
sql.AppendLine(" T.COMPLETECOUNT,"); |
||||
|
sql.AppendLine(" T.STARTTIME,"); |
||||
|
sql.AppendLine(" T.ENDTIME"); |
||||
|
sql.AppendLine(" FROM T_AW_COMPLETE_STATISTICS T"); |
||||
|
sql.AppendLine(" LEFT JOIN T_AW_COMPLETE_MFG_CONFIG C"); |
||||
|
sql.AppendLine(" ON T.MATERIALNO = C.MFG_MATERIAL_CODE"); |
||||
|
|
||||
|
sql.AppendLine(" WHERE T.DELFLAG = '0'"); |
||||
|
if (!string.IsNullOrWhiteSpace(condition.MATERIALNO)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.MATERIALNO LIKE @MaterialNo"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "MaterialNo", DataType = DbType.String, Value = string.Format("%{0}%", condition.MATERIALNO) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.SENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.ENDTIME >= @SEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "SEndTime", DataType = DbType.DateTime, Value = Convert.ToDateTime(condition.SENDTIME) }); |
||||
|
} |
||||
|
if (!string.IsNullOrWhiteSpace(condition.EENDTIME)) |
||||
|
{ |
||||
|
sql.AppendLine(" AND T.ENDTIME <= @EEndTime"); |
||||
|
parametersList.Add(new DataParameter { ParameterName = "EEndTime", DataType = DbType.DateTime, Value = string.Format("{0}", condition.EENDTIME) }); |
||||
|
} |
||||
|
sql.AppendLine(" ORDER BY T.ORDERNO ASC"); |
||||
|
|
||||
|
parameters = parametersList.ToArray(); |
||||
|
return sql.ToString(); |
||||
|
} |
||||
|
|
||||
|
public DataTable ExportExcelData(CompleteStatisticsEntity model) |
||||
|
{ |
||||
|
DataParameter[] parameters; |
||||
|
string sql = this.GetQuerySql(model, out parameters); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetTable(sql, parameters); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,96 @@ |
|||||
|
namespace QMAPP.WinForm |
||||
|
{ |
||||
|
partial class FormSplash |
||||
|
{ |
||||
|
/// <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() |
||||
|
{ |
||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSplash)); |
||||
|
this.lbClose = new System.Windows.Forms.LinkLabel(); |
||||
|
this.lblLog = new System.Windows.Forms.Label(); |
||||
|
this.SuspendLayout(); |
||||
|
// |
||||
|
// lbClose |
||||
|
// |
||||
|
this.lbClose.ActiveLinkColor = System.Drawing.Color.White; |
||||
|
this.lbClose.AutoSize = true; |
||||
|
this.lbClose.BackColor = System.Drawing.Color.Transparent; |
||||
|
this.lbClose.Font = new System.Drawing.Font("宋体", 16F); |
||||
|
this.lbClose.ForeColor = System.Drawing.Color.White; |
||||
|
this.lbClose.LinkColor = System.Drawing.Color.White; |
||||
|
this.lbClose.Location = new System.Drawing.Point(463, 292); |
||||
|
this.lbClose.Name = "lbClose"; |
||||
|
this.lbClose.Size = new System.Drawing.Size(54, 22); |
||||
|
this.lbClose.TabIndex = 0; |
||||
|
this.lbClose.TabStop = true; |
||||
|
this.lbClose.Text = "关闭"; |
||||
|
this.lbClose.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbClose_LinkClicked); |
||||
|
// |
||||
|
// lblLog |
||||
|
// |
||||
|
this.lblLog.BackColor = System.Drawing.Color.Transparent; |
||||
|
this.lblLog.Font = new System.Drawing.Font("宋体", 16F); |
||||
|
this.lblLog.ForeColor = System.Drawing.Color.White; |
||||
|
this.lblLog.Location = new System.Drawing.Point(12, 292); |
||||
|
this.lblLog.Margin = new System.Windows.Forms.Padding(3); |
||||
|
this.lblLog.Name = "lblLog"; |
||||
|
this.lblLog.Size = new System.Drawing.Size(327, 23); |
||||
|
this.lblLog.TabIndex = 2; |
||||
|
this.lblLog.Text = "1234567890"; |
||||
|
// |
||||
|
// FormSplash |
||||
|
// |
||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
|
this.BackColor = System.Drawing.Color.Gray; |
||||
|
this.BackgroundImage = global::QMAPP.WinForm.Resource1.splash; |
||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
||||
|
this.ClientSize = new System.Drawing.Size(524, 318); |
||||
|
this.ControlBox = false; |
||||
|
this.Controls.Add(this.lblLog); |
||||
|
this.Controls.Add(this.lbClose); |
||||
|
this.DoubleBuffered = true; |
||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
||||
|
this.Margin = new System.Windows.Forms.Padding(2); |
||||
|
this.MaximizeBox = false; |
||||
|
this.MinimizeBox = false; |
||||
|
this.Name = "FormSplash"; |
||||
|
this.ShowIcon = false; |
||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
||||
|
this.Load += new System.EventHandler(this.FormLogin_Load); |
||||
|
this.Shown += new System.EventHandler(this.FormSplash_Shown); |
||||
|
this.ResumeLayout(false); |
||||
|
this.PerformLayout(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
private System.Windows.Forms.LinkLabel lbClose; |
||||
|
private System.Windows.Forms.Label lblLog; |
||||
|
} |
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
namespace QMAPP.WinForm |
||||
|
{ |
||||
|
partial class FormFoundUpdate |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 必需的设计器变量。 |
||||
|
/// </summary> |
||||
|
private System.ComponentModel.IContainer components = null; |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 清理所有正在使用的资源。 |
||||
|
/// </summary> |
||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> |
||||
|
protected override void Dispose(bool disposing) |
||||
|
{ |
||||
|
if (disposing && (components != null)) |
||||
|
{ |
||||
|
components.Dispose(); |
||||
|
} |
||||
|
base.Dispose(disposing); |
||||
|
} |
||||
|
|
||||
|
#region Windows 窗体设计器生成的代码 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设计器支持所需的方法 - 不要修改 |
||||
|
/// 使用代码编辑器修改此方法的内容。 |
||||
|
/// </summary> |
||||
|
private void InitializeComponent() |
||||
|
{ |
||||
|
this.btnCancel = new System.Windows.Forms.Button(); |
||||
|
this.txtDesc = new System.Windows.Forms.TextBox(); |
||||
|
this.btnOk = new System.Windows.Forms.Button(); |
||||
|
this.SuspendLayout(); |
||||
|
// |
||||
|
// btnCancel |
||||
|
// |
||||
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
||||
|
this.btnCancel.Location = new System.Drawing.Point(7, 243); |
||||
|
this.btnCancel.Margin = new System.Windows.Forms.Padding(2); |
||||
|
this.btnCancel.Name = "btnCancel"; |
||||
|
this.btnCancel.Size = new System.Drawing.Size(60, 30); |
||||
|
this.btnCancel.TabIndex = 6; |
||||
|
this.btnCancel.Text = "取消"; |
||||
|
this.btnCancel.UseVisualStyleBackColor = true; |
||||
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
||||
|
// |
||||
|
// txtDesc |
||||
|
// |
||||
|
this.txtDesc.Dock = System.Windows.Forms.DockStyle.Top; |
||||
|
this.txtDesc.Location = new System.Drawing.Point(5, 5); |
||||
|
this.txtDesc.Margin = new System.Windows.Forms.Padding(5); |
||||
|
this.txtDesc.Multiline = true; |
||||
|
this.txtDesc.Name = "txtDesc"; |
||||
|
this.txtDesc.ReadOnly = true; |
||||
|
this.txtDesc.Size = new System.Drawing.Size(596, 231); |
||||
|
this.txtDesc.TabIndex = 8; |
||||
|
// |
||||
|
// btnOk |
||||
|
// |
||||
|
this.btnOk.Location = new System.Drawing.Point(535, 243); |
||||
|
this.btnOk.Margin = new System.Windows.Forms.Padding(2); |
||||
|
this.btnOk.Name = "btnOk"; |
||||
|
this.btnOk.Size = new System.Drawing.Size(60, 30); |
||||
|
this.btnOk.TabIndex = 9; |
||||
|
this.btnOk.Text = "确定"; |
||||
|
this.btnOk.UseVisualStyleBackColor = true; |
||||
|
this.btnOk.Click += new System.EventHandler(this.btnOk_Click); |
||||
|
// |
||||
|
// FormFoundUpdate |
||||
|
// |
||||
|
this.AcceptButton = this.btnOk; |
||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
|
this.CancelButton = this.btnCancel; |
||||
|
this.ClientSize = new System.Drawing.Size(606, 284); |
||||
|
this.Controls.Add(this.btnOk); |
||||
|
this.Controls.Add(this.txtDesc); |
||||
|
this.Controls.Add(this.btnCancel); |
||||
|
this.DoubleBuffered = true; |
||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
||||
|
this.Margin = new System.Windows.Forms.Padding(2); |
||||
|
this.Name = "FormFoundUpdate"; |
||||
|
this.Padding = new System.Windows.Forms.Padding(5); |
||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
||||
|
this.Text = "自动更新"; |
||||
|
this.Load += new System.EventHandler(this.FormAutoUpdate_Load); |
||||
|
this.ResumeLayout(false); |
||||
|
this.PerformLayout(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
private System.Windows.Forms.Button btnCancel; |
||||
|
private System.Windows.Forms.TextBox txtDesc; |
||||
|
private System.Windows.Forms.Button btnOk; |
||||
|
} |
||||
|
} |
||||
|
|
File diff suppressed because it is too large
@ -0,0 +1,582 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.BLL; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.BLL.Dict; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.FJC.DAL.Operation; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.DAL.ProductIn; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using QMAPP.FJC.DAL.ProductionPlan; |
||||
|
using QMAPP.FJC.Entity.ProductionPlan; |
||||
|
using System.Text.RegularExpressions; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.MD.DAL; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.Operation |
||||
|
{ |
||||
|
public class MainCodeChangeBLL : BaseBLL |
||||
|
{ |
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(MainCodeChange condition, DataPage page) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
page = new MainCodeChangeDAL().GetList(condition, page); |
||||
|
|
||||
|
List<MainCodeChange> list = page.Result as List<MainCodeChange>; |
||||
|
page.Result = list; |
||||
|
|
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 获取列表web |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetListWeb(MainCodeChange condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
//获取信息列表 |
||||
|
page = new MainCodeChangeDAL().GetList(condition, page); |
||||
|
|
||||
|
#region 转换状态显示类型 |
||||
|
//List<Epidermis> fisOrderList = page.Result as List<Epidermis>; |
||||
|
////处理字典信息 |
||||
|
//DictManageBLL dictSCANSTATE = new DictManageBLL(DictKind.SCANSTATE); |
||||
|
|
||||
|
//foreach (var info in fisOrderList) |
||||
|
//{ |
||||
|
// info.SCANSTATE = dictSCANSTATE.GetDictValue(info.SCANSTATE); |
||||
|
//} |
||||
|
#endregion |
||||
|
|
||||
|
result.Result = page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "成品信息逻辑层-获取列表!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
} |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(MainCodeChange model) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
//基本信息 |
||||
|
model.PID = Guid.NewGuid().ToString(); |
||||
|
model.CREATEUSER = this.LoginUser.UserID; |
||||
|
model.CREATEDATE = DateTime.Now; |
||||
|
MainDAL cmdDAL = new MainDAL(); |
||||
|
if (ExistsMain(model) == true) |
||||
|
return -1; |
||||
|
return new MainCodeChangeDAL().Insert(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 信息是否重复 |
||||
|
/// <summary> |
||||
|
/// 判断名称是否存在 |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <returns>true:已存在;fasel:不存在。</returns> |
||||
|
public bool ExistsMain(MainCodeChange model) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new MainCodeChangeDAL().ExistsMain(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取生成新的Maincode |
||||
|
/// <summary> |
||||
|
/// 获取生成新的Maincode |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public DataResult<string> Generate(string materialCode) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
DataResult<string> result = new DataResult<string>(); |
||||
|
DAL.Operation.MainDAL maindal = new DAL.Operation.MainDAL(); |
||||
|
maindal.BaseSession = session; |
||||
|
PrintCode condition = maindal.GetMaxMainCode(materialCode); |
||||
|
|
||||
|
string newcode = "1"; |
||||
|
if (!string.IsNullOrEmpty(condition.MAINCODE)) |
||||
|
{ |
||||
|
string mainCode = (Convert.ToInt32(condition.MAINCODE.Substring(1, 6))).ToString(); |
||||
|
newcode = (Convert.ToInt32(mainCode) + 1) + ""; |
||||
|
} |
||||
|
newcode = "052 4XR" + condition.MAINCODE.Substring(0, 1) + newcode.PadLeft(6, '0'); |
||||
|
result.Result = newcode + CalculateChecksum(newcode); |
||||
|
|
||||
|
PrintCode pc = new PrintCode(); |
||||
|
pc.PID = condition.PID; |
||||
|
pc.MAINCODE = result.Result; |
||||
|
pc.PRODUCTCODE = condition.PRODUCTCODE; |
||||
|
pc.ISCOMPLETE = 0; |
||||
|
pc.CREATETIME = System.DateTime.Now; |
||||
|
DAL.Operation.PrintCodeDAL dal = new DAL.Operation.PrintCodeDAL(); |
||||
|
dal.BaseSession = session; |
||||
|
dal.UpdateForChangeCode(pc); |
||||
|
|
||||
|
session.CommitTs(); |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
session.RollbackTs(); |
||||
|
return new DataResult<string> { IsSuccess = false, Ex = ex, Msg = ex.Message }; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 计算验证码 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public static string CalculateChecksum(string barcode) |
||||
|
{ |
||||
|
string chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; |
||||
|
int sum = 0; |
||||
|
foreach (var c in barcode) |
||||
|
{ |
||||
|
sum += chars.IndexOf(c); |
||||
|
} |
||||
|
int rem = sum % chars.Length; |
||||
|
return chars[rem].ToString(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 导出数据 |
||||
|
/// <summary> |
||||
|
/// 获取导出的数据 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <returns>数据</returns> |
||||
|
public DataResult<DataTable> GetExportData(MainCodeChange model) |
||||
|
{ |
||||
|
DataResult<DataTable> result = new DataResult<DataTable>(); |
||||
|
try |
||||
|
{ |
||||
|
result.IsSuccess = true; |
||||
|
result.Result = new MainCodeChangeDAL().GetExportData(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
LogManager.LogHelper.Error(new LogInfo() |
||||
|
{ |
||||
|
ErrorInfo = ex, |
||||
|
Tag = ex.StackTrace, |
||||
|
Info = "导出错误!" |
||||
|
}); |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = "导出错误!"; |
||||
|
} |
||||
|
return result; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 门板条码重新生成 |
||||
|
|
||||
|
public Product DPRegenerate(Product product) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string oldcode=product.PRODUCTCODE; |
||||
|
product.OUTFLAG = "2"; |
||||
|
string regexp="(?<=\\d)R\\d"; |
||||
|
var flag=System.Text.RegularExpressions.Regex.Match(oldcode,regexp); |
||||
|
if(flag.Success) |
||||
|
{ |
||||
|
var nflag = "R" + (int.Parse(flag.Value[1] + "") + 1); |
||||
|
product.PRODUCTCODE = System.Text.RegularExpressions.Regex.Replace(oldcode, regexp, nflag); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
product.PRODUCTCODE = oldcode.Insert(oldcode.Length - 6, "R0"); |
||||
|
} |
||||
|
|
||||
|
//GenerateCode(product.MATERIAL_CODE, product.CREATEDATE); |
||||
|
var changelog = new MainCodeChange |
||||
|
{ |
||||
|
CREATEDATE = DateTime.Now, |
||||
|
CREATEUSER = LoginUser.UserID, |
||||
|
MATERIAL_NAME = product.MATERIAL_NAME, |
||||
|
MATERIALCODE = product.MATERIAL_CODE, |
||||
|
NEWMAINCODE = product.PRODUCTCODE, |
||||
|
ORIGMAINCODE = oldcode, |
||||
|
PRODUCELINE = product.PRODUCELINE, |
||||
|
PRODUCTCODE = product.PRODUCTCODE, |
||||
|
PID = Guid.NewGuid().ToString() |
||||
|
}; |
||||
|
|
||||
|
DAL.Operation.ProductDAL dal = new ProductDAL(); |
||||
|
dal.BaseSession = session; |
||||
|
DAL.QT.ProductStructureDAL psdal = new DAL.QT.ProductStructureDAL(); |
||||
|
psdal.BaseSession = session; |
||||
|
DAL.Operation.MainCodeChangeDAL cdal = new MainCodeChangeDAL(); |
||||
|
cdal.BaseSession = session; |
||||
|
DAL.Operation.MainOperationDAL modal = new MainOperationDAL(); |
||||
|
modal.BaseSession = session; |
||||
|
|
||||
|
session.OpenTs(); |
||||
|
|
||||
|
dal.ReplaceBarcode(oldcode, product.PRODUCTCODE); |
||||
|
psdal.ReplaceProcesscode(oldcode, product.PRODUCTCODE); |
||||
|
modal.ReplaceBarcode(oldcode, product.PRODUCTCODE); |
||||
|
modal.DPParamReplace(oldcode, product.PRODUCTCODE); |
||||
|
|
||||
|
cdal.Insert(changelog); |
||||
|
|
||||
|
session.CommitTs(); |
||||
|
return product; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
session.RollbackTs(); |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private string GenerateCode(string materialcode, DateTime time) |
||||
|
{ |
||||
|
QMAPP.FJC.DAL.MD.MaterialDAL mdal = new QMAPP.FJC.DAL.MD.MaterialDAL(); |
||||
|
var material = mdal.Get(new QMAPP.FJC.Entity.MD.Material { MATERIAL_CODE = materialcode }); |
||||
|
if (material == null) |
||||
|
{ |
||||
|
throw new Exception("查找物料信息失败!"); |
||||
|
} |
||||
|
DAL.Basic.MaterialCodeInitDAL mcdal = new DAL.Basic.MaterialCodeInitDAL(); |
||||
|
var materialinit = mcdal.GetByCondition(new Entity.Basic.MaterialCodeInit { MATERIAL_TYPE = material.MATERIAL_TYPE_CODE }); |
||||
|
|
||||
|
string prefix = ""; |
||||
|
if (materialinit != null) |
||||
|
{ |
||||
|
prefix = materialinit.PRODUCT_TYPES; |
||||
|
} |
||||
|
|
||||
|
var productdal = new DAL.Produce.ProductDAL(); |
||||
|
|
||||
|
string maxcode = productdal.GetMaxCode(material.MATERIAL_TYPE_CODE, time); |
||||
|
string newcode = "1"; |
||||
|
if (!string.IsNullOrEmpty(maxcode)) |
||||
|
{ |
||||
|
newcode = (Convert.ToInt32(maxcode) + 1) + ""; |
||||
|
} |
||||
|
newcode = prefix + time.ToString("yyyyMMdd") + newcode.PadLeft(6, '0'); |
||||
|
|
||||
|
return newcode; |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
public DataResult ReplacePlanNo(Product product,string newplanno) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var changelog = new MainCodeChange |
||||
|
{ |
||||
|
CREATEDATE = DateTime.Now, |
||||
|
CREATEUSER = LoginUser.UserID, |
||||
|
MATERIAL_NAME = product.MATERIAL_NAME, |
||||
|
MATERIALCODE = product.MATERIAL_CODE, |
||||
|
NEWMAINCODE = newplanno, |
||||
|
ORIGMAINCODE = product.PLAN_NO, |
||||
|
PRODUCELINE = product.PRODUCELINE, |
||||
|
PRODUCTCODE = product.PRODUCTCODE, |
||||
|
PID = Guid.NewGuid().ToString() |
||||
|
}; |
||||
|
|
||||
|
DAL.Operation.ProductDAL dal = new ProductDAL(); |
||||
|
dal.BaseSession = session; |
||||
|
DAL.Operation.MainCodeChangeDAL cdal = new MainCodeChangeDAL(); |
||||
|
cdal.BaseSession = session; |
||||
|
|
||||
|
|
||||
|
|
||||
|
if (product.ENDOFLINE != "1") |
||||
|
{ |
||||
|
var order = SetOrder(session, newplanno, product); |
||||
|
dal.ReplacePlanNo(product.PRODUCTCODE, newplanno, order.ORDERPLANID); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
dal.ReplacePlanNo(product.PRODUCTCODE, newplanno, ""); |
||||
|
} |
||||
|
|
||||
|
cdal.Insert(changelog); |
||||
|
|
||||
|
session.CommitTs(); |
||||
|
return new DataResult { IsSuccess = true }; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
session.RollbackTs(); |
||||
|
return new DataResult { IsSuccess = false, Ex = ex, Msg = ex.Message }; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public DataResult ExchangePlanNo(Product oproduct, Product nproduct) |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var changelog = new MainCodeChange |
||||
|
{ |
||||
|
CREATEDATE = DateTime.Now, |
||||
|
CREATEUSER = LoginUser.UserID, |
||||
|
MATERIAL_NAME = oproduct.MATERIAL_NAME, |
||||
|
MATERIALCODE = oproduct.MATERIAL_CODE, |
||||
|
NEWMAINCODE = nproduct.PLAN_NO, |
||||
|
ORIGMAINCODE = oproduct.PLAN_NO, |
||||
|
PRODUCELINE = oproduct.PRODUCELINE, |
||||
|
PRODUCTCODE = oproduct.PRODUCTCODE, |
||||
|
PID = Guid.NewGuid().ToString() |
||||
|
}; |
||||
|
var changelog1 = new MainCodeChange |
||||
|
{ |
||||
|
CREATEDATE = DateTime.Now, |
||||
|
CREATEUSER = LoginUser.UserID, |
||||
|
MATERIAL_NAME = nproduct.MATERIAL_NAME, |
||||
|
MATERIALCODE = nproduct.MATERIAL_CODE, |
||||
|
NEWMAINCODE = oproduct.PLAN_NO, |
||||
|
ORIGMAINCODE = nproduct.PLAN_NO, |
||||
|
PRODUCELINE = nproduct.PRODUCELINE, |
||||
|
PRODUCTCODE = nproduct.PRODUCTCODE, |
||||
|
PID = Guid.NewGuid().ToString() |
||||
|
}; |
||||
|
|
||||
|
DAL.Operation.ProductDAL dal = new ProductDAL(); |
||||
|
dal.BaseSession = session; |
||||
|
DAL.Operation.MainCodeChangeDAL cdal = new MainCodeChangeDAL(); |
||||
|
cdal.BaseSession = session; |
||||
|
|
||||
|
|
||||
|
|
||||
|
if (nproduct.ENDOFLINE != "1") |
||||
|
{ |
||||
|
var norder= SetOrder(session, oproduct.PLAN_NO, nproduct); |
||||
|
dal.ReplacePlanNo(nproduct.PRODUCTCODE, oproduct.PLAN_NO,norder.ORDERPLANID); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
dal.ReplacePlanNo(nproduct.PRODUCTCODE, oproduct.PLAN_NO,""); |
||||
|
} |
||||
|
if (oproduct.ENDOFLINE != "1") |
||||
|
{ |
||||
|
var oorder = SetOrder(session, nproduct.PLAN_NO, oproduct); |
||||
|
dal.ReplacePlanNo(oproduct.PRODUCTCODE, nproduct.PLAN_NO,oorder.ORDERPLANID); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
dal.ReplacePlanNo(oproduct.PRODUCTCODE, nproduct.PLAN_NO,""); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
cdal.Insert(changelog); |
||||
|
|
||||
|
session.CommitTs(); |
||||
|
return new DataResult { IsSuccess = true }; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
session.RollbackTs(); |
||||
|
return new DataResult { IsSuccess = false, Ex = ex, Msg = ex.Message }; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private Entity.ProductionPlan.WorkOrder SetOrder(IDataSession session , string orderno,Product product) |
||||
|
{ |
||||
|
string regexp_full = "^D\\d{2}\\w+[RF][LR]\\d{2}(10|11|12|0[1-9])(30|31|2\\d|1\\d|0[1-9])\\w\\d{5}$"; |
||||
|
string regexp_prefix = "^D\\d{2}\\w+(?=[RF][LR]\\d{6})"; |
||||
|
string regexp_position = "[RF][LR](?=\\d{6})"; |
||||
|
string regexp_date = "(?<=[RF][LR])\\d{2}(10|11|12|0[1-9])(30|31|2\\d|1\\d|0[1-9])"; |
||||
|
string regexp_seq = "\\d{5}$"; |
||||
|
string regexp_sdSeq = "(?<=SD)\\d{4}$"; |
||||
|
var plandal = new DAL.FIS.OrderPlanDAL(); |
||||
|
var workorderdal = new DAL.ProductionPlan.WorkOrderDAL(); |
||||
|
//Entity.FIS.OrderPlan plan = null; |
||||
|
Entity.ProductionPlan.WorkOrder order = null; |
||||
|
order = workorderdal.GetOneByOrderNO(orderno); |
||||
|
|
||||
|
if (order == null) |
||||
|
{ |
||||
|
var plan=plandal.GetInfo(new Entity.FIS.OrderPlan { PLAN_NO = Regex.Replace(orderno,regexp_sdSeq, "") }); |
||||
|
if (plan == null) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
|
||||
|
string codeprefix = Regex.Match(orderno, regexp_prefix).Value; |
||||
|
string positioncode = Regex.Match(orderno, regexp_position).Value; |
||||
|
string date = Regex.Match(orderno, regexp_date).Value; |
||||
|
string seq = ""; |
||||
|
if (Regex.IsMatch(orderno, regexp_full)) |
||||
|
{ |
||||
|
seq = Regex.Match(orderno, regexp_seq).Value; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
seq = Regex.Match(orderno, regexp_sdSeq).Value; |
||||
|
} |
||||
|
|
||||
|
string materialcode = new DAL.FIS.FISPhraseDAL().GetMESModulCode(codeprefix, positioncode); |
||||
|
if (string.IsNullOrWhiteSpace(materialcode)) |
||||
|
{ |
||||
|
throw new Exception("FIS短语字典配置不准确或未更新!"); |
||||
|
} |
||||
|
|
||||
|
DateTime plandate |
||||
|
= new DateTime(2000 + int.Parse(date.Substring(0, 2)) |
||||
|
, int.Parse(date.Substring(2, 2)) |
||||
|
, int.Parse(date.Substring(4, 2))); |
||||
|
|
||||
|
plandal.BaseSession = session; |
||||
|
plan = new Entity.FIS.OrderPlan |
||||
|
{ |
||||
|
CREATEDATE = DateTime.Now, |
||||
|
COMPLETE_QTY = 0, |
||||
|
CREATEUSER = "", |
||||
|
MATERIAL_CODE = materialcode,////////////////// |
||||
|
PID = Guid.NewGuid().ToString(), |
||||
|
PLAN_DATE = plandate,//////////// |
||||
|
PLAN_NO = orderno, |
||||
|
PLAN_SEQ = seq,////////////////// |
||||
|
PLAN_STATE = "1", |
||||
|
PLANSOURCE = Regex.IsMatch(orderno, regexp_full)?"0":"1", |
||||
|
QTY = 1, |
||||
|
UPDATEUSER = "", |
||||
|
UPDATEDATE = DateTime.Now, |
||||
|
}; |
||||
|
|
||||
|
Pbom pbomcode = new PbomDAL().Get(new Pbom { MATERIAL_CODE = plan.MATERIAL_CODE }); |
||||
|
if (pbomcode != null) |
||||
|
{ |
||||
|
plan.PBOM_CODE = pbomcode.PBOM_CODE; |
||||
|
} |
||||
|
QMAPP.MD.Entity.ProcessRoute routecode = new QMAPP.MD.DAL.ProcessRouteDAL().RouteWithMaterial(plan.MATERIAL_CODE); |
||||
|
if (routecode != null) |
||||
|
{ |
||||
|
plan.ROUTE_CODE = routecode.ROUTE_CODE; |
||||
|
} |
||||
|
string workcentercode = new WorkCellDAL().GetWorkcenterWithMaterial(plan.MATERIAL_CODE); |
||||
|
if (workcentercode != null) |
||||
|
{ |
||||
|
plan.WORKCENTER_CODE = workcentercode; |
||||
|
} |
||||
|
//赋值新session后插入 zxd20171101 |
||||
|
plandal.Insert(plan); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
var wodDal = new WorkOrderDAL(); |
||||
|
//List<QMAPP.MD.Entity.ProcessRouteWorkCellSeq> list = new WorkCellDAL().GetFirstWorkCell(plan.PBOM_CODE); |
||||
|
|
||||
|
wodDal.BaseSession = session; |
||||
|
|
||||
|
//DataRow workOrder = workOrderDt.NewRow(); |
||||
|
order = new WorkOrder(); |
||||
|
|
||||
|
order.PID = Guid.NewGuid().ToString(); |
||||
|
order.ORDERPLANID = plan.PID; |
||||
|
order.ORDERPLAN_NO = plan.PLAN_NO; |
||||
|
if (Regex.IsMatch(orderno, regexp_full)) |
||||
|
order.ORDER_TYPE = EnumGeter.WORKORDERTYPE.FIS.GetHashCode().ToString(); |
||||
|
else |
||||
|
order.ORDER_TYPE = EnumGeter.WORKORDERTYPE.STOCK.GetHashCode().ToString(); |
||||
|
order.SEQ = plan.PLAN_SEQ; |
||||
|
order.MATERIAL_CODE = plan.MATERIAL_CODE; |
||||
|
order.PBOM_CODE = plan.PBOM_CODE; |
||||
|
order.QTY = 1; |
||||
|
order.COMPLETE_QTY = 0; |
||||
|
order.PLAN_DATE = plan.PLAN_DATE; |
||||
|
order.SHIFT_CODE = plan.SHIFT_CODE; |
||||
|
order.WORKCENTER_CODE = plan.WORKCENTER_CODE; |
||||
|
//WorkCell workcellcode = new WorkCellDAL().Get(new WorkCell { WORKCENTER_CODE = info.WORKCENTER_CODE }); |
||||
|
order.WORKCELL_CODE = product.WORKCELL_CODE; |
||||
|
order.WORKLOC_CODE = ""; |
||||
|
order.REMARK = product.PRODUCTCODE; |
||||
|
order.EQPT_NAME = ""; |
||||
|
order.EQPT_CODE = ""; |
||||
|
order.STATE = EnumGeter.WORKPLANSTATE.READY.GetHashCode(); |
||||
|
order.PRI = 1; |
||||
|
//order.UPDATEDATE = DateTime.Now; |
||||
|
order.PRINTED = "1"; |
||||
|
wodDal.Insert(order); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
order.WORKCELL_CODE = product.WORKCELL_CODE; |
||||
|
order.REMARK = product.PRODUCTCODE; |
||||
|
var wodDal = new WorkOrderDAL(); |
||||
|
|
||||
|
wodDal.BaseSession = session; |
||||
|
wodDal.Update(order); |
||||
|
} |
||||
|
return order; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<configuration> |
||||
|
<system.serviceModel> |
||||
|
<bindings> |
||||
|
<basicHttpBinding> |
||||
|
<binding name="JsonServiceSoap" /> |
||||
|
</basicHttpBinding> |
||||
|
<customBinding> |
||||
|
<binding name="JsonServiceSoap12"> |
||||
|
<textMessageEncoding messageVersion="Soap12" /> |
||||
|
<httpTransport /> |
||||
|
</binding> |
||||
|
</customBinding> |
||||
|
</bindings> |
||||
|
<client> |
||||
|
<endpoint address="http://10.60.101.101:882/JsonService.asmx" binding="basicHttpBinding" |
||||
|
bindingConfiguration="JsonServiceSoap" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap" /> |
||||
|
<endpoint address="http://10.60.101.101:882/JsonService.asmx" binding="customBinding" |
||||
|
bindingConfiguration="JsonServiceSoap12" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap12" /> |
||||
|
|
||||
|
|
||||
|
<!--<endpoint address="http://10.60.101.2:88/JsonService.asmx" binding="basicHttpBinding" |
||||
|
bindingConfiguration="JsonServiceSoap" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap" /> |
||||
|
<endpoint address="http://10.60.101.2:88/JsonService.asmx" binding="customBinding" |
||||
|
bindingConfiguration="JsonServiceSoap12" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap12" />--> |
||||
|
</client> |
||||
|
</system.serviceModel> |
||||
|
<system.web> |
||||
|
<customErrors mode="RemoteOnly"/> |
||||
|
</system.web> |
||||
|
</configuration> |
@ -0,0 +1,79 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Basic |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:配置表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年05月14日 |
||||
|
/// </summary> |
||||
|
public class MaterialBomConfigDAL |
||||
|
{ |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 查询自动输入的输入条码 |
||||
|
/// </summary> |
||||
|
/// <param name="pBomCode"></param> |
||||
|
/// <param name="pWorkLoc"></param> |
||||
|
/// <returns></returns> |
||||
|
public List<string> GetAutoInputBarCode(string pBomCode, string pWorkLoc) |
||||
|
{ |
||||
|
List<DataParameter> parameter = new List<DataParameter>(); |
||||
|
List<string> list = new List<string>(); |
||||
|
var data = new DataTable(); |
||||
|
//var sqlScript = $"select Product_Code from T_MD_MaterialBomConfig_QD where workloc = '{pWorkLoc}' and material_code = '{pBomCode}'"; |
||||
|
|
||||
|
string sqlScript = $@"select Product_Code from T_MD_MaterialBomConfig_QD |
||||
|
where material_code is not null and material_code in |
||||
|
(select material_code from T_MD_PBOM_ITEM where pbom_code = '{pBomCode}' |
||||
|
INTERSECT |
||||
|
select material_code from T_MD_MaterialBomConfig_QD where workloc = '{pWorkLoc}' ) and workloc ='{pWorkLoc}'"; |
||||
|
|
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//DataSet dataSet = SqlHelper.ExecuteDataset(Config.maindbConnectionString, CommandType.Text, sqlScript); |
||||
|
data = session.GetTable(sqlScript, parameter.ToArray()); |
||||
|
} |
||||
|
if (data.Rows.Count > 0) |
||||
|
{ |
||||
|
foreach (DataRow dataRow in data.Rows) |
||||
|
{ |
||||
|
string pbom = dataRow["Product_Code"].ToString(); |
||||
|
if (!list.Contains(pbom) && !string.IsNullOrEmpty(pbom)) |
||||
|
{ |
||||
|
list.Add(pbom); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<MaterialBomConfig> Get(MaterialBomConfig MaterialBomConfig) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = $"SELECT PID,Material_Code,Workloc,Product_Code,Material_Name FROM [T_MD_ScanIPConfig_QD] where Workloc = '{MaterialBomConfig.Workloc}' and Material_Code = '{MaterialBomConfig.Material_Code}' "; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetList<MaterialBomConfig>(sql, parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,98 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
using System.Drawing; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows.Forms; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.BZD; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
public partial class InjectPasswordForm : Form |
||||
|
{ |
||||
|
//获取服务代理 |
||||
|
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent(); |
||||
|
|
||||
|
//List<BZDConfig> _bzdConfig = null; |
||||
|
|
||||
|
//Product _CurrentProduct = null; |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
public InjectPasswordForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
infolabel.Text = ""; |
||||
|
infolabel.ForeColor = Color.Red; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#region 打印按钮 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打印按钮 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void button1_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string MakeUpBZD = ""; |
||||
|
DataTable dataTable = _agent.InvokeServiceFunction<DataTable>(B9IPCService.BZDConfigBLL_GetAppConfigValue.ToString(), "MakeUpBZD"); |
||||
|
if (dataTable.Rows.Count > 0) |
||||
|
{ |
||||
|
MakeUpBZD = dataTable.Rows[0]["Value"].ToString(); |
||||
|
} |
||||
|
|
||||
|
if (string.IsNullOrEmpty(MakeUpBZD)) |
||||
|
MakeUpBZD = "admin"; |
||||
|
if (string.IsNullOrEmpty(txtMainCode.Text)) |
||||
|
{ |
||||
|
infolabel.Text = "请输入密码!"; |
||||
|
this.Show(); |
||||
|
|
||||
|
} |
||||
|
if (txtMainCode.Text == MakeUpBZD) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
|
||||
|
InjectPrintForm frm = new InjectPrintForm(this); |
||||
|
frm.ShowDialog(); |
||||
|
|
||||
|
//this.DialogResult = DialogResult.OK; |
||||
|
|
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
infolabel.Text = "密码输入错误!"; |
||||
|
this.Show(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
catch (Exception exception) |
||||
|
{ |
||||
|
//MessageBox.Show("打印失败!"); |
||||
|
throw; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
namespace Stone.WinModuleTransWare |
||||
|
{ |
||||
|
partial class Form1 |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 必需的设计器变量。 |
||||
|
/// </summary> |
||||
|
private System.ComponentModel.IContainer components = null; |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 清理所有正在使用的资源。 |
||||
|
/// </summary> |
||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> |
||||
|
protected override void Dispose(bool disposing) |
||||
|
{ |
||||
|
if (disposing && (components != null)) |
||||
|
{ |
||||
|
components.Dispose(); |
||||
|
} |
||||
|
base.Dispose(disposing); |
||||
|
} |
||||
|
|
||||
|
#region Windows 窗体设计器生成的代码 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设计器支持所需的方法 - 不要修改 |
||||
|
/// 使用代码编辑器修改此方法的内容。 |
||||
|
/// </summary> |
||||
|
private void InitializeComponent() |
||||
|
{ |
||||
|
this.textBox1 = new System.Windows.Forms.TextBox(); |
||||
|
this.button1 = new System.Windows.Forms.Button(); |
||||
|
this.SuspendLayout(); |
||||
|
// |
||||
|
// textBox1 |
||||
|
// |
||||
|
this.textBox1.Location = new System.Drawing.Point(103, 56); |
||||
|
this.textBox1.Multiline = true; |
||||
|
this.textBox1.Name = "textBox1"; |
||||
|
this.textBox1.Size = new System.Drawing.Size(536, 163); |
||||
|
this.textBox1.TabIndex = 0; |
||||
|
// |
||||
|
// button1 |
||||
|
// |
||||
|
this.button1.Location = new System.Drawing.Point(321, 300); |
||||
|
this.button1.Name = "button1"; |
||||
|
this.button1.Size = new System.Drawing.Size(75, 23); |
||||
|
this.button1.TabIndex = 1; |
||||
|
this.button1.Text = "Speek"; |
||||
|
this.button1.UseVisualStyleBackColor = true; |
||||
|
this.button1.Click += new System.EventHandler(this.button1_Click); |
||||
|
// |
||||
|
// Form1 |
||||
|
// |
||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
|
this.ClientSize = new System.Drawing.Size(800, 450); |
||||
|
this.Controls.Add(this.button1); |
||||
|
this.Controls.Add(this.textBox1); |
||||
|
this.Name = "Form1"; |
||||
|
this.Text = "Form1"; |
||||
|
this.ResumeLayout(false); |
||||
|
this.PerformLayout(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
private System.Windows.Forms.TextBox textBox1; |
||||
|
private System.Windows.Forms.Button button1; |
||||
|
} |
||||
|
} |
||||
|
|
@ -0,0 +1,225 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Configuration; |
||||
|
using System.Drawing; |
||||
|
using System.Windows.Forms; |
||||
|
using QM.Common; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.Injection; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.Entity; |
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号:M12-1 |
||||
|
/// 作 用:投料记录 |
||||
|
/// 作 者:王庆男 |
||||
|
/// 编写日期:2015年06月08日 |
||||
|
///</summary> |
||||
|
public partial class InjectionMoldingNEWForm : Form |
||||
|
{ |
||||
|
InjectionRecorder searchModel = new InjectionRecorder();//查询条件 |
||||
|
public InjectionMoldingNEWForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
#region 窗体载入 |
||||
|
|
||||
|
private void Form_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
//初始化控件属性 |
||||
|
this.DGView.AutoGenerateColumns = false; |
||||
|
#region 绑定下拉列表 |
||||
|
BasicData basicData = new BasicData(); |
||||
|
////加载注塑设备列表 |
||||
|
//this.comMachine.DataSource = basicData.GetMachineInfoList(new string[] { EnumGeter.ProcessType_M.Injection.GetHashCode().ToString() }, true); |
||||
|
//this.comMachine.DisplayMember = "MACHINENAME"; |
||||
|
//this.comMachine.ValueMember = "MACHINECODDE"; |
||||
|
//加载原材料类别 |
||||
|
this.comMaterialCode.DataSource = basicData.GetMaterielInfoList("RAW_INJECT", true); |
||||
|
this.comMaterialCode.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comMaterialCode.ValueMember = "MATERIAL_CODE"; |
||||
|
//加载操作人 |
||||
|
this.comOpereator.DataSource = basicData.GetOperatorInfoList(EnumGeter.MACHINETYPE.zhusu.GetHashCode().ToString(), true); ; |
||||
|
this.comOpereator.DisplayMember = "OPERATOR"; |
||||
|
this.comOpereator.ValueMember = "PID"; |
||||
|
#endregion |
||||
|
//初始化条件 |
||||
|
this.dtpCreateUserStart.ValueX = DateTime.Now.AddDays(-10); |
||||
|
this.dtpCreateUserEnd.ValueX = DateTime.Now; |
||||
|
//初始化分页 |
||||
|
this.pager1.Init(); |
||||
|
//加载默认查询条件 |
||||
|
SetSearchModel(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 绑定数据 |
||||
|
|
||||
|
private DataPage BindGirdData() |
||||
|
{ |
||||
|
List<InjectionRecorder> recorders = null;//查询结果列表 |
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage = pager1.DataPage; |
||||
|
try |
||||
|
{ |
||||
|
#region 服务查询 |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.InjectionRecorderBLL_GetList.ToString(), searchModel, dataPage); |
||||
|
recorders = JsonConvertHelper.GetDeserialize<List<InjectionRecorder>>(dataPage.Result.ToString()); |
||||
|
#endregion |
||||
|
this.DGView.DataSource = recorders; |
||||
|
this.pager1.DataPage = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
return dataPage; |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
/// <summary> |
||||
|
/// 分页事件 |
||||
|
/// </summary> |
||||
|
/// <param name="e"></param> |
||||
|
/// <returns></returns> |
||||
|
private DataPage pager1_EventPaging(Controls.EventPagingArg e) |
||||
|
{ |
||||
|
return BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 查询事件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbSearch_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
SetSearchModel(); |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设置查询条件 |
||||
|
/// </summary> |
||||
|
private void SetSearchModel() |
||||
|
{ |
||||
|
searchModel = new InjectionRecorder(); |
||||
|
searchModel.MACHINETYPE = EnumGeter.MACHINETYPE.zhusu.GetHashCode().ToString();//默认条件为注塑 |
||||
|
////设备 |
||||
|
//if (this.comMachine.SelectedValue != null && string.IsNullOrEmpty(this.comMachine.SelectedValue.ToString().Trim()) == false) |
||||
|
//{ |
||||
|
// searchModel.MACHINECODDE = this.comMachine.SelectedValue.ToString().Trim(); |
||||
|
//} |
||||
|
//原材料物料号 |
||||
|
if (this.comMaterialCode.SelectedValue != null && string.IsNullOrEmpty(this.comMaterialCode.SelectedValue.ToString().Trim()) == false) |
||||
|
{ |
||||
|
searchModel.MATERIALCODE = this.comMaterialCode.SelectedValue + ""; |
||||
|
} |
||||
|
//批次 |
||||
|
if (string.IsNullOrEmpty(this.txtBatch.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.MATERIALBATCH = this.txtBatch.Text.Trim(); |
||||
|
} |
||||
|
//开始时间 |
||||
|
if (string.IsNullOrEmpty(this.dtpCreateUserStart.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.CreateDateStart = Convert.ToDateTime(this.dtpCreateUserStart.Text).ToString("yyyy-MM-dd").Trim(); |
||||
|
} |
||||
|
//结束时间 |
||||
|
if (string.IsNullOrEmpty(this.dtpCreateUserEnd.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.CreateDateEnd = Convert.ToDateTime(this.dtpCreateUserEnd.Text).AddDays(1).ToString("yyyy-MM-dd").Trim(); |
||||
|
} |
||||
|
//操作人 |
||||
|
if (this.comOpereator.SelectedValue != null && string.IsNullOrEmpty(this.comOpereator.SelectedValue.ToString()) == false) |
||||
|
{ |
||||
|
searchModel.CREATEUSER = this.comOpereator.SelectedValue.ToString(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 删除 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbDelete_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (this.DGView.SelectedRows.Count <= 0) |
||||
|
return; |
||||
|
if (MessageBox.Show(Resource1.ConfirmDelete, Resource1.ConfirmTitle, MessageBoxButtons.OKCancel) != DialogResult.OK) |
||||
|
return; |
||||
|
|
||||
|
#region 执行删除 |
||||
|
string selectKey = this.DGView.SelectedRows[0].Cells["Pid"].Value.ToString(); |
||||
|
//删除校验判断该投料批次号是否已经生产出产品,如果已生产出产品则不允许删除,如果不允许则弹出提示'该批次号物料已使用,不能删除!' |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataResult<int> result = agent.InvokeServiceFunction<DataResult<int>>(B9BasicService.InjectionRecorderBLL_DeleteSingle.ToString(), selectKey); |
||||
|
MessageBox.Show(result.Msg); |
||||
|
if (result.IsSuccess) |
||||
|
{ |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开投料 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbAdd_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
InjectionMoldingEditForm editForm = new InjectionMoldingEditForm(); |
||||
|
DialogResult result = editForm.ShowDialog(); |
||||
|
if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 |
||||
|
{ |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开编辑 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbEdit_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (this.DGView.SelectedRows.Count > 0) |
||||
|
{ |
||||
|
string selectKey = this.DGView.SelectedRows[0].Cells["Pid"].Value.ToString(); |
||||
|
InjectionMoldingEditForm editForm = new InjectionMoldingEditForm(selectKey); |
||||
|
DialogResult result = editForm.ShowDialog(); |
||||
|
if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 |
||||
|
{ |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 行序号 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void DG_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) |
||||
|
{ |
||||
|
Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, this.DGView.RowHeadersWidth - 4, e.RowBounds.Height); |
||||
|
TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), new Font("宋体", 12, FontStyle.Bold), rectangle, this.DGView.RowHeadersDefaultCellStyle.ForeColor, TextFormatFlags.VerticalCenter | TextFormatFlags.Right); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,274 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.BLL; |
||||
|
|
||||
|
using QMFrameWork.Data; |
||||
|
|
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Log; |
||||
|
using System.Data; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.MD.DAL; |
||||
|
using QMAPP.FJC.Entity.BZD; |
||||
|
|
||||
|
namespace QMAPP.FJC.BLL.BZD |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:BZD条码配置 |
||||
|
/// 作 者:宁红钢 |
||||
|
/// 编写日期:2019年10月12日 |
||||
|
/// </summary> |
||||
|
public class BZDRecorderBLL : BaseBLL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>信息</returns> |
||||
|
public DataResult<BZDRecorder2> Get(BZDRecorder2 model) |
||||
|
{ |
||||
|
DataResult<BZDRecorder2> result = new DataResult<BZDRecorder2>(); |
||||
|
try |
||||
|
{ |
||||
|
result.Result = new BZDRecorderDAL().Get(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
} |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
public BZDRecorder2 GetRecord(BZDRecorder2 model) |
||||
|
{ |
||||
|
DataResult<BZDRecorder2> result = new DataResult<BZDRecorder2>(); |
||||
|
try |
||||
|
{ |
||||
|
return new BZDRecorderDAL().GetRecord(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public BZDRecorder2 Get316Record(BZDRecorder2 model) |
||||
|
{ |
||||
|
DataResult<BZDRecorder2> result = new DataResult<BZDRecorder2>(); |
||||
|
try |
||||
|
{ |
||||
|
return new BZDRecorderDAL().Get316Record(model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表(分页) |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataResult<DataPage> GetList(BZDRecorder2 condition, DataPage page) |
||||
|
{ |
||||
|
DataResult<DataPage> result = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
//获取物料信息列表 |
||||
|
DataPage dataPage = new BZDRecorderDAL().GetList(condition, page); |
||||
|
|
||||
|
result.Result = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
result.IsSuccess = false; |
||||
|
result.Msg = Resource.SystemException; |
||||
|
throw ex; |
||||
|
} |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
|
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 获取全部条码格式规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public List<BZDRecorder2> GetAllList() |
||||
|
{ |
||||
|
return new BZDRecorderDAL().GetAllList(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 信息是否重复 |
||||
|
/// <summary> |
||||
|
/// 判断名称是否存在 |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>true:已存在;fasel:不存在。</returns> |
||||
|
public bool Exists(BZDRecorder info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new BZDRecorderDAL().Exists(info); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
//public List<string> getMaxSeq(string BZDCODE) |
||||
|
//{ |
||||
|
// List<string> list = new List<string>(); |
||||
|
// list.Add(new BZDRecorderDAL().getMaxSeq(BZDCODE)); |
||||
|
// return list; |
||||
|
//} |
||||
|
|
||||
|
public List<string> CreateBZDCode(List<string> paramList) |
||||
|
{ |
||||
|
return new BZDRecorderDAL().CreateBZDCode(paramList, this.LoginUser.UserID); |
||||
|
} |
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(BZDRecorder info) |
||||
|
{ |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
//基本信息 |
||||
|
info.PID = Guid.NewGuid().ToString(); |
||||
|
// info.MPID = ""; |
||||
|
info.CREATEUSER = this.LoginUser.UserID; |
||||
|
info.CREATEDATE = DateTime.Now; |
||||
|
//info.UPDATEUSER = info.CREATEUSER; |
||||
|
//info.UPDATEDATE = info.CREATEDATE; |
||||
|
//info.FLGDEL = "0"; |
||||
|
BZDRecorderDAL cmdDAL = new BZDRecorderDAL(); |
||||
|
return new BZDRecorderDAL().Insert(info); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public DataResult<int> Update(BZDRecorder info) |
||||
|
{ |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
//info.UPDATEUSER = this.LoginUser.UserID; |
||||
|
//info.UPDATEDATE = DateTime.Now; |
||||
|
//info.FLGDEL = "0"; |
||||
|
result.Result = new BZDRecorderDAL().Update(info); |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 删除 |
||||
|
/// <summary> |
||||
|
/// 删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">主键串</param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public DataResult<int> Delete(string strs) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
string[] list = strs.Split(":".ToCharArray()); |
||||
|
try |
||||
|
{ |
||||
|
foreach (string str in list) |
||||
|
{ |
||||
|
count += this.DeleteBarcodeRules(new BZDRecorder { PID = str }); |
||||
|
} |
||||
|
result.Result = count; |
||||
|
result.IsSuccess = true; |
||||
|
return result; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int DeleteBarcodeRules(BZDRecorder info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new BZDRecorderDAL().Delete(info); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 导出数据 |
||||
|
/// <summary> |
||||
|
/// 获取导出的数据 |
||||
|
/// </summary> |
||||
|
/// <param name="">查询条件</param> |
||||
|
/// <returns>数据</returns> |
||||
|
public DataTable GetExportData(BZDRecorder2 info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
return new BZDRecorderDAL().GetExportData(info); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,235 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{063B6316-7154-4BD9-B546-21CCE4685235}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.FJC.DAL</RootNamespace> |
||||
|
<AssemblyName>QMAPP.FJC.DAL</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\DLL\oracle32\Oracle.DataAccess.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Common"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Log"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Log.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="SapInterface"> |
||||
|
<HintPath>..\..\DLL\SapInterface.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Andon\AndonCallDAL.cs" /> |
||||
|
<Compile Include="Andon\AndonSetDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialBomConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\ScanIPConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\AppConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\BarcodeRulesDAL.cs" /> |
||||
|
<Compile Include="Basic\BomHdrDAL.cs" /> |
||||
|
<Compile Include="Basic\CapacityDAL.cs" /> |
||||
|
<Compile Include="Basic\CorpDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoModelDAL.cs" /> |
||||
|
<Compile Include="Basic\MarkAddrDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialCodeInitDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterialShelfTypeDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielDAL.cs" /> |
||||
|
<Compile Include="Basic\MaterielVersionDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\MoldSetDAL.cs" /> |
||||
|
<Compile Include="Basic\OperatorInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ParameterConfigDAL.cs" /> |
||||
|
<Compile Include="Basic\PrintModelCopyDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessParameterDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteDAL.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Basic\ProcessRouteWithWorkCellSeqDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRuleDAL.cs" /> |
||||
|
<Compile Include="Basic\ProcessSetDAL.cs" /> |
||||
|
<Compile Include="Basic\ProduceShiftDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductBasicDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductCodeIdentityDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductInfoDAL.cs" /> |
||||
|
<Compile Include="Basic\ProductMderuleDAL.cs" /> |
||||
|
<Compile Include="Basic\UnQualityProductDAL.cs" /> |
||||
|
<Compile Include="Basic\WorkOrder.cs" /> |
||||
|
<Compile Include="Bucket\BucketInfoDAL.cs" /> |
||||
|
<Compile Include="BZD\BarcodeRule.cs" /> |
||||
|
<Compile Include="BZD\BZDConfigDAL.cs" /> |
||||
|
<Compile Include="BZD\BarCodeReplacementDAL.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorderDAL.cs" /> |
||||
|
<Compile Include="BZD\DecimalToCharX.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeSetDAL.cs" /> |
||||
|
<Compile Include="CheckTime\CHECKTIMEDAL.cs" /> |
||||
|
<Compile Include="CompleteStatistics\CompleteStatisticsDAL.cs" /> |
||||
|
<Compile Include="EM\EmMeterReadingsDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterDAL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReadingsDAL.cs" /> |
||||
|
<Compile Include="Equipment\AlarmTableDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipMentRecordDAL.cs" /> |
||||
|
<Compile Include="Equipment\MouldDAL.cs" /> |
||||
|
<Compile Include="Equipment\UsageLogDAL.cs" /> |
||||
|
<Compile Include="FileCopy\FileCopyRecordDAL.cs" /> |
||||
|
<Compile Include="FIS\DashBoardPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\DoorPlankPlanDAL.cs" /> |
||||
|
<Compile Include="FIS\FisDAL.cs" /> |
||||
|
<Compile Include="FIS\FISInfoDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderSendDAL.cs" /> |
||||
|
<Compile Include="FIS\FISOrederSendDetialDAL.cs" /> |
||||
|
<Compile Include="FIS\FISPhraseDAL.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanDAL.cs" /> |
||||
|
<Compile Include="FrmPlace\FrmPlaceDAL.cs" /> |
||||
|
<Compile Include="InterfaceData\LeakInspectRecordDAL.cs" /> |
||||
|
<Compile Include="MachineCheck\MachineCheckDAL.cs" /> |
||||
|
<Compile Include="MD\MaterialDAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9M110DAL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4M110DAL.cs" /> |
||||
|
<Compile Include="Message\MessageDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipmentMonitorDAL.cs" /> |
||||
|
<Compile Include="Monitor\ShipMonitorSetDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoInfoDAL.cs" /> |
||||
|
<Compile Include="ODS\VideoTypeDAL.cs" /> |
||||
|
<Compile Include="Operation\CastCounterDAL.cs" /> |
||||
|
<Compile Include="Operation\ElectricalCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\InjectionCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\MainCodeChangeDAL.cs" /> |
||||
|
<Compile Include="Operation\MainMolderStatusDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductCountDAL.cs" /> |
||||
|
<Compile Include="Operation\MaterialCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\PrintCodeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductCheckDAL.cs" /> |
||||
|
<Compile Include="Operation\PbomItemDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductEndDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductOutDAL.cs" /> |
||||
|
<Compile Include="Package\PackageDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MenderReasonDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ScrapRecordDAL.cs" /> |
||||
|
<Compile Include="Produce\ProductDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\ProductWithPlanDAL.cs" /> |
||||
|
<Compile Include="ProductionPlan\WorkOrderDAL.cs" /> |
||||
|
<Compile Include="QT\AnalyzerDAL.cs" /> |
||||
|
<Compile Include="QT\DAICacheDAL.cs" /> |
||||
|
<Compile Include="QT\DAIDAL.cs" /> |
||||
|
<Compile Include="QT\DAIItemDAL.cs" /> |
||||
|
<Compile Include="QT\DAIValidationDAL.cs" /> |
||||
|
<Compile Include="QT\MaterialBindingDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessParametersDAL.cs" /> |
||||
|
<Compile Include="QT\ProcessRecordDAL.cs" /> |
||||
|
<Compile Include="QT\ProductStructureDAL.cs" /> |
||||
|
<Compile Include="QT\SendOrderConfigDAL.cs" /> |
||||
|
<Compile Include="QT\StateActionDAL.cs" /> |
||||
|
<Compile Include="QT\ValidatorDAL.cs" /> |
||||
|
<Compile Include="QT\WorkCellRunStateDAL.cs" /> |
||||
|
<Compile Include="SA\WorkcellQtyCountDAL.cs" /> |
||||
|
<Compile Include="SendManage\SendPlanRecordDAL.cs" /> |
||||
|
<Compile Include="Stocktaking\StocktakingDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\OutWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarehouseManage\InWarehouseDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentAlarmDAL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentMaintainDAL.cs" /> |
||||
|
<Compile Include="WarnManage\WarnManageDAL.cs" /> |
||||
|
<Compile Include="Equipment\EquipmentMaintainDAL.cs" /> |
||||
|
<Compile Include="Example\UserManageDAL1.cs" /> |
||||
|
<Compile Include="Injection\InjectionRecorderDAL.cs" /> |
||||
|
<Compile Include="Operation\MainDAL.cs" /> |
||||
|
<Compile Include="Operation\MainOperationDAL.cs" /> |
||||
|
<Compile Include="Operation\MainProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductAttributeDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductDAL.cs" /> |
||||
|
<Compile Include="Operation\ProductInjectionDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\ProducePlanDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\MendRecorderDAL.cs" /> |
||||
|
<Compile Include="ProduceManage\UnQualityDAL.cs" /> |
||||
|
<Compile Include="Produce\MainProductDAL.cs" /> |
||||
|
<Compile Include="ProductPetrospect\ProductArchivesDAL.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="FeedInManage\EpidermisDAL.cs" /> |
||||
|
<Compile Include="SendPlan\SendPlanInfoDAL.cs" /> |
||||
|
<Compile Include="WIPManage\DetentionDAL.cs" /> |
||||
|
<Compile Include="WIPManage\StorageAlarmDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInventoryDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPOutRecorderDAL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPProductCountDAL.cs" /> |
||||
|
<Compile Include="WipService\CheckWipDAL.cs" /> |
||||
|
<Compile Include="QdFis\mbM100DAL.cs" /> |
||||
|
<Compile Include="QdFis\ybbM100DAL.cs" /> |
||||
|
<Compile Include="ProductIn\ProductInDAL.cs" /> |
||||
|
<Compile Include="FuntionDescriptionDAL\FuntionDescriptionDAL.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.Entity\QMAPP.MD.Entity.csproj"> |
||||
|
<Project>{A80DFEE4-F3D0-4234-A2CC-E4DCE5000E7E}</Project> |
||||
|
<Name>QMAPP.MD.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.DAL\QMAPP.DAL.csproj"> |
||||
|
<Project>{407204CD-0256-4EDD-8A89-26EBF83D19A7}</Project> |
||||
|
<Name>QMAPP.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.FJC.Entity\QMAPP.FJC.Entity.csproj"> |
||||
|
<Project>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</Project> |
||||
|
<Name>QMAPP.FJC.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Folder Include="ProcessParameter\" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
@ -0,0 +1,284 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{82A4D3A5-844B-49E0-9D06-0C2B273EF1F0}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.FJC.BLL</RootNamespace> |
||||
|
<AssemblyName>QMAPP.FJC.BLL</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="BarcodeLib"> |
||||
|
<HintPath>..\..\DLL\BarcodeLib.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Newtonsoft.Json"> |
||||
|
<HintPath>..\..\DLL\Newtonsoft.Json.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Ptl.Device"> |
||||
|
<HintPath>..\..\DLL\XGate\Ptl.Device.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Ptl.Device.XmlSerializers"> |
||||
|
<HintPath>..\..\DLL\XGate\Ptl.Device.XmlSerializers.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Cache"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Cache.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Common, Version=1.1.1.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Common.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Log"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Log.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="ReachFramework" /> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.configuration" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Runtime.Serialization" /> |
||||
|
<Reference Include="System.ServiceModel" /> |
||||
|
<Reference Include="System.Web.Services" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Andon\AndonCallBLL.cs" /> |
||||
|
<Compile Include="Andon\AndonSetBLL.cs" /> |
||||
|
<Compile Include="Basic\MaterialBomConfigBLL.cs" /> |
||||
|
<Compile Include="Basic\ScanIPConfigBLL.cs" /> |
||||
|
<Compile Include="Basic\AppConfigBLL.cs" /> |
||||
|
<Compile Include="Basic\BarcodeRulesBLL.cs" /> |
||||
|
<Compile Include="Basic\BomHdrBLL.cs" /> |
||||
|
<Compile Include="Basic\CapacityBLL.cs" /> |
||||
|
<Compile Include="Basic\CorpBLL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoBLL.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoModelBLL.cs" /> |
||||
|
<Compile Include="Basic\MaterialShelfTypeBLL.cs" /> |
||||
|
<Compile Include="Basic\MaterielBLL.cs" /> |
||||
|
<Compile Include="Basic\MaterielVersionBLL.cs" /> |
||||
|
<Compile Include="Basic\MoldSetBLL.cs" /> |
||||
|
<Compile Include="Basic\MoldValueBLL.cs" /> |
||||
|
<Compile Include="Basic\OperatorInfoBLL.cs" /> |
||||
|
<Compile Include="Basic\ParameterConfigBLL.cs" /> |
||||
|
<Compile Include="Basic\PrintModelCopyBLL.cs" /> |
||||
|
<Compile Include="Basic\ProcessInfoBLL.cs" /> |
||||
|
<Compile Include="Basic\ProcessParameterBLL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteBLL.cs" /> |
||||
|
<Compile Include="Basic\ProcessRuleBLL.cs" /> |
||||
|
<Compile Include="Basic\ProcessSetBLL.cs" /> |
||||
|
<Compile Include="Basic\ProduceShiftBLL.cs" /> |
||||
|
<Compile Include="Basic\ProductBasicBLL.cs" /> |
||||
|
<Compile Include="Basic\ProductCodeIdentityBLL.cs" /> |
||||
|
<Compile Include="Basic\ProductInfoBLL.cs" /> |
||||
|
<Compile Include="Basic\ProductMderuleBLL.cs" /> |
||||
|
<Compile Include="Basic\UnQualityProductBLL.cs" /> |
||||
|
<Compile Include="BZD\BZDConfigBLL.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorderBLL.cs" /> |
||||
|
<Compile Include="BZD\Resource.Designer.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeBLL.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeSetBLL.cs" /> |
||||
|
<Compile Include="Common\BinaryConvert.cs" /> |
||||
|
<Compile Include="Common\CommonFunction.cs" /> |
||||
|
<Compile Include="Common\CRC.cs" /> |
||||
|
<Compile Include="Common\FileHelper.cs" /> |
||||
|
<Compile Include="Common\IdentityScope.cs" /> |
||||
|
<Compile Include="CompleteStatistics\CompleteStatisticsBLL.cs" /> |
||||
|
<Compile Include="EM\EmMeterReadingsBLL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReader.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterBLL.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReadingsBLL.cs" /> |
||||
|
<Compile Include="EquipMentAlarmManage\EquipMentMaintainSearchBLL.cs" /> |
||||
|
<Compile Include="Equipment\AlarmTableBLL.cs" /> |
||||
|
<Compile Include="Equipment\EquipMentRecordBLL.cs" /> |
||||
|
<Compile Include="Equipment\MouldBLL.cs" /> |
||||
|
<Compile Include="Equipment\UsageLogBLL.cs" /> |
||||
|
<Compile Include="Equipment\TempProductBLL.cs" /> |
||||
|
<Compile Include="Equipment\WSHelper.cs" /> |
||||
|
<Compile Include="FileCopy\FileCopyRecordBLL.cs" /> |
||||
|
<Compile Include="FIS\DashBoardPlanBLL.cs" /> |
||||
|
<Compile Include="FIS\DoorPlankPlanBLL.cs" /> |
||||
|
<Compile Include="FIS\FisBLL.cs" /> |
||||
|
<Compile Include="FIS\FISInfoBLL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderBLL.cs" /> |
||||
|
<Compile Include="FIS\FISOrderSendBLL.cs" /> |
||||
|
<Compile Include="FIS\FISOrederSendDetialBLL.cs" /> |
||||
|
<Compile Include="FIS\FISPhraseBLL.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanBLL.cs" /> |
||||
|
<Compile Include="FrmPlace\FrmPlaceBLL.cs" /> |
||||
|
<Compile Include="FwMark\FWMARKDeal.cs" /> |
||||
|
<Compile Include="Injection\PouringRecorderBLL.cs" /> |
||||
|
<Compile Include="InterfaceData\LeakInspectRecordBLL.cs" /> |
||||
|
<Compile Include="MachineCheck\MachineCheckBLL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9BLL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4BLL.cs" /> |
||||
|
<Compile Include="MesB9\MesB9M110BLL.cs" /> |
||||
|
<Compile Include="MesB9\MesB4M110BLL.cs" /> |
||||
|
<Compile Include="Monitor\ShipmentMonitorBLL.cs" /> |
||||
|
<Compile Include="Monitor\ShipMonitorSetBLL.cs" /> |
||||
|
<Compile Include="ODS\VideoInfoBLL.cs" /> |
||||
|
<Compile Include="ODS\VideoTypeBLL.cs" /> |
||||
|
<Compile Include="Operation\CastCounterBLL.cs" /> |
||||
|
<Compile Include="Operation\InjectionCheckBLL.cs" /> |
||||
|
<Compile Include="Operation\MainCodeChangeBLL.cs" /> |
||||
|
<Compile Include="Operation\MainProductCountBLL.cs" /> |
||||
|
<Compile Include="Operation\MaterialCodeBLL.cs" /> |
||||
|
<Compile Include="Operation\PbomItemBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductCheckBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductEndBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductOutBLL.cs" /> |
||||
|
<Compile Include="Package\PackageBLL.cs" /> |
||||
|
<Compile Include="Process\OperateProcess.cs" /> |
||||
|
<Compile Include="Process\ProcessOrderSend.cs" /> |
||||
|
<Compile Include="ProduceManage\DefectTypeBLL.cs" /> |
||||
|
<Compile Include="ProduceManage\ScrapRecordBLL.cs" /> |
||||
|
<Compile Include="ProductionPlan\WorkOrderBLL.cs" /> |
||||
|
<Compile Include="QT\AnalyzerBLL.cs" /> |
||||
|
<Compile Include="QT\DAIBLL.cs" /> |
||||
|
<Compile Include="QT\DAICacheBLL.cs" /> |
||||
|
<Compile Include="QT\DAIItemBLL.cs" /> |
||||
|
<Compile Include="QT\DAIValidationBLL.cs" /> |
||||
|
<Compile Include="QT\ProcessParametersBLL.cs" /> |
||||
|
<Compile Include="QT\ProcessRecordBLL.cs" /> |
||||
|
<Compile Include="QT\ProductStructureBLL.cs" /> |
||||
|
<Compile Include="QT\ValidatorBLL.cs" /> |
||||
|
<Compile Include="QT\WorkCellRunStateBLL.cs" /> |
||||
|
<Compile Include="QT\MaterialBindingBLL.cs" /> |
||||
|
<Compile Include="SendManage\SendPlanRecordBLL.cs" /> |
||||
|
<Compile Include="Stocktaking\StocktakingBLL.cs" /> |
||||
|
<Compile Include="WarehouseManage\OutWarehouseBLL.cs" /> |
||||
|
<Compile Include="ProduceManage\MendRecorderBLL.cs" /> |
||||
|
<Compile Include="WarehouseManage\InWarehouseBLL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentAlarmBLL.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentMaintainSearchBLL.cs" /> |
||||
|
<Compile Include="WarnManage\WarnManageBLL.cs" /> |
||||
|
<Compile Include="Equipment\EquipmentMaintainBLL.cs" /> |
||||
|
<Compile Include="IPC\SPCControlBLL.cs" /> |
||||
|
<Compile Include="Operation\MainBLL.cs" /> |
||||
|
<Compile Include="Operation\MainOperationBLL.cs" /> |
||||
|
<Compile Include="Operation\MainProductBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductAttributeBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductBLL.cs" /> |
||||
|
<Compile Include="Operation\ProductInjectionBLL.cs" /> |
||||
|
<Compile Include="Process\ParameterDeal.cs" /> |
||||
|
<Compile Include="ProduceManage\UnQualityBLL.cs" /> |
||||
|
<Compile Include="ProduceManage\ProducePlanBLL.cs" /> |
||||
|
<Compile Include="Dict\DictManageBLL.cs" /> |
||||
|
<Compile Include="Dict\Enums.cs" /> |
||||
|
<Compile Include="Example\UserManageBLL1.cs" /> |
||||
|
<Compile Include="Injection\InjectionRecorderBLL.cs" /> |
||||
|
<Compile Include="Injection\SlushRecorderBLL.cs" /> |
||||
|
<Compile Include="Process\AssembleProcess.cs" /> |
||||
|
<Compile Include="Process\HotScanProcess.cs" /> |
||||
|
<Compile Include="Process\InjectionProcess.cs" /> |
||||
|
<Compile Include="Process\SlushProcess.cs" /> |
||||
|
<Compile Include="ProductPetrospect\ProductArchivesBLL.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="FeedInManage\EpidermisBLL.cs" /> |
||||
|
<Compile Include="SendPlan\SendPlanInfoBLL.cs" /> |
||||
|
<Compile Include="WIPManage\DetentionBLL.cs" /> |
||||
|
<Compile Include="WIPManage\StorageAlarmBLL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInRecorderBLL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInventoryBLL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPOutRecorderBLL.cs" /> |
||||
|
<Compile Include="WIPManage\WIPProductCountBLL.cs" /> |
||||
|
<Compile Include="WipService\CheckWipBLL.cs" /> |
||||
|
<Compile Include="QdFis\mbM100BLL.cs" /> |
||||
|
<Compile Include="QdFis\ybbM100BLL.cs" /> |
||||
|
<Compile Include="ProductIn\ProductInBLL.cs" /> |
||||
|
<Compile Include="FuntionDescription\FuntionDescriptionBLL.cs" /> |
||||
|
<Compile Include="XGate\LightController.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.BLL\QMAPP.MD.BLL.csproj"> |
||||
|
<Project>{CF05BE73-3D50-4F6B-A95C-EE55800EDB9C}</Project> |
||||
|
<Name>QMAPP.MD.BLL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.DAL\QMAPP.MD.DAL.csproj"> |
||||
|
<Project>{25F672F4-55A6-41B3-82DA-84233786D991}</Project> |
||||
|
<Name>QMAPP.MD.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APPMD\QMAPP.MD.Entity\QMAPP.MD.Entity.csproj"> |
||||
|
<Project>{A80DFEE4-F3D0-4234-A2CC-E4DCE5000E7E}</Project> |
||||
|
<Name>QMAPP.MD.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.BLL\QMAPP.BLL.csproj"> |
||||
|
<Project>{DCABED0D-A8FC-47ED-BFB1-AAAEAD0A9B01}</Project> |
||||
|
<Name>QMAPP.BLL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.DAL\QMAPP.DAL.csproj"> |
||||
|
<Project>{407204CD-0256-4EDD-8A89-26EBF83D19A7}</Project> |
||||
|
<Name>QMAPP.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\Exchange\QM.Exchange.Adapters\QM.Exchange.Adapters.csproj"> |
||||
|
<Project>{8A50A215-C033-42DC-A656-BC1F117DA6BA}</Project> |
||||
|
<Name>QM.Exchange.Adapters</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.FJC.DAL\QMAPP.FJC.DAL.csproj"> |
||||
|
<Project>{063B6316-7154-4BD9-B546-21CCE4685235}</Project> |
||||
|
<Name>QMAPP.FJC.DAL</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\QMAPP.FJC.Entity\QMAPP.FJC.Entity.csproj"> |
||||
|
<Project>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</Project> |
||||
|
<Name>QMAPP.FJC.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Content Include="BarCodeXML\Biaopi.xml"> |
||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
|
</Content> |
||||
|
<Content Include="BarCodeXML\SendInfo.xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<WCFMetadata Include="Service References\" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<None Include="app.config" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<EmbeddedResource Include="BZD\Resource.resx" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
@ -0,0 +1,111 @@ |
|||||
|
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.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:搪塑称重记录 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年08月24日 |
||||
|
/// </summary> |
||||
|
public class TSWeighRecoreModel : QDGModel |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] |
||||
|
[DGColumn(Hidden = true, PrimaryKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 注塑条码 |
||||
|
/// </summary> |
||||
|
[Description("注塑条码")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.center)] |
||||
|
public string ProductCode { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 颜色 |
||||
|
/// </summary> |
||||
|
[Description("颜色")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] |
||||
|
public string PColour { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料号 |
||||
|
/// </summary> |
||||
|
[Description("物料号")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 300)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 300, DataAlign = DataAlign.center)] |
||||
|
public string MATERIAL_CODE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 重量 |
||||
|
/// </summary> |
||||
|
[Description("重量")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] |
||||
|
public string Weigh { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建人 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
public string CREATEUSER { 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 UPDATEUSER { 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 UPDATEDATE { get; set; } |
||||
|
|
||||
|
///// <summary> |
||||
|
///// 开始时间 |
||||
|
///// </summary> |
||||
|
//[Description("开始时间")] |
||||
|
//[HTMLInput(UpdateRead = true, MaxLength = 20)] |
||||
|
//[InputType(inputType.dateTimeBox)] |
||||
|
//[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss", Hidden = true)] |
||||
|
//public DateTime BeginTime { get; set; } |
||||
|
|
||||
|
///// <summary> |
||||
|
///// 结束时间 |
||||
|
///// </summary> |
||||
|
//[Description("结束时间")] |
||||
|
//[HTMLInput(UpdateRead = true, MaxLength = 20)] |
||||
|
//[InputType(inputType.dateTimeBox)] |
||||
|
//[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss",Hidden = true)] |
||||
|
//public DateTime EndTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,258 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class BucketMaterialDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public BucketMaterial Get(BucketMaterial info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<BucketMaterial>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public BucketMaterial Get(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_BucketMaterial] WHERE [MATERIAL_CODE]=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<BucketMaterial>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(BucketMaterial 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 = "UPDATEDATE DESC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<BucketMaterial>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(BucketMaterial condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,Line,BucketCode,RawMaterial,IsCheck,CREATEUSER,CREATEDATE,UPDATEUSER,UPDATEDATE "); |
||||
|
sqlBuilder.Append("FROM T_MD_BucketMaterial "); |
||||
|
whereBuilder.Append(" AND IsCheck<> '1' "); |
||||
|
//查询条件 |
||||
|
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 bool Exists(BucketMaterial info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_BucketMaterial"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(BucketMaterial info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<BucketMaterial>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(BucketMaterial info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<BucketMaterial>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("UPDATE T_MD_BucketMaterial "); |
||||
|
sqlBuilder.Append("SET IsCheck = '1' "); |
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,84 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.MD.Entity.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_BucketMaterial")] |
||||
|
public class BucketMaterial : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 产线 |
||||
|
/// </summary> |
||||
|
[Description("产线")] |
||||
|
[DBColumn(ColumnName = "Line", DataType = DbType.String)] |
||||
|
public string Line { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 编号 |
||||
|
/// </summary> |
||||
|
[Description("编号")] |
||||
|
[DBColumn(ColumnName = "BucketCode", DataType = DbType.String)] |
||||
|
public string BucketCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 原料零件号 |
||||
|
/// </summary> |
||||
|
[Description("原料零件号")] |
||||
|
[DBColumn(ColumnName = "RawMaterial", DataType = DbType.String)] |
||||
|
public string RawMaterial { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[DBColumn(ColumnName = "IsCheck", DataType = DbType.String)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)] |
||||
|
public string CREATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.String)] |
||||
|
public string CREATEDATE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改用户 |
||||
|
/// </summary> |
||||
|
[Description("修改用户")] |
||||
|
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)] |
||||
|
public string UPDATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改时间 |
||||
|
/// </summary> |
||||
|
[Description("修改时间")] |
||||
|
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.String)] |
||||
|
public string UPDATEDATE { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Basic |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:配置表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年03月17日 |
||||
|
/// </summary> |
||||
|
public class AppConfigDAL |
||||
|
{ |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public AppConfig Get(string Code) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = $"SELECT * FROM [T_MD_AppConfig_QD] where Code = '{Code}'"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.Get<AppConfig>(sql, parameters.ToArray()); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取全部规则 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
public MaterialClass GetMATERIAL(string MATERIALCode,ref string msg) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var sql = $" select MATERIAL_TYPE_NAME,LAYER_NUM,UP_MATERIAL_TYPE_CODE from T_MD_MATERIAL_CLASS where MATERIAL_TYPE_CODE = '{MATERIALCode}'"; |
||||
|
var MaterialClass = new MaterialClass(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
MaterialClass = session.Get<MaterialClass>(sql, parameters.ToArray()); |
||||
|
} |
||||
|
|
||||
|
if (MaterialClass.LAYER_NUM == "2") |
||||
|
{ |
||||
|
msg = MaterialClass.MATERIAL_TYPE_NAME; |
||||
|
return MaterialClass; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
GetMATERIAL(MaterialClass.UP_MATERIAL_TYPE_CODE,ref msg); |
||||
|
} |
||||
|
return MaterialClass; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.Entity; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.MD.Entity.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年08月11日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_BucketMaterialClass")] |
||||
|
public class BucketMaterialClass : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料编号 |
||||
|
/// </summary> |
||||
|
[Description("物料编号")] |
||||
|
[DBColumn(ColumnName = "MaterialCode", DataType = DbType.String)] |
||||
|
public string MaterialCode { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 原料零件号 |
||||
|
/// </summary> |
||||
|
[Description("原料零件号")] |
||||
|
[DBColumn(ColumnName = "RawMaterial", DataType = DbType.String)] |
||||
|
public string RawMaterial { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[DBColumn(ColumnName = "IsCheck", DataType = DbType.String)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建用户 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)] |
||||
|
public string CREATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建时间 |
||||
|
/// </summary> |
||||
|
[Description("创建时间")] |
||||
|
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.String)] |
||||
|
public string CREATEDATE { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改用户 |
||||
|
/// </summary> |
||||
|
[Description("修改用户")] |
||||
|
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)] |
||||
|
public string UPDATEUSER { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 修改时间 |
||||
|
/// </summary> |
||||
|
[Description("修改时间")] |
||||
|
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.String)] |
||||
|
public string UPDATEDATE { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMFrameWork.Data.Attributes; |
||||
|
using QMAPP.Entity; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
|
||||
|
namespace QMAPP.FJC.Entity.Basic |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:配置表 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年05月14日 |
||||
|
/// </summary> |
||||
|
[DBTable(TableName = "T_MD_MaterialBomConfig_QD")] |
||||
|
public class MaterialBomConfig : BaseEntity |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料号 |
||||
|
/// </summary> |
||||
|
[DBColumn(ColumnName = "Material_Code", DataType = DbType.String)] |
||||
|
public string Material_Code { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 序号 |
||||
|
/// </summary> |
||||
|
[DBColumn(ColumnName = "Product_Code", DataType = DbType.Int32)] |
||||
|
public string Product_Code { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 工位 |
||||
|
/// </summary> |
||||
|
[DBColumn(ColumnName = "Workloc", DataType = DbType.String)] |
||||
|
public string Workloc { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 物料号 |
||||
|
/// </summary> |
||||
|
[DBColumn(ColumnName = "Material_Name", DataType = DbType.String)] |
||||
|
public string Material_Name { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,229 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Web.Mvc; |
||||
|
using QMAPP.Common.Web.Controllers; |
||||
|
using QMFrameWork.WebUI.Attribute; |
||||
|
using QMAPP.MD.Web.Models; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMFrameWork.WebUI.DataSource; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.FJC.Web.Models; |
||||
|
using QMAPP.FJC.Entity.BZD; |
||||
|
using QMAPP.FJC.Entity.CheckTime; |
||||
|
using QMAPP.FJC.Web.Models.CheckTime; |
||||
|
|
||||
|
namespace QMAPP.FJC.Web.Controllers |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:本地库无记录的 时间验证 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2020年03月00日 |
||||
|
/// </summary> |
||||
|
///</summary> |
||||
|
public class CHECKTIMEController : QController |
||||
|
{ |
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 加载列表 |
||||
|
/// </summary> |
||||
|
/// <returns>结果</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult List(bool? callBack) |
||||
|
{ |
||||
|
CHECKTIMEModel seachModel = new CHECKTIMEModel(); |
||||
|
if (callBack == true) |
||||
|
TryGetSelectBuffer<CHECKTIMEModel>(out seachModel); |
||||
|
seachModel.rownumbers = false; |
||||
|
seachModel.url = "/CHECKTIME/GetList"; |
||||
|
return View("CHECKTIMEList", seachModel); |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="callBack">是否回调</param> |
||||
|
/// <returns>列表</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult GetList(bool? callBack) |
||||
|
{ |
||||
|
CHECKTIMEModel seachModel = null; |
||||
|
DataPage page = null; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
CHECKTIME condition = null; |
||||
|
DataResult<DataPage> pageResult = new DataResult<DataPage>(); |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
//获取查询对象 |
||||
|
seachModel = GetModel<CHECKTIMEModel>(); |
||||
|
#region 获取缓存值 |
||||
|
if (callBack != null) |
||||
|
{ |
||||
|
TryGetSelectBuffer<CHECKTIMEModel>(out seachModel); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//保存搜索条件 |
||||
|
SetSelectBuffer<CHECKTIMEModel>(seachModel); |
||||
|
} |
||||
|
#endregion |
||||
|
//获取前台分页设置信息 |
||||
|
page = this.GetDataPage(seachModel); |
||||
|
condition = CopyToModel<CHECKTIME, CHECKTIMEModel>(seachModel); |
||||
|
#region wcf服务统一接口 |
||||
|
pageResult = wcfAgent.InvokeServiceFunction<DataResult<DataPage>>("CHECKTIMEBLL_GetList", condition, page); |
||||
|
if (pageResult.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(pageResult.Msg); |
||||
|
return List(true); |
||||
|
} |
||||
|
DateGridResult<CHECKTIME> result = new DateGridResult<CHECKTIME>(); |
||||
|
result.Total = pageResult.Result.RecordCount; |
||||
|
result.Rows = JsonConvertHelper.GetDeserialize<List<CHECKTIME>>(pageResult.Result.Result.ToString()); |
||||
|
#endregion |
||||
|
|
||||
|
string tempstr = ""; |
||||
|
tempstr = result.GetJsonSource(); |
||||
|
return Content(tempstr); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 编辑 |
||||
|
/// <summary> |
||||
|
/// 编辑载入 |
||||
|
/// </summary> |
||||
|
/// <returns>处理结果</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult Edit() |
||||
|
{ |
||||
|
CHECKTIMEModel model = new CHECKTIMEModel(); |
||||
|
string ID = Request.Params["PID"]; |
||||
|
CHECKTIME Entity = new CHECKTIME(); |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
DataResult<CHECKTIME> result = new DataResult<CHECKTIME>(); |
||||
|
try |
||||
|
{ |
||||
|
if (string.IsNullOrEmpty(ID) == false) |
||||
|
{ |
||||
|
//修改获取原数据 |
||||
|
Entity.PID = ID; |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<CHECKTIME>>(QMAPP.ServicesAgent.B9IPCService.CHECKTIMEBLL_Get.ToString(), Entity); |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(result.Msg); |
||||
|
return View("CHECKTIMEEdit", model); |
||||
|
} |
||||
|
model = CopyToModel<CHECKTIMEModel, CHECKTIME>(result.Result); |
||||
|
//根据工位信息获得工序信息 |
||||
|
|
||||
|
|
||||
|
//string kind = model.WORKLOC_CODE; |
||||
|
//var WORKCELL_CODE = ""; |
||||
|
//ServiceAgent wcfAgent1 = this.GetServiceAgent(); |
||||
|
//if (string.IsNullOrEmpty(kind) == false) |
||||
|
//{ |
||||
|
// var dataResult = wcfAgent1.InvokeServiceFunction<List<WorkLoc>> |
||||
|
// ("WorkLocBLL_GetWorkCellFromWorkLocList", new WorkLoc(), kind); |
||||
|
// foreach (WorkLoc item in dataResult) |
||||
|
// { |
||||
|
// WORKCELL_CODE = item.WORKCELL_CODE; |
||||
|
// } |
||||
|
//} |
||||
|
//model.WORKCELL_CODE = WORKCELL_CODE; |
||||
|
|
||||
|
} |
||||
|
return View("CHECKTIMEEdit", model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 保存 |
||||
|
/// <summary> |
||||
|
/// 保存 |
||||
|
/// </summary> |
||||
|
/// <param name="model"></param> |
||||
|
/// <returns>处理结果</returns> |
||||
|
[HttpPost] |
||||
|
[HandleException] |
||||
|
[ValidateInput(false)] |
||||
|
public ActionResult Save(CHECKTIMEModel saveModel) |
||||
|
{ |
||||
|
CHECKTIME Entity = null; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
Entity = CopyToModel<CHECKTIME, CHECKTIMEModel>(saveModel); |
||||
|
if (string.IsNullOrEmpty(Entity.PID) == true) |
||||
|
{ |
||||
|
//新增 |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.B9IPCService.CHECKTIMEBLL_Insert.ToString(), Entity); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//修改 |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.B9IPCService.CHECKTIMEBLL_Update.ToString(), Entity); |
||||
|
} |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(result.Msg); |
||||
|
return View("CHECKTIMEEdit", 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(CHECKTIMEModel saveModel) |
||||
|
{ |
||||
|
string selectKey = Request.Form["selectKey"]; |
||||
|
CHECKTIME Entity = null; |
||||
|
Entity = CopyToModel<CHECKTIME, CHECKTIMEModel>(saveModel); |
||||
|
Entity.PID = selectKey; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<int>>("CHECKTIMEBLL_Delete", selectKey); |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(result.Msg); |
||||
|
return List(true); |
||||
|
} |
||||
|
SetMessage(AppResource.DeleteMessage); |
||||
|
return List(true); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
Binary file not shown.
@ -0,0 +1,106 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.BZD.BarCodeReplacementModel>" %> |
||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> |
||||
|
条码规则信息列表 |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> |
||||
|
<%=Html.QPSeach(100,true) %> |
||||
|
<table id="condiTable"> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.Type)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Type)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.ProductCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.ProductCode)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.BeginTime) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.BeginTime)%> |
||||
|
</td> |
||||
|
|
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.EndTime)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.EndTime)%> |
||||
|
</td> |
||||
|
|
||||
|
</tr> |
||||
|
|
||||
|
</table> |
||||
|
<div style="left: 1px; position: relative;"></div> |
||||
|
|
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.BZD.BarCodeReplacementModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("MPID")%> |
||||
|
<%-- <%=Html.Hidden("Line_code")%> |
||||
|
<%=Html.Hidden("Line_name")%>--%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('BZD绑定信息添加', 'Edit', '400', '400'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('BZD绑定信息修改', 'Edit?PID=' + ids, '400', '400'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", |
||||
|
"确定要删除选中的记录吗?", |
||||
|
function() { |
||||
|
submitByButton("Delete"); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$(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("BZDConfig", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
||||
|
|
@ -0,0 +1,281 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.CheckTime; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.CheckTime |
||||
|
{ |
||||
|
/// </summary> |
||||
|
/// 模块名称:本地库无记录的 时间验证 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2020年03月00日 |
||||
|
/// </summary> |
||||
|
public class CHECKTIMEDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public CHECKTIME Get(CHECKTIME info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<CHECKTIME>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public CHECKTIME Get(string PID) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_PRODUCT_TIMECHECK_Product] WHERE [PID]=@PID"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("PID", PID)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<CHECKTIME>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(CHECKTIME condition, DataPage page) |
||||
|
{ |
||||
|
string sql = null; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
try |
||||
|
{ |
||||
|
sql = this.GetQuerySql(condition, ref parameters); |
||||
|
//分页关键字段及排序 |
||||
|
page.KeyName = "PID"; |
||||
|
|
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<CHECKTIME>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(CHECKTIME condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,WorkLoc_Code,CodeTimeStart,CodeTimeNumber,State,Check_Value,Operator,Check_Type,Remark,Check_ValueTo,DAI_Code,Column1,Column2 "); |
||||
|
sqlBuilder.Append("FROM T_MD_PRODUCT_TIMECHECK_Product "); |
||||
|
|
||||
|
//查询条件 |
||||
|
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 List<CHECKTIME> SelectCheck(string LocWorkCode ,string DAI_CODE) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append($"SELECT PID,WorkLoc_Code,CodeTimeStart,CodeTimeNumber,State,Check_Value,Operator,Check_Type,Remark,Check_ValueTo,DAI_Code,Column1,Column2 FROM T_MD_PRODUCT_TIMECHECK_Product WHERE WorkLoc_Code = '{LocWorkCode}' AND DAI_Code = '{DAI_CODE}' and State = '0'"); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
return session.GetList<CHECKTIME>(sqlBuilder.ToString(), parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 信息是否重复 |
||||
|
/// <summary> |
||||
|
/// 判断名称是否存在 |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <returns>true:已存在;fasel:不存在。</returns> |
||||
|
public bool Exists(CHECKTIME info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_PRODUCT_TIMECHECK_Product"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(CHECKTIME info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<CHECKTIME>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(CHECKTIME info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<CHECKTIME>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
public DateTime GetServiceDateTime() |
||||
|
{ |
||||
|
StringBuilder sql = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
string sqlScript = @"select GetDATE() as time "; |
||||
|
DataTable datatable = new DataTable(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
datatable = session.GetTable(sqlScript, parameters.ToArray()); |
||||
|
} |
||||
|
|
||||
|
if (datatable.Rows.Count > 0) |
||||
|
{ |
||||
|
string datetimestr = datatable.Rows[0]["time"].ToString(); |
||||
|
return DateTime.Parse(datetimestr); |
||||
|
} |
||||
|
|
||||
|
return DateTime.Now; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,211 @@ |
|||||
|
<?xml version="1.0"?> |
||||
|
<configuration> |
||||
|
<connectionStrings> |
||||
|
<!--主数据库连接--> |
||||
|
<!--<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=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=ADIENT_CD_MES;User Id=sa;Password=Password2018;" providerName="System.Data.SqlClient"/> |
||||
|
|
||||
|
|
||||
|
</connectionStrings> |
||||
|
|
||||
|
<appSettings> |
||||
|
|
||||
|
<!----> |
||||
|
|
||||
|
<add key="ZCZP" value=" 17S" /> |
||||
|
<add key="MachineCheckUrl" value="http://www.baidu.com" /> |
||||
|
<add key="MendDuty" value="工程,运行,维修,物料,质量,其他" /> |
||||
|
<add key="loactionfile" value="C:\MES\location.bin" /> |
||||
|
<add key="loactionfile2" value="C:\MES\location2.bin" /> |
||||
|
<add key="UserInfo" value="C:\MES\data.bin" /> |
||||
|
<add key="logFilePath" value="C:\MES\LogFile" /> |
||||
|
<add key="ReContactValue" value="20" /> |
||||
|
<add key="Dictionary" value="Dictionary.xml" /> |
||||
|
<add key="XmlName" value="../../XMLResources/Biaopi.xml" /> |
||||
|
<add key="PageSize" value="20" /> |
||||
|
<!--<add key="proPath" value="C:\Program Files\lmw32\Lmwprint.exe" />--> |
||||
|
<add key="proPath" value="C:\Program Files (x86)\lmw32\Lmwprint.exe" /> |
||||
|
<!--注塑100*30--> |
||||
|
<add key="1temPath" value="C:\MES\打印模板\barcodes.qdf" /> |
||||
|
<add key="1dataPath" value="C:\MES\打印模板\barcodes.txt" /> |
||||
|
<!--注塑35*15--> |
||||
|
<add key="2temPath" value="C:\MES\打印模板\barcodes -small - 副本.qdf" /> |
||||
|
<add key="2dataPath" value="C:\MES\打印模板\barcodes.txt" /> |
||||
|
<!--总成--> |
||||
|
<add key="ZCtemPath" value="C:\MES\打印模板\zczp.qdf" /> |
||||
|
<add key="ZCdataPath" value="C:\MES\打印模板\zczp.txt" /> |
||||
|
<add key="AssemblyPrintingTemplatePath" value="C:\MES1\打印模板\AssemblyPrintingTemplatePath.grf" /> |
||||
|
<add key="AssemblyPrintingTemplatePath2" value="C:\MES1\打印模板\AssemblyPrintingTemplatePath2.grf" /> |
||||
|
<!--过程标签--> |
||||
|
<add key="ProcessCodeTMPPath" value="C:\MES\打印模板\ProcessCode.qdf" /> |
||||
|
<add key="ProcessCodeDATPath" value="C:\MES\打印模板\ProcessCode.txt" /> |
||||
|
<!--FIS标签--> |
||||
|
<add key="FISLabelTMPPath" value="C:\MES\打印模板\FISLabel.qdf" /> |
||||
|
<add key="FISLabelDATPath" value="C:\MES\打印模板\FISLabel.txt" /> |
||||
|
<!--计划标签--> |
||||
|
<add key="PlanLabelTMPPath" value="C:\MES\打印模板\PlanLabel.qdf" /> |
||||
|
<add key="PlanLabelDATPath" value="C:\MES\打印模板\PlanLabel.txt" /> |
||||
|
|
||||
|
<!--搪塑--> |
||||
|
<add key="0temPath" value="C:\MES\打印模板\tangsu_cd.qdf" /> |
||||
|
<add key="0dataPath" value="C:\MES\打印模板\tangsu_cd.txt" /> |
||||
|
|
||||
|
<add key="reprintPath" value="C:\MES\打印模板\reprint.qdf" /> |
||||
|
<add key="redataPath" value="C:\MES\打印模板\reprint.txt" /> |
||||
|
|
||||
|
<add key="Template_Local_Path" value="C:\MES\template\" /> |
||||
|
<add key="052打印工位" value="IP_ASSEMBLING" /> |
||||
|
|
||||
|
<add key="LoginType" value="FrmPlace" /> |
||||
|
<!--下护板与出风口扫描工位的间隔设置,单位是秒--> |
||||
|
<add key="FrmScanBarcodeInternal" value="10" /> |
||||
|
<add key="DBCSPath" value="0" /> |
||||
|
<add key="ScanFormDeletePassWord" value="1234" /> |
||||
|
<add key="AppDALPath" value="DCS.SQLServer" /> |
||||
|
<add key="SaveFilePath" value="C:\MES\" /> |
||||
|
<add key="File_Copy_Path" value="C:\MES\" /> |
||||
|
<add key="HelpPath" value="Help\使用手册.chm" /> |
||||
|
<add key="RegistCom" value="大连启明海通" /> |
||||
|
<add key="Language" value="zh-CHS" /> |
||||
|
<add key="PageSize" value="100" /> |
||||
|
<add key="DBBackupPath" value="D:\系统数据备份\" /> |
||||
|
<add key="ClientSettingsProvider.ServiceUri" value="" /> |
||||
|
<add key="BarcodeBLen" value="15" /> |
||||
|
<add key="BarcodeQLen" value="15" /> |
||||
|
<add key="LabelTemplate2" value="D:\qm\AppServer\template\看板号条码2.qdf" /> |
||||
|
<add key="LabelData2" value="D:\qm\AppServer\template\LabelDataBase2.txt" /> |
||||
|
<add key="LabelMatrix" value="C:\Program Files\lmw32\Lmwprint.exe" /> |
||||
|
<add key="CrystalReportPrint" value="D:\\qm\\Print\\" /> |
||||
|
<add key="ServerAdress" value="10.111.144.69" /> |
||||
|
<add key="ServerPort" value="9601" /> |
||||
|
<add key="OPCServerName" value="Kepware.KEPServerEX.V4" /> |
||||
|
<add key="OPCServerIP" value="10.111.144.95" /> |
||||
|
<add key="OPCChannelName" value="P4" /> |
||||
|
<add key="OPCWritelName" value="Channel1.P4.OK" /> |
||||
|
<add key="OPCReadlName" value="Channel1.P4.QUEREN" /> |
||||
|
<add key="OPCMainColorlName" value="Channel1.P4.MAINCOLOR" /> |
||||
|
<add key="OPCNfColorWritelName" value="Channel1.P4.NFCOLOR" /> |
||||
|
<add key="MonitorLever" value="1" /> |
||||
|
<add key="EgeType" value="INJECT_ENGEL" /> |
||||
|
<add key="HTType" value="INJECT_HAITIAN" /> |
||||
|
<add key="FilePath" value="C:\项目\FJC_CD_DCS\2.开发\2.5 代码\MESWEB\MES.Web" /> |
||||
|
<add key="BarcodeTime" value="1" /> |
||||
|
<add key="FlashProCode" value="01" /> |
||||
|
<add key="DCS_FILEPATH" value="C:\Workspace\20130330\" /> |
||||
|
<add key="LOGFILEPATH" value="C:\logfile\" /> |
||||
|
<add key="DCSLocalDriverPath" value="X:" /> |
||||
|
<add key="DCSNetUser" value="wzz" /> |
||||
|
<add key="DCSNetPwd" value="1108" /> |
||||
|
<add key="SpecialBarcode" value="PXBIBM" /> |
||||
|
<add key="DCSCollectAddDays" value="-1" /> |
||||
|
<add key="DCSFileCopyTimerType" value="EveryDay" /> |
||||
|
<add key="DCSFileCopyTimerHour" value="15" /> |
||||
|
<add key="DCSFileCopyTimerMinute" value="58" /> |
||||
|
<add key="DCSFileCopyTimerSecond" value="00" /> |
||||
|
<add key="DCS_ET_JENOPTIK_TYPE" value="LASER_JENOPTIK" /> |
||||
|
<add key="DCS_ET_ENGEL_TYPE" value="INJECT_ENGEL" /> |
||||
|
<add key="DCS_ET_BIELOMATIK_TYPE" value="WELD_BIELOMATIK" /> |
||||
|
<add key="DCS_ET_HAITIAN_TYPE" value="INJECT_HAITIAN" /> |
||||
|
<add key="DCS_ET_START_TYPE" value="LASER_JENOPTIK" /> |
||||
|
<add key="BarcodePwd" value="qm" /> |
||||
|
<add key="Domain" value="" /> |
||||
|
<add key="DomainIP" value="10.111.144.95" /> |
||||
|
<add key="DomainUser" value="cdfjc" /> |
||||
|
<add key="DomainPassword" value="Spring99" /> |
||||
|
<add key="ShowRemoteDesktop" value="false" /> |
||||
|
<add key="SleepSecond" value="6" /> |
||||
|
<add key="SleepSecond2" value="3" /> |
||||
|
<add key="RefreshTime" value="52" /> |
||||
|
<add key="LoginName" value="dcsnf" /> |
||||
|
<add key="UpperBarcodeLen" value="20" /> |
||||
|
<add key="LowerBarcodeLen" value="5" /> |
||||
|
<add key="PlaceFirstPositionCode" value="FirstPosition" /> |
||||
|
<add key="PlantNameConfig" value="" /> |
||||
|
<add key="ShowDataCount" value="6" /> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--识别ip 0为使用machinecode 1为识别ip--> |
||||
|
<!--旧搪塑 SINGLESLUSH |
||||
|
新搪塑 DOUBLESLUSH |
||||
|
恩格尔3200T注塑 INJECTION3200 |
||||
|
海天注塑 HAITIAN |
||||
|
冲切设备 PUNCHING |
||||
|
铣削设备 MILLING |
||||
|
其他铆接 PARTRIVETING |
||||
|
本体铆接 MAINRIVETING |
||||
|
超声波焊接设备 ULTRASONICING |
||||
|
红外焊接设备 WELDING |
||||
|
总成装配 ASSEMBLING |
||||
|
恩格尔注塑 INJECTION |
||||
|
冷刀弱化设备 SCORING |
||||
|
火焰加工设备 FLAMING |
||||
|
浇注设备 CASTING--> |
||||
|
<add key="ipFlag" value="1" /> |
||||
|
<add key="machineCode" value="FLAMING" /> |
||||
|
<add key="ClientSettingsProvider.ServiceUri" value="" /> |
||||
|
|
||||
|
<add key="ServerHosts" value="10.111.144.97|10.111.144.94"/> |
||||
|
</appSettings> |
||||
|
<system.serviceModel> |
||||
|
<bindings> |
||||
|
<basicHttpBinding> |
||||
|
<binding name="BasicHttpBinding_IGeneralService" closeTimeout="00:01:00" |
||||
|
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" |
||||
|
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" |
||||
|
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" |
||||
|
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" |
||||
|
useDefaultWebProxy="true"> |
||||
|
<readerQuotas maxDepth="32" maxStringContentLength="20971520" |
||||
|
maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> |
||||
|
<security mode="None"> |
||||
|
<transport clientCredentialType="None" proxyCredentialType="None" |
||||
|
realm="" /> |
||||
|
<message clientCredentialType="UserName" algorithmSuite="Default" /> |
||||
|
</security> |
||||
|
</binding> |
||||
|
</basicHttpBinding> |
||||
|
<netTcpBinding> |
||||
|
<binding name="NetTcpBinding_IOpcService" closeTimeout="00:01:00" |
||||
|
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" |
||||
|
maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"> |
||||
|
<reliableSession enabled="true" /> |
||||
|
<security mode="None" /> |
||||
|
</binding> |
||||
|
</netTcpBinding> |
||||
|
</bindings> |
||||
|
<client> |
||||
|
|
||||
|
<!--<endpoint address="http://10.111.144.97:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> |
||||
|
<endpoint address="http://10.111.144.97:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />--> |
||||
|
|
||||
|
<endpoint address="net.tcp://10.111.144.97:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" /> |
||||
|
|
||||
|
<!--<endpoint address="net.tcp://localhost:4444/OpcService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IOpcService" contract="ServiceOpc.IOpcService" name="NetTcpBinding_IOpcService" />--> |
||||
|
|
||||
|
|
||||
|
<endpoint address="http://localhost:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" /> |
||||
|
<endpoint address="http://localhost:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" /> |
||||
|
|
||||
|
</client> |
||||
|
</system.serviceModel> |
||||
|
<startup useLegacyV2RuntimeActivationPolicy="true"> |
||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> |
||||
|
</startup> |
||||
|
<system.web> |
||||
|
<membership defaultProvider="ClientAuthenticationMembershipProvider"> |
||||
|
<providers> |
||||
|
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /> |
||||
|
</providers> |
||||
|
</membership> |
||||
|
<roleManager defaultProvider="ClientRoleProvider" enabled="true"> |
||||
|
<providers> |
||||
|
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> |
||||
|
</providers> |
||||
|
</roleManager> |
||||
|
</system.web> |
||||
|
</configuration> |
@ -0,0 +1,203 @@ |
|||||
|
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.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.MD.Web.Models; |
||||
|
using QMFrameWork.WebUI.DataSource; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMAPP.FJC.Web.Models.Bucket; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.Web.Controllers |
||||
|
{ |
||||
|
public class BucketMaterialController : QController |
||||
|
{ |
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 加载列表 |
||||
|
/// </summary> |
||||
|
/// <returns>结果</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult List(bool? callback) |
||||
|
{ |
||||
|
BucketMaterialModel seachModel = new BucketMaterialModel(); |
||||
|
if (callback == true) |
||||
|
TryGetSelectBuffer<BucketMaterialModel>(out seachModel); |
||||
|
seachModel.rownumbers = false; |
||||
|
seachModel.url = "/BucketMaterial/GetList"; |
||||
|
return View("BucketMaterialList", seachModel); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="callBack">是否回调</param> |
||||
|
/// <returns>列表</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult GetList(bool? callBack) |
||||
|
{ |
||||
|
BucketMaterialModel seachModel = null; |
||||
|
DataPage page = null; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
BucketMaterial condition = null; |
||||
|
DataResult<DataPage> pageResult = new DataResult<DataPage>(); |
||||
|
try |
||||
|
{ |
||||
|
//获取查询对象 |
||||
|
seachModel = GetModel<BucketMaterialModel>(); |
||||
|
#region 获取缓存值 |
||||
|
if (callBack != null) |
||||
|
{ |
||||
|
TryGetSelectBuffer<BucketMaterialModel>(out seachModel); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//保存搜索条件 |
||||
|
SetSelectBuffer<BucketMaterialModel>(seachModel); |
||||
|
} |
||||
|
#endregion |
||||
|
//获取前台分页设置信息 |
||||
|
page = this.GetDataPage(seachModel); |
||||
|
condition = CopyToModel<BucketMaterial, BucketMaterialModel>(seachModel); |
||||
|
#region wcf服务统一接口 |
||||
|
|
||||
|
pageResult = wcfAgent.InvokeServiceFunction<DataResult<DataPage>>("BucketMaterialBLL_GetList", condition, page); |
||||
|
if (pageResult.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(pageResult.Msg); |
||||
|
return List(true); |
||||
|
} |
||||
|
DateGridResult<BucketMaterial> result = new DateGridResult<BucketMaterial>(); |
||||
|
result.Total = pageResult.Result.RecordCount; |
||||
|
result.Rows = JsonConvertHelper.GetDeserialize<List<BucketMaterial>>(pageResult.Result.Result.ToString()); |
||||
|
#endregion |
||||
|
return Content(result.GetJsonSource()); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 编辑 |
||||
|
/// <summary> |
||||
|
/// 编辑载入 |
||||
|
/// </summary> |
||||
|
/// <returns>处理结果</returns> |
||||
|
[HandleException] |
||||
|
public ActionResult Edit() |
||||
|
{ |
||||
|
BucketMaterialModel model = new BucketMaterialModel(); |
||||
|
string ID = Request.Params["PID"]; |
||||
|
BucketMaterial Entity = new BucketMaterial(); |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
DataResult<BucketMaterial> result = new DataResult<BucketMaterial>(); |
||||
|
try |
||||
|
{ |
||||
|
if (string.IsNullOrEmpty(ID) == false) |
||||
|
{ |
||||
|
//修改获取原数据 |
||||
|
Entity.PID = ID; |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<BucketMaterial>>("BucketMaterialBLL_Get", Entity); |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage(result.Msg); |
||||
|
return View("BucketMaterialEdit", model); |
||||
|
} |
||||
|
model = CopyToModel<BucketMaterialModel, BucketMaterial>(result.Result); |
||||
|
} |
||||
|
return View("BucketMaterialEdit", model); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 保存 |
||||
|
/// </summary> |
||||
|
/// <param name="model"></param> |
||||
|
/// <returns>处理结果</returns> |
||||
|
[HttpPost] |
||||
|
[HandleException] |
||||
|
[ValidateInput(false)] |
||||
|
public ActionResult Save(BucketMaterialModel saveModel) |
||||
|
{ |
||||
|
BucketMaterial Entity = null; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
DataResult<int> result = new DataResult<int>(); |
||||
|
try |
||||
|
{ |
||||
|
Entity = CopyToModel<BucketMaterial, BucketMaterialModel>(saveModel); |
||||
|
if (string.IsNullOrEmpty(Entity.PID) == true) |
||||
|
{ |
||||
|
//新增 |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.DictService.BucketMaterialBLL_Insert.ToString(), Entity); |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage("工厂编码已存在!"); |
||||
|
return View("BucketMaterialEdit", saveModel); |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//修改 |
||||
|
result = wcfAgent.InvokeServiceFunction<DataResult<int>>(QMAPP.ServicesAgent.DictService.BucketMaterialBLL_Update.ToString(), Entity); |
||||
|
if (result.IsSuccess == false) |
||||
|
{ |
||||
|
SetMessage("工厂编码已存在!"); |
||||
|
return View("BucketMaterialEdit", 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(BucketMaterial model) |
||||
|
{ |
||||
|
string selectKey = Request.Form["selectKey"]; |
||||
|
ServiceAgent wcfAgent = this.GetServiceAgent(); |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
var result = wcfAgent.InvokeServiceFunction<int>(QMAPP.ServicesAgent.DictService.BucketMaterialBLL_Delete.ToString(), selectKey); |
||||
|
if (result == 0) |
||||
|
{ |
||||
|
SetMessage("信息有关联,删除失败!"); |
||||
|
return List(true); |
||||
|
} |
||||
|
SetMessage(AppResource.DeleteMessage); |
||||
|
return List(true); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
} |
||||
|
} |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,394 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.MD |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:物料信息 |
||||
|
/// 作 者:张鹏 |
||||
|
/// 编写日期:2017年09月08日 |
||||
|
/// </summary> |
||||
|
public class MaterialDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public Material Get(Material info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<Material>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public Material Get(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_MATERIAL] WHERE [MATERIAL_CODE]=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<Material>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public Material GetWithAnyFormate(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_MATERIAL] WHERE REPLACE(REPLACE(REPLACE([MATERIAL_CODE],'.',''),' ',''),'-','')=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
materialcode = materialcode.Replace(".", "").Replace("-", "").Replace(" ", ""); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<Material>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public Material GetWithAnyFormateTo(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
var valuestr = materialcode.Split('/'); |
||||
|
var code = string.Empty; |
||||
|
var code2 = string.Empty; |
||||
|
if (valuestr.Count() > 1) |
||||
|
{ |
||||
|
code = valuestr[0]; |
||||
|
code2 = valuestr[1]; |
||||
|
} |
||||
|
var sql2 = $" select * from T_MD_BARCODERULES where REGEX = '{code}' or REGEX = '{code2}'"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var table = session.GetTable(sql2, parameters.ToArray()); |
||||
|
if (table.Rows.Count > 0) |
||||
|
{ |
||||
|
using (IDataSession session2 = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
string sql = $"SELECT * FROM [T_MD_MATERIAL] WHERE MATERIAL_CODE='{table.Rows[0]["MATERIAL_CODE"].ToString()}'"; |
||||
|
|
||||
|
//获取信息 |
||||
|
var info = session2.Get<Material>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(Material 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 = "UPDATEDATE DESC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<Material>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(Material condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,MATERIAL_CODE,MATERIAL_TYPE_CODE,UNIT_CODE,MATERIAL_NAME,MATERIAL_COMP,REMARK,CREATEUSER,CREATEDATE,UPDATEUSER,UPDATEDATE,OUTSOURCE,STD_QTY "); |
||||
|
sqlBuilder.Append("FROM T_MD_MATERIAL "); |
||||
|
whereBuilder.Append(" AND FLGDEL<> '1' "); |
||||
|
//查询条件 |
||||
|
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="user">查询条件</param> |
||||
|
/// <returns>数据</returns> |
||||
|
public DataTable GetExportData(Material info) |
||||
|
{ |
||||
|
DataTable dt = null; |
||||
|
string sql = null; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sql = this.GetQuerySql(info, ref parameters); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
dt = session.GetTable(sql, parameters.ToArray()); |
||||
|
dt.TableName = "Material"; |
||||
|
} |
||||
|
return dt; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 信息是否重复 |
||||
|
/// <summary> |
||||
|
/// 判断名称是否存在 |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <returns>true:已存在;fasel:不存在。</returns> |
||||
|
public bool Exists(Material info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_MATERIAL"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(Material info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<Material>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(Material info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<Material>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(Material info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("UPDATE T_MD_MATERIAL "); |
||||
|
sqlBuilder.Append("SET FLGDEL = '1' "); |
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 导入 |
||||
|
public ImportMessage GetImportData(List<Material> list) |
||||
|
{ |
||||
|
ImportMessage em = new ImportMessage(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//设置祖先对象数据会话 |
||||
|
session.OpenTs(); |
||||
|
foreach (Material info in list) |
||||
|
{ |
||||
|
if (info.IsNewInfo) |
||||
|
{ |
||||
|
//插入信息 |
||||
|
int count = session.Insert<Material>(info); |
||||
|
em.insertNum++; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//更新信息 |
||||
|
int count = session.Update<Material>(info); |
||||
|
em.updateNum++; |
||||
|
} |
||||
|
} |
||||
|
session.CommitTs(); |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
return em; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,214 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Drawing; |
||||
|
using System.Windows.Forms; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// 作 用:投料记录 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月24日 |
||||
|
///</summary> |
||||
|
public partial class InjectionMoldingNEWForm : Form |
||||
|
{ |
||||
|
RawMaterial searchModel = new RawMaterial();//查询条件 |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
public InjectionMoldingNEWForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
#region 窗体载入 |
||||
|
|
||||
|
private void Form_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
//初始化控件属性 |
||||
|
this.DGView.AutoGenerateColumns = false; |
||||
|
#region 绑定下拉列表 |
||||
|
BasicData basicData = new BasicData(); |
||||
|
////加载注塑设备列表 |
||||
|
//this.comMachine.DataSource = basicData.GetMachineInfoList(new string[] { EnumGeter.ProcessType_M.Injection.GetHashCode().ToString() }, true); |
||||
|
//this.comMachine.DisplayMember = "MACHINENAME"; |
||||
|
//this.comMachine.ValueMember = "MACHINECODDE"; |
||||
|
//加载操作人 |
||||
|
//this.comOpereator.DataSource = basicData.GetOperatorInfoList(EnumGeter.MACHINETYPE.zhusu.GetHashCode().ToString(), true); ; |
||||
|
//this.comOpereator.DisplayMember = "OPERATOR"; |
||||
|
//this.comOpereator.ValueMember = "PID"; |
||||
|
#endregion |
||||
|
//初始化条件 |
||||
|
this.dtpCreateUserStart.ValueX = DateTime.Now.AddDays(-10); |
||||
|
this.dtpCreateUserEnd.ValueX = DateTime.Now; |
||||
|
//初始化分页 |
||||
|
this.pager1.Init(); |
||||
|
//加载默认查询条件 |
||||
|
SetSearchModel(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 绑定数据 |
||||
|
|
||||
|
private DataPage BindGirdData() |
||||
|
{ |
||||
|
List<RawMaterial> recorders = null;//查询结果列表 |
||||
|
DataPage dataPage = new DataPage(); |
||||
|
var dataresle = new DataResult<DataPage>(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage = pager1.DataPage; |
||||
|
try |
||||
|
{ |
||||
|
#region 服务查询 |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
dataresle = agent.InvokeServiceFunction<DataResult<DataPage>>(B9BasicService.RawMaterialBLL_GetList.ToString(), searchModel, dataPage); |
||||
|
dataPage = dataresle.Result; |
||||
|
recorders = JsonConvertHelper.GetDeserialize<List<RawMaterial>>(dataPage.Result.ToString()); |
||||
|
#endregion |
||||
|
this.DGView.DataSource = recorders; |
||||
|
this.pager1.DataPage = dataPage; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
return dataPage; |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
/// <summary> |
||||
|
/// 分页事件 |
||||
|
/// </summary> |
||||
|
/// <param name="e"></param> |
||||
|
/// <returns></returns> |
||||
|
private DataPage pager1_EventPaging(Controls.EventPagingArg e) |
||||
|
{ |
||||
|
return BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 查询事件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbSearch_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
SetSearchModel(); |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 设置查询条件 |
||||
|
/// </summary> |
||||
|
private void SetSearchModel() |
||||
|
{ |
||||
|
searchModel = new RawMaterial(); |
||||
|
|
||||
|
//料筒 |
||||
|
if (string.IsNullOrEmpty(this.txtBucketCode.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.BucketCode = this.txtBucketCode.Text.Trim(); |
||||
|
} |
||||
|
//批次 |
||||
|
if (string.IsNullOrEmpty(this.txtBatch.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.BatchCode = this.txtBatch.Text.Trim(); |
||||
|
} |
||||
|
//开始时间 |
||||
|
if (string.IsNullOrEmpty(this.dtpCreateUserStart.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.CreateDateStart = Convert.ToDateTime(this.dtpCreateUserStart.Text).ToString("yyyy-MM-dd").Trim(); |
||||
|
} |
||||
|
//结束时间 |
||||
|
if (string.IsNullOrEmpty(this.dtpCreateUserEnd.Text.Trim()) == false) |
||||
|
{ |
||||
|
searchModel.CreateDateEnd = Convert.ToDateTime(this.dtpCreateUserEnd.Text).AddDays(1).ToString("yyyy-MM-dd").Trim(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 删除 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbDelete_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (this.DGView.SelectedRows.Count <= 0) |
||||
|
return; |
||||
|
if (MessageBox.Show(Resource1.ConfirmDelete, Resource1.ConfirmTitle, MessageBoxButtons.OKCancel) != DialogResult.OK) |
||||
|
return; |
||||
|
|
||||
|
#region 执行删除 |
||||
|
string selectKey = this.DGView.SelectedRows[0].Cells["Pid"].Value.ToString(); |
||||
|
//删除校验判断该投料批次号是否已经生产出产品,如果已生产出产品则不允许删除,如果不允许则弹出提示'该批次号物料已使用,不能删除!' |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataResult<int> result = agent.InvokeServiceFunction<DataResult<int>>(B9BasicService.RawMaterialBLL_Delete.ToString(), selectKey); |
||||
|
MessageBox.Show(result.Msg); |
||||
|
if (result.IsSuccess && result.Result >0) |
||||
|
{ |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开投料 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbAdd_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
InjectionMoldingNEWEditForm editForm = new InjectionMoldingNEWEditForm(); |
||||
|
DialogResult result = editForm.ShowDialog(); |
||||
|
if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 |
||||
|
{ |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 打开编辑 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbEdit_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (this.DGView.SelectedRows.Count > 0) |
||||
|
{ |
||||
|
string selectKey = this.DGView.SelectedRows[0].Cells["Pid"].Value.ToString(); |
||||
|
InjectionMoldingNEWEditForm1 editForm = new InjectionMoldingNEWEditForm1(selectKey); |
||||
|
DialogResult result = editForm.ShowDialog(); |
||||
|
if (result == System.Windows.Forms.DialogResult.OK)//判断是否投料窗口已做操作 |
||||
|
{ |
||||
|
this.pager1.Init(); |
||||
|
BindGirdData(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 行序号 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void DG_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) |
||||
|
{ |
||||
|
Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, this.DGView.RowHeadersWidth - 4, e.RowBounds.Height); |
||||
|
TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), new Font("宋体", 12, FontStyle.Bold), rectangle, this.DGView.RowHeadersDefaultCellStyle.ForeColor, TextFormatFlags.VerticalCenter | TextFormatFlags.Right); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.RawMaterialModel>" %> |
||||
|
|
||||
|
<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.BucketCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.BucketCode)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.PartCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.PartCode)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Bucket.RawMaterialModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('信息添加', 'Edit', '350', '380'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '380'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", "确定要删除选中的记录吗?", function () { |
||||
|
submitByButton("Delete"); |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> |
||||
|
<table cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td align="center"> |
||||
|
<%=Html.QTButtonSearch("RawMaterial", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonAdd("RawMaterial", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonUpdate("RawMaterial", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonDelete("RawMaterial", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
@ -0,0 +1,82 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.BucketMaterialClassModel>" %> |
||||
|
|
||||
|
<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.MaterialCode)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.MaterialCode)%> |
||||
|
</td> |
||||
|
|
||||
|
</tr> |
||||
|
</table> |
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Bucket.BucketMaterialClassModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
$(function () { |
||||
|
//获取物料下拉数据源 |
||||
|
$('#MaterialCode').combotree({ |
||||
|
panelHeight: '250', |
||||
|
panelWidth: '500', |
||||
|
url: "/Dict/GetMaterialTreeClass", |
||||
|
}); |
||||
|
List(1); |
||||
|
}); |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('信息添加', 'Edit', '350', '380'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '380'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", "确定要删除选中的记录吗?", function () { |
||||
|
submitByButton("Delete"); |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> |
||||
|
<table cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td align="center"> |
||||
|
<%=Html.QTButtonSearch("BucketMaterialClass", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonAdd("BucketMaterialClass", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonUpdate("BucketMaterialClass", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonDelete("BucketMaterialClass", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
Binary file not shown.
@ -0,0 +1,316 @@ |
|||||
|
<?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="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
|
<value>17, 17</value> |
||||
|
</metadata> |
||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
||||
|
<data name="tsbSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value> |
||||
|
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 |
||||
|
</value> |
||||
|
</data> |
||||
|
<data name="tsbAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value> |
||||
|
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 |
||||
|
</value> |
||||
|
</data> |
||||
|
<metadata name="BucketCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="PartCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="BatchCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="SerialCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>True</value> |
||||
|
</metadata> |
||||
|
<metadata name="CreateDate.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> |
||||
|
<data name="pager1.DataPage" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
|
<value> |
||||
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFJRTUZyYW1lV29yay5EYXRhLkF0dHJpYnV0ZXMsIFZlcnNpb249 |
||||
|
MS4zLjMuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsBQEAAAAZUU1GcmFtZVdv |
||||
|
cmsuRGF0YS5EYXRhUGFnZQoAAAAaPFBhZ2VJbmRleD5rX19CYWNraW5nRmllbGQZPFBhZ2VTaXplPmtf |
||||
|
X0JhY2tpbmdGaWVsZBo8UGFnZUNvdW50PmtfX0JhY2tpbmdGaWVsZBw8UmVjb3JkQ291bnQ+a19fQmFj |
||||
|
a2luZ0ZpZWxkGDxLZXlOYW1lPmtfX0JhY2tpbmdGaWVsZB88U29ydEV4cHJlc3Npb24+a19fQmFja2lu |
||||
|
Z0ZpZWxkFzxSZXN1bHQ+a19fQmFja2luZ0ZpZWxkGTxDb3VudFNxbD5rX19CYWNraW5nRmllbGQbPElz |
||||
|
UGFyYWxsZWw+a19fQmFja2luZ0ZpZWxkIjxBY2N1cmF0ZVBhcnRpdGlvbj5rX19CYWNraW5nRmllbGQA |
||||
|
AAAAAQECAQAACAgICAEBAgAAAAEAAAAyAAAAAAAAAAAAAAAKCgoKAAAL |
||||
|
</value> |
||||
|
</data> |
||||
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<value>25</value> |
||||
|
</metadata> |
||||
|
</root> |
@ -0,0 +1,53 @@ |
|||||
|
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 SpeechLib; |
||||
|
|
||||
|
namespace Stone.WinModuleTransWare |
||||
|
{ |
||||
|
public partial class Form1 : Form |
||||
|
{ |
||||
|
public Form1() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
public void Speek(string txt) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
SpVoice m_spVoice = new SpVoice(); |
||||
|
m_spVoice.Volume = 100; |
||||
|
m_spVoice.Rate = 0; |
||||
|
m_spVoice.Speak(txt, SpeechVoiceSpeakFlags.SVSFlagsAsync);//开始 |
||||
|
|
||||
|
//SpeechRecognitionEngine recEngine = new SpeechRecognitionEngine(); |
||||
|
//SpeechSynthesizer speech = new SpeechSynthesizer(); |
||||
|
//speech.Rate = 0;//速度 |
||||
|
//speech.Volume = 100;//音量,0-100 |
||||
|
|
||||
|
//speech.SpeakAsync("欢迎使用电力安全工器具集约化智能管控系统");//异步播放 |
||||
|
//Thread.Sleep(2000); |
||||
|
//speech.SpeakAsyncCancelAll();//停止前面的所有播放 |
||||
|
//speech.SpeakAsync("中华人民共和国");//异步播放,但是要等到前面的发音完成后才会播放该发音 |
||||
|
|
||||
|
//speech.Speak("欢迎使用电力安全工器具集约化智能管控系统"); |
||||
|
//speech.Speak("中华人民共和国"); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
Console.WriteLine(ex); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void button1_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
Speek(textBox1.Text); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,528 @@ |
|||||
|
using System; |
||||
|
using System.Text; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Windows.Forms; |
||||
|
using QM.Common; |
||||
|
using QMAPP.FJC.Entity; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.FJC.BLL.Basic; |
||||
|
using QMFrameWork.Data; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using System.Linq; |
||||
|
using QMAPP.WinForm.Forms.Operation; |
||||
|
using System.IO.Ports; |
||||
|
using System.Management; |
||||
|
using System.Threading; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块编号:M11-2 |
||||
|
/// 作 用:搪塑条码打印 |
||||
|
/// 作 者:王庆男 |
||||
|
/// 编写日期:2015年05月28日 |
||||
|
///</summary> |
||||
|
public partial class SlushMoldingPrintForOldForm : Form |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 车型,A:B9车型,B:Q5车型 |
||||
|
/// </summary> |
||||
|
public string CarType { set; get; } |
||||
|
|
||||
|
List<MoldConfig> moldConfigList; |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 新建 |
||||
|
/// </summary> |
||||
|
public SlushMoldingPrintForOldForm() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
moldConfigList = new List<MoldConfig>(); |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体初始化 |
||||
|
/// </summary> |
||||
|
private void InitForm() |
||||
|
{ |
||||
|
//预留方法,用于B9\Q5功能差异 |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 窗体加载 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void Form_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
InitForm(); |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
List<MoldConfig> recorders = null; |
||||
|
recorders = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
recorders = recorders.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
moldConfigList = recorders; |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
BasicData basicData = new BasicData(); |
||||
|
//加载搪塑设备列表 |
||||
|
//this.comMachineCode.DataSource = basicData.GetMachineInfoList(new string[] { EnumGeter.ProcessType.tangsu.GetHashCode().ToString() }, true); |
||||
|
//this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
//this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
//this.comMachineCode.SelectedIndex = 1; |
||||
|
//this.comMachineCode.Enabled = false; |
||||
|
|
||||
|
var machinelist = basicData.GetMachineInfoAndModelList(new string[] { }, true); |
||||
|
this.comMachineCode.DataSource = machinelist; |
||||
|
this.comMachineCode.DisplayMember = "MACHINENAME"; |
||||
|
this.comMachineCode.ValueMember = "MACHINECODDE"; |
||||
|
|
||||
|
if (ClientContext.MachineInfo != null && !string.IsNullOrEmpty(ClientContext.MachineInfo.PID)) |
||||
|
{ |
||||
|
this.comMachineCode.SelectedValue = ClientContext.MachineInfo.MACHINECODDE; |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//this.lblLock.Visible = false; |
||||
|
this.LockType(false); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//颜色 |
||||
|
this.comColor.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.COLOR.ToString()); |
||||
|
this.comColor.DisplayMember = "VALUE"; |
||||
|
this.comColor.ValueMember = "KEY"; |
||||
|
this.comColor.SelectedValue = "1"; |
||||
|
//this.comColor.Enabled = false; |
||||
|
////AB腔 |
||||
|
this.comPosition.DataSource = basicData.GetDictionaryList(EnumGeter.DictKind.CAVITYTYPE.ToString()); |
||||
|
this.comPosition.DisplayMember = "VALUE"; |
||||
|
this.comPosition.ValueMember = "KEY"; |
||||
|
//this.comPosition.SelectedIndex = 0; |
||||
|
//this.comPosition.Enabled = false; |
||||
|
|
||||
|
|
||||
|
#endregion |
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text)) |
||||
|
{ |
||||
|
this.dtpDate.Text = DateTime.Now.ToString(); |
||||
|
} |
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
|
||||
|
#region 打印模板拷贝 |
||||
|
|
||||
|
PrintTempleCopyClass printClass = new PrintTempleCopyClass(); |
||||
|
printClass.CopyPrintTemple("SlushMoldingPrintForOldForm"); |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
|
||||
|
#region 设置模架号 |
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
private void SetMouldStation() |
||||
|
{ |
||||
|
this.cBoxModelCode.DisplayMember = "VALUE"; |
||||
|
this.cBoxModelCode.ValueMember = "KEY"; |
||||
|
List<object> cBoxModelCodeList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
cBoxModelCodeList.Add(new { VALUE = m.MOLDVALUE, KEY = m.MOLDVALUE }); |
||||
|
} |
||||
|
this.cBoxModelCode.DataSource = cBoxModelCodeList; |
||||
|
this.cBoxModelCode.SelectedIndex = 0; |
||||
|
cBoxModelCode.Enabled = false; |
||||
|
|
||||
|
|
||||
|
this.comMouldNumber.DisplayMember = "VALUE"; |
||||
|
this.comMouldNumber.ValueMember = "KEY"; |
||||
|
List<object> comMouldNumberList = new List<object>(); |
||||
|
foreach (var m in moldConfigList) |
||||
|
{ |
||||
|
comMouldNumberList.Add(new { VALUE = m.MOLDSTATION, KEY = m.MOLDSTATION }); |
||||
|
} |
||||
|
this.comMouldNumber.DataSource = comMouldNumberList; |
||||
|
this.comMouldNumber.SelectedIndex = 0; |
||||
|
|
||||
|
//判断是否有正在使用的模腔配置信息 |
||||
|
if (moldConfigList.Count(o => o.USED == 1) > 0) |
||||
|
{ |
||||
|
//获取该对象 |
||||
|
MoldConfig m = moldConfigList.First(o => o.USED == 1); |
||||
|
//设置模架选择项 |
||||
|
comMouldNumber.SelectedValue = m.MOLDSTATION; |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体保存事件 |
||||
|
/// <summary> |
||||
|
/// 窗体保存事件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbSave_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string message = this.ErrorCheck(); |
||||
|
if (!string.IsNullOrEmpty(message)) |
||||
|
{ |
||||
|
this.ErrorMessage.Text = message; |
||||
|
return; |
||||
|
} |
||||
|
List<Product> listRecorder = new List<Product>(); |
||||
|
//窗体数据校验 |
||||
|
//老搪塑只出黑色表皮,模腔号2 为高配B腔 模腔号3 为低配A腔,老搪塑只有一套模具,固定即可 |
||||
|
//搪塑机 |
||||
|
MachineInfo machineInfo = this.comMachineCode.SelectedItem as MachineInfo; |
||||
|
|
||||
|
#region 加载保存信息 |
||||
|
//for (int i = 0; i < 2; i++)//一次出2个码 |
||||
|
//{ |
||||
|
//零件属性 |
||||
|
Product recorder = new Product(); |
||||
|
ProductAttribute productAttribute = new ProductAttribute(); |
||||
|
//搪塑机编号 |
||||
|
productAttribute.VAL1 = machineInfo.MACHINENUM; |
||||
|
//产品类型(车型)成都固定 |
||||
|
productAttribute.VAL2 = "V"; |
||||
|
//高低配 成都无,且固定 |
||||
|
productAttribute.VAL3 = "B"; |
||||
|
//颜色 |
||||
|
productAttribute.VAL4 = this.comColor.SelectedValue.ToString(); |
||||
|
|
||||
|
string[] cb = new string[] { }; |
||||
|
if (!string.IsNullOrEmpty(this.cBoxModelCode.Text)) |
||||
|
{ |
||||
|
cb = this.cBoxModelCode.Text.Split('+'); |
||||
|
} |
||||
|
if (cb.Length <= 0) |
||||
|
{ |
||||
|
MessageBox.Show("模腔出错!"); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
//腔 |
||||
|
//if (i == 0)//第一个为模腔号2 |
||||
|
//{ |
||||
|
// //腔 |
||||
|
// productAttribute.VAL5 = "B"; |
||||
|
|
||||
|
// //模腔 |
||||
|
// productAttribute.VAL6 = cb[0].PadLeft(2,'0'); |
||||
|
//} |
||||
|
//else |
||||
|
//{ |
||||
|
// //腔 |
||||
|
// productAttribute.VAL5 = "A"; |
||||
|
// //模腔 |
||||
|
// productAttribute.VAL6 = cb[1].PadLeft(2, '0'); |
||||
|
//} |
||||
|
|
||||
|
if (this.comPosition.Text == "搪塑B腔")//第一个为模腔号2 |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "B"; |
||||
|
|
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[0].PadLeft(2, '0'); |
||||
|
} |
||||
|
else if (this.comPosition.Text == "搪塑A腔") |
||||
|
{ |
||||
|
//腔 |
||||
|
productAttribute.VAL5 = "A"; |
||||
|
//模腔 |
||||
|
productAttribute.VAL6 = cb[1].PadLeft(2, '0'); |
||||
|
} |
||||
|
|
||||
|
//加工日期 |
||||
|
if (string.IsNullOrEmpty(this.dtpDate.Text.Trim())) |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(DateTime.Now).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
productAttribute.VAL7 = Convert.ToDateTime(this.dtpDate.Text.Trim()).ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
} |
||||
|
|
||||
|
recorder.MACHINECODDE = machineInfo.MACHINECODDE; |
||||
|
recorder.MACHINENAME = machineInfo.MACHINENAME; |
||||
|
recorder.PRODUCTSOURCE = EnumGeter.PRODUCTSOURCE.SELFMADE.GetHashCode().ToString(); |
||||
|
recorder.PRODUCTTYPE = EnumGeter.ProductType.biaopi.GetHashCode().ToString(); |
||||
|
|
||||
|
////添加加物料号 |
||||
|
//QMAPP.ServicesAgent.ServiceAgent agents = ClientContext.GetServiceAgent(); |
||||
|
//DataResult<string> materialcode = agents.InvokeServiceFunction<DataResult<string>>(B9BasicService.MaterialCodeBLL_GetMaterialCode.ToString(), productAttribute.VAL2); |
||||
|
//recorder.MATERIAL_CODE = materialcode.Result.ToString(); |
||||
|
|
||||
|
recorder.STATUS = EnumGeter.PRODUCTSTAUTS.QUALIFIED.GetHashCode().ToString(); |
||||
|
recorder.CURRENTPROCESS = EnumGeter.ProcessType.lengdaoruohua.GetHashCode().ToString(); |
||||
|
//ToDo:选择生产线 |
||||
|
//成都固定生产线 |
||||
|
recorder.PRODUCELINE = "IPVW371"; |
||||
|
|
||||
|
recorder.OUTFLAG = EnumGeter.PRODUCTOUTFLAG.INLIBRARY.GetHashCode().ToString(); |
||||
|
recorder.USINGSTATE = EnumGeter.PRODUCTUSESTATE.UNUSED.GetHashCode().ToString(); |
||||
|
recorder.PRODUCESHIFTTCODE = ClientContext.produceShift.PRODUCESHIFTTCODE; |
||||
|
recorder.PRODUCESHIFTNAME = ClientContext.produceShift.PRODUCESHIFTNAME; |
||||
|
recorder.CAPACITY = 1; |
||||
|
recorder.USINGCOUNT = 0; |
||||
|
recorder.PRODUCTATTRIBUTE = productAttribute; |
||||
|
recorder.AddM = this.cbM.Checked; |
||||
|
listRecorder.Add(recorder); |
||||
|
//} |
||||
|
|
||||
|
#region 保存 |
||||
|
QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); |
||||
|
DataResult<List<PrintCode>> result = agent.InvokeServiceFunction<DataResult<List<PrintCode>>>(B9BasicService.ProductBLL_InsertListEpidermis.ToString(), listRecorder); |
||||
|
|
||||
|
//保存成功 |
||||
|
if (result.IsSuccess) |
||||
|
{ |
||||
|
|
||||
|
#region 打印条码 |
||||
|
|
||||
|
this.DialogResult = System.Windows.Forms.DialogResult.OK; |
||||
|
string barCode = result.Result.ToString(); |
||||
|
foreach (PrintCode item in result.Result) |
||||
|
{ |
||||
|
QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo(); |
||||
|
ll.BarCode = item.MAINCODE + ",*" + item.PRODUCTCODE + "*" + "," + item.COLOR_CODE; |
||||
|
QM.Assist.PrintUtil.LabelList2.Add(ll); |
||||
|
|
||||
|
|
||||
|
//创建新行 |
||||
|
var row = new DataGridViewRow(); |
||||
|
if (DGView.Rows.Count == 0) |
||||
|
{ |
||||
|
var index = this.DGView.Rows.Add(); |
||||
|
row = DGView.Rows[index]; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.DGView.Rows.InsertCopy(0, 0); |
||||
|
row = DGView.Rows[0]; |
||||
|
} |
||||
|
//对datagridview赋值 |
||||
|
row.Cells["MAINCODE"].Value = item.MAINCODE; |
||||
|
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["COLOR"].Value = item.COLOR_CODE; |
||||
|
row.Cells["CREATETIME"].Value = DateTime.Now; |
||||
|
if (DGView.Rows.Count > 200) |
||||
|
{ |
||||
|
DGView.Rows.RemoveAt(200); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil(); |
||||
|
pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "temPath"].ToString |
||||
|
(), System.Configuration.ConfigurationManager.AppSettings[EnumGeter.ProductType.biaopi.GetHashCode().ToString() + "dataPath"].ToString |
||||
|
()); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 重新设置当前使用和列表信息 |
||||
|
|
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
|
||||
|
#region 重新设置当前使用 |
||||
|
|
||||
|
|
||||
|
DataResult updateresult = agent.InvokeServiceFunction<DataResult>(B9BasicService.MoldConfigBLL_UpdateNextUsed.ToString(), new MoldConfig() { MOLDSTATION = moldStation }); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 绑定下拉列表 |
||||
|
|
||||
|
DataPage dataPage = new DataPage(); |
||||
|
//获取前台分页设置信息 |
||||
|
dataPage.PageIndex = 1; |
||||
|
dataPage.PageSize = 100; |
||||
|
//获取可用的配置信息 |
||||
|
MoldConfig searchModel = new MoldConfig() { STATUS = 1 }; |
||||
|
dataPage = agent.InvokeServiceFunction<DataPage>(B9BasicService.MoldConfigBLL_GetList.ToString(), searchModel); |
||||
|
moldConfigList = JsonConvertHelper.GetDeserialize<List<MoldConfig>>(dataPage.Result.ToString()); |
||||
|
moldConfigList = moldConfigList.OrderBy(o => o.INDEXVALUE).ToList<MoldConfig>(); |
||||
|
|
||||
|
|
||||
|
SetMouldStation(); |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
//MessageBox.Show("打印成功!"); |
||||
|
|
||||
|
this.ErrorMessage.Text = ""; |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show(result.Msg); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体关闭 |
||||
|
/// <summary> |
||||
|
/// 窗体关闭 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 错误检测 |
||||
|
///<summary> |
||||
|
///错误检测 |
||||
|
///</summary> |
||||
|
///<returns></returns> |
||||
|
private string ErrorCheck() |
||||
|
{ |
||||
|
#region |
||||
|
string strMessage = ""; |
||||
|
//判断条码是否为空 |
||||
|
|
||||
|
////搪塑设备 |
||||
|
if (this.comMachineCode.SelectedValue == null || this.comMachineCode.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.SlushMachineNullValidate + "\r\n"; |
||||
|
} |
||||
|
////产品类别 |
||||
|
//if (this.comProType.SelectedValue == null || this.comProType.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ProductTypeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//颜色 |
||||
|
if (this.comColor.SelectedValue == null || this.comColor.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.ColorNullValidate + "\r\n"; |
||||
|
} |
||||
|
////高低配 |
||||
|
//if (this.comHOrL.SelectedValue == null || this.comHOrL.SelectedValue == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.HLNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//腔 |
||||
|
if (this.comPosition.SelectedValue == null || this.comPosition.SelectedValue == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.PositionNullValidate + "\r\n"; |
||||
|
} |
||||
|
////模腔号 |
||||
|
//if (this.cBoxModelCode.Text == null || this.cBoxModelCode.Text == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.ModelCodeNullValidate + "\r\n"; |
||||
|
//} |
||||
|
|
||||
|
return strMessage; |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void comMouldNumber_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
var Station = comMouldNumber.SelectedItem; |
||||
|
string moldStation = GetPropertyValue(Station, "KEY").ToString(); |
||||
|
MoldConfig m = moldConfigList.First(o => o.MOLDSTATION == moldStation); |
||||
|
//设置模腔选择项 |
||||
|
cBoxModelCode.SelectedValue = m.MOLDVALUE; |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// |
||||
|
/// </summary> |
||||
|
/// <param name="info"></param> |
||||
|
/// <param name="field"></param> |
||||
|
/// <returns></returns> |
||||
|
public object GetPropertyValue(object info, string field) |
||||
|
{ |
||||
|
if (info == null) return null; |
||||
|
Type t = info.GetType(); |
||||
|
IEnumerable<System.Reflection.PropertyInfo> property = from pi in t.GetProperties() where pi.Name.ToLower() == field.ToLower() select pi; |
||||
|
return property.First().GetValue(info, null); |
||||
|
} |
||||
|
|
||||
|
#region 锁定解锁 |
||||
|
/// <summary> |
||||
|
/// 锁定解锁 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void lblLock_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (this.lblLock.Tag.ToString().Equals("0")) |
||||
|
{ |
||||
|
LockType(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
LockType(true); |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 设备和类别锁定 |
||||
|
/// <summary> |
||||
|
/// 设备和类别锁定 |
||||
|
/// </summary> |
||||
|
/// <param name="lockFlag"></param> |
||||
|
private void LockType(bool lockFlag) |
||||
|
{ |
||||
|
this.comMachineCode.Enabled = lockFlag; |
||||
|
//this.comProductType.Enabled = lockFlag; |
||||
|
if (lockFlag) |
||||
|
{ |
||||
|
|
||||
|
this.lblLock.Text = "锁定工位"; |
||||
|
this.lblLock.Tag = "0"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"]; |
||||
|
System.IO.File.WriteAllText(locationfile, this.comMachineCode.SelectedValue.ToString()); |
||||
|
this.lblLock.Text = "解锁工位"; |
||||
|
this.lblLock.Tag = "1"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,43 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<configuration> |
||||
|
<configSections> |
||||
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
|
<section name="Stone.Common.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> |
||||
|
</sectionGroup> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</configSections> |
||||
|
<applicationSettings> |
||||
|
<Stone.Common.Properties.Settings> |
||||
|
<setting name="Stone_Common_WinService_Service" serializeAs="String"> |
||||
|
<value>http://localhost:55160/Service.svc</value> |
||||
|
</setting> |
||||
|
</Stone.Common.Properties.Settings> |
||||
|
</applicationSettings> |
||||
|
<startup> |
||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> |
||||
|
</startup> |
||||
|
|
||||
|
<system.serviceModel> |
||||
|
<bindings> |
||||
|
<basicHttpBinding> |
||||
|
<binding name="JsonServiceSoap" /> |
||||
|
</basicHttpBinding> |
||||
|
<customBinding> |
||||
|
<binding name="JsonServiceSoap12"> |
||||
|
<textMessageEncoding messageVersion="Soap12" /> |
||||
|
<httpTransport /> |
||||
|
</binding> |
||||
|
</customBinding> |
||||
|
</bindings> |
||||
|
<client> |
||||
|
<endpoint address="http://10.60.101.2:88/JsonService.asmx" binding="basicHttpBinding" |
||||
|
bindingConfiguration="JsonServiceSoap" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap" /> |
||||
|
<!--<endpoint address="http://10.60.101.101:882/JsonService.asmx" binding="basicHttpBinding" |
||||
|
bindingConfiguration="JsonServiceSoap" contract="WmsServiceReference1.JsonServiceSoap" |
||||
|
name="JsonServiceSoap" />--> |
||||
|
</client> |
||||
|
</system.serviceModel> |
||||
|
</configuration> |
@ -0,0 +1,82 @@ |
|||||
|
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.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒信息 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class BucketInfoModel : QDGModel |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 主键 |
||||
|
/// </summary> |
||||
|
[Description("主键")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] |
||||
|
[DGColumn(Hidden = true, PrimaryKey = true)] |
||||
|
public string PID { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 料筒编号 |
||||
|
/// </summary> |
||||
|
[Description("料筒编号")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] |
||||
|
public string BucketCode { get; set; } |
||||
|
/// <summary> |
||||
|
/// 料筒名称 |
||||
|
/// </summary> |
||||
|
[Description("料筒名称")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] |
||||
|
public string BucketName { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 是否可用 |
||||
|
/// </summary> |
||||
|
[Description("是否可用")] |
||||
|
[HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] |
||||
|
[InputType(inputType.text)] |
||||
|
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center,Hidden = true)] |
||||
|
public string IsCheck { get; set; } |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 创建人 |
||||
|
/// </summary> |
||||
|
[Description("创建用户")] |
||||
|
public string CREATEUSER { 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 UPDATEUSER { 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 UPDATEDATE { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,294 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProductVersion>8.0.30703</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{17123CDD-0BA7-496F-8E4E-FCBABE0463CA}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>QMAPP.FJC.Entity</RootNamespace> |
||||
|
<AssemblyName>QMAPP.FJC.Entity</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="QMAPP.MESReport.Entity"> |
||||
|
<HintPath>..\..\APPMESReport\QMAPP.MESReport.Web\Bin\QMAPP.MESReport.Entity.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="QMFrameWork.Data.Attributes"> |
||||
|
<HintPath>..\..\QMFrameWork\QMFrameWork.Data.Attributes.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Runtime.Serialization" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Andon\AreaKeeperEntity.cs" /> |
||||
|
<Compile Include="Andon\CallLogEntity.cs" /> |
||||
|
<Compile Include="Andon\CallReasonEntity.cs" /> |
||||
|
<Compile Include="Andon\LevelSettingEntity.cs" /> |
||||
|
<Compile Include="Andon\MessageTemplateEntity.cs" /> |
||||
|
<Compile Include="Andon\DivStyleEntity.cs" /> |
||||
|
<Compile Include="Andon\QTYCompletionRateDModel.cs" /> |
||||
|
<Compile Include="Andon\RepairRateCountDModel.cs" /> |
||||
|
<Compile Include="Basic\MaterialBomConfig.cs" /> |
||||
|
<Compile Include="Basic\ScanIPConfig.cs" /> |
||||
|
<Compile Include="Basic\AppConfig.cs" /> |
||||
|
<Compile Include="Basic\BarcodeRules.cs" /> |
||||
|
<Compile Include="Basic\BomDetail.cs" /> |
||||
|
<Compile Include="Basic\BomHdr.cs" /> |
||||
|
<Compile Include="Basic\Capacity.cs" /> |
||||
|
<Compile Include="Basic\Corp.cs" /> |
||||
|
<Compile Include="Basic\MachineInfo.cs" /> |
||||
|
<Compile Include="Basic\Material.cs" /> |
||||
|
<Compile Include="Basic\MaterialCodeInit.cs" /> |
||||
|
<Compile Include="Basic\MaterialShelfType.cs" /> |
||||
|
<Compile Include="Basic\Materiel.cs" /> |
||||
|
<Compile Include="Basic\MaterielVersion.cs" /> |
||||
|
<Compile Include="Basic\MoldConfig.cs" /> |
||||
|
<Compile Include="Basic\MoldSet.cs" /> |
||||
|
<Compile Include="Basic\OperatorInfo.cs" /> |
||||
|
<Compile Include="Basic\ParameterConfig.cs" /> |
||||
|
<Compile Include="Basic\PrintModelCopy.cs" /> |
||||
|
<Compile Include="Basic\ProcessInfo.cs" /> |
||||
|
<Compile Include="Basic\ProcessParameter.cs" /> |
||||
|
<Compile Include="Basic\ProcessRoute.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteWithWorkCellSeq.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteWorkCell.cs" /> |
||||
|
<Compile Include="Basic\ProcessRouteWorkcellSeq.cs" /> |
||||
|
<Compile Include="Basic\ProcessRule.cs" /> |
||||
|
<Compile Include="Basic\ProcessSet.cs" /> |
||||
|
<Compile Include="Basic\ProduceShift.cs" /> |
||||
|
<Compile Include="Basic\ProductBasic.cs" /> |
||||
|
<Compile Include="Basic\ProductCodeIdentity.cs" /> |
||||
|
<Compile Include="Basic\ProductInfo.cs" /> |
||||
|
<Compile Include="Basic\ProductMderule.cs" /> |
||||
|
<Compile Include="Basic\MachineInfoModels.cs" /> |
||||
|
<Compile Include="Basic\UnQualityProduct.cs" /> |
||||
|
<Compile Include="Basic\WcWithEquipment.cs" /> |
||||
|
<Compile Include="BZD\BZDConfig.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorder.cs" /> |
||||
|
<Compile Include="BZD\BZDRecorder2.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTime.cs" /> |
||||
|
<Compile Include="CellCycle\CellCycleTimeSet.cs" /> |
||||
|
<Compile Include="CheckTime\CHECKTIME.cs" /> |
||||
|
<Compile Include="Common\EnumGeter.cs" /> |
||||
|
<Compile Include="Common\Constants\CompleteStatisticsConstants.cs" /> |
||||
|
<Compile Include="CompleteStatistics\BarcodeMaterialRelation.cs" /> |
||||
|
<Compile Include="CompleteStatistics\CompleteStatisticsEntity.cs" /> |
||||
|
<Compile Include="CompleteStatistics\MaterialBarcodeInfo.cs" /> |
||||
|
<Compile Include="CompleteStatistics\SystemConfig.cs" /> |
||||
|
<Compile Include="CompleteStatistics\Table\T_AW_COMPLETE_STATISTICS.cs" /> |
||||
|
<Compile Include="CompleteStatistics\Table\T_BD_BARCODE_MATERIAL_RELATION.cs" /> |
||||
|
<Compile Include="CompleteStatistics\Table\T_BD_MATERIAL_BARCODE_INFO.cs" /> |
||||
|
<Compile Include="CompleteStatistics\Table\T_SYSTEM_CONFIG.cs" /> |
||||
|
<Compile Include="DataResult.cs" /> |
||||
|
<Compile Include="DisPatch\EFailLog.cs" /> |
||||
|
<Compile Include="DisPatch\EPasteCard.cs" /> |
||||
|
<Compile Include="DisPatch\EPasteDetailsCard.cs" /> |
||||
|
<Compile Include="DisPatch\EProCodeInfo.cs" /> |
||||
|
<Compile Include="DisPatch\FISORDER.cs" /> |
||||
|
<Compile Include="EM\EmMeterReadings.cs" /> |
||||
|
<Compile Include="EnergyManage\Meter.cs" /> |
||||
|
<Compile Include="EnergyManage\MeterReadings.cs" /> |
||||
|
<Compile Include="Equipment\EquipMentRecord.cs" /> |
||||
|
<Compile Include="Equipment\MonitorCodeEntity.cs" /> |
||||
|
<Compile Include="Equipment\Mould.cs" /> |
||||
|
<Compile Include="Equipment\MouldData.cs" /> |
||||
|
<Compile Include="Equipment\UsageLogEntity.cs" /> |
||||
|
<Compile Include="Equipment\MonitorDataEntity.cs" /> |
||||
|
<Compile Include="Equipment\AlarmEntity.cs" /> |
||||
|
<Compile Include="Equipment\AlarmTable.cs" /> |
||||
|
<Compile Include="FIS\FISAssembly.cs" /> |
||||
|
<Compile Include="FIS\FISPhraseBook.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanSerial.cs" /> |
||||
|
<Compile Include="FIS\OrderPlanTrace.cs" /> |
||||
|
<Compile Include="Injection\InjectHole.cs" /> |
||||
|
<Compile Include="Injection\InjectionInfo.cs" /> |
||||
|
<Compile Include="Injection\InjectWithMaterial.cs" /> |
||||
|
<Compile Include="InterfaceData\LeakInspectRecord.cs" /> |
||||
|
<Compile Include="MaximoDataDB\MouldCounter.cs" /> |
||||
|
<Compile Include="FileCopy\FileCopyRecord.cs" /> |
||||
|
<Compile Include="FIS\FISInfo.cs" /> |
||||
|
<Compile Include="FIS\FISOrder.cs" /> |
||||
|
<Compile Include="FIS\FISOrederSendDetial.cs" /> |
||||
|
<Compile Include="FIS\FISPlan.cs" /> |
||||
|
<Compile Include="FIS\FISPlanRecord.cs" /> |
||||
|
<Compile Include="FIS\OrderPlan.cs" /> |
||||
|
<Compile Include="FIS\SendPlanInfo.cs" /> |
||||
|
<Compile Include="FIS\ProductWithPlan.cs" /> |
||||
|
<Compile Include="FwMark\FWMarkParameter.cs" /> |
||||
|
<Compile Include="MachineCheck\MachineCheckEntity.cs" /> |
||||
|
<Compile Include="MaximoDataDB\MainTainOrder.cs" /> |
||||
|
<Compile Include="MaximoDataDB\EquipmentInfo.cs" /> |
||||
|
<Compile Include="MD\Material.cs" /> |
||||
|
<Compile Include="MesB9\MesB9Entity.cs" /> |
||||
|
<Compile Include="MesB9\MesB4Entity.cs" /> |
||||
|
<Compile Include="MesB9\MesB9M110Entity.cs" /> |
||||
|
<Compile Include="MesB9\MesB4M110Entity.cs" /> |
||||
|
<Compile Include="Message\BadOutBox.cs" /> |
||||
|
<Compile Include="Message\OutBox.cs" /> |
||||
|
<Compile Include="Message\SendOutBox.cs" /> |
||||
|
<Compile Include="ODS\VideoInfo.cs" /> |
||||
|
<Compile Include="ODS\VideoTypeEntity.cs" /> |
||||
|
<Compile Include="Operation\CastCounter.cs" /> |
||||
|
<Compile Include="Operation\CheckValueItem.cs" /> |
||||
|
<Compile Include="Operation\CheckWithMaterial.cs" /> |
||||
|
<Compile Include="Operation\InjectionCheck.cs" /> |
||||
|
<Compile Include="Operation\InputValue.cs" /> |
||||
|
<Compile Include="Operation\MainCodeChange.cs" /> |
||||
|
<Compile Include="Operation\MainMolderStatus.cs" /> |
||||
|
<Compile Include="Operation\MaterialCode.cs" /> |
||||
|
<Compile Include="Operation\OutReason.cs" /> |
||||
|
<Compile Include="Operation\Package.cs" /> |
||||
|
<Compile Include="Operation\PackageSet.cs" /> |
||||
|
<Compile Include="Operation\PbomItem.cs" /> |
||||
|
<Compile Include="Operation\PrintCode.cs" /> |
||||
|
<Compile Include="Operation\ProductCheck.cs" /> |
||||
|
<Compile Include="Operation\ProductCheckExport.cs" /> |
||||
|
<Compile Include="Operation\ProductCount.cs" /> |
||||
|
<Compile Include="Operation\ProductEnd.cs" /> |
||||
|
<Compile Include="Operation\ProductFullInfo.cs" /> |
||||
|
<Compile Include="Operation\ProductOut.cs" /> |
||||
|
<Compile Include="Operation\ProductReplace.cs" /> |
||||
|
<Compile Include="Operation\ShipmentInfo.cs" /> |
||||
|
<Compile Include="Package\PackageSummary.cs" /> |
||||
|
<Compile Include="ProduceManage\DefectType.cs" /> |
||||
|
<Compile Include="ProduceManage\MenderReason.cs" /> |
||||
|
<Compile Include="ProduceManage\MendRecorder.cs" /> |
||||
|
<Compile Include="ProduceManage\ScrapRecord.cs" /> |
||||
|
<Compile Include="ProductionPlan\ProductWithPlan.cs" /> |
||||
|
<Compile Include="ProductionPlan\WorkOrder.cs" /> |
||||
|
<Compile Include="QdFis\FISMap.cs" /> |
||||
|
<Compile Include="QT\Analyzer.cs" /> |
||||
|
<Compile Include="QT\DAI.cs" /> |
||||
|
<Compile Include="QT\DAICache.cs" /> |
||||
|
<Compile Include="QT\DAIItem.cs" /> |
||||
|
<Compile Include="QT\DAIValidation.cs" /> |
||||
|
<Compile Include="QT\MaterialBinding.cs" /> |
||||
|
<Compile Include="QT\ProcessParameters.cs" /> |
||||
|
<Compile Include="QT\ProcessRecord.cs" /> |
||||
|
<Compile Include="QT\ProductStructure.cs" /> |
||||
|
<Compile Include="QT\SendOrderConfig.cs" /> |
||||
|
<Compile Include="QT\StateAction.cs" /> |
||||
|
<Compile Include="QT\Validator.cs" /> |
||||
|
<Compile Include="QT\WorkCellRunState.cs" /> |
||||
|
<Compile Include="SA\WorkcellQtyCount.cs" /> |
||||
|
<Compile Include="SendManage\PastCard.cs" /> |
||||
|
<Compile Include="SendManage\PastCardDetail.cs" /> |
||||
|
<Compile Include="SendManage\SendPlanRecord.cs" /> |
||||
|
<Compile Include="ShipmentMonitor\OnTheWayQTYData.cs" /> |
||||
|
<Compile Include="ShipmentMonitor\ShipmentFisData.cs" /> |
||||
|
<Compile Include="ShipmentMonitor\ShipMonitorSet.cs" /> |
||||
|
<Compile Include="Andon\MessageQueueEntity.cs" /> |
||||
|
<Compile Include="Stocktaking\CountingdetailInfo.cs" /> |
||||
|
<Compile Include="Stocktaking\Countingplaninfo.cs" /> |
||||
|
<Compile Include="Stocktaking\CountingSheet.cs" /> |
||||
|
<Compile Include="Stocktaking\CountResultInfo.cs" /> |
||||
|
<Compile Include="Stocktaking\CountSheetInfo.cs" /> |
||||
|
<Compile Include="Stocktaking\Material.cs" /> |
||||
|
<Compile Include="Stocktaking\test.cs" /> |
||||
|
<Compile Include="View\DAIFormView.cs" /> |
||||
|
<Compile Include="View\PlanLabel.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentAlarm.cs" /> |
||||
|
<Compile Include="WarnManage\EquipMentMaintain.cs" /> |
||||
|
<Compile Include="WarnManage\WarnDetail.cs" /> |
||||
|
<Compile Include="WarnManage\WarnInfo.cs" /> |
||||
|
<Compile Include="WarnManage\WarnInformer.cs" /> |
||||
|
<Compile Include="WarnManage\WarnType.cs" /> |
||||
|
<Compile Include="Equipment\EquipmentMaintain.cs" /> |
||||
|
<Compile Include="Example\Entity\T_EXAMPLE_USERINFO1.cs" /> |
||||
|
<Compile Include="Example\UserAndRole1.cs" /> |
||||
|
<Compile Include="Example\UserInfo1.cs" /> |
||||
|
<Compile Include="FeedInManage\Epidermis.cs" /> |
||||
|
<Compile Include="Injection\InjectionRecorder.cs" /> |
||||
|
<Compile Include="Operation\Main.cs" /> |
||||
|
<Compile Include="Operation\MainOperation.cs" /> |
||||
|
<Compile Include="Operation\MainProduct.cs" /> |
||||
|
<Compile Include="Operation\OperationServiceParam.cs" /> |
||||
|
<Compile Include="Operation\Product.cs" /> |
||||
|
<Compile Include="Operation\ProductAttribute.cs" /> |
||||
|
<Compile Include="Operation\ProductInjection.cs" /> |
||||
|
<Compile Include="ProcessParameter\AssembleParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\BurnParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\CastingParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\FlamepParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\HostcanPatameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\HotweldParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\InJectionParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\MilingParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\PreheatParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\PunchParameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\RivetingPatameter.cs" /> |
||||
|
<Compile Include="ProcessParameter\SlushParamter.cs" /> |
||||
|
<Compile Include="ProcessParameter\UltrasParameter.cs" /> |
||||
|
<Compile Include="ProduceManage\UnQuality.cs" /> |
||||
|
<Compile Include="ProduceManage\ProducePlan.cs" /> |
||||
|
<Compile Include="Produce\Product.cs" /> |
||||
|
<Compile Include="ProductPetrospect\ProductArchives.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<Compile Include="Resource.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DesignTime>True</DesignTime> |
||||
|
<DependentUpon>Resource.resx</DependentUpon> |
||||
|
</Compile> |
||||
|
<Compile Include="SendPlan\SendPlanInfo.cs" /> |
||||
|
<Compile Include="WarnManage\WarnTypeWithInformer.cs" /> |
||||
|
<Compile Include="WIPManage\Detention.cs" /> |
||||
|
<Compile Include="WIPManage\StorageAlarm.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInRecorder.cs" /> |
||||
|
<Compile Include="WIPManage\WIPInventory.cs" /> |
||||
|
<Compile Include="WIPManage\WIPOutRecorder.cs" /> |
||||
|
<Compile Include="QdFis\mbM100.cs" /> |
||||
|
<Compile Include="QdFis\mbM110.cs" /> |
||||
|
<Compile Include="QdFis\ybbM100.cs" /> |
||||
|
<Compile Include="QdFis\ybbM110.cs" /> |
||||
|
<Compile Include="ProductIn\ProductIn.cs" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\APP\QMAPP.Entity\QMAPP.Entity.csproj"> |
||||
|
<Project>{604FB24F-7706-497C-BEC7-27D7B6B5A82C}</Project> |
||||
|
<Name>QMAPP.Entity</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<EmbeddedResource Include="Resource.resx"> |
||||
|
<Generator>PublicResXFileCodeGenerator</Generator> |
||||
|
<LastGenOutput>Resource.Designer.cs</LastGenOutput> |
||||
|
<SubType>Designer</SubType> |
||||
|
</EmbeddedResource> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup /> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
@ -0,0 +1,258 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class RawMaterialRecordDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public RawMaterialRecord Get(RawMaterialRecord info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public RawMaterialRecord Get(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_RawMaterialRecord] WHERE [MATERIAL_CODE]=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<RawMaterialRecord>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(RawMaterialRecord 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 = "UPDATEDATE DESC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<RawMaterialRecord>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(RawMaterialRecord condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,RawMaterialPID,ProductCode,MaterialCode,IsCheck,CREATEUSER,CREATEDATE,UPDATEUSER,UPDATEDATE "); |
||||
|
sqlBuilder.Append("FROM T_MD_RawMaterialRecord "); |
||||
|
whereBuilder.Append(" AND IsCheck<> '1' "); |
||||
|
//查询条件 |
||||
|
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 bool Exists(RawMaterialRecord info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_RawMaterialRecord"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(RawMaterialRecord info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(RawMaterialRecord info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("UPDATE T_MD_RawMaterialRecord "); |
||||
|
sqlBuilder.Append("SET IsCheck = '1' "); |
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.CheckTime.CHECKTIMEModel>" %> |
||||
|
|
||||
|
<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)%> |
||||
|
<table id="editTable" cellpadding="0" cellspacing="0"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<table> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.Check_Type) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Check_Type)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.Operator) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Operator)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.Check_Value) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Check_Value)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
|
||||
|
|
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.Check_ValueTo) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Check_ValueTo)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.State) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.State)%> |
||||
|
</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.WorkLoc_Code)%> |
||||
|
<%=Html.HiddenFor(p => p.CodeTimeStart)%> |
||||
|
<%=Html.HiddenFor(p => p.CodeTimeNumber)%> |
||||
|
|
||||
|
<%=Html.HiddenFor(p => p.DAI_Code)%> |
||||
|
<%=Html.HiddenFor(p => p.Column1)%> |
||||
|
<%=Html.HiddenFor(p => p.Column2)%> |
||||
|
<%=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", "List", "parent.closeAppWindow1();return false;")%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<script type="text/javascript"> |
||||
|
|
||||
|
function Save() { |
||||
|
if (isValidate() == false) { |
||||
|
return false; |
||||
|
} |
||||
|
submitByButton("Save"); |
||||
|
} |
||||
|
</script> |
||||
|
</asp:Content> |
||||
|
|
@ -0,0 +1,37 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<DbConfig> |
||||
|
|
||||
|
<FifoDB Key="ConnStr" Value="DATA SOURCE = 192.168.4.203,58990;USER ID = sa;PASSWORD = 123456;INITIAL CATALOG = StoneWMS_BJ_YNF"></FifoDB> |
||||
|
<!--<EdiDB Key="ConnStr" Value="DATA SOURCE = 10.60.5.60;USER ID = sa;PASSWORD = 987123;INITIAL CATALOG = BJEDI"></EdiDB> |
||||
|
<MFALineDB Key="ConnStr" Value="DATA SOURCE = 10.60.101.12;USER ID = sa;PASSWORD = Microsoft2008;INITIAL CATALOG = MFALine"></MFALineDB>--> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--<MFALineDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = MFALine"></MFALineDB>--> |
||||
|
|
||||
|
<NGCCLineDB Key="ConnStr" Value="DATA SOURCE = 10.60.101.12;USER ID = sa;PASSWORD = Microsoft2008;INITIAL CATALOG = NGCCLine"></NGCCLineDB> |
||||
|
<EdiDB Key="ConnStr" Value="DATA SOURCE = 10.60.5.60;USER ID = sa;PASSWORD = 987123;INITIAL CATALOG = BJEDI"></EdiDB> |
||||
|
|
||||
|
<!--<EdiDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = BJEDI"></EdiDB> |
||||
|
<NGCCLineDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = NGCCLine"></NGCCLineDB>--> |
||||
|
|
||||
|
|
||||
|
<!--<FifoDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = StoneWMS_BJ_YNF"></FifoDB> |
||||
|
<EdiDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = BJEDI"></EdiDB> |
||||
|
<MFALineDB Key="ConnStr" Value="DATA SOURCE = (local);USER ID = sa;PASSWORD = microsoft;INITIAL CATALOG = MFALine"></MFALineDB>--> |
||||
|
|
||||
|
<!--<NGCCUpdateStatus Key="UpdateStatus" Value="IsRelease = 0 and ((PrePartCode is null or prepartcode='') or CarModelDetail ='' or colorcode ='' or assemblyDate is null or (ConfigCode is null or ConfigCode='')) and parttype='01' and CONVERT(varchar(100), time, 23)= CONVERT(varchar(100), GETDATE(), 23)"/>--> |
||||
|
<NGCCUpdateStatus Key="UpdateStatus" Value="IsRelease = 0 and |
||||
|
( CarModelDetail='' or colorName is null or colorName ='' or (ConfigCode is null or ConfigCode='')) and parttype='01'"/> |
||||
|
|
||||
|
|
||||
|
<LineCode Key="Line" Value="D3ASJIS01"/> |
||||
|
<!--01:前保 02:后保 03:全部--> |
||||
|
<PartType Key="PartType" Value="03"/> |
||||
|
<!--刷新频率,单位秒--> |
||||
|
<RefreshTimeLength Value="7200"/> |
||||
|
<!--从设定ID开始更新,初次更新时有用,MqID:HBPO来源 ,EdiID:Edi来源--> |
||||
|
<StartID MqID="42548330" EdiID="697604"/> |
||||
|
<!--RrBumperPreService 后保, FrtBumperPreService 前保 'RrBumperPreService;FrtBumperPreService'后保和前保--> |
||||
|
<ServiceClass ClassName="RrBumperPreService"></ServiceClass> |
||||
|
</DbConfig> |
@ -0,0 +1,10 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<LineConfig> |
||||
|
<MFAPre Key="2214" Value="英纳法预装车间" Grp="Punching"/> |
||||
|
<MFA Key="2215" Value="英纳法装配线"/> |
||||
|
<NGCC Key="2208" Value="物流园前保装配线"/> |
||||
|
<Punching2 Key="2216" Value="冲孔车间" Grp="Punching"/> |
||||
|
<Assemble Key="2208" Value="装配车间(二厂)"/> |
||||
|
<MFAEdiLine Key="D3ASJIS01" Value="英纳法后保对应奔驰生产线"/> |
||||
|
|
||||
|
</LineConfig> |
File diff suppressed because it is too large
@ -0,0 +1,349 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<PowerList> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01000000" PowerDes="系统管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD01020000" PowerDes="组织机构" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD01000000"/> |
||||
|
<PowerInfo PowerID="CD01020001" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD01020000"/> |
||||
|
<PowerInfo PowerID="CD01020002" PowerDes="编辑" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD01020000"/> |
||||
|
<PowerInfo PowerID="CD01020003" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD01020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01010000" PowerDes="角色信息" PowerType="" ActionList="" Visible="true" Seq="2" SuperID="CD01000000"/> |
||||
|
<PowerInfo PowerID="CD01010001" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD01010000"/> |
||||
|
<PowerInfo PowerID="CD01010002" PowerDes="编辑" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD01010000"/> |
||||
|
<PowerInfo PowerID="CD01010003" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD01010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01030000" PowerDes="用户信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD01000000"/> |
||||
|
<PowerInfo PowerID="CD01030001" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD01030000"/> |
||||
|
<PowerInfo PowerID="CD01030002" PowerDes="编辑" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD01030000"/> |
||||
|
<PowerInfo PowerID="CD01030003" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD01030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01150000" PowerDes="委托授权" PowerType="" ActionList="" Visible="true" Seq="4" SuperID="CD01000000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01060000" PowerDes="通知管理" PowerType="" ActionList="" Visible="true" Seq="5" SuperID="CD01000000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01070000" PowerDes="数据操作日志" PowerType="" ActionList="" Visible="true" Seq="6" SuperID="CD01000000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD01200000" PowerDes="文件管理" PowerType="" ActionList="" Visible="true" Seq="7" SuperID="CD01000000"/> |
||||
|
<PowerInfo PowerID="CD01130000" PowerDes="在线帮助管理" PowerType="" ActionList="" Visible="true" Seq="10" SuperID="CD01000000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD03000000" PowerDes="基础信息" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03010000" PowerDes="物料号信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03010000"/> |
||||
|
<PowerInfo PowerID="CD03010002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03010000"/> |
||||
|
<PowerInfo PowerID="CD03010003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03010000"/> |
||||
|
<PowerInfo PowerID="CD03010004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03020000" PowerDes="设备信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03020000"/> |
||||
|
<PowerInfo PowerID="CD03020002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03020000"/> |
||||
|
<PowerInfo PowerID="CD03020003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03020000"/> |
||||
|
<PowerInfo PowerID="CD03020004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03030000" PowerDes="班次信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03030000"/> |
||||
|
<PowerInfo PowerID="CD03030002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03030000"/> |
||||
|
<PowerInfo PowerID="CD03030003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03030000"/> |
||||
|
<PowerInfo PowerID="CD03030004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03030000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD03040000" PowerDes="零件条码标识" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03040000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03050000" PowerDes="操作员" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03050000"/> |
||||
|
<PowerInfo PowerID="CD03050002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03050000"/> |
||||
|
<PowerInfo PowerID="CD03050003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03050000"/> |
||||
|
<PowerInfo PowerID="CD03050004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03050000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD03060000" PowerDes="工序名称" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03060001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03060000"/> |
||||
|
<PowerInfo PowerID="CD03060002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03060000"/> |
||||
|
<PowerInfo PowerID="CD03060003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03060000"/> |
||||
|
<PowerInfo PowerID="CD03060004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03060000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03070000" PowerDes="工序设置" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03070001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03070000"/> |
||||
|
<PowerInfo PowerID="CD03070002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03070000"/> |
||||
|
<PowerInfo PowerID="CD03070003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03070000"/> |
||||
|
<PowerInfo PowerID="CD03070004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03070000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD03080000" PowerDes="加工参数标准值设定" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03080001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03080000"/> |
||||
|
<PowerInfo PowerID="CD03080002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03080000"/> |
||||
|
<PowerInfo PowerID="CD03080003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03080000"/> |
||||
|
<PowerInfo PowerID="CD03080004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03080000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD03090000" PowerDes="投料配置规则" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03090001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03090000"/> |
||||
|
<PowerInfo PowerID="CD03090002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03090000"/> |
||||
|
<PowerInfo PowerID="CD03090003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03090000"/> |
||||
|
<PowerInfo PowerID="CD03090004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03090000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03100000" PowerDes="物料架类型维护" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03100001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03100000"/> |
||||
|
<PowerInfo PowerID="CD03100002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD03100000"/> |
||||
|
<PowerInfo PowerID="CD03100003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03100000"/> |
||||
|
<PowerInfo PowerID="CD03100004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD03100000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD03110000" PowerDes="工序冷却设置" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD03000000"/> |
||||
|
<PowerInfo PowerID="CD03110001" PowerDes="编辑" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD03110000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD04000000" PowerDes="投料管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD04010000" PowerDes="表皮信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04010000"/> |
||||
|
<PowerInfo PowerID="CD04010002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04010000"/> |
||||
|
<PowerInfo PowerID="CD04010003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04020000" PowerDes="骨架信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04020000"/> |
||||
|
<PowerInfo PowerID="CD04020002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04020000"/> |
||||
|
<PowerInfo PowerID="CD04020003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04030000" PowerDes="风道信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04030000"/> |
||||
|
<PowerInfo PowerID="CD04030002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04030000"/> |
||||
|
<PowerInfo PowerID="CD04030003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04040000" PowerDes="气囊支架信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04040000"/> |
||||
|
<PowerInfo PowerID="CD04040002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04040000"/> |
||||
|
<PowerInfo PowerID="CD04040003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04040000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04050000" PowerDes="开关支架信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04050000"/> |
||||
|
<PowerInfo PowerID="CD04050002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04050000"/> |
||||
|
<PowerInfo PowerID="CD04050003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04050000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04060000" PowerDes="中控支架信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04060001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04060000"/> |
||||
|
<PowerInfo PowerID="CD04060002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04060000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04070000" PowerDes="格栅信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04070001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04070000"/> |
||||
|
<PowerInfo PowerID="CD04070002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04070000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04080000" PowerDes="HUD风道信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04080001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04080000"/> |
||||
|
<PowerInfo PowerID="CD04080002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04080000"/> |
||||
|
<PowerInfo PowerID="CD04080003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04080000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04090000" PowerDes="金属支架信息查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04090001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04090000"/> |
||||
|
<PowerInfo PowerID="CD04090002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04090000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04100000" PowerDes="注塑投料记录查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04100001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04100000"/> |
||||
|
<PowerInfo PowerID="CD04100002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04100000"/> |
||||
|
<PowerInfo PowerID="CD04100003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04100000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD04110000" PowerDes="搪塑投料记录查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD04000000"/> |
||||
|
<PowerInfo PowerID="CD04110001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD04110000"/> |
||||
|
<PowerInfo PowerID="CD04110002" PowerDes="修改批次号" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD04110000"/> |
||||
|
<PowerInfo PowerID="CD04110003" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD04110000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD05000000" PowerDes="生产管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD05010000" PowerDes="生产记录维护" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD05000000"/> |
||||
|
<PowerInfo PowerID="CD05010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD05010000"/> |
||||
|
<PowerInfo PowerID="CD05010002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD05010000"/> |
||||
|
<PowerInfo PowerID="CD05010003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD05010000"/> |
||||
|
<PowerInfo PowerID="CD05010004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="4" SuperID="CD05010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD06040000" PowerDes="不合格品记录查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD06000000"/> |
||||
|
<PowerInfo PowerID="CD06040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06020000"/> |
||||
|
<PowerInfo PowerID="CD06040002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06020000"/> |
||||
|
<PowerInfo PowerID="CD06040003" PowerDes="导出不合格清单" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD06030000"/> |
||||
|
<PowerInfo PowerID="CD06040004" PowerDes="导出报废清单" PowerType="button" ActionList="" Visible="true" Seq="4" SuperID="CD06030000"/> |
||||
|
<PowerInfo PowerID="CD06040005" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="5" SuperID="CD06030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD06000000" PowerDes="产品追溯" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD06010000" PowerDes="产品档案" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD06000000"/> |
||||
|
<PowerInfo PowerID="CD06010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06010000"/> |
||||
|
<PowerInfo PowerID="CD06010002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD06020000" PowerDes="产品批次追溯" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD06000000"/> |
||||
|
<PowerInfo PowerID="CD06020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06020000"/> |
||||
|
<PowerInfo PowerID="CD06020002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD06030000" PowerDes="产品加工追溯" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD06000000"/> |
||||
|
<PowerInfo PowerID="CD06030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD06030000"/> |
||||
|
<PowerInfo PowerID="CD06030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD06030000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD07000000" PowerDes="设备报警管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD07010000" PowerDes="设备报警记录查询" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD07000000"/> |
||||
|
<PowerInfo PowerID="CD07010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD07010000"/> |
||||
|
<PowerInfo PowerID="CD07010002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD07010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD07020000" PowerDes="自动报警" PowerType="" ActionList="" Visible="true" Seq="1" SuperID="CD07000000"/> |
||||
|
<PowerInfo PowerID="CD07020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD07020000"/> |
||||
|
<PowerInfo PowerID="CD07020002" PowerDes="新建" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD07020000"/> |
||||
|
<PowerInfo PowerID="CD07020003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="4" SuperID="CD07020000"/> |
||||
|
<PowerInfo PowerID="CD07020004" PowerDes="删除" PowerType="button" ActionList="" Visible="true" Seq="5" SuperID="CD07020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD07030000" PowerDes="不合格品记录查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD07000000"/> |
||||
|
<PowerInfo PowerID="CD07030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD07030000"/> |
||||
|
<PowerInfo PowerID="CD07030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD07030000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD08000000" PowerDes="在制品监控" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD08010000" PowerDes="在制品库存" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD08000000"/> |
||||
|
<PowerInfo PowerID="CD08010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD08010000"/> |
||||
|
<PowerInfo PowerID="CD08010002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD08010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD08020000" PowerDes="在制品入库信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD08000000"/> |
||||
|
<PowerInfo PowerID="CD08020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD08020000"/> |
||||
|
<PowerInfo PowerID="CD08020002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD08020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD08030000" PowerDes="在制品出库信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD08000000"/> |
||||
|
<PowerInfo PowerID="CD08030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD08030000"/> |
||||
|
<PowerInfo PowerID="CD08030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD08030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD08040000" PowerDes="低储报警信息" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD08000000"/> |
||||
|
<PowerInfo PowerID="CD08040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD08040000"/> |
||||
|
<PowerInfo PowerID="CD08040002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD08040000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD08050000" PowerDes="滞留品查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD08000000"/> |
||||
|
<PowerInfo PowerID="CD08050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD08050000"/> |
||||
|
<PowerInfo PowerID="CD08050002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD08050000"/> |
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD09000000" PowerDes="发货管理" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD09010000" PowerDes="贴车单查询" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD09000000"/> |
||||
|
<PowerInfo PowerID="CD09010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD09010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD09020000" PowerDes="发车统计分析" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD09000000"/> |
||||
|
<PowerInfo PowerID="CD09020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD09020000"/> |
||||
|
<PowerInfo PowerID="CD09020002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD09020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD15000000" PowerDes="返修" PowerType="" ActionList="" Visible="true" Seq="3" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD15010000" PowerDes="不合格品记录查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD15000000"/> |
||||
|
<PowerInfo PowerID="CD15010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD15010000"/> |
||||
|
<PowerInfo PowerID="CD15010002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD15010000"/> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD10000000" PowerDes="设备加工记录" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD10010000" PowerDes="搪塑记录" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10020000" PowerDes="冷刀弱化记录" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10030000" PowerDes="注塑记录" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10040000" PowerDes="火焰加工记录" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10040000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10050000" PowerDes="预热" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10050000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10060000" PowerDes="浇注" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10060001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10060000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10070000" PowerDes="红外扫描" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10070001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10070000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10080000" PowerDes="冲切" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10080001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10080000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10090000" PowerDes="铣削" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10090001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10090000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10100000" PowerDes="铆接" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10100001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10100000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10110000" PowerDes="超声波焊接" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10110001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10110000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10120000" PowerDes="红外焊接" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10120001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10120000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD10130000" PowerDes="总成装配" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD10000000"/> |
||||
|
<PowerInfo PowerID="CD10130001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD10130000"/> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<PowerInfo PowerID="CD13000000" PowerDes="统计分析" PowerType="" ActionList="" Visible="true" Seq="1" SuperID=""/> |
||||
|
<PowerInfo PowerID="CD13010000" PowerDes="生产日报" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13010001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13010000"/> |
||||
|
<PowerInfo PowerID="CD13010002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13010000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13020000" PowerDes="产品趋势分析" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13020001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13020000"/> |
||||
|
<PowerInfo PowerID="CD13020002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13020000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13030000" PowerDes="班产对比分析" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13030001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13030000"/> |
||||
|
<PowerInfo PowerID="CD13030002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13030000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13040000" PowerDes="合格率分析" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13040001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13040000"/> |
||||
|
<PowerInfo PowerID="CD13040002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13040000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13050000" PowerDes="直通率分析" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13050001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13050000"/> |
||||
|
<PowerInfo PowerID="CD13050002" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13050000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13070000" PowerDes="返修统计分析" PowerType="" ActionList="" Visible="true" Seq="4" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13070001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13070000"/> |
||||
|
<PowerInfo PowerID="CD13070002" PowerDes="追加" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13070000"/> |
||||
|
<PowerInfo PowerID="CD13070003" PowerDes="修改" PowerType="button" ActionList="" Visible="true" Seq="3" SuperID="CD13070000"/> |
||||
|
<PowerInfo PowerID="CD13070004" PowerDes="导出" PowerType="button" ActionList="" Visible="true" Seq="4" SuperID="CD13070000"/> |
||||
|
<PowerInfo PowerID="CD13070005" PowerDes="导出Excel" PowerType="button" ActionList="" Visible="true" Seq="5" SuperID="CD13070000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD13190000" PowerDes="完工数量统计" PowerType="" ActionList="" Visible="true" Seq="3" SuperID="CD13000000"/> |
||||
|
<PowerInfo PowerID="CD13190001" PowerDes="查询" PowerType="button" ActionList="" Visible="true" Seq="1" SuperID="CD13190000"/> |
||||
|
<PowerInfo PowerID="CD13190005" PowerDes="导出Excel" PowerType="button" ActionList="" Visible="true" Seq="2" SuperID="CD13190000"/> |
||||
|
|
||||
|
<PowerInfo PowerID="CD98000000" PowerDes="手持功能" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD98010000" PowerDes="搪塑投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD98000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD98020000" PowerDes="注塑投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD98000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD98030000" PowerDes="浇注投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD98000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD98040000" PowerDes="注塑绑定" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD98000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD80000000" PowerDes="搪塑下线/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD80010000" PowerDes="搪塑投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD80000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD80020000" PowerDes="条码打印" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD80000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD80030000" PowerDes="设备停机维护" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD80000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD80040000" PowerDes="旧搪塑条码打印" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD80000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD81000000" PowerDes="注塑下线/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD81010000" PowerDes="注塑投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD81000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD81020000" PowerDes="注塑条码打印" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD81000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD81030000" PowerDes="注塑打包" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD81000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD81040000" PowerDes="设备停机维护" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD81000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD81050000" PowerDes="投料平台" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD81000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD87000000" PowerDes="浇注投料/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD87010000" PowerDes="浇注投料" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD87000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD82000000" PowerDes="加工工位/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD82010000" PowerDes="加工操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD82020000" PowerDes="设备停机维护" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD82030000" PowerDes="出库操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD82040000" PowerDes="入库操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD82000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD83000000" PowerDes="发货管理/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD83010000" PowerDes="贴车单打印" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD83000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD83020000" PowerDes="条码打印" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD83000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD84000000" PowerDes="返修工位/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD84010000" PowerDes="返修操作" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD84000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD85000000" PowerDes="加工信息查询/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD85010000" PowerDes="SPC监控" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD85020000" PowerDes="加工参数显示" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD85030000" PowerDes="设备报警" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo> |
||||
|
<PowerInfo PowerID="CD85040000" PowerDes="FIS M100生产信息查询" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD85000000"></PowerInfo> |
||||
|
|
||||
|
<PowerInfo PowerID="CD86000000" PowerDes="工序放行/工控机" PowerType="group" ActionList="" Visible="true" Seq="1" SuperID=""></PowerInfo> |
||||
|
<PowerInfo PowerID="CD86010000" PowerDes="放行" PowerType="item" ActionList="" Visible="true" Seq="1" SuperID="CD86000000"></PowerInfo> |
||||
|
|
||||
|
</PowerList> |
@ -0,0 +1,794 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.Data; |
||||
|
using System.Drawing; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows.Forms; |
||||
|
using QMAPP.WinForm.Common; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity; |
||||
|
using QMAPP.ServicesAgent; |
||||
|
using QMAPP.FJC.Entity.Operation; |
||||
|
using QMFrameWork.Common.Serialization; |
||||
|
using QMAPP.WinForm.Forms.Operation; |
||||
|
using QMAPP.FJC.Entity.Basic; |
||||
|
|
||||
|
namespace QMAPP.WinForm.Forms.Injection |
||||
|
{ |
||||
|
public partial class InjectionCodePrint : Form |
||||
|
{ |
||||
|
//获取服务代理 |
||||
|
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent(); |
||||
|
|
||||
|
List<ProcessParameter> paramcolumns = new List<ProcessParameter>(); |
||||
|
FileSynchronizers.IFileSynchronizer sync; |
||||
|
|
||||
|
public InjectionCodePrint() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private void InjectionCodePrint_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
LoadMachineList(); |
||||
|
SetConnectState(0); |
||||
|
|
||||
|
this.radioButSignal.Checked = true; |
||||
|
|
||||
|
PrintTempleCopyClass printClass = new PrintTempleCopyClass(); |
||||
|
printClass.CopyPrintTemple("InjectionCodePrint"); |
||||
|
|
||||
|
cbPrintCount.SelectedIndex = 3; |
||||
|
cbPrintSpan.SelectedIndex = 3; |
||||
|
} |
||||
|
|
||||
|
#region 加载设备列表 |
||||
|
/// <summary> |
||||
|
/// 加载设备列表 |
||||
|
/// </summary> |
||||
|
private void LoadMachineList() |
||||
|
{ |
||||
|
#region |
||||
|
BasicData basicData = new BasicData(); |
||||
|
var machinelist = basicData.GetMachineInfoAndModelList(new string[] {"1"}, true); |
||||
|
this.comMachine.DataSource = machinelist; |
||||
|
this.comMachine.DisplayMember = "MACHINENAME"; |
||||
|
this.comMachine.ValueMember = "MACHINECODDE"; |
||||
|
|
||||
|
//如果工位已设定 |
||||
|
if (ClientContext.MachineInfo != null && !string.IsNullOrEmpty(ClientContext.MachineInfo.PID)) |
||||
|
{ |
||||
|
this.comMachine.SelectedValue = ClientContext.MachineInfo.MACHINECODDE; |
||||
|
//this.btnLockMachine.Visible = false; |
||||
|
this.LockMachine(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
//this.btnLockMachine.Visible = false; |
||||
|
this.LockMachine(false); |
||||
|
} |
||||
|
comMachine_SelectedIndexChanged(null, null); |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 打印 |
||||
|
/// <summary> |
||||
|
/// 打印 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbPrint_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
tsbPrint.Enabled = false; |
||||
|
CodeCreatePrint(); |
||||
|
tsbPrint.Enabled = true; |
||||
|
} |
||||
|
|
||||
|
private void CodeCreatePrint() |
||||
|
{ |
||||
|
List<Material> materialListInfo = GetSelectedMaterials(); |
||||
|
var model = cbMould.SelectedItem as MachineInfoModels; |
||||
|
if (model == null) |
||||
|
{ |
||||
|
model = new MachineInfoModels(); |
||||
|
} |
||||
|
int i = 1; |
||||
|
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeForChengdu", materialListInfo, model, i); |
||||
|
var machine = comMachine.SelectedItem as MachineInfo; |
||||
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo, machine, model, "", new Dictionary<string,string>()); |
||||
|
|
||||
|
Print(resultList.Result, true); |
||||
|
} |
||||
|
|
||||
|
private void CodeCreatePrint(string header, string datarow, char[] dataSeparator) |
||||
|
{ |
||||
|
|
||||
|
List<Material> materialListInfo = GetSelectedMaterials(); |
||||
|
var machine = comMachine.SelectedItem as MachineInfo; |
||||
|
var model = cbMould.SelectedItem as MachineInfoModels; |
||||
|
if (model == null) |
||||
|
{ |
||||
|
model = new MachineInfoModels(); |
||||
|
} |
||||
|
string tableName = paramcolumns.FirstOrDefault().PARATABLENAME; |
||||
|
Dictionary<string,string> param=new Dictionary<string,string>(); |
||||
|
param.Add("PARAMETER_COLUMNS",header); |
||||
|
var paramvalue=datarow.Split(dataSeparator); |
||||
|
for(int j=0;j<paramvalue.Length;j++) |
||||
|
{ |
||||
|
if(j<paramcolumns.Count) |
||||
|
{ |
||||
|
param.Add(paramcolumns[j].PARANAME,paramvalue[j]); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
int i = 1; |
||||
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo,machine,model,tableName,param); |
||||
|
Print(resultList.Result,false); |
||||
|
} |
||||
|
private void Print(List<PrintCode> codeList,bool IsManual) |
||||
|
{ |
||||
|
List<PrintTemplate.InjectLabel> labels = new List<PrintTemplate.InjectLabel>(); |
||||
|
//打印条码 |
||||
|
string typeTem = ""; |
||||
|
string typeData = ""; |
||||
|
foreach (PrintCode item in codeList) |
||||
|
{ |
||||
|
|
||||
|
//创建新行 |
||||
|
var row = new DataGridViewRow(); |
||||
|
if (DGView.Rows.Count == 0) |
||||
|
{ |
||||
|
var index = this.DGView.Rows.Add(); |
||||
|
row = DGView.Rows[index]; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.DGView.Rows.InsertCopy(0, 0); |
||||
|
row = DGView.Rows[0]; |
||||
|
} |
||||
|
//对datagridview赋值 |
||||
|
row.Cells["MATERIAL_NAME"].Value = item.MATERIAL_NAME; |
||||
|
row.Cells["PRODUCTCODE"].Value = item.PRODUCTCODE; |
||||
|
row.Cells["MAINCODE"].Value = item.MAINCODE; |
||||
|
row.Cells["CREATETIME"].Value = DateTime.Now; |
||||
|
|
||||
|
if (DGView.Rows.Count > 200) |
||||
|
{ |
||||
|
DGView.Rows.RemoveAt(200); |
||||
|
} |
||||
|
//班次信息 |
||||
|
string shiftCode = ClientContext.produceShift.PRODUCESHIFTTCODE; |
||||
|
item.ShiftCode = shiftCode; |
||||
|
|
||||
|
DGView.AutoGenerateColumns = false; |
||||
|
typeTem = item.PRINT_TEMPALTE_TEM; |
||||
|
typeData = item.PRINT_TEMPALTE_DATA; |
||||
|
//QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo(); |
||||
|
//ll.BarCode = item.MATERIAL_NAME + "," + item.PRODUCTCODE + "," + item.MAINCODE + "," + shiftCode + "," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
||||
|
//QM.Assist.PrintUtil.LabelList2.Add(ll); |
||||
|
PrintTemplate.InjectLabel label = new PrintTemplate.InjectLabel |
||||
|
{ |
||||
|
CreateDate = DateTime.Now, |
||||
|
MachineCode = comMachine.SelectedValue + "", |
||||
|
MaterialCode = item.PRODUCTCODE, |
||||
|
MaterialName = item.MATERIAL_NAME, |
||||
|
ModelCode = cbMould.SelectedValue + "", |
||||
|
SerialNumber = item.MAINCODE, |
||||
|
ShiftCode = shiftCode, |
||||
|
IsManualPrint = IsManual |
||||
|
}; |
||||
|
labels.Add(label); |
||||
|
} |
||||
|
string path = System.Configuration.ConfigurationManager.AppSettings["Template_Local_Path"]; |
||||
|
if (!System.IO.Directory.Exists(path)) |
||||
|
{ |
||||
|
System.IO.Directory.CreateDirectory(path); |
||||
|
} |
||||
|
FastReport.Report fr = new FastReport.Report(); |
||||
|
fr.RegisterData(labels, "Labels"); |
||||
|
if (!System.IO.File.Exists(string.Format("{0}\\{1}.frx", path, typeTem))) |
||||
|
{ |
||||
|
if (System.IO.File.Exists(string.Format("PrintTemplate\\{1}.frx", path, typeTem))) |
||||
|
{ |
||||
|
System.IO.File.Copy(string.Format("PrintTemplate\\{1}.frx", path, typeTem) |
||||
|
, string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
fr.FileName = string.Format("{0}\\{1}.frx", path, typeTem); |
||||
|
fr.Design(true); |
||||
|
fr.Save(string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
} |
||||
|
} |
||||
|
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem)); |
||||
|
if (cbTemplateDesign.Enabled && cbTemplateDesign.Checked) |
||||
|
{ |
||||
|
fr.Design(true); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
fr.PrintSettings.ShowDialog = false; |
||||
|
fr.Print(); |
||||
|
} |
||||
|
fr.Dispose(); |
||||
|
|
||||
|
//QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil(); |
||||
|
//pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString |
||||
|
// (), System.Configuration.ConfigurationManager.AppSettings[typeTem + "temPath"].ToString |
||||
|
// (), System.Configuration.ConfigurationManager.AppSettings[typeData + "dataPath"].ToString |
||||
|
// ()); |
||||
|
} |
||||
|
|
||||
|
private List<Material> GetSelectedMaterials() |
||||
|
{ |
||||
|
List<Material> materialListInfo = new List<Material>(); |
||||
|
Material concationMaterial = new Material(); |
||||
|
//int i= Convert.ToInt32( this.txtNum.Text); |
||||
|
|
||||
|
if (this.radioButSignal.Checked == true) |
||||
|
{ |
||||
|
string materialcode1 = this.txtMaterialCode.Text; |
||||
|
concationMaterial.MATERIAL_CODE = materialcode1; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
} |
||||
|
else if (this.radioButDouble.Checked == true) |
||||
|
{ |
||||
|
concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
if (!string.IsNullOrEmpty(this.comboxMaterial.SelectedValue.ToString())) |
||||
|
{ |
||||
|
Material concationMaterial2 = new Material(); |
||||
|
concationMaterial2.MATERIAL_CODE = this.comboxMaterial.SelectedValue.ToString(); |
||||
|
materialListInfo.Add(concationMaterial2); |
||||
|
} |
||||
|
} |
||||
|
else if (this.radioButFourth.Checked == true) |
||||
|
{ |
||||
|
concationMaterial.MATERIAL_CODE = this.txtMaterialCode.Text; |
||||
|
materialListInfo.Add(concationMaterial); |
||||
|
|
||||
|
//if (!string.IsNullOrEmpty(this.txtMaterial2.Text)) |
||||
|
if (!string.IsNullOrEmpty(this.comboxMaterial.SelectedValue.ToString())) |
||||
|
{ |
||||
|
Material concationMaterial3 = new Material(); |
||||
|
//concationMaterial3.MATERIAL_CODE = this.txtMaterial2.Text.Substring(this.txtMaterial2.Text.LastIndexOf(":") + 1); |
||||
|
concationMaterial3.MATERIAL_CODE = this.comboxMaterial.SelectedValue.ToString(); |
||||
|
materialListInfo.Add(concationMaterial3); |
||||
|
} |
||||
|
|
||||
|
//if (!string.IsNullOrEmpty(this.txtMaterial3.Text)) |
||||
|
if (!string.IsNullOrEmpty(this.comboxMaterial3.SelectedValue.ToString())) |
||||
|
{ |
||||
|
Material concationMaterial4 = new Material(); |
||||
|
//concationMaterial4.MATERIAL_CODE = this.txtMaterial3.Text.Substring(this.txtMaterial3.Text.LastIndexOf(":") + 1); |
||||
|
concationMaterial4.MATERIAL_CODE = this.comboxMaterial3.SelectedValue.ToString(); |
||||
|
materialListInfo.Add(concationMaterial4); |
||||
|
} |
||||
|
//if (!string.IsNullOrEmpty(this.txtMaterial4.Text)) |
||||
|
if (!string.IsNullOrEmpty(this.comboxMaterial4.SelectedValue.ToString())) |
||||
|
{ |
||||
|
Material concationMaterial5 = new Material(); |
||||
|
//concationMaterial5.MATERIAL_CODE = this.txtMaterial4.Text.Substring(this.txtMaterial4.Text.LastIndexOf(":") + 1); |
||||
|
concationMaterial5.MATERIAL_CODE = this.comboxMaterial4.SelectedValue.ToString(); |
||||
|
materialListInfo.Add(concationMaterial5); |
||||
|
} |
||||
|
} |
||||
|
return materialListInfo; |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 校验 |
||||
|
/// <summary> |
||||
|
/// 校验 |
||||
|
/// </summary> |
||||
|
/// <returns></returns> |
||||
|
private string ErrorCheck() |
||||
|
{ |
||||
|
#region |
||||
|
string strMessage = ""; |
||||
|
|
||||
|
var selectmachine= comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine == null || string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
strMessage += "请选择注塑机!" + "\r\n"; |
||||
|
} |
||||
|
//判断条码是否为空 |
||||
|
|
||||
|
if (cbMould.Items.Count > 0 && cbMould.SelectedIndex < 0) |
||||
|
{ |
||||
|
strMessage += "请选择模具!" + "\r\n"; |
||||
|
} |
||||
|
|
||||
|
//注塑零件 |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
strMessage += Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//打印数量 |
||||
|
//if (this.txtNum.Text == null || this.txtNum.Text == string.Empty) |
||||
|
//{ |
||||
|
// strMessage += Resource1.NumNullValidate + "\r\n"; |
||||
|
//} |
||||
|
//else |
||||
|
//{ |
||||
|
// int proNum = 0; |
||||
|
// if (!int.TryParse(this.txtNum.Text, out proNum)) |
||||
|
// { |
||||
|
// strMessage += Resource1.NumFormatValidate + "\r\n"; |
||||
|
// } |
||||
|
//} |
||||
|
return strMessage; |
||||
|
#endregion |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 窗体关闭 |
||||
|
/// <summary> |
||||
|
/// 窗体关闭 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void tsbClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
this.Close(); |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 点击选择零件信息 |
||||
|
/// <summary> |
||||
|
/// 点击选择零件信息 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void btnChoiceMaterial_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
MaterialTreeForm materialForm = new MaterialTreeForm(); |
||||
|
var ret= materialForm.ShowDialog(); |
||||
|
if (ret == DialogResult.OK) |
||||
|
{ |
||||
|
this.txtMaterialCode.Text = materialForm.MaterialCode; |
||||
|
this.textMaterialName.Text = materialForm.MaterialName; |
||||
|
bool maintype = materialForm.MainType; |
||||
|
if (maintype) |
||||
|
{ |
||||
|
this.groupBox3.Enabled = true; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.groupBox3.Enabled = false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 单选按钮 |
||||
|
/// <summary> |
||||
|
/// 单件 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButSignal_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButSignal.Checked == true) |
||||
|
{ |
||||
|
this.panel34.Visible = false; |
||||
|
this.paneldouble.Visible = false; |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 双件,获取物料信息下拉 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButDouble_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButDouble.Checked == true) |
||||
|
{ |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
string Messae = Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
radioButSignal.Checked = true; |
||||
|
return; |
||||
|
} |
||||
|
this.paneldouble.Visible = true; |
||||
|
this.panel34.Visible = false; |
||||
|
|
||||
|
string materialCode = this.txtMaterialCode.Text; |
||||
|
BasicData basicData = new BasicData(); |
||||
|
this.comboxMaterial.DataSource = basicData.GetMaterialInfoList(materialCode, true); |
||||
|
this.comboxMaterial.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comboxMaterial.ValueMember = "MATERIAL_CODE"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 四件,自动填写下拉物料信息 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void radioButFourth_CheckedChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (radioButFourth.Checked == true) |
||||
|
{ |
||||
|
if (this.txtMaterialCode.Text == null || this.txtMaterialCode.Text == string.Empty) |
||||
|
{ |
||||
|
string Messae = Resource1.MaterialChoiceValidate + "\r\n"; |
||||
|
MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
radioButSignal.Checked = true; |
||||
|
return; |
||||
|
} |
||||
|
//20210727 zhang 增加PA物料后老方法不适用 |
||||
|
//string materialCode = this.txtMaterialCode.Text; |
||||
|
//BasicData basicData = new BasicData(); |
||||
|
//List<Material> materialList = basicData.GetMaterialInfoList(materialCode, false); |
||||
|
//materialList = materialList.OrderBy(p => p.MATERIAL_CODE).ToList(); |
||||
|
//if (materialList.Count < 3) |
||||
|
//{ |
||||
|
// string Messae = Resource1.SelectedInfoWrong + "\r\n"; |
||||
|
// MessageBox.Show(Messae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
// radioButSignal.Checked = true; |
||||
|
// return; |
||||
|
//} |
||||
|
//this.panel34.Visible = true; |
||||
|
//this.paneldouble.Visible = false; |
||||
|
//this.txtMaterial2.Text = materialList[0].MATERIAL_NAME; |
||||
|
//this.txtMaterial3.Text = materialList[1].MATERIAL_NAME; |
||||
|
//this.txtMaterial4.Text = materialList[2].MATERIAL_NAME; |
||||
|
|
||||
|
this.paneldouble.Visible = true; |
||||
|
this.panel34.Visible = true; |
||||
|
|
||||
|
string materialCode = this.txtMaterialCode.Text; |
||||
|
BasicData basicData = new BasicData(); |
||||
|
this.comboxMaterial.DataSource = basicData.GetMaterialInfoList(materialCode, true); |
||||
|
this.comboxMaterial.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comboxMaterial.ValueMember = "MATERIAL_CODE"; |
||||
|
|
||||
|
string materialCode3 = this.txtMaterialCode.Text; |
||||
|
BasicData basicData3 = new BasicData(); |
||||
|
this.comboxMaterial3.DataSource = basicData3.GetMaterialInfoList(materialCode, true); |
||||
|
this.comboxMaterial3.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comboxMaterial3.ValueMember = "MATERIAL_CODE"; |
||||
|
|
||||
|
string materialCode4 = this.txtMaterialCode.Text; |
||||
|
BasicData basicData4 = new BasicData(); |
||||
|
this.comboxMaterial4.DataSource = basicData4.GetMaterialInfoList(materialCode, true); |
||||
|
this.comboxMaterial4.DisplayMember = "MATERIAL_NAME"; |
||||
|
this.comboxMaterial4.ValueMember = "MATERIAL_CODE"; |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 所选零件发生改变 |
||||
|
/// </summary> |
||||
|
/// <param name="sender"></param> |
||||
|
/// <param name="e"></param> |
||||
|
private void txtMaterialCode_TextChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
radioButSignal.Checked = true; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
private void btnStart_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
btnStart.Enabled = false; |
||||
|
btnStop.Enabled = true; |
||||
|
cbPrintCount.Enabled = false; |
||||
|
cbPrintSpan.Enabled = false; |
||||
|
lblLastCount.Text = cbPrintCount.Text; |
||||
|
tsbPrint.Enabled = false; |
||||
|
btnChoiceMaterial.Enabled = false; |
||||
|
groupBox3.Enabled = false; |
||||
|
printtimer = int.Parse(cbPrintSpan.Text.Trim('s')); |
||||
|
LockPrintMode(2); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void btnStop_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
btnStart.Enabled = true; |
||||
|
btnStop.Enabled = false; |
||||
|
cbPrintCount.Enabled = true; |
||||
|
cbPrintSpan.Enabled = true; |
||||
|
//lblLastCount.Text = cbPrintCount.Text; |
||||
|
tsbPrint.Enabled = true; |
||||
|
btnChoiceMaterial.Enabled = true; |
||||
|
groupBox3.Enabled = true; |
||||
|
LockPrintMode(-1); |
||||
|
} |
||||
|
|
||||
|
int printtimer = 0; |
||||
|
|
||||
|
private void timer2_Tick(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!btnStart.Enabled&&btnStop.Enabled) |
||||
|
{ |
||||
|
int span=int.Parse(cbPrintSpan.Text.Trim('s')); |
||||
|
if (printtimer >= span) |
||||
|
{ |
||||
|
CodeCreatePrint(); |
||||
|
printtimer = 0; |
||||
|
var lastcount = int.Parse(lblLastCount.Text) - 1; |
||||
|
lblLastCount.Text = lastcount + ""; |
||||
|
if (lastcount <= 0) |
||||
|
{ |
||||
|
btnStop_Click(sender, e); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
printtimer++; |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
printtimer = 0; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void comMachine_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
var selectmachine = comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine != null && !string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
var mouldList = _agent.InvokeServiceFunction<List<MachineInfoModels>>(B9BasicService.MachineInfoModelBLL_GetAllList.ToString(), new MachineInfoModels { MID = "INJ_MODEL" }).OrderBy(p => p.MODELCODE).ToList(); |
||||
|
mouldList.Insert(0, new MachineInfoModels { }); |
||||
|
cbMould.DisplayMember = "MODELNAME"; |
||||
|
cbMould.ValueMember = "MODELCODE"; |
||||
|
cbMould.DataSource = mouldList.ToList(); |
||||
|
|
||||
|
if (selectmachine.ISCONTROL == "1") |
||||
|
{ |
||||
|
HideTimerPrint(true); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
HideTimerPrint(false); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void btnStartFileScan_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
//窗体数据校验 |
||||
|
string errorMessae = ErrorCheck(); |
||||
|
if (errorMessae != "") |
||||
|
{ |
||||
|
MessageBox.Show(errorMessae, Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
var selectmachine= comMachine.SelectedItem as MachineInfo; |
||||
|
if (selectmachine != null&&!string.IsNullOrEmpty(selectmachine.PID)) |
||||
|
{ |
||||
|
txtFilePath.Text = selectmachine.EQUIPMENT_DIRECTORY; |
||||
|
var columns = _agent.InvokeServiceFunction<DataResult<List<ProcessParameter>>>("ProcessParameterBLL_GetAllList", new ProcessParameter { MACHINECODDE = selectmachine.MACHINECODDE }).Result; |
||||
|
if (columns != null) |
||||
|
{ |
||||
|
paramcolumns = columns; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
paramcolumns = new List<ProcessParameter>(); |
||||
|
} |
||||
|
lvParamRecords.Items.Clear(); |
||||
|
lvParamRecords.Columns.Clear(); |
||||
|
var c1=lvParamRecords.Columns.Add("扫描时间"); |
||||
|
c1.Width=180; |
||||
|
foreach (var col in paramcolumns) |
||||
|
{ |
||||
|
var c= lvParamRecords.Columns.Add(col.PARADESCRIBE); |
||||
|
} |
||||
|
if (selectmachine.EQUIPMENT_TYPE_CODE == "HaitianInjection") |
||||
|
{ |
||||
|
sync = new FileSynchronizers.HaitianInjectionFileSynchronizer(selectmachine); |
||||
|
} |
||||
|
else if (selectmachine.EQUIPMENT_TYPE_CODE == "EngelInjection") |
||||
|
{ |
||||
|
sync = new FileSynchronizers.EngelInjectionFileSynchronizer(selectmachine); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show("注塑机型号未设定!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
return; |
||||
|
} |
||||
|
sync.NewRecordFound += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_NewRecordFound); |
||||
|
sync.ExceptionCatched += new EventHandler<FileSynchronizers.InjParamEventArgs>(sync_ExceptionCatched); |
||||
|
sync.Start(cbSkipHistory.Checked); |
||||
|
SetConnectState(1); |
||||
|
btnStartFileScan.Enabled = false; |
||||
|
btnStopFileScan.Enabled = true; |
||||
|
LockPrintMode(0); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
MessageBox.Show("请选择注塑机!", Resource1.ConfirmTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 设置连接状态 |
||||
|
/// </summary> |
||||
|
/// <param name="state">0:停止 1:正常 2:断开</param> |
||||
|
void SetConnectState(int state) |
||||
|
{ |
||||
|
switch (state) |
||||
|
{ |
||||
|
case 0: |
||||
|
{ |
||||
|
txtConnectState.Text = "扫描停止"; |
||||
|
picConnectState.Image = WinForm.Resource1.stop; |
||||
|
break; |
||||
|
} |
||||
|
case 1: |
||||
|
{ |
||||
|
txtConnectState.Text = "扫描正常"; |
||||
|
picConnectState.Image = WinForm.Resource1.reload; |
||||
|
break; |
||||
|
} |
||||
|
case 2: |
||||
|
{ |
||||
|
txtConnectState.Text = "连接断开"; |
||||
|
picConnectState.Image = WinForm.Resource1.no; |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
/// <summary> |
||||
|
/// 锁定打印模式 |
||||
|
/// </summary> |
||||
|
/// <param name="mode">-1 解锁; 0 联机; 1 手动; 2 定时;</param> |
||||
|
void LockPrintMode(int mode) |
||||
|
{ |
||||
|
for(int i=0;i<tpPrintMode.Controls.Count;i++) |
||||
|
{ |
||||
|
if(i==mode) |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = true; |
||||
|
} |
||||
|
else if (mode < 0) |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = true; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
tpPrintMode.Controls[i].Enabled = false; |
||||
|
} |
||||
|
} |
||||
|
plPrintSetting.Enabled = mode < 0; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary> |
||||
|
/// 隐藏定时打印模式 |
||||
|
/// </summary> |
||||
|
void HideTimerPrint(bool hide) |
||||
|
{ |
||||
|
if (hide) |
||||
|
{ |
||||
|
if (tpPrintMode.Controls.Contains(tpTimer)) |
||||
|
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide; |
||||
|
tpPrintMode.Controls.Remove(tpTimer); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
if (!tpPrintMode.Controls.Contains(tpTimer)) |
||||
|
//tpPrintMode.Controls[tpTimer.Name].Visible = !hide; |
||||
|
tpPrintMode.Controls.Add(tpTimer); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
void sync_ExceptionCatched(object sender, FileSynchronizers.InjParamEventArgs e) |
||||
|
{ |
||||
|
this.Invoke((Action)(() => { |
||||
|
txtMessage.Text = e.Exception.Message; |
||||
|
SetConnectState(2); |
||||
|
})); |
||||
|
} |
||||
|
|
||||
|
void sync_NewRecordFound(object sender, FileSynchronizers.InjParamEventArgs e) |
||||
|
{ |
||||
|
this.Invoke((Action)(() => |
||||
|
{ |
||||
|
CodeCreatePrint(e.HeaderRow, e.DataRow, e.DataSeparator); |
||||
|
txtCurrentFile.Text = e.FileName; |
||||
|
txtLastScanTime.Text = e.RecordTime.ToString("hh:mm:ss"); |
||||
|
txtMessage.Text = e.DataRow; |
||||
|
var li = lvParamRecords.Items.Insert(0,e.RecordTime.ToString("yyyy-MM-dd hh:mm:ss")); |
||||
|
li.SubItems.AddRange(e.DataRow.Split(e.DataSeparator)); |
||||
|
if (lvParamRecords.Items.Count > 200) |
||||
|
{ |
||||
|
lvParamRecords.Items.RemoveAt(200); |
||||
|
} |
||||
|
SetConnectState(1); |
||||
|
})); |
||||
|
} |
||||
|
|
||||
|
private void btnStopFileScan_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (sync != null) |
||||
|
{ |
||||
|
sync.Stop(); |
||||
|
} |
||||
|
SetConnectState(0); |
||||
|
btnStartFileScan.Enabled = true; |
||||
|
btnStopFileScan.Enabled = false; |
||||
|
LockPrintMode(-1); |
||||
|
} |
||||
|
|
||||
|
private void InjectionCodePrint_FormClosed(object sender, FormClosedEventArgs e) |
||||
|
{ |
||||
|
if (sync != null) |
||||
|
{ |
||||
|
sync.Stop(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void btnLockMachine_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (this.btnLockMachine.Tag.ToString().Equals("0")) |
||||
|
{ |
||||
|
LockMachine(false); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
LockMachine(true); |
||||
|
} |
||||
|
} |
||||
|
#region 设备锁定 |
||||
|
/// <summary> |
||||
|
/// 设备锁定 |
||||
|
/// </summary> |
||||
|
/// <param name="lockFlag"></param> |
||||
|
private void LockMachine(bool lockFlag) |
||||
|
{ |
||||
|
this.comMachine.Enabled = lockFlag; |
||||
|
//this.comProductType.Enabled = lockFlag; |
||||
|
if (lockFlag) |
||||
|
{ |
||||
|
|
||||
|
this.btnLockMachine.Text = "锁定"; |
||||
|
this.btnLockMachine.Tag = "0"; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
ClientContext.MachineInfo = this.comMachine.SelectedItem as MachineInfo; |
||||
|
string locationfile = System.Configuration.ConfigurationManager.AppSettings["loactionfile"]; |
||||
|
System.IO.File.WriteAllText(locationfile, this.comMachine.SelectedValue.ToString()); |
||||
|
this.btnLockMachine.Text = "解锁"; |
||||
|
this.btnLockMachine.Tag = "1"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
#endregion |
||||
|
} |
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" |
||||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.CheckTime.CHECKTIMEModel>" %> |
||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> |
||||
|
条码规则信息列表 |
||||
|
</asp:Content> |
||||
|
|
||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> |
||||
|
<%=Html.QPSeach(100,true) %> |
||||
|
<table id="condiTable"> |
||||
|
<%--<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p=>p.MATERIALCODDE) %> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.MATERIALCODDE)%> |
||||
|
</td> |
||||
|
|
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.barcodeFist)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.barcodeFist)%> |
||||
|
</td> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.Company_code)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Company_code)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<th align="right"> |
||||
|
<%=Html.QV(p => p.Vehicle_type)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.Vehicle_type)%> |
||||
|
</td> |
||||
|
<th> |
||||
|
<%=Html.QV(p => p.configColor)%> |
||||
|
</th> |
||||
|
<td> |
||||
|
<%=Html.QC(p => p.configColor)%> |
||||
|
</td> |
||||
|
</tr>--%> |
||||
|
</table> |
||||
|
<div style="left: 1px; position: relative;"></div> |
||||
|
|
||||
|
<%=Html.QPEnd()%> |
||||
|
<%=Html.QPList() %> |
||||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.CheckTime.CHECKTIMEModel>(Model)%> |
||||
|
<%=Html.QPEnd() %> |
||||
|
<%=Html.Hidden("PID")%> |
||||
|
<%=Html.Hidden("selectKey")%> |
||||
|
<%=Html.Hidden("MPID")%> |
||||
|
<%-- <%=Html.Hidden("Line_code")%> |
||||
|
<%=Html.Hidden("Line_name")%>--%> |
||||
|
<script language="javascript" type="text/javascript"> |
||||
|
//添加 |
||||
|
function Add() { |
||||
|
openAppWindow1('BZD绑定信息添加', 'Edit', '400', '400'); |
||||
|
} |
||||
|
//修改 |
||||
|
function Update() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("提示", "请选择修改记录。"); |
||||
|
return; |
||||
|
} |
||||
|
if (ids.indexOf(":") > 0) { |
||||
|
MSI("提示", "每次只能修改一条记录。"); |
||||
|
return; |
||||
|
} |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
openAppWindow1('BZD绑定信息修改', 'Edit?PID=' + ids, '400', '400'); |
||||
|
} |
||||
|
//删除 |
||||
|
function Delete() { |
||||
|
var ids = getSelectKey(); |
||||
|
if (ids == "") { |
||||
|
MSI("错误", "至少选择一条记录"); |
||||
|
} |
||||
|
else { |
||||
|
document.getElementById("selectKey").value = ids; |
||||
|
MSQ("提示", |
||||
|
"确定要删除选中的记录吗?", |
||||
|
function() { |
||||
|
submitByButton("Delete"); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$(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("CHECKTIME", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
<%=Html.QTButtonUpdate("CHECKTIME", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</asp:Content> |
||||
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,339 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒材料绑定 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class RawMaterialRecordDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public RawMaterialRecord Get(RawMaterialRecord info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public RawMaterialRecord Get(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_RawMaterialRecord] WHERE [MATERIAL_CODE]=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<RawMaterialRecord>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public int GetMaterialCodeCount(string MaterialCode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = $"SELECT R.* FROM T_MD_RawMaterialRecord as R LEFT JOIN T_MD_RawMaterial as M ON R.RawMaterialPID = M.PID WHERE M.PID = '{MaterialCode}'"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", MaterialCode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.GetList<RawMaterialRecord>(sql, parameters.ToArray()); |
||||
|
return info.Count; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(RawMaterialRecord 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 = "UPDATEDATE DESC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<RawMaterialRecord>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public List<RawMaterialRecord> GetListRecord(RawMaterialRecord condition) |
||||
|
{ |
||||
|
string sql = null; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
var list = new List<RawMaterialRecord>(); |
||||
|
try |
||||
|
{ |
||||
|
sql = $"select BucketCode,PartCode, MAX(UPDATEDATE) AS UPDATEDATE from T_MD_RawMaterialRecord where BucketCode = '{condition.BucketCode}' and PartCode = '{condition.PartCode}' group by BucketCode,PartCode order by CREATEDATE desc"; |
||||
|
//分页关键字段及排序 |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
list = session.GetList<RawMaterialRecord>(sql, parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(RawMaterialRecord condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT R.PID,R.ProductCode,R.MaterialCode,R.MaterialName,R.MachineCode,M.BucketCode,M.PartCode,M.BatchCode,M.SerialCode,R.IsCheck,R.CREATEUSER,R.CREATEDATE,R.UPDATEUSER,R.UPDATEDATE "); |
||||
|
sqlBuilder.Append("FROM T_MD_RawMaterialRecord AS R LEFT JOIN T_MD_RawMaterial AS M ON R.RawMaterialPID = M.PID "); |
||||
|
whereBuilder.Append(" AND R.IsCheck<> '1' "); |
||||
|
if (condition.BeginTime != "0001/1/1 00:00:00") |
||||
|
{ |
||||
|
whereBuilder.Append($" AND R.CREATEDATE >= '{condition.BeginTime}'"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
whereBuilder.Append($" AND R.CREATEDATE >= '{DateTime.Now.AddDays(-5)}'"); |
||||
|
} |
||||
|
if (condition.EndTime != "0001/1/1 00:00:00") |
||||
|
{ |
||||
|
whereBuilder.Append($" AND R.CREATEDATE <= '{condition.EndTime}'"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
whereBuilder.Append($" AND R.CREATEDATE <= '{DateTime.Now.AddDays(+1)}'"); |
||||
|
} |
||||
|
|
||||
|
if (string.IsNullOrEmpty(condition.PartCode) == false) |
||||
|
{ |
||||
|
whereBuilder.Append(" AND M.PartCode = @PartCode"); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PartCode", DataType = DbType.String, Value = condition.PartCode }); |
||||
|
} |
||||
|
if (string.IsNullOrEmpty(condition.ProductCode) == false) |
||||
|
{ |
||||
|
whereBuilder.Append(" AND R.ProductCode = @ProductCode"); |
||||
|
parameters.Add(new DataParameter { ParameterName = "ProductCode", DataType = DbType.String, Value = condition.ProductCode }); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//查询条件 |
||||
|
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 bool Exists(RawMaterialRecord info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_RawMaterialRecord"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(RawMaterialRecord info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(RawMaterialRecord info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<RawMaterialRecord>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("UPDATE T_MD_RawMaterialRecord "); |
||||
|
sqlBuilder.Append("SET IsCheck = '1' "); |
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,294 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using QMAPP.FJC.Entity.MD; |
||||
|
using QMFrameWork.Data; |
||||
|
using System.Data; |
||||
|
using QMAPP.Entity; |
||||
|
using QMAPP.MD.Entity.Bucket; |
||||
|
|
||||
|
namespace QMAPP.FJC.DAL.Bucket |
||||
|
{ |
||||
|
/// <summary> |
||||
|
/// 模块名称:注塑料筒信息 |
||||
|
/// 作 者:张松男 |
||||
|
/// 编写日期:2021年07月13日 |
||||
|
/// </summary> |
||||
|
public class BucketInfoDAL |
||||
|
{ |
||||
|
|
||||
|
#region 获取信息 |
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public BucketInfo Get(BucketInfo info) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
info = session.Get<BucketInfo>(info); |
||||
|
} |
||||
|
return info; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取信息 |
||||
|
/// </summary> |
||||
|
/// <param name="">条件</param> |
||||
|
/// <returns>*信息</returns> |
||||
|
public BucketInfo Get(string materialcode) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string sql = "SELECT * FROM [T_MD_BUCKETINFO] WHERE [MATERIAL_CODE]=@materialcode"; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
parameters.Add(new DataParameter("materialcode", materialcode)); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//获取信息 |
||||
|
var info = session.Get<BucketInfo>(sql, parameters.ToArray()); |
||||
|
return info; |
||||
|
} |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion |
||||
|
|
||||
|
#region 获取列表 |
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public DataPage GetList(BucketInfo 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 = "UPDATEDATE DESC"; |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
page = session.GetDataPage<BucketInfo>(sql, parameters.ToArray(), page); |
||||
|
} |
||||
|
return page; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary> |
||||
|
/// 获取列表 |
||||
|
/// </summary> |
||||
|
/// <param name="condition">条件</param> |
||||
|
/// <param name="page">数据页</param> |
||||
|
/// <returns>数据页</returns> |
||||
|
public List<BucketInfo> GetALL() |
||||
|
{ |
||||
|
string sql = null; |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
try |
||||
|
{ |
||||
|
sql = "SELECT * FROM T_MD_BUCKETINFO WHERE IsCheck<> '1'"; |
||||
|
//分页关键字段及排序 |
||||
|
var LIST = new List<BucketInfo>(); |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
LIST = session.GetList<BucketInfo>(sql, parameters.ToArray()).ToList(); |
||||
|
} |
||||
|
return LIST; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 获取查询语句 |
||||
|
/// <summary> |
||||
|
/// 获取查询语句 |
||||
|
/// </summary> |
||||
|
/// <param name="user">查询条件</param> |
||||
|
/// <param name="parameters">参数</param> |
||||
|
/// <returns>查询语句</returns> |
||||
|
private string GetQuerySql(BucketInfo condition, ref List<DataParameter> parameters) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
try |
||||
|
{ |
||||
|
|
||||
|
//构成查询语句 |
||||
|
sqlBuilder.Append("SELECT PID,BucketCode,BucketName,MaterialCode,IsCheck,CREATEUSER,CREATEDATE,UPDATEUSER,UPDATEDATE "); |
||||
|
sqlBuilder.Append("FROM T_MD_BUCKETINFO "); |
||||
|
whereBuilder.Append(" AND IsCheck<> '1' "); |
||||
|
|
||||
|
if (string.IsNullOrEmpty(condition.BucketName) == false) |
||||
|
{ |
||||
|
whereBuilder.Append(" AND BucketName = @BucketName"); |
||||
|
parameters.Add(new DataParameter { ParameterName = "BucketName", DataType = DbType.String, Value = condition.BucketName }); |
||||
|
} |
||||
|
//查询条件 |
||||
|
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 bool Exists(BucketInfo info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
StringBuilder whereBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
sqlBuilder.Append("SELECT COUNT(0) FROM T_MD_BUCKETINFO"); |
||||
|
if (info.PID == null) |
||||
|
{ |
||||
|
info.PID = ""; |
||||
|
} |
||||
|
whereBuilder.Append(" AND PID <> @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info.PID }); |
||||
|
|
||||
|
//添加进行无重复字段判断代码 |
||||
|
|
||||
|
if (whereBuilder.Length > 0) |
||||
|
{ |
||||
|
sqlBuilder.Append(" WHERE " + whereBuilder.ToString().Substring(4)); |
||||
|
} |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
count = Convert.ToInt32(session.ExecuteSqlScalar(sqlBuilder.ToString(), parameters.ToArray())); |
||||
|
} |
||||
|
return count > 0; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 插入信息 |
||||
|
/// <summary> |
||||
|
/// 插入信息(单表) |
||||
|
/// </summary> |
||||
|
/// <param name="">信息</param> |
||||
|
/// <returns>插入行数</returns> |
||||
|
public int Insert(BucketInfo info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//插入基本信息 |
||||
|
count = session.Insert<BucketInfo>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 更新信息 |
||||
|
/// <summary> |
||||
|
/// 更新信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>更新行数</returns> |
||||
|
public int Update(BucketInfo info) |
||||
|
{ |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//更新基本信息 |
||||
|
count = session.Update<BucketInfo>(info); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
#region 逻辑删除 |
||||
|
/// <summary> |
||||
|
/// 逻辑删除信息 |
||||
|
/// </summary> |
||||
|
/// <param name=""></param> |
||||
|
/// <returns>删除个数</returns> |
||||
|
public int Delete(string info) |
||||
|
{ |
||||
|
StringBuilder sqlBuilder = new StringBuilder(); |
||||
|
List<DataParameter> parameters = new List<DataParameter>(); |
||||
|
int count = 0; |
||||
|
try |
||||
|
{ |
||||
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
||||
|
{ |
||||
|
//删除基本信息 |
||||
|
sqlBuilder.Append("UPDATE T_MD_BUCKETINFO "); |
||||
|
sqlBuilder.Append("SET IsCheck = '1' "); |
||||
|
sqlBuilder.Append("WHERE PID = @PID "); |
||||
|
parameters.Add(new DataParameter { ParameterName = "PID", DataType = DbType.String, Value = info }); |
||||
|
count = session.ExecuteSql(sqlBuilder.ToString(), parameters.ToArray()); |
||||
|
} |
||||
|
return count; |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw ex; |
||||
|
} |
||||
|
} |
||||
|
#endregion |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue