Example #1
0
 /// <summary>
 /// 新增房间信息
 /// </summary>
 /// <param name="mRoomInfo"></param>
 /// <returns></returns>
 public bool InsertRoomInfo(BasRoomModel mRoomInfo)
 {
     try
     {
         BAS_ROOM_INFO bri = new BAS_ROOM_INFO();
         bri.ROOM_NO = mRoomInfo.RoomNo;
         bri.ROOM_TYPE = mRoomInfo.RoomType;
         bri.ROOM_RATES = mRoomInfo.RoomRate;
         bri.ROOM_PHONE = mRoomInfo.RoomPhone;
         bri.STATUS = mRoomInfo.Status;
         bri.FLOOR_ID = mRoomInfo.FloorInfo.FloorId;
         bri.ROOM_NOTICE = mRoomInfo.RoomNotice;
         bri.CREATE_DATE = GetDBTime;
         bri.CREATE_USERID = mRoomInfo.CommonInfo.CreateUserId;
         bri.UPDATE_DATE = bri.CREATE_DATE;
         bri.UPDATE_USERID = bri.CREATE_USERID;
         dc.BAS_ROOM_INFO.InsertOnSubmit(bri);
         dc.SubmitChanges();
         return true;
     }
     catch
     {
         return false;
     }
 }
Example #2
0
 partial void DeleteBAS_ROOM_INFO(BAS_ROOM_INFO instance);
Example #3
0
 partial void InsertBAS_ROOM_INFO(BAS_ROOM_INFO instance);
Example #4
0
 partial void UpdateBAS_ROOM_INFO(BAS_ROOM_INFO instance);
Example #5
0
		private void detach_BAS_ROOM_INFO(BAS_ROOM_INFO entity)
		{
			this.SendPropertyChanging();
			entity.BAS_FLOOR_INFO = null;
		}