Exemple #1
0
        public int UpdateData(Ivs.Core.Interface.IDto updateDto)
        {
            SYS_UserDAO       _UserDAO = new SYS_UserDAO();
            SYS_UserDetailDTO dto      = (SYS_UserDetailDTO)updateDto;

            return(_UserDAO.UpdateData(dto));
        }
Exemple #2
0
        public int InsertData(Ivs.Core.Interface.IDto insertDto)
        {
            SYS_UserDAO       _UserDAO = new SYS_UserDAO();
            SYS_UserDetailDTO dto      = (SYS_UserDetailDTO)insertDto;

            return(_UserDAO.InsertData(dto));
        }
Exemple #3
0
        public int SearchData(Ivs.Core.Interface.IDto selectDto, out System.Data.DataTable dtResult)
        {
            SYS_UserDAO       _UserDAO = new SYS_UserDAO();
            SYS_UserDetailDTO dto      = (SYS_UserDetailDTO)selectDto;

            return(_UserDAO.SelectData(dto, out dtResult));
        }
Exemple #4
0
 //public int SearchData(out System.Data.DataTable dtResult)
 //{
 //    //SYS_GroupUserDAO dao = new SYS_GroupUserDAO();
 //    //return dao.SelectData(out dtResult);
 //}
 public int InsertData(Ivs.Core.Interface.IDto insertDto)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
        //private ishida_payrollEntities DBContext;
        #region IBl Members

        public int SearchData(Ivs.Core.Interface.IDto selectDto, out System.Data.DataTable dtResult)
        {
            //STGroupListDao dao = new STGroupListDao();
            //STGroupListDto dto = (STGroupListDto)selectDto;

            //System.Collections.Hashtable htCondition = new System.Collections.Hashtable();

            //if (!string.IsNullOrEmpty(dto.GroupName))
            //{
            //    htCondition.Add(MSGP00Key.GroupName, dto.GroupName);
            //}

            //return dao.SelectData(htCondition, out dtResult);

            //Create Group datatable
            dtResult = new DataTable();
            dtResult.Columns.Add("ID");
            dtResult.Columns.Add("GroupName");
            dtResult.Columns.Add("Note");

            //Group data - row 1
            DataRow drGroup = dtResult.NewRow();

            drGroup["ID"]        = "1";
            drGroup["GroupName"] = "Administrator";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            //Group data - row 2
            drGroup              = dtResult.NewRow();
            drGroup["ID"]        = "2";
            drGroup["GroupName"] = "Dev Group";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            //Group data - row 3
            drGroup              = dtResult.NewRow();
            drGroup["ID"]        = "3";
            drGroup["GroupName"] = "Test Group";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            //Group data - row 4
            drGroup              = dtResult.NewRow();
            drGroup["ID"]        = "4";
            drGroup["GroupName"] = "Manager";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            //Group data - row 5
            drGroup              = dtResult.NewRow();
            drGroup["ID"]        = "5";
            drGroup["GroupName"] = "Employee";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            //Group data - row 6
            drGroup              = dtResult.NewRow();
            drGroup["ID"]        = "6";
            drGroup["GroupName"] = "User";
            drGroup["Note"]      = "";
            dtResult.Rows.Add(drGroup);

            return(0);
        }
Exemple #6
0
 public int UpdateData(Ivs.Core.Interface.IDto updateDto)
 {
     throw new NotImplementedException();
 }