| | |
| | | } |
| | | |
| | | |
| | | |
| | | #region CRUD |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | LogHelper.Debug(ToString(), ex.Message); |
| | | return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist, |
| | | ReturnCode.Exception, ex.Message); |
| | | ReturnCode.Exception, ex.Message); |
| | | } |
| | | |
| | | return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist, |
| | |
| | | _sb.Append("~"); |
| | | _sb.Append(_line); |
| | | } |
| | | |
| | | dynamic mObj = new ExpandoObject(); |
| | | mObj.outMsg = ""; |
| | | mObj.outSum = -1; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | 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); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "操作成功!"); |
| | | } |
| | | |
| | |
| | | new("@inQueryWhere", keyWhere), |
| | | new("@inBusType", inBusType), |
| | | new("@inSupId", inSupId), |
| | | new("@inP1", inReceiveOrgId), //组织 |
| | | new("@inP1", inReceiveOrgId),//组织 |
| | | new("@inP2", "") |
| | | }; |
| | | foreach (var parameter in parameters) |
| | |
| | | dt.Fill(dset, "0"); |
| | | } |
| | | } |
| | | |
| | | conn.Close(); |
| | | } |
| | | } |
| | |
| | | "读取成功!"); |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | new("@inSortName", sortName), |
| | | new("@inSortOrder", ""), |
| | | new("@inQueryWhere", keyWhere), |
| | | new("@inBusType", inBusType), //1是采购,2是委外 |
| | | new("@inSupId", inSupId), //供应商 |
| | | new("@inP1", inReceiveOrgId), //组织 |
| | | new("@inBusType", inBusType),//1是采购,2是委外 |
| | | new("@inSupId", inSupId),//供应商 |
| | | new("@inP1", inReceiveOrgId),//组织 |
| | | new("@inP2", "") |
| | | }; |
| | | foreach (var parameter in parameters) |
| | |
| | | dt.Fill(dset, "0"); |
| | | } |
| | | } |
| | | |
| | | conn.Close(); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据单号读取srm明细 |
| | | /// 根据单号读取srm明细 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | |
| | | cmd.CommandType = CommandType.StoredProcedure; |
| | | SqlParameter[] parameters = |
| | | { |
| | | new("@pi_shdh", pi_shdh), |
| | | new("@inP1", ""), |
| | | new("@inP2", "") |
| | | new("@pi_shdh",pi_shdh), |
| | | new("@inP1",""), |
| | | new("@inP2",""), |
| | | }; |
| | | foreach (var parameter in parameters) |
| | | cmd.Parameters.Add(parameter); |