Example #1
0
        /// <summary>
        /// Kiểm tra xem có bị trùng mã hay không
        /// </summary>
        /// <param name="projectID">ID project</param>
        /// <param name="projectCode">Mã project</param>
        /// <param name="editMode">Hành động trên form</param>
        /// <returns>true: Tồn tại, ngược lại chưa</returns>
        /// Create by: dvthang:29.01.2018
        public bool CheckExistProject(Guid?projectID, string projectCode, Library.Enummation.EditMode editMode)
        {
            bool isValid = false;

            isValid = Convert.ToBoolean(this.ExecuteScalar("dbo.Proc_CheckExistProject", projectID,
                                                           projectCode, editMode));
            return(isValid);
        }
Example #2
0
        /// <summary>
        /// Lay danh sach task cua de tai
        /// </summary>
        /// <param name="masterID">ID cuar project</param>
        /// <param name="editMode">Trang thai cua form</param>
        /// <returns>Danh sacsh Task</returns>
        /// Create by: dvthang:11.02.2018
        public List <ProjectTask> GetProjectTaskAllByProjectAndEditMode(Guid?masterID, Guid?projectTaskID, Library.Enummation.EditMode editMode)
        {
            List <ProjectTask> lstProjectTask = new List <ProjectTask>();

            //Lấy giá trị về
            lstProjectTask = this.ExecuteReader <ProjectTask>("[dbo].[Proc_SelectProjectTaskAllByProjectAndEditMode]", editMode, masterID, projectTaskID);
            //Trả giá trị về
            return(lstProjectTask);
        }