/// <summary> /// 根据流程类型获取当前登录人对应的流程 /// </summary> /// <param name="context"></param> /// <param name="TYPE_CODE"></param> /// <returns></returns> public static string getFlowDefineId(HttpContext context, string TYPE_CODE) { string orgid = getOrgId(context); List <FLOW_DERIVE_RELATION> list = BllFactory.GetFlow_Derive_RelationBLL().GetList(" and CHILD_FRISTSTEP_DEPID='" + orgid + "' and TYPE_CODE='" + TYPE_CODE + "'").ToList <FLOW_DERIVE_RELATION>(); if (list.Count > 0) { return(list[0].define_code_child); } else { return(""); } }
public static Dictionary <string, string> getMyFlowDefine(HttpContext context) { string orgid = getOrgId(context); //WorkFlow.BLL.Operate.get List <FLOW_DERIVE_RELATION> list = BllFactory.GetFlow_Derive_RelationBLL().GetList(" and CHILD_FRISTSTEP_DEPID='" + orgid + "'").ToList <FLOW_DERIVE_RELATION>(); Dictionary <string, string> dclist = new Dictionary <string, string>(); foreach (FLOW_DERIVE_RELATION model in list) { dclist.Add(model.define_code_child, model.TYPE_CODE); } return(dclist); }