示例#1
0
        public ActionResult InBillDetailEdit(InBillDetail inBillDetail)
        {
            string strResult = string.Empty;
            bool   bResult   = InBillDetailService.Save(inBillDetail, out strResult);
            string msg       = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult InBillDetailDelete(string ID)
        {
            string strResult = string.Empty;
            bool   bResult   = InBillDetailService.Delete(ID, out strResult);
            string msg       = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet));
        }
示例#3
0
        public ActionResult GetProductDetails(int page, int rows, string QueryString, string Value)
        {
            if (QueryString == null)
            {
                QueryString = "ProductCode";
            }
            if (Value == null)
            {
                Value = "";
            }
            var product = InBillDetailService.GetProductDetails(page, rows, QueryString, Value);

            return(Json(product, "text", JsonRequestBehavior.AllowGet));
        }
示例#4
0
        //
        // GET: /StockInBill/InBillDetails/

        public ActionResult InBillDetails(int page, int rows, string BillNo)
        {
            var inBillDetail = InBillDetailService.GetDetails(page, rows, BillNo);

            return(Json(inBillDetail, "text", JsonRequestBehavior.AllowGet));
        }