Пример #1
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());
    }
Пример #2
0
 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();
 }
Пример #3
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();

        }
    }
Пример #4
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;
            }
        }
    }