提交代码

This commit is contained in:
2024-03-07 15:30:48 +08:00
parent 7b9c28bc91
commit 7772c5b682
4 changed files with 32 additions and 21 deletions
@@ -144,20 +144,20 @@ namespace FineUIPro.Web.PZHGL.GJSX
Model.GJSX gjsx = BLL.GJSXService.GetGJSXById(ID);
List<SqlParameter> listStr = new List<SqlParameter>();
string projectId = this.CurrUser.LoginProjectId;
if (gjsx != null)
{
projectId = gjsx.ProjectId;
}
listStr.Add(new SqlParameter("@ProjectId", projectId));
string sql = "and GJSXID='" + ID + "'";
listStr.Add(new SqlParameter("@sql_where", sql));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunProc("Sp_GJSX_getlist", parameter);
//List<SqlParameter> listStr = new List<SqlParameter>();
//string projectId = this.CurrUser.LoginProjectId;
//if (gjsx != null)
//{
// projectId = gjsx.ProjectId;
//}
//listStr.Add(new SqlParameter("@ProjectId", projectId));
//string sql = "and GJSXID='" + ID + "'";
//listStr.Add(new SqlParameter("@sql_where", sql));
//SqlParameter[] parameter = listStr.ToArray();
//DataTable tb = SQLHelper.GetDataTableRunProc("Sp_GJSX_getlist", parameter);
if (tb != null && tb.Rows.Count > 0)
{
//if (tb != null && tb.Rows.Count > 0)
//{
txtGJSXID.Text = gjsx.GJSXID;
DropUnitId.SelectedValue = gjsx.UnitId;
if (!string.IsNullOrEmpty(gjsx.CNProfessional_ID))
@@ -181,13 +181,24 @@ namespace FineUIPro.Web.PZHGL.GJSX
DropUser_ReceiveID.SelectedValueArray = list_User_ReceiveID.ToArray();
}
// Date_CloseDate.Text = tb.Rows[0]["CloseDate"].ToString();
txtDetail.Text = tb.Rows[0]["detail"].ToString();
txtUserID.Text = tb.Rows[0]["username"].ToString().Trim();
Date_CreateDate.Text = tb.Rows[0]["createDate"].ToString();
Date_CompleteDate.Text = tb.Rows[0]["CompleteDate"].ToString();
//txtDetail.Text = tb.Rows[0]["detail"].ToString();
//txtUserID.Text = tb.Rows[0]["username"].ToString().Trim();
//Date_CreateDate.Text = tb.Rows[0]["createDate"].ToString();
//Date_CompleteDate.Text = tb.Rows[0]["CompleteDate"].ToString();
txtDetail.Text = gjsx.Detail;
txtUserID.Text = BLL.UserService.GetUserNameByUserId(gjsx.UserID);
if (gjsx.CreateDate != null)
{
Date_CreateDate.Text = string.Format("{0:yyyy-MM-dd}",gjsx.CreateDate);
}
if (gjsx.CompleteDate != null)
{
Date_CompleteDate.Text = string.Format("{0:yyyy-MM-dd}", gjsx.CompleteDate);
}
rblState.SelectedValue = gjsx.State.ToString().Trim();
}
//}
if (this.CurrUser.UserId == BLL.Const.sysglyId || this.CurrUser.UserId == BLL.Const.SystemManager)//如果当前登录人是管理员