Esempio n. 1
0
        public frmLeaveEncashment()
        {
            InitializeComponent();
            DALObject       = new LeaveEncashmentDAL();
            EmployeeDALObj  = new EmployeeDAL();
            LeaveTypeDALObj = new LeaveTypeDAL();
            HolidayDALObj   = new HolidayDAL();
            LocationDALObj  = new DAL.Settings.LocationDAL();
            LeaveEncashmentNoPrefixDALObj = new LeaveEncashmentNoPrefixDAL();

            FirstControl = lookupLeaveEncashmentNoPrefix;
        }
Esempio n. 2
0
        public Boolean Update(LeaveTypeENT entLeaveType)
        {
            LeaveTypeDAL dalLeaveType = new LeaveTypeDAL();

            if (dalLeaveType.Update(entLeaveType))
            {
                return(true);
            }
            else
            {
                Message = dalLeaveType.Message;
                return(false);
            }
        }
Esempio n. 3
0
        public Boolean Delete(SqlInt32 LeaveTypeID)
        {
            LeaveTypeDAL dalLeaveType = new LeaveTypeDAL();

            if (dalLeaveType.Delete(LeaveTypeID))
            {
                return(true);
            }
            else
            {
                Message = dalLeaveType.Message;
                return(false);
            }
        }
Esempio n. 4
0
 public frmLeaveType()
 {
     InitializeComponent();
     DALObject    = new LeaveTypeDAL();
     FirstControl = txtLeaveTypeName;
 }
Esempio n. 5
0
        public LeaveTypeENT SelectByPK(SqlInt32 LeaveTypeID)
        {
            LeaveTypeDAL dalLeaveType = new LeaveTypeDAL();

            return(dalLeaveType.SelectByPK(LeaveTypeID));
        }
Esempio n. 6
0
        public DataTable SelectForDropDownListByUserID(SqlInt32 UserID)
        {
            LeaveTypeDAL dalLeaveType = new LeaveTypeDAL();

            return(dalLeaveType.SelectForDropDownListByUserID(UserID));
        }
Esempio n. 7
0
        public DataTable SelectAll()
        {
            LeaveTypeDAL dalLeaveType = new LeaveTypeDAL();

            return(dalLeaveType.SelectAll());
        }