提交当前本机整理版本
This commit is contained in:
+21
-1
@@ -455,4 +455,24 @@ namespace LadfDataApp
|
||||
private System.Windows.Forms.TextBox loginNameBox;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.RadioButton radioNext;
|
||||
private System.Windows.Forms.P
|
||||
private System.Windows.Forms.Panel panelFix;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.DateTimePicker fixEndDate;
|
||||
private System.Windows.Forms.DateTimePicker fixStartDate;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.RadioButton radioFix;
|
||||
private System.Windows.Forms.Panel panelNext;
|
||||
private System.Windows.Forms.DateTimePicker nextStartDate;
|
||||
private System.Windows.Forms.Label timeUnitLab;
|
||||
private System.Windows.Forms.Label timeIntervalLab;
|
||||
private System.Windows.Forms.TextBox timeIntervalBox;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox projectComboBox;
|
||||
private System.Windows.Forms.Button linkBtn;
|
||||
private System.Windows.Forms.Button startBtn;
|
||||
private System.Windows.Forms.CheckBox checkHistory;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -804,4 +804,42 @@ namespace LadfDataApp
|
||||
public string GetStamp(DateTime dateTime)
|
||||
{
|
||||
TimeSpan tspan = dateTime.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, 0);
|
||||
return Con
|
||||
return Convert.ToInt64(tspan.TotalSeconds).ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新消息
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
private void UpdateMsg(string msg)
|
||||
{
|
||||
if (this.tipsTextBox.InvokeRequired)
|
||||
{
|
||||
this.tipsTextBox.Invoke(new Action(() =>
|
||||
{
|
||||
this.tipsTextBox.AppendText(msg);
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.tipsTextBox.AppendText(msg);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 清空消息
|
||||
/// </summary>
|
||||
private void ClearMsg()
|
||||
{
|
||||
if (this.tipsTextBox.InvokeRequired)
|
||||
{
|
||||
this.tipsTextBox.Invoke(new Action(() =>
|
||||
{
|
||||
this.tipsTextBox.Clear();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.tipsTextBox.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,4 +125,29 @@ namespace LadfDataApp
|
||||
builder.AppendFormat("{0}={1}", item.Key, item.Value);
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
byteRequest = Encoding.UTF8.GetBytes(builder.ToString());
|
||||
httpWebRequest.ContentLength = byteRequest.Length;
|
||||
}
|
||||
Stream stream = httpWebRequest.GetRequestStream();
|
||||
stream.Write(byteRequest, 0, byteRequest.Length);
|
||||
stream.Close();
|
||||
|
||||
httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
|
||||
Stream responseStream = httpWebResponse.GetResponseStream();
|
||||
StreamReader streamReader = new StreamReader(responseStream, Encoding.UTF8);
|
||||
result = streamReader.ReadToEnd();
|
||||
streamReader.Close();
|
||||
responseStream.Close();
|
||||
|
||||
cookieCollection = cookie.GetCookies(new Uri(url));
|
||||
return httpWebResponse;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
cookieCollection = null;
|
||||
return httpWebResponse;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.T
|
||||
using System.Text;
|
||||
|
||||
namespace LadfDataApp
|
||||
{
|
||||
public class ProjectModel
|
||||
{
|
||||
public string projectId { get; set; }
|
||||
public string name { get; set; }
|
||||
public string delFlag { get; set; }
|
||||
public string province { get; set; }
|
||||
public string city { get; set; }
|
||||
public string county { get; set; }
|
||||
public string address { get; set; }
|
||||
public string propertyOwner { get; set; }
|
||||
public string constructionTime { get; set; }
|
||||
public string acreage { get; set; }
|
||||
public string typeId { get; set; }
|
||||
public string state { get; set; }
|
||||
public string enableTime { get; set; }
|
||||
public string energyConsumption { get; set; }
|
||||
public string imgUrl { get; set; }
|
||||
public string remarks { get; set; }
|
||||
public string contractor { get; set; }
|
||||
public string propertyMgmt { get; set; }
|
||||
public string projectTypeId { get; set; }
|
||||
public string projectTypeName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -6,4 +6,31 @@ using System.Runtime.InteropServices;
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("LadfDataApp")]
|
||||
[assembly: Asse
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("LadfDataApp")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("aa75c812-16a4-498c-bf4d-f1c2cb8e0015")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
+31
-1
@@ -37,4 +37,34 @@ namespace LadfDataApp.Properties
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager Resour
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LadfDataApp.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+29
-1
@@ -1 +1,29 @@
|
||||
//-------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace LadfDataApp.Properties
|
||||
{
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -563,4 +563,31 @@ namespace LadfDataApp
|
||||
/// <param name="cmd">The command.</param>
|
||||
/// <param name="Connection">The connection.</param>
|
||||
/// <param name="trans">The trans.</param>
|
||||
|
||||
/// <param name="cmdType">Type of the command.</param>
|
||||
/// <param name="cmdText">The command text.</param>
|
||||
/// <param name="cmdParms">The command parms.</param>
|
||||
private static void PrepareCommand(SqlCommand cmd, SqlConnection Connection, SqlTransaction trans, CommandType cmdType, string cmdText, SqlParameter[] cmdParms)
|
||||
{
|
||||
if (Connection.State != ConnectionState.Open)
|
||||
{
|
||||
Connection.Open();
|
||||
}
|
||||
cmd.Connection = Connection;
|
||||
cmd.CommandTimeout = CommandTimeout;
|
||||
cmd.CommandText = cmdText;
|
||||
if (trans != null)
|
||||
{
|
||||
cmd.Transaction = trans;
|
||||
}
|
||||
cmd.CommandType = cmdType;
|
||||
if (cmdParms != null)
|
||||
{
|
||||
foreach (SqlParameter parameter in cmdParms)
|
||||
{
|
||||
cmd.Parameters.Add(parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user