コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.txtShiJuanTitle.Text           = Model.ShiJuanTitle.ToString();
            this.RadioButtonList1.SelectedValue = Model.IFSuiJiChuTi.ToString();
            //this.txtFenLeiShunXu.Text=Model.FenLeiShunXu.ToString();
            string[] MyShunXu = Model.FenLeiShunXu.ToString().Split('|');
            for (int i = 0; i < MyShunXu.Length; i++)
            {
                this.ListBox2.Items.Add(MyShunXu[i].ToString());
            }

            this.txtKaoShiXianShi.Text  = Model.KaoShiXianShi.ToString();
            this.txtPanDuanFenShu.Text  = Model.PanDuanFenShu.ToString();
            this.txtDanXuanFenShu.Text  = Model.DanXuanFenShu.ToString();
            this.txtDuoXuanFenShu.Text  = Model.DuoXuanFenShu.ToString();
            this.txtTianKongFenShu.Text = Model.TianKongFenShu.ToString();
            this.txtJianDaFenShu.Text   = Model.JianDaFenShu.ToString();
            this.txtBackInfo.Text       = Model.BackInfo.ToString();
            this.txtUserName.Text       = Model.UserName.ToString();
            this.txtTimeStr.Text        = Model.TimeStr.ToString();
        }
    }
コード例 #2
0
ファイル: TiKuShiJuanAdd.aspx.cs プロジェクト: cnbin/HLB
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //获取题目排列顺序
        string ShunXuStr = "";

        for (int i = 0; i < ListBox2.Items.Count; i++)
        {
            if (ShunXuStr == "")
            {
                ShunXuStr = ListBox2.Items[i].Text;
            }
            else
            {
                ShunXuStr = ShunXuStr + "|" + ListBox2.Items[i].Text;
            }
        }



        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();

        Model.ShiJuanTitle   = this.txtShiJuanTitle.Text.ToString();
        Model.IFSuiJiChuTi   = this.RadioButtonList1.SelectedItem.Text.ToString();
        Model.FenLeiShunXu   = ShunXuStr;
        Model.KaoShiXianShi  = int.Parse(this.txtKaoShiXianShi.Text);
        Model.PanDuanTiList  = "";
        Model.DanXuanTiList  = "";
        Model.DuoXuanTiList  = "";
        Model.TianKongTiList = "";
        Model.JianDaTiList   = "";
        Model.PanDuanFenShu  = decimal.Parse(this.txtPanDuanFenShu.Text);
        Model.DanXuanFenShu  = decimal.Parse(this.txtDanXuanFenShu.Text);
        Model.DuoXuanFenShu  = decimal.Parse(this.txtDuoXuanFenShu.Text);
        Model.TianKongFenShu = decimal.Parse(this.txtTianKongFenShu.Text);
        Model.JianDaFenShu   = decimal.Parse(this.txtJianDaFenShu.Text);
        Model.BackInfo       = this.txtBackInfo.Text.ToString();
        Model.UserName       = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr        = DateTime.Now;

        Model.Add();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加试卷管理信息(" + this.txtShiJuanTitle.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "试卷管理信息添加成功!", "TiKuShiJuan.aspx");
    }
コード例 #3
0
ファイル: TiKuShiJuan.aspx.cs プロジェクト: cnbin/HLB
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKuShiJuan MyModel = new ZWL.BLL.ERPTiKuShiJuan();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
コード例 #4
0
ファイル: TiKuShiJuan.aspx.cs プロジェクト: cnbin/HLB
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKuShiJuan MyModel = new ZWL.BLL.ERPTiKuShiJuan();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
コード例 #5
0
ファイル: TiKuShiJuanAdd.aspx.cs プロジェクト: cnbin/HLB
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //��ȡ��Ŀ����˳��
        string ShunXuStr = "";
        for (int i = 0; i < ListBox2.Items.Count; i++)
        {
            if (ShunXuStr == "")
            {
                ShunXuStr = ListBox2.Items[i].Text;
            }
            else
            {
                ShunXuStr = ShunXuStr + "|" + ListBox2.Items[i].Text;
            }
        }

        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();

        Model.ShiJuanTitle=this.txtShiJuanTitle.Text.ToString();
        Model.IFSuiJiChuTi=this.RadioButtonList1.SelectedItem.Text.ToString();
        Model.FenLeiShunXu = ShunXuStr;
        Model.KaoShiXianShi=int.Parse(this.txtKaoShiXianShi.Text);
        Model.PanDuanTiList="";
        Model.DanXuanTiList="";
        Model.DuoXuanTiList="";
        Model.TianKongTiList="";
        Model.JianDaTiList="";
        Model.PanDuanFenShu=decimal.Parse(this.txtPanDuanFenShu.Text);
        Model.DanXuanFenShu=decimal.Parse(this.txtDanXuanFenShu.Text);
        Model.DuoXuanFenShu=decimal.Parse(this.txtDuoXuanFenShu.Text);
        Model.TianKongFenShu=decimal.Parse(this.txtTianKongFenShu.Text);
        Model.JianDaFenShu=decimal.Parse(this.txtJianDaFenShu.Text);
        Model.BackInfo=this.txtBackInfo.Text.ToString();
        Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr=DateTime.Now;

        Model.Add();

        //дϵͳ��־
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "�û�����Ծ������Ϣ(" + this.txtShiJuanTitle.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "�Ծ������Ϣ��ӳɹ���", "TiKuShiJuan.aspx");
    }
コード例 #6
0
ファイル: TiKuKaoShiViewSP.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuKaoShi Modela = new ZWL.BLL.ERPTiKuKaoShi();
            Modela.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblUserName.Text    = Modela.UserName.ToString();
            this.lblTimeStr.Text     = Modela.TimeStr.ToString();
            this.lblShiJuanName.Text = Modela.ShiJuanName.ToString();


            //读取试卷信息
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Modela.ShiJuanID.ToString()));
            string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
            for (int j = 0; j < FenLeiSunXu.Length; j++)
            {
                string DaBiaoTi = "一";
                if (j == 0)
                {
                    DaBiaoTi = "一";
                }
                else if (j == 1)
                {
                    DaBiaoTi = "二";
                }
                else if (j == 2)
                {
                    DaBiaoTi = "三";
                }
                else if (j == 3)
                {
                    DaBiaoTi = "四";
                }
                else if (j == 4)
                {
                    DaBiaoTi = "五";
                }

                //绑定当前题目已有的题目
                string TiMuIDList = "0";
                if (FenLeiSunXu[j].ToString() == "简答题")
                {
                    TiMuIDList       = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='简答题') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    this.Label2.Text = TiMuIDList;

                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.JianDaFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                    else
                    {
                        this.Label1.Text = "该试卷无简答题,无需人工阅卷!";
                    }
                }
            }
        }
    }
コード例 #7
0
ファイル: TiKuKaoShiView.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuKaoShi Modela = new ZWL.BLL.ERPTiKuKaoShi();
            Modela.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblUserName.Text=Modela.UserName.ToString();
            this.lblTimeStr.Text=Modela.TimeStr.ToString();
            this.lblShiJuanName.Text=Modela.ShiJuanName.ToString();

            //��ȡ�Ծ���Ϣ
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Modela.ShiJuanID.ToString()));
            string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
            for (int j = 0; j < FenLeiSunXu.Length; j++)
            {
                string DaBiaoTi = "һ";
                if (j == 0)
                {
                    DaBiaoTi = "һ";
                }
                else if (j == 1)
                {
                    DaBiaoTi = "��";
                }
                else if (j == 2)
                {
                    DaBiaoTi = "��";
                }
                else if (j == 3)
                {
                    DaBiaoTi = "��";
                }
                else if (j == 4)
                {
                    DaBiaoTi = "��";
                }

                //�󶨵�ǰ��Ŀ���е���Ŀ
                string TiMuIDList = "0";
                if (FenLeiSunXu[j].ToString() == "���")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        //һ��	�ж��⣨ÿ��1�֣���20�֣�
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.PanDuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.PanDuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "����ѡ����")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {

                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.DanXuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.DanXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"C\"> C��" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"D\"> D��" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"E\"> E��" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"F\"> F��" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"G\"> G��" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"H\"> H��" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "����ѡ����")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.DuoXuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.DuoXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C\" value=\"C\"> C��" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D\" value=\"D\"> D��" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E\" value=\"E\"> E��" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F\" value=\"F\"> F��" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G\" value=\"G\"> G��" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H\" value=\"H\"> H��" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "�����")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.TianKongFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.TianKongFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "�����")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.JianDaFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
            }

            //дϵͳ��־
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "�û��鿴���߿�����Ϣ(" + this.lblUserName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
コード例 #8
0
ファイル: TiKuKaoShiViewSP.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuKaoShi Modela = new ZWL.BLL.ERPTiKuKaoShi();
            Modela.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblUserName.Text = Modela.UserName.ToString();
            this.lblTimeStr.Text = Modela.TimeStr.ToString();
            this.lblShiJuanName.Text = Modela.ShiJuanName.ToString();

            //读取试卷信息
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Modela.ShiJuanID.ToString()));
            string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
            for (int j = 0; j < FenLeiSunXu.Length; j++)
            {
                string DaBiaoTi = "一";
                if (j == 0)
                {
                    DaBiaoTi = "一";
                }
                else if (j == 1)
                {
                    DaBiaoTi = "二";
                }
                else if (j == 2)
                {
                    DaBiaoTi = "三";
                }
                else if (j == 3)
                {
                    DaBiaoTi = "四";
                }
                else if (j == 4)
                {
                    DaBiaoTi = "五";
                }

                //绑定当前题目已有的题目
                string TiMuIDList = "0";
                if (FenLeiSunXu[j].ToString() == "简答题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='简答题') and  KaoShiID="+Request.QueryString["ID"].ToString()).Replace('|',',');
                    this.Label2.Text = TiMuIDList;

                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.JianDaFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                    else
                    {
                        this.Label1.Text = "该试卷无简答题,无需人工阅卷!";
                    }
                }
            }
        }
    }
コード例 #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblShiJuanTitle.Text  = Model.ShiJuanTitle.ToString();
            this.lblIFSuiJiChuTi.Text  = Model.IFSuiJiChuTi.ToString();
            this.lblFenLeiShunXu.Text  = Model.FenLeiShunXu.ToString();
            this.lblKaoShiXianShi.Text = Model.KaoShiXianShi.ToString();

            //this.lblPanDuanTiList.Text=Model.PanDuanTiList.ToString();
            //this.lblDanXuanTiList.Text = Model.DanXuanTiList.ToString();
            //this.lblDuoXuanTiList.Text = Model.DuoXuanTiList.ToString();
            //this.lblTianKongTiList.Text = Model.TianKongTiList.ToString();
            //this.lblJianDaTiList.Text = Model.JianDaTiList.ToString();

            if (Model.IFSuiJiChuTi.ToString() == "否")
            {
                string[] T1     = Model.PanDuanTiList.ToString().Split(',');
                int      TLInt1 = T1.Length;
                if (T1.Length == 1 && T1[0].Trim().Length == 0)
                {
                    TLInt1 = 0;
                }
                Decimal FenShu1 = TLInt1 * Decimal.Parse(Model.PanDuanFenShu.ToString());
                this.lblPanDuanTiList.Text = "共&nbsp;" + TLInt1.ToString() + "&nbsp;题,每题&nbsp;" + Model.PanDuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + FenShu1 + "&nbsp;分。" + GetShiTiList(Model.PanDuanTiList.ToString());

                string[] T2     = Model.DanXuanTiList.ToString().Split(',');
                int      TLInt2 = T2.Length;
                if (T2.Length == 1 && T2[0].Trim().Length == 0)
                {
                    TLInt2 = 0;
                }
                Decimal FenShu2 = TLInt2 * Decimal.Parse(Model.DanXuanFenShu.ToString());
                this.lblDanXuanTiList.Text = "共&nbsp;" + TLInt2.ToString() + "&nbsp;题,每题&nbsp;" + Model.DanXuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + FenShu2 + "&nbsp;分。" + GetShiTiList(Model.DanXuanTiList.ToString());


                string[] T3     = Model.DuoXuanTiList.ToString().Split(',');
                int      TLInt3 = T3.Length;
                if (T3.Length == 1 && T3[0].Trim().Length == 0)
                {
                    TLInt3 = 0;
                }
                Decimal FenShu3 = TLInt3 * Decimal.Parse(Model.DuoXuanFenShu.ToString());
                this.lblDuoXuanTiList.Text = "共&nbsp;" + TLInt3.ToString() + "&nbsp;题,每题&nbsp;" + Model.DuoXuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + FenShu3 + "&nbsp;分。" + GetShiTiList(Model.DuoXuanTiList.ToString());


                string[] T4     = Model.TianKongTiList.ToString().Split(',');
                int      TLInt4 = T4.Length;
                if (T4.Length == 1 && T4[0].Trim().Length == 0)
                {
                    TLInt4 = 0;
                }
                Decimal FenShu4 = TLInt4 * Decimal.Parse(Model.TianKongFenShu.ToString());
                this.lblTianKongTiList.Text = "共&nbsp;" + TLInt4.ToString() + "&nbsp;题,每题&nbsp;" + Model.TianKongFenShu.ToString() + "&nbsp;分,合计&nbsp;" + FenShu4 + "&nbsp;分。" + GetShiTiList(Model.TianKongTiList.ToString());


                string[] T5     = Model.JianDaTiList.ToString().Split(',');
                int      TLInt5 = T5.Length;
                if (T5.Length == 1 && T5[0].Trim().Length == 0)
                {
                    TLInt5 = 0;
                }
                Decimal FenShu5 = TLInt5 * Decimal.Parse(Model.JianDaFenShu.ToString());
                this.lblJianDaTiList.Text = "共&nbsp;" + TLInt5.ToString() + "&nbsp;题,每题&nbsp;" + Model.JianDaFenShu.ToString() + "&nbsp;分,合计&nbsp;" + FenShu5 + "&nbsp;分。" + GetShiTiList(Model.JianDaTiList.ToString());
            }
            else
            {
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKuShiJuanSet where ShiJuanID=" + Request.QueryString["ID"].ToString());
                if (MYDT.Tables[0].Rows.Count > 0)
                {
                    this.lblPanDuanTiList.Text  = "共&nbsp;" + MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString() + "&nbsp;题,每题&nbsp;" + Model.PanDuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString()) * Decimal.Parse(Model.PanDuanFenShu.ToString())).ToString() + "&nbsp;分。";
                    this.lblDanXuanTiList.Text  = "共&nbsp;" + MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString() + "&nbsp;题,每题&nbsp;" + Model.DanXuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString()) * Decimal.Parse(Model.DanXuanFenShu.ToString())).ToString() + "&nbsp;分。";
                    this.lblDuoXuanTiList.Text  = "共&nbsp;" + MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString() + "&nbsp;题,每题&nbsp;" + Model.DuoXuanFenShu.ToString() + "&nbsp;分,合计&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString()) * Decimal.Parse(Model.DuoXuanFenShu.ToString())).ToString() + "&nbsp;分。";
                    this.lblTianKongTiList.Text = "共&nbsp;" + MYDT.Tables[0].Rows[0]["TianKongNum"].ToString() + "&nbsp;题,每题&nbsp;" + Model.TianKongFenShu.ToString() + "&nbsp;分,合计&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["TianKongNum"].ToString()) * Decimal.Parse(Model.TianKongFenShu.ToString())).ToString() + "&nbsp;分。";
                    this.lblJianDaTiList.Text   = "共&nbsp;" + MYDT.Tables[0].Rows[0]["JianDaNum"].ToString() + "&nbsp;题,每题&nbsp;" + Model.JianDaFenShu.ToString() + "&nbsp;分,合计&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["JianDaNum"].ToString()) * Decimal.Parse(Model.JianDaFenShu.ToString())).ToString() + "&nbsp;分。";
                }
            }

            this.lblPanDuanFenShu.Text  = Model.PanDuanFenShu.ToString();
            this.lblDanXuanFenShu.Text  = Model.DanXuanFenShu.ToString();
            this.lblDuoXuanFenShu.Text  = Model.DuoXuanFenShu.ToString();
            this.lblTianKongFenShu.Text = Model.TianKongFenShu.ToString();
            this.lblJianDaFenShu.Text   = Model.JianDaFenShu.ToString();
            this.lblBackInfo.Text       = Model.BackInfo.ToString();
            this.lblUserName.Text       = Model.UserName.ToString();
            this.lblTimeStr.Text        = Model.TimeStr.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看试卷管理信息(" + this.lblShiJuanTitle.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
コード例 #10
0
ファイル: TiKuShiJuanView.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblShiJuanTitle.Text=Model.ShiJuanTitle.ToString();
            this.lblIFSuiJiChuTi.Text=Model.IFSuiJiChuTi.ToString();
            this.lblFenLeiShunXu.Text=Model.FenLeiShunXu.ToString();
            this.lblKaoShiXianShi.Text=Model.KaoShiXianShi.ToString();

            //this.lblPanDuanTiList.Text=Model.PanDuanTiList.ToString();
            //this.lblDanXuanTiList.Text = Model.DanXuanTiList.ToString();
            //this.lblDuoXuanTiList.Text = Model.DuoXuanTiList.ToString();
            //this.lblTianKongTiList.Text = Model.TianKongTiList.ToString();
            //this.lblJianDaTiList.Text = Model.JianDaTiList.ToString();

            if (Model.IFSuiJiChuTi.ToString() == "��")
            {
                string[] T1 = Model.PanDuanTiList.ToString().Split(',');
                int TLInt1 = T1.Length;
                if (T1.Length == 1 && T1[0].Trim().Length == 0)
                {
                    TLInt1 = 0;
                }
                Decimal FenShu1 = TLInt1 * Decimal.Parse(Model.PanDuanFenShu.ToString());
                this.lblPanDuanTiList.Text = "��&nbsp;" + TLInt1.ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.PanDuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + FenShu1 + "&nbsp;�֡�" + GetShiTiList(Model.PanDuanTiList.ToString());

                string[] T2 = Model.DanXuanTiList.ToString().Split(',');
                int TLInt2 = T2.Length;
                if (T2.Length == 1 && T2[0].Trim().Length == 0)
                {
                    TLInt2 = 0;
                }
                Decimal FenShu2 = TLInt2 * Decimal.Parse(Model.DanXuanFenShu.ToString());
                this.lblDanXuanTiList.Text = "��&nbsp;" + TLInt2.ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.DanXuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + FenShu2 + "&nbsp;�֡�" + GetShiTiList(Model.DanXuanTiList.ToString());

                string[] T3 = Model.DuoXuanTiList.ToString().Split(',');
                int TLInt3 = T3.Length;
                if (T3.Length == 1 && T3[0].Trim().Length == 0)
                {
                    TLInt3 = 0;
                }
                Decimal FenShu3 = TLInt3 * Decimal.Parse(Model.DuoXuanFenShu.ToString());
                this.lblDuoXuanTiList.Text = "��&nbsp;" + TLInt3.ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.DuoXuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + FenShu3 + "&nbsp;�֡�" + GetShiTiList(Model.DuoXuanTiList.ToString());

                string[] T4 = Model.TianKongTiList.ToString().Split(',');
                int TLInt4 = T4.Length;
                if (T4.Length == 1 && T4[0].Trim().Length == 0)
                {
                    TLInt4 = 0;
                }
                Decimal FenShu4 = TLInt4 * Decimal.Parse(Model.TianKongFenShu.ToString());
                this.lblTianKongTiList.Text = "��&nbsp;" + TLInt4.ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.TianKongFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + FenShu4 + "&nbsp;�֡�" + GetShiTiList(Model.TianKongTiList.ToString());

                string[] T5 = Model.JianDaTiList.ToString().Split(',');
                int TLInt5 = T5.Length;
                if (T5.Length == 1 && T5[0].Trim().Length == 0)
                {
                    TLInt5 = 0;
                }
                Decimal FenShu5 = TLInt5 * Decimal.Parse(Model.JianDaFenShu.ToString());
                this.lblJianDaTiList.Text = "��&nbsp;" + TLInt5.ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.JianDaFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + FenShu5 + "&nbsp;�֡�" + GetShiTiList(Model.JianDaTiList.ToString());
            }
            else
            {
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKuShiJuanSet where ShiJuanID=" + Request.QueryString["ID"].ToString());
                if (MYDT.Tables[0].Rows.Count > 0)
                {
                    this.lblPanDuanTiList.Text = "��&nbsp;" + MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.PanDuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString()) * Decimal.Parse(Model.PanDuanFenShu.ToString())).ToString() + "&nbsp;�֡�";
                    this.lblDanXuanTiList.Text = "��&nbsp;" + MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.DanXuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString()) * Decimal.Parse(Model.DanXuanFenShu.ToString())).ToString() + "&nbsp;�֡�";
                    this.lblDuoXuanTiList.Text = "��&nbsp;" + MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.DuoXuanFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString()) * Decimal.Parse(Model.DuoXuanFenShu.ToString())).ToString() + "&nbsp;�֡�";
                    this.lblTianKongTiList.Text = "��&nbsp;" + MYDT.Tables[0].Rows[0]["TianKongNum"].ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.TianKongFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["TianKongNum"].ToString()) * Decimal.Parse(Model.TianKongFenShu.ToString())).ToString() + "&nbsp;�֡�";
                    this.lblJianDaTiList.Text = "��&nbsp;" + MYDT.Tables[0].Rows[0]["JianDaNum"].ToString() + "&nbsp;�⣬ÿ��&nbsp;" + Model.JianDaFenShu.ToString() + "&nbsp;�֣��ϼ�&nbsp;" + (Decimal.Parse(MYDT.Tables[0].Rows[0]["JianDaNum"].ToString()) * Decimal.Parse(Model.JianDaFenShu.ToString())).ToString() + "&nbsp;�֡�";
                }
            }

            this.lblPanDuanFenShu.Text=Model.PanDuanFenShu.ToString();
            this.lblDanXuanFenShu.Text=Model.DanXuanFenShu.ToString();
            this.lblDuoXuanFenShu.Text=Model.DuoXuanFenShu.ToString();
            this.lblTianKongFenShu.Text=Model.TianKongFenShu.ToString();
            this.lblJianDaFenShu.Text=Model.JianDaFenShu.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();
            this.lblUserName.Text=Model.UserName.ToString();
            this.lblTimeStr.Text=Model.TimeStr.ToString();

            //дϵͳ��־
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "�û��鿴�Ծ������Ϣ(" + this.lblShiJuanTitle.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
コード例 #11
0
ファイル: TiKuShiJuanModify.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.txtShiJuanTitle.Text=Model.ShiJuanTitle.ToString();
            this.RadioButtonList1.SelectedValue=Model.IFSuiJiChuTi.ToString();
            //this.txtFenLeiShunXu.Text=Model.FenLeiShunXu.ToString();
            string[] MyShunXu=Model.FenLeiShunXu.ToString().Split('|');
            for (int i = 0; i < MyShunXu.Length; i++)
            {
                this.ListBox2.Items.Add(MyShunXu[i].ToString());
            }

            this.txtKaoShiXianShi.Text=Model.KaoShiXianShi.ToString();
            this.txtPanDuanFenShu.Text=Model.PanDuanFenShu.ToString();
            this.txtDanXuanFenShu.Text=Model.DanXuanFenShu.ToString();
            this.txtDuoXuanFenShu.Text=Model.DuoXuanFenShu.ToString();
            this.txtTianKongFenShu.Text=Model.TianKongFenShu.ToString();
            this.txtJianDaFenShu.Text=Model.JianDaFenShu.ToString();
            this.txtBackInfo.Text=Model.BackInfo.ToString();
            this.txtUserName.Text=Model.UserName.ToString();
            this.txtTimeStr.Text=Model.TimeStr.ToString();
        }
    }
コード例 #12
0
ファイル: TiKuKaoShiAdd.aspx.cs プロジェクト: cnbin/HLB
    protected void Button1_Click(object sender, EventArgs e)
    {
        this.DropDownList1.Enabled = false;
        this.Button1.Enabled = false;
        this.Panel1.Visible = true;

        //��ȡ�Ծ���Ϣ
        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
        Model.GetModel(int.Parse(this.DropDownList1.SelectedItem.Value.ToString()));

        MaxTime =int.Parse(Model.KaoShiXianShi.ToString()) * 60;//������ʱ

        string[] FenLeiSunXu=Model.FenLeiShunXu.Split('|');
        for (int j = 0; j < FenLeiSunXu.Length; j++)
        {
            string DaBiaoTi = "һ";
            if (j == 0)
            {
                DaBiaoTi = "һ";
            }
            else if (j == 1)
            {
                DaBiaoTi = "��";
            }
            else if (j == 2)
            {
                DaBiaoTi = "��";
            }
            else if (j == 3)
            {
                DaBiaoTi = "��";
            }
            else if (j == 4)
            {
                DaBiaoTi = "��";
            }

            //�󶨵�ǰ��Ŀ���е���Ŀ
            string TiMuIDList = "0";
            if (FenLeiSunXu[j].ToString() == "���")
            {
                TiMuIDList = DongTaiOrJingTai(Model.PanDuanTiList, Model.IFSuiJiChuTi, "���");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim()!="0")
                {
                    //һ��	�ж��⣨ÿ��1�֣���20�֣�
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.PanDuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.PanDuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "����ѡ����")
            {
                TiMuIDList = DongTaiOrJingTai(Model.DanXuanTiList, Model.IFSuiJiChuTi, "����ѡ����");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.DanXuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.DanXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"C\"> C��" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"D\"> D��" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"E\"> E��" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"F\"> F��" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"G\"> G��" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"H\"> H��" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "����ѡ����")
            {
                TiMuIDList = DongTaiOrJingTai(Model.DuoXuanTiList, Model.IFSuiJiChuTi, "����ѡ����");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.DuoXuanFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.DuoXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A\" value=\"A\"> A��" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B\" value=\"B\"> B��" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C\" value=\"C\"> C��" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D\" value=\"D\"> D��" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E\" value=\"E\"> E��" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F\" value=\"F\"> F��" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G\" value=\"G\"> G��" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H\" value=\"H\"> H��" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "�����")
            {
                TiMuIDList = DongTaiOrJingTai(Model.TianKongTiList,Model.IFSuiJiChuTi,"�����");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.TianKongFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.TianKongFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";
                        this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;�𰸣�<input type=\"text\" name=\"text-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" ><br>";
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "�����")
            {
                TiMuIDList = DongTaiOrJingTai(Model.JianDaTiList,Model.IFSuiJiChuTi,"�����");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "��" + FenLeiSunXu[j].ToString() + "��ÿ��" + Model.JianDaFenShu.ToString() + "�֣���" + TiMuIDList.Split(',').Length.ToString() + "�⣬�ϼ�" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "�֣�<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + "��" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";
                        this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;�𰸣�<textarea cols=\"50\" rows=\"10\" name=\"textarea-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\"></textarea><br>";
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
        }
    }
コード例 #13
0
ファイル: TiKuKaoShiAdd.aspx.cs プロジェクト: cnbin/HLB
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ZWL.BLL.ERPTiKuKaoShi Model0 = new ZWL.BLL.ERPTiKuKaoShi();
        Model0.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model0.TimeStr = DateTime.Now;
        Model0.ShiJuanName = this.DropDownList1.SelectedItem.Text;
        Model0.ShiJuanID = int.Parse(this.DropDownList1.SelectedValue);
        int MaxID=Model0.Add();

        this.Panel1.Visible = false;
        //��ȡ�Ծ���Ϣ
        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
        Model.GetModel(int.Parse(this.DropDownList1.SelectedItem.Value.ToString()));
        MaxTime = int.Parse(Model.KaoShiXianShi.ToString()) * 60;//������ʱ

        string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
        for (int j = 0; j < FenLeiSunXu.Length; j++)
        {
            //�󶨵�ǰ��Ŀ���е���Ŀ
            string TiMuIDList = "0";
            if (FenLeiSunXu[j].ToString() == "���")
            {
                TiMuIDList = this.Lab1.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID =int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr= Request.Form["rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.PanDuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "����ѡ����")
            {
                TiMuIDList = this.Lab2.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.DanXuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "����ѡ����")
            {
                TiMuIDList = this.Lab3.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();

                    string DangQianDaAnStr = "";
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H"].ToString();
                    }
                    catch { }

                    Model1.UserDaAn = DangQianDaAnStr;
                    if (DangQianDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.DuoXuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "�����")
            {
                TiMuIDList = this.Lab4.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["text-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.TianKongFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "�����")
            {
                TiMuIDList = this.Lab5.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["textarea-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;

                    Model1.DeFen =null;
                    Model1.Add();
                }
            }
        }

        //дϵͳ��־
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "�û�������߿�����Ϣ(" + this.DropDownList1.SelectedItem.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "���߿�����Ϣ��ӳɹ�����ǰ�����ľ�÷֣�" + ZWL.DBUtility.DbHelperSQL.GetSHSLInt("select sum(DeFen)  from ERPTiKuKaoShiJieGuo where KaoShiID=" + MaxID.ToString()) + "���˷����������˹��ľ������", "TiKuKaoShi.aspx");
    }
コード例 #14
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ZWL.BLL.ERPTiKuKaoShi Model0 = new ZWL.BLL.ERPTiKuKaoShi();
        Model0.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model0.TimeStr     = DateTime.Now;
        Model0.ShiJuanName = this.DropDownList1.SelectedItem.Text;
        Model0.ShiJuanID   = int.Parse(this.DropDownList1.SelectedValue);
        int MaxID = Model0.Add();

        this.Panel1.Visible = false;
        //读取试卷信息
        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
        Model.GetModel(int.Parse(this.DropDownList1.SelectedItem.Value.ToString()));
        MaxTime = int.Parse(Model.KaoShiXianShi.ToString()) * 60;//考试限时

        string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
        for (int j = 0; j < FenLeiSunXu.Length; j++)
        {
            //绑定当前题目已有的题目
            string TiMuIDList = "0";
            if (FenLeiSunXu[j].ToString() == "判断题")
            {
                TiMuIDList = this.Lab1.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID   = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn     = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.PanDuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "单项选择题")
            {
                TiMuIDList = this.Lab2.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID   = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn     = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.DanXuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "多项选择题")
            {
                TiMuIDList = this.Lab3.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID   = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn     = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();

                    string DangQianDaAnStr = "";
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G"].ToString();
                    }
                    catch { }
                    try
                    {
                        DangQianDaAnStr = DangQianDaAnStr + Request.Form["CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H"].ToString();
                    }
                    catch { }


                    Model1.UserDaAn = DangQianDaAnStr;
                    if (DangQianDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.DuoXuanFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "填空题")
            {
                TiMuIDList = this.Lab4.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID   = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn     = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["text-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;
                    if (UserDaAnStr == MYDT.Tables[0].Rows[i]["AnswerStr"].ToString())
                    {
                        Model1.DeFen = Model.TianKongFenShu;
                    }
                    else
                    {
                        Model1.DeFen = 0;
                    }
                    Model1.Add();
                }
            }
            else if (FenLeiSunXu[j].ToString() == "简答题")
            {
                TiMuIDList = this.Lab5.Text;
                DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                {
                    ZWL.BLL.ERPTiKuKaoShiJieGuo Model1 = new ZWL.BLL.ERPTiKuKaoShiJieGuo();

                    Model1.KaoShiID = MaxID;
                    Model1.TiMuID   = int.Parse(MYDT.Tables[0].Rows[i]["ID"].ToString());
                    Model1.DaAn     = MYDT.Tables[0].Rows[i]["AnswerStr"].ToString();
                    string UserDaAnStr = "";
                    try
                    {
                        UserDaAnStr = Request.Form["textarea-" + MYDT.Tables[0].Rows[i]["ID"].ToString()].ToString();
                    }
                    catch { }
                    Model1.UserDaAn = UserDaAnStr;

                    Model1.DeFen = null;
                    Model1.Add();
                }
            }
        }

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加在线考试信息(" + this.DropDownList1.SelectedItem.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "在线考试信息添加成功!当前电脑阅卷得分:" + ZWL.DBUtility.DbHelperSQL.GetSHSLInt("select sum(DeFen)  from ERPTiKuKaoShiJieGuo where KaoShiID=" + MaxID.ToString()) + ",此分数不包含人工阅卷分数!", "TiKuKaoShi.aspx");
    }
コード例 #15
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        this.DropDownList1.Enabled = false;
        this.Button1.Enabled       = false;
        this.Panel1.Visible        = true;

        //读取试卷信息
        ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
        Model.GetModel(int.Parse(this.DropDownList1.SelectedItem.Value.ToString()));

        MaxTime = int.Parse(Model.KaoShiXianShi.ToString()) * 60;//考试限时

        string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
        for (int j = 0; j < FenLeiSunXu.Length; j++)
        {
            string DaBiaoTi = "一";
            if (j == 0)
            {
                DaBiaoTi = "一";
            }
            else if (j == 1)
            {
                DaBiaoTi = "二";
            }
            else if (j == 2)
            {
                DaBiaoTi = "三";
            }
            else if (j == 3)
            {
                DaBiaoTi = "四";
            }
            else if (j == 4)
            {
                DaBiaoTi = "五";
            }

            //绑定当前题目已有的题目
            string TiMuIDList = "0";
            if (FenLeiSunXu[j].ToString() == "判断题")
            {
                TiMuIDList = DongTaiOrJingTai(Model.PanDuanTiList, Model.IFSuiJiChuTi, "判断题");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    //一、	判断题(每题1分,共20分)
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.PanDuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.PanDuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "单项选择题")
            {
                TiMuIDList = DongTaiOrJingTai(Model.DanXuanTiList, Model.IFSuiJiChuTi, "单项选择题");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.DanXuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.DanXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"C\"> C:" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"D\"> D:" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"E\"> E:" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"F\"> F:" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"G\"> G:" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"H\"> H:" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "多项选择题")
            {
                TiMuIDList = DongTaiOrJingTai(Model.DuoXuanTiList, Model.IFSuiJiChuTi, "多项选择题");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.DuoXuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.DuoXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";

                        if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C\" value=\"C\"> C:" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D\" value=\"D\"> D:" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E\" value=\"E\"> E:" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F\" value=\"F\"> F:" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G\" value=\"G\"> G:" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                        }
                        if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                        {
                            this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H\" value=\"H\"> H:" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                        }
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "填空题")
            {
                TiMuIDList = DongTaiOrJingTai(Model.TianKongTiList, Model.IFSuiJiChuTi, "填空题");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.TianKongFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.TianKongFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";
                        this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;答案:<input type=\"text\" name=\"text-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" ><br>";
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
            else if (FenLeiSunXu[j].ToString() == "简答题")
            {
                TiMuIDList = DongTaiOrJingTai(Model.JianDaTiList, Model.IFSuiJiChuTi, "简答题");
                if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                {
                    this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.JianDaFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                    DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                    for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                    {
                        int TempNum = i + 1;
                        this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "<br>";
                        this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;答案:<textarea cols=\"50\" rows=\"10\" name=\"textarea-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\"></textarea><br>";
                        this.Label1.Text = this.Label1.Text + "<P>";
                    }
                }
            }
        }
    }
コード例 #16
0
ファイル: TiKuKaoShiView.aspx.cs プロジェクト: cnbin/HLB
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuKaoShi Modela = new ZWL.BLL.ERPTiKuKaoShi();
            Modela.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblUserName.Text    = Modela.UserName.ToString();
            this.lblTimeStr.Text     = Modela.TimeStr.ToString();
            this.lblShiJuanName.Text = Modela.ShiJuanName.ToString();


            //读取试卷信息
            ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
            Model.GetModel(int.Parse(Modela.ShiJuanID.ToString()));
            string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
            for (int j = 0; j < FenLeiSunXu.Length; j++)
            {
                string DaBiaoTi = "一";
                if (j == 0)
                {
                    DaBiaoTi = "一";
                }
                else if (j == 1)
                {
                    DaBiaoTi = "二";
                }
                else if (j == 2)
                {
                    DaBiaoTi = "三";
                }
                else if (j == 3)
                {
                    DaBiaoTi = "四";
                }
                else if (j == 4)
                {
                    DaBiaoTi = "五";
                }

                //绑定当前题目已有的题目
                string TiMuIDList = "0";
                if (FenLeiSunXu[j].ToString() == "判断题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        //一、	判断题(每题1分,共20分)
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.PanDuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.PanDuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "单项选择题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.DanXuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.DanXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"C\"> C:" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"D\"> D:" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"E\"> E:" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"F\"> F:" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"G\"> G:" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"H\"> H:" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "多项选择题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.DuoXuanFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.DuoXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";

                            if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A\" value=\"A\"> A:" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B\" value=\"B\"> B:" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C\" value=\"C\"> C:" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D\" value=\"D\"> D:" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E\" value=\"E\"> E:" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F\" value=\"F\"> F:" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G\" value=\"G\"> G:" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
                            }
                            if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
                            {
                                this.Label1.Text = this.Label1.Text + "&nbsp;&nbsp;<input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H\" value=\"H\"> H:" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
                            }
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "填空题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.TianKongFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.TianKongFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
                else if (FenLeiSunXu[j].ToString() == "简答题")
                {
                    TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and  KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
                    if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
                    {
                        this.Label1.Text = this.Label1.Text + DaBiaoTi + "、" + FenLeiSunXu[j].ToString() + "(每题" + Model.JianDaFenShu.ToString() + "分,共" + TiMuIDList.Split(',').Length.ToString() + "题,合计" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "分)<hr>";

                        DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
                        for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
                        {
                            int TempNum = i + 1;
                            this.Label1.Text = this.Label1.Text + TempNum.ToString() + ":" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
                            this.Label1.Text = this.Label1.Text + "<P>";
                        }
                    }
                }
            }



            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看在线考试信息(" + this.lblUserName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }