private void F_main_Load(object sender, EventArgs e) { common_file.common_sjtb.SetDate();//同步时间 Com.Common.Fmain_Instance = this; this.toolStripStatusLabel1.Text = "提示:当前没有下载预订数据"; this.notifyIcon1.Visible = false; string msg = string.Empty; if (Com.CommFunc.TestRemoteServerStatus(ref msg) == 1) { common_file.common_app.AddMsg(listBox1, string.Format("连接服务器成功{0}", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"))); { this.txt_messageofWSconnectStatus.Text = common_file.common_app.qymc; ////自动上传下载会员信息的计时器(一天) //timer_UpLoad_Hhygl.Enabled = false; //timer_UpLoad_Hhygl.Interval = 35 * 60 * 1000; //timer_UpLoad_Hhygl.Enabled = true; //下载预定信息 int timeInterval = int.Parse(common_file.Common.ReadXML("add", "timeInterval")); timer_Ydxx.Interval = timeInterval * 60 * 1000; timer_Ydxx.Enabled = true; } } else { Xxtsz.X_Config xconfig = new jdgl_res_head_app.Xxtsz.X_Config(); xconfig.StartPosition = FormStartPosition.CenterParent; xconfig.ShowDialog(); common_file.Common.WriteLog("远程Webservices连接不上,请检查配置信息", "程序初始时"); } }
//配置文件 private void x_configgl_Click(object sender, EventArgs e) { if (lg.ShowDialog() == DialogResult.OK) { Xxtsz.X_Config xconfig = new jdgl_res_head_app.Xxtsz.X_Config(); xconfig.StartPosition = FormStartPosition.CenterParent; xconfig.ShowDialog(); } }
private void F_main_Load(object sender, EventArgs e) { common_file.common_sjtb.SetDate();//同步时间 common_file.Common.Fmain_Instance = this; this.toolStripStatusLabel1.Text = "提示:当前没有上传数据"; this.notifyIcon1.Visible = false; if (TestRemoteServerStatus() == 1) { common_file.common_app.AddMsg(listBox1, string.Format("连接服务器成功{0}", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"))); if (StateSc) { this.txt_messageofWSconnectStatus.Text = common_file.common_app.qymc; //自动上传下载会员信息的计时器(一天) timer_UpLoad_Hhygl.Enabled = false; timer_UpLoad_Hhygl.Interval = 35 * 60 * 1000; timer_UpLoad_Hhygl.Enabled = true; //自动上传Qskyd_fjrb和other维修房表,分析房态表(5分钟) timer_AuTo_UpLoad_Qskydfjrb.Enabled = false; timer_AuTo_UpLoad_Qskydfjrb.Interval = 6 * 60 * 1000; timer_AuTo_UpLoad_Qskydfjrb.Enabled = true; //上传消费明细 timer_SsyxfmxUpload.Enabled = false; timer_SsyxfmxUpload.Interval = 20 * 60 * 1000; timer_SsyxfmxUpload.Enabled = true; //综合日报表和分录表,历史客人, //协议单位自动上传下载程序 timer_Bb.Enabled = false; timer_Bb.Interval = 40 * 60 * 1000; timer_Bb.Enabled = true; //下载预定信息 timer_Ydxx.Enabled = false; timer_Ydxx.Interval = 4 * 60 * 1000; timer_Ydxx.Enabled = true; } else { toolStripStatusLabel1.Text = "传输关闭"; } } else { Xxtsz.X_Config xconfig = new jdgl_res_head_app.Xxtsz.X_Config(); xconfig.StartPosition = FormStartPosition.CenterParent; xconfig.ShowDialog(); common_file.Common.WriteLog("远程Webservices连接不上,请检查配置信息", "程序初始时"); } }