using BLL;
using FineUIPro.Web.BaseInfo;
using FineUIPro.Web.DataShow;
using Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.common
{
    public partial class main_new1 : PageBase
    {
        protected string divProjectImg;
        protected string hjallNumber = "0";
        protected string hjfinishNumber = "0";
        protected string hjzgl = "0";
        /// 
        /// 公司级项目筛选
        /// 
        public string[] pids { get; set; }
        /// 
        /// 页面加载
        /// 
        /// 
        /// 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(CurrUser.CompanyProjectId))
                {
                    pids = CurrUser.CompanyProjectId.Split(',');
                }
                else
                {
                    //加载所有在建项目的数据
                    var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x => x.ProjectId).ToArray();
                    if (pidArray.Length > 0)
                    {
                        pids = pidArray;
                    }
                }
                ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false);
                if (this.drpProject.Items.Count > 0)
                {
                    this.drpProject.SelectedIndex = 0;
                }
                divProjectImg = "
