Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 641fdbc1
由
kwwwvagaa
编写于
2020-08-27 16:10:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
日历备忘修改
1 个父辈
93c5d1c2
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
3 行删除
HZH_Controls/HZH_Controls/Controls/DateTime/UCCalendarNotes.Designer.cs
HZH_Controls/HZH_Controls/Controls/Step/UCStep.cs
HZH_Controls/Test/UC/UCTestCalendarNotes.Designer.cs
HZH_Controls/Test/UC/UCTestCalendarNotes.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCCalendarNotes.Designer.cs
查看文件 @
641fdbc
此文件的差异被折叠,
点击展开。
HZH_Controls/HZH_Controls/Controls/Step/UCStep.cs
查看文件 @
641fdbc
...
...
@@ -131,7 +131,7 @@ namespace HZH_Controls.Controls
get
{
return
m_steps
;
}
set
{
if
(
m_steps
==
null
||
m_steps
.
Length
<
1
)
if
(
value
==
null
||
value
.
Length
<
1
)
return
;
m_steps
=
value
;
Refresh
();
...
...
HZH_Controls/Test/UC/UCTestCalendarNotes.Designer.cs
查看文件 @
641fdbc
...
...
@@ -37,10 +37,10 @@
this
.
ucCalendarNotes1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucCalendarNotes1
.
CurrentTime
=
new
System
.
DateTime
(
2020
,
8
,
13
,
0
,
0
,
0
,
0
);
this
.
ucCalendarNotes1
.
DataSource
=
null
;
this
.
ucCalendarNotes1
.
Location
=
new
System
.
Drawing
.
Point
(
28
,
4
3
);
this
.
ucCalendarNotes1
.
Location
=
new
System
.
Drawing
.
Point
(
28
,
3
);
this
.
ucCalendarNotes1
.
Name
=
"ucCalendarNotes1"
;
this
.
ucCalendarNotes1
.
SelectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucCalendarNotes1
.
Size
=
new
System
.
Drawing
.
Size
(
441
,
346
);
this
.
ucCalendarNotes1
.
Size
=
new
System
.
Drawing
.
Size
(
722
,
422
);
this
.
ucCalendarNotes1
.
TabIndex
=
2
;
this
.
ucCalendarNotes1
.
TipColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
ucCalendarNotes1
.
ClickNote
+=
new
HZH_Controls
.
Controls
.
UCCalendarNotes
.
ClickNoteEvent
(
this
.
ucCalendarNotes1_ClickNote
);
...
...
HZH_Controls/Test/UC/UCTestCalendarNotes.cs
查看文件 @
641fdbc
...
...
@@ -94,6 +94,20 @@ namespace Test.UC
thisDt
=
thisDt
.
AddDays
(
7
);
}
}
else
if
(
item
.
LoopType
==
3
)
{
DateTime
thisDt
=
item
.
BeginDateTime
;
while
(
thisDt
<=
item
.
EndDateTime
)
{
DateTime
noteBeginTime
=
DateTime
.
Parse
(
thisDt
.
ToString
(
"yyyy-MM-dd"
)
+
" "
+
item
.
LoopBeginTime
.
ToString
(
"HH:mm:ss"
));
DateTime
noteEndTime
=
noteBeginTime
.
Add
(
item
.
LoopDuration
);
if
(
noteBeginTime
>=
item
.
BeginDateTime
&&
noteEndTime
<
item
.
EndDateTime
)
//是否在整个计划范围时间内
{
lst
.
Add
(
new
NoteEntity
()
{
Title
=
item
.
Title
,
Note
=
item
.
Msg
,
BeginTime
=
noteBeginTime
,
EndTime
=
noteEndTime
,
DataSource
=
item
});
}
thisDt
=
thisDt
.
AddMonths
(
1
);
}
}
//月,年类似周
}
...
...
@@ -103,6 +117,7 @@ namespace Test.UC
private
bool
ucCalendarNotes1_ClickNote
(
NoteEntity
note
)
{
TestEntity
entity
=
(
TestEntity
)
note
.
DataSource
;
//对entity进行修改、删除操作
entity
.
Title
+=
"修改1次;"
;
//加载数据
...
...
@@ -114,6 +129,7 @@ namespace Test.UC
return
true
;
}
private
void
ucCalendarNotes1_AddClick
(
DateTime
beginTime
)
{
//弹出一个新增窗体,新增数据
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论