コード例 #1
0
        public ActionResult GetFormDetail(int keyValue)
        {
            ApplyBillEntity applyBillEntity = applyBillApp.GetForm(keyValue);

            if (!string.IsNullOrEmpty(applyBillEntity.priNO))
            {
                PriceEntity price = priceApp.GetFormJson(applyBillEntity.priNO);

                return(Json(new {
                    prdName = price.prdName,
                    spc = price.spc,
                    mat = applyBillEntity.mat,
                    orderNo = price.orderNo,
                    appUnit = applyBillEntity.appUnit,
                    viceNum = applyBillEntity.viceNum
                }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Content(applyBillEntity.ToJson()));
            }
        }
コード例 #2
0
        public ActionResult GetFormJson(int keyValue)
        {
            ApplyBillEntity applyBillEntity = applyBillApp.GetForm(keyValue);

            return(Content(applyBillEntity.ToJson()));
        }