Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
            MyDanWei.GetModel();
            if (MyDanWei != null)
            {
                TextBox1.Text = MyDanWei.DanWeiName;
                TextBox2.Text = MyDanWei.Tel;
                TextBox3.Text = MyDanWei.Fax;
                TextBox4.Text = MyDanWei.YouBian;
                TextBox5.Text = MyDanWei.Address;
                TextBox6.Text = MyDanWei.WebUrl;
                TextBox7.Text = MyDanWei.Email;
                TextBox8.Text = MyDanWei.KaiHuHang;
                TextBox9.Text = MyDanWei.ZhangHao;
            }


            //设定按钮权限
            ImageButton1.Visible = ZWL.Common.PublicMethod.StrIFIn("|084M|", ZWL.Common.PublicMethod.GetSessionValue("QuanXian"));

            //判断是否属于查询模块
            try
            {
                string SerchTypeStr = Request.QueryString["Type"].ToString();
                this.ImageButton1.Visible = false;
            }
            catch
            { }
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
            MyDanWei.GetModel();
            if (MyDanWei!=null)
            {
                TextBox1.Text = MyDanWei.DanWeiName;
                TextBox2.Text = MyDanWei.Tel;
                TextBox3.Text = MyDanWei.Fax;
                TextBox4.Text = MyDanWei.YouBian;
                TextBox5.Text = MyDanWei.Address;
                TextBox6.Text = MyDanWei.WebUrl;
                TextBox7.Text = MyDanWei.Email;
                TextBox8.Text = MyDanWei.KaiHuHang;
                TextBox9.Text = MyDanWei.ZhangHao;
            }

            //设定按钮权限
            btn_Sub.Visible = ZWL.Common.PublicMethod.StrIFIn("|084M|", ZWL.Common.PublicMethod.GetSessionValue("QuanXian"));

            //判断是否属于查询模块
            try
            {
                string SerchTypeStr = Request.QueryString["Type"].ToString();
                this.btn_Sub.Visible = false;
            }
            catch
            { }
        }
    }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
         MyDanWei.GetModel();
         Label1.Text = MyDanWei.DanWeiName;
         Label2.Text = MyDanWei.Tel;
         Label3.Text = MyDanWei.Fax;
         Label4.Text = MyDanWei.YouBian;
         Label5.Text = MyDanWei.Address;
         Label6.Text = MyDanWei.WebUrl;
         Label7.Text = MyDanWei.Email;
         Label8.Text = MyDanWei.KaiHuHang;
         Label9.Text = MyDanWei.ZhangHao;
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
         MyDanWei.GetModel();
         Label1.Text = MyDanWei.DanWeiName;
         Label2.Text = MyDanWei.Tel;
         Label3.Text = MyDanWei.Fax;
         Label4.Text = MyDanWei.YouBian;
         Label5.Text = MyDanWei.Address;
         Label6.Text = MyDanWei.WebUrl;
         Label7.Text = MyDanWei.Email;
         Label8.Text = MyDanWei.KaiHuHang;
         Label9.Text = MyDanWei.ZhangHao;
     }
 }
Ejemplo n.º 5
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
        MyDanWei.DanWeiName = TextBox1.Text.Trim();
        MyDanWei.Tel        = TextBox2.Text.Trim();
        MyDanWei.Fax        = TextBox3.Text;
        MyDanWei.YouBian    = TextBox4.Text;
        MyDanWei.Address    = TextBox5.Text;
        MyDanWei.WebUrl     = TextBox6.Text;
        MyDanWei.Email      = TextBox7.Text;
        MyDanWei.KaiHuHang  = TextBox8.Text;
        MyDanWei.ZhangHao   = TextBox9.Text;
        MyDanWei.Update();
        ZWL.Common.MessageBox.Show(this, "修改单位信息成功!");

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改单位信息";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
    }
Ejemplo n.º 6
0
    protected void btn_Sub_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo();
        MyDanWei.DanWeiName = TextBox1.Text.Trim();
        MyDanWei.Tel = TextBox2.Text.Trim();
        MyDanWei.Fax = TextBox3.Text;
        MyDanWei.YouBian = TextBox4.Text;
        MyDanWei.Address = TextBox5.Text;
        MyDanWei.WebUrl = TextBox6.Text;
        MyDanWei.Email = TextBox7.Text;
        MyDanWei.KaiHuHang = TextBox8.Text;
        MyDanWei.ZhangHao = TextBox9.Text;
        MyDanWei.Update();
        Response.Write("<script>alert('电子围栏信息修改成功!');</script>");
        //ZWL.Common.MessageBox.Show(this, "修改单位信息成功!");

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改单位信息";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
    }