86 lines
3.1 KiB
C#
86 lines
3.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.Configuration;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Security;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
using System.Web.UI.WebControls.WebParts;
|
|||
|
|
using System.Web.UI.HtmlControls;
|
|||
|
|
|
|||
|
|
public partial class DocFile_TiKuModify : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
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();
|
|||
|
|
|
|||
|
|
|
|||
|
|
//<2F>ж<EFBFBD><D0B6><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ͣ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Panel<65><6C><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
|||
|
|
if (Request.QueryString["FenLeiStr"].ToString() == "<22>ж<EFBFBD><D0B6><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
this.Panel2.Visible = false;
|
|||
|
|
this.Panel1.Visible = true;
|
|||
|
|
}
|
|||
|
|
else if (Request.QueryString["FenLeiStr"].ToString() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
this.Panel1.Visible = false;
|
|||
|
|
this.Panel2.Visible = false;
|
|||
|
|
}
|
|||
|
|
else if (Request.QueryString["FenLeiStr"].ToString() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
this.Panel1.Visible = false;
|
|||
|
|
this.Panel2.Visible = false;
|
|||
|
|
this.txtAnswerStr.Height = Unit.Parse("60");
|
|||
|
|
this.txtAnswerStr.TextMode = TextBoxMode.MultiLine;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
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();
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.txtTitleStr.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
ZWL.Common.MessageBox.ShowAndRedirect(this, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ijɹ<C4B3><C9B9><EFBFBD>", "TiKu.aspx?TiKuID=" + Request.QueryString["TiKuID"].ToString() + "&FenLeiStr=" + Request.QueryString["FenLeiStr"].ToString());
|
|||
|
|
}
|
|||
|
|
}
|