12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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.DataOperate;
- using UAS_MES.Entity;
- namespace UAS_MES.Special
- {
- public partial class Special_SettleSN : Form
- {
- DataHelper dh = SystemInf.dh;
- public Special_SettleSN()
- {
- InitializeComponent();
- }
- private void Confirm_Click(object sender, EventArgs e)
- {
- if (sn_code.Text != "")
- {
- DataTable dt = (DataTable)dh.ExecuteSql("select ms_id from makeserial where ms_sncode='" + sn_code.Text + "' order by ms_id desc", "select");
- if (dt.Rows.Count > 0)
- {
- string msid = dt.Rows[0]["ms_id"].ToString();
- dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_status=2", "ms_id='" + msid + "'");
- OperateResult.AppendText(">>序列号" + sn_code.Text + "结案成功\n", Color.Red, sn_code);
- }
- else OperateResult.AppendText(">>序列号" + sn_code.Text + "不存在\n", Color.Red);
- }
- else OperateResult.AppendText(">>序列号" + sn_code.Text + "不能为空\n", Color.Red);
- }
- }
- }
|