예제 #1
0
 public static void SaveInformation(SharePointListItem item)
 {
     var properties = item.GetType().GetProperties();
     foreach (var property in properties)
     {
         if (property.Name.ToUpper() != "INSTANCE")
         {
             cipitem[property.Name] = property.GetValue(item).ToString();
         }
     }
 }
예제 #2
0
        public static void SaveInformation(SharePointListItem item)
        {
            var properties = item.GetType().GetProperties();

            foreach (var property in properties)
            {
                if (property.Name.ToUpper() != "INSTANCE")
                {
                    cipitem[property.Name] = property.GetValue(item).ToString();
                }
            }
        }
        private void ProcessTotal(SharePointListItem sharepointListItem, ProjectCost projectCost, int[] months)
        {
            twelvtxtcavalue.Text = string.Format("{0:n0}", sharepointListItem.SavedOver12Months_CA);
            twelvtxtcrvalue.Text = string.Format("{0:n0}", sharepointListItem.SavedOver12Months_CR);
            twelvtxtrgvalue.Text = string.Format("{0:n0}", sharepointListItem.SavedOver12Months_RG);
            twelvtxtcivalue.Text = string.Format("{0:n0}", sharepointListItem.SavedOver12Months_CI);
            twelvtxttatalvalue.Text = string.Format("{0:n0}", sharepointListItem.SavedOver12Months_Total);

            yeartxtca.Text = string.Format("{0:n0}", sharepointListItem.SavedYearToDate_CA);
            yeartxtcr.Text = string.Format("{0:n0}", sharepointListItem.SavedYearToDate_CR);
            yeartxtrg.Text = string.Format("{0:n0}", sharepointListItem.SavedYearToDate_RG);
            yeartxtci.Text = string.Format("{0:n0}", sharepointListItem.SavedYearToDate_CI);
            yearlbltotalval.Text = string.Format("{0:n0}", sharepointListItem.SavedYearToDate_Total);

            esttxtca.Text = string.Format("{0:n0}", sharepointListItem.EstimatedSaving_CA);
            esttxtcr.Text = string.Format("{0:n0}", sharepointListItem.EstimatedSaving_CR);
            esttxtrg.Text = string.Format("{0:n0}", sharepointListItem.EstimatedSaving_RG);
            esttxtci.Text = string.Format("{0:n0}", sharepointListItem.EstimatedSaving_CI);
            estlbltotalval.Text = string.Format("{0:n0}", sharepointListItem.EstimatedSaving_Total);

            var targets = new[] { target1total, target2total, target3total, target4total, target5total, target6total, target7total, target8total, target9total, target10total, target11total, target12total };
            this.ProcessFooter(targets, months, projectCost.GetTargetTotal);

            var actuals = new[] { actual1total, actual2total, actual3total, actual4total, actual5total, actual6total, actual7total, actual8total, actual9total, actual10total, actual11total, actual12total };
            this.ProcessFooter(actuals, months, projectCost.GetActualTotal);
        }