lg
4 天以前 cb9a9c1d0ea86d2f86bdf1c395f430d70b7274e1
DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs
@@ -195,11 +195,12 @@
            };
            #endregion
            #region 2025-08-27 增加委外供应商
            txt_qtlx.SelectedIndexChanged += (s, e) =>
            txt_qtlx.ChangedEvent += (s, e) =>
            {
                int idx = txt_qtlx.SelectedIndex;
                if (idx == 7)
                if (idx == 6)
                {
                    layItemWwgys.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                }
@@ -210,6 +211,7 @@
                }
            };
            #endregion
            #region 2025-10-10 向下复制beg
            btnDown.Click += (s, e) =>
@@ -495,13 +497,13 @@
            string inHzlx = ucLookHuoZhu1.GetHzLx();//货主类型
            string inHz = ucLookHuoZhu1.GetHzId();//货主
            string inRkyy = txt_qt010.Text.Trim();//原因
            string inDjlx = txt_qt019.Text.Trim();//单据类型
            string inDjlx = txt_qt019.TextTxt.Trim();//单据类型
           // string inLyOrg = txt_qt024.GetId();//领用组织
            string inLyOrg = inOrgId;//领用组织等于库存组织
            string inLyCus = txt_qt013.GetId();//领用客户
            string inLyDepart = txt_qt009.GetId();//领用部门
            string inKcfx = txt_qt020.Text.Trim();//库存方向
            string qtlx = txt_qtlx.Text.Trim();//后来增加的类型
            string qtlx = txt_qtlx.TextTxt.Trim();//后来增加的类型
            string wwgys = txt_wwgys.GetId();
            if (string.IsNullOrEmpty(inOrgId))
            {
@@ -519,20 +521,26 @@
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择货主!");
                return;
            }
            if (inDjlx.Length <= 0)
            {
                MsgHelper.ShowError("请选择退单据类型!");
                txt_qt019.Focus();
                return;
            }
            //if (string.IsNullOrEmpty(inLyOrg))
            //{
            //    Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择领用组织!");
            //    txt_qt024.Focus();
            //    return;
            //}
            if (txt_qtlx.SelectedIndex <= 0)
            if (qtlx.Length <= 0)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择出库类型!");
                txt_qtlx.Focus();
                return;
            }
            //这是非委外的防呆
            if (txt_qtlx.SelectedIndex != 7)
            if (txt_qtlx.SelectedIndex != 6)
            {
                if (string.IsNullOrEmpty(inLyCus) && string.IsNullOrEmpty(inLyDepart))
                {
@@ -546,7 +554,7 @@
                }
            }
            //这是委外的防呆
            if (txt_qtlx.SelectedIndex == 7)
            if (txt_qtlx.SelectedIndex == 6)
            {
                if (string.IsNullOrEmpty(wwgys))
                {