예스스탁
예스스탁 답변
2026-02-06 14:14:14
안녕하세요
예스스탁입니다.
input : N1(10),N2(30),N3(60);
var : S1(0),D1(0),TM(0);
var : TF1(0),TF2(0),TF3(0);
var : TL1(0),TL2(0),TL3(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF1 = TM%N1;
TF2 = TM%N2;
TF3 = TM%N3;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and N1 > 1 and TF1 < TF1[1]) or
(Bdate == Bdate[1] and N1 > 1 and TM >= TM[1]+N1) or
(Bdate == Bdate[1] and N1 == 1 and TM > TM[1]) Then
{
TL1 = TL_New(sdate,sTime,0,sDate,sTime,9999999);
TL_SetColor(TL1,Red);
TL_SetSize(TL1,1);
TL_SetDrawMode(TL1,0);
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and N2 > 1 and TF2 < TF2[1]) or
(Bdate == Bdate[1] and N2 > 1 and TM >= TM[1]+N2) or
(Bdate == Bdate[1] and N2 == 1 and TM > TM[1]) Then
{
TL2 = TL_New(sdate,sTime,0,sDate,sTime,9999999);
TL_SetColor(TL2,Blue);
TL_SetSize(TL2,1);
TL_SetDrawMode(TL2,0);
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and N3 > 1 and TF3 < TF3[1]) or
(Bdate == Bdate[1] and N3 > 1 and TM >= TM[1]+N3) or
(Bdate == Bdate[1] and N3 == 1 and TM > TM[1]) Then
{
TL3 = TL_New(sdate,sTime,0,sDate,sTime,9999999);
TL_SetColor(TL3,Green);
TL_SetSize(TL3,1);
TL_SetDrawMode(TL3,0);
}
}
즐거운 하루되세요