cnf
7 天以前 1b3db8f5683373dd8e179b006e7314783dd1f9db
WebApi/Gs.QiTaCk/MesSctkSqManager.cs
@@ -10,8 +10,8 @@
using Microsoft.AspNetCore.Mvc;
using static Gs.Toolbox.UtilityHelper;
namespace Gs.QiTaCk;
namespace Gs.QiTaCk
{
[ApiGroup(ApiGroupNames.QTCK)]
public class MesSctkSqManager : IRomteService
{
@@ -82,7 +82,6 @@
            return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
                ReturnCode.Exception, ex.Message);
        }
        return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
            ReturnCode.Success, "读取成功");
    }
@@ -132,6 +131,7 @@
    }
    /// <summary>
        ///
    /// </summary>
    /// <param name="mode"></param>
    /// <returns></returns>
@@ -182,7 +182,6 @@
                }
            }
        }
        return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "操作成功!");
    }
@@ -199,22 +198,19 @@
        string ckId = model.DepotId; //仓库
        string bz = model.Remark; //备注
        string Reason = model.Reason; //原因
        var _sb = new StringBuilder();
        var _split = "|";
            StringBuilder _sb = new StringBuilder();
            string _split = "|";
        foreach (var m in model.list)
        {
            string _guid = m.Guid.ToString();
            var _line = m.AboutGuid + _split
                                    + m.Quantity + _split
                                    + m.Bz + _split
                                    + (CheckGuid(_guid)
                                        ? _guid
                                        : Guid.Empty.ToString());
                    + (UtilityHelper.CheckGuid(_guid) ? _guid : Guid.Empty.ToString());
            if (_sb.Length > 0)
                _sb.Append("~");
            _sb.Append(_line);
        }
        dynamic mObj = new ExpandoObject();
        mObj.outMsg = "";
        mObj.outSum = -1;
@@ -234,8 +230,7 @@
                        new("@outSum", SqlDbType.Int),
                        new("@outGuid", SqlDbType.UniqueIdentifier),
                        new("@outNo", SqlDbType.NVarChar, 300),
                        new("@inOrderGuid",
                            CheckGuid(guid) ? guid : DBNull.Value),
                        new("@inOrderGuid",UtilityHelper.CheckGuid(guid) ? guid: DBNull.Value),
                        new("@inBz", bz), //备注
                        new("@inOrgId", orgId), //组织
                        new("@inCkId", ckId), //仓库
@@ -268,12 +263,9 @@
                }
            }
        }
        if (mObj.outSum <= 0)
            return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Exception,
                mObj.outMsg);
        return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Success,
            mObj.outMsg);
                return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Exception, mObj.outMsg);
            return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Success, mObj.outMsg);
    }
    /// <summary>
@@ -302,7 +294,7 @@
                        new("@outMsg", SqlDbType.NVarChar, 300),
                        new("@outSum", SqlDbType.Int),
                        new("@inOrderGuid",
                            CheckGuid(guid)
                            UtilityHelper.CheckGuid(guid)
                                ? guid
                                : DBNull.Value),
                        new("@inEdtUserGuid", _userGuid),
@@ -330,7 +322,6 @@
                }
            }
        }
        if (_outSum <= 0)
            return ReturnDto<int>.QuickReturn(rtnInt, ReturnCode.Exception,
                _outMsg);
@@ -367,7 +358,7 @@
                        new("@inSortName", sortName),
                        new("@inSortOrder", ""),
                        new("@inQueryWhere", keyWhere),
                        new("@inOrgId", inOrgId)
                        new("@inOrgId", inOrgId),
                    };
                    foreach (var parameter in parameters)
                        cmd.Parameters.Add(parameter);
@@ -376,18 +367,14 @@
                        dt.Fill(dset, "0");
                    }
                }
                conn.Close();
            }
        }
        catch (Exception ex)
        {
            LogHelper.Debug(ToString(),
                "prc_sctksq_select error:" + ex.Message);
            return ReturnDto<PageList<dynamic>>.QuickReturn(
                default(PageList<dynamic>), ReturnCode.Exception, "读取失败");
                LogHelper.Debug(ToString(), "prc_sctksq_select error:" + ex.Message);
                return ReturnDto<PageList<dynamic>>.QuickReturn(default(PageList<dynamic>), ReturnCode.Exception, "读取失败");
        }
        var _pglist = new PageList<dynamic>
        {
            total = 0,
@@ -409,8 +396,9 @@
            var _dy = dset.Tables[0].TableToDynamicList();
            _pglist.list = _dy;
        }
        return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
            ReturnCode.Success, "读取成功");
    }
    }
}