Ejemplo n.º 1
0
 [OperationContract]//获取所有类型名
 public List <T_OA_CONTRACTTYPE> GetContractTypeNameInfosToCombox()
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return(cdb.GetContractTypeNameInfos());
     }
 }
Ejemplo n.º 2
0
 [OperationContract]//删除类型信息
 public bool DeleteContraType(string[] contraTypeID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return cdb.DeleteContraType(contraTypeID);
     }
 }
Ejemplo n.º 3
0
 [OperationContract]//根据条件查询合同类型信息
 private bool IsExistContractType(string ContractType, string ContractTypeID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return(cdb.IsExistContractType(ContractType, ContractTypeID));
     }
 }
Ejemplo n.º 4
0
 [OperationContract]//根据条件查询合同类型信息
 private bool IsExistContractType(string ContractType, string ContractTypeID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return cdb.IsExistContractType(ContractType, ContractTypeID);
     }
 }
Ejemplo n.º 5
0
 [OperationContract]//删除类型信息
 public bool DeleteContraType(string[] contraTypeID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return(cdb.DeleteContraType(contraTypeID));
     }
 }
Ejemplo n.º 6
0
 [OperationContract]//根据类型ID获取类型信息
 public T_OA_CONTRACTTYPE GetContractTypeById(string contractID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         T_OA_CONTRACTTYPE MyContract = cdb.GetContractTypeById(contractID);
         return(MyContract == null ? null : MyContract);
     }
 }
Ejemplo n.º 7
0
 [OperationContract]//根据类型ID获取类型信息
 public T_OA_CONTRACTTYPE GetContractTypeById(string contractID)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         T_OA_CONTRACTTYPE MyContract = cdb.GetContractTypeById(contractID);
         return MyContract == null ? null : MyContract;
     }
 }
Ejemplo n.º 8
0
 [OperationContract]//获取某合同类型的所有模板名称
 public List <T_OA_CONTRACTTYPE> GetContractTypeTemplateNameInfosByContractType(string StrContractType)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List <T_OA_CONTRACTTYPE> TypeTemplateList = cdb.GetContractTemplateNameInfosByContractType(StrContractType);
         if (TypeTemplateList == null)
         {
             return(null);
         }
         else
         {
             return(TypeTemplateList);
         }
     }
 }
Ejemplo n.º 9
0
 [OperationContract]//获取所有信息
 public List<T_OA_CONTRACTTYPE> GetContractTypeInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List<T_OA_CONTRACTTYPE> TypeList = cdb.GetInquiryContractType(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID);
         if (TypeList == null)
         {
             return null;
         }
         else
         {
             return TypeList.ToList();
         }
     }
 }
Ejemplo n.º 10
0
 [OperationContract]//获取所有信息
 public List <T_OA_CONTRACTTYPE> GetContractTypeInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List <T_OA_CONTRACTTYPE> TypeList = cdb.GetInquiryContractType(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID);
         if (TypeList == null)
         {
             return(null);
         }
         else
         {
             return(TypeList.ToList());
         }
     }
 }
Ejemplo n.º 11
0
 public List <V_ContractType> GetContractTypeRoomInfosListBySearch(string StrContractTypeName, string StrID, string strContractLevel)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List <V_ContractType> ContractTypeTypeList = cdb.GetContractTypeRoomInfosListBySearch(StrContractTypeName, StrID, strContractLevel);
         if (ContractTypeTypeList == null)
         {
             return(null);
         }
         else
         {
             return(ContractTypeTypeList.ToList());
         }
     }
 }
Ejemplo n.º 12
0
 [OperationContract]//更新类型信息
 public string UpdateContraType(T_OA_CONTRACTTYPE contraTypeInfo)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         string returnStr = "";
         if (!this.IsExistContractType(contraTypeInfo.CONTRACTTYPE, contraTypeInfo.CONTRACTLEVEL))
         {
             if (!cdb.UpdateContraType(contraTypeInfo))
             {
                 returnStr = "更新数据失败!";
             }
         }
         else
         {
             returnStr = "合同类型信息已经存在,更新数据失败";
         }
         return returnStr;
     }
 }
Ejemplo n.º 13
0
 [OperationContract]//添加合同类型信息
 public string ContractTypeAdd(T_OA_CONTRACTTYPE contractType)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         string returnStr = "";
         if (!this.IsExistContractType(contractType.CONTRACTTYPE, contractType.CONTRACTLEVEL))
         {
             if (!cdb.ContractTypeAdd(contractType))
             {
                 returnStr = "添加数据失败";
             }
         }
         else
         {
             returnStr = "合同类型信息已经存在,添加数据失败";
         }
         return(returnStr);
     }
 }
Ejemplo n.º 14
0
 [OperationContract]//更新类型信息
 public string UpdateContraType(T_OA_CONTRACTTYPE contraTypeInfo)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         string returnStr = "";
         if (!this.IsExistContractType(contraTypeInfo.CONTRACTTYPE, contraTypeInfo.CONTRACTLEVEL))
         {
             if (!cdb.UpdateContraType(contraTypeInfo))
             {
                 returnStr = "更新数据失败!";
             }
         }
         else
         {
             returnStr = "合同类型信息已经存在,更新数据失败";
         }
         return(returnStr);
     }
 }
Ejemplo n.º 15
0
        [OperationContract]//添加合同类型信息
        public string ContractTypeAdd(T_OA_CONTRACTTYPE contractType)
        {
            using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
            {
                string returnStr = "";
                if (!this.IsExistContractType(contractType.CONTRACTTYPE, contractType.CONTRACTLEVEL))
                {

                    if (!cdb.ContractTypeAdd(contractType))
                    {
                        returnStr = "添加数据失败";
                    }
                }
                else
                {
                    returnStr = "合同类型信息已经存在,添加数据失败";
                }
                return returnStr;
            }
        }
Ejemplo n.º 16
0
 public List<V_ContractType> GetContractTypeRoomInfosListBySearch(string StrContractTypeName, string StrID, string strContractLevel)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List<V_ContractType> ContractTypeTypeList = cdb.GetContractTypeRoomInfosListBySearch(StrContractTypeName, StrID, strContractLevel);
         if (ContractTypeTypeList == null)
         {
             return null;
         }
         else
         {
             return ContractTypeTypeList.ToList();
         }
     }
 }
Ejemplo n.º 17
0
 [OperationContract]//获取所有类型名
 public List<T_OA_CONTRACTTYPE> GetContractTypeNameInfosToCombox()
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         return cdb.GetContractTypeNameInfos();
     }
 }
Ejemplo n.º 18
0
 [OperationContract]//获取某合同类型的所有模板名称
 public List<T_OA_CONTRACTTYPE> GetContractTypeTemplateNameInfosByContractType(string StrContractType)
 {
     using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL())
     {
         List<T_OA_CONTRACTTYPE> TypeTemplateList = cdb.GetContractTemplateNameInfosByContractType(StrContractType);
         if (TypeTemplateList == null)
         {
             return null;
         }
         else
         {
             return TypeTemplateList;
         }
     }
 }