Beispiel #1
0
 [OperationContract]//删除代理设置
 public bool DeleteAgentDataSet(string[] AgentDataSetId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         return(aasbll.DeleteAgentDateSet(AgentDataSetId));
     }
 }
Beispiel #2
0
 private bool IsExistAgent(string modelCode, string companyId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         return(aasbll.IsExistAgentDateSet(modelCode, companyId));
     }
 }
Beispiel #3
0
 public T_OA_AGENTDATESET GetAgentDataSetBysId(string AgentDataSetId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         T_OA_AGENTDATESET AgentDataSetById = aasbll.GetAgentDataSetBysId(AgentDataSetId);
         return(AgentDataSetById == null ? null : AgentDataSetById);
     }
 }
Beispiel #4
0
        public List <T_OA_AGENTDATESET> GetAgentDataSetListById(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
        {
            using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
            {
                List <T_OA_AGENTDATESET> AgentSetList = aasbll.GetAgentDateSetInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID);

                return(AgentSetList != null?AgentSetList.ToList() : null);
            }
        }
Beispiel #5
0
 [OperationContract]//更新代理设置
 public string UpdateAgentDataSet(T_OA_AGENTDATESET AgentSet)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         string returnStr = "";
         if (!aasbll.UpdateAgentDateSet(AgentSet))
         {
             returnStr = "更新数据失败!";
         }
         return(returnStr);
     }
 }
Beispiel #6
0
 [OperationContract]//添加代理设置信息
 public string AgentDataSetAdd(T_OA_AGENTDATESET AgentDataSet)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         string returnStr = "";
         if (!aasbll.IsExistAgentDateSet(AgentDataSet.MODELCODE, AgentDataSet.OWNERCOMPANYID))
         {
             if (!aasbll.AgentDateSetAdd(AgentDataSet))
             {
                 returnStr = "添加数据失败";
             }
         }
         else
         {
             returnStr = "该数据已经存在,添加失败";
         }
         return(returnStr);
     }
 }
Beispiel #7
0
 [OperationContract]//添加代理设置信息
 public string AgentDataSetAdd(T_OA_AGENTDATESET AgentDataSet)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         string returnStr = "";
         if (!aasbll.IsExistAgentDateSet(AgentDataSet.MODELCODE, AgentDataSet.OWNERCOMPANYID))
         {
             if (!aasbll.AgentDateSetAdd(AgentDataSet))
             {
                 returnStr = "添加数据失败";
             }
         }
         else
         {
             returnStr = "该数据已经存在,添加失败";
         }
         return returnStr;
     }
 }
Beispiel #8
0
 public T_OA_AGENTDATESET GetAgentDataSetBysId(string AgentDataSetId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         T_OA_AGENTDATESET AgentDataSetById = aasbll.GetAgentDataSetBysId(AgentDataSetId);
         return AgentDataSetById == null ? null : AgentDataSetById;
     }
 }
Beispiel #9
0
        public List<T_OA_AGENTDATESET> GetAgentDataSetListById(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
        {
            using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
            {
                List<T_OA_AGENTDATESET> AgentSetList = aasbll.GetAgentDateSetInfo(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID);

                return AgentSetList != null ? AgentSetList.ToList() : null;
            }
        }
Beispiel #10
0
 [OperationContract]//更新代理设置
 public string UpdateAgentDataSet(T_OA_AGENTDATESET AgentSet)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         string returnStr = "";
         if (!aasbll.UpdateAgentDateSet(AgentSet))
         {
             returnStr = "更新数据失败!";
         }
         return returnStr;
     }
 }
Beispiel #11
0
 [OperationContract]//删除代理设置
 public bool DeleteAgentDataSet(string[] AgentDataSetId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         return aasbll.DeleteAgentDateSet(AgentDataSetId);
     }
 }
Beispiel #12
0
 private bool IsExistAgent(string modelCode, string companyId)
 {
     using (AgentAgingSetBLL aasbll = new AgentAgingSetBLL())
     {
         return aasbll.IsExistAgentDateSet(modelCode, companyId);
     }
 }