| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- 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 = "";
- /// <summary>
- /// 合同信息
- /// </summary>
- 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;
- }
- }
- /// <summary>
- /// 评审通过按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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;
- }
- }
- /// <summary>
- /// 评审不通过
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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;
- }
- }
- }
- }
|