Пример #1
0
 public PMS06001DetailViewModel()
 {
     PROJECT_INFO   = new ProjectInfoPlus();
     TIME_UNIT_LIST = new List <SelectListItem> {
         new SelectListItem {
             Text = "時間", Value = "1"
         },
         new SelectListItem {
             Text = "人日", Value = "2", Selected = true
         },
         new SelectListItem {
             Text = "人月", Value = "3"
         }
     };
 }
Пример #2
0
        /// <summary>
        ///  Edit a project info
        /// </summary>
        /// <param name="data">Project info</param>
        /// <param name="phaseList">Target phase list</param>
        /// <param name="targetCategoryList">Target category list</param>
        /// <param name="outsourcerList">Outsourcer list</param>
        /// <param name="subcontractorList">Subcontractor list</param>
        /// <param name="paymentDetailList">Payment detail list</param>
        /// <param name="overheadCostList">Overhead cost list</param>
        /// <param name="overheadCostDetailList">Overhead cost detail list</param>
        /// <param name="memberAssignmentList">Member assignment list</param>
        /// <param name="memberAssignmentDetailList">Member assignment detail list</param>
        /// <param name="progressHistoryList">Progress history list</param>
        /// <param name="fileList">Attach file list</param>
        /// <param name="allowRegistHistory">Allow regist history</param>
        /// <param name="projectID">Project ID</param>
        /// <param name="error">Error message</param>
        /// <returns>True/False</returns>
        public bool EditProjectInfo(ProjectInfoPlus data,
                                    IList <PhasePlus> phaseList,
                                    IList <TargetCategoryPlus> targetCategoryList,
                                    IList <SalesPaymentPlus> outsourcerList,
                                    IList <SalesPaymentPlus> subcontractorList,
                                    IList <SalesPaymentDetailPlus> paymentDetailList,
                                    IList <OverheadCostPlus> overheadCostList,
                                    IList <OverheadCostDetailPlus> overheadCostDetailList,
                                    IList <MemberAssignmentPlus> memberAssignmentList,
                                    IList <MemberAssignmentDetailPlus> memberAssignmentDetailList,
                                    IList <ProgressHistoryPlus> progressHistoryList,
                                    IList <ProjectAttachFilePlus> fileList,
                                    bool allowRegistHistory,
                                    out int projectID,
                                    out string error)
        {
            var res = false;

            using (var transaction = new TransactionScope())
            {
                res = this._repository.EditProjectInfo(
                    data,
                    phaseList,
                    targetCategoryList,
                    outsourcerList,
                    subcontractorList,
                    paymentDetailList,
                    overheadCostList,
                    overheadCostDetailList,
                    memberAssignmentList,
                    memberAssignmentDetailList,
                    progressHistoryList,
                    fileList,
                    allowRegistHistory,
                    out projectID,
                    out error);

                if (res)
                {
                    transaction.Complete();
                }
            }

            return(res);
        }
Пример #3
0
 public PMS06001EditViewModel()
 {
     PROJECT_INFO    = new ProjectInfoPlus();
     OUTSOURCER_LIST = new List <SalesPaymentPlus>();
 }