tijian_tieying/web/Web/SystemManage/TreeListModify.aspx.cs

65 lines
2.7 KiB
C#
Raw Normal View History

2025-02-20 12:14:39 +08:00
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 SystemManage_TreeListModify : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ZWL.Common.PublicMethod.CheckSession();
ZWL.BLL.ERPTreeList Model = new ZWL.BLL.ERPTreeList();
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
this.txtTextStr.Text=Model.TextStr.ToString();
this.txtImageUrlStr.Text=Model.ImageUrlStr.ToString();
this.txtValueStr.Text=Model.ValueStr.ToString();
this.txtNavigateUrlStr.Text=Model.NavigateUrlStr.ToString();
this.txtTarget.Text=Model.Target.ToString();
this.txtParentID.Text=Model.ParentID.ToString();
this.txtQuanXianList.Text=Model.QuanXianList.ToString();
this.txtPaiXuStr.Text=Model.PaiXuStr.ToString();
this.SelClass.SelectedValue = Model.ParentClass;
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if (ZWL.Common.PublicMethod.IFExists("ValueStr", "ERPTreeList", int.Parse(Request.QueryString["ID"].ToString()), this.txtValueStr.Text) == true)
{
ZWL.BLL.ERPTreeList Model = new ZWL.BLL.ERPTreeList();
Model.ID = int.Parse(Request.QueryString["ID"].ToString());
Model.TextStr = this.txtTextStr.Text.ToString();
Model.ImageUrlStr = this.txtImageUrlStr.Text.ToString();
Model.ValueStr = this.txtValueStr.Text.ToString();
Model.NavigateUrlStr = this.txtNavigateUrlStr.Text.ToString();
Model.Target = this.txtTarget.Text.ToString();
Model.ParentID = int.Parse(this.txtParentID.Text);
Model.QuanXianList = this.txtQuanXianList.Text.ToString();
Model.PaiXuStr = int.Parse(this.txtPaiXuStr.Text);
Model.ParentClass = this.SelClass.SelectedItem.Value;
Model.Update();
//дϵͳ<CFB5><CDB3>־
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB>޸IJ˵<C4B2><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.txtTextStr.Text + ")";
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
MyRiZhi.Add();
ZWL.Common.MessageBox.ShowAndRedirect(this, "<22>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>޸ijɹ<C4B3><C9B9><EFBFBD>", "TreeList.aspx");
}
else
{
ZWL.Common.MessageBox.Show(this, "<22><>ǰָ<C7B0><D6B8><EFBFBD>ĺ<EFBFBD>̨<EFBFBD><CCA8>ֵ<EFBFBD>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ڣ<EFBFBD>Ϊ<EFBFBD>˱<EFBFBD><CBB1><EFBFBD>Ψһ<CEA8>ԣ<EFBFBD><D4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>");
}
}
}