public ActionResult AjaxMaintainQuery() { string sysNoText = Request.Form["SysNo[]"]; if (!string.IsNullOrEmpty(sysNoText)) { int sysNo = 0; int.TryParse(sysNoText, out sysNo); if (sysNo > 0) { int?currentSellerSysNo = null; int currentSellerSysNoValue = UserAuthHelper.GetCurrentUser().SellerSysNo; if (currentSellerSysNoValue > 0) { currentSellerSysNo = currentSellerSysNoValue; } var result = ProductMatchedTradingService.GetProductMatchedTradingFactoryReply(sysNo, currentSellerSysNo); return(AjaxGridJson(result)); } } return(Json(1)); }
public ActionResult AjaxSaveReplay() { string sysNoText = Request.Form["SysNo"]; int sysNo = 0; int.TryParse(sysNoText, out sysNo); if (sysNo > 0) { string content = Request.Form["Content"]; if (!string.IsNullOrEmpty(content)) { ProductMatchedTradingReplyInfo entity = new ProductMatchedTradingReplyInfo(); entity.ReplyContent = content; entity.MatchedTradingSysNo = sysNo; entity.SellerSysNo = UserAuthHelper.GetCurrentUser().SellerSysNo; entity.Status = "A"; entity.StatusValue = "A"; entity.Type = "M"; //entity.NeedAdditionalText = "N"; entity.InUser = UserAuthHelper.GetCurrentUser().UserID; //entity.InUser = UserAuthHelper.GetCurrentUser().SellerName; entity.InDate = DateTime.Now; ProductMatchedTradingService.AddProductMatchedTradingReply(entity); return(Json(entity)); } } return(Json(1)); }
public ActionResult AjaxQuery() { ProductMatchedTradingQueryFilter queryCriteria = BuildQueryFilterEntity <ProductMatchedTradingQueryFilter>(); queryCriteria.SortFields = "ProductSysNo"; int?currentSellerSysNo = null; int currentSellerSysNoValue = UserAuthHelper.GetCurrentUser().SellerSysNo; if (currentSellerSysNoValue > 0) { currentSellerSysNo = currentSellerSysNoValue; } queryCriteria.SellerSysNo = currentSellerSysNo; QueryResult <ProductMatchedTradingQueryBasicInfo> result = ProductMatchedTradingService.QueryProductMatchedTradingBasicInfoList(queryCriteria); return(AjaxGridJson(result)); }
public ActionResult AjaxChangeStatus() { List <int> sysNoList = new List <int>(); string sysNoText = Request.Form["SysNo"]; string statusText = Request.Form["Status"]; string[] array = sysNoText.Split(','); foreach (var item in array) { int sysNo = 0; if (int.TryParse(item, out sysNo)) { sysNoList.Add(sysNo); } } string currentUser = UserAuthHelper.GetCurrentUser().UserID; if (sysNoList.Count > 0) { //审核 if (statusText == "A") { ProductMatchedTradingService.BatchSetProductMatchedTradingValid(sysNoList, currentUser); } //作废 else if (statusText == "D") { ProductMatchedTradingService.BatchSetProductMatchedTradingInvalid(sysNoList, currentUser); } //阅读 else if (statusText == "E") { ProductMatchedTradingService.BatchSetProductMatchedTradingRead(sysNoList, currentUser); } } return(Json(1)); }
/// <summary> /// 回复页面 /// </summary> /// <returns></returns> public ActionResult Maintain() { string sysNoText = Request["SysNo"]; if (!string.IsNullOrEmpty(sysNoText)) { int sysNo = 0; int.TryParse(sysNoText, out sysNo); ProductMatchedTradingInfo entity = ProductMatchedTradingService.LoadProductMatchedTradingWithoutReply(sysNo); if (entity == null) { return(RedirectToAction("Index", "ProductMatchedTrading")); } ViewBag.ProductMatchedTradingInfo = entity; } else { return(RedirectToAction("Index", "ProductMatchedTrading")); } return(View()); }