新框架PC后端代码(祈禧6月初版本)
lg
2025-11-20 b98df034707a61fd2857dbccd5a232605076ca59
WebApi/Gs.Ww/WWBlManager.cs
@@ -117,8 +117,8 @@
                    m = dr.RowToDynamic();
                    var _tb = dset.Tables[1].TableToDynamicList();
                    m.list = _tb;
                    var _tb2 = dset.Tables[2].TableToDynamicList();
                    m.list2 = _tb2;
                    //var _tb2 = dset.Tables[2].TableToDynamicList();
                    //m.list2 = _tb2;
                }
            }
            catch (Exception ex)
@@ -196,11 +196,10 @@
        public ReturnDto<ExpandoObject> EditModel([FromBody] dynamic model)
        {
            Guid? guid = model.guid; //主键
            string inOrgId = model.inOrgId; //
            string inGdId = model.inGdId; //工单号
            string inCkId = model.inCkId;//仓库
            string inYy = model.inYy;//原因
            string inType=model.inType;////出库类别
            string inOrgId = model.inOrgId;////出库类别
            string inWwGys = model.inWwGys;////出库类别
            var _sb = new StringBuilder();
            var _split = "|";
            foreach (var m in model.list)
@@ -235,12 +234,11 @@
                        new("@outGuid", SqlDbType.UniqueIdentifier),
                        new("@outNo", SqlDbType.NVarChar, 300),
                        new("@inOrderGuid",UtilityHelper.CheckGuid(guid)? guid : DBNull.Value),
                        new("@inOrgId", inOrgId),
                        new("@inCkId", inCkId),
                        new("@inGdId", inGdId),
                        new("@inYy", inYy),
                        new("@inType",inType),
                        new("@inEdtUserGuid", _userGuid),
                        new("@inOrgId", inOrgId),
                        new("@inWwGys", inWwGys),
                        new("@inLineList", _sb.ToString())
                    };
                        parameters[0].Direction = ParameterDirection.Output;
@@ -258,7 +256,7 @@
                    catch (Exception ex)
                    {
                        LogHelper.Debug(ToString(),
                            "prc_BL_edt error:" + ex.Message);
                            "prc_ww_BL_edt error:" + ex.Message);
                        mObj.outMsg = ex.Message;
                        mObj.outSum = -1;
                    }
@@ -282,7 +280,7 @@
        public ReturnDto<int?> DeleteModelOrMx([FromBody] dynamic model)
        {
            int? rtnInt = (int)ReturnCode.Default;
            Guid? guid = model.guid; //到货单主键
            Guid? guid = model.guid;
            string mxGuid = model.mxGuid;
            var _outMsg = "";
            var _outSum = -1;
@@ -317,7 +315,7 @@
                    catch (Exception ex)
                    {
                        LogHelper.Debug(ToString(),
                            "prc_cgdhd_Edt error:" + ex.Message);
                            "prc_ww_BL_del error:" + ex.Message);
                        _outMsg = ex.Message;
                        _outSum = -1;
                    }