Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
thick-casting
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
thick-casting
Commits
cb9d12df
Commit
cb9d12df
authored
Feb 17, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 分区表显示模头长度,机架长度,方便试机时,不设太多螺丝数量
parent
37103d64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
13 deletions
+39
-13
PgBoltMap.xaml
...Thick.FilmCasting/FLY.Thick.FilmCasting.UI/PgBoltMap.xaml
+10
-0
PgBoltMap.xaml.cs
...ck.FilmCasting/FLY.Thick.FilmCasting.UI/PgBoltMap.xaml.cs
+29
-13
No files found.
Project.FLY.Thick.FilmCasting/FLY.Thick.FilmCasting.UI/PgBoltMap.xaml
View file @
cb9d12df
...
@@ -56,6 +56,16 @@
...
@@ -56,6 +56,16 @@
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding BoltCnt}" />
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding BoltCnt}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="个"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="个"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}"/>
<StackPanel>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}">
模头总长=<Run Text="{Binding DieLength,StringFormat={}{0:F0},Mode=OneWay}"/>mm
</TextBlock>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}">
机架总长=<Run Text="{Binding FrameLength,StringFormat={}{0:F0},Mode=OneWay}"/>mm
</TextBlock>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Margin="{StaticResource ControlMargin}" >
<StackPanel Margin="{StaticResource ControlMargin}" >
...
...
Project.FLY.Thick.FilmCasting/FLY.Thick.FilmCasting.UI/PgBoltMap.xaml.cs
View file @
cb9d12df
...
@@ -73,7 +73,15 @@ namespace FLY.Thick.FilmCasting.UI
...
@@ -73,7 +73,15 @@ namespace FLY.Thick.FilmCasting.UI
public
int
Smooth
{
get
;
set
;
}
public
int
Smooth
{
get
;
set
;
}
#
endregion
#
endregion
/// <summary>
/// 模头总长 mm BoltCnt*BoltWidth
/// </summary>
public
double
DieLength
{
get
;
private
set
;
}
/// <summary>
/// 扫描架总长 mm
/// </summary>
public
double
FrameLength
{
get
;
private
set
;
}
#
region
profile
#
region
profile
/// <summary>
/// <summary>
...
@@ -118,21 +126,21 @@ namespace FLY.Thick.FilmCasting.UI
...
@@ -118,21 +126,21 @@ namespace FLY.Thick.FilmCasting.UI
}
}
public
void
Init
(
public
void
Init
(
IBoltMapFilmCastingService
boltMapCalender
Service
,
IBoltMapFilmCastingService
_boltMapFilmCasting
Service
,
IInitParamService
initParamService
,
IInitParamService
_
initParamService
,
IBorderSearchService
borderSearchService
,
IBorderSearchService
_
borderSearchService
,
IFilmCastingProfileService
filmCastingProfileService
)
IFilmCastingProfileService
_
filmCastingProfileService
)
{
{
this
.
boltMapFilmCastingService
=
boltMapCalender
Service
;
this
.
boltMapFilmCastingService
=
_boltMapFilmCasting
Service
;
this
.
initParamService
=
initParamService
;
this
.
initParamService
=
_
initParamService
;
this
.
borderSearchService
=
borderSearchService
;
this
.
borderSearchService
=
_
borderSearchService
;
this
.
filmCastingProfileService
=
filmCastingProfileService
;
this
.
filmCastingProfileService
=
_
filmCastingProfileService
;
Misc
.
BindingOperations
.
SetBinding
(
boltMap
CalenderService
,
nameof
(
boltMapCalender
Service
.
IsReversed
),
this
,
nameof
(
IsReversed
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
FilmCastingService
,
nameof
(
IBoltMapFilmCasting
Service
.
IsReversed
),
this
,
nameof
(
IsReversed
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
CalenderService
,
nameof
(
boltMapCalender
Service
.
BoltWidth
),
this
,
nameof
(
BoltWidth
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
FilmCastingService
,
nameof
(
IBoltMapFilmCasting
Service
.
BoltWidth
),
this
,
nameof
(
BoltWidth
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
CalenderService
,
nameof
(
boltMapCalender
Service
.
BoltCnt
),
this
,
nameof
(
BoltCnt
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
FilmCastingService
,
nameof
(
IBoltMapFilmCasting
Service
.
BoltCnt
),
this
,
nameof
(
BoltCnt
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
CalenderService
,
nameof
(
boltMapCalender
Service
.
Smooth
),
this
,
nameof
(
Smooth
));
Misc
.
BindingOperations
.
SetBinding
(
boltMap
FilmCastingService
,
nameof
(
IBoltMapFilmCasting
Service
.
Smooth
),
this
,
nameof
(
Smooth
));
var
param
=
this
.
filmCastingProfileService
.
Param
;
var
param
=
this
.
filmCastingProfileService
.
Param
;
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
LeftEmptyBolts
),
this
,
nameof
(
LeftEmptyBolts
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
LeftEmptyBolts
),
this
,
nameof
(
LeftEmptyBolts
));
...
@@ -140,7 +148,15 @@ namespace FLY.Thick.FilmCasting.UI
...
@@ -140,7 +148,15 @@ namespace FLY.Thick.FilmCasting.UI
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
UniformShrinkPercent
),
this
,
nameof
(
UniformShrinkPercent
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
UniformShrinkPercent
),
this
,
nameof
(
UniformShrinkPercent
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
MidOffset
),
this
,
nameof
(
MidOffset
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
MidOffset
),
this
,
nameof
(
MidOffset
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
PName
),
this
,
nameof
(
PName
));
Misc
.
BindingOperations
.
SetBinding
(
param
,
nameof
(
FilmCastingProfileParam
.
PName
),
this
,
nameof
(
PName
));
Misc
.
BindingOperations
.
SetBinding
(
this
,
new
string
[]
{
nameof
(
BoltWidth
),
nameof
(
BoltCnt
)
},()=>{
DieLength
=
BoltWidth
*
BoltCnt
;
});
Misc
.
BindingOperations
.
SetBinding
(
initParamService
,
new
string
[]
{
nameof
(
IInitParamService
.
PosLength
),
nameof
(
IInitParamService
.
Encoder1_mmpp
)
},
()
=>
{
FrameLength
=
initParamService
.
PosLength
*
initParamService
.
Encoder1_mmpp
;
});
}
}
private
void
Apply
()
private
void
Apply
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment