小程序接口修改
This commit is contained in:
@@ -142,14 +142,33 @@
|
||||
|
||||
return isShow;
|
||||
}
|
||||
public static bool GetProjectUnitTypeByProjectIdUnitIdForApi(string projectId, string unitId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
bool isShow = false;
|
||||
if (unitId != Const.UnitId_CD)
|
||||
{
|
||||
var pUnit = db.Project_ProjectUnit.FirstOrDefault(e => e.ProjectId == projectId && e.UnitId == unitId);
|
||||
if (pUnit != null)
|
||||
{
|
||||
if (pUnit.UnitType == Const.ProjectUnitType_2 || pUnit.UnitType == Const.ProjectUnitType_0)
|
||||
{
|
||||
isShow = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 项目类型单位表下拉框
|
||||
/// <summary>
|
||||
/// 项目类型单位表下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, string unitType, bool isShowPlease)
|
||||
return isShow;
|
||||
}
|
||||
}
|
||||
#region 项目类型单位表下拉框
|
||||
/// <summary>
|
||||
/// 项目类型单位表下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, string unitType, bool isShowPlease)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user