Jump to content

charles13115255

uniGUI Subscriber
  • Posts

    17
  • Joined

  • Last visited

Posts posted by charles13115255

  1. 4 hours ago, Sherzod said:

    Sorry, this also does not give me a complete understanding of the problem statement.

    Well,  let me state the question again~

    Question:

    During a day, the production trajectory of a certain machine...
    For example:
    2024/03/06(三)
    Work 08:00~10:00 (120 minutes),
    Rest 10:00~10:10 (10 minutes),
    Work 10:10~13:00 (170 minutes),
    Maintenance 13:00~13:30 (30 minutes),
    Work 13:30~17:00 (10 minutes),
    Rest 17:00~18:00 (60 minutes),
    Work 18:00~21:00 (180 minutes)

    Let’s describe the above example and turn it into the following figure:

    dbgridQ1.png

    red color: work time

    blue color: rest time

    orange color: maintenace time

     

  2. 50 minutes ago, Sherzod said:

    Well, first you need to clarify the problem statement.

    Then, we will try to analyze.

    Okay, I want to show:
    During a day, the production trajectory of a certain machine...
    For example:
    2024/03/06(Wednesday)
    Work 08:00~10:00 (120 minutes),
    Rest 10:00~10:10 (10 minutes),
    Work 10:10~13:00 (170 minutes),
    Maintenance 13:00~13:30 (30 minutes),
    Work 13:30~17:00 (10 minutes),
    Rest 17:00~18:00 (60 minutes),
    Work 18:00~21:00 (180 minutes)

    ----------------------------------------------------------------------
    I need to use long bars of different colors in a cell to represent the situations listed above.

  3. On 11/10/2023 at 2:54 PM, Sherzod said:

    Hello,

    Okay, you can try this approach:

    2. CustomCSS ->

    /* "Saturday" */
    td.x-calendar-weeks-weekend-cell:nth-last-child(2) {
        background-color: #e9f0ee;
    }
    /* "Sunday" */
    td.x-calendar-weeks-weekend-cell:nth-last-child(1) {
        background-color: #e9f0ff;
    }

    Result:

    image.png.568d6f06a52fa92d7d9077a5ddbe66a3.png

    * - But of course this solution is for MonthView

     

    morning~ 

    very well thank you~

    best regards.

    • Thanks 1
  4. 21 hours ago, Sherzod said:

    Hello,

    Maybe you should try this?

    CustomCSS ->

    .x-calendar-weeks-weekend-cell {
        background-color: #e9f0ff;
    }

     

    Hi~~ Sir,

    thank you for your answer....

    but,

    This approach will make Saturday and Sunday the same color...
    Can I specify one color for Saturday and another color for Sunday?

    thanks again.

    have a nice day~ 

×
×
  • Create New...