コード例 #1
0
        public JsonResult EmployeeAccept(string employeeID, string AcceptOrRejectDate, string officeOrderNo, string joiningDate, string reasonOfLateJoining, string transferSeqNo, string transferFromLocation, string transferToLocation)
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

            try
            {
                Hrm_EmployeeTransfer objEmployeeTransfer = new Hrm_EmployeeTransfer();

                objEmployeeTransfer.TransferFromLocation = transferFromLocation;
                objEmployeeTransfer.EmployeeID           = employeeID;
                objEmployeeTransfer.TransferDate         = Convert.ToDateTime(Helper.DateFormatMMDDYYYY(AcceptOrRejectDate));
                objEmployeeTransfer.TransferToLocation   = transferToLocation;
                objEmployeeTransfer.NoteForTransfer      = string.Empty;
                objEmployeeTransfer.CreatedBy            = objLoginHelper.LogInID;
                objEmployeeTransfer.TransferSeqNo        = Convert.ToByte(transferSeqNo);

                hrmsData.EmployeeAcceptOrReject(objEmployeeTransfer, "ACCEPT", reasonOfLateJoining);
                return(new JsonResult {
                    Data = ExceptionHelper.ExceptionMessage("Employee Accept" + Helper.SuccessMessage)
                });
            }
            catch (Exception ex)
            {
                return(new JsonResult {
                    Data = ExceptionHelper.ExceptionMessage(ex)
                });
            }
        }