Commit 308961a445303aa1fe3e339ae8a0733f64754256
1 parent
dacd5eb3
修改律师阅卷连接、开启滚动条
Showing
5 changed files
with
26 additions
and
24 deletions
FRControl/App.config
... | ... | @@ -28,9 +28,6 @@ |
28 | 28 | <setting name="personImg" serializeAs="String"> |
29 | 29 | <value>Resources/person.png</value> |
30 | 30 | </setting> |
31 | - <setting name="personInterview" serializeAs="String"> | |
32 | - <value>https://www.12309.gov.cn/front-cas/login</value> | |
33 | - </setting> | |
34 | 31 | <setting name="caseImg" serializeAs="String"> |
35 | 32 | <value>Resources/caseInfo.png</value> |
36 | 33 | </setting> |
... | ... | @@ -58,6 +55,9 @@ |
58 | 55 | <setting name="personName" serializeAs="String"> |
59 | 56 | <value>律师阅卷</value> |
60 | 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 | 61 | </FRControl.Properties.Settings> |
62 | 62 | </userSettings> |
63 | 63 | </configuration> |
64 | 64 | \ No newline at end of file | ... | ... |
FRControl/Home.cs
... | ... | @@ -67,7 +67,7 @@ namespace FRControl |
67 | 67 | //System.Diagnostics.Process.Start(Properties.Settings.Default.personInterview); |
68 | 68 | WebView webView = new WebView(); |
69 | 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 | 71 | //webView.param = Properties.Settings.Default.caseInformation; |
72 | 72 | webView.Show(); |
73 | 73 | } | ... | ... |
FRControl/Properties/Settings.Designer.cs
... | ... | @@ -12,7 +12,7 @@ namespace FRControl.Properties { |
12 | 12 | |
13 | 13 | |
14 | 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 | 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
17 | 17 | |
18 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
... | ... | @@ -100,18 +100,6 @@ namespace FRControl.Properties { |
100 | 100 | |
101 | 101 | [global::System.Configuration.UserScopedSettingAttribute()] |
102 | 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 | 103 | [global::System.Configuration.DefaultSettingValueAttribute("Resources/caseInfo.png")] |
116 | 104 | public string caseImg { |
117 | 105 | get { |
... | ... | @@ -217,5 +205,18 @@ namespace FRControl.Properties { |
217 | 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 | 20 | <Setting Name="personImg" Type="System.String" Scope="User"> |
21 | 21 | <Value Profile="(Default)">Resources/person.png</Value> |
22 | 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 | 23 | <Setting Name="caseImg" Type="System.String" Scope="User"> |
27 | 24 | <Value Profile="(Default)">Resources/caseInfo.png</Value> |
28 | 25 | </Setting> |
... | ... | @@ -50,5 +47,8 @@ |
50 | 47 | <Setting Name="personName" Type="System.String" Scope="User"> |
51 | 48 | <Value Profile="(Default)">律师阅卷</Value> |
52 | 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 | 53 | </Settings> |
54 | 54 | </SettingsFile> |
55 | 55 | \ No newline at end of file | ... | ... |
FRControl/WebView.cs
... | ... | @@ -41,6 +41,7 @@ namespace FRControl |
41 | 41 | //webBrowser1.Document.Body.Style = "zoom:0.5"; |
42 | 42 | this.TitlePanel.BackColor = Color.FromArgb(37, 122, 187); |
43 | 43 | this.webBrowser1.Url = new Uri(Home.url); |
44 | + //Console.WriteLine(Home.url); | |
44 | 45 | this.TitleLab.Text = Home.title; |
45 | 46 | this.webBrowser1.ScriptErrorsSuppressed = true; |
46 | 47 | //this.webBrowser1.ScrollBarsEnabled = false; |
... | ... | @@ -76,10 +77,10 @@ namespace FRControl |
76 | 77 | int ybili = (int)((float)sz.Height / (float)szba.Height * 100);//垂直方向缩小比例 |
77 | 78 | Console.WriteLine("xbili:" + xbili + ",ybili:" + ybili); |
78 | 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 | 84 | webBrowser1.Invalidate(); |
84 | 85 | } |
85 | 86 | private void Window_Error(object sender, HtmlElementErrorEventArgs e) | ... | ... |