11
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
@@ -29,10 +31,14 @@ namespace FineUIPro.Web.BaseInfo
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT const.ConstId,const.ConstValue,const.ConstText,const.GroupId"
|
||||
+ @" FROM dbo.Base_Const AS const"
|
||||
+ @" WHERE const.GroupId = '" + BLL.Const.ProjectPlanner_JobStatus + "'";
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
|
||||
string strSql = @"SELECT ConstId,ConstValue,ConstText,GroupId,
|
||||
(CASE WHEN GroupType='1' THEN '通用' WHEN GroupType='2' THEN '非Other类' WHEN GroupType='3' THEN 'Other类' ELSE '' END) AS GroupType
|
||||
FROM dbo.Base_Const
|
||||
WHERE GroupId = @GroupId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@GroupId", Const.ProjectPlanner_JobStatus));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
@@ -157,7 +163,8 @@ namespace FineUIPro.Web.BaseInfo
|
||||
Model.Base_Const cons = new Model.Base_Const
|
||||
{
|
||||
ConstValue = this.txtConstValue.Text.Trim(),
|
||||
ConstText = this.txtConstText.Text.Trim()
|
||||
ConstText = this.txtConstText.Text.Trim(),
|
||||
GroupType=drpGroupType.SelectedValue
|
||||
};
|
||||
if (string.IsNullOrEmpty(strRowID))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user