79 lines
2.1 KiB
C#
79 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace dccdc.code
|
|
{
|
|
public class ContextUtils
|
|
{
|
|
public const string KSLD_QX = "科室领导";
|
|
|
|
public const string FGLD_QX = "分管领导";
|
|
|
|
public const string CWLD_QX = "财务领导";
|
|
|
|
public const string ZXLD_QX = "中心主任";
|
|
|
|
|
|
public const string SQ_ZT = "0";
|
|
|
|
public const string TJ_ZT = "1";
|
|
|
|
public const string KSLDSP_ZT = "2";
|
|
|
|
public const string FGLDSP_ZT = "3";
|
|
|
|
public const string CWLDSP_ZT = "4";
|
|
|
|
public const string TG_ZT = "5";
|
|
|
|
|
|
//得到所有子科室id
|
|
public static string getChildrenKsid(int ksid)
|
|
{
|
|
var bll = new BLL.ERPBuMenBll();
|
|
List<string> result = bll.GetAllChildren(ksid.ToString());
|
|
string result2 = string.Join(",", result);
|
|
return " (" + result2 + ")";
|
|
}
|
|
//--得到可审批的状态
|
|
public static List<String> getChildrenZT(String[] qx)
|
|
{
|
|
if (qx.Length > 0)
|
|
{
|
|
List<String> strlist = new List<string>();
|
|
string ztstr = "";
|
|
for (int i = 0; i < qx.Length; i++)
|
|
{
|
|
if (ContextUtils.KSLD_QX.Equals(qx[i]))
|
|
{
|
|
ztstr = "1";
|
|
strlist.Add(ztstr);
|
|
}
|
|
else if (ContextUtils.FGLD_QX.Equals(qx[i]))
|
|
{
|
|
ztstr = "2";
|
|
strlist.Add(ztstr);
|
|
}
|
|
else if (ContextUtils.CWLD_QX.Equals(qx[i]))
|
|
{
|
|
ztstr = "3";
|
|
strlist.Add(ztstr);
|
|
}
|
|
else if (ContextUtils.ZXLD_QX.Equals(qx[i]))
|
|
{
|
|
ztstr = "4";
|
|
strlist.Add(ztstr);
|
|
}
|
|
}
|
|
return strlist;
|
|
}
|
|
else
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
}
|
|
} |