cdk
2025-12-02 821e74f483c3fddebe42ef30bb06e8fe29b1a5b9
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs
@@ -1,17 +1,17 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
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.IO;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.Warehouse
namespace Gs.DevApp.DevFrm
{
    public partial class Frm_MesDbck : DevExpress.XtraEditors.XtraForm
    {
@@ -157,6 +157,8 @@
                }
            };
            #endregion
            this.txt_fInDepartment.getSuppler("");
            this.txt_fOutDepartment.getSuppler("");
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
@@ -306,6 +308,7 @@
            txt_ftranstype.ReadOnly = true;
            txt_fOwnerTypeIdHead.ReadOnly = true;
            txt_fOwnerTypeInIdHead.ReadOnly = true;
            txt_djtype.ReadOnly = true;
        }
        /// <summary>
        /// 新增事件
@@ -322,7 +325,11 @@
            Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
            //增加时,默认组织
            string deftOrg = UtilityHelper.GetFirstOrg(txt_fapporgid);
            txt_fapporgid.IsReadly = true;
            txt_ftranstype.ReadOnly = true;
            txt_fOwnerTypeIdHead.ReadOnly = true;
            txt_fOwnerTypeInIdHead.ReadOnly = true;
            txt_djtype.ReadOnly = true;
        }
        /// <summary>
        /// 保存事件
@@ -339,6 +346,8 @@
            string dblx = txt_ftranstype.Text.ToString();
            string dchzlx = txt_fOwnerTypeIdHead.Text.ToString();
            string drhzlx = txt_fOwnerTypeInIdHead.Text.ToString();
            string inDe = txt_fInDepartment.GetId().ToString();
            string outDe = txt_fOutDepartment.GetId().ToString();
            //if (txt_fBillTypeID.SelectedIndex <= 0)
            //{
            //    Gs.DevApp.ToolBox.MsgHelper.Warning("请选择单据类型!");
@@ -355,6 +364,18 @@
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择申请组织!");
                txt_fapporgid.Focus();
                return;
            }
            if (string.IsNullOrEmpty(inDe))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择调入部门!");
                txt_fInDepartment.Focus();
                return;
            }
            if (string.IsNullOrEmpty(outDe))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择调出部门!");
                txt_fOutDepartment.Focus();
                return;
            }
            //if (txt_fOwnerTypeIdHead.SelectedIndex <= 0)
@@ -380,6 +401,8 @@
                dchzlx = dchzlx,//调出货主类型
                drhzlx = drhzlx,//调入货主类型
                inRemark = txt_fRemarks.Text.Trim(),//备注
                outDe = outDe,
                inDe = inDe,
                list = new List<dynamic>(),
            };
            gvMx1.CloseEditor();