Exemplo n.º 1
0
 public int InsertCustomerStayHis(CustomerStayHisModel mHis)
 {
     try
     {
         CUSTOMER_STAY_HIS cth = new CUSTOMER_STAY_HIS();
         cth.CREATE_DATE = GetDBTime;
         cth.CREATE_USERID = mHis.CommonInfo.CreateUserId;
         cth.STAY_TYPE = mHis.StayType;
         cth.STAY_ID = mHis.StayId;
         cth.CUSTOMER_ID = mHis.CustomerId;
         cth.HIS_STATUS = mHis.HisStatus;
         cth.UPDATE_DATE = GetDBTime;
         cth.UPDATE_USERID = cth.CREATE_USERID;
         cth.START_TIME = mHis.CommonInfo.StartDate;
         cth.END_TIME = mHis.CommonInfo.EndDate;
         dc.CUSTOMER_STAY_HIS.InsertOnSubmit(cth);
         dc.SubmitChanges();
         return cth.HIS_ID;
     }
     catch (Exception err)
     {
         throw err;
     }
 }
Exemplo n.º 2
0
 partial void UpdateCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);
Exemplo n.º 3
0
 partial void DeleteCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);
Exemplo n.º 4
0
 partial void InsertCUSTOMER_STAY_HIS(CUSTOMER_STAY_HIS instance);