修改
This commit is contained in:
@@ -7,7 +7,12 @@ namespace NX.ERP.U8.Mom
|
||||
{
|
||||
public class MomOrderDAL
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="strWhere"></param>
|
||||
/// <param name="param"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomOrder> GetList(string strWhere = "", object param = null)
|
||||
{
|
||||
using (var conn = U8LoginContext.Instance.Connection)
|
||||
@@ -56,7 +61,11 @@ namespace NX.ERP.U8.Mom
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="Params"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomOrder> QueryOrders(NX.ERP.Model.Request.MomOrder Params)
|
||||
{
|
||||
if (Params == null)
|
||||
@@ -80,7 +89,12 @@ namespace NX.ERP.U8.Mom
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="strWhere"></param>
|
||||
/// <param name="Param"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomOrder> GetOrders(string strWhere = "", object Param = null)
|
||||
{
|
||||
using (var conn = U8LoginContext.Instance.Connection)
|
||||
@@ -117,7 +131,11 @@ namespace NX.ERP.U8.Mom
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="Params"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomDetail> QueryDetails(NX.ERP.Model.Request.MomOrder Params)
|
||||
{
|
||||
if (Params == null)
|
||||
@@ -141,12 +159,16 @@ namespace NX.ERP.U8.Mom
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="strWhere"></param>
|
||||
/// <param name="Param"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Model.MOM.MomDetail> GetDetails(string strWhere = "", object Param = null)
|
||||
{
|
||||
var strSql = @"select
|
||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
|
||||
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty
|
||||
var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
|
||||
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty
|
||||
FROM v_st_mom_orderdetail b INNER JOIN
|
||||
(SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode
|
||||
from v_st_moallocate
|
||||
@@ -158,8 +180,7 @@ namespace NX.ERP.U8.Mom
|
||||
Where b.byproductflag=0
|
||||
and ISNULL(b.Status,0) = 3
|
||||
and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1
|
||||
and isnull(b.sfcflag,0) =1)) AND (1>0) AND (1>0) AND ( 1>0 )
|
||||
";
|
||||
and isnull(b.sfcflag,0) =1)) AND (1>0) AND (1>0) AND ( 1>0 )";
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
{
|
||||
strSql += $" and {strWhere} ";
|
||||
|
||||
@@ -3,19 +3,28 @@
|
||||
<!-- For more information on using Web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=301874 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,仅在“Match”定位器找到值为“MyDB”的
|
||||
特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
<appSettings>
|
||||
<add key="server" value="192.168.0.168"/>
|
||||
<add key="AccId" value="(default)@001"/>
|
||||
<add key="UserId" value="wx999"/>
|
||||
<add key="Password" value="!@#qwe123"/>
|
||||
<add key="EaiPort" value="80"/>
|
||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||
</appSettings>
|
||||
|
||||
<system.web>
|
||||
<!--
|
||||
在以下示例中,"Replace" 转换将替换 Web.config 文件的
|
||||
整个 <customErrors> 节。
|
||||
请注意,由于在 <system.web> 节点下只有一个
|
||||
@@ -26,5 +35,6 @@
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
|
||||
</system.web>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user