Exemplo n.º 1
0
 public List <T_OA_HOUSELIST> GetIssuanceHouseList(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return(issuanceBll.GetIssuanceHouseList(issuanceID));
     }
 }
Exemplo n.º 2
0
 public List <T_OA_DISTRIBUTEUSER> GetDistributeUserList(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return(issuanceBll.GetDistributeUserList(issuanceID));
     }
 }
Exemplo n.º 3
0
 public List <T_OA_HOUSEINFOISSUANCE> GetIssuanceListById(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return(issuanceBll.GetIssuanceListById(issuanceID));
     }
 }
Exemplo n.º 4
0
 public List <T_OA_HOUSEINFOISSUANCE> GetIssunaceForWebPart()
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         IQueryable <T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.GetIssuanceForWebPart();
         return(ent.Count() > 0 ? ent.ToList() : null);
     }
 }
Exemplo n.º 5
0
        public string UpdateIssuance(T_OA_HOUSEINFOISSUANCE issuanceObj, List <T_OA_HOUSELIST> houseListObj, List <T_OA_DISTRIBUTEUSER> distributeListObj, bool SubmitFlag)
        {
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                string returnStr = "";

                if (!issuanceBll.UpdateHouseInfoIssuance(issuanceObj, houseListObj, distributeListObj, SubmitFlag))
                {
                    returnStr = "修改数据失败";
                }
                return(returnStr);
            }
        }
Exemplo n.º 6
0
        public string AddIssuance(T_OA_HOUSEINFOISSUANCE issuanceObj, List <T_OA_HOUSELIST> houseListObj, List <T_OA_DISTRIBUTEUSER> distributeListObj)
        {
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                string returnStr = "";

                if (!issuanceBll.AddHouseInfoIssuance(issuanceObj, houseListObj, distributeListObj))
                {
                    returnStr = "添加数据失败";
                }
                return(returnStr);
            }
        }
Exemplo n.º 7
0
        public string DeleteIssuance(string[] issuanceID)
        {
            string returnStr = "";

            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                if (!issuanceBll.DeleteHouseInfoIssuance(issuanceID))
                {
                    returnStr = "删除数据失败";
                }
                return(returnStr);
            }
        }
Exemplo n.º 8
0
        public List <T_OA_HOUSEINFOISSUANCE> GetIssunaceListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            //IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount);
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                if (checkState != ((int)CheckStates.WaittingApproval).ToString())
                {
                    IQueryable <T_OA_HOUSEINFOISSUANCE> ent = null;
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID);
                    }

                    return(ent != null?ent.ToList() : null);
                }
                else
                {
                    FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "housingIssuance", loginUserInfo.companyID, loginUserInfo.userID);
                    if (flowList == null)
                    {
                        return(null);
                    }
                    List <V_FlowAPP> flowAppList = new List <V_FlowAPP>();
                    for (int i = 0; i < flowList.Length; i++)
                    {
                        V_FlowAPP App = new V_FlowAPP();
                        App.Guid         = flowList[i].FLOWRECORDDETAILID;
                        App.FormID       = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                        App.EditUserID   = flowList[i].EDITUSERID;
                        App.EditUserName = flowList[i].EDITUSERNAME;
                        flowAppList.Add(App);
                    }
                    checkState = ((int)CheckStates.Approving).ToString();
                    IQueryable <T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID);
                    return(ent.Count() > 0 ? ent.ToList() : null);
                    //return null;
                }
            }
        }
Exemplo n.º 9
0
 public List<T_OA_HOUSEINFOISSUANCE> GetIssunaceForWebPart()
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.GetIssuanceForWebPart();
         return ent.Count() > 0 ? ent.ToList() : null;
     }
 }
Exemplo n.º 10
0
 public string DeleteIssuance(string[] issuanceID)
 {
     string returnStr = "";
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         if (!issuanceBll.DeleteHouseInfoIssuance(issuanceID))
         {
             returnStr = "删除数据失败";
         }
         return returnStr;
     }
 }
Exemplo n.º 11
0
        public string UpdateIssuance(T_OA_HOUSEINFOISSUANCE issuanceObj, List<T_OA_HOUSELIST> houseListObj, List<T_OA_DISTRIBUTEUSER> distributeListObj,bool SubmitFlag)
        {
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                string returnStr = "";

                if (!issuanceBll.UpdateHouseInfoIssuance(issuanceObj, houseListObj, distributeListObj, SubmitFlag))
                {
                    returnStr = "修改数据失败";
                }
                return returnStr;
            }
        }
Exemplo n.º 12
0
        public string AddIssuance(T_OA_HOUSEINFOISSUANCE issuanceObj, List<T_OA_HOUSELIST> houseListObj, List<T_OA_DISTRIBUTEUSER> distributeListObj)
        {
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                string returnStr = "";

                if (!issuanceBll.AddHouseInfoIssuance(issuanceObj, houseListObj, distributeListObj))
                {
                    returnStr = "添加数据失败";
                }
                return returnStr;
            }
        }
Exemplo n.º 13
0
 public List<T_OA_DISTRIBUTEUSER> GetDistributeUserList(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return issuanceBll.GetDistributeUserList(issuanceID);
     }
 }
Exemplo n.º 14
0
 public List<T_OA_HOUSELIST> GetIssuanceHouseList(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return issuanceBll.GetIssuanceHouseList(issuanceID);
     }
 }
Exemplo n.º 15
0
 public List<T_OA_HOUSEINFO> GetIssuanceHouseInfoList(string issuanceID)
 {
     using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
     {
         return issuanceBll.GetIssuanceHouseInfoListById(issuanceID);
     }
 }
Exemplo n.º 16
0
        /// <summary>
        /// 根据传回的XML,添加房源信息发布
        /// </summary>
        /// <param name="xele"></param>
        private static string HouseinfoissuanceAdd(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_HOUSEINFOISSUANCE entity = new T_OA_HOUSEINFOISSUANCE();
                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 = ent.ToList()[0].T_OA_HOUSELIST;

                entity.ISSUANCEID = 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>();

                HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll();
                bool i = issuanceBll.AddHouseInfoIssuance(entity, hlist, distributeLists);
                if (i)
                {
                    return entity.ISSUANCEID;
                }
                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;
            }
        }
Exemplo n.º 17
0
        public List<T_OA_HOUSEINFOISSUANCE> GetIssunaceListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            //IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount);
            using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll())
            {
                if (checkState != ((int)CheckStates.WaittingApproval).ToString())
                {
                    IQueryable<T_OA_HOUSEINFOISSUANCE> ent = null;
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                    }

                    return ent !=null ? ent.ToList() : null;
                }
                else
                {
                    FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "housingIssuance", loginUserInfo.companyID, loginUserInfo.userID);
                    if (flowList == null)
                    {
                        return null;
                    }
                    List<V_FlowAPP> flowAppList = new List<V_FlowAPP>();
                    for (int i = 0; i < flowList.Length; i++)
                    {

                        V_FlowAPP App = new V_FlowAPP();
                        App.Guid = flowList[i].FLOWRECORDDETAILID;
                        App.FormID = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                        App.EditUserID = flowList[i].EDITUSERID;
                        App.EditUserName = flowList[i].EDITUSERNAME;
                        flowAppList.Add(App);
                    }
                    checkState = ((int)CheckStates.Approving).ToString();
                    IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                    return ent.Count() > 0 ? ent.ToList() : null;
                    //return null;
                }
            }
        }