Exemplo n.º 1
0
        public ActionResult loadunitform(string unitid, DateTime?date)
        {
            unitid = unitid.Replace("-", "#");
            var unit = centerService.GetCustomerPointInput2(Masterpage.CurrUser.client_code, unitid, date.Value);

            LogHelper.Info(Masterpage.CurrUser.alias, "701012:客户," + Masterpage.CurrUser.client_code + ",保存所有单元的数据录入值失败,传递的参数有误");
            if (unit != null)
            {
                LogHelper.Info(Masterpage.CurrUser.alias, "701012:客户," + Masterpage.CurrUser.client_code + ",加载数据录入的单元:" + unit);
                return(Json(unit, JsonRequestBehavior.AllowGet));
            }
            else
            {
                LogHelper.Info(Masterpage.CurrUser.alias, "701012:客户," + Masterpage.CurrUser.client_code + ",加载数据录入的单元失败,单元为空");
                return(Json("", JsonRequestBehavior.AllowGet));
            }
        }