Beispiel #1
0
        public ActionResult SaveForm(string keyValue, string rentarea, RentfeeitemEntity entity)
        {
            string property_id = "";

            if (!string.IsNullOrEmpty(Utils.GetCookie("property_id")))
            {
                property_id = Utils.GetCookie("property_id");
            }
            if (entity.feerule == "0")
            {
                ////按房屋面积
                decimal dim = 0;
                if (!string.IsNullOrEmpty(rentarea))
                {
                    dim = rentarea.ToDecimal();
                }
                entity.feerule  = "按房屋面积:" + entity.feemoney + "*" + rentarea;
                entity.feemoney = entity.feemoney.ToDecimal() * dim;
            }
            else
            {
                entity.feerule = "按固定金额:" + entity.feemoney;
            }
            string itemid = rentfeeitembll.SaveForm(keyValue, property_id, entity);

            return(Success("操作成功。", itemid));
        }
Beispiel #2
0
 /// <summary>
 /// 保存表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="property_id">物业编号</param>
 /// <param name="entity">实体对象</param>
 /// <returns></returns>
 public string SaveForm(string keyValue, string property_id, RentfeeitemEntity entity)
 {
     try
     {
         return(service.SaveForm(keyValue, property_id, entity));
     }
     catch (Exception)
     {
         throw;
     }
 }