temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,84 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
{
|
||||
partial class UcCategoryProp
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.txtPropValue = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.ucGroupBoxEx1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.DodgerBlue;
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.txtPropValue);
|
||||
this.ucGroupBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
this.ucGroupBoxEx1.Size = new System.Drawing.Size(200, 50);
|
||||
this.ucGroupBoxEx1.TabIndex = 3;
|
||||
this.ucGroupBoxEx1.TabStop = false;
|
||||
this.ucGroupBoxEx1.Text = "属性名称";
|
||||
//
|
||||
// txtPropValue
|
||||
//
|
||||
this.txtPropValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtPropValue.Border.Class = "TextBoxBorder";
|
||||
this.txtPropValue.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtPropValue.Location = new System.Drawing.Point(6, 20);
|
||||
this.txtPropValue.Name = "txtPropValue";
|
||||
this.txtPropValue.PreventEnterBeep = true;
|
||||
this.txtPropValue.Size = new System.Drawing.Size(188, 21);
|
||||
this.txtPropValue.TabIndex = 69;
|
||||
this.txtPropValue.TextChanged += new System.EventHandler(this.txtPropValue_TextChanged);
|
||||
//
|
||||
// UcCategoryProp
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.ucGroupBoxEx1);
|
||||
this.Name = "UcCategoryProp";
|
||||
this.Size = new System.Drawing.Size(200, 50);
|
||||
this.Load += new System.EventHandler(this.UcCategoryProp_Load);
|
||||
this.ucGroupBoxEx1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private UserComponent.UcGroupBoxEx ucGroupBoxEx1;
|
||||
public DevComponents.DotNetBar.Controls.TextBoxX txtPropValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase.Helper;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
{
|
||||
public partial class UcCategoryProp : UserControl
|
||||
{
|
||||
private string propName;
|
||||
public string PropName
|
||||
{
|
||||
get { return propName; }
|
||||
set
|
||||
{
|
||||
propName = value;
|
||||
}
|
||||
}
|
||||
public string PropValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如果是品牌,则记录品牌Id
|
||||
/// </summary>
|
||||
public string PropBrandId { get; set; }
|
||||
|
||||
public UcCategoryProp()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void UcCategoryProp_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (propName != null)
|
||||
{
|
||||
this.ucGroupBoxEx1.Text = propName;
|
||||
|
||||
if (PropValue != null)
|
||||
{
|
||||
this.txtPropValue.Text = PropValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txtPropValue_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.PropValue = txtPropValue.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?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>
|
||||
</root>
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
{
|
||||
partial class UcQualifiaction
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.txtQualificationNumber = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.ucGroupBoxEx1 = new LittleRabbit.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnUploadImg = new DevComponents.DotNetBar.PanelEx();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.ucGroupBoxEx1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtQualificationNumber
|
||||
//
|
||||
this.txtQualificationNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txtQualificationNumber.Border.Class = "TextBoxBorder";
|
||||
this.txtQualificationNumber.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txtQualificationNumber.Location = new System.Drawing.Point(3, 23);
|
||||
this.txtQualificationNumber.Name = "txtQualificationNumber";
|
||||
this.txtQualificationNumber.PreventEnterBeep = true;
|
||||
this.txtQualificationNumber.Size = new System.Drawing.Size(188, 21);
|
||||
this.txtQualificationNumber.TabIndex = 0;
|
||||
this.txtQualificationNumber.TextChanged += new System.EventHandler(this.txtQualificationNumber_TextChanged);
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(3, 0);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(188, 162);
|
||||
this.pictureBox1.TabIndex = 1;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// ucGroupBoxEx1
|
||||
//
|
||||
this.ucGroupBoxEx1.BorderColor = System.Drawing.Color.DodgerBlue;
|
||||
this.ucGroupBoxEx1.BorderStyle = LittleRabbit.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.SQUARE;
|
||||
this.ucGroupBoxEx1.Controls.Add(this.splitContainer1);
|
||||
this.ucGroupBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ucGroupBoxEx1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ucGroupBoxEx1.Name = "ucGroupBoxEx1";
|
||||
this.ucGroupBoxEx1.Size = new System.Drawing.Size(200, 260);
|
||||
this.ucGroupBoxEx1.TabIndex = 2;
|
||||
this.ucGroupBoxEx1.TabStop = false;
|
||||
this.ucGroupBoxEx1.Text = "资质名称";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 6);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 68;
|
||||
this.label1.Text = "资质编号:";
|
||||
//
|
||||
// btnUploadImg
|
||||
//
|
||||
this.btnUploadImg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnUploadImg.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnUploadImg.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnUploadImg.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnUploadImg.Location = new System.Drawing.Point(3, 164);
|
||||
this.btnUploadImg.Name = "btnUploadImg";
|
||||
this.btnUploadImg.Size = new System.Drawing.Size(188, 23);
|
||||
this.btnUploadImg.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnUploadImg.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnUploadImg.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnUploadImg.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnUploadImg.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnUploadImg.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnUploadImg.Style.GradientAngle = 90;
|
||||
this.btnUploadImg.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnUploadImg.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnUploadImg.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnUploadImg.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnUploadImg.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnUploadImg.TabIndex = 66;
|
||||
this.btnUploadImg.Text = "上传图片";
|
||||
this.btnUploadImg.Click += new System.EventHandler(this.btnUploadImg_Click);
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(3, 17);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.txtQualificationNumber);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.pictureBox1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnUploadImg);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(194, 240);
|
||||
this.splitContainer1.SplitterDistance = 46;
|
||||
this.splitContainer1.TabIndex = 72;
|
||||
//
|
||||
// QualifiactionControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.ucGroupBoxEx1);
|
||||
this.Name = "QualifiactionControl";
|
||||
this.Size = new System.Drawing.Size(200, 260);
|
||||
this.Load += new System.EventHandler(this.QualifiactionControl_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ucGroupBoxEx1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txtQualificationNumber;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private UserComponent.UcGroupBoxEx ucGroupBoxEx1;
|
||||
private DevComponents.DotNetBar.PanelEx btnUploadImg;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using LittleRabbit.LittleRabbitForms.UploadForms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.UploadForms.FissionUserControl
|
||||
{
|
||||
public partial class UcQualifiaction : UserControl
|
||||
{
|
||||
private QualificationConfig qualification;
|
||||
public QualificationConfig Qualification
|
||||
{
|
||||
get { return qualification; }
|
||||
set
|
||||
{
|
||||
qualification = value;
|
||||
if (qualification.name == "包装标签图")
|
||||
{
|
||||
this.Height = 220; this.splitContainer1.Panel1Collapsed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
public quality_file QualificationFile { get; set; }
|
||||
|
||||
public UcQualifiaction()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.QualificationFile != null && this.QualificationFile.quality_attachments.Count > 0)
|
||||
{
|
||||
new FissionBrowserObject().ShowBigImg(this.QualificationFile.quality_attachments[0].url);
|
||||
}
|
||||
}
|
||||
|
||||
private void QualifiactionControl_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
ShowQualification();
|
||||
}
|
||||
|
||||
public void ShowQualification()
|
||||
{
|
||||
if (Qualification != null)
|
||||
{
|
||||
this.ucGroupBoxEx1.Text = Qualification.name;
|
||||
|
||||
if (QualificationFile != null)
|
||||
{
|
||||
this.txtQualificationNumber.Text = QualificationFile.quality_number;
|
||||
if (QualificationFile.quality_attachments.Count > 0)
|
||||
this.pictureBox1.Load(QualificationFile.quality_attachments.FirstOrDefault().url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnUploadImg_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Qualification == null || string.IsNullOrEmpty(Qualification.name))
|
||||
{
|
||||
BaseMsgForm.ShowError("资质属性获取失败!请关闭窗口重试");
|
||||
return;
|
||||
}
|
||||
|
||||
var uploadResult = new FissionBrowserObject().addLocalPic(false);
|
||||
if (uploadResult.Contains("\"msg\":\"success\""))
|
||||
{
|
||||
if (QualificationFile == null)
|
||||
{
|
||||
QualificationFile = new quality_file();
|
||||
QualificationFile.quality_key = Qualification.key;
|
||||
QualificationFile.quality_name = Qualification.name;
|
||||
}
|
||||
if (QualificationFile.quality_attachments == null)
|
||||
QualificationFile.quality_attachments = new List<quality_attachment>();
|
||||
|
||||
var imageUrl = BaseRegex.GetStringJson(ref uploadResult, "src")?.Replace("\\/", "/");
|
||||
if (!string.IsNullOrEmpty(imageUrl))
|
||||
{
|
||||
QualificationFile.quality_attachments.Clear();
|
||||
QualificationFile.quality_attachments.Add(new quality_attachment { media_type = 1, url = imageUrl });
|
||||
this.pictureBox1.Load(imageUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txtQualificationNumber_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (Qualification == null || string.IsNullOrEmpty(Qualification.name))
|
||||
{
|
||||
BaseMsgForm.ShowError("资质属性获取失败!请关闭窗口重试");
|
||||
return;
|
||||
}
|
||||
|
||||
if (QualificationFile == null)
|
||||
{
|
||||
QualificationFile = new quality_file();
|
||||
QualificationFile.quality_key = Qualification.key;
|
||||
QualificationFile.quality_name = Qualification.name;
|
||||
}
|
||||
|
||||
QualificationFile.quality_number = txtQualificationNumber.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?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>
|
||||
</root>
|
||||
Reference in new issue
Block a user