Exemple #1
0
        public ActionResult AllotAdd(string billNo, long id, string productCode, string cellCode, int allotQuantity)
        {
            string strResult = string.Empty;
            bool   bResult   = OutBillAllotService.AllotAdd(billNo, id, productCode, cellCode, allotQuantity, out strResult);
            string msg       = bResult ? "添加分配成功" : "添加分配失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult AllotAdds(string billNo, long id, string cellCode, string productName)
        {
            string  strResult     = string.Empty;
            decimal allotQuantity = 0;
            bool    bResult       = OutBillAllotService.AllotAdd(billNo, id, cellCode, productName, out strResult, out allotQuantity);
            string  msg           = bResult ? "" : "添加分配失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult, allotQuantity), "text", JsonRequestBehavior.AllowGet));
        }