| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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 UAS_MES_NEW.DataOperate;
- using UAS_MES_NEW.Entity;
- using UAS_MES_NEW.PublicMethod;
- namespace UAS_MES_NEW.Make
- {
- public partial class Make_ProcessIn : Form
- {
- DataHelper dh;
- LogStringBuilder sql = new LogStringBuilder();
- AutoSizeFormClass asc = new AutoSizeFormClass();
- public Make_ProcessIn()
- {
- InitializeComponent();
- }
- private void Special_BoxSplit_Load(object sender, EventArgs e)
- {
- dh = SystemInf.dh;
- asc.controllInitializeSize(this);
- }
- private void Split_Click(object sender, EventArgs e)
- {
- if (Pallate.Text != "")
- {
- dh.ExecuteSql("insert into processin(pi_id,pi_sn,pi_date) values (processin_seq.nextval,'"+Pallate.Text+"',sysdate)", "insert");
- OperatResult.AppendText(">>PCBA:" + Pallate.Text + "程序烧录记录完成\n", Color.Green, Pallate);
- }
- else OperatResult.AppendText(">>录入" + Pallate.Text + "不可为空\n", Color.Red, Pallate);
- }
- private void Pallate_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- if (Pallate.Text != "")
- {
- Split_Click(sender, e);
- }
- else OperatResult.AppendText(">>录入" + Pallate.Text + "不可为空\n", Color.Red, Pallate);
- }
- }
- private void Make_ProcessIn_SizeChanged(object sender, EventArgs e)
- {
- asc.controlAutoSize(this);
- }
- }
- }
|