/// <summary> /// 修改项目 /// </summary> private void ReviseProject() { ProjectClass prj = new ProjectClass(); HttpCookie UserCookie = Request.Cookies["Username"]; String Username = UserCookie.Value.ToString(); if (DateTime.Parse(this.txtStartDate.Text.ToString()) > DateTime.Parse(this.txtEndDate.Text.ToString())) { Response.Write("<script language=javascript>alert('开始时间不能大于结束时间!');</script>"); } else { try { prj.Revise(Int32.Parse(ClassID), this.txtClassName.Value.ToString(), this.txtBrief.Value.ToString(), Int32.Parse(this.Status.SelectedIndex.ToString()), Int32.Parse(this.txtScale.Value.ToString()), DateTime.Parse(this.txtStartDate.Text.ToString()), DateTime.Parse(this.txtEndDate.Text.ToString())); prj = null; Response.Write("<script language=javascript>alert('修改成功!');parent.LeftFrame.location='ProjectTreeView.aspx?classID=" + ClassID + "';</script>"); } catch (Exception ex) { UDS.Components.Error.Log(ex.ToString()); Server.Transfer("../Error.aspx"); } } }