// //包装批号 // private void cmb_BatchNo_DropDownClosed(object sender, EventArgs e) { if (cmb_BatchNo.Text != "") { Maticsoft.Model.PackBatch _PackBatch = _M_PackBatchNo.GetModel(cmb_BatchNo.Text.Trim()); cmb_BatchNo.IsEnabled = false; Maticsoft.BLL.SerialNumber _M_SerialNumber = new SerialNumber(); // Info_YetPack_Count.Text = _M_SerialNumber.Get_PackCount_Batch("OrderID='" + txb_Orderid.Text.Trim() + "' AND BatchNO='" + cmb_BatchNo.Text.Trim() + "' AND State='Yet_Pack' ").ToString(); Info_Batch_Count.Text = _PackBatch.Count.ToString(); Info_YetPrintCount.Text = _M_PrintRecord.Get_Count("BatchNo='" + cmb_BatchNo.Text.Trim() + "'").ToString(); // _WTT_My_Print = new My_Print(txb_Orderid.Text.Trim(), cmb_BatchNo.Text.Trim()); if (_WTT_OrderInfo.InspectMethod == Maticsoft.Model.E_InspectMethod.TFK十二芯检测x2) { _WTT_My_Print.IsBtPrint = true; } } else { My_MessageBox.My_MessageBox_Message("批号不能为空!"); } }
/// <summary> /// 得到一个对象实体 /// </summary> public Maticsoft.Model.PackBatch DataRowToModel(DataRow row) { Maticsoft.Model.PackBatch model = new Maticsoft.Model.PackBatch(); if (row != null) { if (row["BatchNo"] != null) { model.BatchNo = row["BatchNo"].ToString(); } if (row["Count"] != null && row["Count"].ToString() != "") { model.Count = int.Parse(row["Count"].ToString()); } if (row["SackQty"] != null) { model.SackQty = row["SackQty"].ToString(); } if (row["BoxQty"] != null) { model.BoxQty = row["BoxQty"].ToString(); } if (row["OrderID"] != null) { model.OrderID = row["OrderID"].ToString(); } if (row["State"] != null) { model.State = row["State"].ToString(); } } return(model); }
/// <summary> /// 导出数据 重载 /// </summary> /// <param name="e">委托类型的参数</param> /// <param name="packBatch">包装批号</param> /// <param name="reportType">报告类型 3D OR Exfo</param> /// <param name="ModelPatch">模板路径</param> /// <param name="SavePatch">保存路径</param> public void StatExport(ImportEventArgs e, Maticsoft.Model.PackBatch packBatch, Maticsoft.Model.E_ReportType reportType , string ModelPatch, string SavePatch) { if (reportType == Model.E_ReportType.Exfo) //Exfo数据导出 { } else if (reportType == Model.E_ReportType.PhysicalProperty) //3D数据导出 { } }
// //包装批号 // private void cmb_BatchNo_DropDownClosed(object sender, System.EventArgs e) { if (cmb_BatchNo.Text != "") { _PackBatch = _M_PackBatch.GetModel(cmb_BatchNo.Text.Trim()); cmb_BatchNo.IsEnabled = false; Info_Batch_Count.Text = _PackBatch.Count.ToString(); Info_YetPack_Count.Text = _M_SerialNumber.Get_PackCount_Batch("BatchNo ='" + cmb_BatchNo.Text.Trim() + "' AND (Type = 'ClientSN') AND State ='Yet_Pack'").ToString(); // _WTT_Inspect.PackBatch = _PackBatch; _WTT_Inspect.IsUpdate = false; _WTT_Inspect.IsPrint = false; if ( _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_二十四芯 || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_四十八芯 || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_九十六芯 ) { txb_ClientSN.Text = _M_SerialNumber.Get_MinSN(_WorkOrder.OrderID, Maticsoft.Model.E_SerialNumber_Type.ClientSN); //待包装线号 txb_ClientNum.Text = _WTT_Inspect.Get_Client_NotPack_PigtailNum(txb_ClientSN.Text.Trim()); } //获取8芯配组ClientSN else if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_八芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_二十四芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_四十八芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_九十六芯_SAMHALL) { txb_ClientSN.Text = _M_SerialNumber.Get_MinSN(txb_Orderid.Text.Trim(), Maticsoft.Model.E_SerialNumber_Type.ClientSN, ""); //待包装线号 txb_ClientNum.Text = _WTT_Inspect.Get_Client_NotPack_PigtailNum(txb_ClientSN.Text.Trim()); } //验证此批号是否包装完成 if (Info_Batch_Count.Text.Trim() == Info_YetPack_Count.Text.Trim()) { txb_Pigtailsn.IsEnabled = false; My_MessageBox.My_MessageBox_Message("批号:" + _PackBatch.BatchNo + " 数量:" + _PackBatch.Count + "已包装:" + Info_YetPack_Count + "\r\n包装完成!"); } else { txb_Pigtailsn.IsEnabled = true; } cmb_LabName.Text = _WTT_Inspect.My_Print.LabName; } }
//批号下拉菜单 private void cmb_BatchNo_DropDownClosed(object sender, EventArgs e) { try { txb_BoxSN.IsEnabled = true; txb_BoxSN.Text = ""; //获取批号信息 PackBatch _M_PackBatch = new PackBatch(); Maticsoft.Model.PackBatch _PackBatch = new Maticsoft.Model.PackBatch(); _PackBatch = _M_PackBatch.GetModel(cmb_BatchNo.Text.Trim()); txb_BatchCount.Text = _PackBatch.Count.ToString(); //获取装箱信息 EncasementSet _M_EncasementSet = new EncasementSet(); Maticsoft.Model.EncasementSet _EncasementSet = new Maticsoft.Model.EncasementSet(); _EncasementSet = _M_EncasementSet.GetModel(cmb_BatchNo.Text.Trim()); if (_EncasementSet != null) { Info_Device.Text = _EncasementSet.Device; Info_DeviceQty.Text = _EncasementSet.DeviceQty; Info_SackQty.Text = _EncasementSet.SackQty; //****************************************************** 2015-6-25 增加 对标签检测进行设置 if (_EncasementSet.DeviceQty == "2") { labCheck.vm.IsEnSN2 = true; } labCheck.vm.OrderID = _PackBatch.OrderID; } //已包装数量 Maticsoft.BLL.SerialNumber _M_SerialNumber = new Maticsoft.BLL.SerialNumber(); Info_YetPack_Count.Text = _M_SerialNumber.Get_PackCount_Batch(" (BatchNO = '" + cmb_BatchNo.Text.Trim() + "') AND (State = '" + Maticsoft.Model.E_Barcode_State.Yet_Pack + "')").ToString(); //已装箱数量 Maticsoft.BLL.BoxInfo _M_BoxInfo = new Maticsoft.BLL.BoxInfo(); Info_YetEncasement_Count.Text = _M_BoxInfo.GetYetEncasementCount("tb_BoxInfo.BatchNo = '" + cmb_BatchNo.Text.Trim() + "'").ToString(); //批号装箱完成 if (int.Parse(Info_YetEncasement_Count.Text.Trim()) >= int.Parse(txb_BatchCount.Text.Trim())) { My_MessageBox.My_MessageBox_Message("批号:" + cmb_BatchNo.Text.Trim() + "数量:" + txb_BatchCount.Text.Trim() + "\r\n装箱完毕!"); txb_Device.IsEnabled = false; txb_SerialNumber.IsEnabled = false; } } catch { } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Maticsoft.Model.PackBatch model) { StringBuilder strSql = new StringBuilder(); strSql.Append("update tb_PackBatch set "); strSql.Append("Count=@Count,"); strSql.Append("SackQty=@SackQty,"); strSql.Append("BoxQty=@BoxQty,"); strSql.Append("OrderID=@OrderID,"); strSql.Append("State=@State,"); strSql.Append(" where BatchNo=@BatchNo "); SqlParameter[] parameters = { new SqlParameter("@Count", SqlDbType.Int, 4), new SqlParameter("@SackQty", SqlDbType.VarChar, 15), new SqlParameter("@BoxQty", SqlDbType.VarChar, 15), new SqlParameter("@OrderID", SqlDbType.VarChar, 15), new SqlParameter("@State", SqlDbType.VarChar, 15), new SqlParameter("@ID_Key", SqlDbType.Decimal, 9), new SqlParameter("@BatchNo", SqlDbType.VarChar, 15) }; parameters[0].Value = model.Count; parameters[1].Value = model.SackQty; parameters[2].Value = model.BoxQty; parameters[3].Value = model.OrderID; parameters[4].Value = model.State; parameters[6].Value = model.BatchNo; int rows = dbs.ExecuteSql(strSql.ToString(), parameters); if (rows > 0) { return(true); } else { return(false); } }
//针对跳线设计 public My_Print(Maticsoft.Model.PackBatch _packBatch) { try { //1.获取工单中标签的设置信息 2.开启BT打印程序后台线程 OrderLabSet _M_LabSetInfo = new OrderLabSet(); _WTT_LabSetInfo = _M_LabSetInfo.GetLabInfo("(tb_OrderLabSet.OrderID = '" + _packBatch.OrderID + "' )"); if (_WTT_LabSetInfo.Tables[0].Rows.Count > 0) { LabName = _WTT_LabSetInfo.Tables[0].Rows[0]["LabName"].ToString(); _PrintRecord.BatchNo = _packBatch.BatchNo; _PrintRecord.OrderID = _packBatch.OrderID; _PrintRecord.LabellMode = LabName; btEngine.Start(); //开启后台线程 IsPrint = true; //启用标签打印 //检查标签是否核对 LabVerify labv = new LabVerify(); Maticsoft.Model.LabVerify _temLabv = labv.GetModel(" Orm_ID = '" + _packBatch.OrderID + "'"); if (_temLabv != null && _temLabv.IsVerify != "0") { } else { IsPrint = false; My_MessageBox.My_MessageBox_Erry("此工单标签未经过核对!!!\r\n请通知助理或工程师进行标签核对后重试!"); } } else { IsPrint = false; My_MessageBox.My_MessageBox_Message("未找到此批号的任何标签,将不进行标签打印!!!\r\n请确认是否需要进行标签打印"); } } catch { My_MessageBox.My_MessageBox_Message("打印服务未能启动,将导致无法打印!/r/n导致此错误的原因可能是您的计算机未安装BT打印软件或其它必要的服务程序!如有疑问请联系系统管理员"); } }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(Maticsoft.Model.PackBatch model) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into tb_PackBatch("); strSql.Append("BatchNo,Count,SackQty,BoxQty,OrderID,State)"); strSql.Append(" values ("); strSql.Append("@BatchNo,@Count,@SackQty,@BoxQty,@OrderID,@State)"); SqlParameter[] parameters = { new SqlParameter("@BatchNo", SqlDbType.VarChar, 15), new SqlParameter("@Count", SqlDbType.Int, 4), new SqlParameter("@SackQty", SqlDbType.VarChar, 15), new SqlParameter("@BoxQty", SqlDbType.VarChar, 15), new SqlParameter("@OrderID", SqlDbType.VarChar, 15), new SqlParameter("@State", SqlDbType.VarChar, 15), }; parameters[0].Value = model.BatchNo; parameters[1].Value = model.Count; parameters[2].Value = model.SackQty; parameters[3].Value = model.BoxQty; parameters[4].Value = model.OrderID; parameters[5].Value = model.State; ; int rows = dbs.ExecuteSql(strSql.ToString(), parameters); if (rows > 0) { return(true); } else { return(false); } }
/// <summary> /// 得到一个对象实体 /// </summary> public Maticsoft.Model.PackBatch GetModel(string BatchNo) { StringBuilder strSql = new StringBuilder(); strSql.Append("select top 1 BatchNo,Count,SackQty,BoxQty,OrderID,State from tb_PackBatch "); strSql.Append(" where BatchNo=@BatchNo "); SqlParameter[] parameters = { new SqlParameter("@BatchNo", SqlDbType.VarChar, 15) }; parameters[0].Value = BatchNo; Maticsoft.Model.PackBatch model = new Maticsoft.Model.PackBatch(); DataSet ds = dbs.Query(strSql.ToString(), parameters); if (ds.Tables[0].Rows.Count > 0) { return(DataRowToModel(ds.Tables[0].Rows[0])); } else { return(null); } }
/// <summary> /// 导出方法设置 /// </summary> /// <param name="_M_PackExfo"></param> /// <param name="_Report_Exfo"></param> /// <param name="_report_exfo"></param> /// <param name="_M_WorkOrder"></param> /// <param name="_WorkOrder"></param> private void ExportMethod_Set(Pack_Exfo _M_PackExfo, Report _Report_Exfo, Report_Exfo _report_exfo, Maticsoft.BLL.WorkOrder _M_WorkOrder, Maticsoft.Model.WorkOrder _WorkOrder) { //双并导出 if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.双并检测) { //获取每一个SN的已包装数据 ArrayList temDatalist = new ArrayList(); ArrayList temSnList = new ArrayList(); Maticsoft.BLL.SerialNumber _M_seriarlnumber = new SerialNumber(); temSnList = _M_seriarlnumber.Get_SN_List(MCP_CS._M_PackBatch.GetModel(cmb_Report_BatchNo_3D.Text.Trim()), Maticsoft.Model.E_SerialNumber_Type.ClientSN, Maticsoft.Model.E_Barcode_State.Yet_Pack); foreach (string _sn in temSnList) { temDatalist.Add(_M_PackExfo.Get_PackData(_sn)); } //导出Exfo数据 Report.ImportEventArgs ep = new Report.ImportEventArgs(temDatalist, _TemPlate, temSavePatch + "\\" + temBatchNo); _Report_Exfo.Export_TextReport += _report_exfo.Export_Twin; ep.OrderInfo = _WorkOrder; ep.UpProgressBar += UpProgressBar; _Report_Exfo.StatExport(ep); } else if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.四芯检测 || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.一码一签_跳线) { //获取每一个SN的已包装数据 ArrayList temDatalist = new ArrayList(); ArrayList temSnList = new ArrayList(); Maticsoft.BLL.SerialNumber _M_seriarlnumber = new SerialNumber(); Maticsoft.Model.PackBatch temPack = MCP_CS._M_PackBatch.GetModel(cmb_Report_BatchNo_3D.Text.Trim()); temSnList = _M_seriarlnumber.Get_SN_List(temPack, Maticsoft.Model.E_SerialNumber_Type.ClientSN, Maticsoft.Model.E_Barcode_State.Yet_Pack); foreach (string _sn in temSnList) { temDatalist.Add(_M_PackExfo.Get_PackData(_sn)); } //导出Exfo数据 Report.ImportEventArgs ep = new Report.ImportEventArgs(temDatalist, _TemPlate, temSavePatch + "\\" + temBatchNo); _Report_Exfo.Export_TextReport += _report_exfo.Export_fourCore; ep.OrderInfo = _WorkOrder; ep.UpProgressBar += UpProgressBar; _Report_Exfo.StatExport(ep); } else if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.MPO检测) { Maticsoft.BLL.PackBatch _M_BatchNo = new PackBatch(); //导出Exfo数据 Maticsoft.Model.WorkOrder _temorder = _M_WorkOrder.GetModel(txb_Report_OrderID_3D.Text); Report.ImportEventArgs ep = new Report.ImportEventArgs(_M_PackExfo.Get_PackData(_temorder.OrderID, _temorder.InspectMethod), _TemPlate, temSavePatch + "\\" + temBatchNo); ep.BatchNo = _M_BatchNo.GetModel(cmb_Report_BatchNo_3D.Text.Trim()); _Report_Exfo.Export_TextReport += _report_exfo.Export_Exfo_MPO; ep.OrderInfo = _WorkOrder; ep.UpProgressBar += UpProgressBar; _Report_Exfo.StatExport(ep); } else if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.八芯检测) { Maticsoft.BLL.PackBatch _M_BatchNo = new PackBatch(); //导出Exfo数据 Maticsoft.Model.WorkOrder _temorder = _M_WorkOrder.GetModel(txb_Report_OrderID_3D.Text); Report.ImportEventArgs ep = new Report.ImportEventArgs(_M_PackExfo.Get_PackData(_temorder.OrderID, _temorder.InspectMethod), _TemPlate, temSavePatch + "\\" + temBatchNo); ep.BatchNo = _M_BatchNo.GetModel(cmb_Report_BatchNo_3D.Text.Trim()); _Report_Exfo.Export_TextReport += _report_exfo.Export_EightCore; ep.OrderInfo = _WorkOrder; ep.UpProgressBar += UpProgressBar; _Report_Exfo.StatExport(ep); } else { //导出Exfo数据 Maticsoft.Model.WorkOrder _temorder = _M_WorkOrder.GetModel(txb_Report_OrderID_3D.Text); Report.ImportEventArgs ep = new Report.ImportEventArgs(_M_PackExfo.Get_PackData(cmb_Report_BatchNo_3D.Text.Trim(), _temorder.InspectMethod), _TemPlate, temSavePatch + "\\" + temBatchNo); _Report_Exfo.Export_TextReport += _report_exfo.Export_Exfo_One; ep.OrderInfo = _WorkOrder; ep.UpProgressBar += UpProgressBar; _Report_Exfo.StatExport(ep); } }
//针对跳线设计 public My_Print(Maticsoft.Model.PackBatch _packBatch) { Maticsoft.DAL.My_Print dal = new DAL.My_Print(_packBatch); this.dal = dal; }
// //保存包装批号 // private void btn_BatchNo_Save_Click(object sender, System.Windows.RoutedEventArgs e) { if (txb_Batch_OrderID.Text != "" && txb_BatchNo.Text != "" && txb_BatchNo_Count.Text != "") { Maticsoft.Model.PackBatch _TemBatch = new Maticsoft.Model.PackBatch(); _TemBatch.BatchNo = txb_BatchNo.Text.Trim(); _TemBatch.Count = int.Parse(txb_BatchNo_Count.Text.Trim()); _TemBatch.OrderID = txb_Batch_OrderID.Text.Trim(); _TemBatch.State = "待包装"; int temcount = 0; int.TryParse(txb_BatchNo_Count.Text.Trim(), out temcount); if (_GLL_BatchNo_TemWork.InspectMethod == Maticsoft.Model.E_InspectMethod.两码两签) { ZhuifengLib.JudgeOddOrEven joe = new ZhuifengLib.JudgeOddOrEven(); //判断是否为奇数 if (!joe.IsOdd(txb_BatchNo_Count.Text.Trim())) { if (_M_PackBatch.Add(_TemBatch)) { My_MessageBox.My_MessageBox_Message("添加成功!"); } else { My_MessageBox.My_MessageBox_Message("添加失败!"); } } else { My_MessageBox.My_MessageBox_Message("添加失败!\r\n 数量不能为奇数"); } } else { //添加 if (_M_PackBatch.Add(_TemBatch)) { My_MessageBox.My_MessageBox_Message("添加成功!"); } else { My_MessageBox.My_MessageBox_Message("添加失败!"); } } if (V_BatchCount(_TemBatch.OrderID, temcount)) //验证数量是否小于工单总量 { } else { My_MessageBox.My_MessageBox_Message("已添加的批号与现有数量相加大于工单总量,\r\n"); } DataSet temDs = _M_PackBatch.GetList("OrderID = '" + txb_Batch_OrderID.Text.Trim() + "'"); dgv_PackBatch_Info.ItemsSource = temDs.Tables[0].DefaultView; if (_GLL_BatchNo_TemWork.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_八芯_SAMHALL) { if (txb_ClientSN_Stat_SN.Text != "" && txb_ClientSN_Count.Text != "") { SaveClient(long.Parse(txb_ClientSN_Stat_SN.Text.Trim()), int.Parse(txb_ClientSN_Count.Text.Trim())); } else { My_MessageBox.My_MessageBox_Message("起始客户编码 或数量不能为空!"); } } //清空 txb_BatchNo_Count.Text = ""; txb_BatchNo.Text = ""; } else { My_MessageBox.My_MessageBox_Message("信息不完整,请补全后重试"); } }
// //包装批号 // private void cmb_BatchNo_DropDownClosed(object sender, System.EventArgs e) { lab_NotPrintCount.Visibility = System.Windows.Visibility.Visible; if (cmb_BatchNo.Text != "") { //结束BT进程 ZhuifengLib.ProcessControl.Process_Control _Process = new ZhuifengLib.ProcessControl.Process_Control(); _Process.kill_Process("bartend"); _PackBatch = _M_PackBatch.GetModel(cmb_BatchNo.Text.Trim()); cmb_BatchNo.IsEnabled = false; Info_Batch_Count.Text = _PackBatch.Count.ToString(); Info_YetPack_Count.Text = _M_SerialNumber.Get_PackCount_Batch("BatchNo ='" + cmb_BatchNo.Text.Trim() + "' AND (Type = 'ClientSN') AND State ='Yet_Pack'").ToString(); // _WTT_Inspect.PackBatch = _PackBatch; _WTT_Inspect.IsUpdate = true; if ( _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_二十四芯 || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_四十八芯 || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_九十六芯 ) { lab_NotPrintCount.Visibility = System.Windows.Visibility.Hidden; txb_ClientSN.Text = _M_SerialNumber.Get_MinSN(_WorkOrder.OrderID, Maticsoft.Model.E_SerialNumber_Type.ClientSN); //待包装线号 txb_ClientNum.Text = _WTT_Inspect.Get_Client_NotPack_PigtailNum(txb_ClientSN.Text.Trim()); } //获取8芯配组ClientSN else if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_八芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_二十四芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_四十八芯_SAMHALL || _WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.配组_九十六芯_SAMHALL) { lab_NotPrintCount.Visibility = System.Windows.Visibility.Hidden; txb_ClientSN.Text = _M_SerialNumber.Get_MinSN(txb_Orderid.Text.Trim(), Maticsoft.Model.E_SerialNumber_Type.ClientSN, ""); //待包装线号 txb_ClientNum.Text = _WTT_Inspect.Get_Client_NotPack_PigtailNum(txb_ClientSN.Text.Trim()); } //验证此批号是否包装完成 int tem1 = int.Parse(Info_Batch_Count.Text.Trim()); //批量 int tem2 = int.Parse(Info_YetPack_Count.Text.Trim()); //已包装数量 if (tem2 >= tem1) { txb_Pigtailsn.IsEnabled = false; My_MessageBox.My_MessageBox_Message("批号:" + _PackBatch.BatchNo + " 数量:" + _PackBatch.Count + "已包装:" + Info_YetPack_Count.Text + "\r\n包装完成!"); } else { txb_Pigtailsn.IsEnabled = true; } try { //获取并显示标签模板的名字 txb_LabName.Text = _WTT_Inspect.My_Print.LabName; if (_WTT_Inspect.My_Print.LabName == "海信_RD-A-ELA32983.btw" || _WTT_Inspect.My_Print.LabName == "特恩驰跳线.btw" || _WTT_Inspect.My_Print.LabName == "特恩驰双并.btw" || _WTT_Inspect.My_Print.LabName == "TKF盒子标签12芯.btw" || _WTT_Inspect.My_Print.LabName == "MM海信_RD-A-ELA32983.btw") { _WTT_Inspect.My_Print.IsBtPrint = true; } } catch (Exception ex) { My_MessageBox.My_MessageBox_Message(ex.Message); } } }