private void InititateLayoutTableForFeature() { LayoutTableForFeature.ID = "LayoutTableForFeature"; //第一列 LayoutTableForFeature.Width = Unit.Parse("100%"); //LayoutTable.BorderWidth = Unit.Parse("3px"); //LayoutTable.BorderColor = Color.Green; LayoutTableForFeature.ID = "LayoutTableForFeature_1"; LayoutTableForFeature.Rows.Add(new TableRow()); LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells.Add(new TableCell()); Label FeatureTitle = new Label(); FeatureTitle.Text = "SetFeature"; LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells[0].Controls.Add(FeatureTitle); LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells[0].CssClass = "title"; //第二列 LayoutTableForFeature.Rows.Add(new TableRow()); LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells.Add(new TableCell()); Table containerForFeature = CommonQuestionUtility.get_HTMLTable(1, 2); LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells[0].Controls.Add(containerForFeature); FeatureItemControl qFeatureItemControlTable = new FeatureItemControl(this, 1, strGroupID, strQID); //FeatureItemControlTable qFeatureItemControlTable.ID = "FeatureItemControlTable"; this.LayoutTableForFeature.Rows.Add(new TableRow()); this.LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells.Add(new TableCell()); this.LayoutTableForFeature.Rows[LayoutTableForFeature.Rows.Count - 1].Cells[0].Controls.Add(qFeatureItemControlTable); }
private void getParametor() { //UserID if (Session["UserID"] != null) { UserID = Session["UserID"].ToString(); } //strUserID = "swakevin"; //CaseID if (Session["CaseID"] != null) { strCaseID = Session["CaseID"].ToString(); hiddenCaseID.Value = Session["CaseID"].ToString(); } //Division if (Session["DivisionID"] != null) { strDivisionID = Session["DivisionID"].ToString(); } //SectionName if (Session["SectionName"] != null) { strSectionName = Session["SectionName"].ToString(); hiddenSectionName.Value = Session["SectionName"].ToString(); } //PaperID if (Session["PaperID"] != null) { strPaperID = Session["PaperID"].ToString(); hiddenPaperID.Value = Session["PaperID"].ToString(); } //QID if ((Request.QueryString["QID"] + "").Length > 0) { strQID = Request.QueryString["QID"].ToString(); } else { if (ViewState["strQID"] != null && ViewState["strQID"].ToString() != "") { strQID = ViewState["strQID"].ToString(); } else { strQID = CommonQuestionUtility.GetNewID(this.UserID, "QuestionSituation"); ViewState["strQID"] = strQID; } } //GroupID if (Request.QueryString["GroupID"] != null) { strGroupID = Request.QueryString["GroupID"].ToString(); hfGroupID.Value = strGroupID; if (Session["GroupID"] != null) { Session["GroupID"] = strGroupID; } else { Session.Add("GroupID", strGroupID); } } //GroupDivisionID if (strGroupID != null) { if (strGroupID.Trim().Length > 0) { DataReceiver myReceiver = new DataReceiver(); strGroupDivisionID = myReceiver.getGroupDivisionID(strGroupID); if (Session["GroupDivisionID"] != null) { Session["GroupDivisionID"] = strGroupDivisionID; } else { Session.Add("GroupDivisionID", strGroupDivisionID); } } } //Opener if (Request.QueryString["Opener"] != null) { hiddenOpener.Value = Request.QueryString["Opener"].ToString(); } //QuestionType if (Session["QuestionMode"] != null) { hiddenQuestionMode.Value = Session["QuestionMode"].ToString(); } //ModifyType if (Session["ModifyType"] != null) { hiddenModifyType.Value = Session["ModifyType"].ToString(); } //BModify if (Request.QueryString["bModify"] != null) { hiddenBModify.Value = Request.QueryString["bModify"].ToString(); if (Session["bModify"] != null) { Session["bModify"] = hiddenBModify.Value; } else { Session.Add("bModify", hiddenBModify.Value); } } //PreOpener if (Session["PreOpener"] != null) { if (Request.QueryString["Opener"] != null) { if (Request.QueryString["Opener"].ToString() == "Paper_MainPage") { hiddenPreOpener.Value = Session["PreOpener"].ToString(); } else { hiddenPreOpener.Value = ""; } } } //指定此情境題代號為5 cQuestionType = "5"; }