ZhiYeJianKang_PeiXun/Song.Site/Manage/Exam/TestPaper_Edit.aspx.cs
2025-02-20 15:41:53 +08:00

50 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
using WeiSha.WebControl;
using System.Collections.Generic;
namespace Song.Site.Manage.Exam
{
public partial class TestPaper_Edit : Extend.CustomPage
{
//试卷id
private int id = WeiSha.Common.Request.QueryString["id"].Decrypt().Int32 ?? 0;
//试卷类型1为静态试卷2为动态试卷
private int type = WeiSha.Common.Request.QueryString["type"].Int32 ?? 0;
//参数
protected string query = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
query = this.ClientQueryString;
if (!this.IsPostBack)
{
string url = "TestPaper_Edit{0}.aspx?&type={0}&" + this.ClientQueryString;
Song.Entities.TestPaper tp = Business.Do<ITestPaper>().PagerSingle(id);
if (tp != null)
{
url = string.Format(url, tp.Tp_Type, tp.Tp_Type);
}
else
{
//统一试题的试卷还没有搞好,暂时先用这个
url = string.Format(url, 2, 2);
}
Response.Redirect(url);
}
}
}
}