Ctrl0.Year=\\±¾Õ¾üc(di¨£n)\$Äê;
Ctrl0.Month=1;
Ctrl0.Day=1;
Ctrl1.Year=\\±¾Õ¾üc(di¨£n)\$Äê;
Ctrl1.Month=\\±¾Õ¾üc(di¨£n)\$ÔÂ;
Ctrl1.Day=\\±¾Õ¾üc(di¨£n)\$ÈÕ;
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ=Ctrl1.DayOfWeek;
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==1)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚÈÕ";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==2)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚÒ»";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==3)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚ¶þ";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==4)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚÈý";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==5)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚËÄ";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==6)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚÎå";
if (\\±¾Õ¾üc(di¨£n)\ÐÇÆÚ==7)
\\±¾Õ¾üc(di¨£n)\ÐÇÆÚŽ×="ÐÇÆÚÁù";
long ASSAD1;
long ASSAD2;
long ST;
long ET;
long DT;
long WT;
ASSAD1=Ctrl0.DayOfWeek;
if(ASSAD1==1)
{
ASSAD2=8;
\\±¾Õ¾üc(di¨£n)\ÖÜ=1;
}
else
ASSAD2=9-ASSAD1;
ST=HTConvertTime(\\±¾Õ¾üc(di¨£n)\$Äê,1,1,0,0,0);
ET=HTConvertTime(\\±¾Õ¾üc(di¨£n)\$Äê,\\±¾Õ¾üc(di¨£n)\$ÔÂ,\\±¾Õ¾üc(di¨£n)\$ÈÕ,1,0,0);
DT=ET-ST-ASSAD2*86400;
if(DT<0)
\\±¾Õ¾üc(di¨£n)\ÖÜ=1;
else
{
WT=int(DT/604800)+2;
if(WT==53)
\\±¾Õ¾üc(di¨£n)\ÖÜ=52;
else
\\±¾Õ¾üc(di¨£n)\ÖÜ=WT;
}