form_edit.aspx.cs
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:27k
源码类别:
OA系统
开发平台:
ASP/ASPX
- using System;
- using System.Data;
- using System.Data.SqlClient;
- 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 web_new_repair_form_edit : System.Web.UI.Page
- {
- int flag = 0;
- protected void Page_Load(object sender, EventArgs e)
- {
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- if (!IsPostBack)
- {
- dl_company.Items.Clear();
- dl_company.Items.Add("所有厂商");
- SqlCommand sqlcom1 = new SqlCommand("select company from OA_COMPANY order by id", conn);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- dl_company.Items.Add(dr1["company"].ToString());
- }
- }
- dr1.Close();
- dl_type.Items.Clear();
- dl_type.Items.Add("所有类型");
- SqlCommand sqlcom3 = new SqlCommand("select type from OA_UNIT_TYPE order by id", conn);
- SqlDataReader dr3 = sqlcom3.ExecuteReader();
- if (dr3.HasRows)
- {
- while (dr3.Read())
- {
- dl_type.Items.Add(dr3["type"].ToString());
- }
- }
- dr3.Close();
- dl_name.Items.Clear();
- dl_name.Items.Add("所有设备");
- SqlCommand sqlcom = new SqlCommand("select eq_name from OA_UNIT_DETAIL order by id", conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- dl_name.Items.Add(dr["eq_name"].ToString());
- }
- }
- dr.Close();
- flag = 2;
- GridView1.DataBind();
- MultiView2.ActiveViewIndex = -1;
- MultiView1.ActiveViewIndex = -1;
- bind4();
- }
- conn.Close();
- }
- protected void Begindate_SelectionChanged(object sender, EventArgs e)
- {
- Begindate.Visible = false;
- string year = Begindate.SelectedDate.Year.ToString();
- string month = Begindate.SelectedDate.Month.ToString();
- if (month.Length == 1)
- {
- month = "0" + month;
- }
- string day = Begindate.SelectedDate.Day.ToString();
- if (day.Length == 1)
- {
- day = "0" + day;
- }
- b_time.Text = year + month + day + "000000";
- b_time.Focus();
- }
- protected void Enddate_SelectionChanged(object sender, EventArgs e)
- {
- Enddate.Visible = false;
- string year = Enddate.SelectedDate.Year.ToString();
- string month = Enddate.SelectedDate.Month.ToString();
- if (month.Length == 1)
- {
- month = "0" + month;
- }
- string day = Enddate.SelectedDate.Day.ToString();
- if (day.Length == 1)
- {
- day = "0" + day;
- }
- e_time.Text = year + month + day + "000000";
- e_time.Focus();
- }
- protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
- {
- if (Enddate.Visible == true)
- {
- Enddate.Visible = false;
- Enddate.Focus();
- }
- else
- {
- Enddate.Visible = true;
- Enddate.Focus();
- }
- }
- protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
- {
- if (Begindate.Visible == true)
- {
- Begindate.Visible = false;
- Begindate.Focus();
- }
- else
- {
- Begindate.Visible = true;
- Begindate.Focus();
- }
- }
- protected void dl_type_SelectedIndexChanged(object sender, EventArgs e)
- {
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- if (dl_type.SelectedItem.ToString().Equals("所有类型"))
- {
- dl_name.Items.Clear();
- dl_name.Items.Add("所有设备");
- SqlCommand sqlcom1 = new SqlCommand("select eq_name from OA_UNIT_DETAIL order by id", conn);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- dl_name.Items.Add(dr1["eq_name"].ToString());
- }
- }
- dr1.Close();
- }
- else
- {
- dl_name.Items.Clear();
- dl_name.Items.Add("所有设备");
- SqlCommand sqlcom = new SqlCommand("select eq_name from OA_UNIT_DETAIL where eq_type='" + dl_type.SelectedItem.ToString() + "'", conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- dl_name.Items.Add(dr["eq_name"].ToString());
- }
- }
- dr.Close();
- }
- conn.Close();
- }
- protected void dl_company_SelectedIndexChanged(object sender, EventArgs e)
- {
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- dl_type.Items.Clear();
- dl_type.Items.Add("所有类型");
- if (dl_company.SelectedItem.ToString().Equals("所有厂商"))
- {
- SqlCommand sqlcom3 = new SqlCommand("select type from OA_UNIT_TYPE order by id", conn);
- SqlDataReader dr3 = sqlcom3.ExecuteReader();
- if (dr3.HasRows)
- {
- while (dr3.Read())
- {
- dl_type.Items.Add(dr3["type"].ToString());
- }
- }
- dr3.Close();
- }
- else
- {
- SqlCommand sqlcom = new SqlCommand("select equipment from OA_company where company='" + dl_company.SelectedItem.ToString() + "'", conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- dl_type.Items.Add(dr["equipment"].ToString());
- }
- }
- dr.Close();
- }
- conn.Close();
- }
- protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- int i;
- //执行循环,保证每条数据都可以更新
- for (i = -1; i < GridView1.Rows.Count; i++)
- {
- //首先判断是否是数据行
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- //当鼠标停留时更改背景色
- e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#00A9FF'");
- //当鼠标移开时还原背景色
- e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
- e.Row.Attributes.Add("onclick", "javascript:varwin=window.open('select_edit.aspx?form_id=" + GridView1.DataKeys[e.Row.RowIndex].Value.ToString() + "',null,'width=800,height=600')");
- //e.Row.Attributes.Add("onclick", "location.href='select.aspx?form_id=" + GridView1.DataKeys[e.Row.RowIndex].Value.ToString() + "'");
- }
- }
- }
- protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
- {
- GridView1.PageIndex = e.NewPageIndex;
- if (flag == 0)
- {
- bind2();
- }
- else if (flag == 1)
- {
- bind3();
- }
- else if (flag == 2)
- {
- bind4();
- }
- else if (flag == 3)
- {
- bind1();
- }
- else
- {
- }
- }
- public void bind1()
- {
- MultiView2.ActiveViewIndex = 0;
- User user = (User)Session["user"];
- string department = user.Department.Name;
- ArrayList array = new ArrayList();
- MultiView2.ActiveViewIndex = 0;
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- DataSet ds = new DataSet();
- DataTable dt = new DataTable();
- dt.Columns.Add("no", typeof(string));
- dt.Columns.Add("form_id", typeof(string));
- dt.Columns.Add("bxperson", typeof(string));
- dt.Columns.Add("level", typeof(string));
- dt.Columns.Add("department", typeof(string));
- dt.Columns.Add("tel", typeof(string));
- dt.Columns.Add("date", typeof(string));
- dt.Columns.Add("lbperson", typeof(string));
- dt.Columns.Add("type", typeof(string));
- dt.Columns.Add("equipment", typeof(string));
- dt.Columns.Add("comment", typeof(string));
- dt.Columns.Add("company", typeof(string));
- dt.Columns.Add("destine_time", typeof(string));
- dt.Columns.Add("complete_time", typeof(string));
- dt.Columns.Add("confirm", typeof(string));
- dt.Columns.Add("remark", typeof(string));
- string sqlstr = "select f.area as area,f.level as level,f.bxperson as bxperson,f.form_id as form_id,f.department as department,f.lbperson as lbperson,f.type as type,f.equipment as equipment,f.comment as comment,f.create_time as create_time,g.company as company,g.destine_time as destine_time,g.complete_time as complete_time,g.confirm as confirm,g.remark as remark from oa_repair as f,oa_repair_d as g where g.form_id=f.form_id AND g.destine_time IS NOT NULL and f.department='" + department.Trim() + "'";
- if (!dl_company.SelectedItem.ToString().Equals("所有厂商"))
- {
- sqlstr = sqlstr + " and g.company='" + dl_company.SelectedItem.ToString() + "'";
- }
- if (!dl_type.SelectedItem.ToString().Equals("所有类型"))
- {
- sqlstr = sqlstr + " and f.type='" + dl_type.SelectedItem.ToString() + "'";
- }
- if (!dl_name.SelectedItem.ToString().Equals("所有设备"))
- {
- sqlstr = sqlstr + " and f.equipment='" + dl_name.SelectedItem.ToString() + "'";
- }
- if ((!b_time.Text.Equals("")) && (!e_time.Text.Equals("")))
- {
- sqlstr = sqlstr + " and f.form_id between '" + b_time.Text.ToString().Trim() + "' and '" + e_time.Text.ToString() + "'";
- }
- sqlstr = sqlstr + " order by form_id desc";
- SqlCommand sqlcom = new SqlCommand(sqlstr, conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- DataRow row = dt.NewRow();
- row["no"] = dr["area"].ToString().Trim();
- row["bxperson"] = dr["bxperson"].ToString().Trim();
- row["level"] = dr["level"].ToString().Trim();
- row["form_id"] = dr["form_id"].ToString();
- array.Add(dr["form_id"].ToString());
- row["department"] = dr["department"].ToString();
- SqlConnection conn1 = dbConnection.getConnection();
- conn1.Open();
- SqlCommand sqlcom2 = new SqlCommand("select tel from oa_department where name='" + dr["department"] + "'", conn1);
- SqlDataReader dr2 = sqlcom2.ExecuteReader();
- if (dr2.HasRows)
- {
- while (dr2.Read())
- {
- row["tel"] = dr2["tel"].ToString();
- }
- }
- dr2.Close();
- row["date"] = dr["create_time"].ToString();
- SqlCommand sqlcom1 = new SqlCommand("select emp_name from oa_employee where id='" + dr["lbperson"].ToString().Trim() + "'", conn1);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- row["lbperson"] = dr1["emp_name"].ToString();
- }
- }
- dr1.Close();
- row["type"] = dr["type"].ToString();
- row["equipment"] = dr["equipment"].ToString();
- row["comment"] = dr["comment"].ToString();
- row["company"] = dr["company"].ToString();
- row["destine_time"] = dr["destine_time"].ToString();
- row["complete_time"] = dr["complete_time"].ToString();
- row["confirm"] = dr["confirm"].ToString();
- row["remark"] = dr["remark"].ToString();
- dt.Rows.Add(row);
- conn1.Close();
- }
- }
- dr.Close();
- conn.Close();
- ds.Tables.Add(dt);
- GridView1.DataSource = ds;
- GridView1.DataKeyNames = new string[] { "form_id" };
- GridView1.DataBind();
- Session["s_1"] = array;
- }
- public void bind2()
- {
- MultiView2.ActiveViewIndex = 0;
- User user = (User)Session["user"];
- string department = user.Department.Name;
- ArrayList array = new ArrayList();
- MultiView2.ActiveViewIndex = 0;
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- DataSet ds = new DataSet();
- DataTable dt = new DataTable();
- dt.Columns.Add("no", typeof(string));
- dt.Columns.Add("form_id", typeof(string));
- dt.Columns.Add("bxperson", typeof(string));
- dt.Columns.Add("level", typeof(string));
- dt.Columns.Add("department", typeof(string));
- dt.Columns.Add("tel", typeof(string));
- dt.Columns.Add("date", typeof(string));
- dt.Columns.Add("lbperson", typeof(string));
- dt.Columns.Add("type", typeof(string));
- dt.Columns.Add("equipment", typeof(string));
- dt.Columns.Add("comment", typeof(string));
- dt.Columns.Add("company", typeof(string));
- dt.Columns.Add("destine_time", typeof(string));
- dt.Columns.Add("complete_time", typeof(string));
- dt.Columns.Add("confirm", typeof(string));
- dt.Columns.Add("remark", typeof(string));
- string sqlstr = "select f.area as area,f.level as level,f.bxperson as bxperson,f.form_id as form_id,f.department as department,f.lbperson as lbperson,f.type as type,f.equipment as equipment,f.comment as comment,f.create_time as create_time,g.company as company,g.destine_time as destine_time,g.complete_time as complete_time,g.confirm as confirm,g.remark as remark from oa_repair as f,oa_repair_d as g where g.form_id=f.form_id AND g.destine_time IS NOT NULL and f.department='" + department.Trim() + "' order by f.form_id desc";
- SqlCommand sqlcom = new SqlCommand(sqlstr, conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- DataRow row = dt.NewRow();
- row["no"] = dr["area"].ToString().Trim();
- row["bxperson"] = dr["bxperson"].ToString().Trim();
- row["level"] = dr["level"].ToString().Trim();
- row["form_id"] = dr["form_id"].ToString();
- array.Add(dr["form_id"].ToString());
- row["department"] = dr["department"].ToString();
- SqlConnection conn1 = dbConnection.getConnection();
- conn1.Open();
- SqlCommand sqlcom2 = new SqlCommand("select tel from oa_department where name='" + dr["department"] + "'", conn1);
- SqlDataReader dr2 = sqlcom2.ExecuteReader();
- if (dr2.HasRows)
- {
- while (dr2.Read())
- {
- row["tel"] = dr2["tel"].ToString();
- }
- }
- dr2.Close();
- row["date"] = dr["create_time"].ToString();
- SqlCommand sqlcom1 = new SqlCommand("select emp_name from oa_employee where id='" + dr["lbperson"].ToString().Trim() + "'", conn1);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- row["lbperson"] = dr1["emp_name"].ToString();
- }
- }
- dr1.Close();
- row["type"] = dr["type"].ToString();
- row["equipment"] = dr["equipment"].ToString();
- row["comment"] = dr["comment"].ToString();
- row["company"] = dr["company"].ToString();
- row["destine_time"] = dr["destine_time"].ToString();
- row["complete_time"] = dr["complete_time"].ToString();
- row["confirm"] = dr["confirm"].ToString();
- row["remark"] = dr["remark"].ToString();
- dt.Rows.Add(row);
- conn1.Close();
- }
- }
- dr.Close();
- conn.Close();
- ds.Tables.Add(dt);
- GridView1.DataSource = ds;
- GridView1.DataKeyNames = new string[] { "form_id" };
- GridView1.DataBind();
- Session["s_1"] = array;
- }
- public void bind3()
- {
- MultiView2.ActiveViewIndex = 0;
- User user = (User)Session["user"];
- string department = user.Department.Name;
- ArrayList array = new ArrayList();
- MultiView2.ActiveViewIndex = 0;
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- DataSet ds = new DataSet();
- DataTable dt = new DataTable();
- dt.Columns.Add("no", typeof(string));
- dt.Columns.Add("form_id", typeof(string));
- dt.Columns.Add("bxperson", typeof(string));
- dt.Columns.Add("level", typeof(string));
- dt.Columns.Add("department", typeof(string));
- dt.Columns.Add("tel", typeof(string));
- dt.Columns.Add("date", typeof(string));
- dt.Columns.Add("lbperson", typeof(string));
- dt.Columns.Add("type", typeof(string));
- dt.Columns.Add("equipment", typeof(string));
- dt.Columns.Add("comment", typeof(string));
- dt.Columns.Add("company", typeof(string));
- dt.Columns.Add("destine_time", typeof(string));
- dt.Columns.Add("complete_time", typeof(string));
- dt.Columns.Add("confirm", typeof(string));
- dt.Columns.Add("remark", typeof(string));
- string sqlstr = "select f.area as area,f.level as level,f.bxperson as bxperson,f.form_id as form_id,f.department as department,f.lbperson as lbperson,f.type as type,f.equipment as equipment,f.comment as comment,f.create_time as create_time,g.company as company,g.destine_time as destine_time,g.complete_time as complete_time,g.confirm as confirm,g.remark as remark from oa_repair as f,oa_repair_d as g where g.form_id=f.form_id AND g.complete_time IS not NULL AND g.destine_time IS NOT NULL and f.department='" + department.Trim() + "' order by f.form_id desc";
- SqlCommand sqlcom = new SqlCommand(sqlstr, conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- DataRow row = dt.NewRow();
- row["no"] = dr["area"].ToString().Trim();
- row["bxperson"] = dr["bxperson"].ToString().Trim();
- row["level"] = dr["level"].ToString().Trim();
- row["form_id"] = dr["form_id"].ToString();
- array.Add(dr["form_id"].ToString());
- row["department"] = dr["department"].ToString();
- SqlConnection conn1 = dbConnection.getConnection();
- conn1.Open();
- SqlCommand sqlcom2 = new SqlCommand("select tel from oa_department where name='" + dr["department"] + "'", conn1);
- SqlDataReader dr2 = sqlcom2.ExecuteReader();
- if (dr2.HasRows)
- {
- while (dr2.Read())
- {
- row["tel"] = dr2["tel"].ToString();
- }
- }
- dr2.Close();
- row["date"] = dr["create_time"].ToString();
- SqlCommand sqlcom1 = new SqlCommand("select emp_name from oa_employee where id='" + dr["lbperson"].ToString().Trim() + "'", conn1);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- row["lbperson"] = dr1["emp_name"].ToString();
- }
- }
- dr1.Close();
- row["type"] = dr["type"].ToString();
- row["equipment"] = dr["equipment"].ToString();
- row["comment"] = dr["comment"].ToString();
- row["company"] = dr["company"].ToString();
- row["destine_time"] = dr["destine_time"].ToString();
- row["complete_time"] = dr["complete_time"].ToString();
- row["confirm"] = dr["confirm"].ToString();
- row["remark"] = dr["remark"].ToString();
- dt.Rows.Add(row);
- conn1.Close();
- }
- }
- dr.Close();
- conn.Close();
- ds.Tables.Add(dt);
- GridView1.DataSource = ds;
- GridView1.DataKeyNames = new string[] { "form_id" };
- GridView1.DataBind();
- Session["s_1"] = array;
- }
- public void bind4()
- {
- MultiView2.ActiveViewIndex = 0;
- User user = (User)Session["user"];
- string department = user.Department.Name;
- ArrayList array = new ArrayList();
- MultiView2.ActiveViewIndex = 0;
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- DataSet ds = new DataSet();
- DataTable dt = new DataTable();
- dt.Columns.Add("no", typeof(string));
- dt.Columns.Add("form_id", typeof(string));
- dt.Columns.Add("bxperson", typeof(string));
- dt.Columns.Add("level", typeof(string));
- dt.Columns.Add("department", typeof(string));
- dt.Columns.Add("tel", typeof(string));
- dt.Columns.Add("date", typeof(string));
- dt.Columns.Add("lbperson", typeof(string));
- dt.Columns.Add("type", typeof(string));
- dt.Columns.Add("equipment", typeof(string));
- dt.Columns.Add("comment", typeof(string));
- dt.Columns.Add("company", typeof(string));
- dt.Columns.Add("destine_time", typeof(string));
- dt.Columns.Add("complete_time", typeof(string));
- dt.Columns.Add("confirm", typeof(string));
- dt.Columns.Add("remark", typeof(string));
- string sqlstr = "select f.area as area,f.level as level,f.bxperson as bxperson,f.form_id as form_id,f.department as department,f.lbperson as lbperson,f.type as type,f.equipment as equipment,f.comment as comment,f.create_time as create_time,g.company as company,g.destine_time as destine_time,g.complete_time as complete_time,g.confirm as confirm,g.remark as remark from oa_repair as f,oa_repair_d as g where g.form_id=f.form_id AND g.complete_time IS NULL AND g.destine_time IS NOT NULL and f.department='" + department.Trim() + "' order by f.form_id desc";
- SqlCommand sqlcom = new SqlCommand(sqlstr, conn);
- SqlDataReader dr = sqlcom.ExecuteReader();
- if (dr.HasRows)
- {
- while (dr.Read())
- {
- DataRow row = dt.NewRow();
- row["no"] = dr["area"].ToString().Trim();
- row["bxperson"] = dr["bxperson"].ToString().Trim();
- row["level"] = dr["level"].ToString().Trim();
- row["form_id"] = dr["form_id"].ToString();
- array.Add(dr["form_id"].ToString());
- row["department"] = dr["department"].ToString();
- SqlConnection conn1 = dbConnection.getConnection();
- conn1.Open();
- SqlCommand sqlcom2 = new SqlCommand("select tel from oa_department where name='" + dr["department"] + "'", conn1);
- SqlDataReader dr2 = sqlcom2.ExecuteReader();
- if (dr2.HasRows)
- {
- while (dr2.Read())
- {
- row["tel"] = dr2["tel"].ToString();
- }
- }
- dr2.Close();
- row["date"] = dr["create_time"].ToString();
- SqlCommand sqlcom1 = new SqlCommand("select emp_name from oa_employee where id='" + dr["lbperson"].ToString().Trim() + "'", conn1);
- SqlDataReader dr1 = sqlcom1.ExecuteReader();
- if (dr1.HasRows)
- {
- while (dr1.Read())
- {
- row["lbperson"] = dr1["emp_name"].ToString();
- }
- }
- dr1.Close();
- row["type"] = dr["type"].ToString();
- row["equipment"] = dr["equipment"].ToString();
- row["comment"] = dr["comment"].ToString();
- row["company"] = dr["company"].ToString();
- row["destine_time"] = dr["destine_time"].ToString();
- row["complete_time"] = dr["complete_time"].ToString();
- row["confirm"] = dr["confirm"].ToString();
- row["remark"] = dr["remark"].ToString();
- dt.Rows.Add(row);
- conn1.Close();
- }
- }
- dr.Close();
- conn.Close();
- ds.Tables.Add(dt);
- GridView1.DataSource = ds;
- GridView1.DataKeyNames = new string[] { "form_id" };
- GridView1.DataBind();
- Session["s_1"] = array;
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- bind1();
- MultiView1.ActiveViewIndex = -1;
- MultiView1.ActiveViewIndex = -1;
- }
- protected void LinkButton1_Click(object sender, EventArgs e)
- {
- flag = 0;
- GridView1.DataBind();
- MultiView2.ActiveViewIndex = -1;
- MultiView1.ActiveViewIndex = -1;
- bind2();
- }
- protected void LinkButton2_Click(object sender, EventArgs e)
- {
- flag = 1;
- GridView1.DataBind();
- MultiView2.ActiveViewIndex = -1;
- MultiView1.ActiveViewIndex = -1;
- bind3();
- }
- protected void LinkButton3_Click(object sender, EventArgs e)
- {
- flag = 2;
- GridView1.DataBind();
- MultiView2.ActiveViewIndex = -1;
- MultiView1.ActiveViewIndex = -1;
- bind4();
- }
- protected void LinkButton4_Click(object sender, EventArgs e)
- {
- flag = 3;
- MultiView1.ActiveViewIndex = 0;
- MultiView2.ActiveViewIndex = -1;
- }
- }