力软 发布时不包含 看csproj文件里面 none
封装
登录login
admindefault _Admin.cshtml 默认加载js
lr-base.js
lr-tabs.js lr-admin.js
客户端语言包加载(菜单,tab条)
tab窗口操作方法
拦截器
登陆验证
防伪验证
var request = filterContext.HttpContext.Request
Learun.Util.Operat 当前连接用户信息处理类 redis
OnAuthorization(登陆过期或者未登陆) 读cookie值 然后redis比对 loginMark浏览器,设备 从cookie中读到浏览器设备
TimeSpan--现在时间减去登陆时间 >12小时 redis移除
util webhelper
redis 类
cache.base 0号库 1号库
cache.factory
cache,redis
看板演示 PreviewForm div js动态绘制
/LR_DisplayBoard/LR_KBKanBanInfo/GetFormData
Learun.Application.Extention--LR_KBKanBanInfo 看板名称 看板编号
configinfo配置数据 具体的逻辑写在脚本里 便利循环
单位组织
公司 /LR_OrganizationModule/Company/Index Learun.Application.Organization.dll LR_Base_Company
用户 LR_Base_User
关系表 LR_Base_UserRelation
1.代表角色 2.代表岗位
岗位
查看成员 LR_AuthorizeModule/UserRelation/LookForm
拦截器
HandlerLoginAttribute AuthorizeAttribute
力软app
点击流程列表查看流程详情
myflow.js
商务总监,副总经理审批 zttsmart/xidanfw/Formchakan
processInfo.js
Nodeform div workform jfgrid
流程
form li step1 step2 step3
step $('#step-3').lrworkflow
1.render渲染
(1)添加工具栏 div 工具用表示 点击监听事件
(2)工作流画板 div
2.svg画图
3.节点操作 增加节点 删除 移动
4.画线 svg
{\"nodes\":[{\"id\":\"f8356498-44a1-609c-db93-c862b224d941\",\"name\":\"开始\",\"left\":105,\"top\":260,\"type\":\"startround\",\"width\":52,\"height\":52,\"wfForms\":[]},
{\"id\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"name\":\"普通节点1\",\"left\":300,\"top\":258,\"type\":\"stepnode\",\"width\":150,\"height\":65,\"auditors\":[],\"wfForms\":[],
\"btnlist\":[{\"id\":\"1\",\"name\":\"同意\",\"code\":\"agree\",\"file\":\"1\",\"next\":\"1\"},{\"id\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\"code\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"}],\"notice\":\"\",\"isAllAuditor\":\"1\",\"auditorAgainType\":\"1\",\"auditorType\":\"1\",\"auditExecutType\":\"1\",\"isSign\":\"1\",\"isBatchAudit\":\"2\",\"auditorslist\":[],\"isdirectaudit\":true,\"timeoutNotice\":\"\",\"timeoutInterval\":\"\",\"timeoutStrategy\":\"\",\"timeoutAction\":\"\",\"btnList\":[{\"id\":\"1\",\"name\":\"同意\",\"code\":\"agree\",\"file\":\"1\",\"next\":\"1\"},{\"id\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\"code\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"}]},{\"id\":\"c09d5011-1554-6095-d004-165017df7f5c\",\"name\":\"普通节点2\",\"left\":644,\"top\":177,\"type\":\"stepnode\",\"width\":150,\"height\":65,\"auditors\":[],\"wfForms\":[],\"btnlist\":[{\"id\":\"1\",\"name\":\"同意\",\"code\":\"agree\",\"file\":\"1\",\"next\":\"1\"},{\"id\":\"4a341b39-f3e4-37dc-ea79-9245390cfa25\",\"name\":\"退回到8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"code\":\"4a341b39-f3e4-37dc-ea79-9245390cfa25\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"},{\"id\":\"fdfc665e-e5a5-4894-df34-2ed47fb6bd32\",\"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\"code\":\"fdfc665e-e5a5-4894-df34-2ed47fb6bd32\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"}],\"notice\":\"\",\"isAllAuditor\":\"1\",\"auditorAgainType\":\"1\",\"auditorType\":\"1\",\"auditExecutType\":\"1\",\"isSign\":\"1\",\"isBatchAudit\":\"2\",\"auditorslist\":[],\"isdirectaudit\":true,\"timeoutNotice\":\"\",\"timeoutInterval\":\"\",\"timeoutStrategy\":\"\",\"timeoutAction\":\"\",\"btnList\":[{\"id\":\"1\",\"name\":\"同意\",\"code\":\"agree\",\"file\":\"1\",\"next\":\"1\"},{\"id\":\"4a341b39-f3e4-37dc-ea79-9245390cfa25\",\"name\":\"退回到8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"code\":\"4a341b39-f3e4-37dc-ea79-9245390cfa25\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"},{\"id\":\"fdfc665e-e5a5-4894-df34-2ed47fb6bd32\",\"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\"code\":\"fdfc665e-e5a5-4894-df34-2ed47fb6bd32\",\"isHide\":\"2\",\"isSign\":\"2\",\"next\":\"1\"}]},{\"id\":\"6f8d0ea8-8249-4b07-e5da-ead093bf8751\",\"name\":\"结束\",\"left\":972,\"top\":203,\"type\":\"endround\",\"width\":52,\"height\":52,\"btnlist\":[{\"id\":\"1\",\"name\":\"同意\",\"code\":\"agree\",\"file\":\"1\",\"next\":\"1\"}]}],
\"lines\":[{\"id\":\"696fa3f6-305b-17fd-729a-c626a28a72ba\",\"from\":\"f8356498-44a1-609c-db93-c862b224d941\",\"to\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"sp\":\"right\",\"ep\":\"left\",\"name\":\"通过\",\"agreeList\":\"agree\",\"color\":\"1\",\"type\":\"sl\"},
{\"id\":\"b7aab18e-e222-1492-3635-a9d878ee2c2c\",\"from\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"to\":\"f8356498-44a1-609c-db93-c862b224d941\",\"sp\":\"top\",\"ep\":\"top\",\"name\":\"\",\"agreeList\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\"color\":\"2\",\"type\":\"sl\"},
{\"id\":\"a7289fbf-3027-fe4c-df28-39fe83fde405\",\"from\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"to\":\"c09d5011-1554-6095-d004-165017df7f5c\",\"sp\":\"right\",\"ep\":\"left\",\"name\":\"通过\",\"agreeList\":\"agree\",\"color\":\"1\",\"type\":\"sl\"},
{\"id\":\"cbcdbe54-b23b-62c5-95fc-eb45571fe818\",\"from\":\"c09d5011-1554-6095-d004-165017df7f5c\",\"to\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\"sp\":\"top\",\"ep\":\"top\",\"name\":\"\",\"agreeList\":\"4a341b39-f3e4-37dc-ea79-9245390cfa25\",\"color\":\"2\",\"type\":\"sl\",\"strategy\":\"2\",\"operationType\":\"sql\",\"dbId\":\"\",\"strSql\":\"\",\"strSqlR\":\"\"},
{\"id\":\"07243870-c3e4-2362-7234-7cb824e69620\",\"from\":\"c09d5011-1554-6095-d004-165017df7f5c\",\"to\":\"f8356498-44a1-609c-db93-c862b224d941\",\"sp\":\"top\",\"ep\":\"top\",\"name\":\"\",\"agreeList\":\"fdfc665e-e5a5-4894-df34-2ed47fb6bd32\",\"color\":\"2\",\"type\":\"sl\"},
{\"id\":\"0c46b127-58e6-cb97-7296-f0c155d4f187\",\"from\":\"c09d5011-1554-6095-d004-165017df7f5c\",\"to\":\"6f8d0ea8-8249-4b07-e5da-ead093bf8751\",\"sp\":\"right\",\"ep\":\"left\",\"name\":\"通过\",\"agreeList\":\"agree\",\"color\":\"1\",\"type\":\"sl\"}],\"closeDo\":{\"F_CloseDoType\":\"sql\",\"F_CloseDoDbId\":\"\",\"F_CloseDoSql\":\"\",\"F_CloseDoIocName\":\"\",\"F_CloseDoInterface\":\"\"}}"
\
"id\":\"8c8321d0-13f2-206d-e2b0-a099cf8a4f04\",\
"name\":\"普通节点1\",\
"left\":300,\
"top\":258,\
"type\":\"stepnode\",\
"width\":150,\
"height\":65,\
"auditors\":[
],
\"wfForms\":[
],
\"btnlist\":[ {\
"id\":\"1\",\
"name\":\"同意\",\
"code\":\"agree\",\
"file\":\"1\",\
"next\":\"1\"
}, {\
"id\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\
"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\
"code\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\
"isHide\":\"2\",\
"isSign\":\"2\",\
"next\":\"1\"
}],
\"notice\":\"\",
\"isAllAuditor\":\"1\",
\"auditorAgainType\":\"1\",
\"auditorType\":\"1\",
\"auditExecutType\":\"1\",
\"isSign\":\"1\",
\"isBatchAudit\":\"2\",
\"auditorslist\":[
],
\"isdirectaudit\":true,
\"timeoutNotice\":\"\",
\"timeoutInterval\":\"\",
\"timeoutStrategy\":\"\",
\"timeoutAction\":\"\",
\"btnList\":[ {\
"id\":\"1\",\
"name\":\"同意\",\
"code\":\"agree\",\
"file\":\"1\",\
"next\":\"1\"
}, {\
"id\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\
"name\":\"退回到f8356498-44a1-609c-db93-c862b224d941\",\
"code\":\"9357ab8b-4dd1-2547-1cdf-fae78ced3a64\",\
"isHide\":\"2\",\
"isSign\":\"2\",\
"next\":\"1\"
}]
{
"nodes": [{
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "开始",
"left": 118,
"top": 19,
"type": "startround",
"width": 52,
"height": 52,
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文审核",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "598f8a2e-4469-6e4d-c6bc-cc6c00f7a845",
"authorize": {}
}],
"notice": "workflowNotice",
"isNext": "1",
"isTitle": "1",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "d7badbaf-56e0-442d-93fc-5cde1d75dbbd",
"auditorName": "测试",
"type": "3",
"id": "fe753307-10ec-057f-d246-ee4a5db11a99"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
},
"isParallel": "2",
"isdirectaudit": true
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "本部门负责人",
"left": 96,
"top": 141,
"type": "stepnode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "4f099e33-2a2e-6238-2bcb-9f5c4fbeb991",
"authorize": {}
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"notice": "workflowNotice",
"isAllAuditor": "2",
"auditorAgainType": "1",
"auditorType": "1",
"auditExecutType": "2",
"isSign": "1",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "40592604-8517-5978-5291-75bc0359531c"
}, {
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "66b2b41d-36c5-4980-82f3-bedb63ecb185",
"auditorName": "测试 技术总监",
"type": "3",
"id": "acc2b8c1-a2c0-9fea-be1f-d79c06d4201a"
}, {
"id": "dc8199a8-71ac-b19a-3f0f-4b762b173a98",
"auditorId": "4678b6d6-a72e-43eb-94bc-ed8f244ac351",
"auditorName": "部门经理赵",
"department": "",
"type": "3"
}],
"isdirectaudit": true,
"isParallel": "2",
"timeoutNotice": "",
"timeoutInterval": "",
"timeoutStrategy": "",
"timeoutAction": "",
"btnList": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"name": "文牍秘书核稿",
"left": 53,
"top": 331,
"type": "stepnode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "3469c37c-2eac-1cbc-fea0-ec9c02ef39c6",
"authorize": "[object Object]"
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"notice": "workflowNotice",
"isAllAuditor": "1",
"auditorAgainType": "1",
"auditorType": "1",
"auditExecutType": "1",
"isSign": "1",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "abccbb9d-e440-8f67-301b-8dfa52676dc7"
}, {
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "3dcd8c11-18d3-4903-97e6-8d98c81f039a",
"auditorName": "测试 总经理",
"type": "3",
"id": "72c13356-5460-35fa-d028-a85feb399d87"
}],
"isdirectaudit": true,
"isParallel": "2",
"timeoutNotice": "",
"timeoutInterval": "",
"timeoutStrategy": "",
"timeoutAction": "",
"btnList": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"name": "领导签发",
"left": 47,
"top": 445,
"type": "stepnode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "1892328a-be81-47ee-c6f9-27c5abfe7fb7",
"authorize": "[object Object]"
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"name": "退回到95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"code": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"notice": "workflowNotice",
"isAllAuditor": "1",
"auditorAgainType": "1",
"auditorType": "1",
"auditExecutType": "1",
"isSign": "1",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "5315e792-c1ad-9150-660e-3d274bfebde3"
}, {
"department": "3185cd6c-c55d-4fd7-9b19-bf1cd80b65d8",
"auditorId": "cb09f0c6-7d22-4a32-97a5-62bf0a767895",
"auditorName": "郭建平",
"type": "3",
"id": "6dfa49f9-cb6e-8bf2-03ba-ccb1787bdd9a"
}],
"isdirectaudit": true,
"isParallel": "2",
"timeoutNotice": "",
"timeoutInterval": "",
"timeoutStrategy": "",
"timeoutAction": "",
"btnList": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"name": "退回到95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"code": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"name": "套红、用印、分发",
"left": 55,
"top": 605,
"type": "stepnode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "5c9f0f79-81cb-5ea5-5123-ed9a91a8f064",
"authorize": "[object Object]"
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"name": "退回到4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"code": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"name": "退回到95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"code": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"notice": "workflowNotice",
"isAllAuditor": "1",
"auditorAgainType": "1",
"auditorType": "1",
"auditExecutType": "1",
"isSign": "1",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "6acbea25-4ebe-6470-8eea-77e0956f94cd"
}],
"isdirectaudit": true,
"isParallel": "2",
"timeoutNotice": "",
"timeoutInterval": "",
"timeoutStrategy": "",
"timeoutAction": "",
"btnList": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"name": "退回到4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"code": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"name": "退回到95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"code": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "退回到1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"code": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "9f9206ae-c8b3-a8fa-2652-7e0633aec2a1",
"name": "传阅节点",
"left": 377,
"top": 605,
"type": "auditornode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "51354e18-0039-3eed-c35b-7d03024bb01b",
"authorize": "[object Object]"
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}],
"notice": "workflowNotice",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "9adfefda-9ccd-872c-e9a1-caf387d04e90"
}, {
"auditorId": "3034ca79-21f0-4fde-be78-a55b120f9fff",
"condition": "",
"auditorName": "【信息技术部】技术员",
"type": "1",
"id": "ad5b91f9-ffdf-2bbd-e502-be45d3569e3e"
}],
"isParallel": "2",
"isdirectaudit": true,
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"name": "各部门审核人",
"left": 742,
"top": 197,
"type": "stepnode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "发文表单",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "6f6cc082-13e7-5f17-aff2-959b5b49be2c",
"authorize": "[object Object]"
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"notice": "workflowNotice",
"isAllAuditor": "1",
"auditorAgainType": "1",
"auditorType": "1",
"auditExecutType": "1",
"isSign": "1",
"isBatchAudit": "2",
"auditorslist": [{
"department": "8684502a-5dc2-487c-b589-48d2eb7734ca",
"auditorId": "43945123-4112-452a-8575-0cedfbc83f41",
"auditorName": "p2",
"type": "3",
"id": "5e02d3ec-3d0e-951b-dd5a-87f74c2c142d"
}, {
"auditorId": "1c1d97de-ab43-46b6-bf9d-8f8676b72ad4",
"condition": "1",
"auditorName": "【信息技术部】总经理",
"type": "1",
"id": "fcbb86d0-bd04-0117-3983-5562c4ec5f75"
}],
"isdirectaudit": true,
"isParallel": "2",
"timeoutNotice": "",
"timeoutInterval": "",
"timeoutStrategy": "",
"timeoutAction": "",
"btnList": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}, {
"id": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"name": "退回到883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"code": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"isHide": "2",
"isSign": "2",
"next": "1"
}, {
"id": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"name": "退回到5049dbfa-78f4-7f17-6276-33764cbaed67",
"code": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"isHide": "2",
"isSign": "2",
"next": "1"
}],
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "5bb87b04-a2ff-9853-3ebf-0ea04e6d0e8a",
"name": "传阅节点",
"left": 225,
"top": 236,
"type": "auditornode",
"width": 150,
"height": 65,
"auditors": [],
"wfForms": [{
"type": "0",
"formId": "",
"field": "",
"name": "传阅",
"url": "/LR_CodeDemo/DocumentManage/FormSend",
"id": "d6a89da7-9129-b28e-23a2-a7a3dfc5e7f0",
"authorize": {}
}],
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}],
"btnList": [],
"notice": "workflowNotice",
"isBatchAudit": "2",
"auditorslist": [{
"id": "74209d30-2c48-53a1-40f5-73a8e988b641",
"auditorId": "4678b6d6-a72e-43eb-94bc-ed8f244ac351",
"auditorName": "部门经理赵",
"department": "",
"type": "3"
}],
"isParallel": "2",
"isdirectaudit": true,
"nodeprivate": {
"samepass": "0",
"allowtomany": "1",
"defaultfirst": "1",
"onlydepart": "0",
"onlycompany": "1",
"showdetial": "1",
"allowmodifyform": "1",
"allowtopre": "1",
"allowsign": "1",
"fileprivate": "update",
"fileprint": "1",
"filedownload": "1",
"filestamp": "1"
}
}, {
"id": "29fa009e-f8ef-19e8-5fcd-cb14927554e5",
"name": "结束",
"left": 92,
"top": 742,
"type": "endround",
"width": 52,
"height": 52,
"btnlist": [{
"id": "1",
"name": "同意",
"code": "agree",
"file": "1",
"next": "1"
}]
}],
"lines": [{
"id": "f7451767-ef48-f3ff-b853-f4a06ed0ce9d",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "9f9206ae-c8b3-a8fa-2652-7e0633aec2a1",
"sp": "right",
"ep": "left",
"name": "通过",
"agreeList": "agree",
"color": "1",
"type": "sl",
"strategy": "2"
}, {
"id": "8254378f-43ce-1171-875b-822f276b9bc0",
"from": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"to": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"sp": "bottom",
"ep": "top",
"name": "通过",
"color": "1",
"type": "sl",
"operationType": "sql",
"dbId": "bef9a81e-21f3-42a6-8997-063d1ffe5d31",
"strSql": "update FE_Base_Document set F_Status='5' where F_id={processId}",
"strSqlR": ""
}, {
"id": "2fbdd3d3-9b10-3fe8-36ca-a6c8b6f7814b",
"from": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"to": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"sp": "bottom",
"ep": "top",
"name": "通过",
"color": "1",
"type": "sl",
"strategy": "2",
"agreeList": "agree",
"operationType": "sql",
"dbId": "",
"strSql": "",
"strSqlR": ""
}, {
"id": "0fdec6f1-4e65-58b6-1f66-3b7fcb29c6ed",
"from": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"to": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"sp": "bottom",
"ep": "top",
"name": "通过",
"color": "1",
"type": "sl",
"strategy": "2",
"agreeList": "agree",
"operationType": "sql",
"dbId": "",
"strSql": "",
"strSqlR": ""
}, {
"id": "178b20c0-38a1-13a8-f473-65e870b6cda1",
"from": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"to": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"sp": "bottom",
"ep": "top",
"name": "通过",
"color": "1",
"type": "sl",
"strategy": "2",
"agreeList": "agree",
"operationType": "sql",
"dbId": "",
"strSql": "",
"strSqlR": ""
}, {
"id": "c3e50040-5bfa-7ae1-d2c3-2b46f37a6578",
"from": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"to": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"sp": "right",
"ep": "left",
"name": "通过",
"agreeList": "agree",
"color": "1",
"type": "sl",
"strategy": "2"
}, {
"id": "5a5e4bd7-dd9c-fc7b-beff-b81550e3cfb8",
"from": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"to": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"sp": "bottom",
"ep": "right",
"name": "通过",
"color": "1",
"type": "tb",
"strategy": "2",
"agreeList": "agree",
"operationType": "sql",
"dbId": "",
"strSql": "",
"strSqlR": "",
"M": 367.75
}, {
"id": "94885ce7-89e3-0507-4130-93f0455f42d5",
"from": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"to": "5bb87b04-a2ff-9853-3ebf-0ea04e6d0e8a",
"sp": "right",
"ep": "left",
"name": "通过",
"agreeList": "agree",
"color": "1",
"type": "sl",
"strategy": "2"
}, {
"id": "4af46e09-9902-e3e0-0377-942dc747dce2",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "29fa009e-f8ef-19e8-5fcd-cb14927554e5",
"sp": "right",
"ep": "left",
"name": "通过",
"agreeList": "agree",
"color": "1",
"type": "sl",
"strategy": "2",
"operationType": "sql",
"dbId": "bef9a81e-21f3-42a6-8997-063d1ffe5d31",
"strSql": "update FE_Base_Document set F_Status='6' where F_id={processId}"
}, {
"id": "17239d2b-03b4-8740-599d-bd59663633c2",
"from": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"to": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "2f1ad8d2-1ac6-f28c-92d8-c29705d68496",
"from": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"to": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "2204e7ad-4744-9009-004e-551d2ba89de8",
"from": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"to": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "0ad1376f-658f-b5b5-a97e-c88784c8db50",
"from": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"to": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "13b0d8eb-65a4-05f5-e311-2f808b8c82ec",
"from": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"to": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "82ec4656-f752-2e5e-2508-56b383038aa9",
"from": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"to": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "62ae2e5a-f9c0-02c1-3b86-eb01815dc054",
"from": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"to": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "623ebf6b-3655-6881-786f-692dbb98ff05",
"from": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"to": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "55c343cc-8355-93df-db31-f7488ac486f1",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "4b56f6aa-32e1-6a08-4e23-b24cf94bf1af",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "b922ffd4-3813-7b3b-a6ac-6d3874ba7ee4",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "95dc4df5-0052-e61f-1b4c-9ec72e19eb85",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "2bc2ed7a-99e4-7b60-6bab-7fb1b11ea4d3",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "8246dc34-ba0a-443c-4517-fbaf5388a541",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "fa6e361f-b951-5331-4a8d-9b883941958f",
"from": "85b2ea38-4b3e-491f-4717-6c07297f9d1c",
"to": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "0bf00aa6-81b3-d298-5885-bae73216d0d2",
"from": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"to": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "883dc92f-1f95-b0ae-cbf6-e570f9eb9314",
"color": "2",
"type": "sl",
"strategy": "2"
}, {
"id": "8e4345a0-4af4-48ae-be90-2935edc8a013",
"from": "1cd28c3e-1e22-a4e3-bd8b-fe49d80dc2f3",
"to": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"sp": "top",
"ep": "top",
"name": "",
"agreeList": "5049dbfa-78f4-7f17-6276-33764cbaed67",
"color": "2",
"type": "sl",
"strategy": "2"
}],
"closeDo": {
"F_CloseDoType": "sql",
"F_CloseDoDbId": "bef9a81e-21f3-42a6-8997-063d1ffe5d31",
"F_CloseDoSql": "update FE_Base_Document set F_Status=(CASE WHEN {code} =1 THEN ' 待发' WHEN {code} =2 THEN '中途终止' end) , F_EndDate= CONVERT(varchar,GETDATE(),120) where F_id={processId}",
"F_CloseDoIocName": "",
"F_CloseDoInterface": ""
}
}
focusItem 选定某个结点/转换线
if ($item.prop("tagName") == "DIV") {
$item.addClass("lr-workflow-nodefocus");
$item.find('.lr-workflow-nodeclose').show();
parallelNodes = [];
parallelNodes.push(id);
}
判断如果是div的话 加上样式
(function ($, learun) {
"use strict";
$.lrworkflow = {
render: function ($self) {
},
switchToolBtn: function (dfop, type) {
},
initDraw: function ($workArea, dfop) {
},
getSvgMarker: function (id, color) {
},
clickWorkArea: function (e) {
},
// 取消所有结点/连线被选定的状态
blurItem: function (dfop) {
},
// 选定某个结点/转换线
focusItem: function (id) {
},
//获取一个DIV的绝对坐标的功能函数,即使是非绝对定位,一样能获取到
getElCoordinate: function (dom) {
},
// 获取鼠标定位点坐标
mousePosition: function (ev) {
},
getnodeattr: function (dfop, nodeid) {
},
// 节点操作
//增加一个流程结点,传参为一个JSON,有id,name,top,left,width,height,type(结点类型)等属性
addNode: function ($workArea, dfop, node, isold) {
},
addNodePre: function ($workArea, dfop, node, isold) {
},
//删除结点
delNode: function (dfop, nodeData) {
},
//移动结点到一个新的位置
moveNode: function (id, left, top) {
},
// 更新节点名字
updateNodeName: function ($workArea, nodeId) {
},
initNodeEvent: function ($workArea) {
},
initLineEvent: function ($workArea) {
},
// 获取线条数据
getLine: function (dfop, lineId) {
},
// 获取线条端点坐标
getLineSpotXY: function (nodeId, dfop, type) {
},
// 绘制一条箭头线,并返回线的DOM
drawLine: function (color, id, sp, ep, mark, dash, cursor) {
},
//画一条只有两个中点的折线
drawPoly: function (color, id, sp, m1, m2, ep, mark) {
},
// 计算两个结点间要连折线的话,连线的所有坐标
calcPolyPoints: function (SP, EP, type, M) {
},
getNearNodesPreview: function (line, linestartid, nodespart) {
},
// 增加一条线
addLine: function (dfop, line) {
},
// 重构所有连向某个结点的线的显示,传参结构为$nodeData数组的一个单元结构
resetLines: function (nodeId, dfop) {
},
//重新设置连线的样式 newType= "sl":直线, "lr":中段可左右移动型折线, "tb":中段可上下移动型折线
setLineType: function (id, newType) {
},
//设置折线中段的X坐标值(可左右移动时)或Y坐标值(可上下移动时)
setLineM: function (id, M, noStack) {
},
//初始化折线中段的X/Y坐标,mType='rb'时为X坐标,mType='tb'时为Y坐标
getMValue: function (sxy, exy, mType) {
},
// 删除线条
delLine: function (lineId) {
},
searchallline: function () {
},
updateLineName: function ($workArea, lineId) {
}
};
$.fn.lrworkflow = function (op) {
};
$.fn.lrworkflowGet = function () {
};
$.fn.lrworkflowSet = function (name, op) {
};
})(jQuery, top.learun);
会调用lrworkflowSet('updateNodeName')
currentNode id name
addNode
div class=lr-workflow-node
流程任务
NWFProcess index
NWFContainerForm 模态框 iframe
1.页面布局 lr-layout-panel
两个div rblock panelright
rblock 表单信息 图形信息 流转记录 里面是iframe
panelright 审批信息
js var bootstrap
var custmerForm
var page
page.init();
NodeForm baseInfo是div 加载 baseInfo lrSetFormData 给页面加载数据
js initCreate
获取流程的模板 getSchemeByCode
session
2.上传下载附件
$('#F_FileId').lrUploader(); openUploadForm openDownForm
自定义表单 formInfo formScheme
loadForm type=1 自定義表單
扩展应用 日程 /LR_OAModule/Schedule/Index
index fullcalendar.js
力软app LR_App_Function 功能 LR_AuthorizeModule/Authorize/AppForm
AppManager/FunctionManager
角色管理 移动功能授权 LR_AuthorizeModule/Authorize/GetAppFormData 表 LR_Base_Authorize
从缓存读 learun_adms_authorize_ + objectid
如果缓存为空,从数据库读,后将读出来的数据写入缓存
f_objecttype 1角色 2用户
f_item_type 1.菜单 2.按钮 3.视图 4.表单 5.app
app的id LR_App_Function
添加 SaveAuthorize 插入数据,清空缓存
app登录 GetMyList(登录用户)
力软登录 logincontroler
CheckLogin 内部账户验证
1.根据用户名得到userEntity 首先从缓存里根据用户名得到用户id
如果这个用户id为空 根据account得到userEntity 将这个数据写入缓存
不为空
private string cacheKeyAccount = "learun_adms_user_account_" 存入id
private string cacheKeyId = "learun_adms_user_Id_" 存入entity
如果缓存里面没有,从数据库里读取,再次写入缓存
判断这个账户是否存在
2.判断密码是否正确
3.如果成功登陆 将这个用户写入缓存 Learun_ADMS_6.1_PC
登录者信息添加到缓存中
得到cookie 写入cookie
根据用户名从缓存读token
loginMark存在于cookie中 如果cookie中没有,则new一个新的id
private string cacheKeyToken = "learun_adms_token_" +用户名 value为 operator的loginmark
private string cacheKeyOperator = "learun_adms_operator_ +loginmark
operato(1.appId应用id 2.登陆时间 3.登陆ip 4.登陆者标识)登陆时间
如果 tokenMarkList为空,第一次登陆
将token重新生成uuid,将此token写入redis
4.登陆成功
拦截器 Learun.Util.Operat 判断token
-1未登录,1登录成功,0登录过期
private string cacheKeyOperator = "learun_adms_operator_ +id
如果operator没有
超过12小时 移除缓存
登陆过期