protected void Page_Load(object sender, EventArgs e) { #region 检查一下数据库是否链接成功. try { switch (BP.Sys.SystemConfig.AppCenterDBType) { case DBType.MSSQL: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 "); break; case DBType.Oracle: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 FROM DUAL "); break; case DBType.Informix: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 FROM DUAL "); break; default: break; } } catch (Exception ex) { this.Response.Write("<h1>数据库连接错误</h1><hr> <font color=red>请参考安装说明书检查web.config数据库连接设置,错误信息:</font><br>" + ex.Message); return; } #endregion this.Pub1.AddH3("ccflow 数据库修复与安装工具"); this.Pub1.AddHR(); if (this.Request.QueryString["DoType"] == "OK") { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("ccflow数据库初始化成功."); this.Pub1.AddBR("<a href='./XAP/Designer.aspx?IsCheckUpdate=1' >进入流程设计器.</a>"); this.Response.Redirect("./XAP/Designer.aspx?IsCheckUpdate=1", true); this.Pub1.AddFieldSetEnd(); return; } if (BP.DA.DBAccess.IsExitsObject("WF_Flow") == true) { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("数据已经安装,如果您要重新安装,您需要手工的清除数据库里对象。"); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("修复数据表"); this.Pub1.Add("把最新的版本的与当前的数据表结构,做一个自动修复, 修复内容:缺少列,缺少列注释,列注释不完整或者有变化。"); this.Pub1.AddB("<a href='DBInstall.aspx?DoType=FixDB' >开始执行数据库修复</a>。"); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("流程设计器"); this.Pub1.AddB("<br><a href='/' >进入流程设计器</a>,执行设计与调试流程。"); this.Pub1.AddFieldSetEnd(); if (this.Request.QueryString["DoType"] == "FixDB") { string rpt = BP.Sys.PubClass.DBRpt(BP.DA.DBCheckLevel.High); this.Pub1.AddMsgGreen("同步数据表结构成功, 部分错误不会影响系统运行.", "执行成功,希望在系统每次升级后执行此功能,不会对你的数据库数据产生影响。<br><br> <a href='./XAP/Designer.aspx'>进入流程设计器.</a>"); } return; } #region 检查是否连接上GPM if (BP.WF.Glo.OSModel == BP.WF.OSModel.BPM) { //首先检查是否安装上了GPM. try { // CCPortal.API.CheckIsConn(); } catch { string msg = "当前ccflow的工作模式为集成模式,您没有安装或者成功配制CCGPM, ccflow的BPM工作模式,必须依赖CCGPM才能运行,您可以按照如下方式处理."; msg += "<ul>"; msg += "<li>1,使用ccflow的 workflow 模式, 把web.config 中的OSMode 修改成 0 。</li>"; msg += "<li>2,使用ccflow的 GPM 模式, 安装ccgpm,正确的配置ccflow连接GPM的连接。</li>"; msg += "</ul>"; this.Pub1.AddFieldSetRed("错误:", msg); return; } } #endregion 检查是否连接上GPM this.Pub1.AddFieldSet("选择安装语言(ccflow5仅支持中文)."); BP.WF.XML.Langs langs = new BP.WF.XML.Langs(); langs.RetrieveAll(); RadioButton rb = new RadioButton(); foreach (BP.WF.XML.Lang lang in langs) { rb = new RadioButton(); rb.Text = lang.Name; rb.ID = "RB_" + lang.No; rb.GroupName = "ch"; if (lang.No == "CH") { rb.Checked = true; } else { rb.Checked = false; } rb.Enabled = false; this.Pub1.Add(rb); } this.Pub1.GetRadioButtonByID("RB_CH").Checked = true; this.Pub1.AddFieldSetEndBR(); #region 数据库类型. this.Pub1.AddFieldSet("当前数据库安装类型(如果要修改数据库类型请修改 web.config AppCenterDSNType 设置。)."); rb = new RadioButton(); rb.Text = "SQLServer2000,2005,2008系列版本"; rb.ID = "RB_SQL"; rb.GroupName = "sd"; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.MSSQL) { rb.Checked = true; } else { rb.Checked = false; } rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Oracle,Oracle9i,10g系列版本"; rb.ID = "RB_Oracle"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.Oracle) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Informix 系列版本(首先需要执行:D:\\ccflow\\trunk\\CCFlow\\WF\\Data\\Install\\Informix.sql)"; rb.ID = "RB_DB2"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.Informix) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "MySQL系列版本"; rb.ID = "RB_MYSQL"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.MySQL) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); #endregion 数据库类型. #region 安装模式. this.Pub1.AddFieldSet("ccflow的运行模式,手工修改 web.config 中的 OSModel 进行配置. "); rb = new RadioButton(); rb.Text = "集成模式"; rb.ID = "RB_WorkFlow"; rb.GroupName = "model"; if (BP.WF.Glo.OSModel == BP.WF.OSModel.WorkFlow) { rb.Checked = true; } rb.Enabled = false; this.Pub1.Add(rb); rb = new RadioButton(); rb.Text = "BPM工作模式"; rb.ID = "RB_BMP"; rb.GroupName = "model"; if (BP.WF.Glo.OSModel == BP.WF.OSModel.BPM) { rb.Checked = true; } rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); #endregion 安装模式. this.Pub1.AddFieldSet("是否需要安装CCIM."); rb = new RadioButton(); rb.Text = "是"; rb.ID = "RB_CCIM_Y"; rb.Checked = true; rb.GroupName = "ccim"; this.Pub1.Add(rb); rb = new RadioButton(); rb.Text = "否"; rb.ID = "RB_CCIM_N"; rb.GroupName = "ccim"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("应用环境模拟."); rb = new RadioButton(); rb.Text = "集团公司,企业单位。"; rb.ID = "RB_Inc"; rb.GroupName = "hj"; rb.Checked = true; rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "政府机关,事业单位。"; rb.ID = "RB_Gov"; rb.GroupName = "hj"; rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEndBR(); this.Pub1.AddFieldSet("是否装载演示流程模板?"); rb = new RadioButton(); rb.Text = "是:我要安装demo组织结构体系、demo流程模板、表单模板,以方便我学习ccflow与ccform."; rb.ID = "RB_DemoOn"; rb.GroupName = "hjd"; rb.Checked = true; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "否:不安装demo。"; rb.ID = "RB_DemoOff"; rb.GroupName = "hjd"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEndBR(); Button btn = new Button(); btn.ID = "Btn_s"; btn.Text = "接受CCFlow 6 beta 的 GPL开源软件协议并安装"; btn.CssClass = "Btn"; btn.UseSubmitBehavior = false; btn.OnClientClick = "this.disabled=true;"; btn.Click += new EventHandler(btn_Click); this.Pub1.Add(btn); this.Pub1.AddBR(); this.Pub1.AddBR("1,估计在<font color=red size=10px>10分钟</font>内安装完成."); this.Pub1.AddBR("2,如果您是用VS打开的请不要用F5运行它,会导致安装变慢."); this.Pub1.AddBR("3.如果安装错误,请删除数据库表并重新安装,或者把安装遇到的问题反馈给ccflow开发团队. <a href='http://bbs.ccflow.org' target=_blank >ccflow 技术论坛</a>"); }
void btn_Click(object sender, EventArgs e) { string lang = "CH"; string db = "SQLServer"; string hj = "Inc"; if (this.Pub1.GetRadioButtonByID("RB_SQL").Checked) { db = "SQLServer"; } if (this.Pub1.GetRadioButtonByID("RB_Oracle").Checked) { db = "Oracle"; } if (this.Pub1.GetRadioButtonByID("RB_DB2").Checked) { db = "DB2"; } if (this.Pub1.GetRadioButtonByID("RB_MYSQL").Checked) { db = "MySQL"; } BP.WF.XML.Langs langs = new BP.WF.XML.Langs(); langs.RetrieveAll(); foreach (BP.WF.XML.Lang xml in langs) { if (this.Pub1.GetRadioButtonByID("RB_" + xml.No).Checked) { lang = xml.No; } } if (this.Pub1.GetRadioButtonByID("RB_Inc").Checked) { hj = "Inc"; } if (this.Pub1.GetRadioButtonByID("RB_Gov").Checked) { hj = "Gov"; } hj = "Inc"; //运行。 BP.WF.Glo.DoInstallDataBase(lang, hj, this.Pub1.GetRadioButtonByID("RB_DemoOn").Checked); //加注释. BP.PubClass.AddComment(); // 装载演示数据. if (this.Pub1.GetRadioButtonByID("RB_DemoOn").Checked) { BP.Port.Emp emp = new BP.Port.Emp("admin"); BP.Web.WebUser.SignInOfGener(emp); BP.WF.DTS.LoadTemplete l = new BP.WF.DTS.LoadTemplete(); string msg = l.Do() as string; } try { //增加图片签名 BP.WF.DTS.GenerSiganture gs = new BP.WF.DTS.GenerSiganture(); gs.Do(); } catch { } this.Response.Redirect("DBInstall.aspx?DoType=OK", true); }
protected void Page_Load(object sender, EventArgs e) { #region 检查一下数据库是否链接成功. if (DBAccess.TestIsConnection() == false) { this.Response.Write("<h1>数据库连接错误</h1><hr> <font color=red>请参考安装说明书检查web.config数据库连接设置。"); return; } #endregion //BP.WF.Node nd = new BP.WF.Node(); //nd.NodeFrmID this.Pub1.AddH2(" <div style='float:left' >数据库修复与安装.</div> <div style='float:right' > <img src='../../DataUser/Icon/LogBiger.png' /> </div> "); this.Pub1.AddBR(); this.Pub1.AddBR(); this.Pub1.AddBR(); if (this.Request.QueryString["DoType"] == "OK") { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("ccflow数据库初始化成功."); // this.Pub1.AddBR("<a href='./XAP/Designer.aspx?IsCheckUpdate=1' >进入流程设计器.</a>"); // this.Response.Redirect("./XAP/Designer.aspx?IsCheckUpdate=1", true); this.Response.Redirect("./CCBPMDesigner/Login.aspx?IsCheckUpdate=1", true); this.Pub1.AddFieldSetEnd(); return; } if (BP.DA.DBAccess.IsExitsObject("WF_Flow") == true) { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("数据已经安装,如果您要重新安装,您需要手工的清除数据库里对象。"); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("修复数据表"); this.Pub1.Add("把最新的版本的与当前的数据表结构,做一个自动修复, 修复内容:缺少列,缺少列注释,列注释不完整或者有变化。"); this.Pub1.AddB("<a href='DBInstall.aspx?DoType=FixDB' >开始执行数据库修复</a>。"); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("流程设计器"); this.Pub1.AddLi("<a href='./Xap/Designer.aspx' >进入旧版本流程设计器</a>,执行设计与调试流程。"); this.Pub1.AddLi("<a href='/' >进入新版本的流程设计器</a>,执行设计与调试流程。"); this.Pub1.AddFieldSetEnd(); if (this.Request.QueryString["DoType"] == "FixDB") { string rpt = BP.Sys.PubClass.DBRpt(BP.DA.DBCheckLevel.High); this.Pub1.AddMsgGreen("同步数据表结构成功, 部分错误不会影响系统运行.", "执行成功,希望在系统每次升级后执行此功能,不会对你的数据库数据产生影响。<br><br> <a href='./XAP/Designer.aspx'>进入流程设计器.</a>"); } return; } #region 检查是否连接上GPM if (BP.WF.Glo.OSModel == BP.Sys.OSModel.OneMore) { //首先检查是否安装上了GPM. try { // CCPortal.API.CheckIsConn(); } catch { string msg = "当前ccflow的工作模式为集成模式,您没有安装或者成功配制CCGPM, ccflow的BPM工作模式,必须依赖CCGPM才能运行,您可以按照如下方式处理."; msg += "<ul>"; msg += "<li>1,使用ccflow的 workflow 模式, 把web.config 中的OSMode 修改成 0 。</li>"; msg += "<li>2,使用ccflow的 GPM 模式, 安装ccgpm,正确的配置ccflow连接GPM的连接。</li>"; msg += "</ul>"; this.Pub1.AddFieldSetRed("错误:", msg); return; } } #endregion 检查是否连接上GPM this.Pub1.AddFieldSet("选择安装语言(ccflow6仅支持中文)."); BP.WF.XML.Langs langs = new BP.WF.XML.Langs(); langs.RetrieveAll(); RadioButton rb = new RadioButton(); foreach (BP.WF.XML.Lang lang in langs) { rb = new RadioButton(); rb.Text = lang.Name; rb.ID = "RB_" + lang.No; rb.GroupName = "ch"; if (lang.No == "CH") { rb.Checked = true; } else { rb.Checked = false; } rb.Enabled = false; this.Pub1.Add(rb); } this.Pub1.GetRadioButtonByID("RB_CH").Checked = true; this.Pub1.AddFieldSetEnd(); #region 数据库类型. this.Pub1.AddFieldSet("当前数据库安装类型(如果要修改数据库类型请修改 web.config AppCenterDSNType 设置。)."); rb = new RadioButton(); rb.Text = "SQLServer2000,2005,2008 .... 系列版本"; rb.ID = "RB_SQL"; rb.GroupName = "sd"; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.MSSQL) { rb.Checked = true; } else { rb.Checked = false; } rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Oracle,Oracle9i,10g ... 系列版本"; rb.ID = "RB_Oracle"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.Oracle) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Informix 系列版本(首先需要执行:D:\\ccflow\\trunk\\CCFlow\\WF\\Data\\Install\\Informix.sql)"; rb.ID = "RB_DB2"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.Informix) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "MySQL系列版本"; rb.ID = "RB_MYSQL"; rb.GroupName = "sd"; rb.Enabled = false; if (BP.Sys.SystemConfig.AppCenterDBType == DBType.MySQL) { rb.Checked = true; } else { rb.Checked = false; } this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); #endregion 数据库类型. #region 安装模式. this.Pub1.AddFieldSet("ccflow 的运行模式,手工修改 web.config 中的 OSModel 进行配置. "); rb = new RadioButton(); rb.Text = "OneOne模式一个人一个部门多岗位"; rb.ID = "RB_OneOne"; rb.GroupName = "model"; if (BP.WF.Glo.OSModel == BP.Sys.OSModel.OneOne) { rb.Checked = true; } rb.Enabled = false; this.Pub1.Add(rb); rb = new RadioButton(); rb.Text = "OneMore一个人多部门多岗位."; rb.ID = "RB_OneMore"; rb.GroupName = "model"; if (BP.WF.Glo.OSModel == BP.Sys.OSModel.OneMore) { rb.Checked = true; } rb.Enabled = false; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); #endregion 安装模式. //this.Pub1.AddFieldSet("是否需要安装CCIM(驰骋即时通讯系统)"); //rb = new RadioButton(); //rb.Text = "是"; //rb.ID = "RB_CCIM_Y"; //rb.Checked = true; //rb.GroupName = "ccim"; //this.Pub1.Add(rb); //rb = new RadioButton(); //rb.Text = "否"; //rb.ID = "RB_CCIM_N"; //rb.GroupName = "ccim"; //this.Pub1.Add(rb); //this.Pub1.AddBR(); //this.Pub1.AddFieldSetEnd(); //this.Pub1.AddFieldSet("应用环境模拟."); //rb = new RadioButton(); //rb.Text = "集团公司,企业单位。"; //rb.ID = "RB_Inc"; //rb.GroupName = "hj"; //rb.Checked = true; //rb.Enabled = false; //this.Pub1.Add(rb); //rb = new RadioButton(); //rb.Text = "政府机关,事业单位。"; //rb.ID = "RB_Gov"; //rb.GroupName = "hj"; //rb.Enabled = false; //this.Pub1.Add(rb); //this.Pub1.AddBR(); //this.Pub1.AddFieldSetEndBR(); this.Pub1.AddFieldSet("是否装载演示流程模板?"); rb = new RadioButton(); rb.Text = "是:我要安装demo组织结构体系、demo流程模板、表单模板,以方便我学习ccflow与ccform.(估计在<font color=red>8-15分钟</font>内安装完成)。"; rb.ID = "RB_DemoOn"; rb.GroupName = "hjd"; rb.Checked = true; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "否:不安装demo,仅仅安装空白的ccbpm环境(估计在<font color=red >2-3分钟</font>内安装完成)。"; rb.ID = "RB_DemoOff"; rb.GroupName = "hjd"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEndBR(); Button btn = new Button(); btn.ID = "Btn_s"; btn.Text = "接受CCFlow 6 的 GPL开源软件协议并安装"; btn.CssClass = "Btn"; btn.UseSubmitBehavior = false; btn.OnClientClick = "this.value='正在执行安装请耐心等候...';this.disabled=true;"; btn.Click += new EventHandler(btn_Click); this.Pub1.Add(btn); this.Pub1.AddBR(); this.Pub1.AddBR("1,安装期间请耐心等待,不要关闭界面,如果您选择demo模式,系统将会装载200多个demo流程模版导致安装过程变慢。"); this.Pub1.AddBR("2,如果您是用VS打开的请不要用F5运行它,会导致安装变慢,调试模式安装会很慢。"); this.Pub1.AddBR("3.如果安装错误,请删除数据库表并重新安装,或者把安装遇到的问题反馈给ccflow开发团队. <a href='http://bbs.ccflow.org' target=_blank >ccflow 技术论坛</a>"); this.Pub1.AddBR("4,任何时间的安装失败,都要删除数据库重新建,然后反馈问题,并svn最新的程序进行重安装。"); this.Pub1.AddBR("5,<font color=red>系统在运行的时候不区分大小写,如果在mysql,oracle上安装错误,请数据库服务上做配置。</font>"); this.Pub1.AddBR("6,<font color=red>当前的数据库连接用户,需要有创建删除视图与表的权限,否则安装失败。</font>"); }
protected void Page_Load(object sender, EventArgs e) { #region 检查一下数据库是否链接成功. try { switch (BP.SystemConfig.AppCenterDBType) { case DBType.MSSQL: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 "); break; case DBType.Oracle: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 FROM DUAL "); break; case DBType.Informix: BP.DA.DBAccess.RunSQLReturnString("SELECT 1+2 FROM DUAL "); break; default: break; } } catch (Exception ex) { this.Response.Write("<h1>数据库连接错误</h1><hr> <font color=red>请参考安装说明书检查web.config数据库连接设置,错误信息:</font><br>" + ex.Message); return; } #endregion this.Pub1.AddH3("ccflow 数据库修复与安装工具"); this.Pub1.AddHR(); if (this.Request.QueryString["DoType"] == "OK") { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("ccflow数据库初始化成功."); this.Pub1.AddBR("<a href='./XAP/Designer.aspx?IsCheckUpdate=1' >进入流程设计器.</a>"); this.Response.Redirect("./XAP/Designer.aspx?IsCheckUpdate=1", true); this.Pub1.AddFieldSetEnd(); return; } //try //{ if (BP.DA.DBAccess.IsExitsObject("WF_Flow") == true) { this.Pub1.AddFieldSet("提示"); this.Pub1.Add("数据已经安装,如果您要重新安装,您需要手工的清除数据库里对象。"); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("修复数据表"); this.Pub1.Add("把最新的版本的与当前的数据表结构,做一个自动修复, 修复内容:缺少列,缺少列注释,列注释不完整或者有变化。 <br> <a href='DBInstall.aspx?DoType=FixDB' >执行...</a>。"); this.Pub1.AddFieldSetEnd(); if (this.Request.QueryString["DoType"] == "FixDB") { string rpt = BP.PubClass.DBRpt(BP.DBLevel.High); this.Pub1.AddMsgGreen("同步数据表结构成功, 部分错误不会影响系统运行.", "执行成功,希望在系统每次升级后执行此功能,不会对你的数据库数据产生影响。<br> <a href='./XAP/Designer.aspx'>进入流程设计器.</a>"); //string scrpts = BP.SystemConfig.PhysicalApplicationPath + "\\WF\\Admin\\DBInstall.sql"; //BP.DA.DBAccess.RunSQLScript(scrpts); } return; } //} //catch (Exception ex) //{ // this.Pub1.AddFieldSet("提示:数据库连接没有配置好"); // this.Pub1.Add("1, 请打开web.config文件配置 appSettings - AppCenterDSN 节点中的数据库连接信息。"); // this.Pub1.AddBR("2, 支持的数据库类型在,AppCenterDBType中配置,分别是MSSQL2000,Oracle,DB2,Access,MySQL "); // this.Pub1.AddBR("<hr>错误信息:" + ex.Message); // this.Pub1.AddFieldSetEnd(); // return; //} // this.Pub1.AddH2("数据库安装向导..."); this.Pub1.AddFieldSet("选择安装语言."); BP.WF.XML.Langs langs = new BP.WF.XML.Langs(); langs.RetrieveAll(); RadioButton rb = new RadioButton(); foreach (BP.WF.XML.Lang lang in langs) { rb = new RadioButton(); rb.Text = lang.Name; rb.ID = "RB_" + lang.No; rb.GroupName = "ch"; this.Pub1.Add(rb); this.Pub1.AddBR(); } this.Pub1.GetRadioButtonByID("RB_CH").Checked = true; this.Pub1.AddFieldSetEndBR(); this.Pub1.AddFieldSet("选择数据库安装类型."); rb = new RadioButton(); rb.Text = "SQLServer2000,2005,2008"; rb.ID = "RB_SQL"; rb.GroupName = "sd"; rb.Checked = true; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Oracle,Oracle 10g"; rb.ID = "RB_Oracle"; rb.GroupName = "sd"; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "Informix (首先需要执行:D:\\ccflow\\trunk\\CCFlow\\WF\\Data\\Install\\Informix.sql)"; rb.ID = "RB_DB2"; rb.GroupName = "sd"; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "MySQL"; rb.ID = "RB_MYSQL"; rb.GroupName = "sd"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEnd(); this.Pub1.AddFieldSet("应用环境模拟."); rb = new RadioButton(); rb.Text = "集团公司,企业单位。"; rb.ID = "RB_Inc"; rb.GroupName = "hj"; rb.Checked = true; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "政府机关,事业单位。"; rb.ID = "RB_Gov"; rb.GroupName = "hj"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEndBR(); this.Pub1.AddFieldSet("是否装载演示流程模板?"); rb = new RadioButton(); rb.Text = "是:我要安装demo流程模板、表单模板,以方便我学习ccflow与ccform."; rb.ID = "RB_DemoOn"; rb.GroupName = "hjd"; rb.Checked = true; this.Pub1.Add(rb); this.Pub1.AddBR(); rb = new RadioButton(); rb.Text = "否:不安装。"; rb.ID = "RB_DemoOff"; rb.GroupName = "hjd"; this.Pub1.Add(rb); this.Pub1.AddBR(); this.Pub1.AddFieldSetEndBR(); Button btn = new Button(); btn.ID = "Btn_s"; btn.Text = "接受CCFlow的LPGL开源软件协议并安装(估计在3-5分钟内安装完成)"; btn.CssClass = "Btn"; btn.UseSubmitBehavior = false; btn.OnClientClick = "this.disabled=true;"; btn.Click += new EventHandler(btn_Click); this.Pub1.Add(btn); }