上传文件至「/」
恢复内容: • GetDYDJList():从 XLDYDJB 读取未停用的电压等级,返回 List<string> • XLBZList():从 XLBZ 读取未删除的线缆标准,返回 List<XLBZ>
This commit is contained in:
@@ -1532,6 +1532,41 @@ namespace GThinking.S_XLXSBJ
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AjaxMethod(AuthRequried = false)]
|
||||||
|
public static List<string> GetDYDJList()
|
||||||
|
{
|
||||||
|
List<string> dydjList = new List<string>();
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
sSQL.Clear();
|
||||||
|
sSQL.Add("select XLDYDJB_DYDJID from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')='N' ");
|
||||||
|
DataSet ds = dberp.OpenDataSet(sSQL);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
dydjList.Add(ds.Tables[0].Rows[i][0].ToString().Trim());
|
||||||
|
}
|
||||||
|
return dydjList;
|
||||||
|
}
|
||||||
|
|
||||||
|
[AjaxMethod(AuthRequried = false)]
|
||||||
|
public static List<XLBZ> XLBZList()
|
||||||
|
{
|
||||||
|
List<XLBZ> xlbzList = new List<XLBZ>();
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
sSQL.Clear();
|
||||||
|
sSQL.Add("select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where ISNULL(XLBZ_DZSC,'N')='N' ");
|
||||||
|
DataSet ds = dberp.OpenDataSet(sSQL);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
XLBZ tp = new XLBZ();
|
||||||
|
tp.XLBZID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||||
|
tp.XLBZMC = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||||
|
xlbzList.Add(tp);
|
||||||
|
}
|
||||||
|
return xlbzList;
|
||||||
|
}
|
||||||
[AjaxMethod(AuthRequried = false)]
|
[AjaxMethod(AuthRequried = false)]
|
||||||
public static Result commonParse(string BJDID)
|
public static Result commonParse(string BJDID)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user