1
This commit is contained in:
@@ -104,6 +104,37 @@ select a.id AS ArrivalId,a.cCode as ArrivalCode,a.cpersoncode,a.cpersonname,A.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<object> GetList(Model.Request.OtherStoreInOut storeIn)
|
||||||
|
{
|
||||||
|
|
||||||
|
string sql = @" select a.cInvCode,a.iQuantity,a.cPosition,b.cCode From rdrecords11 a left join rdrecord11 b on a.id=b.ID
|
||||||
|
where 1=1
|
||||||
|
";
|
||||||
|
|
||||||
|
List<string> where = new List<string>();
|
||||||
|
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(storeIn.Code))
|
||||||
|
{
|
||||||
|
where.Add(" b.cCode = @cCode");
|
||||||
|
}
|
||||||
|
|
||||||
|
var aa = string.Join(" and ", where.ToArray());
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(aa))
|
||||||
|
{
|
||||||
|
sql += " and " + aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||||
|
{
|
||||||
|
return conn.Query<object>(sql, new { cCode = storeIn.Code });
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,14 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Route("api/OtherOut/GetList")]
|
||||||
|
[HttpPost]
|
||||||
|
public IEnumerable<object> GetList(Model.Request.OtherStoreInOut storeIn)
|
||||||
|
{
|
||||||
|
var dal = new NX.ERP.U8.Finance.WarehouseQuery(); ;
|
||||||
|
return dal.GetList(storeIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="ApiDbName" value="MES_SUBMIT" />
|
<add key="ApiDbName" value="MES_SUBMIT" />
|
||||||
<add key="server" value="10.0.0.12" />
|
<add key="server" value="10.0.0.250" />
|
||||||
<add key="AccId" value="u8-2@001" />
|
<add key="AccId" value="u8@001" />
|
||||||
<add key="UserId" value="wx997" />
|
<add key="UserId" value="wx084" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||||
|
|||||||
Reference in New Issue
Block a user