bug
lu
2025-08-27 8bcfd6a94e1e43d3acdb435b7e2facb6fc8ce597
DevApp/Gs.DevApp/DevFrm/QC/JyxmShowCopy.cs
@@ -59,7 +59,7 @@
                }
                if (_oldTable.Rows.Count <= 0)
                {
                    MsgHelper.ShowInformation("请选择你需要复制的物料!");
                    MsgHelper.ShowError("请选择你需要复制的物料!");
                    return;
                }
                gcMainCopy.BindingContext = new BindingContext();
@@ -72,7 +72,7 @@
                int _rows = gvMainCopy.RowCount;
                if (_rows <= 0)
                {
                    MsgHelper.ShowInformation("请选择你需要复制的物料!");
                    MsgHelper.ShowError("请选择你需要复制的物料!");
                    e.Cancel = true;
                    return;
                }
@@ -100,15 +100,17 @@
                {
                    var strJson = UtilityHelper.HttpPost("", _webServiceName + "ItemsComyMx", JsonConvert.SerializeObject(_obj));
                    var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                    MsgHelper.Warning("提示:" + _rtn.rtnMsg);
                    if (_rtn.rtnCode > 0)
                    {
                        MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg);
                        UtilityHelper.SetDefaultTable(gcMainCopy, gvMainCopy);
                    }
                    else
                        MsgHelper.ShowError("提示:" + _rtn.rtnMsg);
                }
                catch (Exception ex)
                {
                    MsgHelper.Warning("提示:" + ex.Message);
                    MsgHelper.ShowError("提示:" + ex.Message);
                }
            };
            this.wizardControl1.NextClick += (s, e) =>
@@ -119,7 +121,7 @@
                    int _rows = gvMainCopy.RowCount;
                    if (_rows <= 0)
                    {
                        MsgHelper.ShowInformation("请选择你需要复制的物料!");
                        MsgHelper.ShowError("请选择你需要复制的物料!");
                        e.Handled = true;
                        return;
                    }
@@ -152,8 +154,11 @@
        /// <param name="pageSize">每页几条</param>
        private void getPageList(int curPage)
        {
            gcMain.DataSource = null;
            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            gcMain.DataSource = null;
            System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder();
            _sbSqlWhere.Append("  and  a.FSubsidiary in");
            _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere());
            _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList));
            //_sbSqlWhere += "  and q.guid is  null";
            var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "item_no", "asc", "", _sbSqlWhere.ToString(), strType);
            var json = JsonConvert.SerializeObject(pgq);
@@ -186,7 +191,7 @@
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
@@ -229,12 +234,12 @@
                }
                else
                {
                    MsgHelper.Warning("提示:" + _rtn.rtnMsg);
                    MsgHelper.ShowError("提示:" + _rtn.rtnMsg);
                }
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }