Example #1
0
 public int InsertCustomerStay(CustomerStayModel mCustomerStay)
 {
     try
     {
         CUSTOMER_STAY_INFO cti = new CUSTOMER_STAY_INFO();
         cti.CREATE_DATE = GetDBTime;
         cti.CREATE_USERID = mCustomerStay.CommonInfo.CreateUserId;
         cti.DEPOSIT = mCustomerStay.Deposit;
         cti.END_DATE = mCustomerStay.CommonInfo.EndDate;
         cti.HOURS = mCustomerStay.Hours;
         cti.MAIN_ROOM_ID = mCustomerStay.MainRoomId;
         cti.NOTICE = mCustomerStay.Notice;
         cti.PAY_TYPE = mCustomerStay.PayType;
         cti.ROOM_ID = mCustomerStay.RoomId;
         cti.ROOM_RATES = mCustomerStay.RoomRate;
         cti.START_DATE = mCustomerStay.CommonInfo.StartDate;
         cti.STATUS = mCustomerStay.Status;
         cti.STAY_NO = mCustomerStay.StayNo;
         cti.PAID_MONEY = mCustomerStay.PaidMoney;
         cti.ROOM_STAY_TYPE = mCustomerStay.RoomStayType;
         cti.UPDATE_DATE = cti.CREATE_DATE;
         cti.UPDATE_USERID = mCustomerStay.CommonInfo.UpdateUserId;
         dc.CUSTOMER_STAY_INFO.InsertOnSubmit(cti);
         dc.SubmitChanges();
         return cti.STAY_ID;
     }
     catch (Exception err)
     {
         throw err;
     }
 }
Example #2
0
 partial void UpdateCUSTOMER_STAY_INFO(CUSTOMER_STAY_INFO instance);
Example #3
0
 partial void DeleteCUSTOMER_STAY_INFO(CUSTOMER_STAY_INFO instance);
Example #4
0
 partial void InsertCUSTOMER_STAY_INFO(CUSTOMER_STAY_INFO instance);