納入日程で出てくる日付

・ 納入日付 ETDAT
・ 出庫日付 VBEP-WADAT
・ 積載日付 VBEP-LDDAT
・ 品目利用可能日 VBEP-MBDAT
・ 輸送計画日付 VBEP-TDDAT 


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25688124/viewspace-773865/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25688124/viewspace-773865/

添加日程的代码取决于你使用的是哪个平台或是开发了哪个应用程序,以下是一些示例代码: 1. 在 Android 应用程序中添加日程 ``` Intent intent = new Intent(Intent.ACTION_INSERT); intent.setType("vnd.android.cursor.item/event"); Calendar beginTime = Calendar.getInstance(); beginTime.set(2019, 1, 1, 7, 30); Calendar endTime = Calendar.getInstance(); endTime.set(2019, 1, 1, 10, 30); intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis()); intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, endTime.getTimeInMillis()); intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY , false); intent.putExtra(CalendarContract.Events.TITLE, "Meeting"); intent.putExtra(CalendarContract.Events.DESCRIPTION, "Meet with team to discuss new project"); intent.putExtra(CalendarContract.Events.EVENT_LOCATION, "Office"); intent.putExtra(CalendarContract.Events.RRULE, "FREQ=DAILY;COUNT=10"); startActivity(intent); ``` 2. 在 iOS 应用程序中添加日程 ``` import EventKit let eventStore = EKEventStore() // 请求日历访问权限 eventStore.requestAccess(to: .event) { (granted, error) in if granted && error == nil { let event = EKEvent(eventStore: eventStore) event.title = "Meeting" event.startDate = Date() event.endDate = Date().addingTimeInterval(60 * 60) // 1 hour event.notes = "Meet with team to discuss new project" event.location = "Office" event.calendar = eventStore.defaultCalendarForNewEvents do { try eventStore.save(event, span: .thisEvent) print("Event saved") } catch let error as NSError { print("Failed to save event with error: \(error)") } } else { print("Access to calendar denied") } } ``` 3. 在 Web 应用程序中添加日程 ``` // 创建一个 Google 日历事件 const event = { summary: 'Meeting', location: 'Office', description: 'Meet with team to discuss new project', start: { dateTime: '2022-01-01T10:00:00-07:00', timeZone: 'America/Los_Angeles' }, end: { dateTime: '2022-01-01T11:00:00-07:00', timeZone: 'America/Los_Angeles' }, recurrence: [ 'RRULE:FREQ=DAILY;COUNT=10' ], }; // 将 Google 认证凭据传递给 API gapi.client.setToken({access_token: ACCESS_TOKEN}); // 创建一个 Google 日历事件 gapi.client.calendar.events.insert({ 'calendarId': 'primary', 'resource': event }).then(function(response) { console.log('Event created: ' + response.htmlLink); }); ``` 以上是添加日程的示例代码,可以根据需要进行修改和自定义。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值