Exemplo n.º 1
0
        public ActionResult EditRoomForm(RoomModelEntity entity)
        {
            RoomBLL    bll   = new RoomBLL();
            RoomEntity model = bll.GetEntity(entity.room_id);

            model.room_id      = entity.room_id;
            model.floor_number = entity.floor_number;
            model.room_name    = entity.room_name;
            model.repair_price = entity.repair_price;
            model.building_dim = entity.building_dim;
            model.room_dim     = entity.room_dim;
            model.jf_date      = entity.jf_date;

            //主表
            bll.SaveForm(model);

            //修改业主姓名
            if (!string.IsNullOrEmpty(entity.owner_id))
            {
                OwnerBLL bll_o = new OwnerBLL();
                bll_o.UpdateOwnerName(entity.owner_id, entity.owner_name);
            }

            return(Success("操作成功。"));
        }
Exemplo n.º 2
0
 public OwnerDetailOfBus(OwnerDTO dto)
 {
     InitializeComponent();
     bll            = new OwnerBLL();
     txtId.ReadOnly = true;
     this.dto       = dto;
     LoadData();
 }
Exemplo n.º 3
0
 public Owner()
 {
     InitializeComponent();
     bll = new OwnerBLL();
 }