protected void Button5_Click(object sender, EventArgs e) { Image1.Visible = true; Image1.ImageUrl = "~/Image/对号.png"; Image4.Visible = true; Image4.ImageUrl = "~/Image/对号.png"; GridView1.Visible = false; DAL.Sort so = new DAL.Sort(); so.sort("Room", "roomNum"); Warehouse.Tools.roomNum ro = new Tools.roomNum(); TextBox10.Text = ro.protect_roomNum(); if (GridView1.Visible == true) { Button1.Visible = true; Button4.Visible = true; Button5.Visible = true; ListBox1.Visible = true; TextBox1.Visible = true; } else if (GridView1.Visible == false) { Button1.Visible = false; Button4.Visible = false; Button5.Visible = false; ListBox1.Visible = false; TextBox1.Visible = false; } Div1.Visible = true; Button9.Text = "增加"; }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Staff", "staffNum"); if (!IsPostBack) { Div1.Style["display"] = "none"; } }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Chest", "chestNum"); if (!IsPostBack) { Div1.Visible = false; } cb.Bind2(GridView1); }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Position", "positionNum"); if (!IsPostBack) { departmentCreate.Style["display"] = "none"; Div1.Style["display"] = "none"; } pb.Bind2(GridView1); }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Inin", "inID"); if (!IsPostBack) { gb.Bind1(GridView1); rg.Refresh("select * from Inin order by num", "inID", GridView1); Div1.Visible = false; } gb.Bind2(GridView1); }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Department", "departId"); int a = Convert.ToInt32(qu.query("select count(*) from Department where 1=1")); TextBox6.Style["Rows"] = a.ToString(); if (!IsPostBack) { Div1.Style["display"] = "none"; } }
protected void Page_Load(object sender, EventArgs e) { DAL.Sort so = new DAL.Sort(); so.sort("Outout", "outID"); if (!IsPostBack) { gb.Bind3(GridView1); gb.Bind1(GridView2); rg.Refresh("select * from Outout order by num", "", GridView1); } gb.Bind4(GridView1); gb.Bind2(GridView2); }
protected void Page_Load(object sender, EventArgs e) { if (ListBox3.Text != "") { Image4.Visible = true; Image4.ImageUrl = "~/Image/对号.png"; } else if (ListBox3.Text == "") { Image4.Visible = true; Image4.ImageUrl = "~/Image/错号.png"; } if (!IsPostBack) { DAL.Sort so = new DAL.Sort(); so.sort("Goodstype", "goodsTypeNum"); gb.Bind1(GridView1); rg.Refresh("select * from Goodstype order by num", "goodsTypeNum", GridView1); } gb.Bind2(GridView1); }
protected void Button5_Click(object sender, EventArgs e) { GridView1.Visible = false; DAL.Sort so = new DAL.Sort(); so.sort("Room", "roomNum"); if (GridView1.Visible == true) { Button1.Visible = true; Button4.Visible = true; Button5.Visible = true; ListBox1.Visible = true; TextBox1.Visible = true; } else if (GridView1.Visible == false) { Button1.Visible = false; Button4.Visible = false; Button5.Visible = false; ListBox1.Visible = false; TextBox1.Visible = false; } Div1.Visible = true; Button9.Text = "增加"; }