日期:2014-05-17 浏览次数:20752 次
//启动自动上传程序
if (File.Exists(PubInfo.HREXE))
{
if (!StartAuto("AutoPosMySql"))
System.Diagnostics.Process.Start(PubInfo.HREXE, "");
}
//手工上传
private void 销售上传ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (DialogResult.No == MessageBox.Show("是否上传?", "提示",
MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1))
{
return;
}
PubMethod.PosToMySql();
}
while (true)
{
//读取文件 conn,File name,isupload,Hrmisppc.ini
string IpServer = "", FileName = "";
bool IsUploads;
hrmisppc HR = new hrmisppc();
byte[] Hrbyte = new byte[Marshal.SizeOf(typeof(hrmisppc))];
if (Hours >= 14 && Hours < 16)
{
using (FileStream FsHr = new FileStream(HRMISPPC, FileMode.Open, FileAccess.ReadWrite))
{
while (FsHr.Read(Hrbyte, 0, Hrbyte.Length) == Hrbyte.Length)
&nb