protected void btnOL_Click(object sender, EventArgs e)
 {
     //RepeaterFiles.DataSource = UCDataList;//MossObject.Xml2FuJianList(txtFJXML.Value);
     RepeaterFiles.DataSource = MossObject.Xml2FuJianList(txtFJXML.Value);
     RepeaterFiles.DataBind();
     RunScript();
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //进度条
                inlineProgressBar.AddTrigger(btnUpload);

                //首次加载
                if (!IsPostBack)
                {
                    //Response.Expires = -1;
                    //Response.ExpiresAbsolute = DateTime.Now;
                    //Response.CacheControl = "no-cache";

                    //设置控件状态
                    if (UCIsAgain == "")
                    {
                        if (!UCIsEditable)
                        {
                            tbUpload.Visible  = false;
                            divUpload.Visible = false;
                            btnOL.Visible     = false;
                        }
                    }

                    #region 接收值

                    //初始化赋值
                    if (Session["附件ListTemp"] != null) //从用户控件接收过来
                    {
                        UCDataList     = MossObject.Xml2FuJianList((String)Session["附件ListTemp"]);
                        txtFJXML.Value = Session["附件ListTemp"].ToString();
                        Session.Remove("附件ListTemp"); //移除Session
                    }
                    #endregion

                    multiFile.StorageConfig["tempDirectory"] = Path.Combine("App_Data", "file1temp");


                    //zhouli 处理历史附件
                    if (UCDataList.Count > 0 && UCWorkItemID != "" && UCIsEditable)
                    {
                        MossObject mossObject = new MossObject();
                        UCDataList = mossObject.GetNewListFuJian(UCProcessType, UCWorkItemID, UCDataList);
                    }
                    RepeaterFiles.DataSource = UCDataList;
                    RepeaterFiles.DataBind();

                    #region 在线编辑设置
                    //在线编辑设置
                    //第一个是webservice地址 第二个是本地路径地址 第三个moss server web地址 第四个当前用户名
                    txtServicePath.Value = OAConfig.GetConfig("MOSS认证", "MossServiceUrl") + @",C:\\LocalTemp," + OAConfig.GetConfig("MOSS认证", "ServerWeb") + "," + CurrentUserInfo.DisplayName + ",";
                    if (!UCIsEditable)
                    {
                        Panel1.Visible = false;
                    }
                    else
                    {
                        btnOL.Attributes.Add("onClick", String.Format("AttachmentWork('{0}','{1}');", UCControlID, txtServicePath.ClientID));
                    }
                    #endregion

                    RunScript();
                }
            }
            catch (Exception ex)
            {
                JScript.ShowMsgBox(Page, MsgType.VbExclamation, ex.Message);
            }
        }