public int InsertHandOver(HandOverModel mHandOver) { HAND_OVER_INFO hoi = new HAND_OVER_INFO(); hoi.C_USER_ID = mHandOver.CurrentUserInfo.UserId; hoi.CREATE_DATE = GetDBTime; hoi.CREATE_USERID = mHandOver.CommonInfo.CreateUserId; hoi.CURRENT_DEPOSIT = mHandOver.CurrentDeposit; hoi.CURRENT_PAID = mHandOver.CurrentPaidMoney; hoi.FROM_LAST_MONEY = mHandOver.FromLastMoney; hoi.END_DATE = mHandOver.CommonInfo.EndDate; hoi.HAND_IN_MONEY = mHandOver.HandInMoney; hoi.HAND_OVER_MONEY = mHandOver.HandOverMoney; hoi.N_USER_ID = mHandOver.NextUserInfo.UserId; hoi.START_DATE = mHandOver.CommonInfo.StartDate; hoi.TO_NEXT_MONEY = mHandOver.ToNextMoney; dc.HAND_OVER_INFO.InsertOnSubmit(hoi); dc.SubmitChanges(); return hoi.HAND_OVER_ID; }
partial void UpdateHAND_OVER_INFO(HAND_OVER_INFO instance);
partial void DeleteHAND_OVER_INFO(HAND_OVER_INFO instance);
partial void InsertHAND_OVER_INFO(HAND_OVER_INFO instance);