FrmCheckNLK.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using Core.Mes.Client.Comm.Server;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace Core.StlMes.Client.SaleOrder.Dialog
  12. {
  13. public partial class FrmCheckNLK : FrmBase
  14. {
  15. public FrmCheckNLK()
  16. {
  17. InitializeComponent();
  18. }
  19. private string ordLnDlyPk = "";
  20. private string tipStr = "";
  21. /// <summary>
  22. /// 合同信息
  23. /// </summary>
  24. public string TipStr
  25. {
  26. get { return tipStr; }
  27. set { tipStr = value; }
  28. }
  29. public FrmCheckNLK(string ordLnDlyPk, OpeBase _ob)
  30. {
  31. InitializeComponent();
  32. this.ob = _ob;
  33. this.ordLnDlyPk = ordLnDlyPk;
  34. }
  35. private void FrmCheckNLK_Load(object sender, EventArgs e)
  36. {
  37. DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.CoreCheckLKRN.queryNLKRsn", new object[] { this.ordLnDlyPk }, this.ob);
  38. if (dt != null && dt.Rows.Count > 0)
  39. {
  40. string str = TipStr + "选择不利库的原因:\n" + dt.Rows[0][0].ToString2();
  41. this.txtReason.Text = str;
  42. }
  43. }
  44. /// <summary>
  45. /// 评审通过按钮
  46. /// </summary>
  47. /// <param name="sender"></param>
  48. /// <param name="e"></param>
  49. private void btnPass_Click(object sender, EventArgs e)
  50. {
  51. int count = ServerHelper.SetData("com.steering.pss.sale.order.CoreCheckLKRN.updateNLKRsnPass", new object[] { this.ordLnDlyPk }, this.ob);
  52. if (count > 0)
  53. {
  54. this.DialogResult = DialogResult.OK;
  55. }
  56. }
  57. /// <summary>
  58. /// 评审不通过
  59. /// </summary>
  60. /// <param name="sender"></param>
  61. /// <param name="e"></param>
  62. private void btnBack_Click(object sender, EventArgs e)
  63. {
  64. int count = ServerHelper.SetData("com.steering.pss.sale.order.CoreCheckLKRN.updateNLKRsnBack", new object[] { this.ordLnDlyPk }, this.ob);
  65. if (count > 0)
  66. {
  67. this.DialogResult = DialogResult.OK;
  68. }
  69. }
  70. }
  71. }