Exemplo n.º 1
0
        public IList <Paper> GetPaperByCategoryIDPath(string idPath, int createMode, string paperName, string createPerson, int OrgId)
        {
            OrganizationBLL objOrgBll = new OrganizationBLL();
            IList <Paper>   paperList = dal.GetPaperByCategoryIDPath(idPath, createMode, paperName, createPerson, OrgId);

            foreach (Paper paper in paperList)
            {
                paper.StationName = objOrgBll.GetOrganization(paper.OrgId).ShortName;
            }
            return(paperList);
        }
Exemplo n.º 2
0
        public IList <RandomExam> GetControlRandomExamsInfo(int orgid, int serverNo)
        {
            OrganizationBLL    objOrgBll = new OrganizationBLL();
            IList <RandomExam> ExamList  = dal.GetControlRandomExamsInfo(orgid, serverNo);

            foreach (RandomExam exam in ExamList)
            {
                exam.StationName = objOrgBll.GetOrganization(exam.OrgId).ShortName;
            }
            return(ExamList);
        }
Exemplo n.º 3
0
        public IList <RandomExam> GetExamByExamCategoryIDPath(string ExamCategoryIDPath, string ExamName, string CreatePerson, int orgId, int ExamTimeType, int ExamStyleID, int railSystemID)
        {
            OrganizationBLL    objOrgBll = new OrganizationBLL();
            IList <RandomExam> ExamList  = dal.GetExamByExamCategoryIDPath(ExamCategoryIDPath, ExamName, CreatePerson, orgId, ExamTimeType, ExamStyleID, railSystemID);

            foreach (RandomExam exam in ExamList)
            {
                exam.StationName = objOrgBll.GetOrganization(exam.OrgId).ShortName;
            }
            return(ExamList);
        }
Exemplo n.º 4
0
        /// <summary>
        /// ²éÕÒµ½ÆÚµ«»¹Ã»ÓнáÊøµÄ¿¼ÊÔ
        /// </summary>
        /// <param name="orgid"></param>
        /// <returns></returns>
        public IList <RandomExam> GetOverdueNotEndRandomExam(int orgid)
        {
            OrganizationBLL    objOrgBll = new OrganizationBLL();
            IList <RandomExam> ExamList  = dal.GetOverdueNotEndRandomExam(orgid);

            foreach (RandomExam exam in ExamList)
            {
                exam.StationName = objOrgBll.GetOrganization(exam.OrgId).ShortName;
            }
            return(ExamList);
        }
Exemplo n.º 5
0
        public IList <Exam> GetExamByExamCategoryIDPath(string ExamCategoryIDPath, string ExamName, int CreateMode, string CreatePerson, int orgId)
        {
            OrganizationBLL objOrgBll = new OrganizationBLL();
            IList <Exam>    ExamList  = dal.GetExamByExamCategoryIDPath(ExamCategoryIDPath, ExamName, CreateMode, CreatePerson, orgId);

            foreach (Exam exam in ExamList)
            {
                exam.StationName = objOrgBll.GetOrganization(exam.OrgId).ShortName;
            }
            return(ExamList);
        }
Exemplo n.º 6
0
        public IList <Exam> GetExamsInfoDesktop(int orgID)
        {
            OrganizationBLL objOrgBll = new OrganizationBLL();
            IList <Exam>    objList   = dal.GetExamsInfoDesktop(orgID);

            foreach (Exam exam in objList)
            {
                exam.StationName = objOrgBll.GetOrganization(exam.OrgId).ShortName;
            }
            return(objList);
        }
Exemplo n.º 7
0
        /// <summary>
        /// 成绩查询(本地)
        /// </summary>
        /// <param name="ExamId"></param>
        /// <param name="OrganizationName"></param>
        /// <param name="strExamineeName"></param>
        /// <param name="dScoreLower"></param>
        /// <param name="dScoreUpper"></param>
        /// <param name="orgID"></param>
        /// <returns></returns>
        public IList <RandomExamResult> GetRandomExamResults(int ExamId, string OrganizationName, string workshopName, string strExamineeName, string strWorkNo, decimal dScoreLower,
                                                             decimal dScoreUpper, int orgID)
        {
            OrganizationBLL          objBll  = new OrganizationBLL();
            IList <RandomExamResult> objList = dal.GetRandomExamResults(ExamId, OrganizationName, workshopName, strExamineeName, strWorkNo, dScoreLower, dScoreUpper, orgID);

            //foreach (RandomExamResult result in objList)
            //{
            //    result.ExamOrgName = objBll.GetOrganization(result.OrganizationId).ShortName+"-"+result.ExamOrgName;
            //}
            return(objList);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 在站段连路局成绩查询记录
        /// </summary>
        /// <param name="ExamId"></param>
        /// <param name="OrganizationName"></param>
        /// <param name="strExamineeName"></param>
        /// <param name="dScoreLower"></param>
        /// <param name="dScoreUpper"></param>
        /// <param name="orgID"></param>
        /// <returns></returns>
        public IList <RandomExamResult> GetRandomExamResultsFromServer(int ExamId, string OrganizationName, string strExamineeName, decimal dScoreLower,
                                                                       decimal dScoreUpper, int orgID)
        {
            OrganizationBLL          objBll  = new OrganizationBLL();
            IList <RandomExamResult> objList = dal.GetRandomExamResultsFromServer(ExamId, OrganizationName, strExamineeName, dScoreLower, dScoreUpper, orgID);

            foreach (RandomExamResult result in objList)
            {
                result.ExamOrgName = objBll.GetOrganization(result.OrganizationId).ShortName;
            }
            return(objList);
        }
Exemplo n.º 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (PrjPub.CurrentLoginUser == null)
                {
                    Response.Redirect("/RailExamBao/Common/Error.aspx?error=Session过期请重新登录本系统!");
                    return;
                }

                string strKnowledgeID = Request.QueryString.Get("knowledgeId");
                if (strKnowledgeID != null && strKnowledgeID != string.Empty)
                {
                    hfKnowledgeID.Value = strKnowledgeID;
                    KnowledgeBLL             objBll = new KnowledgeBLL();
                    RailExam.Model.Knowledge obj    = objBll.GetKnowledge(Convert.ToInt32(strKnowledgeID));
                    txtKnowledgeName.Text      = txtKnowledgeName.Text + GetKnowledgeName("/" + obj.KnowledgeName, obj.ParentId);
                    ImgSelectKnowledge.Visible = false;
                }

                ArrayList objOrgList = new ArrayList();
                if (PrjPub.CurrentLoginUser.SuitRange == 0)
                {
                    OrganizationBLL orgBll = new OrganizationBLL();
                    txtPublishOrgName.Text = orgBll.GetOrganization(PrjPub.CurrentLoginUser.StationOrgID).ShortName;
                    hfPublishOrgID.Value   = PrjPub.CurrentLoginUser.StationOrgID.ToString();

                    IList <Organization> objOrganizationList =
                        orgBll.GetOrganizationsByWhereClause("ID_Path || '/' like '/1/" + PrjPub.CurrentLoginUser.StationOrgID + "/%' ");
                    foreach (Organization organization in objOrganizationList)
                    {
                        objOrgList.Add(organization.OrganizationId);
                    }
                }

                //txtPublishOrgName.Text = PrjPub.CurrentLoginUser.OrgName;
                //hfPublishOrgID.Value = PrjPub.CurrentLoginUser.OrgID.ToString();
                BindOrganizationTree(objOrgList);

                ArrayList objList = new ArrayList();
                if (!string.IsNullOrEmpty(Request.QueryString.Get("PostId")))
                {
                    objList.Add(Convert.ToInt32(Request.QueryString.Get("PostId")));
                }
                BindPostTree(objList);
            }
        }
Exemplo n.º 10
0
        private void BindOrganizationTree(ArrayList orgidAL)
        {
            OrganizationBLL      organizationBLL  = new OrganizationBLL();
            IList <Organization> organizationList = new List <Organization>();

            if (PrjPub.CurrentLoginUser.SuitRange == 1)
            {
                organizationList = organizationBLL.GetOrganizations();
            }
            else
            {
                organizationList =
                    organizationBLL.GetOrganizations(PrjPub.CurrentLoginUser.StationOrgID);
            }

            if (organizationList.Count > 0)
            {
                TreeViewNode tvn = null;

                foreach (Organization organization in organizationList)
                {
                    tvn              = new TreeViewNode();
                    tvn.ID           = organization.OrganizationId.ToString();
                    tvn.Value        = organization.OrganizationId.ToString();
                    tvn.Text         = organization.ShortName;
                    tvn.ToolTip      = organization.FullName;
                    tvn.ShowCheckBox = true;

                    if (orgidAL.Count > 0)
                    {
                        if (orgidAL.IndexOf(organization.OrganizationId) != -1)
                        {
                            tvn.Checked = true;
                        }
                    }

                    if (PrjPub.CurrentLoginUser.SuitRange == 1)
                    {
                        if (organization.ParentId == 0)
                        {
                            tvOrg.Nodes.Add(tvn);
                        }
                        else
                        {
                            try
                            {
                                tvOrg.FindNodeById(organization.ParentId.ToString()).Nodes.Add(tvn);
                            }
                            catch
                            {
                                tvOrg.Nodes.Clear();
                                SessionSet.PageMessage = "数据错误!";
                                return;
                            }
                        }
                    }
                    else
                    {
                        if (organization.ParentId == 1)
                        {
                            tvOrg.Nodes.Add(tvn);
                        }
                        else
                        {
                            try
                            {
                                tvOrg.FindNodeById(organization.ParentId.ToString()).Nodes.Add(tvn);
                            }
                            catch
                            {
                                tvOrg.Nodes.Clear();
                                SessionSet.PageMessage = "数据错误!";
                                return;
                            }
                        }
                    }
                }
            }

            tvOrg.DataBind();
            //tvOrg.ExpandAll();
            if (tvOrg.Nodes.Count > 0)
            {
                tvOrg.Nodes[0].Expanded = true;
            }
        }