Esempio n. 1
0
        /// <summary>
        /// 获得页面数据
        /// </summary>
        /// <param name="model"></param>
        private void GetPageValue(Peer_coun_head model)
        {
            string          strCounId = ComHandleClass.getInstance().ByStuNumberGetCounCode(user.User_Id);
            Basic_coun_info coun      = CounHandleClass.getInstance().GetCounInfo_Obj(strCounId);

            if (coun != null)
            {
                model.COUN_ID         = coun.ENO;
                model.COUN_NAME       = coun.NAME;
                model.COUN_DEPARTMENT = coun.DEPARTMENT;
            }

            Basic_stu_info stu = StuHandleClass.getInstance().GetStuInfo_Obj(user.User_Id);

            if (stu != null)
            {
                model.STU_NAME   = stu.NAME;
                model.STU_NUMBER = stu.NUMBER;
                model.XY         = stu.COLLEGE;
                model.ZY         = stu.MAJOR;
                model.GRADE      = stu.EDULENTH;
                model.CLASS_CODE = stu.CLASS;
            }

            Peer_project_head peer = PeerInfoHandleClass.getInstance().GetPeerInfoHead(Post("hidPeerSeqNo"));

            if (peer != null)
            {
                model.PEER_SEQ_NO = peer.SEQ_NO;
                model.PEER_NAME   = peer.PEER_NAME;
                model.PEER_YEAR   = peer.PEER_YEAR;
            }
            model.OP_TIME = GetDateLongFormater();
        }
Esempio n. 2
0
        /// <summary>
        /// 判断是否满足操作条件
        /// </summary>
        /// <returns></returns>
        private string ChkIsCanOp()
        {
            if (string.IsNullOrEmpty(Get("peer_seq_no")))
            {
                return("选择评议主题的单据编号为空,不允许操作!");
            }

            Peer_project_head project_head = PeerInfoHandleClass.getInstance().GetPeerInfoHead(Get("peer_seq_no"));

            if (project_head == null)
            {
                return("选择评议主题信息为空,不允许操作!");
            }

            if (!ProjectSettingHandleClass.getInstance().CheckIsFitApplyDate(project_head.PEER_END, user.User_Role))
            {
                return("该评议主题的评议结束日期已过,无法操作!");
            }

            return(string.Empty);
        }