Exemple #1
0
        protected void Btn_Solve_Click(object sender, EventArgs e)
        {
            string state  = "1";
            string idList = GetSelIDList();

            if (idList.Trim().Length == 0)
            {
                return;
            }
            BLL.DistributionManager manager = new BLL.DistributionManager();
            manager.UpdateList(state, idList);
            Response.Write("<script language=javascript>alert('标记成功!')</script>");
            NewBind();
            HisBind();


            Model.Feedback      feedback = new Model.Feedback();
            BLL.FeedbackManager Fmanager = new FeedbackManager();


            BLL.AdminManager adminManager1 = new BLL.AdminManager();
            Model.Admin      admin1        = adminManager1.GetModel1(Session["GadminID"].ToString());
            int ID = Convert.ToInt32(admin1.adminID);

            string Str1 = "solutionState='" + state + "'";
            string Str2 = "adminID='" + ID + "' and  state =  '" + state + "'";

            Fmanager.UpdateSolution(Str1, Str2);
        }
Exemple #2
0
        protected void NewBind()
        {
            Model.Distribution      distribution  = new Model.Distribution();
            BLL.DistributionManager manager       = new BLL.DistributionManager();
            BLL.AdminManager        adminManager1 = new BLL.AdminManager();
            Model.Admin             admin1        = adminManager1.GetModel1(Session["GadminID"].ToString());

            int    ID  = Convert.ToInt32(admin1.adminID);
            string Str = " adminID='" + ID + "'and state !=  '" + "1" + "'";

            GridView1.DataSource = manager.GetList(Str);
            GridView1.DataBind();
        }