예제 #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
            { }
        }
    }
예제 #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
            { }
        }
    }
예제 #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;
     }
 }
예제 #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;
     }
 }