示例#1
0
文件: TiKuAdd.aspx.cs 项目: cnbin/HLB
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();

        Model.TitleStr  = this.txtTitleStr.Text.ToString();
        Model.ItemsA    = this.txtItemsA.Text.ToString();
        Model.ItemsB    = this.txtItemsB.Text.ToString();
        Model.ItemsC    = this.txtItemsC.Text.ToString();
        Model.ItemsD    = this.txtItemsD.Text.ToString();
        Model.ItemsE    = this.txtItemsE.Text.ToString();
        Model.ItemsF    = this.txtItemsF.Text.ToString();
        Model.ItemsG    = this.txtItemsG.Text.ToString();
        Model.ItemsH    = this.txtItemsH.Text.ToString();
        Model.AnswerStr = this.txtAnswerStr.Text.ToString();

        Model.TiKuID    = int.Parse(Request.QueryString["TiKuID"].ToString());
        Model.FenLeiStr = Request.QueryString["FenLeiStr"].ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "题库管理信息添加成功!", "TiKu.aspx?TiKuID=" + Request.QueryString["TiKuID"].ToString() + "&FenLeiStr=" + Request.QueryString["FenLeiStr"].ToString());
    }
示例#2
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();

        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.TitleStr=this.txtTitleStr.Text.ToString();
        Model.ItemsA=this.txtItemsA.Text.ToString();
        Model.ItemsB=this.txtItemsB.Text.ToString();
        Model.ItemsC=this.txtItemsC.Text.ToString();
        Model.ItemsD=this.txtItemsD.Text.ToString();
        Model.ItemsE=this.txtItemsE.Text.ToString();
        Model.ItemsF=this.txtItemsF.Text.ToString();
        Model.ItemsG=this.txtItemsG.Text.ToString();
        Model.ItemsH=this.txtItemsH.Text.ToString();
        Model.AnswerStr=this.txtAnswerStr.Text.ToString();

        Model.TiKuID = int.Parse(Request.QueryString["TiKuID"].ToString());
        Model.FenLeiStr = Request.QueryString["FenLeiStr"].ToString();

        Model.Update();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "��������Ϣ�޸ijɹ���", "TiKu.aspx?TiKuID=" + Request.QueryString["TiKuID"].ToString() + "&FenLeiStr=" + Request.QueryString["FenLeiStr"].ToString());
    }
示例#3
0
文件: TiKu.aspx.cs 项目: cnbin/HLB
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKu MyModel = new ZWL.BLL.ERPTiKu();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") and TiKuID=" + Request.QueryString["TiKuID"].ToString() + " and FenLeiStr='" + Request.QueryString["FenLeiStr"].ToString() + "' order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%'  and TiKuID=" + Request.QueryString["TiKuID"].ToString() + " and FenLeiStr='" + Request.QueryString["FenLeiStr"].ToString() + "'  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
文件: TiKu.aspx.cs 项目: cnbin/HLB
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKu MyModel = new ZWL.BLL.ERPTiKu();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") and TiKuID=" + Request.QueryString["TiKuID"].ToString() + " and FenLeiStr='" + Request.QueryString["FenLeiStr"].ToString() + "' order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%'  and TiKuID=" + Request.QueryString["TiKuID"].ToString() + " and FenLeiStr='" + Request.QueryString["FenLeiStr"].ToString() + "'  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
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTitleStr.Text=Model.TitleStr.ToString();
            this.lblItemsA.Text=Model.ItemsA.ToString();
            this.lblItemsB.Text=Model.ItemsB.ToString();
            this.lblItemsC.Text=Model.ItemsC.ToString();
            this.lblItemsD.Text=Model.ItemsD.ToString();
            this.lblItemsE.Text=Model.ItemsE.ToString();
            this.lblItemsF.Text=Model.ItemsF.ToString();
            this.lblItemsG.Text=Model.ItemsG.ToString();
            this.lblItemsH.Text=Model.ItemsH.ToString();
            this.lblAnswerStr.Text=Model.AnswerStr.ToString();

            //�ж���Ŀ���ͣ�Ȼ������Panel����ʾ���
            if (Request.QueryString["FenLeiStr"].ToString() == "���")
            {
                this.Panel2.Visible = false;
                this.Panel1.Visible = true;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "�����")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "�����")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }

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

        }
    }
示例#6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTitleStr.Text  = Model.TitleStr.ToString();
            this.lblItemsA.Text    = Model.ItemsA.ToString();
            this.lblItemsB.Text    = Model.ItemsB.ToString();
            this.lblItemsC.Text    = Model.ItemsC.ToString();
            this.lblItemsD.Text    = Model.ItemsD.ToString();
            this.lblItemsE.Text    = Model.ItemsE.ToString();
            this.lblItemsF.Text    = Model.ItemsF.ToString();
            this.lblItemsG.Text    = Model.ItemsG.ToString();
            this.lblItemsH.Text    = Model.ItemsH.ToString();
            this.lblAnswerStr.Text = Model.AnswerStr.ToString();

            //判断题目类型,然后设置Panel的显示与否
            if (Request.QueryString["FenLeiStr"].ToString() == "判断题")
            {
                this.Panel2.Visible = false;
                this.Panel1.Visible = true;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "填空题")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "简答题")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看题库管理信息(" + this.lblTitleStr.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
示例#7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.txtTitleStr.Text  = Model.TitleStr.ToString();
            this.txtItemsA.Text    = Model.ItemsA.ToString();
            this.txtItemsB.Text    = Model.ItemsB.ToString();
            this.txtItemsC.Text    = Model.ItemsC.ToString();
            this.txtItemsD.Text    = Model.ItemsD.ToString();
            this.txtItemsE.Text    = Model.ItemsE.ToString();
            this.txtItemsF.Text    = Model.ItemsF.ToString();
            this.txtItemsG.Text    = Model.ItemsG.ToString();
            this.txtItemsH.Text    = Model.ItemsH.ToString();
            this.txtAnswerStr.Text = Model.AnswerStr.ToString();


            //判断题目类型,然后设置Panel的显示与否
            if (Request.QueryString["FenLeiStr"].ToString() == "判断题")
            {
                this.Panel2.Visible = false;
                this.Panel1.Visible = true;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "填空题")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "简答题")
            {
                this.Panel1.Visible        = false;
                this.Panel2.Visible        = false;
                this.txtAnswerStr.Height   = Unit.Parse("60");
                this.txtAnswerStr.TextMode = TextBoxMode.MultiLine;
            }
        }
    }
示例#8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.txtTitleStr.Text=Model.TitleStr.ToString();
            this.txtItemsA.Text=Model.ItemsA.ToString();
            this.txtItemsB.Text=Model.ItemsB.ToString();
            this.txtItemsC.Text=Model.ItemsC.ToString();
            this.txtItemsD.Text=Model.ItemsD.ToString();
            this.txtItemsE.Text=Model.ItemsE.ToString();
            this.txtItemsF.Text=Model.ItemsF.ToString();
            this.txtItemsG.Text=Model.ItemsG.ToString();
            this.txtItemsH.Text=Model.ItemsH.ToString();
            this.txtAnswerStr.Text=Model.AnswerStr.ToString();

            //�ж���Ŀ���ͣ�Ȼ������Panel����ʾ���
            if (Request.QueryString["FenLeiStr"].ToString() == "���")
            {
                this.Panel2.Visible = false;
                this.Panel1.Visible = true;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "�����")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
            }
            else if (Request.QueryString["FenLeiStr"].ToString() == "�����")
            {
                this.Panel1.Visible = false;
                this.Panel2.Visible = false;
                this.txtAnswerStr.Height = Unit.Parse("60");
                this.txtAnswerStr.TextMode = TextBoxMode.MultiLine;
            }
        }
    }