protected void BeginBalanceProg() { //检测是否存在没有会员编号的店铺 int exists = ReleaseBLL.IsNumberExists(); if (exists > 0) { Response.Write(Transforms.ReturnAlert(GetTran("001210", "对不起,当前系统中还有店铺没有会员编号,请先在门店管理页面中为这些店添加正确的会员编号!"))); Application["jinzhi"] = "F"; Response.End(); } bool re = ReleaseBLL.CheckSetsys(); if (!re) { bool r = ReleaseBLL.DelSetsys(); if (!r) { ScriptHelper.SetAlert(Page, "系统开关不确定!请先确认系统开关。"); return; } } if (!ReleaseBLL.GetSystemList()) { ScriptHelper.SetAlert(Page, "系统开关不确定!请先确认系统开关。"); return; } bool res = ReleaseBLL.UpdateSystem(); if (!res) { ScriptHelper.SetAlert(Page, "系统开关不确定!请先确认系统开关。"); return; } RunExe myRun = new RunExe(); //if (!myRun.IsRun(CommonDataBLL.JiesuanProgramFilename)) if (ViewState["jsType"].ToString() != "0") { if (setExeParam()) { if (myRun.RunIt(Server.MapPath("jiesuan\\" + CommonDataBLL.JiesuanProgramFilename + ".exe"))) { Response.Write("<script>location.href('CompanyBalancerunning.aspx?Qishu=QC888&qs=" + Request.QueryString["qs"] + "&id=" + ViewState["newjsid"].ToString() + "')</script>"); } else { Application["jinzhi"] = "F"; Response.Write("<script> alert('" + GetTran("001211", "程序启动失败") + "');</script>"); } } else { } } else { } }