📄 jz_yw_zl.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data ;
namespace PDA_test
{
/// <summary>
/// JZ_YW_ZL 的摘要说明。
/// </summary>
public class JZ_YW_ZL : System.Windows.Forms.Form
{
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Button button_back;
private System.Windows.Forms.Button button_start;
private System.Windows.Forms.TextBox textBox_brjbxx;
public System.Data.SqlClient.SqlConnection JZYW_Sql_conn_str;
//public string cf_no ;//处方号
public string br_jbxx;//病人基本信息
public string mzh;
public string fil_con;
public DateTime zl_sfrq;
public DataTable lc_ylxm;
public string tilte_string;
public string fil_lx;
private int[] dim_dysj;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Label label_zxsl;
private System.Windows.Forms.Label label_yysl;
private DataView lc_view1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private int lc_seleid;
private int lc_zh;
private int lc_cfh;
private JZ_HSXC mF_Form ;
public string Sql_string;
public string log_name;
public JZ_YW_ZL(JZ_HSXC myform)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.mF_Form = myform ;
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.listBox1 = new System.Windows.Forms.ListBox();
this.button_back = new System.Windows.Forms.Button();
this.button_start = new System.Windows.Forms.Button();
this.textBox_brjbxx = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.label_zxsl = new System.Windows.Forms.Label();
this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.label_yysl = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
//
// listBox1
//
this.listBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.listBox1.Location = new System.Drawing.Point(0, 21);
this.listBox1.Size = new System.Drawing.Size(240, 226);
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// button_back
//
this.button_back.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.button_back.Location = new System.Drawing.Point(164, 256);
this.button_back.Size = new System.Drawing.Size(72, 32);
this.button_back.Text = "返回";
this.button_back.Click += new System.EventHandler(this.button_back_Click);
//
// button_start
//
this.button_start.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.button_start.Location = new System.Drawing.Point(4, 256);
this.button_start.Size = new System.Drawing.Size(72, 32);
this.button_start.Text = "执行";
this.button_start.Visible = false;
this.button_start.Click += new System.EventHandler(this.button_start_Click);
//
// textBox_brjbxx
//
this.textBox_brjbxx.Size = new System.Drawing.Size(240, 21);
this.textBox_brjbxx.Text = "";
//
// panel1
//
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.label_zxsl);
this.panel1.Controls.Add(this.button8);
this.panel1.Controls.Add(this.button7);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.label_yysl);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(192, 40);
this.panel1.Size = new System.Drawing.Size(240, 208);
this.panel1.Visible = false;
//
// button3
//
this.button3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.button3.Location = new System.Drawing.Point(176, 80);
this.button3.Size = new System.Drawing.Size(32, 24);
this.button3.Text = ">>";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.button4.Location = new System.Drawing.Point(104, 80);
this.button4.Size = new System.Drawing.Size(32, 24);
this.button4.Text = "<<";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// label_zxsl
//
this.label_zxsl.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.label_zxsl.ForeColor = System.Drawing.Color.Red;
this.label_zxsl.Location = new System.Drawing.Point(136, 72);
this.label_zxsl.Size = new System.Drawing.Size(38, 16);
this.label_zxsl.Text = "1";
this.label_zxsl.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// button8
//
this.button8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.button8.Location = new System.Drawing.Point(176, 56);
this.button8.Size = new System.Drawing.Size(32, 24);
this.button8.Text = "+";
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button7
//
this.button7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
this.button7.Location = new System.Drawing.Point(104, 56);
this.button7.Size = new System.Drawing.Size(32, 24);
this.button7.Text = "-";
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button2
//
this.button2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.button2.Location = new System.Drawing.Point(128, 128);
this.button2.Size = new System.Drawing.Size(72, 40);
this.button2.Text = "放弃";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.button1.Location = new System.Drawing.Point(40, 128);
this.button1.Size = new System.Drawing.Size(72, 40);
this.button1.Text = "确定";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label_yysl
//
this.label_yysl.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.label_yysl.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.label_yysl.Location = new System.Drawing.Point(32, 56);
this.label_yysl.Size = new System.Drawing.Size(48, 20);
//
// label3
//
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.label3.ForeColor = System.Drawing.Color.Red;
this.label3.Location = new System.Drawing.Point(128, 24);
this.label3.Size = new System.Drawing.Size(72, 20);
this.label3.Text = "本次执行";
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular);
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Size = new System.Drawing.Size(72, 20);
this.label1.Text = "原有数量";
//
// panel2
//
this.panel2.Location = new System.Drawing.Point(32, 40);
this.panel2.Size = new System.Drawing.Size(128, 120);
//
// JZ_YW_ZL
//
this.ClientSize = new System.Drawing.Size(242, 263);
this.Controls.Add(this.panel1);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button_back);
this.Controls.Add(this.button_start);
this.Controls.Add(this.textBox_brjbxx);
this.Controls.Add(this.panel2);
this.Text = "急诊巡查-";
this.Load += new System.EventHandler(this.JZ_YW_ZL_Load);
}
#endregion
private void button_back_Click(object sender, System.EventArgs e)
{
this.mF_Form.Show();
this.Close();
}
private void JZ_YW_ZL_Load(object sender, System.EventArgs e)
{
//MessageBox.Show(this.mF_Form.ds_rwjl.Tables[2].Rows[0]["名称"].ToString());
//string sql_conn=this.JZYW_Sql_conn_str.ConnectionString.ToString().Trim()+"password=1";
this.JZYW_Sql_conn_str=new SqlConnection(Sql_string);
this.form_refresh();
this.Text=this.Text.ToString().Trim()+tilte_string.ToString().Trim();
}
private void form_refresh()
{
string lcnr="";
this.textBox_brjbxx.Text=this.br_jbxx.ToString();
DataView lc_view=new DataView(lc_ylxm,fil_con,"收费日期",DataViewRowState.CurrentRows);
DateTime lc_sfrq;
string lc_lx;
int lc_zh;
string lc_nr1="";
int str_len=0;
int lc_rowcount=lc_view.Count;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -