| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008 |
- 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 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 subback()
- {
- return new button(39, "退回");
- }
- #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());
- }
- 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 == "")
- {
- buttons.Add(split());
- }
- else
- {
- buttons.Add(withdraw());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- }
- }
- }
- //调度专员 中心领导管理员 管理员
- 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());
- }
- if (code == "ZXHWY")
- {
- // buttons.Add(subback());
- // buttons.Add(visit());
- buttons.Add(VisitApproved());
- buttons.Add(Auditfailed());
- buttons.Add(Audittransfer());
- }
- }
- 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(visits());
- else
- buttons.Add(visit());
- // buttons.Add(modify());
- buttons.Add(Note());
- }
- if (code == "ZXHWY")
- {
- if (InfoSource == "2580")
- buttons.Add(visits());
- else
- 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(visits());
- else
- buttons.Add(visit());
- buttons.Add(subback());
- buttons.Add(modify());
- buttons.Add(Note());
- }
- if (code == "ZXHWY")
- {
- buttons.Add(subback());
- if (InfoSource == "2580")
- buttons.Add(visits());
- else
- 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(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 (InfoSource == "2580")
- buttons.Add(ejdelay());
- else
- buttons.Add(delay());
- if (ispd == "0" || ispd == "")
- {
- buttons.Add(split());
- }
- else
- {
- buttons.Add(withdraw());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- }
- }
- //调度专员 中心领导管理员 管理员
- 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());
- }
- }
- 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());
- }
- }
- else if (isproresult == "3")
- {
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(visit());
- }
- }
- else
- {
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(visit());
- }
- }
- break;
- case "8":
- //二级网络单位 管理员
- if (code == "WLDW")
- {
- buttons.Add(feedback());
- buttons.Add(delay());
- if (ispd == "0" || ispd == "")
- {
- buttons.Add(split());
- }
- else
- {
- buttons.Add(withdraw());
- }
- if (ispd == "3")
- {
- buttons.Add(auditdeal());
- }
- }
- if (code == "SPZ" || code == "SPZJZ"|| code == "GLY")
- {
- buttons.Add(takeback());
- buttons.Add(Urge());
- }
- break;
- case "11":
- //调度专员 中心领导管理员 管理员
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(reload()); buttons.Add(reject());
- buttons.Add(edit());
- // buttons.Add(back());
- }
- break;
- case "14":
- if (code == "SPZ" || code == "SPZJZ")
- {
- buttons.Add(AuditReturn());
- }
- break;
- }
- //buttons.Add(export());
- //调度专员 中心领导管理员 管理员
- return buttons;
- }
- #endregion
- }
- }
|