48 lines
1.7 KiB
C#
48 lines
1.7 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
using GThinking.N_MODEL.Page;
|
|
using System.Web.Script.Serialization;
|
|
using GThinking.N_MISPRO.Data;
|
|
using GThinking.N_MISPRO.Utility;
|
|
using GThinking.N_WORKFLOW;
|
|
using GThinking.N_MISPRO;
|
|
using System.Collections.Generic;
|
|
using System.Collections;
|
|
|
|
namespace GThinking.N_XLXSBJ
|
|
{
|
|
[EntityType(Db = "DBERP", Table = "XLXSBJFLJSLM", IsWf = false, IsWhr = false, WhrPrefix = "", IsAttach = false)]
|
|
public partial class BJFLJS : EntityObject
|
|
{
|
|
public string sBJFLID = "";
|
|
|
|
|
|
public override TSQL SetQuerySql()
|
|
{
|
|
TSQL SQL = base.SetQuerySql();
|
|
SQL.Clear();
|
|
SQL.Add("select XLXSBJFLJSLM_LMLX,XLXSBJFLJSLM_LMID,XLXSBJFLJSLM_LMID as LMMC, ");
|
|
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='X' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as XJYJS,");
|
|
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='S' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as SJYJS,");
|
|
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='H' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as HJYJS,");
|
|
SQL.Add("max(case when XLXSBJFLJSLM_JSLX='Q' and XLXSBJFLJSLM_YCBZ='Y' then 'Y' else 'N' end) as QTR ");
|
|
SQL.Add(" from XLXSBJFLJSLM");
|
|
SQL.Add(" where XLXSBJFLJSLM_BJFLID=:pBJFLID ");
|
|
SQL.Add("group by XLXSBJFLJSLM_LMLX, XLXSBJFLJSLM_LMID ");
|
|
SQL.Add("order by XLXSBJFLJSLM_LMLX, XLXSBJFLJSLM_LMID ");
|
|
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
|
return SQL;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|