init: 导入项目到 meswork Gitea
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
//using SystemFramework;
|
||||
using MesServerWork;
|
||||
using System.Data;
|
||||
|
||||
namespace MesServerFunctions
|
||||
{
|
||||
partial class Functions_BASE_07
|
||||
{
|
||||
/// <summary>
|
||||
///第一步,判断条码类型,根据条码类型,执行对应的存储过程
|
||||
///第二步,条码类型(将扫描的条码保存到对应的表中)
|
||||
///第三步,扫描完成之后给出允许工作信号
|
||||
/// 处理页面扫描条码
|
||||
/// </summary>
|
||||
/// <param name="OpName"></param>
|
||||
/// <param name="barcode"></param>
|
||||
public void AllowRepair(string OpName, string barcode, string RepairMethod)
|
||||
{
|
||||
try
|
||||
{
|
||||
SelectEngineIDByBarcode(OpName, barcode);
|
||||
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
////ApplicationLog.WriteLog(err, "Function07:AllowRepair");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 写入返修信息
|
||||
/// </summary>
|
||||
/// <param name="OpName"></param>
|
||||
private void SelectEngineIDByBarcode(string OpName, string barcode)
|
||||
{
|
||||
string EngineType = "";
|
||||
int EngineTypeID = 0;
|
||||
int linepath = 0;
|
||||
string AllRepairstate = "";
|
||||
DataTable dt;
|
||||
|
||||
//获取订单号,发动机型号,发动机型号代码(在线首工位将选择的订单,机型等信息保存到监控表中)
|
||||
GetEngineID_RepairSelect(barcode, out dt);
|
||||
EngineTypeID = Convert.ToInt32(dt.Rows[0]["机型代码"].ToString());
|
||||
EngineType = dt.Rows[0]["发动机型号"].ToString();
|
||||
linepath = Convert.ToInt32(dt.Rows[0]["上线路径"].ToString());
|
||||
AllRepairstate = dt.Rows[0]["返修状态字符串"].ToString();
|
||||
|
||||
|
||||
MIS_BASE.Write_EngineTypeID_MES(OpName, EngineTypeID);
|
||||
MIS_BASE.Write_EngineType_MES(OpName, EngineType);
|
||||
MIS_BASE.Write_EngineID_MES(OpName, barcode);
|
||||
MIS_BASE.Write_RepairStatusMES(OpName, linepath);
|
||||
MIS_BASE.Write_RepairPathString(OpName, AllRepairstate);
|
||||
//获取订单号,发动机型号,发动机型号代码(在线首工位将选择的订单,机型等信息保存到监控表中)
|
||||
bizFacade.BaseDataSystemMES.OpName_MIS_CreateMoby_Select(OpName, out string orderForm, out int engineTypeID, out string engineType, out string engineID, out string palletCode, out int isRepair, out string repairCode);
|
||||
|
||||
MIS_BASE.Write_OrderForm_MES(OpName, orderForm);
|
||||
|
||||
|
||||
//SendInfomation("ShowMobyMES", barcode + "&" + EngineType, OpName);
|
||||
|
||||
//MES传递机型
|
||||
MIS_BASE.Write_EngineTypeGetOver_MES(OpName, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user