public static int QueryProblemInRangeStatPage(string UploadDateBegin, string UploadDateEnd, string IsHandled, string IsReviewed) { RoadSolution.BLL.Problem problembll = new RoadSolution.BLL.Problem(); int resultSingle = problembll.CountProblemBySearch(UploadDateBegin, UploadDateEnd, IsHandled, IsReviewed); return(resultSingle); }
public static string QueryProblemInRecheckPage(string BigClass, string SmallClass, string Title, string UploadDate, string Road, string ProblemID) { RoadSolution.BLL.Problem problembll = new RoadSolution.BLL.Problem(); string json = problembll.ListProblemsAllAttrBySearch(BigClass, SmallClass, Title, UploadDate, UploadDate, Road, ProblemID, true, false); //System.Web.Script.Serialization.JavaScriptSerializer jss = new System.Web.Script.Serialization.JavaScriptSerializer(); //RoadSolution.Model.Problem problem = jss.Deserialize<RoadSolution.Model.Problem>(json); //problem.UploadDate return(json); }
public static string QueryProblemInProblemDealPage(string BigClass, string SmallClass, string Title, string UploadDate, string Road, string IsHandled, string IsReviewed, string ProblemID) { int intIsReviewed = 0; if ("true".Equals(IsReviewed)) { intIsReviewed = 1; } int intIsHandled = 0; if ("true".Equals(IsHandled)) { intIsHandled = 1; } RoadSolution.BLL.Problem problembll = new RoadSolution.BLL.Problem(); string result = problembll.ListAllAttrAndAuthorname(BigClass, SmallClass, Title, UploadDate, Road, intIsHandled, intIsReviewed, ProblemID); return(result); }
protected void BtnConfirm_Click(object sender, EventArgs e) { string pid = Request.QueryString["ProblemID"]; //FupPhoto //判断是否有待上船的文件 if (FupPhoto.HasFile) { //设置文件保存的路径 string strPath = Server.MapPath("~/upload/recheckPhoto/") + Guid.NewGuid().ToString("N") + FupPhoto.FileName; // //保存文件 FupPhoto.SaveAs(strPath); //pid RoadSolution.BLL.Problem problemBll = new RoadSolution.BLL.Problem(); RoadSolution.Model.Problem problem = problemBll.GetModel(pid); problem.ReviewShot = strPath; problemBll.Update(problem); } }