[go: up one dir, main page]

CN105956906A - Order form display method and device based on calendar mechanism - Google Patents

Order form display method and device based on calendar mechanism Download PDF

Info

Publication number
CN105956906A
CN105956906A CN201610274640.0A CN201610274640A CN105956906A CN 105956906 A CN105956906 A CN 105956906A CN 201610274640 A CN201610274640 A CN 201610274640A CN 105956906 A CN105956906 A CN 105956906A
Authority
CN
China
Prior art keywords
calendar
order
month
days
date
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610274640.0A
Other languages
Chinese (zh)
Inventor
季毅华
顾佳璐
徐蕴婕
刘偲
袁匆丛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Commerce Co Ltd
Original Assignee
Shanghai Ctrip Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Commerce Co Ltd filed Critical Shanghai Ctrip Commerce Co Ltd
Priority to CN201610274640.0A priority Critical patent/CN105956906A/en
Publication of CN105956906A publication Critical patent/CN105956906A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Managing shopping lists, e.g. compiling or processing purchase lists

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种基于日历机制的订单展示方法及装置,其中订单展示方法包括以下步骤:S1、获取查询日期;S2、显示所述查询日期所在的月份的日历;S3、获取所述月份的订单;S4、将所述订单标识在所述日历上。本发明弥补了现有技术中通过一维的订单列表展示订单的方式十分单一,不便于用户查看的不足,将日历与订单结合,为用户提供了多维度的查看方式,便于用户查看管理订单。

The invention discloses an order display method and device based on a calendar mechanism, wherein the order display method includes the following steps: S 1 , obtaining the query date; S 2 , displaying the calendar of the month in which the query date is located; S 3 , obtaining the the order of the month; S 4 , marking the order on the calendar. The present invention makes up for the single way of displaying orders through a one-dimensional order list in the prior art, which is inconvenient for users to view, and combines the calendar with orders to provide users with a multi-dimensional view mode, which is convenient for users to view and manage orders.

Description

基于日历机制的订单展示方法及装置Order display method and device based on calendar mechanism

技术领域technical field

本发明涉及计算机电子商务领域,尤其涉及一种基于日历机制的订单展示方法及装置。The invention relates to the field of computer e-commerce, in particular to an order display method and device based on a calendar mechanism.

背景技术Background technique

随着智能终端和移动网络的高度发展,人们网上购物的普及率越来越高,购买的商品也是多种多样,包括服装、日用品、食品以及旅游产品等。尤其是传统旅游行业与移动互联网产业的融合速度加快,用户只需要动动手指即可在网上完成订票,订酒店等服务。用户在查询已下的订单时,商户通常会反馈一张订单列表,订单列表中列有用户所有的订单。这种通过一维的订单列表展示订单的方式十分单一,不便于用户查看。With the rapid development of smart terminals and mobile networks, people are more and more popular in online shopping, and they buy a variety of commodities, including clothing, daily necessities, food and tourism products. In particular, the integration of the traditional tourism industry and the mobile Internet industry is speeding up. Users only need to move their fingers to complete services such as booking tickets and hotels online. When the user inquires about the orders that have been placed, the merchant usually returns an order list, which lists all the orders of the user. This method of displaying orders through a one-dimensional order list is very simple and inconvenient for users to view.

发明内容Contents of the invention

本发明要解决的技术问题是为了克服现有技术中通过一维的订单列表展示订单的方式十分单一,不便于用户查看的缺陷,提供一种基于日历机制的订单展示方法及装置。The technical problem to be solved by the present invention is to provide a method and device for displaying orders based on a calendar mechanism in order to overcome the defects in the prior art that the way of displaying orders through a one-dimensional order list is very single and inconvenient for users to view.

本发明是通过以下技术方案解决上述技术问题的:The present invention solves the above technical problems through the following technical solutions:

本发明提供一种基于日历机制的订单展示方法,其特点是,包括以下步骤:The present invention provides an order display method based on a calendar mechanism, which is characterized in that it includes the following steps:

S1、获取查询日期;S 1. Obtain the query date;

S2、显示所述查询日期所在的月份的日历;S 2. A calendar displaying the month in which the query date is located;

S3、获取所述月份的订单;S 3. Obtain the orders of the month;

S4、将所述订单标识在所述日历上。S 4 . Mark the order on the calendar.

本技术方案将日历与订单相结合,为用户提供了二维的订单查询方式。The technical solution combines the calendar with the order, and provides the user with a two-dimensional order query method.

较佳地,S2包括:Preferably, S2 includes :

S211、根据日历表格的格式,计算所述查询日期所在的月份的月头空白天数、无效天数、有效天数和月尾空白天数: S211 . According to the format of the calendar table, calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month of the month where the query date is located:

所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table,

所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month in the week number,

所述无效天数为从所述月份的首日到所述查询日期的天数,The number of invalid days is the number of days from the first day of the month to the query date,

所述有效天数为从所述查询日期到所述月份的尾日的天数,The number of valid days is the number of days from the query date to the last day of the month,

所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table;

S212、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。 S212 . Render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table in different styles, and display them in the cells of the calendar table Mark the date.

本技术方案中一张日历表格中仅显示一个月份,即所述查询日期所在的月份的日期,并且对不同类型的日期采用不同样式进行渲染,便于用户区分。In this technical solution, only one month is displayed in a calendar table, that is, the date of the month where the query date is located, and different types of dates are rendered in different styles, which is convenient for users to distinguish.

较佳地,S2还包括:Preferably, S 2 also includes:

S22、渲染所述月份之后的M个月的日历,M为正整数。S 22 . Render a calendar of M months after the month, where M is a positive integer.

本技术方案有助用户快速切换日历显示的月份。The technical proposal helps the user to quickly switch the months displayed by the calendar.

较佳地,S22包括:Preferably, S 22 includes:

S221、根据日历表格的格式,计算要渲染的月份的月头空白天数和月尾空白天数:S 221. According to the format of the calendar table, calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered:

所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table,

所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered,

所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week;

S222、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。 S222 . Render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table using different styles, and mark dates in the cells of the calendar table.

较佳地,订单包括出行订单,所述出行订单按照出行时间分为单日订单和跨天订单;Preferably, the order includes a travel order, and the travel order is divided into a single-day order and a multi-day order according to the travel time;

S3包括: S3 includes:

S31、调用服务接口返回出行日在所述月份的订单;S 31. Call the service interface to return the order whose travel date falls in the month;

S32、对返回的订单按照出行日的时间排序;S 32. Sort the returned orders according to the time of travel date;

S33、对跨天订单的订单数据进行扩充;S 33. Expand the order data of the cross-day order;

S4包括: S4 includes:

S41、将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。S 41 . Match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar, and render different styles of single-day orders and cross-day orders.

较佳地,所述订单展示方法还包括:Preferably, the order display method further includes:

S51、根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,执行S52,若无,执行S53 S51 . According to the order marked on the calendar, judge whether there is an order marked on the date after the current date, if yes, execute S52 , if not, execute S53 ;

S52、将距离当前日期时间最近的订单的日期标记为选中状态,然后执行S54S 52. Mark the date of the order closest to the current date and time as the selected state, and then execute S 54 ;

S53、将当前日期标记为选中状态;S 53. Mark the current date as a selected state;

S54、从所述日历中截取标记为选中状态的日期所在周的周日历并显示;S 54. Intercept and display the weekly calendar of the week where the date marked as the selected state is located from the calendar;

S55、在显示的周日历上标识订单;S 55. Mark the order on the displayed weekly calendar;

S56、根据操作手势切换显示的周日历; S56 . Switch the displayed weekly calendar according to the operation gesture;

或者,所述订单展示方法还包括:Alternatively, the order display method also includes:

S61、根据所述日历上标识的订单,定位指定日期;S 61. Locate a designated date according to the order marked on the calendar;

S62、从所述日历中截取所述指定日期所在周的周日历并显示;S 62. Intercept and display the weekly calendar of the week where the specified date is located from the calendar;

S63、在显示的周日历上标识订单;S 63. Mark the order on the displayed weekly calendar;

S64、根据操作手势切换显示的周日历。 S64 . Switch the displayed weekly calendar according to the operation gesture.

本技术方案能够快速定位距离当前日期时间最近的订单的日期或指定日期,从月日历切换到周日历,以便用户查看。The technical solution can quickly locate the date or specified date of the order closest to the current date and time, and switch from the monthly calendar to the weekly calendar for users to view.

较佳地,所述订单展示方法还包括:Preferably, the order display method further includes:

当同一日期标识有多种订单时,该些订单按照优先级进行渲染;When there are multiple orders identified on the same date, these orders are rendered according to the priority;

和/或,判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记;And/or, determine whether there is a conflict in the date in the obtained order, and render a conflict mark for the conflicting date;

和/或,将所述订单同步到终端系统日历中。And/or, synchronizing the order into the terminal system calendar.

本发明还提供一种基于日历机制的订单展示装置,其特点是,包括:The present invention also provides an order display device based on a calendar mechanism, which is characterized in that it includes:

日期获取单元,用于获取查询日期;A date acquisition unit, used to acquire the query date;

月日历显示单元,用于显示所述查询日期所在的月份的日历;Monthly calendar display unit, used to display the calendar of the month where the query date is located;

订单获取单元,用于获取所述月份的订单;an order acquiring unit, configured to acquire the orders of the month;

订单标识单元,用于将所述订单标识在所述日历上。An order identification unit, configured to identify the order on the calendar.

较佳地,所述月日历显示单元包括:Preferably, the monthly calendar display unit includes:

第一计算模块,用于根据日历表格的格式,计算所述查询日期所在的月份的月头空白天数、无效天数、有效天数和月尾空白天数:The first calculation module is used to calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month according to the format of the calendar table:

所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table,

所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month in the week number,

所述无效天数为从所述月份的首日到所述查询日期的天数,The number of invalid days is the number of days from the first day of the month to the query date,

所述有效天数为从所述查询日期到所述月份的尾日的天数,The number of valid days is the number of days from the query date to the last day of the month,

所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table;

第一渲染模块,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。The first rendering module is used to render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table in different styles, and display the cells in the calendar table mark the date in the cell.

较佳地,所述月日历显示单元还用于渲染所述月份之后的M个月的日历,M为正整数。Preferably, the monthly calendar display unit is also used to render calendars of M months after the month, where M is a positive integer.

较佳地,所述月日历显示单元还包括:Preferably, the monthly calendar display unit further includes:

第二计算模块,用于根据日历表格的格式,计算要渲染的月份的月头空白天数和月尾空白天数:The second calculation module is used to calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered according to the format of the calendar table:

所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table,

所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered,

所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week;

第二渲染模块,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。The second rendering module is used to render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table in different styles, and mark dates in the cells of the calendar table.

较佳地,订单包括出行订单,所述出行订单按照出行时间分为单日订单和跨天订单;Preferably, the order includes a travel order, and the travel order is divided into a single-day order and a multi-day order according to the travel time;

所述订单获取单元包括:The order acquisition unit includes:

调用模块,用于调用服务接口返回出行日在所述月份的订单;The calling module is used to call the service interface to return the order whose travel date falls in the month;

排序模块,用于对返回的订单按照出行日的时间排序;The sorting module is used to sort the returned orders according to the travel date;

扩充模块,用于对跨天订单的订单数据进行扩充;The expansion module is used to expand the order data of cross-day orders;

所述订单标识单元,用于将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。The order identification unit is used to match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar, and make different styles for single-day orders and cross-day orders render.

较佳地,所述订单展示装置还包括:Preferably, the order display device also includes:

判断单元,用于根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,调用第一标记单元,若无,调用第二标记单元;The judging unit is used to judge whether there is an order marked on the date after the current date according to the order marked on the calendar, if so, call the first marking unit, if not, call the second marking unit;

所述第一标记单元,用于将距离当前日期时间最近的订单的日期标记为选中状态;The first marking unit is used to mark the date of the order closest to the current date and time as the selected state;

所述第二标记单元,用于将当前日期标记为选中状态;The second marking unit is used to mark the current date as a selected state;

周日历显示单元,用于从所述日历中截取标记为选中状态的日期所在周的周日历并显示,以及在显示的周日历上标识订单;The weekly calendar display unit is used to intercept and display the weekly calendar of the week where the date marked as the selected state is located in the calendar, and to identify the order on the displayed weekly calendar;

切换单元,用于根据操作手势切换显示的周日历;A switching unit is used to switch the displayed weekly calendar according to the operation gesture;

或者,所述订单展示装置还包括:Alternatively, the order display device also includes:

定位单元,用于根据所述日历上标识的订单,定位指定日期;a positioning unit, configured to locate a specified date according to the order identified on the calendar;

周日历显示单元,用于从所述日历中截取所述指定日期所在周的周日历并显示,以及在显示的周日历上标识订单;A weekly calendar display unit, configured to intercept and display the weekly calendar of the week where the specified date is located from the calendar, and identify the order on the displayed weekly calendar;

切换单元,用于根据操作手势切换显示的周日历。The switching unit is used for switching the displayed weekly calendar according to the operation gesture.

较佳地,所述订单展示装置还包括:Preferably, the order display device also includes:

优先级单元,用于当同一日期标识有多种订单时,该些订单按照优先级进行渲染;The priority unit is used to render the orders according to the priority when there are multiple orders marked on the same date;

和/或,冲突判断单元,用于判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记;And/or, a conflict judging unit, configured to judge whether there is a conflict in the date in the obtained order, and render a conflict mark for the conflicting date;

和/或,同步单元,用于将所述订单同步到终端系统日历中。And/or, a synchronization unit, configured to synchronize the order to the calendar of the terminal system.

在符合本领域常识的基础上,上述各优选条件,可任意组合,即得本发明各较佳实例。On the basis of conforming to common knowledge in the field, the above-mentioned preferred conditions can be combined arbitrarily to obtain preferred examples of the present invention.

本发明的积极进步效果在于:本发明将日历与订单结合,为用户提供了多维度的查看方式,便于用户查看管理订单。The positive and progressive effect of the present invention is that the present invention combines the calendar with the order to provide the user with a multi-dimensional view mode, which is convenient for the user to view and manage the order.

附图说明Description of drawings

图1为本发明较佳实施例1的基于日历机制的订单展示方法的流程图。Fig. 1 is a flowchart of an order display method based on a calendar mechanism in the preferred embodiment 1 of the present invention.

图2为2015年8月的日历的渲染效果示意图。Figure 2 is a schematic diagram of the rendering effect of the calendar in August 2015.

图3为本发明较佳实施例1的基于日历机制的订单展示方法的根据上述日历表格的格式,显示所述查询日期所在的月份的日历的流程图。Fig. 3 is a flow chart of displaying the calendar of the month in which the query date is located according to the format of the above-mentioned calendar table according to the order display method based on the calendar mechanism in the preferred embodiment 1 of the present invention.

图4为本发明较佳实施例1的基于日历机制的订单展示方法的根据上述日历表格的格式,渲染所述月份之后的M个月的日历的流程图。Fig. 4 is a flow chart of rendering the calendar of M months after the month according to the format of the above-mentioned calendar table according to the order display method based on the calendar mechanism in the preferred embodiment 1 of the present invention.

图5为2015年9月的日历的渲染效果示意图。Fig. 5 is a schematic diagram of the rendering effect of the calendar in September 2015.

图6为在2015年8月的日历插入图标和/或标记后的渲染效果示意图。Fig. 6 is a schematic diagram of the rendering effect after icons and/or marks are inserted into the calendar in August 2015.

图7为周日历的渲染效果示意图。FIG. 7 is a schematic diagram of a rendering effect of a weekly calendar.

图8为本发明较佳实施例1的基于日历机制的订单展示装置的系统框图。Fig. 8 is a system block diagram of an order display device based on a calendar mechanism in the preferred embodiment 1 of the present invention.

图9为本发明较佳实施例2的基于日历机制的订单展示方法的流程图。FIG. 9 is a flow chart of an order display method based on a calendar mechanism in the preferred embodiment 2 of the present invention.

图10为本发明较佳实施例2的基于日历机制的订单展示装置的系统框图。Fig. 10 is a system block diagram of an order display device based on a calendar mechanism in the preferred embodiment 2 of the present invention.

具体实施方式detailed description

下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

实施例1Example 1

本实施例以订单为出行订单为例说明一种基于日历机制的订单展示方法及装置,其中所述出行订单按照出行时间可以分为单日订单和跨天订单,按照订单类型可以分为酒店类订单和交通类订单等,交通类订单又可分为飞机类、火车类、船类和汽车类等。This embodiment takes the order as a travel order as an example to illustrate a method and device for displaying an order based on a calendar mechanism, wherein the travel order can be divided into single-day orders and multi-day orders according to the travel time, and can be divided into hotel types according to the order type. Orders and transportation orders, etc. Transportation orders can be divided into aircraft, trains, ships and automobiles.

如图1所示,本实施例的基于日历机制的订单展示方法包括以下步骤:As shown in Figure 1, the order display method based on the calendar mechanism of this embodiment includes the following steps:

步骤101、获取查询日期。所述查询日期是指用户想要查询相关订单的日期,具体的获取方式可以为在终端的显示界面上显示输入框以供用户输入或者显示多个备选日期以供用户选择等。Step 101, obtaining the query date. The query date refers to the date on which the user wants to query the relevant order. The specific acquisition method may be displaying an input box on the display interface of the terminal for the user to input or displaying multiple alternative dates for the user to choose.

步骤102、显示所述查询日期所在的月份的日历和渲染所述月份之后的M个月的日历,M为正整数,然后执行步骤103。M可以为12,那么包括所述月份的日历,步骤102一共渲染得到13个月的日历。例如获取到的查询日期为2015-8-6,那么步骤102会显示2015年8月的日历,并渲染2015年9月至2016年8月的日历。Step 102, displaying the calendar of the month where the query date is located and rendering the calendar of M months after the month, where M is a positive integer, and then performing step 103. M can be 12, then including the calendar of the month, step 102 renders a total of 13 calendar months. For example, the obtained query date is 2015-8-6, then step 102 will display the calendar of August 2015, and render the calendar of September 2015 to August 2016.

本实施例的步骤102中,日历以日历表格的形式展示,日历表格的具体格式如图2所示,在日历表格的单元格中标注有一周的星期数,所述星期数为周几,在图2示出的日历表格中标注在表格的第一行,按照周日到周六的顺序排列,即一周的起始日为周日,一周的末尾日为周六,表格的单元格共有A×7个,A等于所述月份包括的周数+1,对于2015年8月而言,包括的周数为6周,表格的单元格共有7×7个。In step 102 of the present embodiment, the calendar is displayed in the form of a calendar table, and the specific format of the calendar table is as shown in Figure 2. The cell of the calendar table is marked with a week number of a week, and the number of weeks is the day of the week. The calendar table shown in Figure 2 is marked on the first row of the table, arranged in the order from Sunday to Saturday, that is, the start day of the week is Sunday, and the end day of the week is Saturday, and the cells in the table have a total of A ×7, A is equal to the number of weeks included in the month + 1, for August 2015, the number of weeks included is 6, and there are 7×7 cells in the table.

下面具体说明一下根据上述日历表格的格式,显示所述查询日期所在的月份的日历的过程,如图3所示:The following specifically describes the process of displaying the calendar of the month where the query date is located according to the format of the above-mentioned calendar table, as shown in Figure 3:

步骤1021、计算所述月份的月头空白天数、无效天数、有效天数和月尾空白天数:Step 1021, calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month:

所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数;The number of blank days at the beginning of the month is the number of days from the start day of the week in the calendar table to the first day of the month in question;

所述无效天数为从所述月份的首日到所述查询日期的天数,The number of invalid days is the number of days from the first day of the month to the query date,

所述有效天数为从所述查询日期到所述月份的尾日的天数,The number of valid days is the number of days from the query date to the last day of the month,

所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table;

其中,某个日期的星期数是指该日期周几。Wherein, the week number of a certain date refers to the day of the week of the date.

步骤1022、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。Step 1022: Use different styles to render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table, and display them in the cells of the calendar table Mark the date.

还是以查询日期为2015-8-6为例对步骤1021-1022进一步说明,图2示出的日历表格一周的起始日为周日,末尾日为周六,2015年8月的首日即2015-8-1,周六,2015年8月的尾日即2015-8-31,周一,那么,Still taking the query date as 2015-8-6 as an example to further explain steps 1021-1022, the calendar form shown in Figure 2 starts with Sunday and ends with Saturday, and the first day of August 2015 is 2015-8-1, Saturday, 2015-8-31, the last day of August 2015, Monday, then,

月头空白天数等于从周日到周六的天数,为6天,The number of blank days at the beginning of the month is equal to the number of days from Sunday to Saturday, which is 6 days,

无效天数等于从2015-8-1到2015-8-6的天数,为5天,The number of invalid days is equal to the number of days from 2015-8-1 to 2015-8-6, which is 5 days,

有效天数等于从2015-8-6到2015-8-31的天数,为26天,The number of valid days is equal to the number of days from 2015-8-6 to 2015-8-31, which is 26 days,

月尾空白天数等于从周一到周六天数,为5天;The number of blank days at the end of the month is equal to the number of days from Monday to Saturday, which is 5 days;

在渲染日历表格时,首先,按照上述天数依次渲染各个单元格:将第1-6个单元格置为空白,将第7-11个单元格置为白色底纹灰色字体,将第12-37个单元格置为白色底纹黑色字体,将第38-42个单元格置为空白,然后在各个单元格中标记日期数字,最后得到图2所示的渲染效果。When rendering the calendar table, first, render each cell in sequence according to the above-mentioned number of days: set the 1st-6th cell to blank, set the 7th-11th cell to white shading gray font, set the 12th-37th cell Set the first cell to black font with white shading, set the 38th-42th cell to blank, and then mark the date number in each cell, and finally get the rendering effect shown in Figure 2.

下面再具体说明一下根据上述日历表格的格式,渲染所述月份之后的M个月的日历的过程,如图4所示:Let's explain in detail the process of rendering the calendar of M months after the month according to the format of the above calendar table, as shown in Figure 4:

步骤1023、计算要渲染的月份的月头空白天数和月尾空白天数:Step 1023, calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered:

所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数;The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered;

所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数。The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week.

步骤1024、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。Step 1024: Render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table with different styles, and mark the dates in the cells of the calendar table.

上述渲染所述月份之后的M个月的日历的过程与上述显示所述查询日期所在的月份的日历的过程基本相同,渲染效果也基本相同,月头空白天数和月尾空白天数对应的单元格置为空白,将剩余的天数对应的单元格置为白色底纹黑色字体,然后在各个单元格中标记日期数字,最后得到图5所示的渲染效果。The above process of rendering the calendar of M months after the month is basically the same as the above process of displaying the calendar of the month where the query date is located, and the rendering effect is basically the same. The cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month Set it to blank, set the cell corresponding to the remaining days to black font with white shading, and then mark the date number in each cell, and finally get the rendering effect shown in Figure 5.

步骤103、调用服务接口返回出行日在所述月份的订单。对于酒店类订单而言,出行日即为酒店的入住日期;对于交通类订单而言,出行日期即为乘坐交通工具的日期。通常订单被存储在一个服务器或服务集群中,通过服务接口可以访问该服务器或服务集群并获取订单。Step 103, calling the service interface to return the orders whose travel date falls in the month. For hotel bookings, the travel date is the check-in date of the hotel; for transportation bookings, the travel date is the date of transportation. Usually orders are stored in a server or service cluster, and the server or service cluster can be accessed and orders obtained through the service interface.

步骤104、对返回的订单按照出行日的时间排序。例如,按照出行日由近到远的顺序排列。Step 104, sort the returned orders according to the time of travel date. For example, arrange in order of travel date from nearest to farthest.

步骤105、对跨天订单的订单数据进行扩充。通常跨天订单中只会记录首个日期和末尾日期而省略了中间日期,如一个酒店类的跨天订单记录入住日期为2015-8-12至2015-8-15而省略了2015-8-13和2015-8-14,这样会造成从跨天订单中提取的出行日不完整,经本步骤的扩充,原先省略的中间日期被补全,即将上例的跨天订单的订单数据扩充为2015-8-12、2015-8-13、2015-8-14和2015-8-15均有酒店类订单,保证了数据的完整性,防止了订单数据的缺失。Step 105, expanding the order data of the cross-day order. Usually, only the first date and the end date are recorded in the cross-day order and the middle date is omitted. For example, a hotel-type cross-day order records the check-in date as 2015-8-12 to 2015-8-15 and omits 2015-8- 13 and 2015-8-14, this will result in the incomplete travel date extracted from the cross-day order. After the expansion of this step, the previously omitted intermediate date is completed, that is, the order data of the cross-day order in the above example is expanded to There are hotel orders on 2015-8-12, 2015-8-13, 2015-8-14 and 2015-8-15, which ensures the integrity of the data and prevents the loss of order data.

步骤106、将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。具体地可以在日期的单元格中按照不同的订单类型插入不同的图标或文字,渲染效果如图6所示,图6中○表示交通类订单,△表示酒店类订单;还可以将跨天订单扩充后的日期前后衔接,如图6中用□将2015-8-12、2015-8-13、2015-8-14和2015-8-15的订单图标框在一起。Step 106: Match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar, and render different styles of single-day orders and cross-day orders. Specifically, different icons or texts can be inserted in the cell of the date according to different order types, and the rendering effect is shown in Figure 6. In Figure 6, ○ indicates transportation orders, and △ indicates hotel orders; cross-day orders can also be The expanded dates are linked together, as shown in Figure 6, the order icons of 2015-8-12, 2015-8-13, 2015-8-14 and 2015-8-15 are framed together with □.

其中,当同一日期标识有多种订单时,该些订单按照优先级进行渲染,订单的优先级预先设置,可以按照订单类型或出行时间区分,优先级高的订单的图标和/或标记排在上,优先级低的订单的图标和/或标记排在下,如图6中2015-8-18的标记方式;Among them, when there are multiple orders identified on the same date, these orders are rendered according to the priority. The priority of the order is preset and can be distinguished by order type or travel time. The icon and/or mark of the order with high priority is ranked On the top, the icons and/or marks of orders with low priority are arranged on the bottom, as shown in the marking method of 2015-8-18 in Figure 6;

和/或,判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记,又如2015-8-26有一个在上海的酒店订单,还有一个在北京的酒店订单,那么上述两个酒店订单存在冲突,图6中在2015-8-26的右上角显示!作为冲突标记。And/or, determine whether there is a conflict in the date in the obtained order, and render a conflict mark for the conflicting date. For example, there is a hotel order in Shanghai and a hotel order in Beijing on August 26, 2015, then the above There is a conflict between the two hotel orders, which is shown in the upper right corner of 2015-8-26 in Figure 6! as conflict markers.

步骤107、根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,执行步骤108,若无,执行步骤109。Step 107, according to the order marked on the calendar, judge whether there is an order marked on the date after the current date, if yes, execute step 108, if not, execute step 109.

步骤108、将距离当前日期时间最近的订单的日期标记为选中状态。Step 108, mark the date of the order closest to the current date and time as selected.

步骤109、将当前日期标记为选中状态。Step 109, mark the current date as selected.

步骤110、从所述日历中截取标记为选中状态的日期所在周的周日历并显示。Step 110, extracting and displaying the weekly calendar of the week where the date marked in the selected state is located from the calendar.

步骤111、在显示的周日历上标识订单。Step 111, mark the order on the displayed weekly calendar.

对于图6示出日历及订单,若当前日期为2015-8-6,那么距离当前日期最近的订单的日期为2015-8-7,将此天标记为选中状态,从图2的日历中截取2015-8-7所在周的周日历,保留原有的格式,再将2015-8-7的订单标记在周日历中,周日历的下方还可以显示订单的具体内容,最后的显示效果如图7所示。若当前日期为2015-8-30,那么将2015-8-30标记为选中状态,从图2的日历中截取2015-8-30所在周的周日历,保留原有的格式即可,最后的显示效果与图7类似,不再说明。For the calendar and orders shown in Figure 6, if the current date is 2015-8-6, then the date of the order closest to the current date is 2015-8-7, mark this day as the selected state, and intercept it from the calendar in Figure 2 For the weekly calendar of the week of 2015-8-7, keep the original format, and then mark the order of 2015-8-7 in the weekly calendar, and the specific content of the order can be displayed below the weekly calendar. The final display effect is shown in the figure 7. If the current date is 2015-8-30, then mark 2015-8-30 as the selected state, intercept the weekly calendar of the week of 2015-8-30 from the calendar in Figure 2, and keep the original format, and finally The display effect is similar to that shown in Figure 7 and will not be described again.

步骤112、根据操作手势切换显示的周日历。具体可以通过在终端屏幕上左右滑动而将显示的周日历切换为上一周的周日历或下一周的周日历。Step 112, switch the displayed weekly calendar according to the operation gesture. Specifically, the displayed weekly calendar can be switched to the previous week's weekly calendar or the next week's weekly calendar by sliding left and right on the terminal screen.

步骤113、将所述订单同步到终端系统日历中。具体可以将每个订单作为一个事件通过Native接口添加到终端系统日历中,以使得终端的系统日历也能够相上述日历一样显示订单。Step 113, synchronizing the order to the calendar of the terminal system. Specifically, each order can be added as an event to the terminal system calendar through the Native interface, so that the terminal system calendar can also display orders like the above calendar.

如图8所示,本实施例的基于日历机制的订单展示装置包括:日期获取单元201、月日历显示单元202、订单获取单元203、订单标识单元204、判断单元205、第一标记单元206、第二标记单元207、周日历显示单元208、切换单元209和同步单元210。As shown in Figure 8, the order display device based on the calendar mechanism of this embodiment includes: a date acquisition unit 201, a monthly calendar display unit 202, an order acquisition unit 203, an order identification unit 204, a judgment unit 205, a first marking unit 206, The second marking unit 207 , the weekly calendar display unit 208 , the switching unit 209 and the synchronizing unit 210 .

日期获取单元201,用于获取查询日期。所述查询日期是指用户想要查询相关订单的日期,具体的获取方式可以为在终端的显示界面上显示输入框以供用户输入或者显示多个备选日期以供用户选择等。A date obtaining unit 201, configured to obtain a query date. The query date refers to the date on which the user wants to query the relevant order. The specific acquisition method may be displaying an input box on the display interface of the terminal for the user to input or displaying multiple alternative dates for the user to choose.

月日历显示单元202,用于显示所述查询日期所在的月份的日历和渲染所述月份之后的M个月的日历,M为正整数。具体地,日历以日历表格的形式展示,日历表格的具体格式如图2所示,在日历表格的单元格中标注有一周的星期数,所述星期数为周几,在图2示出的日历表格中标注在表格的第一行,按照周日到周六的顺序排列,即一周的起始日为周日,一周的末尾日为周六,表格的单元格共有A×7个,A等于所述月份包括的周数+1,对于2015年7月而言,包括的周数为6周,表格的单元格共有7×7个。The monthly calendar display unit 202 is configured to display the calendar of the month where the query date is located and render the calendar of M months after the month, where M is a positive integer. Specifically, the calendar is displayed in the form of a calendar table, and the specific format of the calendar table is as shown in Figure 2, and the cell of the calendar table is marked with a week number of a week, and the number of weeks is the day of the week, shown in Figure 2 The calendar table is marked on the first row of the table, arranged in the order of Sunday to Saturday, that is, the start day of the week is Sunday, and the end day of the week is Saturday. There are a total of A×7 cells in the table, A It is equal to the number of weeks included in the month + 1. For July 2015, the number of weeks included is 6 weeks, and there are 7×7 cells in the table.

所述月日历显示单元202包括:The monthly calendar display unit 202 includes:

第一计算模块2021,用于根据日历表格的格式,计算所述查询日期所在的月份的月头空白天数、无效天数、有效天数和月尾空白天数:The first calculation module 2021 is used to calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month of the month where the query date is located according to the format of the calendar table:

所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数;The number of blank days at the beginning of the month is the number of days from the start day of the week in the calendar table to the first day of the month in question;

所述无效天数为从所述月份的首日到所述查询日期的天数;The number of invalid days is the number of days from the first day of the month to the query date;

所述有效天数为从所述查询日期到所述月份的尾日的天数;The number of valid days is the number of days from the query date to the last day of the month;

所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table;

其中,某个日期的星期数是指该日期周几。Wherein, the week number of a certain date refers to the day of the week of the date.

第一渲染模块2022,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。The first rendering module 2022 is used to render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table in different styles, and display the cells in the calendar table Dates are marked in the cells of the table.

所述月日历显示单元202还包括:The monthly calendar display unit 202 also includes:

第二计算模块2023,用于根据日历表格的格式,计算要渲染的月份的月头空白天数和月尾空白天数:The second calculation module 2023 is used to calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered according to the format of the calendar table:

所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数;The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered;

所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数。The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week.

第二渲染模块2024,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。The second rendering module 2024 is configured to render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table in different styles, and mark dates in the cells of the calendar table.

所述订单获取单元203,用于获取所述月份的订单。具体包括:The order acquiring unit 203 is configured to acquire the orders of the month. Specifically include:

调用模块2031,用于调用服务接口返回出行日在所述月份的订单。对于酒店类订单而言,出行日即为酒店的入住日期;对于交通类订单而言,出行日期即为乘坐交通工具的日期。通常订单被存储在一个服务器或服务集群中,通过服务接口可以访问该服务器或服务集群并获取订单。The calling module 2031 is used to call the service interface to return the orders whose travel date falls in the month. For hotel bookings, the travel date is the check-in date of the hotel; for transportation bookings, the travel date is the date of transportation. Usually orders are stored in a server or service cluster, and the server or service cluster can be accessed and orders obtained through the service interface.

排序模块2032,用于对返回的订单按照出行日的时间排序。例如,按照出行日由近到远的顺序排列。The sorting module 2032 is configured to sort the returned orders according to the travel date. For example, arrange in order of travel date from nearest to farthest.

扩充模块2033,用于对跨天订单的订单数据进行扩充。The expansion module 2033 is used to expand the order data of the cross-day order.

所述订单标识单元204,用于将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。The order identification unit 204 is configured to match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar and make different styles for single-day orders and cross-day orders rendering.

所述订单标识单元204还可以包括:The order identification unit 204 may also include:

优先级单元2041,用于当同一日期标识有多种订单时,该些订单按照优先级进行渲染。The priority unit 2041 is configured to render the orders according to the priority when there are multiple orders marked on the same date.

和/或,冲突判断单元2042,用于判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记。And/or, the conflict judging unit 2042 is configured to judge whether there is a conflict in the date in the acquired order, and render a conflict mark for the conflicting date.

所述判断单元205,用于根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,调用所述第一标记单元206,若无,调用所述第二标记单元207。The judging unit 205 is configured to judge whether there is an order marked on a date after the current date according to the order marked on the calendar, if yes, call the first marking unit 206, if not, call the second marking unit 207.

所述第一标记单元206,用于将距离当前日期时间最近的订单的日期标记为选中状态。The first marking unit 206 is configured to mark the date of the order closest to the current date and time as a selected state.

所述第二标记单元207,用于将当前日期标记为选中状态。The second marking unit 207 is configured to mark the current date as selected.

所述周日历显示单元208,用于从所述日历中截取标记为选中状态的日期所在周的周日历并显示,以及在显示的周日历上标识订单。The weekly calendar display unit 208 is configured to extract and display the weekly calendar of the week where the date marked as selected is located in the calendar, and mark the order on the displayed weekly calendar.

所述切换单元209,用于根据操作手势切换显示的周日历。具体可以通过在终端屏幕上左右滑动而将显示的周日历切换为上一周的周日历或下一周的周日历。The switching unit 209 is configured to switch the displayed weekly calendar according to the operation gesture. Specifically, the displayed weekly calendar can be switched to the previous week's weekly calendar or the next week's weekly calendar by sliding left and right on the terminal screen.

所述同步单元210,用于将所述订单同步到终端系统日历中。The synchronization unit 210 is configured to synchronize the order to the calendar of the terminal system.

本实施例的基于日历机制的订单展示方法及装置能够将日历与订单将结合,将订单显示在日历中,为用户提供了多维度的查看方式,便于用户查看管理订单。同时还支持从月日历到周日历的切换,进一步为用户提供了更多种的查看方式。The order display method and device based on the calendar mechanism of this embodiment can combine the calendar with the order, display the order in the calendar, provide a multi-dimensional viewing method for the user, and facilitate the user to view and manage the order. At the same time, it also supports switching from the monthly calendar to the weekly calendar, further providing users with more viewing methods.

实施例2Example 2

本实施例的订单展示方法与实施例1的订单展示方法基本相同,不同之处在于,如图9所示,本实施例的订单展示方法将步骤107替换为:The order display method in this embodiment is basically the same as the order display method in Embodiment 1, the difference is that, as shown in Figure 9, the order display method in this embodiment replaces step 107 with:

步骤107’、根据所述日历上标识的订单,定位指定日期,然后执行步骤110’。Step 107', locate the specified date according to the order marked on the calendar, and then execute step 110'.

步骤110’、显示所述指定日期所在周的周日历,然后执行步骤111。Step 110', display the weekly calendar of the week where the specified date is located, and then execute step 111.

本实施例的订单展示装置与实施例1的订单展示装置基本相同,不同之处在于,如图10所示,本实施例的订单展示装置还包括:将判断单元、第一标记单元和第二标记单元替换为定位单元205’,The order display device of this embodiment is basically the same as the order display device of Embodiment 1, the difference is that, as shown in Figure 10, the order display device of this embodiment also includes: a judging unit, a first marking unit and a second The marking unit is replaced by a positioning unit 205',

定位单元205’,用于根据所述日历上标识的订单,定位指定日期。The positioning unit 205' is configured to locate a specified date according to the order identified on the calendar.

周日历显示单元208替换为,用于从所述日历中截取所述指定日期所在周的周日历并显示,以及在显示的周日历上标识订单。The weekly calendar display unit 208 is replaced by a weekly calendar for the week in which the specified date is intercepted from the calendar and displayed, and an order is marked on the displayed weekly calendar.

本实施例的基于日历机制的订单展示方法及装置能够从月日历快速跳转至指定日期所在的周日历,更便于用户查看更详细、更完整的订单及订单数据。The method and device for displaying orders based on the calendar mechanism of this embodiment can quickly jump from the monthly calendar to the weekly calendar where the specified date is located, making it easier for users to view more detailed and complete orders and order data.

虽然实施例1和实施例2的订单展示方法及装置的订单均为出行订单,但是本发明并不局限于此,本发明同样适用于其它多种商品的订单展示,如服装、日用品、食品以及旅游产品等。对于服装、日用品和食品等实物商品,某一月份的订单可以是指下订单的日期在该月份的订单或者完成订单的日期在该月份的订单,对于旅游产品,如预订飞机票、火车票、船票和汽车票,某一月份的订单可以为出发时间或到达时间在该月份的订单,又如预订酒店,某一月份的订单可以为酒店的入住时间在该月份的订单。等等。Although the orders of the order display method and device of embodiment 1 and embodiment 2 are travel orders, the present invention is not limited thereto, and the present invention is equally applicable to the order display of other various commodities, such as clothing, daily necessities, food and tourism products, etc. For physical goods such as clothing, daily necessities, and food, an order in a certain month can refer to an order placed in that month or an order completed in that month. For tourism products, such as booking air tickets, train tickets, For boat tickets and bus tickets, the order in a certain month can be the order with the departure time or arrival time in that month. For example, if you book a hotel, the order in a certain month can be the order with the check-in time of the hotel in that month. etc.

虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这些仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although the specific embodiments of the present invention have been described above, those skilled in the art should understand that these are only examples, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims (14)

1.一种基于日历机制的订单展示方法,其特征在于,包括以下步骤:1. A method for displaying an order based on a calendar mechanism, comprising the following steps: S1、获取查询日期;S 1. Obtain the query date; S2、显示所述查询日期所在的月份的日历;S 2. A calendar displaying the month in which the query date is located; S3、获取所述月份的订单;S 3. Obtain the orders of the month; S4、将所述订单标识在所述日历上。S 4 . Mark the order on the calendar. 2.如权利要求1所述的订单展示方法,其特征在于,S2包括:2. The order display method according to claim 1, characterized in that S 2 comprises: S211、根据日历表格的格式,计算所述查询日期所在的月份的月头空白天数、无效天数、有效天数和月尾空白天数: S211 . According to the format of the calendar table, calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month of the month where the query date is located: 所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table, 所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month in the week number, 所述无效天数为从所述月份的首日到所述查询日期的天数,The number of invalid days is the number of days from the first day of the month to the query date, 所述有效天数为从所述查询日期到所述月份的尾日的天数,The number of valid days is the number of days from the query date to the last day of the month, 所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table; S212、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。 S212 . Render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table in different styles, and display them in the cells of the calendar table Mark the date. 3.如权利要求1所述的订单展示方法,其特征在于,S2还包括:3. The order display method according to claim 1 , characterized in that S2 further comprises: S22、渲染所述月份之后的M个月的日历,M为正整数。S 22 . Render a calendar of M months after the month, where M is a positive integer. 4.如权利要求3所述的订单展示方法,其特征在于,S22包括:4. The order presentation method according to claim 3, characterized in that S 22 comprises: S221、根据日历表格的格式,计算要渲染的月份的月头空白天数和月尾空白天数:S 221. According to the format of the calendar table, calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered: 所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table, 所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered, 所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week; S222、采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。 S222 . Render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table using different styles, and mark dates in the cells of the calendar table. 5.如权利要求1所述的订单展示方法,其特征在于,订单包括出行订单,所述出行订单按照出行时间分为单日订单和跨天订单;5. The order display method according to claim 1, wherein the order includes a travel order, and the travel order is divided into a single-day order and a multi-day order according to the travel time; S3包括: S3 includes: S31、调用服务接口返回出行日在所述月份的订单;S 31. Call the service interface to return the order whose travel date falls in the month; S32、对返回的订单按照出行日的时间排序;S 32. Sort the returned orders according to the time of travel date; S33、对跨天订单的订单数据进行扩充;S 33. Expand the order data of the cross-day order; S4包括: S4 includes: S41、将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。S 41 . Match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar, and render different styles of single-day orders and cross-day orders. 6.如权利要求1所述的订单展示方法,其特征在于,所述订单展示方法还包括:6. The order display method according to claim 1, further comprising: S51、根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,执行S52,若无,执行S53 S51 . According to the order marked on the calendar, judge whether there is an order marked on the date after the current date, if yes, execute S52 , if not, execute S53 ; S52、将距离当前日期时间最近的订单的日期标记为选中状态,然后执行S54S 52. Mark the date of the order closest to the current date and time as the selected state, and then execute S 54 ; S53、将当前日期标记为选中状态;S 53. Mark the current date as a selected state; S54、从所述日历中截取标记为选中状态的日期所在周的周日历并显示;S 54. Intercept and display the weekly calendar of the week where the date marked as the selected state is located from the calendar; S55、在显示的周日历上标识订单;S 55. Mark the order on the displayed weekly calendar; S56、根据操作手势切换显示的周日历; S56 . Switch the displayed weekly calendar according to the operation gesture; 或者,所述订单展示方法还包括:Alternatively, the order display method also includes: S61、根据所述日历上标识的订单,定位指定日期;S 61. Locate a designated date according to the order marked on the calendar; S62、从所述日历中截取所述指定日期所在周的周日历并显示;S 62. Intercept and display the weekly calendar of the week where the specified date is located from the calendar; S63、在显示的周日历上标识订单;S 63. Mark the order on the displayed weekly calendar; S64、根据操作手势切换显示的周日历。 S64 . Switch the displayed weekly calendar according to the operation gesture. 7.如权利要求1所述的订单展示方法,其特征在于,所述订单展示方法还包括:7. The order display method according to claim 1, further comprising: 当同一日期标识有多种订单时,该些订单按照优先级进行渲染;When there are multiple orders identified on the same date, these orders are rendered according to the priority; 和/或,判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记;And/or, determine whether there is a conflict in the date in the obtained order, and render a conflict mark for the conflicting date; 和/或,将所述订单同步到终端系统日历中。And/or, synchronizing the order into the terminal system calendar. 8.一种基于日历机制的订单展示装置,其特征在于,包括:8. An order display device based on a calendar mechanism, characterized in that it comprises: 日期获取单元,用于获取查询日期;A date acquisition unit, used to acquire the query date; 月日历显示单元,用于显示所述查询日期所在的月份的日历;Monthly calendar display unit, used to display the calendar of the month where the query date is located; 订单获取单元,用于获取所述月份的订单;an order acquiring unit, configured to acquire the orders of the month; 订单标识单元,用于将所述订单标识在所述日历上。An order identification unit, configured to identify the order on the calendar. 9.如权利要求8所述的订单展示装置,其特征在于,所述月日历显示单元包括:9. The order display device according to claim 8, wherein the monthly calendar display unit comprises: 第一计算模块,用于根据日历表格的格式,计算所述查询日期所在的月份的月头空白天数、无效天数、有效天数和月尾空白天数:The first calculation module is used to calculate the number of blank days at the beginning of the month, the number of invalid days, the number of valid days and the number of blank days at the end of the month according to the format of the calendar table: 所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table, 所述月头空白天数为从日历表格一周的起始日到所述月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month in the week number, 所述无效天数为从所述月份的首日到所述查询日期的天数,The number of invalid days is the number of days from the first day of the month to the query date, 所述有效天数为从所述查询日期到所述月份的尾日的天数,The number of valid days is the number of days from the query date to the last day of the month, 所述月尾空白天数为从所述月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to the last day of the week in the calendar table; 第一渲染模块,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数、所述无效天数和所述有效天数对应的单元格,并在所述日历表格的单元格中标记日期。The first rendering module is used to render the cells corresponding to the number of blank days at the beginning of the month, the number of blank days at the end of the month, the number of invalid days, and the number of valid days in the calendar table in different styles, and display the cells in the calendar table mark the date in the cell. 10.如权利要求8所述的订单展示装置,其特征在于,所述月日历显示单元还用于渲染所述月份之后的M个月的日历,M为正整数。10. The order display device according to claim 8, wherein the monthly calendar display unit is further used to render calendars of M months after the month, where M is a positive integer. 11.如权利要求10所述的订单展示装置,其特征在于,所述月日历显示单元还包括:11. The order display device according to claim 10, wherein the monthly calendar display unit further comprises: 第二计算模块,用于根据日历表格的格式,计算要渲染的月份的月头空白天数和月尾空白天数:The second calculation module is used to calculate the number of blank days at the beginning of the month and the number of blank days at the end of the month to be rendered according to the format of the calendar table: 所述格式包括在日历表格的单元格中标注有一周的星期数,The format includes the week number marked in the cell of the calendar table, 所述月头空白天数为从日历表格一周的起始日到要渲染的月份的首日的星期数的天数,The number of blank days at the beginning of the month is the number of days from the start day of the calendar table week to the first day of the month to be rendered, 所述月尾空白天数为从要渲染的月份的尾日的星期数到日历表格一周的末尾日的天数;The number of blank days at the end of the month is the number of days from the last day of the month to be rendered to the last day of the calendar table week; 第二渲染模块,用于采用不同样式渲染所述日历表格中所述月头空白天数、所述月尾空白天数对应的单元格,并在所述日历表格的单元格中标记日期。The second rendering module is used to render the cells corresponding to the number of blank days at the beginning of the month and the number of blank days at the end of the month in the calendar table in different styles, and mark dates in the cells of the calendar table. 12.如权利要求8所述的订单展示装置,其特征在于,订单包括出行订单,所述出行订单按照出行时间分为单日订单和跨天订单;12. The order display device according to claim 8, wherein the order includes a travel order, and the travel order is divided into a single-day order and a cross-day order according to the travel time; 所述订单获取单元包括:The order acquisition unit includes: 调用模块,用于调用服务接口返回出行日在所述月份的订单;The calling module is used to call the service interface to return the order whose travel date falls in the month; 排序模块,用于对返回的订单按照出行日的时间排序;The sorting module is used to sort the returned orders according to the travel date; 扩充模块,用于对跨天订单的订单数据进行扩充;The expansion module is used to expand the order data of cross-day orders; 所述订单标识单元,用于将订单及订单数据匹配所述日历的日期,在所述日历上插入对应订单及订单数据的图标和/或标记并且对单日订单和跨天订单做不同样式的渲染。The order identification unit is used to match the order and order data to the date of the calendar, insert icons and/or marks corresponding to the order and order data on the calendar, and make different styles for single-day orders and cross-day orders render. 13.如权利要求8所述的订单展示装置,其特征在于,所述订单展示装置还包括:13. The order display device according to claim 8, wherein the order display device further comprises: 判断单元,用于根据所述日历上标识的订单,判断当前日期之后的日期是否标识有订单,若有,调用第一标记单元,若无,调用第二标记单元;The judging unit is used to judge whether there is an order marked on the date after the current date according to the order marked on the calendar, if so, call the first marking unit, if not, call the second marking unit; 所述第一标记单元,用于将距离当前日期时间最近的订单的日期标记为选中状态;The first marking unit is used to mark the date of the order closest to the current date and time as the selected state; 所述第二标记单元,用于将当前日期标记为选中状态;The second marking unit is used to mark the current date as a selected state; 周日历显示单元,用于从所述日历中截取标记为选中状态的日期所在周的周日历并显示,以及在显示的周日历上标识订单;The weekly calendar display unit is used to intercept and display the weekly calendar of the week where the date marked as the selected state is located in the calendar, and to identify the order on the displayed weekly calendar; 切换单元,用于根据操作手势切换显示的周日历;A switching unit is used to switch the displayed weekly calendar according to the operation gesture; 或者,所述订单展示装置还包括:Alternatively, the order display device also includes: 定位单元,用于根据所述日历上标识的订单,定位指定日期;a positioning unit, configured to locate a specified date according to the order identified on the calendar; 周日历显示单元,用于从所述日历中截取所述指定日期所在周的周日历并显示,以及在显示的周日历上标识订单;A weekly calendar display unit, configured to intercept and display the weekly calendar of the week where the specified date is located from the calendar, and identify the order on the displayed weekly calendar; 切换单元,用于根据操作手势切换显示的周日历。The switching unit is used for switching the displayed weekly calendar according to the operation gesture. 14.如权利要求8所述的订单展示装置,其特征在于,所述订单展示装置还包括:14. The order display device according to claim 8, further comprising: 优先级单元,用于当同一日期标识有多种订单时,该些订单按照优先级进行渲染;The priority unit is used to render the orders according to the priority when there are multiple orders marked on the same date; 和/或,冲突判断单元,用于判断获取到的订单中日期是否存在冲突,对于存在冲突的日期渲染冲突标记;And/or, a conflict judging unit, configured to judge whether there is a conflict in the date in the obtained order, and render a conflict mark for the conflicting date; 和/或,同步单元,用于将所述订单同步到终端系统日历中。And/or, a synchronization unit, configured to synchronize the order to the calendar of the terminal system.
CN201610274640.0A 2016-04-28 2016-04-28 Order form display method and device based on calendar mechanism Pending CN105956906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610274640.0A CN105956906A (en) 2016-04-28 2016-04-28 Order form display method and device based on calendar mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610274640.0A CN105956906A (en) 2016-04-28 2016-04-28 Order form display method and device based on calendar mechanism

Publications (1)

Publication Number Publication Date
CN105956906A true CN105956906A (en) 2016-09-21

Family

ID=56916156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610274640.0A Pending CN105956906A (en) 2016-04-28 2016-04-28 Order form display method and device based on calendar mechanism

Country Status (1)

Country Link
CN (1) CN105956906A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682874A (en) * 2016-12-21 2017-05-17 西安大唐电信有限公司 Travelled distance data reduction and progressive display method based on calendar mode
CN107844241A (en) * 2017-10-30 2018-03-27 珠海格力电器股份有限公司 Event marking method and device
CN107944587A (en) * 2017-12-19 2018-04-20 携程商旅信息服务(上海)有限公司 Packing processing method, system, equipment and the storage medium of stroke product
CN109102179A (en) * 2018-07-27 2018-12-28 江苏斑马软件技术有限公司 A kind of management system for household services
CN110852694A (en) * 2019-09-27 2020-02-28 口碑(上海)信息技术有限公司 Calendar component processing method and system
CN111026472A (en) * 2019-10-28 2020-04-17 珠海格力电器股份有限公司 Method, apparatus, storage medium, electronic device for calendar configuration and date selection
CN111523695A (en) * 2020-04-24 2020-08-11 上海携程国际旅行社有限公司 Interactive method, system, device and medium for scenic spot ticket booking of online platform
CN111966910A (en) * 2020-08-26 2020-11-20 平安国际智慧城市科技股份有限公司 Electronic desk calendar based farming information pushing method and device
CN112380272A (en) * 2020-11-09 2021-02-19 华兴源创(成都)科技有限公司 Yield information display method, device, detection equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901709A (en) * 2006-07-19 2007-01-24 宇龙计算机通信科技(深圳)有限公司 Coordinate method for travel managing and it and date managing
CN1971604A (en) * 2005-11-23 2007-05-30 阿尔卡特公司 System and method for calendar presence retrieval
CN102246588A (en) * 2008-12-19 2011-11-16 帕姆公司 Access and management of cross-platform calendars
CN104182384A (en) * 2014-03-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Message reading method and device
US20140365951A1 (en) * 2013-06-10 2014-12-11 Microsoft Corporation Navigating a calendar

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971604A (en) * 2005-11-23 2007-05-30 阿尔卡特公司 System and method for calendar presence retrieval
CN1901709A (en) * 2006-07-19 2007-01-24 宇龙计算机通信科技(深圳)有限公司 Coordinate method for travel managing and it and date managing
CN102246588A (en) * 2008-12-19 2011-11-16 帕姆公司 Access and management of cross-platform calendars
US20140365951A1 (en) * 2013-06-10 2014-12-11 Microsoft Corporation Navigating a calendar
CN104182384A (en) * 2014-03-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Message reading method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682874A (en) * 2016-12-21 2017-05-17 西安大唐电信有限公司 Travelled distance data reduction and progressive display method based on calendar mode
CN107844241A (en) * 2017-10-30 2018-03-27 珠海格力电器股份有限公司 Event marking method and device
CN107944587A (en) * 2017-12-19 2018-04-20 携程商旅信息服务(上海)有限公司 Packing processing method, system, equipment and the storage medium of stroke product
CN107944587B (en) * 2017-12-19 2021-02-19 携程商旅信息服务(上海)有限公司 Packaging processing method, system, equipment and storage medium of travel product
CN109102179A (en) * 2018-07-27 2018-12-28 江苏斑马软件技术有限公司 A kind of management system for household services
CN110852694A (en) * 2019-09-27 2020-02-28 口碑(上海)信息技术有限公司 Calendar component processing method and system
CN111026472A (en) * 2019-10-28 2020-04-17 珠海格力电器股份有限公司 Method, apparatus, storage medium, electronic device for calendar configuration and date selection
CN111523695A (en) * 2020-04-24 2020-08-11 上海携程国际旅行社有限公司 Interactive method, system, device and medium for scenic spot ticket booking of online platform
CN111966910A (en) * 2020-08-26 2020-11-20 平安国际智慧城市科技股份有限公司 Electronic desk calendar based farming information pushing method and device
CN112380272A (en) * 2020-11-09 2021-02-19 华兴源创(成都)科技有限公司 Yield information display method, device, detection equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105956906A (en) Order form display method and device based on calendar mechanism
CN112799561A (en) Information display method and device and computer storage medium
JP6070705B2 (en) Information processing apparatus, data processing method thereof, and program
US20120328169A1 (en) System and method for yearbook creation
US20210141999A1 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
WO2022111249A1 (en) Information presentation method, apparatus, and computer storage medium
CN104221356A (en) Apps for creating photo albums
CN105094775B (en) Webpage generation method and device
US20210174007A1 (en) Creation apparatus and non-transitory computer readable medium
WO2011143446A2 (en) System and method for automatically laying out photos and coloring design elements within a photo story
US20200090243A1 (en) Photo product engine powered by blog content
CN112052656B (en) Recommended document theme
US20160217416A1 (en) Anthology and archiving platform and display system for collectibles, methods and uses thereof
CN103365947A (en) Social network service system and image display method
Steffensen et al. T@ retrospect: A journey through time: A user-centered prototype enabling seamless information retrieval across expertise levels
US20140181712A1 (en) Adaptation of the display of items on a display
JP2011086050A (en) Information processing terminal and computer program
JP2014157401A (en) System, method and program for generating electronic magazine
CN104462089A (en) Data processing method and device
JP2013061748A (en) Information display device, method, and program
JP2021128425A (en) Image processing equipment, image processing methods, programs and image processing systems
CN106454483B (en) A kind of column rendering method and system
JP2010026750A (en) Automatic definition system for data retrieval item information in electronic business form system
CN114492329A (en) Data content display method and device, electronic equipment and storage medium
CN117009359B (en) Data table processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921