天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
858 B

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using coilPosition;
namespace PrintService
{
public partial class PrintService : ServiceBase
{
DatCon _datCon = new DatCon();
private string paraStr = "";
public PrintService()
{
InitializeComponent();
paraStr = "1";
}
public PrintService(string para)
{
InitializeComponent();
paraStr = para;
}
protected override void OnStart(string[] args)
{
_datCon.writeLog("测试开始" + "---" + paraStr + "\r\n");
}
protected override void OnStop()
{
}
}
}