📄 inputfrm.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using UserData;
namespace LtsClient
{
/// <summary>
/// inputFrm 的摘要说明。
/// </summary>
public class inputFrm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.ComboBox g_type;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox department;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox g_name;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox g_code;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox bar_code;
private System.Windows.Forms.TextBox order_num;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox order_price;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox order_from;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox order_time;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox goods_price;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox member_price;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox hire_price;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox publish;
private System.Windows.Forms.TextBox author;
private System.Windows.Forms.TextBox info;
private System.Windows.Forms.Button inputbtn;
private System.Windows.Forms.Button cancelbtn;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.ComboBox goods_type;
private static string GoodsType="S";
public inputFrm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
FPara.CheckLogin();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.g_type = new System.Windows.Forms.ComboBox();
this.department = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.g_name = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.g_code = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.bar_code = new System.Windows.Forms.TextBox();
this.order_num = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.order_price = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.order_from = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.order_time = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.goods_price = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.member_price = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.hire_price = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.publish = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.author = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.info = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.inputbtn = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.goods_type = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(32, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(32, 16);
this.label1.TabIndex = 1;
this.label1.Text = "类型";
//
// listBox1
//
this.listBox1.ItemHeight = 12;
this.listBox1.Location = new System.Drawing.Point(128, 80);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(120, 88);
this.listBox1.TabIndex = 0;
//
// g_type
//
this.g_type.Items.AddRange(new object[] {
"S 出售",
"H 出租"});
this.g_type.Location = new System.Drawing.Point(64, 16);
this.g_type.Name = "g_type";
this.g_type.Size = new System.Drawing.Size(64, 20);
this.g_type.TabIndex = 2;
this.g_type.Text = "S 出售";
this.g_type.SelectedIndexChanged += new System.EventHandler(this.g_type_SelectedIndexChanged);
//
// department
//
this.department.Location = new System.Drawing.Point(168, 16);
this.department.Name = "department";
this.department.ReadOnly = true;
this.department.TabIndex = 3;
this.department.Text = "";
//
// label2
//
this.label2.Location = new System.Drawing.Point(136, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(32, 16);
this.label2.TabIndex = 4;
this.label2.Text = "店号";
//
// label3
//
this.label3.Location = new System.Drawing.Point(32, 48);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(32, 16);
this.label3.TabIndex = 5;
this.label3.Text = "名称";
//
// g_name
//
this.g_name.Location = new System.Drawing.Point(64, 40);
this.g_name.Name = "g_name";
this.g_name.Size = new System.Drawing.Size(208, 21);
this.g_name.TabIndex = 6;
this.g_name.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(280, 48);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 16);
this.label4.TabIndex = 7;
this.label4.Text = "代号";
//
// g_code
//
this.g_code.Location = new System.Drawing.Point(312, 40);
this.g_code.Name = "g_code";
this.g_code.Size = new System.Drawing.Size(168, 21);
this.g_code.TabIndex = 8;
this.g_code.Text = "";
//
// label5
//
this.label5.Location = new System.Drawing.Point(280, 80);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(32, 16);
this.label5.TabIndex = 9;
this.label5.Text = "条码";
//
// bar_code
//
this.bar_code.Location = new System.Drawing.Point(312, 72);
this.bar_code.Name = "bar_code";
this.bar_code.Size = new System.Drawing.Size(168, 21);
this.bar_code.TabIndex = 10;
this.bar_code.Text = "";
//
// order_num
//
this.order_num.Location = new System.Drawing.Point(64, 72);
this.order_num.Name = "order_num";
this.order_num.Size = new System.Drawing.Size(62, 21);
this.order_num.TabIndex = 12;
this.order_num.Text = "";
//
// label6
//
this.label6.Location = new System.Drawing.Point(32, 80);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(30, 16);
this.label6.TabIndex = 11;
this.label6.Text = "数量";
//
// order_price
//
this.order_price.Location = new System.Drawing.Point(168, 72);
this.order_price.Name = "order_price";
this.order_price.Size = new System.Drawing.Size(104, 21);
this.order_price.TabIndex = 14;
this.order_price.Text = "";
//
// label7
//
this.label7.Location = new System.Drawing.Point(136, 80);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(32, 16);
this.label7.TabIndex = 13;
this.label7.Text = "进价";
//
// order_from
//
this.order_from.Location = new System.Drawing.Point(80, 104);
this.order_from.Name = "order_from";
this.order_from.Size = new System.Drawing.Size(160, 21);
this.order_from.TabIndex = 14;
this.order_from.Text = "";
//
// label8
//
this.label8.Location = new System.Drawing.Point(32, 112);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(48, 16);
this.label8.TabIndex = 13;
this.label8.Text = "供货商";
//
// order_time
//
this.order_time.Location = new System.Drawing.Point(312, 104);
this.order_time.Name = "order_time";
this.order_time.Size = new System.Drawing.Size(168, 21);
this.order_time.TabIndex = 16;
this.order_time.Text = "2004-04-26";
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -