Ejemplo n.º 1
0
 public List <T_OA_HOUSEINFO> GetHouseInfoById(string houseID)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         return(houseBll.GetHouseInfoById(houseID));
     }
 }
Ejemplo n.º 2
0
 public List<V_HouseInfoTree> GetHouseInfoTree()
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         return houseBll.GetHouseInfoTree();
     }
 }
Ejemplo n.º 3
0
 public List <V_HouseInfoTree> GetHouseInfoTree()
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         return(houseBll.GetHouseInfoTree());
     }
 }
Ejemplo n.º 4
0
 public List<T_OA_HOUSEINFO> GetHouseInfoById(string houseID)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         return houseBll.GetHouseInfoById(houseID);
     }
 }
Ejemplo n.º 5
0
 public List <T_OA_HOUSEINFO> GetHouseInfoListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable <T_OA_HOUSEINFO> ent = houseBll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID, "T_OA_HOUSEINFO");
         return(ent.Count() > 0 ? ent.ToList() : null);
     }
 }
Ejemplo n.º 6
0
 public List <V_SystemNotice> GetHouseIssueAndNoticeInfos(string userID, List <string> postIDs, List <string> companyIDs, List <string> departmentIDs)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable <V_SystemNotice> ent = houseBll.GetHouseAndNoticeInfo(userID, postIDs, companyIDs, departmentIDs);
         return(ent != null?ent.ToList() : null);
     }
 }
Ejemplo n.º 7
0
 public List<T_OA_HOUSEINFO> GetHouseInfoListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable<T_OA_HOUSEINFO> ent = houseBll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userID, "T_OA_HOUSEINFO");
         return ent.Count() > 0 ? ent.ToList() : null;
     }
 }
Ejemplo n.º 8
0
 public T_OA_SENDDOC GetSysNoticeByFormidToMobile(string userID, List <string> postIDs, List <string> companyIDs, List <string> departmentIDs, string formid, ref V_SystemNotice Preview, ref V_SystemNotice Next)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         T_OA_SENDDOC ent = houseBll.GetHouseAndNoticeInfoByPriveAndNext(userID, postIDs, companyIDs, departmentIDs, formid, ref Preview, ref Next);
         return(ent);
     }
 }
Ejemplo n.º 9
0
 public List <V_HouseHirer> GetHouseHirerListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable <V_HouseHirer> ent = houseBll.HirerQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount);
         return(ent.Count() > 0 ? ent.ToList() : null);
     }
 }
Ejemplo n.º 10
0
 public List <V_SystemNotice> GetHouseIssueAndNoticeInfosToMobile(int pageIndex, int pageSize, ref int pageCount, ref int DataCount, string userID, List <string> postIDs, List <string> companyIDs, List <string> departmentIDs
                                                                  )
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable <V_SystemNotice> ent = houseBll.GetHouseAndNoticeInfoToMobile(pageIndex, pageSize, ref pageCount, ref DataCount, userID, postIDs, companyIDs, departmentIDs
                                                                                  , string.Empty, null, string.Empty);
         return(ent != null?ent.ToList() : null);
     }
 }
Ejemplo n.º 11
0
        public string DeleteHouse(string[] houseID, ref string errorMsg)
        {
            using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
            {
                string returnStr = "";

                if (!houseBll.DeleteHouse(houseID, ref errorMsg))
                {
                    returnStr = "删除数据失败";
                }
                return(returnStr);
            }
        }
Ejemplo n.º 12
0
        public string UpdateHouse(T_OA_HOUSEINFO houseObj)
        {
            using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
            {
                string returnStr = "";

                if (!houseBll.UpdateHouse(houseObj))
                {
                    returnStr = "更新数据失败";
                }
                return(returnStr);
            }
        }
Ejemplo n.º 13
0
 public List <V_SystemNotice> RefreshSendDocData1(string employeeid, int pageIndex
                                                  , int pageSize, ref int pageCount, ref int DataCount, List <string> postIDs
                                                  , List <string> companyIDs, List <string> departmentIDs
                                                  , ref bool NeedGetNewData, bool NeedAllData
                                                  , string filterString, List <object> paras, string Doctitle)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         List <V_SystemNotice> ent = houseBll.RefreshSendDocData(employeeid, pageIndex, pageSize, ref pageCount
                                                                 , ref DataCount, postIDs, companyIDs, departmentIDs, ref NeedGetNewData, NeedAllData
                                                                 , filterString, paras, Doctitle);
         return(ent != null ? ent : null);
     }
 }
Ejemplo n.º 14
0
 public string AddHouse(T_OA_HOUSEINFO houseObj)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         string returnStr = "";
         if (!houseBll.IsExist(houseObj))
         {
             if (!houseBll.AddHouse(houseObj))
             {
                 returnStr = "添加数据失败";
             }
         }
         else
         {
             returnStr = "此房源已经存在,添加数据失败!";
         }
         return(returnStr);
     }
 }
Ejemplo n.º 15
0
 public List<V_HouseHirer> GetHouseHirerListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable<V_HouseHirer> ent = houseBll.HirerQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount);
         return ent.Count() > 0 ? ent.ToList() : null;
     }
 }
Ejemplo n.º 16
0
 public List<V_SystemNotice> RefreshSendDocData1(string employeeid, int pageIndex
     , int pageSize, ref int pageCount, ref int DataCount, List<string> postIDs
     , List<string> companyIDs, List<string> departmentIDs
     , ref bool NeedGetNewData, bool NeedAllData
     , string filterString, List<object> paras, string Doctitle)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {                
         List<V_SystemNotice> ent = houseBll.RefreshSendDocData(employeeid, pageIndex, pageSize, ref pageCount
             , ref DataCount, postIDs, companyIDs, departmentIDs, ref NeedGetNewData, NeedAllData
             , filterString, paras, Doctitle);
         return ent != null ? ent : null;
     }
 }
Ejemplo n.º 17
0
 public List<V_SystemNotice> GetHouseIssueAndNoticeInfos(string userID, List<string> postIDs, List<string> companyIDs, List<string> departmentIDs)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         IQueryable<V_SystemNotice> ent = houseBll.GetHouseAndNoticeInfo(userID, postIDs, companyIDs, departmentIDs);
         return ent != null ? ent.ToList() : null;
     }
     
 }
Ejemplo n.º 18
0
        public List<V_SystemNotice> GetHouseIssueAndNoticeInfosToMobile(int pageIndex, int pageSize,ref int pageCount,ref int DataCount,string userID, List<string> postIDs, List<string> companyIDs, List<string> departmentIDs
            )
        {
            using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
            {
                IQueryable<V_SystemNotice> ent = houseBll.GetHouseAndNoticeInfoToMobile(pageIndex,pageSize, ref pageCount, ref DataCount,userID, postIDs, companyIDs, departmentIDs
                ,string.Empty,null,string.Empty);
                return ent != null ? ent.ToList() : null;
                
            }

        }
Ejemplo n.º 19
0
 public T_OA_SENDDOC GetSysNoticeByFormidToMobile(string userID, List<string> postIDs, List<string> companyIDs, List<string> departmentIDs, string formid, ref V_SystemNotice Preview, ref V_SystemNotice Next)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         T_OA_SENDDOC ent = houseBll.GetHouseAndNoticeInfoByPriveAndNext(userID,postIDs,companyIDs,departmentIDs,formid,ref Preview,ref Next);
         return ent ;
     }
 }
Ejemplo n.º 20
0
 public string AddHouse(T_OA_HOUSEINFO houseObj)
 {
     using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
     {
         string returnStr = "";
         if (!houseBll.IsExist(houseObj))
         {
             if (!houseBll.AddHouse(houseObj))
             {
                 returnStr = "添加数据失败";
             }
         }
         else
         {
             returnStr = "此房源已经存在,添加数据失败!";
         }
         return returnStr;
     }
 }
Ejemplo n.º 21
0
        public string DeleteHouse(string[] houseID, ref string errorMsg)
        {
            using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
            {
                string returnStr = "";

                if (!houseBll.DeleteHouse(houseID, ref errorMsg))
                {
                    returnStr = "删除数据失败";
                }
                return returnStr;
            }
        }
Ejemplo n.º 22
0
        /// <summary>
        /// 根据传回的XML,添加租房申请
        /// </summary>
        /// <param name="xele"></param>
        private static string HireappAdd(IEnumerable<XElement> eGFunc)
        {
            try
            {
                if (eGFunc.Count() == 0)
                {
                    return "";
                }
                string strEmployeeID = string.Empty;
                string strOwnerID = string.Empty;
                string strOwnerPostID = string.Empty;
                string strOwnerDepartmentID = string.Empty;
                string strOwnerCompanyID = string.Empty;

                foreach (var q in eGFunc)
                {
                    string strName = q.Attribute("Name").Value;
                    switch (strName)
                    {
                        case "CREATEUSERID":
                            strEmployeeID = q.Attribute("Value").Value;
                            break;
                        case "OWNERID":
                            strOwnerID = q.Attribute("Value").Value;
                            break;
                        case "OWNERPOSTID":
                            strOwnerPostID = q.Attribute("Value").Value;
                            break;
                        case "OWNERDEPARTMENTID":
                            strOwnerDepartmentID = q.Attribute("Value").Value;
                            break;
                        case "OWNERCOMPANYID":
                            strOwnerCompanyID = q.Attribute("Value").Value;
                            break;
                    }
                }

                string employeeid = strEmployeeID.Replace("{", "").Replace("}", "");

                T_OA_HIREAPP entity = new T_OA_HIREAPP();
                HouseInfoManagerBll houseBll = new HouseInfoManagerBll();
                int pageCount = 1;
                List<T_OA_HOUSEINFO> ent = houseBll.QueryWithPaging(1, 1, string.Empty, string.Empty, null, ref  pageCount, strEmployeeID, "T_OA_HOUSEINFO").ToList();
                List<T_OA_HOUSELIST> hlist = ent[0].T_OA_HOUSELIST.ToList();
                entity.T_OA_HOUSELIST = hlist[0];

                entity.HIREAPPID = Guid.NewGuid().ToString();
                entity.CREATEDATE = DateTime.Now;
                entity.OWNERID = strOwnerID;
                entity.OWNERPOSTID = strOwnerPostID;
                entity.OWNERDEPARTMENTID = strOwnerDepartmentID;
                entity.OWNERCOMPANYID = strOwnerCompanyID;
                entity.CREATEUSERID = strOwnerID;
                entity.CREATEPOSTID = strOwnerPostID;
                entity.CREATEDEPARTMENTID = strOwnerDepartmentID;
                entity.CREATECOMPANYID = strOwnerCompanyID;

                List<T_OA_DISTRIBUTEUSER> distributeLists = new List<T_OA_DISTRIBUTEUSER>();

                HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll();
                if (!houseHireAppBll.IsHired(entity.T_OA_HOUSELIST, entity.OWNERID))
                {
                    houseHireAppBll.AddHireApp(entity);
                    return entity.HIREAPPID;
                }
                else
                {
                    string err = "Error";
                    return err;
                }
            }
            catch (Exception e)
            {
                string abc = "<OA>Message=[" + e.Message + "]" + "<OA>Source=[" + e.Source + "]<OA>StackTrace=[" + e.StackTrace + "]<OA>TargetSite=[" + e.TargetSite + "]";
                Tracer.Debug(abc);
                return abc;
            }
        }
Ejemplo n.º 23
0
        public string UpdateHouse(T_OA_HOUSEINFO houseObj)
        {
            using (HouseInfoManagerBll houseBll = new HouseInfoManagerBll())
            {
                string returnStr = "";

                if (!houseBll.UpdateHouse(houseObj))
                {
                    returnStr = "更新数据失败";
                }
                return returnStr;
            }
        }