Commit 308961a445303aa1fe3e339ae8a0733f64754256
1 parent
dacd5eb3
修改律师阅卷连接、开启滚动条
Showing
5 changed files
with
26 additions
and
24 deletions
FRControl/App.config
@@ -28,9 +28,6 @@ | @@ -28,9 +28,6 @@ | ||
28 | <setting name="personImg" serializeAs="String"> | 28 | <setting name="personImg" serializeAs="String"> |
29 | <value>Resources/person.png</value> | 29 | <value>Resources/person.png</value> |
30 | </setting> | 30 | </setting> |
31 | - <setting name="personInterview" serializeAs="String"> | ||
32 | - <value>https://www.12309.gov.cn/front-cas/login</value> | ||
33 | - </setting> | ||
34 | <setting name="caseImg" serializeAs="String"> | 31 | <setting name="caseImg" serializeAs="String"> |
35 | <value>Resources/caseInfo.png</value> | 32 | <value>Resources/caseInfo.png</value> |
36 | </setting> | 33 | </setting> |
@@ -58,6 +55,9 @@ | @@ -58,6 +55,9 @@ | ||
58 | <setting name="personName" serializeAs="String"> | 55 | <setting name="personName" serializeAs="String"> |
59 | <value>律师阅卷</value> | 56 | <value>律师阅卷</value> |
60 | </setting> | 57 | </setting> |
58 | + <setting name="personInterview" serializeAs="String"> | ||
59 | + <value>https://www.12309.gov.cn/front-cas/login?casLv=1&service=https://www.12309.gov.cn/sppWeb/j_spring_cas_security_check</value> | ||
60 | + </setting> | ||
61 | </FRControl.Properties.Settings> | 61 | </FRControl.Properties.Settings> |
62 | </userSettings> | 62 | </userSettings> |
63 | </configuration> | 63 | </configuration> |
64 | \ No newline at end of file | 64 | \ No newline at end of file |
FRControl/Home.cs
@@ -67,7 +67,7 @@ namespace FRControl | @@ -67,7 +67,7 @@ namespace FRControl | ||
67 | //System.Diagnostics.Process.Start(Properties.Settings.Default.personInterview); | 67 | //System.Diagnostics.Process.Start(Properties.Settings.Default.personInterview); |
68 | WebView webView = new WebView(); | 68 | WebView webView = new WebView(); |
69 | title = Properties.Settings.Default.personName; | 69 | title = Properties.Settings.Default.personName; |
70 | - url = Properties.Settings.Default.personInterview+"?casLv=1&service=https://www.12309.gov.cn/sppWeb/j_spring_cas_security_check"; | 70 | + url = Properties.Settings.Default.personInterview; |
71 | //webView.param = Properties.Settings.Default.caseInformation; | 71 | //webView.param = Properties.Settings.Default.caseInformation; |
72 | webView.Show(); | 72 | webView.Show(); |
73 | } | 73 | } |
FRControl/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace FRControl.Properties { | @@ -12,7 +12,7 @@ namespace FRControl.Properties { | ||
12 | 12 | ||
13 | 13 | ||
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
15 | - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] | 15 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")] |
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
17 | 17 | ||
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
@@ -100,18 +100,6 @@ namespace FRControl.Properties { | @@ -100,18 +100,6 @@ namespace FRControl.Properties { | ||
100 | 100 | ||
101 | [global::System.Configuration.UserScopedSettingAttribute()] | 101 | [global::System.Configuration.UserScopedSettingAttribute()] |
102 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 102 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
103 | - [global::System.Configuration.DefaultSettingValueAttribute("http://xz.wh.hbjc.gov.cn/")] | ||
104 | - public string personInterview { | ||
105 | - get { | ||
106 | - return ((string)(this["personInterview"])); | ||
107 | - } | ||
108 | - set { | ||
109 | - this["personInterview"] = value; | ||
110 | - } | ||
111 | - } | ||
112 | - | ||
113 | - [global::System.Configuration.UserScopedSettingAttribute()] | ||
114 | - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
115 | [global::System.Configuration.DefaultSettingValueAttribute("Resources/caseInfo.png")] | 103 | [global::System.Configuration.DefaultSettingValueAttribute("Resources/caseInfo.png")] |
116 | public string caseImg { | 104 | public string caseImg { |
117 | get { | 105 | get { |
@@ -217,5 +205,18 @@ namespace FRControl.Properties { | @@ -217,5 +205,18 @@ namespace FRControl.Properties { | ||
217 | this["personName"] = value; | 205 | this["personName"] = value; |
218 | } | 206 | } |
219 | } | 207 | } |
208 | + | ||
209 | + [global::System.Configuration.UserScopedSettingAttribute()] | ||
210 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
211 | + [global::System.Configuration.DefaultSettingValueAttribute("https://www.12309.gov.cn/front-cas/login?casLv=1&service=https://www.12309.gov.cn" + | ||
212 | + "/sppWeb/j_spring_cas_security_check")] | ||
213 | + public string personInterview { | ||
214 | + get { | ||
215 | + return ((string)(this["personInterview"])); | ||
216 | + } | ||
217 | + set { | ||
218 | + this["personInterview"] = value; | ||
219 | + } | ||
220 | + } | ||
220 | } | 221 | } |
221 | } | 222 | } |
FRControl/Properties/Settings.settings
@@ -20,9 +20,6 @@ | @@ -20,9 +20,6 @@ | ||
20 | <Setting Name="personImg" Type="System.String" Scope="User"> | 20 | <Setting Name="personImg" Type="System.String" Scope="User"> |
21 | <Value Profile="(Default)">Resources/person.png</Value> | 21 | <Value Profile="(Default)">Resources/person.png</Value> |
22 | </Setting> | 22 | </Setting> |
23 | - <Setting Name="personInterview" Type="System.String" Scope="User"> | ||
24 | - <Value Profile="(Default)">http://xz.wh.hbjc.gov.cn/</Value> | ||
25 | - </Setting> | ||
26 | <Setting Name="caseImg" Type="System.String" Scope="User"> | 23 | <Setting Name="caseImg" Type="System.String" Scope="User"> |
27 | <Value Profile="(Default)">Resources/caseInfo.png</Value> | 24 | <Value Profile="(Default)">Resources/caseInfo.png</Value> |
28 | </Setting> | 25 | </Setting> |
@@ -50,5 +47,8 @@ | @@ -50,5 +47,8 @@ | ||
50 | <Setting Name="personName" Type="System.String" Scope="User"> | 47 | <Setting Name="personName" Type="System.String" Scope="User"> |
51 | <Value Profile="(Default)">律师阅卷</Value> | 48 | <Value Profile="(Default)">律师阅卷</Value> |
52 | </Setting> | 49 | </Setting> |
50 | + <Setting Name="personInterview" Type="System.String" Scope="User"> | ||
51 | + <Value Profile="(Default)">https://www.12309.gov.cn/front-cas/login?casLv=1&service=https://www.12309.gov.cn/sppWeb/j_spring_cas_security_check</Value> | ||
52 | + </Setting> | ||
53 | </Settings> | 53 | </Settings> |
54 | </SettingsFile> | 54 | </SettingsFile> |
55 | \ No newline at end of file | 55 | \ No newline at end of file |
FRControl/WebView.cs
@@ -41,6 +41,7 @@ namespace FRControl | @@ -41,6 +41,7 @@ namespace FRControl | ||
41 | //webBrowser1.Document.Body.Style = "zoom:0.5"; | 41 | //webBrowser1.Document.Body.Style = "zoom:0.5"; |
42 | this.TitlePanel.BackColor = Color.FromArgb(37, 122, 187); | 42 | this.TitlePanel.BackColor = Color.FromArgb(37, 122, 187); |
43 | this.webBrowser1.Url = new Uri(Home.url); | 43 | this.webBrowser1.Url = new Uri(Home.url); |
44 | + //Console.WriteLine(Home.url); | ||
44 | this.TitleLab.Text = Home.title; | 45 | this.TitleLab.Text = Home.title; |
45 | this.webBrowser1.ScriptErrorsSuppressed = true; | 46 | this.webBrowser1.ScriptErrorsSuppressed = true; |
46 | //this.webBrowser1.ScrollBarsEnabled = false; | 47 | //this.webBrowser1.ScrollBarsEnabled = false; |
@@ -76,10 +77,10 @@ namespace FRControl | @@ -76,10 +77,10 @@ namespace FRControl | ||
76 | int ybili = (int)((float)sz.Height / (float)szba.Height * 100);//垂直方向缩小比例 | 77 | int ybili = (int)((float)sz.Height / (float)szba.Height * 100);//垂直方向缩小比例 |
77 | Console.WriteLine("xbili:" + xbili + ",ybili:" + ybili); | 78 | Console.WriteLine("xbili:" + xbili + ",ybili:" + ybili); |
78 | webBrowser1.Document.Body.Style = "zoom:" + xbili.ToString() + "%"; | 79 | webBrowser1.Document.Body.Style = "zoom:" + xbili.ToString() + "%"; |
79 | - //if (xbili < ybili) | ||
80 | - // webBrowser1.Document.Body.Style = "zoom:" + xbili.ToString() + "%"; | ||
81 | - //else | ||
82 | - // webBrowser1.Document.Body.Style = "zoom:" + ybili.ToString() + "%"; | 80 | + if (xbili < ybili) |
81 | + webBrowser1.Document.Body.Style = "zoom:" + xbili.ToString() + "%"; | ||
82 | + else | ||
83 | + webBrowser1.Document.Body.Style = "zoom:" + ybili.ToString() + "%"; | ||
83 | webBrowser1.Invalidate(); | 84 | webBrowser1.Invalidate(); |
84 | } | 85 | } |
85 | private void Window_Error(object sender, HtmlElementErrorEventArgs e) | 86 | private void Window_Error(object sender, HtmlElementErrorEventArgs e) |