| | |
| | | <add key="StartPath" value="3"/> |
| | | <add key="SourcePath" value="D:\Moon\data\DOM"/> |
| | | <add key="TargetPath" value="D:\LF\upload"/> |
| | | <!--<add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/>--> |
| | | <add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/> |
| | | <!--<add key="pgConn" value="Server=192.168.20.83;Port=5433;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/>--> |
| | | <add key="pgConn" value="Server=103.85.165.99;Port=5433;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/> |
| | | <!--<add key="pgConn" value="Server=103.85.165.99;Port=5433;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/>--> |
| | | </appSettings> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> |
| | |
| | | <appSettings> |
| | | <!--<add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/>--> |
| | | <!--<add key="pgConn" value="Server=192.168.20.205;Port=5433;Database=langfang;User Id=postgres;Password=Postgres!_14_Lf;"/>--> |
| | | <!--<add key="pgConn" value="Server=192.168.20.83;Port=5433;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/>--> |
| | | <add key="pgConn" value="Server=103.85.165.99;Port=25432;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/> |
| | | <add key="pgConn" value="Server=192.168.20.83;Port=5433;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/> |
| | | <!--<add key="pgConn" value="Server=103.85.165.99;Port=25432;Database=moon;User Id=postgres;Password=Postgres!_14_moon;"/>--> |
| | | </appSettings> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/> |
| | |
| | | */ |
| | | @Data |
| | | @AllArgsConstructor |
| | | @SuppressWarnings("ALL") |
| | | @TableName("{tabName}") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class {entityName} extends BaseEntity { |
| | |
| | | */ |
| | | @Data |
| | | @AllArgsConstructor |
| | | @SuppressWarnings("ALL") |
| | | @TableName("{tabName}") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class {entityName} extends BaseGeoEntity { |
| | |
| | | this.txtTabNS.Name = "txtTabNS"; |
| | | this.txtTabNS.Size = new System.Drawing.Size(104, 26); |
| | | this.txtTabNS.TabIndex = 25; |
| | | this.txtTabNS.Text = "163875"; |
| | | this.txtTabNS.Text = "51776"; |
| | | // |
| | | // txtTabPre |
| | | // |
| | |
| | | this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label3.Location = new System.Drawing.Point(385, 94); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(135, 16); |
| | | this.label3.Size = new System.Drawing.Size(136, 16); |
| | | this.label3.TabIndex = 29; |
| | | this.label3.Text = "Entity名称空间:"; |
| | | // |
| | |
| | | this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label2.Location = new System.Drawing.Point(385, 58); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(135, 16); |
| | | this.label2.Size = new System.Drawing.Size(136, 16); |
| | | this.label2.TabIndex = 31; |
| | | this.label2.Text = "Mapper名称空间:"; |
| | | // |
| | |
| | | this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label1.Location = new System.Drawing.Point(433, 20); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(87, 16); |
| | | this.label1.Size = new System.Drawing.Size(88, 16); |
| | | this.label1.TabIndex = 39; |
| | | this.label1.Text = "表名前缀:"; |
| | | // |
| | |
| | | this.label9.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label9.Location = new System.Drawing.Point(636, 20); |
| | | this.label9.Name = "label9"; |
| | | this.label9.Size = new System.Drawing.Size(87, 16); |
| | | this.label9.Size = new System.Drawing.Size(88, 16); |
| | | this.label9.TabIndex = 41; |
| | | this.label9.Text = "名称空间:"; |
| | | // |
| | |
| | | return; |
| | | } |
| | | |
| | | sb.Append("\r\n"); |
| | | string colName = NameConvert(ti.col, false); |
| | | sb.Append("\r\n private " + type + " " + colName + ";\r\n"); |
| | | if ("references" == colName) sb.Append(" @TableField(value = \"\\\"references\\\"\")").Append("\r\n"); |
| | | sb.Append(" private " + type + " " + colName + ";\r\n"); |
| | | } |
| | | sb.Append("\r\n public " + entityName + "() {\r\n }\r\n"); |
| | | |
| | |
| | | { |
| | | string[] strs = name.Split(new char[] { '_' }); |
| | | |
| | | string str = ""; |
| | | for (int i = 0, c = strs.Length; i < c; i++) |
| | | { |
| | | if (i == 0 && !firstUpper) |
| | | if (0 == i && !firstUpper) |
| | | { |
| | | str += strs[i]; |
| | | continue; |
| | | } |
| | | |
| | | str += strs[i].Length == 1 ? strs[i] : ToUpperFirst(strs[i]); |
| | | } |
| | | if (str.Length == 1 && firstUpper) |
| | | { |
| | | return str.ToUpper(); |
| | | strs[i] = char.IsDigit(strs[i][0]) ? "_" + strs[i] : ToUpperFirst(strs[i]); |
| | | } |
| | | |
| | | return str; |
| | | return string.Join("", strs); |
| | | } |
| | | |
| | | public static string ToUpperFirst(string str) |
| | |
| | | /// </summary> |
| | | public void SetDefault() |
| | | { |
| | | if (string.IsNullOrWhiteSpace(title)) title = "管道基础大数据平台"; |
| | | if (string.IsNullOrWhiteSpace(title)) title = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(province)) province = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(scale)) scale = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(resolution)) resolution = string.Empty; |
| | |
| | | scale: "1:5万", |
| | | resolution: "5米", |
| | | date: "2022.11.09", |
| | | layers: "m_hydraulic_protection,m_marker,m_pipeline,m_sitepoint,m_valvehousepoint,m_crossing,高德矢量", |
| | | layers: "m_hydraulic_protection,m_marker,m_pipeline,m_sitepoint,m_valvehousepoint,m_crossing", |
| | | rotation: 0, |
| | | xmin: 103.394023, |
| | | ymin: 30.690466, |