Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        REQUESTCODE          uResponse = REQUESTCODE.EXECUTE_FAIL;
        YARDRESVCHECKINFOREQ vrPar     = new YARDRESVCHECKINFOREQ();
        string szOrderKey  = Request["_szOrderKey"];
        string szOrderMode = Request["_szOrderMode"];

        GetHTTPObj(out vrPar);
        if (szOrderKey != null && szOrderKey != "")
        {
            vrPar.szReqExtInfo             = new REQEXTINFO();
            vrPar.szReqExtInfo.szOrderKey  = szOrderKey;
            vrPar.szReqExtInfo.szOrderMode = szOrderMode;
        }
        string szYardKind = Request["yardKind"];
        uint   uYardKind  = Parse(szYardKind);

        if (!IsPostBack)
        {
            //   dwStartDate.Value = DateTime.Now.ToString("yyyy-MM-dd");
            // dwEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd");
        }
        if (dwStartDate.Value != null && dwEndDate.Value != null && dwStartDate.Value != "" && dwEndDate.Value != "")
        {
            vrPar.dwBeginDate = GetDate(dwStartDate.Value);
            vrPar.dwEndDate   = GetDate(dwEndDate.Value);
        }
        else
        {
            vrPar.dwBeginDate = null;
            vrPar.dwEndDate   = null;
        }
        CODINGTABLE[] vtCodeing = getCodeTableByType((uint)CODINGTABLE.DWCODETYPE.CODE_YARDRESVKIND);
        szCodeing += GetInputItemHtml(CONSTHTML.radioButton, "dwKind", "全部", "0");
        for (int i = 0; vtCodeing != null && i < vtCodeing.Length; i++)
        {
            szCodeing += GetInputItemHtml(CONSTHTML.radioButton, "dwKind", vtCodeing[i].szCodeName, vtCodeing[i].szCodeSN);
        }
        uint uKind = Parse(Request["dwKind"]);

        if (uKind != 0)
        {
            vrPar.dwKind = uKind;
        }
        else
        {
            vrPar.dwKind = null;
            PutMemberValue("dwKind", "0");
        }

        uint uBeginDate = GetDate(dwStartDate.Value);
        uint uEndDate   = GetDate(dwEndDate.Value);

        vrPar.dwNeedYardResv = 1;
        if (vrPar.dwCheckStat == null || ((uint)vrPar.dwCheckStat) == 0)
        {
            vrPar.dwCheckStat = (uint)ADMINCHECK.DWCHECKSTAT.CHECKSTAT_CANDO;
        }
        YARDRESVCHECKINFO[] vtRes;
        string     szResvTime    = "";
        string     szResvTimeAll = "";
        ArrayList  listResvID    = new ArrayList();
        REQEXTINFO extInfo       = vrPar.szReqExtInfo;

        if (extInfo.szOrderKey == null)
        {
            extInfo.szOrderKey  = "dwCheckTime";
            extInfo.szOrderMode = "desc";
        }
        //  vrPar.dwCheckStat= vrPar.dwCheckStat|(uint)


        uResponse = m_Request.Reserve.GetYardResvCheckInfo(vrPar, out vtRes);

        CHECKTYPEREQ vrGet = new CHECKTYPEREQ();

        CHECKTYPE[] vtCheck;
        if (m_Request.Admin.CheckTypeGet(vrGet, out vtCheck) == REQUESTCODE.EXECUTE_SUCCESS && vtCheck != null && vtCheck.Length > 0)
        {
        }


        ArrayList yardResvListLast = new ArrayList();

        if (uResponse == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0)
        {
            //合并 结果到yardResvListLastID,
            for (int i = 0; i < vtRes.Length; i++)
            {
                uint uResvIDTemp = 0;
                if (vtRes[i].YardResv.dwResvGroupID != null)
                {
                    uResvIDTemp = (uint)vtRes[i].YardResv.dwResvGroupID;
                }
                else
                {
                    continue;
                }
                bool isAdd    = true;
                int  uPostion = -1;

                CHECKTYPE checktype = new CHECKTYPE();
                if (GetCheckType((uint)vtRes[i].dwCheckKind, out checktype, vtCheck))
                {
                    if ((checktype.dwMainKind & (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_SERVICE) > 0)
                    {
                        continue;
                    }
                }
                for (int k = 0; k < yardResvListLast.Count; k++)
                {
                    YARDRESVCHECKINFO tempClass = (YARDRESVCHECKINFO)yardResvListLast[k];
                    if (tempClass.YardResv.dwResvGroupID == uResvIDTemp)
                    {
                        uPostion = k;
                        isAdd    = false;
                        break;
                    }
                }
                if (isAdd)
                {
                    YARDRESVCHECKINFO newClassTemp = new YARDRESVCHECKINFO();
                    newClassTemp = vtRes[i];
                    newClassTemp.szCheckDetail          = newClassTemp.dwCheckID.ToString() + ',';
                    newClassTemp.YardResv.dwResvGroupID = uResvIDTemp;
                    newClassTemp.szMemo = Get1970Date(vtRes[i].YardResv.dwBeginTime) + "至" + Get1970Date(vtRes[i].YardResv.dwEndTime) + ";";
                    yardResvListLast.Add(newClassTemp);
                }
                else
                {
                    YARDRESVCHECKINFO newClassTemp = new YARDRESVCHECKINFO();
                    newClassTemp = (YARDRESVCHECKINFO)yardResvListLast[uPostion];
                    newClassTemp.YardResv.dwResvGroupID = uResvIDTemp;
                    string szMemo = newClassTemp.szMemo.ToString();
                    newClassTemp.szMemo        = szMemo + Get1970Date(vtRes[i].YardResv.dwBeginTime) + "至" + Get1970Date(vtRes[i].YardResv.dwEndTime) + ";";
                    newClassTemp.szCheckDetail = newClassTemp.szCheckDetail + vtRes[i].dwCheckID.ToString() + ',';
                    if (newClassTemp.szCheckName.IndexOf(vtRes[i].szCheckName) < 0)
                    {
                        newClassTemp.szCheckName += "," + vtRes[i].szCheckName;
                    }
                    yardResvListLast[uPostion] = newClassTemp;
                }
            }
            for (int i = 0; i < vtRes.Length; i++)
            {
                uint uResvIDTemp = 0;
                if (vtRes[i].YardResv.dwResvGroupID != null)
                {
                    uResvIDTemp = (uint)vtRes[i].YardResv.dwResvGroupID;
                }

                bool isAdd    = true;
                int  uPostion = -1;

                CHECKTYPE checktype = new CHECKTYPE();
                if (GetCheckType((uint)vtRes[i].dwCheckKind, out checktype, vtCheck))
                {
                    if ((checktype.dwMainKind & (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_SERVICE) > 0)
                    {
                        for (int k = 0; k < yardResvListLast.Count; k++)
                        {
                            YARDRESVCHECKINFO tempClass = (YARDRESVCHECKINFO)yardResvListLast[k];
                            if (tempClass.YardResv.dwResvGroupID == uResvIDTemp)
                            {
                                uPostion = k;
                                isAdd    = false;
                                break;
                            }
                        }
                        if (isAdd)
                        {
                            YARDRESVCHECKINFO newClassTemp = new YARDRESVCHECKINFO();
                            newClassTemp = vtRes[i];
                            newClassTemp.szCheckDetail          = newClassTemp.dwCheckID.ToString() + ',';
                            newClassTemp.YardResv.dwResvGroupID = uResvIDTemp;
                            newClassTemp.szMemo = Get1970Date(vtRes[i].YardResv.dwBeginTime) + "至" + Get1970Date(vtRes[i].YardResv.dwEndTime) + ";";
                            yardResvListLast.Add(newClassTemp);
                        }
                        else
                        {
                            YARDRESVCHECKINFO newClassTemp = new YARDRESVCHECKINFO();
                            newClassTemp = (YARDRESVCHECKINFO)yardResvListLast[uPostion];
                            newClassTemp.YardResv.dwResvGroupID = uResvIDTemp;
                            string szMemo = newClassTemp.szMemo.ToString();
                            newClassTemp.szMemo        = szMemo + Get1970Date(vtRes[i].YardResv.dwBeginTime) + "至" + Get1970Date(vtRes[i].YardResv.dwEndTime) + ";";
                            newClassTemp.szCheckDetail = newClassTemp.szCheckDetail + vtRes[i].dwCheckID.ToString() + ',';
                            newClassTemp.szCheckName  += "," + vtRes[i].szCheckName;
                            yardResvListLast[uPostion] = newClassTemp;
                        }
                    }
                }
            }
            for (int m = 0; m < yardResvListLast.Count; m++)
            {
                szResvTimeAll = "";
                szResvTime    = "";
                YARDRESVCHECKINFO newClassTemp = new YARDRESVCHECKINFO();
                newClassTemp = (YARDRESVCHECKINFO)yardResvListLast[m];


                if (Session["checkid"] != null && Session["checkid"].ToString().IndexOf(newClassTemp.dwCheckID.ToString()) > -1)
                {
                    m_szOut += "<tr bgcolor='#2E8B57'>";
                }
                else
                {
                    m_szOut += "<tr>";
                }

                m_szOut += "<td data-ActivityLevel ='" + newClassTemp.YardResv.dwSecurityLevel + "' data-checkIDs='" + newClassTemp.szCheckDetail + "' data-ActivityLevel ='" + newClassTemp.YardResv.dwSecurityLevel + "' data-resvGroupID='" + newClassTemp.YardResv.dwResvGroupID.ToString() + "' class='getInfo' data-id=" + newClassTemp.szCheckDetail.ToString() + ">" + newClassTemp.YardResv.szActivityName + "</td>";
                m_szOut += "<td>" + newClassTemp.YardResv.dwResvGroupID + "</td>";
                m_szOut += "<td>" + newClassTemp.YardResv.szResvName + "</td>";
                m_szOut += "<td class='lnkAccount' data-id='" + newClassTemp.dwApplicantID.ToString() + "' data-ActivityLevel ='" + newClassTemp.YardResv.dwSecurityLevel + "' data-id=" + newClassTemp.dwCheckID.ToString() + ">" + newClassTemp.szApplicantName + "</td>";
                m_szOut += "<td>" + Get1970Date(newClassTemp.YardResv.dwOccurTime) + "</td>";
                m_szOut += "<td>" + newClassTemp.YardResv.szDevName + "</td>";
                string[] szResvTimeList = newClassTemp.szMemo.Split(';');

                if (szResvTimeList != null && szResvTimeList.Length > 0)
                {
                    if (szResvTimeList.Length > 1)
                    {
                        szResvTime += "【" + (szResvTimeList.Length - 1) + "】条:" + "<br/>";
                    }
                    for (int k = 0; k < szResvTimeList.Length; k++)
                    {
                        if (k < 5)
                        {
                            if (((k + 1) % 2) == 0)
                            {
                                szResvTime += szResvTimeList[k] + ";<br/>";
                            }
                            else
                            {
                                szResvTime += szResvTimeList[k] + ";";
                            }
                        }
                        szResvTimeAll += szResvTimeList[k] + ";";
                    }
                }
                YARDRESV[] yardresvList = GetYardResvByGroupID((uint)newClassTemp.YardResv.dwResvGroupID);
                if (newClassTemp.YardResv.szCycRule == null || newClassTemp.YardResv.szCycRule == "")
                {
                    m_szOut += "<td class='tdDetail' text='" + szResvTimeAll + "'>" + Get1970Date(newClassTemp.YardResv.dwBeginTime) + "到" + Get1970Date(newClassTemp.YardResv.dwEndTime) + "</td>";
                }
                else
                {
                    m_szOut += "<td class='tdDetail' text='" + szResvTimeAll + "'>" + newClassTemp.YardResv.szCycRule + "</td>";
                }
                string    szCheckName = "";
                CHECKTYPE checkType   = new CHECKTYPE();
                if (GetCheckType((uint)newClassTemp.dwCheckKind, out checkType, vtCheck))
                {
                    szCheckName = GetJustNameEqual((uint)checkType.dwMainKind, "CheckType_Kind");
                }
                m_szOut += "<td>" + (newClassTemp.szCheckName) + "</td>";
                m_szOut += "<td>" + GetJustNameEqual(newClassTemp.dwCheckStat, "Admin_CheckStatus") + "</td>";
                m_szOut += "<td>" + Get1970Date(newClassTemp.dwCheckTime) + "</td>";
                m_szOut += "<td>" + newClassTemp.szAdminName + "</td>";
                if ((newClassTemp.dwCheckStat & (uint)ADMINCHECK.DWCHECKSTAT.CHECKSTAT_CANDO) > 0)
                {
                    m_szOut += "<td><div class='OPTD'></div></td>";
                }
                else
                {
                    m_szOut += "<td><div class='OPTD OPTD2'></div></td>";
                }

                m_szOut += "</tr>";
            }
        }
        PutBackValue();
    }
Ejemplo n.º 2
0
    private void InitYardResv(uint start, uint end)
    {
        YARDRESVREQ req = new YARDRESVREQ();

        req.dwBeginDate              = start;
        req.dwEndDate                = end;
        req.dwApplicantID            = acc.dwAccNo;
        req.szReqExtInfo.szOrderKey  = "dwResvGroupID DESC,OccurTime";
        req.szReqExtInfo.szOrderMode = "ASC";
        //req.dwReqProp = (uint)YARDRESVREQ.DWREQPROP.YARDREQ_ONLYMAINRESV;
        req.dwStatFlag = (uint)RESVREQ.DWSTATFLAG.STATFLAG_OVER | (uint)RESVREQ.DWSTATFLAG.STATFLAG_INUSE | (uint)RESVREQ.DWSTATFLAG.STATFLAG_CHECKFAIL;
        YARDRESV[] rlt;
        if (m_Request.Reserve.GetYardResv(req, out rlt) == REQUESTCODE.EXECUTE_SUCCESS)
        {
            CHECKTYPE[] mantypes  = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_DEVMAN);
            CHECKTYPE[] dicttypes = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_DIRECTOR);
            CHECKTYPE[] servtypes = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_SERVICE);
            //获取服务列表
            for (int i = 0; i < servtypes.Length; i++)
            {
                svcArray += servtypes[i].dwCheckKind + ",";
            }
            if (svcArray.Length > 0)
            {
                svcArray = svcArray.Substring(0, svcArray.Length - 1);
            }
            //
            string delList = "";
            for (int i = 0; i < rlt.Length; i++)
            {
                YARDRESV resv    = rlt[i];
                string   groupId = resv.dwResvGroupID.ToString();
                bool     over    = (resv.dwStatus & (uint)UNIRESERVE.DWSTATUS.RESVSTAT_DONE) > 0;
                //预约明细
                if (i == 0 || rlt[i - 1].dwResvGroupID != resv.dwResvGroupID)
                {
                    delList     = resv.dwResvID.ToString();
                    timeDetail += (i == 0 ? "" : "</tbody></table></div>") + "<div id='timedetail_" + groupId + "'><table class='timedetail_info state_info uni_sort_tbl'><thead><tr><th class='sort_asc'>时间</th></tr></thead><tbody>";
                    //timeDetail += (i == 0 ? "" : "</tbody></table></div>") + "<div id='timedetail_" + groupId + "'><table class='timedetail_info state_info uni_sort_tbl'><thead><tr><th>预约号</th><th class='sort_asc'>时间</th><th>状态</th><th class='no_sort'>操作</th></tr></thead><tbody>";
                }
                else
                {
                    delList += "," + resv.dwResvID;
                }
                timeDetail += "<tr class='tdetail_tr_" + resv.dwResvID + "'><td>" + Get1970Date((int)resv.dwBeginTime) + "至" + Get1970Date((int)resv.dwEndTime).Substring(11) + "</td></tr>" + (i == rlt.Length - 1 ? "</tbody></table></div>" : "");
//                timeDetail += "<tr class='tdetail_tr_"+resv.dwResvID+"'><td>" + resv.dwResvID + "</td><td>" + Get1970Date((int)resv.dwBeginTime) + "至" + Get1970Date((int)resv.dwEndTime).Substring(11) + "</td><td>" + Util.Converter.ResvStatusConverter(resv.dwStatus) + "</td>" +
//"<td class='text-center resv_act'>" + GetResvAct(resv) + "</td></tr>" + (i == rlt.Length - 1 ? "</tbody></table></div>" : "");
                if (i < rlt.Length - 1 && rlt[i + 1].dwResvGroupID == resv.dwResvGroupID)//非同组最后一个
                {
                    continue;
                }
                string timespan = resv.szCycRule;
                bool   isCycle  = true;
                if (i == 0 || rlt[i - 1].dwResvGroupID != resv.dwResvGroupID)//非周期预约
                {
                    isCycle  = false;
                    timespan = Get1970Date((int)resv.dwBeginTime) + "至" + Get1970Date((int)resv.dwEndTime).Substring(11);
                }
                string occurtime = Get1970Date((int)resv.dwOccurTime);
                //申请模版
                string applyTbl = "apply";
                //申请模版
                if ((resv.dwSecurityLevel & 0x20000000) > 0)//会议模版
                {
                    applyTbl = "apply_hy";
                }

                string man     = "";
                string dict    = "";
                string service = "";
                bool   noCheck = true;//未审核
                if (over)
                {
                    man     = "<span class='grey'>见【审核详情】</span>";
                    dict    = "<span class='grey'>见【审核详情】</span>";
                    service = "<span class='grey'>见【审核详情】</span>";
                }
                else
                {
                    string msg;
                    YARDRESVCHECKINFO[] ckInfo = GetResvCheckInfo(resv.dwResvID.ToString(), out msg);
                    for (int j = 0; j < ckInfo.Length; j++)
                    {
                        YARDRESVCHECKINFO info = ckInfo[j];
                        if (noCheck && (info.dwCheckStat & (uint)ADMINCHECK.DWCHECKSTAT.CHECKSTAT_ADMINOK) > 0)
                        {
                            noCheck = false;
                        }
                        CHECKTYPE mantype  = IsInAarray(info.dwCheckKind, mantypes);
                        CHECKTYPE dicttype = IsInAarray(info.dwCheckKind, dicttypes);
                        CHECKTYPE servtype = IsInAarray(info.dwCheckKind, servtypes);
                        if (mantype.dwCheckKind != null)
                        {
                            man = resv.szDeptName + "<br/>" + Util.Converter.GetCheckState(info.dwCheckStat);
                        }
                        else if (dicttype.dwCheckKind != null)
                        {
                            string name = dicttype.szDeptName;
                            if (string.IsNullOrEmpty(name.Trim()))
                            {
                                name = acc.szDeptName;
                            }
                            //if (dicttype.dwDeptID != null || dicttype.dwDeptID != 0) name = acc.szDeptName;
                            dict = name + "<br/>" + Util.Converter.GetCheckState(info.dwCheckStat);
                        }
                        else if (servtype.dwCheckKind != null)
                        {
                            service += info.szCheckName + "<br/>";//"(" + Util.Converter.GetCheckState(info.dwCheckStat) + ")<br/>"
                        }
                    }
                }
                resvList += "<tbody date='" + occurtime + "' over='" + (over?"true":"false") + "' style='display:none;'>" +
                            "<tr class='head'><td colspan='6'><h3>" + resv.szResvName + "<small>" + ((resv.dwProperty & (uint)UNIRESERVE.DWPROPERTY.RESVPROP_UNOPEN) > 0 ? "(不公开)" : "(公开)") + "</small></h3>"
                            + "<span>状态:<strong class='green'>" + Util.Converter.ResvStatusWithCheck(resv.dwStatus) + "</strong> </span><span class='pull-right'>"
                            + "<span class='grey'>单号:" + groupId + " </span><a class='activity_detail' resv_id='" + groupId + "'>详情</a></span></td></tr>"
                            + "<tr class='content'><td><div class='box'><span class='load_apply_detail'>" + resv.szDevName + "</span><br/><a target='_blank' href='applydetail.aspx?resv_id=" + groupId + "' >详细</a> | <a onclick='copyApply(\"" + groupId + "\",\"" + resv.dwActivitySN + "\",\"" + applyTbl + ".aspx\")'>复制申请</a></div></td>"
                            + "<td>" + dict + "</td>"
                            + "<td>" + man + "</td>"
                            + "<td>" + timespan + "<button type='button' class='btn btn-info btn-xs time_detail " + (isCycle?"":"hidden") + "' resv_id='" + groupId + "' no_check='" + noCheck + "'><<时间明细&nbsp;</button></td>"
                            + "<td>服务:<br /><span class='part'>" + service + "</span></td>"
                            + "<td class='text-center'><div style='margin: 5px auto;'>" + GetAct(resv, delList, noCheck) + "</div><div>"
                            + "<button type='button' class='btn btn-info btn-xs check_state' resv_id='" + resv.dwResvID + "'>&nbsp;审核详情&nbsp;</button></div></td></tr></tbody>";
                detailList += "<div id='detail_" + groupId + "'><table class='detail_info'>"
                              + "<tr><td>活动场景</td><td>" + resv.szActivityName + "</td></tr>"
                              + "<tr><td>组织方</td><td>" + resv.szOrganization + "</td></tr>"
                              + "<tr><td>人数规模</td><td>" + resv.dwMaxAttendance + "人 </td></tr>"
                              + "<tr><td>校区</td><td>" + resv.szCampusName + "</td></tr>"
                              + "<tr><td>申请时间</td><td>" + occurtime + "</td></tr>"
                              + "<tr><td>是否盈利</td><td>" + ((resv.dwProperty & (uint)UNIRESERVE.DWPROPERTY.RESVPROP_PROFIT) > 0?"营利":"非营利") + "</td></tr></table></div>";
            }
            if (rlt.Length == 0)
            {
                resvList = "<tbody><tr><td colspan='6' class='text-center'>没有数据</td></tr></tbody>";
            }
        }
        else
        {
            MsgBoxH(m_Request.szErrMsg);
        }
        //删除明细
        //    req.dwStatFlag = (uint)RESVREQ.DWSTATFLAG.STATFLAG_DEL;
        //    req.dwBeginDate = ToUInt(DateTime.Now.AddMonths(-12).ToString("yyyyMMdd"));
        //    if (m_Request.Reserve.GetYardResv(req, out rlt) == REQUESTCODE.EXECUTE_SUCCESS)
        //    {
        //        for (int i = 0; i < rlt.Length; i++)
        //        {
        //            YARDRESV resv = rlt[i];
        //            delList += "<tr class='it'><td>" + resv.dwResvID + "</td><td>" + resv.szResvName + "</td><td>" + resv.szDevName + "</td>" +
        //"<td>" + resv.szDeptName + "</td><td class='text-center'>" + Get1970Date((int)resv.dwBeginTime).Substring(5) + "至" + Get1970Date((int)resv.dwEndTime).Substring(5) + "</td>" +
        //"<td class='text-center'>" + Get1970Date((int)resv.dwOccurTime) + "</td></tr>";
        //        }
        //        if (rlt.Length == 0)
        //        {
        //            resvList = "<tbody><tr><td colspan='6' class='text-center'>没有数据</td></tr></tbody>";
        //        }
        //    }
        //    else
        //    {
        //        MsgBoxH(m_Request.szErrMsg);
        //    }
    }
Ejemplo n.º 3
0
    private void InitYardResv(string id)
    {
        if (string.IsNullOrEmpty(id))
        {
            return;
        }
        YARDRESVREQ req = new YARDRESVREQ();

        req.dwResvGroupID = ToUInt(id);
        //req.dwReqProp = (uint)YARDRESVREQ.DWREQPROP.YARDREQ_ONLYMAINRESV;必须获取多条才能判断是否批量预约
        req.dwStatFlag = (uint)RESVREQ.DWSTATFLAG.STATFLAG_OVER | (uint)RESVREQ.DWSTATFLAG.STATFLAG_INUSE | (uint)RESVREQ.DWSTATFLAG.STATFLAG_DEL | (uint)RESVREQ.DWSTATFLAG.STATFLAG_CHECKFAIL;
        YARDRESV[] rlt;
        if (m_Request.Reserve.GetYardResv(req, out rlt) == REQUESTCODE.EXECUTE_SUCCESS)
        {
            if (rlt.Length > 0)
            {
                resv = rlt[0];
                /////////////////
                CHECKTYPE[]         mantypes  = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_DEVMAN);
                CHECKTYPE[]         dicttypes = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_DIRECTOR);
                CHECKTYPE[]         servtypes = GetCheckType(null, (uint)CHECKTYPE.DWMAINKIND.ADMINCHECK_SERVICE);
                string              msg;
                YARDRESVCHECKINFO[] ckInfo  = GetResvCheckInfo(id, out msg);
                string              man     = "";
                string              dict    = "";
                string              service = "";
                for (int j = 0; j < ckInfo.Length; j++)
                {
                    YARDRESVCHECKINFO info     = ckInfo[j];
                    CHECKTYPE         mantype  = IsInAarray(info.dwCheckKind, mantypes);
                    CHECKTYPE         dicttype = IsInAarray(info.dwCheckKind, dicttypes);
                    CHECKTYPE         servtype = IsInAarray(info.dwCheckKind, servtypes);
                    if (mantype.dwCheckKind != null)
                    {
                        man = resv.szDeptName + " (" + GetCheckState(info.dwCheckStat) + ")";
                    }
                    else if (dicttype.dwCheckKind != null)
                    {
                        UNIACCOUNT acc  = (UNIACCOUNT)Session["LOGIN_ACCINFO"];
                        string     name = dicttype.szDeptName;
                        if (string.IsNullOrEmpty(name.Trim()))
                        {
                            name = acc.szDeptName;
                        }
                        dict = name + " (" + GetCheckState(info.dwCheckStat) + ")";
                    }
                    else if (servtype.dwCheckKind != null)
                    {
                        service += info.szCheckName + "&nbsp;&nbsp;&nbsp;";
                    }
                }
                checkService  = service;
                checkDirector = dict;
                checkMan      = man;
                ////////////////////////
                status  = ToUInt(resv.dwStatus);
                profit  = (resv.dwProperty & (uint)UNIRESERVE.DWPROPERTY.RESVPROP_PROFIT) > 0?"是":"否";
                media   = (resv.dwProperty & 0x4000000) > 0 ? "是" : "否";
                open    = (resv.dwProperty & (uint)UNIRESERVE.DWPROPERTY.RESVPROP_UNOPEN) > 0 ? "否" : "是";
                require = resv.szDesiredUser;
                if (rlt.Length > 1)
                {
                    resvTime = resv.szCycRule;
                }
                else
                {
                    resvTime = Get1970Date((int)resv.dwBeginTime) + "至" + Get1970Date((int)resv.dwEndTime).Substring(11);
                }
                isShare = (resv.dwProperty & (uint)UNIDEVKIND.DWPROPERTY.DEVPROP_SHARE) > 0;//室外场地
                atyType = GetTypeList(resv.dwKind.ToString());

                //申请模版
                applyTbl = "dft";
                //申请模版
                if ((resv.dwSecurityLevel & 0x20000000) > 0)//会议模版
                {
                    applyTbl = "hy";
                }
                else if ((resv.dwSecurityLevel & 0x800000) > 0)//体育场地
                {
                    isSports = true;
                }
            }
        }
        else
        {
            MsgBoxH(m_Request.szErrMsg);
        }
    }