Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="company_Code"></param>
        /// <param name="dcrActivityLockModel"></param>
        /// <returns></returns>
        public int InsertActivityLock(string company_Code, List <DCRActivityLockModel> dcrActivityLockModel)
        {
            _objdalDCRLock = new DALDCRLock();
            int result = _objdalDCRLock.InsertDCRActivityLock(company_Code, dcrActivityLockModel);

            return(result);
        }
Example #2
0
        /// <summary>
        /// Retrieve the activity locked users.
        /// </summary>
        /// <param name="company_Code"></param>
        /// <returns></returns>
        public List <UserModel> GetAcivityLockedUsers(string company_Code)
        {
            _objdalDCRLock = new DALDCRLock();
            List <UserModel> activityLockUsersList = _objdalDCRLock.GetActivityLockUsers(company_Code);

            return(activityLockUsersList);
        }
Example #3
0
        /// <summary>
        /// Retrieve the acivity locks list from DAL.
        /// </summary>
        /// <param name="company_Code"></param>
        /// <param name="user_Code"></param>
        /// <returns></returns>
        private List <DCRActivityLockModel> GetDCRActivityLockslist(string company_Code, string user_Code)
        {
            _objdalDCRLock = new DALDCRLock();
            List <DCRActivityLockModel> lstDCRActivityLockModel = _objdalDCRLock.GetActivityLocksForSingleUser(company_Code, user_Code);

            return(lstDCRActivityLockModel);
        }
Example #4
0
        public string ReleaseActivityLock(string company_Code, string userCode, string dcrDetails, string releasedBy)
        {
            _objdalDCRLock = new DALDCRLock();
            IEnumerable <DCRActivityLockModel> IDCRDetails = (IEnumerable <DCRActivityLockModel>)JsonConvert.DeserializeObject(dcrDetails, typeof(List <DCRActivityLockModel>));

            string result = _objdalDCRLock.ReleaseActivityLock(company_Code, userCode, releasedBy, IDCRDetails);

            return(result);
        }
Example #5
0
 public List <MVCModels.HiDoctor_Master.UserModel> EmployeeDetails(string companycode, string user_Code)
 {
     _objdalDCRLock = new DALDCRLock();
     return(_objdalDCRLock.EmployeeDetails(companycode, user_Code));
 }
Example #6
0
 public bool InsertDCRManualLock(string company_Code, string lock_User_Codes, string LockDateFrom, string LockDateTo, string user_Code, string lockReason)
 {
     _objdalDCRLock = new DALDCRLock();
     return(_objdalDCRLock.InsertDCRManualLock(company_Code, lock_User_Codes, LockDateFrom, LockDateTo, user_Code, lockReason));
 }