| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace CallCenterApi.Interface.Models.Common
- {
- public class ButtonGroup
- {
- public static button query()
- {
- return new button(1, "查询");
- }
- public static button edit()
- {
- return new button(2, "编辑");
- }
- public static button delete()
- {
- return new button(3, "删除");
- }
- public static button submit()
- {
- return new button(4, "提交");
- }
- public static button assign()
- {
- return new button(5, "交办");
- }
- public static button approval()
- {
- return new button(6, "领导批示");
- }
- public static button instruct()
- {
- return new button(7, "市长指示");
- }
- public static button oversee()
- {
- return new button(8, "督办");
- }
- public static button supervision()
- {
- return new button(9, "监察");
- }
- public static button takeback()
- {
- return new button(10, "收回");
- }
- public static button receive()
- {
- return new button(11, "查收");
- }
- public static button reback()
- {
- return new button(12, "退回申请");
- }
- public static button feedback()
- {
- return new button(13, "办理");
- }
- public static button delay()
- {
- return new button(14, "延时申请");
- }
- public static button auditreback()
- {
- return new button(15, "退回审核");
- }
- public static button visit()
- {
- return new button(16, "回访");
- }
- public static button auditdelay()
- {
- return new button(17, "延时审核");
- }
- public static button reload()
- {
- return new button(18, "重办");
- }
- public static button end()
- {
- return new button(19, "结案");
- }
- public static button export()
- {
- return new button(20, "导出");
- }
- public static button back()
- {
- return new button(21, "回退");
- }
- public static button forceend()
- {
- return new button(22, "强制结案");
- }
- public static button split()
- {
- return new button(23, "派单");
- }
- public static button auditdeal()
- {
- return new button(24, "处理审核");
- }
- public static button sign()
- {
- return new button(25, "签收");
- }
- public static button refuse()
- {
- return new button(26, "拒收");
- }
- public static button withdraw()
- {
- return new button(27, "撤单");
- }
- public static button audit()
- {
- return new button(28, "审核");
- }
- public static button turnsee()
- {
- return new button(29, "转督办");
- }
- public static button turnnosee()
- {
- return new button(30, "不督办");
- }
- public static button subreload()
- {
- return new button(31, "提交重办");
- }
- public static button reject()
- {
- return new button(32, "驳回重办");
- }
- public static button perform()
- {
- return new button(33, "履职界定");
- }
- public static button performaudit()
- {
- return new button(34, "界定审核");
- }
- public static button turndown()
- {
- return new button(35, "拒绝");
- }
- public static button redo()
- {
- return new button(36, "退回");
- }
- public static button EJredo()
- {
- return new button(38, "退回");
- }
- public static button modify()
- {
- return new button(40, "修改");
- }
- public static button Check()
- {
- return new button(41, "查收");
- }
- public static button Approved()
- {
- return new button(42, "审核通过");
- }
- public static button Auditreject()
- {
- return new button(43, "审核拒绝");
- }
- public static button Signfor()
- {
- return new button(44, "签收");
- }
- public static button Sendback()
- {
- return new button(45, "退回");
- }
- public static button delayback()
- {
- return new button(46, "退回申请延时");
- }
- public static button visits()
- {
- return new button(47, "省平台结案");
- }
- public static button ejdelay()
- {
- return new button(48, "省平台申请延时");
- }
- public static button Report()
- {
- return new button(49, "上报");
- }
- public static button Unsuccessful()
- {
- return new button(50, "已办未果");
- }
- public static button VisitApproved()
- {
- return new button(51, "审核通过");
- }
- public static button Auditfailed()
- {
- return new button(52, "审核不通过");
- }
- public static button Audittransfer()
- {
- return new button(53, "审核通过转办");
- }
- public static button AuditDispatch()
- {
- return new button(54, "审核通过");
- }
- public static button Failed()
- {
- return new button(55, "审核不通过");
- }
- public static button Explain()
- {
- return new button(56, "解释");
- }
- public static button AuditReturn()
- {
- return new button(58, "退回审核");
- }
- public static button Append()
- {
- return new button(59, "追加回复");
- }
- public static button AssignUnsuccessful()
- {
- return new button(65, "已办未果转派");
- }
- public static button Note()
- {
- return new button(60, "注解");
- }
- public static button Urge()
- {
- return new button(61, "催办");
- }
- public static button SpotCheck()
- {
- return new button(62, "抽查");
- }
- /// <summary>
- /// 已办未果通过
- /// </summary>
- /// <returns></returns>
- public static button PassResult()
- {
- return new button(63, "通过");
- }
- /// <summary>
- /// 已办未果不通过
- /// </summary>
- /// <returns></returns>
- public static button FailResult()
- {
- return new button(64, "不通过");
- }
- /// <summary>
- /// 审核员退回
- /// </summary>
- /// <returns></returns>
- public static button subback()
- {
- return new button(39, "退回");
- }
- public static button statistics()
- {
- return new button(65, "退回统计");
- }
-
- #region 知识库操作按钮
- public static button zsk_query()
- {
- return new button(1, "查询");
- }
- public static button zsk_edit()
- {
- return new button(2, "编辑");
- }
- public static button zsk_delete()
- {
- return new button(3, "删除");
- }
- public static button zsk_submit()
- {
- return new button(4, "提交");
- }
- public static button zsk_audit()
- {
- return new button(5, "审核");
- }
- public static button zsk_solved()
- {
- return new button(6, "解决");
- }
- public static button zsk_unsolved()
- {
- return new button(7, "未解决");
- }
- #endregion
- /// <summary>
- /// 按钮类
- /// </summary>
- public class button
- {
- public int key { get; set; }
- public string value { get; set; }
- public button(int _key, string _value)
- {
- key = _key;
- value = _value;
- }
- }
- /// <summary>
- /// 根据状态和角色代码获取操作按钮
- /// </summary>
- /// <param name="state"></param>
- /// <param name="code"></param>
- /// <param name="iszb"></param>
- /// <returns></returns>
- public static List<button> GetButtons(string state, string code, string iszb = "", string iszbdw = "", string ispd = ""
- , int isproresult = 0, string InfoSource = "", int issh = 0)
- {
- //中心话务员(ZXHWY) 二级网络单位(WLDW) 管理员(GLY) 坐席班长(ZXBZ) 调度专员(ZXLD)
- //中心领导管理员(ZXLDGLYGLY) 话务主管(ZXBZ) 中心领导(ZXLDGLY) 话务组长(ZXBZ)
- //导播话务员(DBHWY) 网易新闻(11) 三级网络单位(EJWLDW) 民生播报(MSBB)
- //督办专员(DBZY) 质检专员(ZJZY)
- //调度主管(DDZG)审核组SPZ 审核质检组SPZJZ
- List<button> buttons = new List<button>();
- buttons.Add(query());
- switch (state)
- {
- case "0":
- if (InfoSource == "2580")
- {
- if (code == "ZXBZ" || code == "SPZ" || code == "SPZJZ" || code == "GLY" || code == "DDZG" || code == "ZXHWY" || code == "ZXLD")
- {
- buttons.Add(Signfor());
- buttons.Add(Sendback());
- buttons.Add(delayback());
- }
- }
- else
- {
- //调度专员 质检专员可以进行编辑 zhengbingbing 20191017
- if (code == "ZXLD" || code == "ZJZY")
- buttons.Add(edit());
- if (code == "ZXLD")
- buttons.Add(delete());
- //中心话务员 坐席班长 管理员
- if (code == "ZXBZ" || code == "SPZ" || code == "SPZJZ" || code == "GLY" || code == "DDZG")
- {
- buttons.Add(delete());
- buttons.Add(turnsee());
-
- }
- if (code == "ZXHWY")
- {
- buttons.Add(submit());
- buttons.Add(edit());
- }
- }
- break;
- case "1":
- //质检专员可以进行编辑 zhengbingbing 20191017
- if (code == "ZJZY")
- buttons.Add(edit());
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "GLY" || code == "ZXLDGLYGLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(edit());
- buttons.Add(back());
- buttons.Add(Report());
-
- }
- if (code == "ZXHWY")
- {//待审核交办时可撤单
- buttons.Add(withdraw());
- }
- break;
- case "2":
- //二级网络单位 管理员
- if (code == "GLY" || code == "WLDW")
- {
- buttons.Add(receive());
- }
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "SPZ" || code == "SPZJZ" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG")
- {
- buttons.Add(takeback());
- buttons.Add(edit());
- }
- break;
- case "3":
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(auditreback()); buttons.Add(turnsee());
- }
- break;
- case "4":
- //二级网络单位 管理员
- if (code == "WLDW" || code == "DDZG")
- {
- buttons.Add(feedback());// buttons.Add(reback());
- if (iszbdw == "1" || code == "GLY" || code == "DDZG")
- {
- if (InfoSource == "2580")
- buttons.Add(ejdelay());
- else
- buttons.Add(delay());
- if (ispd == "0" || ispd == ""|| ispd == "3")
- {
- buttons.Add(split());
- }
- else
- {
- buttons.Add(withdraw());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- buttons.Add(split());
- }
- }
- }
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "SPZ" || code == "SPZJZ" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG")
- {
- buttons.Add(takeback());
- buttons.Add(edit());
- // buttons.Add(edit());
- // buttons.Add(turnsee()); //buttons.Add(oversee());
- // buttons.Add(supervision());
- }
- //质检专员
- // if (code == "ZJZY" )
- // buttons.Add(turnsee());
- //三级网络单位
- if (code == "EJWLDW")
- {
- if (ispd == "1")
- {
- buttons.Add(sign()); //buttons.Add(refuse());
- }
- if (ispd == "2")
- {
- // buttons.Add(EJredo());
- //三级单位签收后,加个退回按钮,可以退回工单到二级单位,退回时必须输入退回原因
- buttons.Add(feedback());
- //三级单位签收后,加个退回按钮,可以退回工单到二级单位,退回时必须输入退回原因
- }
- }
- break;
- case "5":
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- // buttons.Add(edit());
- buttons.Add(auditdelay());
- }
- //三级网络单位
- if (code == "EJWLDW")
- {
- if (ispd == "1")
- {
- buttons.Add(sign()); //buttons.Add(refuse());
- }
- if (ispd == "2")
- {
- buttons.Add(feedback());
- }
- }
- break;
- case "6":
- #region
- //中心话务员 坐席班长 管理员
- //if (code == "ZXHWY" || code == "ZXBZ" || code == "GLY")
- //{
- // buttons.Add(visit());
- //}
- //20190315提出需求,回访由质检人员操作 (20190327 zhengbingbing)
- #endregion
- //质检专员(ZJZY)
- if (isproresult != 0)
- {
- if (isproresult == 2)
- {
- if (code == "WLDW")
- {
- buttons.Add(feedback());
- }
- }
- //else if (isproresult == 3)
- //{
- // if (code == "ZJZY" || code == "GLY" || code == "ZXLD" || code == "YSZY" || code == "DDZG" || code == "MTDD")
- // {
- // if (user=="省平台")
- // buttons.Add(visits());
- // else
- // buttons.Add(visit());
- // // buttons.Add(modify());
- // }
- // if (code == "ZXHWY")
- // {
- // if (user == "省平台")
- // buttons.Add(visits());
- // else
- // buttons.Add(visit());
- // }
- //}
- //调度专员 中心领导管理员 管理员
- //三级网络单位
- if (code == "EJWLDW")
- {
- if (ispd == "2")
- {
- buttons.Add(feedback());
- }
- }
- }
- else
- {
- if (code == "ZJZY" || code == "GLY" || code == "ZXLD" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(VisitApproved());
- buttons.Add(Auditfailed());
- buttons.Add(Audittransfer());
- buttons.Add(Unsuccessful());
- buttons.Add(turnsee());
- buttons.Add(Note());
- }
- if (code == "ZXHWY")
- {
- // buttons.Add(subback());
- // buttons.Add(visit());
- buttons.Add(VisitApproved());
- buttons.Add(Auditfailed());
- buttons.Add(Audittransfer());
- buttons.Add(Unsuccessful());
- buttons.Add(turnsee());
- buttons.Add(Note());
- }
- }
- break;
- //case "6":
- // //调度专员 中心领导管理员 管理员
- // //if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY")
- // if (isproresult != 0)
- // {
- // if (isproresult == 2)
- // {
- // if (code == "WLDW" || code == "GLY" || code == "DDZG")
- // {
- // buttons.Add(feedback());
- // }
- // }
- // else if (isproresult == 3)
- // {
- // if (code == "ZJZY" || code == "GLY" || code == "ZXLD" || code == "YSZY" || code == "DDZG" || code == "MTDD")
- // {
- // if (user == "省平台")
- // buttons.Add(visits());
- // else
- // buttons.Add(visit());
- // // buttons.Add(modify());
- // }
- // if (code == "ZXHWY")
- // {
- // if (user == "省平台")
- // buttons.Add(visits());
- // else
- // buttons.Add(visit());
- // }
- // }
- // //调度专员 中心领导管理员 管理员
- // //三级网络单位
- // if (code == "EJWLDW")
- // {
- // if (ispd == "2")
- // {
- // buttons.Add(feedback());
- // }
- // }
- // }
- // else
- // {
- // if (code == "ZJZY" || code == "GNZY" || code == "GLY" || code == "ZXLD" || code == "YSZY" || code == "DDZG" || code == "MTDD")
- // {
- // buttons.Add(visit());
- // buttons.Add(subback());
- // buttons.Add(modify());
- // }
- // if (code == "ZXHWY")
- // {
- // buttons.Add(subback());
- // buttons.Add(visit());
- // }
- // }
- // break;
- case "7":
- //调度专员 中心领导管理员 管理员
- //if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY")
- if (isproresult != 0)
- {
- if (isproresult == 2)
- {
- if (code == "WLDW")
- {
- buttons.Add(feedback());
- }
- }
- else if (isproresult == 3)
- {
- if (code == "ZJZY" || code == "GLY" || code == "ZXLD" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- if (InfoSource == "2580")
- {
- buttons.Add(forceend());
- buttons.Add(visits());
- }
-
- // else
- buttons.Add(visit());
- // buttons.Add(modify());
- buttons.Add(Note());
- }
- if (code == "ZXHWY")
- {
- if (InfoSource == "2580")
- buttons.Add(visits());
- buttons.Add(visit());
- buttons.Add(Note());
- }
- }
- //调度专员 中心领导管理员 管理员
- //三级网络单位
- if (code == "EJWLDW")
- {
- if (ispd == "2")
- {
- buttons.Add(feedback());
- }
- }
- }
- else
- {
- if (code == "ZJZY" || code == "GLY" || code == "ZXLD" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- if (InfoSource == "2580")
- {
- buttons.Add(forceend());
- buttons.Add(visits());
- }
-
-
- buttons.Add(visit());
- buttons.Add(subback());
- buttons.Add(modify());
- buttons.Add(Note());
- }
- if (code == "ZXHWY")
- {
- buttons.Add(subback());
- if (InfoSource == "2580")
- buttons.Add(visits());
-
- buttons.Add(visit());
- buttons.Add(Note());
- }
- }
- break;
- case "8":
- //二级网络单位 管理员
- if (code == "WLDW" || code == "DDZG")
- {
- buttons.Add(feedback());
- if (InfoSource == "2580")
- buttons.Add(ejdelay());
- else
- buttons.Add(delay());
- buttons.Add(split());
- // buttons.Add(reback());
- }
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(edit());
- buttons.Add(takeback());
- //buttons.Add(oversee());
- // buttons.Add(turnsee());
- // buttons.Add(supervision());
- }
- if (code == "EJWLDW")
- {
- if (ispd == "1")
- {
- buttons.Add(sign()); //buttons.Add(refuse());
- }
- if (ispd == "2")
- {
- // buttons.Add(EJredo());
- //三级单位签收后,加个退回按钮,可以退回工单到二级单位,退回时必须输入退回原因
- buttons.Add(feedback());
- //三级单位签收后,加个退回按钮,可以退回工单到二级单位,退回时必须输入退回原因
- }
- }
- //质检专员
- // if (code == "ZJZY" )
- // buttons.Add(turnsee());
- break;
- case "9":
- //调度专员 中心领导管理员 管理员
- if ((code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "ZXHWY" || code == "SPZ" || code == "SPZJZ") && iszb == "1")
- {
- buttons.Add(statistics());
-
- // buttons.Add(back());
- }
- if (code == "ZXLD" || code == "YSZY" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "ZXHWY" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(modify());
- }
- break;
- case "10":
- //坐席班长 管理员
- #region
- //20190715 去掉审核环节 zhengbingbing
- if (code == "ZXBZ" || code == "GLY" || code == "DDZG")
- buttons.Add(audit());
- #endregion
- if (code == "ZXHWY" || code == "ZXBZ" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- buttons.Add(edit());
- break;
- case "11":
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(reload()); buttons.Add(reject());
- }
- break;
- case "12":
- //督办专员(DBZY) 管理员
- if (code == "DBZY" || code == "GLY" || code == "DDZG")
- {
- buttons.Add(oversee()); buttons.Add(turnnosee());
- }
- break;
- case "13":
- if (code == "SPZ" || code == "ZXHWY" || code == "GLY" || code == "SPZJZ")
- {
- buttons.Add(subreload());
- //buttons.Add(end());
- buttons.Add(modify());
- }
- else if (code == "ZXLD" || code == "YSZY" || code == "MTDD")
- {
- buttons.Add(subreload());
- }
- break;
- case "14":
- if (code == "ZJZY" || code == "ZXLD" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(AuditReturn());
- }
- break;
- }
- //buttons.Add(export());
- //调度专员 中心领导管理员 管理员
- if (state != "0" && state != "9" && (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ"))
- {
- if (InfoSource != "2580")
- buttons.Add(forceend());
- }
- return buttons;
- }
- #region 知识库操作权限
- /// <summary>
- /// 根据状态和角色代码获取操作按钮
- /// </summary>
- /// <param name="state"></param>
- /// <param name="code"></param>
- /// <param name="iszb"></param>
- /// <returns></returns>
- public static List<button> GetZSKButtons(string state, string rolecode, string createby, string nowuser)
- {
- //中心话务员(ZXHWY) 二级网络单位(WLDW) 管理员(GLY) 坐席班长(ZXBZ) 调度专员(ZXLD)
- //中心领导管理员(ZXLDGLYGLY) 话务主管(ZXBZ) 中心领导(ZXLDGLY) 话务组长(ZXBZ)
- //导播话务员(DBHWY) 网易新闻(11) 三级网络单位(EJWLDW) 民生播报(MSBB)
- //督办专员(DBZY) 质检专员(ZJZY)
- List<button> buttons = new List<button>();
- buttons.Add(zsk_query());
- switch (state)
- {//状态:0草稿,1 待审核,2审核通过,3审核不通过,4无效
- case "0":
- if (createby == nowuser || rolecode == "GLY")
- {
- buttons.Add(zsk_submit());
- //buttons.Add(zsk_edit());
- //buttons.Add(zsk_delete());
- }
- break;
- case "1":
- if (rolecode == "ZXLD" || rolecode == "ZXLDGLY" || rolecode == "ZXLDGLYGLY" || rolecode == "GLY" || rolecode == "SPZ" || rolecode == "SPZJZ")
- buttons.Add(zsk_audit());
- break;
- case "2":
- case "5":
- if (rolecode == "ZXHWY" || rolecode == "ZXBZ" || rolecode == "ZXLD" || rolecode == "DBZY" || rolecode == "ZJZY" || rolecode == "GLY" || rolecode == "SPZ" || rolecode == "SPZJZ")
- {
- //解决 未解决
- buttons.Add(zsk_solved()); buttons.Add(zsk_unsolved());
- }
- //if (rolecode == "GLY")
- // buttons.Add(zsk_delete());
- break;
- case "3":
- case "4":
- if (createby == nowuser || rolecode == "GLY")
- {
- buttons.Add(zsk_submit());
- //buttons.Add(zsk_edit());
- //buttons.Add(zsk_delete());
- }
- break;
- }
- if (createby == nowuser || rolecode == "GLY")
- {
- buttons.Add(zsk_edit());
- buttons.Add(zsk_delete());
- }
- return buttons;
- }
- /// <summary>
- /// 根据状态和角色代码获取操作按钮
- /// </summary>
- /// <param name="state"></param>
- /// <param name="code"></param>
- /// <param name="iszb"></param>
- /// <returns></returns>
- public static List<button> GetAPPButtons(string state, string code, string isproresult = "0",string InfoSource="",string ispd="")
- {
- //审核组SPZ 审核质检组SPZJZ
- List<button> buttons = new List<button>();
- buttons.Add(query());
- switch (state)
- {
- case "1":
- //调度专员 中心领导管理员 管理员
- if (code == "GLY" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(assign());
- buttons.Add(back());
- buttons.Add(edit ());
- buttons.Add(turnsee());
- }
- break;
- case "2":
- //二级网络单位 管理员
- if (code == "GLY" || code == "WLDW")
- {
- buttons.Add(receive());
-
- }
- if (code == "SPZ" || code == "SPZJZ" || code == "GLY")
- {
- buttons.Add(takeback());
- }
- break;
- case "3":
- //调度专员 中心领导管理员 管理员
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(auditreback());
- }
- break;
- case "4":
- //二级网络单位 管理员
- if (code == "WLDW" || code == "DDZG")
- {
- buttons.Add(feedback());
-
- if (ispd !="3")
- {
- if (InfoSource == "2580")
- buttons.Add(ejdelay());
- else
- buttons.Add(delay());
- }
-
- if (ispd == "0" || ispd == "")
- {
- buttons.Add(split());
- }
- else
- {
- if (ispd == "3")
- buttons.Add(redo ());
- else
- buttons.Add(withdraw ());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- buttons.Add(split());
- }
-
-
- }
- if (code == "EJWLDW")
- {
- if (ispd == "1")
- {
- buttons.Add(sign()); //buttons.Add(refuse());
- }
- if (ispd == "2")
- {
- buttons.Add(feedback());
- }
- }
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "SPZ" || code == "SPZJZ" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG")
- {
- buttons.Add(takeback());
- buttons.Add(Urge());
-
- //buttons.Add(edit());
- }
- break;
- case "5":
- //调度专员 中心领导管理员 管理员
- if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(auditdelay());
- }
- break;
- case "6":
- //质检专员(ZJZY)
- if (isproresult == "2")
- {
- if (code == "WLDW")
- {
- buttons.Add(Append());
- buttons.Add(AssignUnsuccessful());
-
- }
- }
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(VisitApproved());
- buttons.Add(Auditfailed());
- buttons.Add(Audittransfer());
- }
- break;
- case "7":
- //调度专员 中心领导管理员 管理员
- //if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY")
- if (isproresult == "2")
- {
- if (code == "WLDW")
- {
- buttons.Add(Append());
- buttons.Add(AssignUnsuccessful());
- }
- }
- else if (isproresult == "3")
- {
- if (code == "SPZ" || code == "SPZJZ"|| code == "ZXHWY")
- {
- buttons.Add(visit());
- }
- }
- else
- {
- if (code == "SPZ" || code == "SPZJZ" || code == "ZXHWY")
- {
- buttons.Add(visit());
- }
- }
- if (code == "ZXHWY")
- {
- buttons.Add(turnsee());
- }
- break;
- case "8":
- //二级网络单位 管理员
- if (code == "WLDW")
- {
- buttons.Add(feedback());
- if (ispd != "3")
- {
- if (InfoSource == "2580")
- buttons.Add(ejdelay());
- else
- buttons.Add(delay());
- }
- if (ispd == "0" || ispd == "")
- {
- buttons.Add(split());
- }
- else
- {
- if (ispd == "3")
- buttons.Add(redo());
- else
- buttons.Add(withdraw());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- buttons.Add(split());
- }
- }
- if (code == "SPZ" || code == "SPZJZ"|| code == "GLY")
- {
- buttons.Add(takeback());
- buttons.Add(Urge());
- }
- if (code == "EJWLDW")
- {
- if (ispd == "1")
- {
- buttons.Add(sign()); //buttons.Add(refuse());
- }
- if (ispd == "2")
- {
- buttons.Add(feedback());
- }
- }
- break;
- case "11":
- //调度专员 中心领导管理员 管理员
- if (code == "SPZ" || code == "SPZJZ"|| code == "GLY")
- {
- buttons.Add(reload()); buttons.Add(reject());
- buttons.Add(edit());
- // buttons.Add(back());
- }
- if (code == "GLY")
- {
- buttons.Add(turnsee());
- }
- break;
- case "14":
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(AuditReturn());
- }
- break;
- }
- //buttons.Add(export());
- //调度专员 中心领导管理员 管理员
- return buttons;
- }
- #endregion
- }
- }
|