コード例 #1
0
        public string getSendProcess(object id, object status, object type)
        {
            int    _id     = Utils.CIntDef(id);
            int    _status = Utils.CIntDef(status);
            int    _type   = Utils.CIntDef(type);
            string str     = "";

            if (_type != 3 && (idGroup != 1 && idGroup != 2 && idGroup != 3 && unitdata.CheckGroup(_status, _type) == idGroup))
            {
                if (_status == 4)
                {
                    str = "<a href='#' onClick='openProcesHS(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 6)
                {
                    str = "<a href='#' onClick='openProcesGiaoHS(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 7)
                {
                    str = "<a href='#' onClick='openProcesNopHS(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 8)
                {
                    str = "<a href='#' onClick='openProcesTraHS(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 9 && _type != 3)
                {//Giai đoạn này cả 3 loại đều hoàn thành, nhưng chỉ có 1,2 là có thể chọn làm Hồ sơ hành chánh
                    str = "<a href='#' onClick='openProcesFn(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 10)
                {
                    str = "<a href='#' onClick='openProcesKDHS(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 11 && (_type == 1 || _type == 2))
                {
                    str = "<a href='#' onClick='openProcesFn(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status > 11)
                {
                    str = "";
                }
                else
                {
                    str = "<a href='#' onClick='openProces(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
            }

            if (_type == 3)
            {
                if (_status == 1 && unitdata.CheckGroup(_status, _type) == idGroup)
                {
                    str = "<a href='#' onClick='openProces1_KT(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 2 && (idGroup == 11 || idGroup == 7 || idGroup == 13))
                {//Trường hợp đặc biệt không theo quy trình là có thể chọn nhiều người trong nhiều group khác nhau ở lúc tạo hồ sơ Hành chánh
                    str = "<a href='#' onClick='openProces2_KT(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 3 && unitdata.CheckGroup(_status, _type) == idGroup)
                {
                    str = "<a href='#' onClick='openProces(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 4 && unitdata.CheckGroup(_status, _type) == idGroup)
                {
                    str = "<a href='#' onClick='openProcesHS_KT(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 5 && unitdata.CheckGroup(_status, _type) == idGroup)
                {
                    str = "<a href='#' onClick='openProcesTraHS_KT(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
                else if (_status == 6 && unitdata.CheckGroup(_status, _type) == idGroup)
                {
                    str = "<a href='#' onClick='openProcesFnMain(" + _id + "," + _status + "," + _type + "); return false' title='Chuyển tiếp'><img src='../Images/User-roles.png' width='18' height='18'/></a>";
                }
            }
            return(str);
        }