init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
+255
View File
@@ -0,0 +1,255 @@
namespace Lskj.CmCapture {
partial class FrmCmCapture {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmCmCapture));
this.axCmCaptureOcx1 = new AxCmCaptureOcxLib.AxCmCaptureOcx();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnDelete = new DevExpress.XtraEditors.SimpleButton();
this.btnUpload = new DevExpress.XtraEditors.SimpleButton();
this.gcMain = new DevExpress.XtraGrid.GridControl();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.col_id = new DevExpress.XtraGrid.Columns.GridColumn();
this.col_name = new DevExpress.XtraGrid.Columns.GridColumn();
this.col_created = new DevExpress.XtraGrid.Columns.GridColumn();
this.col_guid = new DevExpress.XtraGrid.Columns.GridColumn();
((System.ComponentModel.ISupportInitialize)(this.axCmCaptureOcx1)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
this.SuspendLayout();
//
// axCmCaptureOcx1
//
this.axCmCaptureOcx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.axCmCaptureOcx1.Enabled = true;
this.axCmCaptureOcx1.Location = new System.Drawing.Point(0, 0);
this.axCmCaptureOcx1.Name = "axCmCaptureOcx1";
this.axCmCaptureOcx1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axCmCaptureOcx1.OcxState")));
this.axCmCaptureOcx1.Size = new System.Drawing.Size(858, 377);
this.axCmCaptureOcx1.TabIndex = 2;
//
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.radioButton3);
this.panel1.Controls.Add(this.radioButton2);
this.panel1.Controls.Add(this.radioButton1);
this.panel1.Controls.Add(this.btnAdd);
this.panel1.Controls.Add(this.btnDelete);
this.panel1.Controls.Add(this.btnUpload);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 577);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(858, 38);
this.panel1.TabIndex = 3;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(618, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 12);
this.label1.TabIndex = 7;
//
// progressBar1
//
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressBar1.Location = new System.Drawing.Point(309, 8);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(303, 23);
this.progressBar1.TabIndex = 6;
//
// radioButton3
//
this.radioButton3.AutoSize = true;
this.radioButton3.Location = new System.Drawing.Point(244, 12);
this.radioButton3.Name = "radioButton3";
this.radioButton3.Size = new System.Drawing.Size(59, 16);
this.radioButton3.TabIndex = 5;
this.radioButton3.Tag = "0";
this.radioButton3.Text = "摄像头";
this.radioButton3.UseVisualStyleBackColor = true;
this.radioButton3.Click += new System.EventHandler(this.radioButton3_Click);
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(168, 12);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(71, 16);
this.radioButton2.TabIndex = 4;
this.radioButton2.Tag = "2";
this.radioButton2.Text = "辅助拍摄";
this.radioButton2.UseVisualStyleBackColor = true;
this.radioButton2.Click += new System.EventHandler(this.radioButton3_Click);
//
// radioButton1
//
this.radioButton1.AutoSize = true;
this.radioButton1.Checked = true;
this.radioButton1.Location = new System.Drawing.Point(103, 12);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(59, 16);
this.radioButton1.TabIndex = 3;
this.radioButton1.TabStop = true;
this.radioButton1.Tag = "1";
this.radioButton1.Text = "拍摄仪";
this.radioButton1.UseVisualStyleBackColor = true;
this.radioButton1.Click += new System.EventHandler(this.radioButton3_Click);
//
// btnAdd
//
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnAdd.Location = new System.Drawing.Point(690, 8);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(75, 23);
this.btnAdd.TabIndex = 2;
this.btnAdd.Text = "拍照、添加";
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnDelete
//
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnDelete.Location = new System.Drawing.Point(771, 8);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(75, 23);
this.btnDelete.TabIndex = 1;
this.btnDelete.Text = "删除";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// btnUpload
//
this.btnUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnUpload.Location = new System.Drawing.Point(12, 8);
this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(75, 23);
this.btnUpload.TabIndex = 0;
this.btnUpload.Text = "上传服务器";
this.btnUpload.Click += new System.EventHandler(this.btnUpload_Click);
//
// gcMain
//
this.gcMain.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gcMain.Location = new System.Drawing.Point(0, 377);
this.gcMain.MainView = this.gridView1;
this.gcMain.Name = "gcMain";
this.gcMain.Size = new System.Drawing.Size(858, 200);
this.gcMain.TabIndex = 4;
this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
//
// gridView1
//
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.col_id,
this.col_name,
this.col_created,
this.col_guid});
this.gridView1.GridControl = this.gcMain;
this.gridView1.Name = "gridView1";
this.gridView1.OptionsBehavior.Editable = false;
this.gridView1.OptionsView.ShowGroupPanel = false;
//
// col_id
//
this.col_id.Caption = "编号";
this.col_id.FieldName = "Id";
this.col_id.Name = "col_id";
this.col_id.Visible = true;
this.col_id.VisibleIndex = 0;
//
// col_name
//
this.col_name.Caption = "文件名";
this.col_name.FieldName = "Name";
this.col_name.Name = "col_name";
this.col_name.Visible = true;
this.col_name.VisibleIndex = 1;
//
// col_created
//
this.col_created.Caption = "时间";
this.col_created.FieldName = "Created";
this.col_created.Name = "col_created";
this.col_created.Visible = true;
this.col_created.VisibleIndex = 2;
//
// col_guid
//
this.col_guid.Caption = "隐藏字段";
this.col_guid.FieldName = "key";
this.col_guid.Name = "col_guid";
//
// FrmCmCapture
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(858, 615);
this.Controls.Add(this.axCmCaptureOcx1);
this.Controls.Add(this.gcMain);
this.Controls.Add(this.panel1);
this.MaximizeBox = false;
this.Name = "FrmCmCapture";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "拍摄照片";
this.Load += new System.EventHandler(this.FrmCmCapture_Load);
((System.ComponentModel.ISupportInitialize)(this.axCmCaptureOcx1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private AxCmCaptureOcxLib.AxCmCaptureOcx axCmCaptureOcx1;
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraGrid.GridControl gcMain;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.XtraEditors.SimpleButton btnDelete;
private DevExpress.XtraEditors.SimpleButton btnUpload;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton3;
private DevExpress.XtraGrid.Columns.GridColumn col_id;
private DevExpress.XtraGrid.Columns.GridColumn col_name;
private DevExpress.XtraGrid.Columns.GridColumn col_created;
private DevExpress.XtraGrid.Columns.GridColumn col_guid;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label label1;
}
}
+243
View File
@@ -0,0 +1,243 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Collections;
using System.IO;
using System.Threading;
using System.Diagnostics;
using CommonLib;
using DevExpress.XtraEditors;
namespace Lskj.CmCapture
{
public partial class FrmCmCapture : Form
{
private Dictionary<String, FileModel> data = new Dictionary<string, FileModel>();
private String fileDir = "\\temp_cm_capture\\";
private int typeid = 0;
public string DirId { get; set; }
public string OperatorId { get; set; }
public string speciesno { get; set; }
private DataTable dt;
public FrmCmCapture()
{
InitializeComponent();
gridView1.DoubleClick += new EventHandler(gridView1_DoubleClick);
}
void gridView1_DoubleClick(object sender, EventArgs e)
{
int[] rows = gridView1.GetSelectedRows();
if (rows.Length > 0)
{
DataRow row = gridView1.GetDataRow(rows[0]);
Process.Start(PubUtil.AbsolutelyPath + fileDir + row["Name"]);
}
}
private void FrmCmCapture_Load(object sender, EventArgs e)
{
try
{
axCmCaptureOcx1.Initial();
//axCmCaptureOcx1.AutoCrop(1);
axCmCaptureOcx1.StartRun(typeid); //0摄像头,1拍摄仪,2辅助拍摄
}
catch (Exception ex)
{
}
}
private void btnAdd_Click(object sender, EventArgs e)
{
String guid = Guid.NewGuid().ToString();
axCmCaptureOcx1.CaptureImage(PubUtil.AbsolutelyPath + fileDir + guid + ".bmp");
data.Add(guid, new FileModel(data.Keys.Count + 1, guid + ".bmp", DateTime.Now, guid));
List<FileModel> list = new List<FileModel>();
foreach (String s in data.Keys)
{
list.Add(data[s]);
}
gcMain.DataSource = ToDataTableTow(list);
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnUpload_Click(object sender, EventArgs e)
{
dt = gcMain.DataSource as DataTable;
if ((dt == null) || (dt.Rows.Count < 1))
{
MessageBox.Show("没有需要上传的文件");
return;
}
btnAdd.Enabled = false;
btnUpload.Enabled = false;
btnDelete.Enabled = false;
label1.Text = "上传中...";
if (dt != null)
{
progressBar1.Maximum = dt.Rows.Count;
new Thread(Uploader).Start();
}
}
protected override void OnClosing(CancelEventArgs e)
{
base.OnClosing(e);
axCmCaptureOcx1.Dispose();
}
public void Uploader()
{
try
{
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow row = dt.Rows[i];
String path = PubUtil.AbsolutelyPath + fileDir + row["Name"].ToString().Trim();
if (!File.Exists(path))
{
MessageBox.Show("file not exists");
btnAdd.Enabled = true;
btnUpload.Enabled = true;
btnDelete.Enabled = true;
return;
}
//Image image = Image.FromFile(path);
//System.IO.MemoryStream Ms = new MemoryStream();
//image.Save(Ms, System.Drawing.Imaging.ImageFormat.Bmp);
//MessageBox.Show(Ms.Length + " " + speciesno);
FileStream info = File.OpenRead(path);
byte[] img = new byte[info.Length];
info.Read(img, 0, Convert.ToInt32(info.Length));
info.Close();
//Ms.Position = 0;
//Ms.Read(img, 0, Convert.ToInt32(Ms.Length));
//Ms.Close();
progressBar1.Value = i;
net.eicp.fsdfh9.Uploader uploader = new net.eicp.fsdfh9.Uploader();
net.eicp.fsdfh9.ResultFile rf = uploader.UploadFile(img, DirId, row["Name"].ToString().Trim());
if (rf.Status == 0)
{
var name = row["name"] + "";
var size = Convert.ToInt64(img.Length);
string sqlValue = string.Format("INSERT INTO P_fm_FileTab(sName,ParentID,fileSize,creator,speciesno,CreateTime) " +
"VALUES('{0}',{1},'{2}',{3},'{4}','{5}')", row["Name"].ToString().Trim(), DirId, size, OperatorId, speciesno, DateTime.Now);
SqlHelper.ExecuteNonQuery(sqlValue);
}
else
{
MessageBox.Show("图片上传失败" + rf.ErrorMsg, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
}
progressBar1.Value = dt.Rows.Count;
btnAdd.Enabled = true;
btnUpload.Enabled = true;
btnDelete.Enabled = true;
label1.Text = "完成";
MessageBox.Show("图片上传成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void radioButton3_Click(object sender, EventArgs e)
{
RadioButton rb = (RadioButton)sender;
typeid = Convert.ToInt32(rb.Tag);
//axCmCaptureOcx1.Destory();
//axCmCaptureOcx1.Initial();
//axCmCaptureOcx1.AutoCrop(1);
int result = axCmCaptureOcx1.StartRun(typeid); //0摄像头,1拍摄仪,2辅助拍摄
}
private void btnDelete_Click(object sender, EventArgs e)
{
int[] rows = gridView1.GetSelectedRows();
for (int i = 0; i < rows.Length; i++)
{
DataRow row = gridView1.GetDataRow(rows[i]);
String guid = row["key"].ToString();
data.Remove(guid);
if (File.Exists(fileDir + guid + ".bmp"))
{
File.Delete(fileDir + guid + ".bmp");
}
}
List<FileModel> list = new List<FileModel>();
foreach (String s in data.Keys)
{
list.Add(data[s]);
}
gcMain.DataSource = ToDataTableTow(list);
}
// <summary>
/// 将集合类转换成DataTable
/// </summary>
/// <param name="list">集合</param>
/// <returns></returns>
public DataTable ToDataTableTow(IList list)
{
DataTable result = new DataTable();
if (list.Count > 0)
{
PropertyInfo[] propertys = list[0].GetType().GetProperties();
foreach (PropertyInfo pi in propertys)
{
result.Columns.Add(pi.Name, pi.PropertyType);
}
for (int i = 0; i < list.Count; i++)
{
ArrayList tempList = new ArrayList();
foreach (PropertyInfo pi in propertys)
{
object obj = pi.GetValue(list[i], null);
tempList.Add(obj);
}
object[] array = tempList.ToArray();
result.LoadDataRow(array, true);
}
}
return result;
}
}
public class FileModel
{
public FileModel(int Id, String Name, DateTime Created, String key)
{
this.Id = Id;
this.Name = Name;
this.Created = Created;
this.key = key;
}
public int Id { get; set; }
public string Name { get; set; }
public DateTime Created { get; set; }
public string key { get; set; }
}
}
+128
View File
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="axCmCaptureOcx1.OcxState" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAJQAAAAIB
AAAAAQAAAAAAAAAAAAAAABAAAAAAAAEArVgAAPcmAAAAAAAACw==
</value>
</data>
</root>
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{78F10772-3B77-423D-92B8-BBFE064B4360}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.CmCapture</RootNamespace>
<AssemblyName>Lskj.CmCapture</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\publish\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="AxInterop.CmCaptureOcxLib">
<HintPath>..\..\引用DLL\AxInterop.CmCaptureOcxLib.dll</HintPath>
</Reference>
<Reference Include="CommonLib">
<HintPath>..\..\引用DLL\CommonLib.dll</HintPath>
</Reference>
<Reference Include="ControlLib">
<HintPath>..\..\引用DLL\ControlLib.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Printing.v13.1.Core, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Utils.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraEditors.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraPrinting.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="Lskj.Common">
<HintPath>..\..\引用DLL\Lskj.Common.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Web.Services" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FrmCmCapture.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmCmCapture.Designer.cs">
<DependentUpon>FrmCmCapture.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Web References\net.eicp.fsdfh9\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Reference.map</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmCmCapture.resx">
<DependentUpon>FrmCmCapture.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Web References\net.eicp.fsdfh9\Reference.map">
<Generator>MSDiscoCodeGenerator</Generator>
<LastGenOutput>Reference.cs</LastGenOutput>
</None>
<None Include="Web References\net.eicp.fsdfh9\ResultFile.datasource">
<DependentUpon>Reference.map</DependentUpon>
</None>
<None Include="Web References\net.eicp.fsdfh9\Uploader.wsdl" />
</ItemGroup>
<ItemGroup>
<WebReferences Include="Web References\" />
</ItemGroup>
<ItemGroup>
<WebReferenceUrl Include="http://htydqc.xicp.cn:6666/Uploader.asmx">
<UrlBehavior>Dynamic</UrlBehavior>
<RelPath>Web References\net.eicp.fsdfh9\</RelPath>
<UpdateFromURL>http://htydqc.xicp.cn:6666/Uploader.asmx</UpdateFromURL>
<ServiceLocationURL>
</ServiceLocationURL>
<CachedDynamicPropName>
</CachedDynamicPropName>
<CachedAppSettingsObjectName>Settings</CachedAppSettingsObjectName>
<CachedSettingsPropName>Lskj_CmCapture_net_eicp_fsdfh9_Uploader</CachedSettingsPropName>
</WebReferenceUrl>
</ItemGroup>
<ItemGroup>
<None Include="Web References\net.eicp.fsdfh9\Uploader.disco" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,20 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.CmCapture", "Lskj.CmCapture.csproj", "{78F10772-3B77-423D-92B8-BBFE064B4360}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{78F10772-3B77-423D-92B8-BBFE064B4360}.Debug|x86.ActiveCfg = Debug|x86
{78F10772-3B77-423D-92B8-BBFE064B4360}.Debug|x86.Build.0 = Debug|x86
{78F10772-3B77-423D-92B8-BBFE064B4360}.Release|x86.ActiveCfg = Release|x86
{78F10772-3B77-423D-92B8-BBFE064B4360}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.CmCapture")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Lskj.CmCapture")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("d452e929-2123-441f-8b73-1bb0a7cba851")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.CmCapture.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.CmCapture.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;
}
}
}
}
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+36
View File
@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.18444
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.CmCapture.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
[global::System.Configuration.DefaultSettingValueAttribute("http://htydqc.xicp.cn:6666/Uploader.asmx")]
public string Lskj_CmCapture_net_eicp_fsdfh9_Uploader {
get {
return ((string)(this["Lskj_CmCapture_net_eicp_fsdfh9_Uploader"]));
}
}
}
}
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Lskj.CmCapture.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Lskj_CmCapture_net_eicp_fsdfh9_Uploader" Type="(Web Service URL)" Scope="Application">
<Value Profile="(Default)">http://htydqc.xicp.cn:6666/Uploader.asmx</Value>
</Setting>
</Settings>
</SettingsFile>
@@ -0,0 +1,199 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
//
#pragma warning disable 1591
namespace Lskj.CmCapture.net.eicp.fsdfh9 {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="UploaderSoap", Namespace="http://tempuri.org/")]
public partial class Uploader : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback UploadFileOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public Uploader() {
this.Url = global::Lskj.CmCapture.Properties.Settings.Default.Lskj_CmCapture_net_eicp_fsdfh9_Uploader;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event UploadFileCompletedEventHandler UploadFileCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UploadFile", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public ResultFile UploadFile([System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] content, string DirTabId, string filename) {
object[] results = this.Invoke("UploadFile", new object[] {
content,
DirTabId,
filename});
return ((ResultFile)(results[0]));
}
/// <remarks/>
public void UploadFileAsync(byte[] content, string DirTabId, string filename) {
this.UploadFileAsync(content, DirTabId, filename, null);
}
/// <remarks/>
public void UploadFileAsync(byte[] content, string DirTabId, string filename, object userState) {
if ((this.UploadFileOperationCompleted == null)) {
this.UploadFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUploadFileOperationCompleted);
}
this.InvokeAsync("UploadFile", new object[] {
content,
DirTabId,
filename}, this.UploadFileOperationCompleted, userState);
}
private void OnUploadFileOperationCompleted(object arg) {
if ((this.UploadFileCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UploadFileCompleted(this, new UploadFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2556.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public partial class ResultFile {
private string errorMsgField;
private int statusField;
private string dataField;
/// <remarks/>
public string ErrorMsg {
get {
return this.errorMsgField;
}
set {
this.errorMsgField = value;
}
}
/// <remarks/>
public int Status {
get {
return this.statusField;
}
set {
this.statusField = value;
}
}
/// <remarks/>
public string Data {
get {
return this.dataField;
}
set {
this.dataField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
public delegate void UploadFileCompletedEventHandler(object sender, UploadFileCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UploadFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UploadFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ResultFile Result {
get {
this.RaiseExceptionIfNecessary();
return ((ResultFile)(this.results[0]));
}
}
}
}
#pragma warning restore 1591
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<DiscoveryClientResultsFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Results>
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://htydqc.xicp.cn:6666/Uploader.asmx?disco" filename="Uploader.disco" />
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://htydqc.xicp.cn:6666/Uploader.asmx?wsdl" filename="Uploader.wsdl" />
</Results>
</DiscoveryClientResultsFile>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="ResultFile" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>Lskj.CmCapture.net.eicp.fsdfh9.ResultFile, Web References.net.eicp.fsdfh9.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
<contractRef ref="http://htydqc.xicp.cn:6666/Uploader.asmx?wsdl" docRef="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<soap address="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns:q1="http://tempuri.org/" binding="q1:UploaderSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<soap address="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns:q2="http://tempuri.org/" binding="q2:UploaderSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
</discovery>
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="UploadFile">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="content" type="s:base64Binary" />
<s:element minOccurs="0" maxOccurs="1" name="DirTabId" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="filename" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="UploadFileResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UploadFileResult" type="tns:ResultFile" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ResultFile">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ErrorMsg" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Status" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="Data" type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="UploadFileSoapIn">
<wsdl:part name="parameters" element="tns:UploadFile" />
</wsdl:message>
<wsdl:message name="UploadFileSoapOut">
<wsdl:part name="parameters" element="tns:UploadFileResponse" />
</wsdl:message>
<wsdl:portType name="UploaderSoap">
<wsdl:operation name="UploadFile">
<wsdl:input message="tns:UploadFileSoapIn" />
<wsdl:output message="tns:UploadFileSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UploaderSoap" type="tns:UploaderSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="UploadFile">
<soap:operation soapAction="http://tempuri.org/UploadFile" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="UploaderSoap12" type="tns:UploaderSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="UploadFile">
<soap12:operation soapAction="http://tempuri.org/UploadFile" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Uploader">
<wsdl:port name="UploaderSoap" binding="tns:UploaderSoap">
<soap:address location="http://htydqc.xicp.cn:6666/Uploader.asmx" />
</wsdl:port>
<wsdl:port name="UploaderSoap12" binding="tns:UploaderSoap12">
<soap12:address location="http://htydqc.xicp.cn:6666/Uploader.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Lskj.CmCapture.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<applicationSettings>
<Lskj.CmCapture.Properties.Settings>
<setting name="Lskj_CmCapture_net_eicp_fsdfh9_Uploader" serializeAs="String">
<value>http://htydqc.xicp.cn:6666/Uploader.asmx</value>
</setting>
</Lskj.CmCapture.Properties.Settings>
</applicationSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>