Browse Source

教材 章节 上传

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
dc3992b1fb

+ 55
- 57
XHWK.WKTool/CreateAMicroLessonWindow.xaml View File

@@ -7,70 +7,51 @@
7 7
         mc:Ignorable="d"
8 8
         Title="星火微课" Height="346" Width="457"   AllowsTransparency="True"
9 9
     WindowStartupLocation="CenterScreen"
10
-    WindowStyle="None" Loaded="Window_Loaded" Margin="0"  BorderThickness="5,5,5,5">
10
+    WindowStyle="None" Loaded="Window_Loaded" Margin="0"  BorderThickness="7">
11 11
     <Window.Effect>
12
-        <DropShadowEffect BlurRadius="5" Color="#FF060606" Direction="80" ShadowDepth="0"/>
12
+        <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
13 13
     </Window.Effect>
14
-    <Viewbox>
15
-        <Grid Height="341" Width="454" >
16
-            <!--分4行-->
17
-            <Grid.RowDefinitions>
18
-                <RowDefinition Height="45"/>
19
-                <RowDefinition Height="110"/>
20
-                <RowDefinition Height="80"/>
21
-                <RowDefinition Height="*"/>
22
-            </Grid.RowDefinitions>
23
-            <!--第一行 标题-->
24
-            <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
25
-                <Grid>
26
-                    <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
27
-                    <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
28
-                </Grid>
14
+    <Grid>
15
+        <!--分4行-->
16
+        <Grid.RowDefinitions>
17
+            <RowDefinition Height="45"/>
18
+            <RowDefinition Height="110"/>
19
+            <RowDefinition Height="80"/>
20
+            <RowDefinition Height="*"/>
21
+        </Grid.RowDefinitions>
22
+        <!--第一行 标题-->
23
+        <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Grid.ColumnSpan="2">
24
+            <Grid>
25
+                <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
26
+                <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
27
+            </Grid>
28
+        </Border>
29
+        <!--第二行 讲解名称-->
30
+        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0" Grid.ColumnSpan="2">
31
+            <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
32
+            <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
33
+            <!--输入框-->
34
+            <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
35
+                <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
29 36
             </Border>
30
-            <!--第二行 讲解名称-->
31
-            <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0">
32
-                <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
33
-                <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
34
-                <!--输入框-->
35
-                <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
36
-                    <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
37
-                </Border>
38
-            </StackPanel>
39
-            <!--第三行 存放路径-->
40
-            <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0">
41
-                <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
42
-                <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
43
-                <!--输入框-->
44
-                <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
45
-                    <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
46
-                </Border>
47
-                <!--浏览按钮-->
48
-                <Button  Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
49
-                    <Button.Template>
50
-                        <ControlTemplate TargetType="{x:Type Button}">
51
-                            <Border
52
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
53
-                                BorderThickness="1"
54
-                                CornerRadius="2">
55
-                                <Border.Background>#CDD6E0</Border.Background>
56
-                                <ContentPresenter
57
-                                    HorizontalAlignment="Center"
58
-                                    VerticalAlignment="Center"
59
-                                    Content="{TemplateBinding ContentControl.Content}" />
60
-                            </Border>
61
-                        </ControlTemplate>
62
-                    </Button.Template>
63
-                </Button>
64
-            </StackPanel>
65
-            <!--第四行 开始按钮-->
66
-            <Button  Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click">
37
+        </StackPanel>
38
+        <!--第三行 存放路径-->
39
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0" Grid.ColumnSpan="2">
40
+            <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
41
+            <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
42
+            <!--输入框-->
43
+            <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
44
+                <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
45
+            </Border>
46
+            <!--浏览按钮-->
47
+            <Button  Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
67 48
                 <Button.Template>
68 49
                     <ControlTemplate TargetType="{x:Type Button}">
69 50
                         <Border
70 51
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
71 52
                                 BorderThickness="1"
72 53
                                 CornerRadius="2">
73
-                            <Border.Background>#2D8CF0</Border.Background>
54
+                            <Border.Background>#CDD6E0</Border.Background>
74 55
                             <ContentPresenter
75 56
                                     HorizontalAlignment="Center"
76 57
                                     VerticalAlignment="Center"
@@ -79,6 +60,23 @@
79 60
                     </ControlTemplate>
80 61
                 </Button.Template>
81 62
             </Button>
82
-        </Grid>
83
-    </Viewbox>
63
+        </StackPanel>
64
+        <!--第四行 开始按钮-->
65
+        <Button  Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
66
+            <Button.Template>
67
+                <ControlTemplate TargetType="{x:Type Button}">
68
+                    <Border
69
+                                BorderBrush="{TemplateBinding Control.BorderBrush}"
70
+                                BorderThickness="1"
71
+                                CornerRadius="2">
72
+                        <Border.Background>#2D8CF0</Border.Background>
73
+                        <ContentPresenter
74
+                                    HorizontalAlignment="Center"
75
+                                    VerticalAlignment="Center"
76
+                                    Content="{TemplateBinding ContentControl.Content}" />
77
+                    </Border>
78
+                </ControlTemplate>
79
+            </Button.Template>
80
+        </Button>
81
+    </Grid>
84 82
 </Window>

+ 73
- 0
XHWK.WKTool/DAL/Interface.cs View File

@@ -43,5 +43,78 @@ namespace XHWK.WKTool.DAL
43 43
                 return 1;
44 44
             }
45 45
         }
46
+        ///// <summary>
47
+        ///// 教师教材列表
48
+        ///// </summary>
49
+        ///// <param name="request"></param>
50
+        ///// <returns></returns>
51
+        //public int TsubjectbookList()
52
+        //{
53
+        //    //RESP_TsubjectbookList returnObj = new RESP_TsubjectbookList();
54
+        //    try
55
+        //    {
56
+        //        string url = ZConfig.apiUrl + "/tsubjectbook/list";//地址
57
+        //        Dictionary<string, int> dic = new Dictionary<string, int>
58
+        //        {
59
+        //            { "teacherid",APP.UserInfo.Userid}
60
+        //        };
61
+        //        string body = ZJsonHelper.ToJson(dic);
62
+        //        ResultVo<List<RESP_TsubjectbookList>> result = ZHttpUtil.PostAndRespSignle<ResultVo<List<RESP_TsubjectbookList>>>(url, postData: body);
63
+        //        if (result != null)
64
+        //        {
65
+        //            Shared.ServerMsg = result.msg;
66
+        //            Shared.TeachingData.RESP_TsubjectbookList = result.obj;
67
+        //            return result.code;
68
+        //        }
69
+        //        else
70
+        //        {
71
+        //            Shared.ServerMsg = "网络异常!";
72
+        //            ZCommonData.loginUser = new LoginUser();
73
+        //            return 1;
74
+        //        }
75
+        //    }
76
+        //    catch (Exception ex)
77
+        //    {
78
+        //        LogHelper.WriteErrLog("【调用接口(RegisterController)】错误日志:" + ex.Message, ex);
79
+        //        return 1;
80
+        //    }
81
+        //}
82
+        ///// <summary>
83
+        ///// 章节--列表
84
+        ///// </summary>
85
+        ///// <param name="request"></param>
86
+        ///// <returns></returns>
87
+        //public int DirectorList(REQ_DirectorList _request)
88
+        //{
89
+        //    try
90
+        //    {
91
+        //        string url = ZConfig.apiUrl + "/director/list";//地址
92
+        //        Dictionary<string, int> dic = new Dictionary<string, int>
93
+        //        {
94
+        //            { "lsbid", _request.lsbid },
95
+        //            { "directortype", _request.directortype },
96
+        //            { "createid", _request.createid }
97
+        //        };
98
+        //        string body = ZJsonHelper.ToJson(dic);
99
+        //        ResultVo<List<RESP_DirectorList>> result = ZHttpUtil.PostAndRespSignle<ResultVo<List<RESP_DirectorList>>>(url, postData: body);
100
+        //        if (result != null)
101
+        //        {
102
+        //            Shared.ServerMsg = result.msg;
103
+        //            Shared.TeachingData.RESP_DirectorList = result.obj;
104
+        //            return result.code;
105
+        //        }
106
+        //        else
107
+        //        {
108
+        //            Shared.ServerMsg = "网络异常!";
109
+        //            ZCommonData.loginUser = new LoginUser();
110
+        //            return 1;
111
+        //        }
112
+        //    }
113
+        //    catch (Exception ex)
114
+        //    {
115
+        //        LogHelper.WriteErrLog("【调用接口(RegisterController)】错误日志:" + ex.Message, ex);
116
+        //        return 1;
117
+        //    }
118
+        //}
46 119
     }
47 120
 }

+ 80
- 0
XHWK.WKTool/UploadWindow.xaml View File

@@ -0,0 +1,80 @@
1
+<Window x:Class="XHWK.WKTool.UploadWindow"
2
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
+        xmlns:local="clr-namespace:XHWK.WKTool"
7
+        mc:Ignorable="d"
8
+        Title="UploadWindow" Height="346" Width="457"   AllowsTransparency="True"
9
+    WindowStartupLocation="CenterScreen"
10
+    WindowStyle="None" Loaded="Window_Loaded" Margin="0"  BorderThickness="5,5,5,5">
11
+    <Viewbox>
12
+        <Grid Height="341" Width="454" >
13
+            <!--分4行-->
14
+            <Grid.RowDefinitions>
15
+                <RowDefinition Height="45"/>
16
+                <RowDefinition Height="80"/>
17
+                <RowDefinition Height="60"/>
18
+                <RowDefinition Height="60"/>
19
+                <RowDefinition Height="*"/>
20
+            </Grid.RowDefinitions>
21
+            <!--第一行 标题-->
22
+            <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
23
+                <Grid>
24
+                    <TextBlock Text="上传" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
25
+                    <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
26
+                </Grid>
27
+            </Border>
28
+            <!--第三行 教材-->
29
+            <ComboBox Cursor="Hand"
30
+                            x:Name="book_list"
31
+                            Grid.Row="2"
32
+                            Height="30"
33
+                      Width="300"
34
+                            Margin="0,0,0,0"
35
+                            Padding="10,0,0,0"
36
+                            VerticalContentAlignment="Center"
37
+                            DisplayMemberPath="Value"
38
+                            FontSize="14"
39
+                            ItemsSource="{Binding bookList}"
40
+                            SelectedValuePath="Key"
41
+                          >
42
+                <ComboBox.Resources>
43
+                    <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="WhiteSmoke" />
44
+                    <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
45
+                </ComboBox.Resources>
46
+            </ComboBox>
47
+            <!--章节-->
48
+            <ComboBox Cursor="Hand"
49
+                            x:Name="cmbTeachingMaterial"
50
+                            Grid.Row="3"
51
+                               Height="30"
52
+                             Width="300"
53
+                            Padding="10,0,0,0"
54
+                            VerticalContentAlignment="Center"
55
+                            Background="White"
56
+                            DisplayMemberPath="Value"
57
+                            FontSize="14"
58
+                            Foreground="Black"
59
+                            ItemsSource="{Binding zhangjieList}"
60
+                            SelectedValuePath="Key" />
61
+            <!--第四行 开始按钮-->
62
+            <Button  Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="确定" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" >
63
+                <Button.Template>
64
+                    <ControlTemplate TargetType="{x:Type Button}">
65
+                        <Border
66
+                                BorderBrush="{TemplateBinding Control.BorderBrush}"
67
+                                BorderThickness="1"
68
+                                CornerRadius="2">
69
+                            <Border.Background>#2D8CF0</Border.Background>
70
+                            <ContentPresenter
71
+                                    HorizontalAlignment="Center"
72
+                                    VerticalAlignment="Center"
73
+                                    Content="{TemplateBinding ContentControl.Content}" />
74
+                        </Border>
75
+                    </ControlTemplate>
76
+                </Button.Template>
77
+            </Button>
78
+        </Grid>
79
+    </Viewbox>
80
+</Window>

+ 37
- 0
XHWK.WKTool/UploadWindow.xaml.cs View File

@@ -0,0 +1,37 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading.Tasks;
6
+using System.Windows;
7
+using System.Windows.Controls;
8
+using System.Windows.Data;
9
+using System.Windows.Documents;
10
+using System.Windows.Input;
11
+using System.Windows.Media;
12
+using System.Windows.Media.Imaging;
13
+using System.Windows.Shapes;
14
+
15
+namespace XHWK.WKTool
16
+{
17
+    /// <summary>
18
+    /// UploadWindow.xaml 的交互逻辑
19
+    /// </summary>
20
+    public partial class UploadWindow : Window
21
+    {
22
+        public UploadWindow()
23
+        {
24
+            InitializeComponent();
25
+        }
26
+
27
+        private void Window_Loaded(object sender, RoutedEventArgs e)
28
+        {
29
+
30
+        }
31
+
32
+        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
33
+        {
34
+
35
+        }
36
+    }
37
+}

+ 7
- 0
XHWK.WKTool/XHWK.WKTool.csproj View File

@@ -162,6 +162,9 @@
162 162
     <Compile Include="ScreenRecordingToolbarWindow.xaml.cs">
163 163
       <DependentUpon>ScreenRecordingToolbarWindow.xaml</DependentUpon>
164 164
     </Compile>
165
+    <Compile Include="UploadWindow.xaml.cs">
166
+      <DependentUpon>UploadWindow.xaml</DependentUpon>
167
+    </Compile>
165 168
     <Compile Include="XHMicroLessonSystemWindow.xaml.cs">
166 169
       <DependentUpon>XHMicroLessonSystemWindow.xaml</DependentUpon>
167 170
     </Compile>
@@ -211,6 +214,10 @@
211 214
       <Generator>MSBuild:Compile</Generator>
212 215
       <SubType>Designer</SubType>
213 216
     </Page>
217
+    <Page Include="UploadWindow.xaml">
218
+      <SubType>Designer</SubType>
219
+      <Generator>MSBuild:Compile</Generator>
220
+    </Page>
214 221
     <Page Include="XHMicroLessonSystemWindow.xaml">
215 222
       <Generator>MSBuild:Compile</Generator>
216 223
       <SubType>Designer</SubType>

Loading…
Cancel
Save