52 lines
1.6 KiB
C#
Executable File
52 lines
1.6 KiB
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Opsoft.NetCore.O3App.Repositories.WMS.APP
|
|
{
|
|
public class STK_OEMPICK
|
|
{
|
|
public static string InSoureBillData(string orgID, string sourceTranType, string sourceBillNO = "", int entryID = 0)
|
|
{
|
|
string exeSql = string.Empty, whereSql = string.Empty;
|
|
if (!string.IsNullOrWhiteSpace(orgID))
|
|
{
|
|
whereSql += $" AND S2.FCOMPANYID='{orgID}'";
|
|
}
|
|
if (!string.IsNullOrWhiteSpace(sourceBillNO))
|
|
{
|
|
whereSql += $" AND S2.FBILLNO='{sourceBillNO}'";
|
|
}
|
|
if (entryID > 0)
|
|
{
|
|
whereSql += $" AND S.FENTRYID={entryID}";
|
|
}
|
|
switch (sourceTranType)
|
|
{
|
|
}
|
|
return exeSql;
|
|
}
|
|
|
|
public static string OutSoureBillData(string orgID, string sourceTranType, string sourceBillNO = "", int entryID = 0)
|
|
{
|
|
string exeSql = string.Empty, whereSql = string.Empty;
|
|
if (!string.IsNullOrWhiteSpace(orgID))
|
|
{
|
|
whereSql += $" AND S2.FCOMPANYID='{orgID}'";
|
|
}
|
|
if (!string.IsNullOrWhiteSpace(sourceBillNO))
|
|
{
|
|
whereSql += $" AND S2.FBILLNO='{sourceBillNO}'";
|
|
}
|
|
if (entryID > 0)
|
|
{
|
|
whereSql += $" AND S.FENTRYID={entryID}";
|
|
}
|
|
switch (sourceTranType)
|
|
{
|
|
}
|
|
return exeSql;
|
|
}
|
|
}
|
|
}
|