public void AuthCheck(M_Plat_Pro model)
        {
            M_User_Plat upMod = B_User_Plat.GetLogin();

            if (model.UserID == upMod.UserID || model.LeaderIDS.Contains("," + upMod.UserID + ","))
            {
            }
            else if (model.ParterIDS.Contains("," + upMod.UserID + ","))
            {
                Edit_Btn.Visible  = false;
                StartDate.Enabled = false;
                EndDate.Enabled   = false;
                Describe.Enabled  = false;
            }
            else
            {
                function.WriteErrMsg("你并非该组成员,无权访问该项目");
            }
        }
        private M_Plat_Pro FillModel()
        {
            M_Plat_Pro model = new M_Plat_Pro();

            model           = proBll.SelReturnModel(DetailID);
            model.StartDate = Convert.ToDateTime(StartDate.Text);
            model.EndDate   = Convert.ToDateTime(EndDate.Text);
            model.Name      = Name.Text;
            model.LeaderIDS = LeaderIDS_Hid.Value;
            model.ParterIDS = ParterIDS_Hid.Value;
            model.IsOpen    = Convert.ToInt32(IsOpen_Rad.SelectedValue);
            model.Desc      = Describe.Text;
            model.Status    = Convert.ToInt32(IsStatues.SelectedValue);
            if (!string.IsNullOrEmpty(Attach_Hid.Value))
            {
                model.Attach += Attach_Hid.Value + ",";
            }
            return(model);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         proMod = proBll.SelReturnModel(DetailID);
         AuthCheck(proMod);
         Name.Text = proMod.Name;
         IsStatues.SelectedValue  = proMod.Status.ToString();
         StartDate.Text           = proMod.StartDate.ToString("yyyy/MM/dd");;
         EndDate.Text             = proMod.EndDate.ToString("yyyy/MM/dd");
         CUser_T.Text             = upBll.SelInfoByIDS(proMod.UserID.ToString());//需替换为头像与真名可切换显示的
         LeaderIDS_L.Text         = upBll.SelInfoByIDS(proMod.LeaderIDS.ToString());
         ParterIDS_L.Text         = upBll.SelInfoByIDS(proMod.ParterIDS.ToString());
         LeaderIDS_Hid.Value      = proMod.LeaderIDS;
         ParterIDS_Hid.Value      = proMod.ParterIDS;
         Describe.Text            = proMod.Desc;
         IsOpen_Rad.SelectedValue = proMod.IsOpen.ToString();
         ShowTaskFile();
     }
 }