//删除货位信息 //POST: /DefaultProductSet/CellDel/ public ActionResult CellDel(string productCodes) { bool bResult = CellService.DeleteCell(productCodes); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
//POST: /DefaultProductSet/SetTree2/ public ActionResult SetTree2(string strId, string proCode) { bool bResult = CellService.SetTree2(strId, proCode); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
//添加货位预设编码 // POST: /DefaultProductSet/CellInsertCode/ public ActionResult CellInsertCode(string wareCodes, string areaCodes, string shelfCodes, string cellCodes, string defaultProductCode, string editType) { bool bResult = CellService.SaveCell(wareCodes, areaCodes, shelfCodes, cellCodes, defaultProductCode, editType); string msg = bResult ? "保存成功" : "保存失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
//获得货位勾选状态 // GET: /DefaultProductSet/CellCodeSet/ public ActionResult CellCodeSet(string productId) { var wareCell = CellService.GetCellCheck(productId); string msg = wareCell != null ? "" : "读取仓库信息失败"; return(Json(JsonMessageHelper.getJsonMessage(wareCell != null, msg, wareCell), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(string companyID) { bool bResult = CompanyService.Delete(companyID); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /StockInBill/DownInBillMaster/ public ActionResult DownInBillMaster(string beginDate, string endDate, string wareCode, string billType) { DownUnitBll ubll = new DownUnitBll(); DownProductBll pbll = new DownProductBll(); DownInBillBll ibll = new DownInBillBll(); DownDecidePlanBll planBll = new DownDecidePlanBll(); string errorInfo = string.Empty; if (beginDate == string.Empty || endDate == string.Empty) { beginDate = DateTime.Now.ToString("yyyyMMdd"); endDate = DateTime.Now.AddDays(1).Date.ToString("yyyyMMdd"); } else { beginDate = Convert.ToDateTime(beginDate).ToString("yyyyMMdd"); endDate = Convert.ToDateTime(endDate).AddDays(1).Date.ToString("yyyyMMdd"); } ubll.DownUnitCodeInfo(); pbll.DownProductInfo(); bool bResult = planBll.GetInBillMiddle(beginDate, endDate, this.User.Identity.Name.ToString(), wareCode, billType, out errorInfo); //bool bResult = ibll.GetInBill(beginDate, endDate, this.User.Identity.Name.ToString(), wareCode, billType, out errorInfo); //bool bResult = InBillMasterService.DownInBillMaster(beginDate, endDate, out errorInfo); string msg = bResult ? "下载成功" : "下载失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Create(ProfitLossBillMaster profitLossBillMaster) { bool bResult = ProfitLossBillMasterService.Add(profitLossBillMaster, this.User.Identity.Name.ToString()); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult InBillDetailCreate(InBillDetail inBillDetail) { bool bResult = InBillDetailService.Add(inBillDetail); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(InBillMaster inBillMaster) { bool bResult = InBillMasterService.Save(inBillMaster); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(string SERVER_ID, string SERVER_NAME, string DESCRIPTION, string URL, string IS_ACTIVE, string CITY_CITY_ID) { bool bResult = ServerService.Save(SERVER_ID, SERVER_NAME, DESCRIPTION, URL, IS_ACTIVE, CITY_CITY_ID); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /InBillMaster/AntiTria/ public ActionResult AntiTrial(string BillNo) { bool bResult = InBillMasterService.AntiTrial(BillNo); string msg = bResult ? "反审成功" : "反审失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /InBillMaster/Audit/ public ActionResult Audit(string BillNo) { bool bResult = InBillMasterService.Audit(BillNo, this.User.Identity.Name.ToString()); string msg = bResult ? "审核成功" : "审核失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult InBillDetailDelete(string ID) { bool bResult = InBillDetailService.Delete(ID); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Create(string id, string FunctionName, string ControlName, string IndicateImage) { bool bResult = FunctionService.Add(id, FunctionName, ControlName, IndicateImage); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /SortingLowerLimit/Delete/ public ActionResult Delete(string id) { bool bResult = SortingLowerlimitService.Delete(id); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Create(BillType billtype) { bool bResult = BillTypeService.Add(billtype); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
//删除主单 // POST: /CheckBill/Delete/ public ActionResult Delete(string BillNo) { bool bResult = CheckBillMasterService.Delete(BillNo); string msg = bResult ? "删除成功" : "删除失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }