📄 hireoutfrm.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Data.SqlClient;
using System.Drawing.Printing;
using UserData;
namespace LtsClient
{
/// <summary>
/// hireoutFrm 的摘要说明。
/// </summary>
public class hireoutFrm : System.Windows.Forms.Form
{
private System.Windows.Forms.RadioButton S;
private System.Windows.Forms.RadioButton H;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button findbtn;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox onum;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ListBox goodsselect;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.TextBox barcode;
private System.Windows.Forms.TextBox goodsname;
private System.Windows.Forms.TextBox info;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button morderbtn;
private System.Windows.Forms.TextBox membercode;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button orderbtn;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox totalnumstr;
private System.Windows.Forms.TextBox totalmemberstr;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox totalgoodsstr;
private System.Drawing.Printing.PrintDocument printDocument1;
private PrintPreviewDialog printPreviewDialog1;
private System.Windows.Forms.CheckBox printview;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public hireoutFrm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
FPara.CheckLogin();
BuildTable();
//
// 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.S = new System.Windows.Forms.RadioButton();
this.H = new System.Windows.Forms.RadioButton();
this.barcode = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.goodsname = new System.Windows.Forms.TextBox();
this.findbtn = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.goodsselect = new System.Windows.Forms.ListBox();
this.onum = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.morderbtn = new System.Windows.Forms.Button();
this.info = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.membercode = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.orderbtn = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.totalnumstr = new System.Windows.Forms.TextBox();
this.totalmemberstr = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.totalgoodsstr = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.printview = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.SuspendLayout();
//
// S
//
this.S.Location = new System.Drawing.Point(8, 26);
this.S.Name = "S";
this.S.Size = new System.Drawing.Size(88, 26);
this.S.TabIndex = 0;
this.S.Text = "出售(&A)";
this.S.Click += new System.EventHandler(this.S_Click);
//
// H
//
this.H.Location = new System.Drawing.Point(106, 26);
this.H.Name = "H";
this.H.Size = new System.Drawing.Size(87, 26);
this.H.TabIndex = 2;
this.H.Text = "出租(&S)";
this.H.Click += new System.EventHandler(this.H_Click);
//
// barcode
//
this.barcode.Location = new System.Drawing.Point(228, 26);
this.barcode.Name = "barcode";
this.barcode.Size = new System.Drawing.Size(114, 21);
this.barcode.TabIndex = 3;
this.barcode.Text = "";
//
// label1
//
this.label1.Location = new System.Drawing.Point(193, 34);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 18);
this.label1.TabIndex = 4;
this.label1.Text = "条码";
//
// label2
//
this.label2.Location = new System.Drawing.Point(342, 34);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(35, 18);
this.label2.TabIndex = 6;
this.label2.Text = "名称";
//
// goodsname
//
this.goodsname.Location = new System.Drawing.Point(377, 26);
this.goodsname.Name = "goodsname";
this.goodsname.Size = new System.Drawing.Size(114, 21);
this.goodsname.TabIndex = 5;
this.goodsname.Text = "";
//
// findbtn
//
this.findbtn.Location = new System.Drawing.Point(562, 26);
this.findbtn.Name = "findbtn";
this.findbtn.Size = new System.Drawing.Size(72, 25);
this.findbtn.TabIndex = 7;
this.findbtn.Text = "确定(&Z)";
this.findbtn.Click += new System.EventHandler(this.findbtn_Click);
//
// label3
//
this.label3.Location = new System.Drawing.Point(8, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(626, 17);
this.label3.TabIndex = 8;
this.label3.Text = "注意:为保证操作速度,请使用快捷键,ALT+A:售,ALT+S:租,ALT+D:还,ALT+Z:确定";
//
// goodsselect
//
this.goodsselect.ItemHeight = 12;
this.goodsselect.Location = new System.Drawing.Point(8, 52);
this.goodsselect.Name = "goodsselect";
this.goodsselect.Size = new System.Drawing.Size(165, 268);
this.goodsselect.TabIndex = 9;
this.goodsselect.SelectedIndexChanged += new System.EventHandler(this.goodsselect_SelectedIndexChanged);
//
// onum
//
this.onum.Location = new System.Drawing.Point(526, 26);
this.onum.Name = "onum";
this.onum.Size = new System.Drawing.Size(36, 21);
this.onum.TabIndex = 10;
this.onum.Text = "1";
//
// label4
//
this.label4.Location = new System.Drawing.Point(491, 34);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(35, 18);
this.label4.TabIndex = 11;
this.label4.Text = "数量";
//
// dataGrid1
//
this.dataGrid1.CaptionVisible = false;
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(184, 52);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.PreferredColumnWidth = 100;
this.dataGrid1.ReadOnly = true;
this.dataGrid1.RowHeaderWidth = 20;
this.dataGrid1.Size = new System.Drawing.Size(450, 189);
this.dataGrid1.TabIndex = 12;
//
// morderbtn
//
this.morderbtn.Location = new System.Drawing.Point(451, 267);
this.morderbtn.Name = "morderbtn";
this.morderbtn.Size = new System.Drawing.Size(87, 25);
this.morderbtn.TabIndex = 19;
this.morderbtn.Text = "会员租/售";
this.morderbtn.Click += new System.EventHandler(this.morderbtn_Click);
//
// info
//
this.info.Location = new System.Drawing.Point(269, 293);
this.info.Multiline = true;
this.info.Name = "info";
this.info.Size = new System.Drawing.Size(365, 43);
this.info.TabIndex = 20;
this.info.Text = "";
//
// label8
//
this.label8.Location = new System.Drawing.Point(184, 310);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(75, 25);
this.label8.TabIndex = 21;
this.label8.Text = "备注信息";
//
// membercode
//
this.membercode.Location = new System.Drawing.Point(269, 267);
this.membercode.Name = "membercode";
this.membercode.Size = new System.Drawing.Size(153, 21);
this.membercode.TabIndex = 23;
this.membercode.Text = "";
//
// label5
//
this.label5.Location = new System.Drawing.Point(184, 276);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(75, 17);
this.label5.TabIndex = 22;
this.label5.Text = "会员号码";
//
// orderbtn
//
this.orderbtn.Location = new System.Drawing.Point(538, 267);
this.orderbtn.Name = "orderbtn";
this.orderbtn.Size = new System.Drawing.Size(96, 25);
this.orderbtn.TabIndex = 24;
this.orderbtn.Text = "非会员租/售";
this.orderbtn.Click += new System.EventHandler(this.orderbtn_Click);
//
// label6
//
this.label6.Location = new System.Drawing.Point(184, 250);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(75, 17);
this.label6.TabIndex = 25;
this.label6.Text = "商品件数";
//
// totalnumstr
//
this.totalnumstr.Location = new System.Drawing.Point(269, 241);
this.totalnumstr.Name = "totalnumstr";
this.totalnumstr.Size = new System.Drawing.Size(48, 21);
this.totalnumstr.TabIndex = 26;
this.totalnumstr.Text = "";
//
// totalmemberstr
//
this.totalmemberstr.Location = new System.Drawing.Point(403, 241);
this.totalmemberstr.Name = "totalmemberstr";
this.totalmemberstr.Size = new System.Drawing.Size(70, 21);
this.totalmemberstr.TabIndex = 28;
this.totalmemberstr.Text = "";
//
// label7
//
this.label7.Location = new System.Drawing.Point(326, 250);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(80, 17);
this.label7.TabIndex = 27;
this.label7.Text = "会员价总计";
//
// totalgoodsstr
//
this.totalgoodsstr.Location = new System.Drawing.Point(557, 241);
this.totalgoodsstr.Name = "totalgoodsstr";
this.totalgoodsstr.Size = new System.Drawing.Size(71, 21);
this.totalgoodsstr.TabIndex = 30;
this.totalgoodsstr.Text = "";
//
// label9
//
this.label9.Location = new System.Drawing.Point(470, 250);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(88, 17);
this.label9.TabIndex = 29;
this.label9.Text = "非会员价总计";
//
// printDocument1
//
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
//
// printview
//
this.printview.Location = new System.Drawing.Point(422, 267);
this.printview.Name = "printview";
this.printview.Size = new System.Drawing.Size(20, 26);
this.printview.TabIndex = 31;
//
// hireoutFrm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(643, 347);
this.Controls.Add(this.printview);
this.Controls.Add(this.totalgoodsstr);
this.Controls.Add(this.label9);
this.Controls.Add(this.totalmemberstr);
this.Controls.Add(this.label7);
this.Controls.Add(this.totalnumstr);
this.Controls.Add(this.label6);
this.Controls.Add(this.orderbtn);
this.Controls.Add(this.membercode);
this.Controls.Add(this.label5);
this.Controls.Add(this.label8);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -