自定义列表附件.分享点2010 [英] Custom list attachment. Share Point2010

查看:94
本文介绍了自定义列表附件.分享点2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是sharepoint的新手.

我们的目标是保存最终用户的职业详细信息并恢复到客户列表中.

我们保存了职业详细信息.但我们无法将重新使用权限附加到自定义列表附件.

我们为自定义列表生成了实体类.

我们有经理班和业务验证班.

从用户控件中,我们将EntityClass项及其值传递给验证类.

从那里,它调用busniess层将详细信息保存到列中.

至于简历,我们无法将文档附加到列表附件中.

请帮我. [电子邮件已删除]

从实体类中看不到附件的任何列值.

从用户控制的单击事件进行保存.
-------------------------------------------------

Hi,i am newbie for sharepoint.

our aim is to save end user career details and resume in to the customlist.

we saved the career details. but we cannot able to attach the reusme to the custom list attachment.

we generated entity class for custom list.

we have manager class and business validation class.

from user control we pass the EntityClass Item and its value to validation class.

from there it calls busniess layer to save the details in to column.

where as for resume we cannot attach the documents to list attachment.

please help me. [email removed]

from the entity class i don''t see any column value for attachment.

from user control on click event for save.
-------------------------------------------------

public bool SaveApplications()
       {


           //List<FertilVacancyApplicationsItem> lstpage = new List<FertilVacancyApplicationsItem>();
           FertilApplicantsValidation = new FertilApplicantsValidation();


           FertilVacancyApplicationsItem item = new FertilVacancyApplicationsItem();



           item.ApplicantName = txtName.Text.ToString().Trim();
           item.ApplicantEmail = txtEmail.Text.ToString().Trim();
           item.ApplicantContactNumber = txtContact.Text.ToString().Trim();
           item.ApplicationDate = DateTime.Now;
           item.VaccantidId.Add(int.Parse(VaccantID));


           FertilApplicantsValidation = new FertilApplicantsValidation();


           return FertilApplicantsValidation.SaveFertilApplicnats(URL, item);
       }





-----------------------
来自验证类





-----------------------
from Validation class

public bool SaveFertilApplicnats(string webUrl, FertilVacancyApplicationsItem item)
       {
           bool isSave = false;

           try
           {
               using (FertilVacancyManager manager = new FertilVacancyManager(webUrl))
               {
                   isSave = manager.saveFertilApplicantsData(item);

               }
           }
           catch (Exception ex)
           {
               Logger.Instance.Error("FertilVacancyValidation_getFertilApplicantsData", ex);
           }
           return isSave;
       }


----------------
来自经理班:


----------------
from Manager class:

public bool saveFertilApplicantsData(FertilVacancyApplicationsItem item)
     {

         try
         {

             using (ContextSwitch cSwitch = new ContextSwitch())
             {
                 m_ApplicantsdataContext = cSwitch.GetFertilApplicantsDataContext(m_webUrl);
                 m_ApplicantsdataContext.FertilVacancyApplications.InsertOnSubmit(item);

                 m_ApplicantsdataContext.SubmitChanges();
             }
         }
         catch (Exception ex)
         {
             Logger.Instance.Error("VacancyManager_getFertilApplicantsData", ex);
             return false;
         }
         return true;
     }

推荐答案



此链接将为您提供支持.

http://msdn.microsoft.com/zh-cn/library/lists.lists.addattachment(v=office.12).aspx
http://msdn.microsoft.com/zh-cn/library/microsoft.sharepoint.spattachmentcollection.aspx
Hi,

This links will support for you.

http://msdn.microsoft.com/en-us/library/lists.lists.addattachment(v=office.12).aspx
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spattachmentcollection.aspx


这篇关于自定义列表附件.分享点2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆