using Core.Mes.Client.Comm.Server; using CoreFS.CA06; 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; namespace Core.StlMes.Client.SaleOrder.Dialog { public partial class FrmCheckNLK : FrmBase { public FrmCheckNLK() { InitializeComponent(); } private string ordLnDlyPk = ""; private string tipStr = ""; /// /// 合同信息 /// public string TipStr { get { return tipStr; } set { tipStr = value; } } public FrmCheckNLK(string ordLnDlyPk, OpeBase _ob) { InitializeComponent(); this.ob = _ob; this.ordLnDlyPk = ordLnDlyPk; } private void FrmCheckNLK_Load(object sender, EventArgs e) { DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.CoreCheckLKRN.queryNLKRsn", new object[] { this.ordLnDlyPk }, this.ob); if (dt != null && dt.Rows.Count > 0) { string str = TipStr + "选择不利库的原因:\n" + dt.Rows[0][0].ToString2(); this.txtReason.Text = str; } } /// /// 评审通过按钮 /// /// /// private void btnPass_Click(object sender, EventArgs e) { int count = ServerHelper.SetData("com.steering.pss.sale.order.CoreCheckLKRN.updateNLKRsnPass", new object[] { this.ordLnDlyPk }, this.ob); if (count > 0) { this.DialogResult = DialogResult.OK; } } /// /// 评审不通过 /// /// /// private void btnBack_Click(object sender, EventArgs e) { int count = ServerHelper.SetData("com.steering.pss.sale.order.CoreCheckLKRN.updateNLKRsnBack", new object[] { this.ordLnDlyPk }, this.ob); if (count > 0) { this.DialogResult = DialogResult.OK; } } } }