| | |
| | | using Gs.DevApp.DevFrm.Rk; |
| | | using Gs.DevApp.DevFrm.Rpt; |
| | | using Gs.DevApp.DevFrm.Work; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Gs.DevApp.DevFrm.Rpt; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace Gs.DevApp.DevFrm |
| | | namespace Gs.DevApp.DevFrm.Rk |
| | | { |
| | | public partial class Frm_MesItemTbl : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | //打印事件 |
| | | this.ucBtnPrint1.btnPrintClick += (s, e) => |
| | | { |
| | | |
| | | if ((txt_tbl013.EditValue.ToString() == "False") ) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("该退料申请单未审核不能打印条码"); |
| | | txt_tbl013.Focus(); |
| | | return; |
| | | } |
| | | |
| | | string rowGuid = lbMxGuid.Text.Trim(); |
| | | ucBtnPrint1.guidKey = rowGuid; |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim(), txt_yuliang_1.Text.Trim())) |
| | |
| | | //2025/07/12加上修改状态下不能修改 |
| | | txt_tbl023.IsReadly = true; |
| | | txt_tbl002.IsReadly = true; |
| | | //txt_tbl005.ReadOnly = true; |
| | | //txt_tbl005.EditValue = true; |
| | | txt_tbl005.ReadOnly = true; |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | txt_tbl002.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(txt_tbl005.Text.Trim())) |
| | | if (txt_tbl005.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择原因!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择类型!"); |
| | | txt_tbl005.Focus(); |
| | | return; |
| | | } |
| | |
| | | txt_tbl005.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if ((txt_tbl005.Text.Trim() == "来料不良退料") && txt_chkOut.Checked) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("来料不良退料不能自动生成补料单,请检查!"); |
| | | txt_tbl005.Focus(); |
| | | return; |
| | | } |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | gcMain1.DataSource = null; |
| | | System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); |
| | | _sbSqlWhere.Append(" and a.tbl023 in"); |
| | | _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere()); |
| | | _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |